:root {
  --ink: #09090b;
  --paper: #f4f6f8;
  --ice: #d8e8f4;
  --blue: #21a9ff;
  --muted: #8d969e;
  --line: rgba(219, 232, 241, 0.2);
}

@font-face { font-family: "Kanit"; src: url("./assets/fonts/Kanit-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("./assets/fonts/Kanit-Bold.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("./assets/fonts/Kanit-Black.ttf") format("truetype"); font-style: normal; font-weight: 900; font-display: swap; }
@font-face { font-family: "Khand"; src: url("./assets/fonts/Khand-Bold.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }


* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--ice); font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, video { display: block; width: 100%; }

html, body { cursor: url("./assets/cursor-doll.png") 4 3, auto; }
a, button, input, textarea, select, summary, [role="button"] { cursor: url("./assets/cursor-doll.png") 4 3, pointer !important; }

.hero { --hero-text-x: 0px; --hero-text-y: 0px; --hero-media-x: 0px; --hero-media-y: 0px; --hero-glow-x: 42%; --hero-glow-y: 48%; min-height: 100svh; position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 26px clamp(22px, 3vw, 48px) 34px; isolation: isolate; background: #10071f; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle 360px at var(--hero-glow-x) var(--hero-glow-y), rgba(194, 73, 255, .16), transparent 68%), linear-gradient(90deg, rgba(7,5,12,.9) 0%, rgba(10,6,18,.58) 32%, rgba(10,6,18,.1) 68%, rgba(10,6,18,.12) 100%); transition: background-position .2s ease; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(9,9,11,.42) 0%, transparent 22%, transparent 66%, rgba(9,9,11,.88) 100%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; position: relative; z-index: 5; }
.brand { font-weight: 760; }
.nav-links { display: flex; gap: clamp(20px, 4vw, 60px); }
.nav-links a { opacity: .74; transition: opacity .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; }

.hero-title-wrap { position: relative; z-index: 4; width: min(63vw, 1040px); margin-top: calc(clamp(104px, 16vh, 185px) + 40px); transform: translate3d(var(--hero-text-x), var(--hero-text-y), 0); transition: transform .18s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.eyebrow { margin: 0 0 18px; font-size: 12px; letter-spacing: .3em; color: #d8c9ff; text-shadow: 0 2px 18px rgba(0,0,0,.7); }
.hero-title { margin: 0; color: #fff; font-size: clamp(58px, 6.1vw, 112px); line-height: 1.08; letter-spacing: -.055em; font-weight: 900; opacity: .8; text-shadow: 0 10px 42px rgba(0,0,0,.5); }
.hero-title > span { display: block; }
.hero-accent { color: #d845f3; background: linear-gradient(105deg, #ff4fbf 0%, #d84eff 32%, #8e6cff 58%, #ff4fbf 100%); background-size: 220% 100%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; animation: hero-accent-shift 6s ease-in-out 1.7s infinite; }
.hero-intro { max-width: 720px; margin: clamp(34px, 4vh, 52px) 0 0; color: #d0c8d9; font-size: clamp(15px, 1.25vw, 20px); line-height: 2; letter-spacing: .025em; text-shadow: 0 3px 18px rgba(0,0,0,.8); }

.hero-media { position: absolute; inset: -2%; z-index: 0; margin: 0; background: #10071f; transform: translate3d(var(--hero-media-x), var(--hero-media-y), 0); transition: transform .22s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; animation: hero-camera-breathe 14s ease-in-out infinite alternate; will-change: transform; }
.hero-stamp { position: absolute; z-index: 4; right: clamp(22px, 3vw, 48px); top: 48%; margin: 0; color: rgba(230, 220, 255, .54); font-size: 11px; line-height: 1.6; letter-spacing: .22em; text-align: right; transform: rotate(90deg) translateX(50%); transform-origin: right center; }

.hero.is-ready .nav { animation: hero-reveal-down .72s cubic-bezier(.2,.75,.2,1) both; }
.hero.is-ready .eyebrow { animation: hero-reveal-up .7s cubic-bezier(.2,.75,.2,1) .14s both; }
.hero.is-ready .hero-title > span:first-child { animation: hero-reveal-up .82s cubic-bezier(.16,.8,.25,1) .26s both; }
.hero.is-ready .hero-title > span:last-child { animation: hero-reveal-up .9s cubic-bezier(.16,.8,.25,1) .38s both; }
.hero.is-ready .hero-intro { animation: hero-reveal-up .78s cubic-bezier(.2,.75,.2,1) .58s both; }
.hero.is-ready .hero-stamp { animation: hero-stamp-in .82s cubic-bezier(.2,.75,.2,1) .72s both, hero-stamp-breathe 4s ease-in-out 1.7s infinite; }
.hero.is-ready .hero-bottom { animation: hero-reveal-up .72s cubic-bezier(.2,.75,.2,1) .76s both; }

@keyframes hero-reveal-up { from { opacity: 0; filter: blur(8px); transform: translateY(28px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes hero-reveal-down { from { opacity: 0; filter: blur(6px); transform: translateY(-18px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes hero-stamp-in { from { opacity: 0; filter: blur(6px); transform: rotate(90deg) translateX(50%) translateY(-18px); } to { opacity: 1; filter: blur(0); transform: rotate(90deg) translateX(50%) translateY(0); } }
@keyframes hero-stamp-breathe { 0%, 100% { color: rgba(230, 220, 255, .46); } 50% { color: rgba(239, 229, 255, .72); } }
@keyframes hero-camera-breathe { from { transform: scale(1.025); } to { transform: scale(1.06); } }
@keyframes hero-accent-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-bottom { margin-top: auto; display: flex; justify-content: flex-end; align-items: end; position: relative; z-index: 4; }
.cta { position: relative; padding: 13px 25px 13px 29px; border-radius: 999px; border: 1px solid rgba(255, 224, 255, .88); color: #fff; background: linear-gradient(105deg, rgba(75, 24, 116, .9), rgba(190, 39, 155, .88)); letter-spacing: .12em; font-size: 13px; font-weight: 700; box-shadow: 0 0 4px rgba(255,255,255,.65), 0 0 13px rgba(223, 69, 255, .72), 0 0 28px rgba(112, 45, 255, .42), inset 0 0 16px rgba(255, 137, 237, .34); cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.cta::after { content: "↗"; margin-left: 10px; color: #f7d9ff; }
.cta:hover, .cta:focus-visible { transform: translateY(-2px); box-shadow: 0 0 5px rgba(255,255,255,.8), 0 0 18px rgba(223,69,255,.9), 0 0 34px rgba(112,45,255,.58), inset 0 0 18px rgba(255,137,237,.5); }
.project-toggle { padding: 14px 25px; border-radius: 999px; border: 1px solid rgba(255,255,255,.48); color: white; background: linear-gradient(120deg, #080e19, #0d76c8 52%, #8a37aa); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; box-shadow: inset 0 0 20px rgba(99, 199, 255, .25); cursor: pointer; }

.marquee-section { padding: 0; overflow: hidden; }
.marquee { width: 100%; overflow: hidden; margin-bottom: 14px; }
.marquee-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.marquee img { width: clamp(300px, 25vw, 520px); aspect-ratio: 728 / 296; object-fit: cover; border-radius: clamp(14px, 1.2vw, 22px); border: 1px solid rgba(255,255,255,.12); }
.marquee-right .marquee-track { animation: move-right 36s linear infinite; }
.marquee-left .marquee-track { animation: move-left 34s linear infinite; transform: translateX(-50%); }
@keyframes move-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes move-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.career { --career-card-pad: clamp(20px, 1.7vw, 28px); width: min(calc(100% - clamp(36px, 8vw, 144px)), 1460px); margin-block: 40px; margin-inline: auto; color: #d8d3dc; }
.career-head { display: flex; align-items: end; gap: clamp(28px, 4vw, 72px); margin-bottom: clamp(34px, 3.5vw, 58px); padding-inline-start: calc(var(--career-card-pad) + 1px); }
.career-head p { margin: 0 0 8px; color: #66616a; font-family: "Kanit", sans-serif; font-size: 12px; letter-spacing: .12em; }
.career-head h2 { margin: 0; color: #fff; font-size: clamp(34px, 3vw, 50px); font-weight: 500; line-height: 1; letter-spacing: .035em; }
.career-list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 4.2vw, 84px); margin: 0; padding: 58px 0 0; list-style: none; }
.career-list::before { content: ""; position: absolute; top: 5px; right: 0; left: calc(var(--career-card-pad) + 1px); height: 1px; background: linear-gradient(90deg, rgba(143, 83, 240, .85), rgba(190, 162, 255, .24)); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .12s; }
.career.is-visible .career-list::before { transform: scaleX(1); }
.career-item { position: relative; min-width: 0; opacity: 0; transform: translateY(34px); transition: opacity .72s ease var(--career-delay), transform .72s cubic-bezier(.2,.8,.2,1) var(--career-delay); }
.career.is-visible .career-item { opacity: 1; transform: translateY(0); }
.career-node { position: absolute; top: -58px; left: calc(var(--career-card-pad) - 4.5px); z-index: 2; width: 11px; height: 11px; border-radius: 50%; background: #9657f3; box-shadow: 0 0 0 0 rgba(150, 87, 243, .45); transform: scale(0); transition: transform .4s cubic-bezier(.2,.9,.25,1.5) var(--node-delay), background .25s ease, box-shadow .25s ease; }
.career.is-visible .career-node { transform: scale(1); animation: career-node-pulse 2.8s ease-in-out calc(var(--node-delay) + .65s) infinite; }
.career-card { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; position: relative; min-height: 304px; height: 100%; overflow: hidden; padding: var(--career-card-pad); border: 1px solid rgba(190, 162, 255, .22); border-radius: 15px; outline: none; background: #211c26; box-shadow: 0 18px 50px rgba(0,0,0,.18); transform: perspective(850px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0); transform-style: preserve-3d; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease; }
.career-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(151, 84, 246, .18), transparent 52%); opacity: 0; transition: opacity .3s ease; }
.career-card:hover, .career-card:focus-visible { border-color: rgba(190, 162, 255, .38); background: #251e2c; box-shadow: 0 22px 70px rgba(66, 28, 112, .25); transform: perspective(850px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px) scale(1.012); }
.career-card:hover::before, .career-card:focus-visible::before { opacity: 1; }
.career-card > * { position: relative; z-index: 1; }
.career-period { margin: 0 0 8px; color: #a66cff; font-size: clamp(14px, 1vw, 16px); font-weight: 600; }
.career-card h3 { margin: 0; color: #d7d2da; font-size: clamp(17px, 1.28vw, 21px); font-weight: 500; line-height: 1.45; }
.career-role { display: inline-flex; margin: 16px 0 28px; padding: 6px 14px; border: 1px solid rgba(166, 108, 255, .38); border-radius: 999px; color: #bb8dff; background: rgba(112, 50, 195, .38); font-size: 14px; line-height: 1; }
.career-copy { margin: 0; color: #a9a4ad; font-size: clamp(13px, .92vw, 15px); line-height: 1.6; letter-spacing: .02em; }
@keyframes career-node-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(150, 87, 243, .38); } 45% { box-shadow: 0 0 0 8px rgba(150, 87, 243, 0); } }

.section-dark { background: var(--ink); }
.section-index { margin: 0; color: #69c6ff; letter-spacing: .2em; font-size: 12px; font-weight: 700; }
.about { background: #030303; padding: clamp(34px, 5vw, 88px) clamp(18px, 2.5vw, 48px) clamp(22px, 2.5vw, 44px); }
.about-layout { width: min(100%, 1580px); margin: 0 auto; display: grid; grid-template-columns: minmax(300px, .54fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 38px); align-items: stretch; }
.about-visual { position: relative; min-width: 0; margin: 0; overflow: hidden; isolation: isolate; aspect-ratio: 825 / 1148; border-radius: clamp(22px, 2vw, 34px); }
.about-visual img { position: absolute; z-index: 1; inset: -4px; display: block; width: calc(100% + 8px); height: calc(100% + 8px); object-fit: cover; background: #000; }
.about-visual::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; border: 1px solid rgba(190, 162, 255, .28); border-radius: inherit; }
.about-panel { display: flex; flex-direction: column; min-width: 0; height: 100%; padding: clamp(24px, 2vw, 40px); border: 1px solid rgba(190, 162, 255, .28); border-radius: clamp(22px, 2vw, 34px); background: #0d0d0e; box-shadow: inset 0 0 80px rgba(106, 62, 180, .025); }
.about-kicker { margin: 0; color: #9580ad; font-family: "Kanit", sans-serif; font-size: clamp(15px, 1.15vw, 20px); letter-spacing: .08em; }
.about-title { margin: clamp(20px, 1.7vw, 34px) 0 0; color: #fff; font-family: "Khand", sans-serif; font-size: clamp(62px, 5.4vw, 96px); font-weight: 700; line-height: .72; letter-spacing: -.025em; }
.about-title span { display: block; }
.about-title .about-years { margin-bottom: .28em; font-size: .62em; letter-spacing: -.02em; }
.about-copy { margin: clamp(22px, 1.7vw, 34px) 0 0; padding-bottom: clamp(20px, 1.5vw, 30px); border-bottom: 1px solid rgba(255,255,255,.06); color: #b7b5ba; font-size: clamp(15px, 1.05vw, 18px); line-height: 1.7; letter-spacing: .045em; }
.about-metrics { display: grid; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, .9vw, 16px); align-content: center; margin-top: 0; padding-top: clamp(18px, 1.2vw, 24px); perspective: 900px; transform-style: preserve-3d; }
.about-metrics article { position: relative; min-width: 0; padding: clamp(14px, 1vw, 20px) clamp(18px, 1.35vw, 27px); border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: #252526; transform-style: preserve-3d; will-change: transform; }
@keyframes card-depth-pulse {
  0%, 100% { transform: translateZ(0) scale(1); }
  50% { transform: translateZ(18px) scale(1.012); }
}
@media (hover: hover) {
  .about-metrics article:hover { z-index: 2; animation: card-depth-pulse 1.25s ease-in-out infinite; }
}
.about-metrics strong { display: block; margin-bottom: 6px; color: #fff; font-family: "Khand", "PingFang SC", sans-serif; font-size: clamp(24px, 1.85vw, 32px); font-weight: 700; line-height: 1.08; }
.about-metrics span { display: block; color: #a6a3aa; font-size: clamp(13px, .98vw, 17px); line-height: 1.5; }
.ai-projects { --ai-pad: clamp(18px, 2vw, 30px); width: min(calc(100% - clamp(36px, 8vw, 144px)), 1460px); margin: 40px auto; color: #d8d3dc; }
.ai-projects-head { display: flex; align-items: end; gap: clamp(28px, 4vw, 72px); margin-bottom: 40px; padding-inline: var(--ai-pad); }
.ai-projects-head p { margin: 0 0 8px; color: #66616a; font-family: "Kanit", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.ai-projects-head h2 { margin: 0; color: #fff; font-size: clamp(34px, 3vw, 50px); font-weight: 600; line-height: 1; letter-spacing: .035em; }
.ai-project-board { padding: var(--ai-pad); border: 1px solid rgba(190,162,255,.08); border-radius: clamp(18px, 2vw, 28px); background: #111115; box-shadow: 0 34px 90px rgba(0,0,0,.32); }
.ai-project-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 18px); }
.ai-card { grid-column: span 2; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: clamp(12px, 1vw, 17px); background: #1c1c22; transition: transform .32s cubic-bezier(.2,.75,.2,1), border-color .32s ease, box-shadow .32s ease; }
.ai-card-wide { grid-column: span 4; }
.ai-card-portrait { grid-column: span 2; }
.ai-card-trigger { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.ai-card-media { position: relative; display: block; height: clamp(220px, 18vw, 300px); overflow: hidden; background: #0b0b0e; }
.ai-card-featured .ai-card-media { height: clamp(340px, 31vw, 500px); }
.ai-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.75,.2,1), filter .4s ease; }
.ai-card-wide .ai-card-media img { object-position: center 43%; }
.ai-card-portrait .ai-card-media img { object-position: center 48%; }
.ai-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,8,.08), rgba(5,5,8,.08) 55%, rgba(5,5,8,.45)); transition: background .35s ease; }
.ai-play { position: absolute; top: 50%; left: 50%; display: grid; width: clamp(54px, 4.6vw, 72px); aspect-ratio: 1; place-items: center; border: 1px solid rgba(235,218,255,.42); border-radius: 50%; background: linear-gradient(145deg, #a264ff, #7d45ef); box-shadow: 0 12px 34px rgba(112,59,235,.42), inset 0 1px 0 rgba(255,255,255,.34); transform: translate(-50%, -50%); transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease; }
.ai-play span { width: 0; height: 0; margin-left: 4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid white; }
.ai-duration { position: absolute; right: 14px; bottom: 12px; padding: 4px 8px; border-radius: 6px; color: #fff; background: rgba(10,10,13,.78); font-family: "Kanit", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .04em; backdrop-filter: blur(8px); }
.ai-card-copy { display: grid; min-height: 86px; align-content: center; gap: 7px; padding: 18px 20px 19px; }
.ai-card-featured .ai-card-copy { min-height: 106px; }
.ai-card-copy strong { color: #e8e5ec; font-size: clamp(16px, 1.25vw, 20px); font-weight: 500; line-height: 1.35; }
.ai-card-copy span { overflow: hidden; color: #85818b; font-size: clamp(12px, .9vw, 14px); line-height: 1.55; letter-spacing: .03em; text-overflow: ellipsis; white-space: nowrap; }
.ai-card-featured .ai-card-copy span { white-space: normal; }
.ai-card:hover, .ai-card:focus-within { z-index: 2; border-color: rgba(166,108,255,.36); box-shadow: 0 24px 54px rgba(70,33,125,.28); transform: translateY(-6px); }
.ai-card:hover .ai-card-media img, .ai-card:focus-within .ai-card-media img { filter: saturate(1.08) brightness(1.04); transform: scale(1.035); }
.ai-card:hover .ai-card-shade, .ai-card:focus-within .ai-card-shade { background: linear-gradient(180deg, rgba(70,28,105,.02), rgba(5,5,8,.02) 55%, rgba(5,5,8,.35)); }
.ai-card:hover .ai-play, .ai-card:focus-within .ai-play { box-shadow: 0 0 0 10px rgba(151,88,255,.12), 0 16px 42px rgba(112,59,235,.65), inset 0 1px 0 rgba(255,255,255,.45); transform: translate(-50%, -50%) scale(1.08); }
.ai-card-trigger:focus-visible { outline: 2px solid #a66cff; outline-offset: -3px; }

.case-work { width: min(calc(100% - clamp(36px, 8vw, 144px)), 1460px); margin: 40px auto; color: #d8d3dc; }
.case-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.case-filter { padding: 9px 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #8d8992; background: transparent; font-size: 14px; line-height: 1; transition: color .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease; }
.case-filter:hover, .case-filter:focus-visible { color: #d8d3dc; border-color: rgba(166,108,255,.48); transform: translateY(-1px); }
.case-filter.is-active { color: #b998ff; border-color: rgba(151,88,255,.5); background: rgba(102,55,180,.42); box-shadow: inset 0 0 16px rgba(157,90,255,.14), 0 8px 22px rgba(54,24,99,.22); }
.case-list { position: relative; display: grid; gap: 40px; }
.case-study { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .95fr); gap: clamp(38px, 5vw, 82px); align-items: center; padding: clamp(30px, 3.2vw, 52px); overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: clamp(18px, 2vw, 28px); background: linear-gradient(145deg, #1b1b1d, #171719); box-shadow: 0 34px 90px rgba(0,0,0,.3); }
.case-study[hidden] { display: none; }
.case-gallery { min-width: 0; }
.case-main { position: relative; aspect-ratio: 1006 / 562; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: clamp(14px, 1.2vw, 20px); background: #0b0c12; box-shadow: 0 24px 52px rgba(0,0,0,.28); }
.case-main::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(145deg, rgba(152,97,255,.07), transparent 32%, transparent 72%, rgba(15,9,25,.16)); }
.case-main img, .case-main video { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .28s ease, transform .7s cubic-bezier(.2,.75,.2,1), filter .4s ease; }
.case-main img[hidden], .case-main video[hidden] { display: none; }
.case-main video { background: #f4f1e9; }
.case-study--contain .case-main { background: #f4f1e9; }
.case-study--contain .case-main img { object-fit: contain; }
.case-main.is-switching img, .case-main.is-switching video { opacity: .12; transform: scale(1.025); }
.case-main:hover img { filter: saturate(1.06) brightness(1.025); transform: scale(1.018); }
.case-study--scroll .case-main { cursor: ns-resize; background: #f4f1e9; }
.case-study--scroll .case-main img { height: auto; min-height: 100%; object-fit: cover; object-position: top center; transform: translateY(0); transition: opacity .28s ease, transform var(--scroll-duration, 3.6s) cubic-bezier(.22,.61,.36,1), filter .4s ease; }
.case-study--scroll .case-main:not(.is-switching):hover img { filter: saturate(1.04) brightness(1.015); transform: translateY(var(--scroll-y, 0px)); }
.case-main figcaption { position: absolute; right: 14px; bottom: 12px; z-index: 2; display: flex; align-items: baseline; gap: 4px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #dcd8e2; background: rgba(10,10,14,.62); font-family: "Kanit", sans-serif; font-size: 11px; letter-spacing: .08em; backdrop-filter: blur(10px); }
.case-main figcaption strong { color: #b88cff; font-size: 14px; }
.case-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1vw, 15px); margin-top: 16px; }
.case-thumbnail { position: relative; aspect-ratio: 228 / 154; min-width: 0; overflow: hidden; padding: 0; border: 1px solid transparent; border-radius: clamp(10px, .8vw, 14px); background: #101014; opacity: .56; transition: opacity .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.case-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.case-thumbnail:hover, .case-thumbnail:focus-visible { opacity: .86; border-color: rgba(173,123,255,.5); transform: translateY(-3px); }
.case-thumbnail.is-active { opacity: 1; border-color: rgba(173,123,255,.8); box-shadow: 0 0 0 1px rgba(173,123,255,.18), 0 12px 28px rgba(72,35,126,.32); }
.case-copy { min-width: 0; }
.case-kicker { margin: 0 0 22px; color: #716c78; font-family: "Kanit", sans-serif; font-size: 12px; letter-spacing: .12em; }
.case-copy h2 { margin: 0; color: #f0edf3; font-size: clamp(38px, 4vw, 64px); font-weight: 300; line-height: 1.18; letter-spacing: .025em; }
.case-summary { margin: clamp(26px, 3vw, 44px) 0 0; color: #928e98; font-size: clamp(15px, 1.02vw, 17px); line-height: 1.9; letter-spacing: .035em; }
.case-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.case-meta div { min-width: 0; }
.case-meta dt { margin-bottom: 6px; color: #665f6d; font-family: "Kanit", sans-serif; font-size: 10px; letter-spacing: .16em; }
.case-meta dd { margin: 0; color: #c1bdc7; font-size: 13px; line-height: 1.5; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.case-tags span { padding: 7px 11px; border: 1px solid rgba(158,95,249,.22); border-radius: 999px; color: #9e86be; background: rgba(106,58,164,.12); font-size: 12px; }
.case-empty { margin: 0; padding: 80px 24px; border: 1px dashed rgba(173,123,255,.22); border-radius: 22px; color: #77717e; text-align: center; background: rgba(255,255,255,.02); }

body.modal-open { overflow: hidden; }
.video-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: clamp(16px, 3vw, 44px); opacity: 0; transition: opacity .24s ease; }
.video-modal[hidden] { display: none; }
.video-modal.is-open { opacity: 1; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(3,2,6,.82); backdrop-filter: blur(16px); }
.video-modal-dialog { position: relative; z-index: 1; width: min(92vw, 1280px); max-height: 92vh; overflow: hidden; border: 1px solid rgba(190,162,255,.3); border-radius: clamp(18px, 2vw, 28px); background: #101014; box-shadow: 0 36px 120px rgba(0,0,0,.72), 0 0 60px rgba(104,51,176,.16); transform: translateY(18px) scale(.975); transition: transform .28s cubic-bezier(.2,.75,.2,1); }
.video-modal-dialog.is-portrait { width: min(72vw, 540px); }
.video-modal.is-open .video-modal-dialog { transform: translateY(0) scale(1); }
.video-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 18px 14px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.video-modal-head h2 { margin: 0; color: #ece9f0; font-size: clamp(16px, 1.35vw, 20px); font-weight: 500; letter-spacing: .035em; }
.video-modal-close { display: grid; width: 38px; aspect-ratio: 1; place-items: center; padding: 0 0 2px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: #d8d3dc; background: rgba(255,255,255,.05); font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.video-modal-close:hover, .video-modal-close:focus-visible { color: #fff; background: rgba(166,108,255,.28); transform: rotate(5deg) scale(1.05); }
.video-modal-stage { width: 100%; max-height: calc(92vh - 68px); aspect-ratio: var(--video-aspect, 16 / 9); background: #000; }
.video-modal-player { width: 100%; height: 100%; max-height: calc(92vh - 68px); object-fit: contain; background: #000; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 34px clamp(24px, 5vw, 76px); border-top: 1px solid rgba(255,255,255,.13); font-size: 13px; letter-spacing: .12em; }
.icp-link { color: #a9a3b0; letter-spacing: .06em; transition: color .2s ease, transform .2s ease; }
.icp-link:hover, .icp-link:focus-visible { color: #d4c0ff; transform: translateY(-1px); }

@media (max-width: 780px) {
  .hero { min-height: 800px; }
  .nav { align-items: flex-start; }
  .nav-links { flex-direction: column; gap: 9px; text-align: right; }
  .hero::before { background: linear-gradient(90deg, rgba(7,5,12,.9) 0%, rgba(10,6,18,.42) 55%, rgba(10,6,18,.1) 100%); }
  .hero-title-wrap { width: min(90vw, 520px); margin-top: 96px; }
  .hero-title { font-size: clamp(40px, 11vw, 60px); line-height: 1.1; }
  .hero-intro { max-width: 340px; margin-top: 30px; font-size: 14px; line-height: 1.9; }
  .hero-media video { object-position: 64% center; }
  .hero-stamp { display: none; }
  .cta { padding: 12px 18px; }
  .about { padding: 24px 16px 74px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: 825 / 1148; }
  .about-panel { padding: 28px 22px; }
  .about-title { font-size: clamp(44px, 14vw, 58px); }
  .about-copy { margin-top: 34px; padding-bottom: 30px; font-size: 16px; line-height: 1.85; letter-spacing: .025em; }
  .about-metrics { grid-template-columns: 1fr; }
  .career { width: min(calc(100% - 32px), 520px); margin-block: 40px; }
  .career-head { display: block; margin-bottom: 42px; padding-inline-start: 0; }
  .career-head p { margin-bottom: 14px; }
  .career-list { grid-template-columns: 1fr; gap: 24px; padding: 0 0 0 42px; }
  .career-list::before { top: 0; right: auto; bottom: 0; left: 7px; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .career.is-visible .career-list::before { transform: scaleY(1); }
  .career-node { top: 28px; left: -40px; }
  .career-card { min-height: 0; padding: 24px; }
  .career-role { margin-bottom: 22px; }
  .ai-projects { width: min(calc(100% - 32px), 520px); margin-block: 40px; }
  .ai-projects-head { display: block; margin-bottom: 40px; padding-inline: 0; }
  .ai-projects-head p { margin-bottom: 14px; }
  .ai-project-board { padding: 12px; border-radius: 18px; }
  .ai-project-grid { grid-template-columns: 1fr; }
  .ai-card, .ai-card-wide, .ai-card-portrait { grid-column: 1; }
  .ai-card-media, .ai-card-featured .ai-card-media { height: auto; aspect-ratio: 16 / 9; }
  .ai-card-copy, .ai-card-featured .ai-card-copy { min-height: 0; padding: 16px; }
  .ai-card-copy span { white-space: normal; }
  .case-work { width: min(calc(100% - 32px), 520px); margin-block: 40px; }
  .case-filters { gap: 9px; margin-bottom: 22px; }
  .case-filter { padding: 8px 13px; font-size: 12px; }
  .case-study { grid-template-columns: 1fr; gap: 34px; padding: 14px; border-radius: 18px; }
  .case-thumbnails { gap: 7px; margin-top: 9px; }
  .case-thumbnail { border-radius: 8px; }
  .case-copy { padding: 8px 8px 16px; }
  .case-kicker { margin-bottom: 16px; }
  .case-copy h2 { font-size: clamp(34px, 10vw, 48px); }
  .case-summary { margin-top: 22px; font-size: 14px; line-height: 1.8; }
  .case-meta { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; padding-top: 20px; }
  .video-modal { padding: 12px; }
  .video-modal-dialog { width: 100%; border-radius: 16px; }
  .video-modal-head { padding: 12px 12px 12px 16px; }
  footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
