/* Costory Studio — one deliberate light look: paper ground, ink type, gold as the single loud colour.
   Layout: Apple-style long scroll — pinned film, centred display headlines, a swipe carousel,
   a bento of services, a pinned process column and a gold sign-off. */
:root {
  --paper: #f7f6f2;          /* matches the logo's paper */
  --paper-2: #efede6;        /* tile ground */
  --ink: #121311;            /* the brush ink */
  --ink-2: #4a4a44;          /* body text on paper */
  --mute: #8d8b82;           /* captions, inactive */
  --gold: #f4b400;           /* the yellow act of the film */
  --ember: #c4642f;          /* the logo's play triangle */
  --line: rgba(18, 19, 17, .12);

  --f-display: "Schibsted Grotesk", "Noto Sans TC", "PingFang TC", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Schibsted Grotesk", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(.8rem, .76rem + .2vw, .9rem);
  --step-0: clamp(1rem, .95rem + .25vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.6vw, 5rem);
  --step-4: clamp(3rem, 1.8rem + 5.6vw, 7rem);

  --gutter: max(16px, 4vw);
  --radius: 28px;
  --nav-h: 52px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
main [id] { scroll-margin-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font: 500 var(--step--1)/1.2 var(--f-mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.tc { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.display { font-size: var(--step-3); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.lede { max-width: 34em; font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); text-wrap: balance; }
.grad {
  background: linear-gradient(100deg, var(--ember) 10%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: .5em 1em; border-radius: 99px; }
.skip:focus { left: 8px; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .55em 1.15em; border-radius: 999px; border: 0;
  font: 500 .95rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill svg { width: 12px; height: 12px; fill: currentColor; }
.pill--ink { background: var(--ink); color: var(--paper); }
.pill--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill--glass { background: rgba(18, 19, 17, .55); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.link { color: var(--ember); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(247, 246, 242, .78);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: var(--nav-h); width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 700 1.02rem/1 var(--f-display); letter-spacing: -.01em; }
.nav__brand img { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; font-size: .9rem; }
.nav__links a { text-decoration: none; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { padding: .4em .95em; font-size: .85rem; }
.lang { display: flex; padding: 2px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font: 500 .78rem/1 var(--f-display); }
.lang a { padding: .42em .7em; border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.lang a:not([aria-current="true"]):hover { color: var(--ink); }
.nav__menu { display: none; width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__menu span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, top .3s ease; }
.nav__menu span:first-child { top: 16px; }
.nav__menu span:last-child { top: 23px; }
.nav--open .nav__menu span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav--open .nav__menu span:last-child { top: 19.5px; transform: rotate(-45deg); }
.nav__brand span, .nav__cta { white-space: nowrap; }
@media (max-width: 640px) {
  .nav__inner { gap: .9rem; }
  .nav__cta { display: none; }
  .nav__menu { display: block; }
  .lang { margin-left: auto; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    display: grid; gap: 0; margin: 0; padding: 8px var(--gutter) 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(18, 19, 17, .25);
    font: 700 1.6rem/1.2 var(--f-body);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
  }
  .nav__links a { padding: .55rem 0; color: var(--ink); }
  .nav--open .nav__links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s ease, transform .25s ease; }
}

/* Film — pinned canvas scrubbed by scroll */
.film__intro { text-align: center; padding: clamp(48px, 9vh, 110px) var(--gutter) clamp(28px, 5vh, 56px); display: grid; gap: .9rem; justify-items: center; }
.film__title { font-size: var(--step-4); font-weight: 900; line-height: 1.04; letter-spacing: -.02em; font-family: var(--f-body); }
.film__en { font: 500 var(--step-1)/1.3 var(--f-display); color: var(--ink-2); letter-spacing: -.01em; }
.film__track { height: 480vh; position: relative; }
.film__sticky {
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
  display: grid; place-items: center; overflow: hidden;
}
.film__frame {
  position: relative; width: 100%; height: 100%;
  transform: scale(var(--card-scale, .86)); border-radius: var(--card-radius, var(--radius));
  overflow: hidden; background: #e9e8e3; will-change: transform;
}
.film__canvas, .film__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__fallback { object-fit: cover; }
.js .film__fallback { opacity: 0; transition: opacity .4s; }
.js .film--noframes .film__fallback { opacity: 1; }

.captions { list-style: none; margin: 0; padding: 0; position: absolute; left: clamp(20px, 5vw, 72px); bottom: clamp(70px, 14vh, 140px); }
.captions li {
  position: absolute; left: 0; bottom: 0; width: max-content; max-width: 80vw;
  display: grid; gap: .35rem; color: var(--ink);
  opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease;
}
.captions li.is-on { opacity: 1; transform: none; }
.captions b { font: 900 var(--step-3)/1.05 var(--f-body); letter-spacing: -.01em; }
.captions i { font: italic 500 var(--step-1)/1.2 var(--f-display); }
.captions .tc { color: var(--ink-2); }
.captions .on-dark { color: #fff; }
.film__watch { white-space: nowrap; position: absolute; left: 50%; bottom: clamp(24px, 6vh, 56px); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s; }
.film__watch.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

.film__hud {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: .8rem; padding: .45rem .9rem; border-radius: 999px;
  background: rgba(247, 246, 242, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.film__bar { position: relative; width: clamp(80px, 18vw, 220px); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.film__bar span { position: absolute; inset: 0; transform-origin: left; }
.film__loaded { background: rgba(18, 19, 17, .22); transform: scaleX(var(--loaded, 0)); transition: transform .3s linear; }
.film__played { background: var(--ink); transform: scaleX(var(--p, 0)); }
.film__skip { margin-left: .2rem; padding-left: .8rem; border-left: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 .78rem/1 var(--f-body); letter-spacing: 0; white-space: nowrap; }
.film__skip:hover { text-decoration: underline; }
.film__cue { display: grid; justify-items: center; gap: .6rem; margin-top: .6rem; font: 500 .78rem/1 var(--f-mono); letter-spacing: .12em; color: var(--mute); transition: opacity .4s ease; }
.film__cue i { width: 1px; height: 34px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.is-scrolled .film__cue { opacity: 0; }

/* Portrait phones: the 4:5 film sits under the nav, captions below it on paper. */
@media (orientation: portrait) and (max-width: 820px) {
  .film__sticky { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 18px; padding-top: 10px; }
  .film__frame { flex: none; height: auto; aspect-ratio: 4 / 5; width: min(100%, calc((100svh - var(--nav-h) - 200px) * .8)); }
  .captions { position: relative; left: auto; bottom: auto; width: 100%; min-height: 128px; padding-inline: var(--gutter); }
  .captions li { top: 0; bottom: auto; left: var(--gutter); max-width: calc(100% - 2 * var(--gutter)); }
  .captions b { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.6rem); }
  .captions i { font-size: 1.05rem; }
  .film__watch { bottom: 18px; font-size: .88rem; }
}

/* Statement — characters ink in on scroll */
.statement { padding: clamp(72px, 14vh, 160px) var(--gutter); }
.pillars { list-style: none; width: min(1080px, 100%); margin: clamp(56px, 10vh, 110px) auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.pillars li { display: grid; gap: .7rem; align-content: start; padding-top: 1.2rem; border-top: 2px solid var(--ink); min-width: 0; }
.pillars__tag { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; color: var(--ember); }
.pillars h3 { font: 900 var(--step-1)/1.3 var(--f-body); }
.pillars p { color: var(--ink-2); line-height: 1.7; }
@media (max-width: 820px) { .pillars { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.statement__text {
  width: min(980px, 100%); margin-inline: auto;
  font: 700 var(--step-2)/1.5 var(--f-body); letter-spacing: .01em; color: var(--ink);
}
.js .statement__text span { color: #c9c7be; transition: color .25s linear; }
.js .statement__text span.is-ink { color: var(--ink); }

/* Highlights */
.highlights { padding-block: clamp(40px, 8vh, 90px); background: var(--paper-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -.02em; }
.section-head__title { display: grid; gap: .5rem; }
.hl__project { font: 500 var(--step--1)/1.4 var(--f-mono); letter-spacing: .06em; color: var(--ink-2); }
.hl__card.hl__card--more { background: var(--gold); }
.hl__more-mark { position: absolute; right: -6%; top: -10%; width: 62%; opacity: .16; pointer-events: none; }
.hl__more { position: absolute; inset: 0; padding: clamp(22px, 4vw, 52px); display: grid; align-content: end; justify-items: start; gap: .9rem; color: var(--ink); }
.hl__more h3 { font: 900 var(--step-3)/1.05 var(--f-body); letter-spacing: -.01em; }
.hl__more p { max-width: 28em; color: rgba(18, 19, 17, .78); }
.hl__more .pill { margin-top: .4rem; padding: .7em 1.3em; }
.hl__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter)));
  padding-bottom: 8px; scrollbar-width: none;
}
.hl__track::-webkit-scrollbar { display: none; }
.hl__card {
  position: relative; flex: 0 0 min(86vw, 980px); aspect-ratio: 16 / 10; max-width: 100%;
  border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: var(--ink);
}
.hl__card video { width: 100%; height: 100%; object-fit: cover; }
.hl__copy {
  position: absolute; left: 0; top: 0; padding: clamp(18px, 3vw, 36px); display: grid; gap: .6rem; max-width: 30em;
}
.hl__copy p { font: 700 var(--step-1)/1.35 var(--f-body); }
.hl__card .hl__copy { color: var(--ink); }
.hl__card--gold .hl__copy { color: var(--ink); }
@media (max-width: 640px) {
  .hl__card { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--paper); }
  .hl__card video { height: auto; aspect-ratio: 16 / 10; }
  .hl__copy { position: static; padding: 18px 20px 22px; }
  .hl__more { position: relative; padding: 28px 20px 26px; }
  .hl__more h3 { font-size: 2rem; }
  .hl__copy p { font-size: 1.05rem; }
}
.hl__controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; }
.hl__dots { display: flex; gap: 10px; padding: 14px 18px; border-radius: 999px; background: rgba(18, 19, 17, .07); }
.hl__dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(18, 19, 17, .3); cursor: pointer; position: relative; overflow: hidden; transition: width .3s ease; }
.hl__dots button[aria-selected="true"] { width: 44px; }
.hl__dots button[aria-selected="true"]::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--prog, 0)); }
.hl__play { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(18, 19, 17, .07); cursor: pointer; }
.hl__play svg { width: 13px; height: 13px; fill: var(--ink); }
.hl__play[data-state="playing"] .i-play, .hl__play[data-state="paused"] .i-pause { display: none; }

/* Services: six tiles; wide ones span both columns. Copy sits on top, each visual at the bottom. */
.services { padding-block: clamp(100px, 16vh, 180px); }
.services .wrap > .eyebrow, .services .display, .services .lede, .process .eyebrow, .process .display { text-align: center; margin-inline: auto; }
.services .display { margin-top: 1rem; }
.services .lede { margin-top: 1.4rem; }
.bento { --pad: clamp(24px, 3.4vw, 44px); margin-top: clamp(48px, 8vh, 90px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--paper-2); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.tile__copy { padding: var(--pad); display: grid; gap: .7rem; align-content: start; justify-items: start; }
.tile__en { font: 500 .78rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }
.tile h3 { font: 900 var(--step-2)/1.15 var(--f-body); }
.tile p { color: var(--ink-2); max-width: 30em; }
.tile__ask { margin-top: .2rem; color: var(--ember); font-weight: 600; text-decoration: none; }
.tile__ask:hover { text-decoration: underline; }
.chips { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .82rem; padding: .3em .8em; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }

.tile--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto; }
.tile--dark { background: var(--ink); color: var(--paper); }
.tile--dark p, .tile--dark .chips li { color: rgba(247, 246, 242, .72); }
.tile--dark .chips li { box-shadow: inset 0 0 0 1px rgba(247, 246, 242, .2); }
.tile--dark .tile__en, .tile--dark .tile__ask { color: var(--gold); }
.tile__media { min-height: 340px; }
.tile__media video { width: 100%; height: 100%; object-fit: cover; }

/* Visuals inside the tiles */
.tile__screen, .timeline, .poster, .phone, .brandsheet { align-self: end; margin: 0 var(--pad) var(--pad); }
.tile__screen { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(18, 19, 17, .35); }
.tile__screen video { width: 100%; height: 100%; object-fit: cover; }

.timeline {
  aspect-ratio: 16 / 9; max-width: 100%; position: relative; display: grid; grid-template-rows: 18px 1.35fr 1fr; gap: 8px;
  padding: 12px 14px 14px 38px; border-radius: 10px; background: #1b1c19; color: rgba(247, 246, 242, .5);
  font: 500 .6rem/1 var(--f-mono); letter-spacing: .06em; font-variant-numeric: tabular-nums;
  box-shadow: 0 30px 60px -30px rgba(18, 19, 17, .45);
}
.timeline__ruler { position: relative; border-bottom: 1px solid rgba(247, 246, 242, .14); }
.timeline__ruler span { position: absolute; top: 0; transform: translateX(-50%); }
.timeline__track { position: relative; display: flex; gap: 2px; min-height: 0; }
.timeline__track--v span.clip { flex: none; border-radius: 3px; background: center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(247, 246, 242, .18); }
.timeline__track--a { align-items: center; gap: 1px; padding-block: 4px; background: rgba(244, 180, 0, .07); border-radius: 3px; }
.timeline__track--a i { flex: 1; min-height: 2px; background: var(--gold); opacity: .75; border-radius: 1px; }
.timeline__tag { position: absolute; left: -28px; top: 50%; transform: translateY(-50%); }
.timeline__head { position: absolute; top: 8px; bottom: 8px; left: 38px; width: 2px; background: var(--ember); box-shadow: 0 0 0 1px rgba(196, 100, 47, .25); animation: playhead 16.2s linear infinite; }
@keyframes playhead { from { left: 38px; } to { left: calc(100% - 15px); } }

.phone { justify-self: center; width: min(48%, 230px); aspect-ratio: 9 / 19.5; padding: 7px; border-radius: 36px; background: #111210; box-shadow: 0 30px 60px -28px rgba(18, 19, 17, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); position: relative; }
.phone::before { content: ""; position: absolute; z-index: 1; top: 14px; left: 50%; width: 30%; height: 16px; transform: translateX(-50%); border-radius: 99px; background: #111210; }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 29px; }

.poster {
  position: relative; aspect-ratio: 3 / 4; max-width: 100%;
  border-radius: 6px; overflow: hidden; background: var(--gold); box-shadow: 0 30px 60px -30px rgba(18, 19, 17, .45);
}
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; mix-blend-mode: multiply; }
.poster figcaption { position: absolute; inset: 0; padding: 7%; display: grid; grid-template-rows: auto 1fr auto; color: var(--ink); }
.poster__kicker { font: 500 .62rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; }
.poster strong { align-self: end; font: 800 clamp(2.6rem, 7vw, 4.6rem)/.86 var(--f-display); letter-spacing: -.03em; }
.poster__foot { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: .6rem; border-top: 1.5px solid var(--ink); font: 500 .66rem/1 var(--f-mono); letter-spacing: .1em; }

.brandsheet { background: var(--paper); border-radius: 6px; padding: 7% 8%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; box-shadow: 0 30px 60px -30px rgba(18, 19, 17, .3); }
.tile--wide .brandsheet { margin: var(--pad) var(--pad) var(--pad) 0; }
.brandsheet__logo { width: 80%; margin-inline: auto; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.swatches li { display: grid; gap: 4px; font-size: .72rem; color: var(--ink-2); }
.swatches li::before { content: ""; aspect-ratio: 16 / 10; border-radius: 6px; background: var(--sw); box-shadow: inset 0 0 0 1px var(--line); }
.swatches code { font: 400 .62rem/1 var(--f-mono); color: var(--mute); }

.sv__more { margin-top: clamp(40px, 7vh, 72px); display: grid; justify-items: center; gap: 1.1rem; text-align: center; }
.sv__more p { font-size: var(--step-1); color: var(--ink-2); max-width: 30em; }
.sv__more .pill { padding: .75em 1.4em; }

@media (max-width: 820px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--wide { grid-template-columns: minmax(0, 1fr); }
  .tile__media { min-height: 0; aspect-ratio: 16 / 10; }
  .tile--wide .brandsheet { margin: 0 var(--pad) var(--pad); }
  .phone { width: min(56%, 230px); }
}
@media (max-width: 480px) { .brandsheet { grid-template-columns: minmax(0, 1fr); } .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .timeline__head { animation: none; } }

/* Process: steps on the right; on wide screens each step's board shows in the pinned panel on the left. */
.process { padding-block: clamp(90px, 14vh, 160px); background: var(--ink); color: var(--paper); }
.process .eyebrow { color: rgba(247, 246, 242, .55); }
.process .display { margin-top: 1rem; }
.process__lede { margin: 1.4rem auto 0; max-width: 30em; text-align: center; font-size: var(--step-1); line-height: 1.6; color: rgba(247, 246, 242, .7); text-wrap: balance; }
.process__grid { margin-top: clamp(48px, 8vh, 90px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); }
.process__visual { position: sticky; top: calc(var(--nav-h) + 6vh); height: min(74vh, 620px); }
.process__visual .pboard { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.process__visual .pboard.is-active { opacity: 1; transform: none; pointer-events: auto; }
.process__steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 64vh; display: grid; align-content: center; gap: .8rem; color: rgba(247, 246, 242, .35); transition: color .4s ease; }
.step.is-active { color: var(--paper); }
.step__n { font: 500 .8rem/1 var(--f-mono); letter-spacing: .14em; color: var(--gold); }
.step h3 { font: 900 var(--step-2)/1.15 var(--f-body); }
.step h3 small { font: 500 .5em/1 var(--f-display); letter-spacing: .02em; margin-left: .4em; opacity: .7; }
.step p { max-width: 24em; font-size: var(--step-1); line-height: 1.55; }
.step .step__get { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: baseline; font-size: 1rem; }
.step__get span { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.step__get b { font-weight: 700; }

/* Board 1: the brief, as a paper document */
.brief { width: min(100%, 460px); padding: clamp(22px, 3vw, 34px); background: var(--paper); color: var(--ink); border-radius: 6px; transform: rotate(-1.2deg); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); position: relative; }
.brief__head { display: flex; justify-content: space-between; padding-bottom: .8rem; margin-bottom: 1rem; border-bottom: 1.5px solid var(--ink); font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; }
.brief dl { margin: 0; display: grid; gap: .75rem; }
.brief dl div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: .8rem; }
.brief dt { font: 500 .78rem/1.6 var(--f-mono); color: var(--mute); }
.brief dd { margin: 0; font-weight: 600; line-height: 1.5; }
.brief__logo { width: 112px; margin: 1.2rem 0 0 auto; display: block; }

/* Board 2: the shot list */
.shots { width: min(100%, 560px); padding: 18px; border-radius: 12px; background: #1b1c19; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); }
.shots__head { display: flex; justify-content: space-between; margin-bottom: 12px; font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; color: rgba(247, 246, 242, .55); }
.shots ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shots li { display: grid; grid-template-columns: 72px 2.2em minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 4px; border-radius: 6px; background: rgba(247, 246, 242, .04); }
.shots li img { grid-row: 1 / 3; width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.shots__n { grid-row: 1 / 3; font: 500 .8rem/1 var(--f-mono); color: var(--gold); }
.shots__cam { font: 500 .62rem/1.3 var(--f-mono); letter-spacing: .08em; color: rgba(247, 246, 242, .5); }
.shots__desc { font-size: .88rem; line-height: 1.3; color: var(--paper); }

/* Board 3: raw AI shots */
.raw { width: 100%; }
.raw__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.raw__grid figure { margin: 0; position: relative; border-radius: 6px; overflow: hidden; }
.raw__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.raw__grid figcaption { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 4px; background: rgba(18, 19, 17, .7); font: 500 .58rem/1.4 var(--f-mono); letter-spacing: .08em; color: var(--paper); }
.raw__note { margin-top: 12px; font: 500 .75rem/1.5 var(--f-mono); color: rgba(247, 246, 242, .55); max-width: none; }

/* Board 4: drag to compare the grade */
.grade { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); }
.grade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grade__before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.grade__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.grade__line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font: 700 .9rem/1 var(--f-display); letter-spacing: .1em; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.grade__tag { position: absolute; top: 12px; padding: .3em .7em; border-radius: 99px; background: rgba(18, 19, 17, .62); color: #fff; font: 500 .72rem/1.2 var(--f-body); pointer-events: none; }
.grade__tag--before { left: 12px; }
.grade__tag--after { right: 12px; }
.grade__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.grade:has(.grade__range:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }

.specs { margin: clamp(60px, 10vh, 110px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border-top: 1px solid rgba(247, 246, 242, .16); padding-top: 32px; }
.specs div { display: grid; gap: .3rem; align-content: start; }
.specs dt { font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .12em; color: rgba(247, 246, 242, .55); }
.specs dd { margin: 0; font: 800 var(--step-3)/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.specs dd small { font-size: .38em; font-weight: 500; margin-left: .15em; color: rgba(247, 246, 242, .6); }
.specs__note { margin-top: 1.2rem; font-size: .85rem; color: rgba(247, 246, 242, .5); }
@media (max-width: 820px) {
  .process__grid { grid-template-columns: minmax(0, 1fr); }
  .process__visual { display: none; }
  .step { min-height: 0; padding-block: 28px; color: var(--paper); }
  .step .pboard { margin-top: .8rem; display: grid; justify-items: center; }
  .brief { transform: none; }
  .raw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Contact: details left, enquiry form right, on gold. */
.contact { background: var(--gold); padding-block: clamp(90px, 14vh, 170px); }
.contact__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact__copy { display: grid; gap: 1.2rem; align-content: start; }
.contact .eyebrow { color: rgba(18, 19, 17, .6); }
.contact .lede { color: rgba(18, 19, 17, .78); }
.contact__facts { margin: .6rem 0 0; display: grid; gap: .55rem; padding-top: 1.1rem; border-top: 1.5px solid rgba(18, 19, 17, .2); }
.contact__facts div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 1rem; }
.contact__facts dt { font: 500 .78rem/1.7 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(18, 19, 17, .6); }
.contact__facts dd { margin: 0; font-weight: 600; }
.contact__direct { display: grid; gap: .5rem; justify-items: start; margin-top: .4rem; }
.contact__direct > p:first-child { font-size: .9rem; color: rgba(18, 19, 17, .7); }
.contact__detail { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font: 500 .95rem/1.5 var(--f-mono); color: rgba(18, 19, 17, .75); }
.contact__addr { user-select: all; -webkit-user-select: all; color: var(--ink); }
.contact__copy-btn { border: 0; padding: .3em .8em; border-radius: 999px; background: rgba(18, 19, 17, .1); color: var(--ink); font: 500 .8rem/1.2 var(--f-body); cursor: pointer; }
.contact__copy-btn:hover { background: rgba(18, 19, 17, .16); }

.enquiry { display: grid; gap: 14px; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--paper); box-shadow: 0 40px 80px -40px rgba(18, 19, 17, .45); }
.enquiry__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); min-width: 0; }
.field small { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: .75em .9em; border: 1.5px solid rgba(18, 19, 17, .16); border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--f-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.2em; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121311' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .9em center; }
.field textarea { resize: vertical; min-height: 7.5em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(244, 180, 0, .45); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.field ::placeholder { color: #a5a39b; }
.enquiry__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 4px; }
.enquiry__send { padding: .85em 1.6em; font-size: 1rem; }
.enquiry__send:disabled { opacity: .6; cursor: progress; }
.enquiry__note { font-size: .8rem; color: var(--mute); }
.enquiry__status { font-size: .92rem; line-height: 1.5; }
.enquiry__status:empty { display: none; }
.enquiry__status[data-kind="ok"] { color: #1d6b38; font-weight: 600; }
.enquiry__status[data-kind="error"] { color: #b3261e; font-weight: 600; }

@media (max-width: 820px) {
  .contact__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .enquiry__row { grid-template-columns: minmax(0, 1fr); } }

/* Footer: brand, three link columns, then a bar with ©, privacy, language and back to top. */
.footer { padding-block: clamp(48px, 8vh, 80px) calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.footer__brand { display: grid; gap: .8rem; align-content: start; }
.footer__col { display: grid; gap: .55rem; align-content: start; }
.footer__col h2 { margin-bottom: .2rem; font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.footer__col a { color: var(--ink-2); text-decoration: none; width: fit-content; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__col p { color: var(--ink-2); }
.footer__mail { color: var(--ink) !important; font: 500 .85rem/1.4 var(--f-mono); }
.footer__bar { margin-top: clamp(36px, 6vh, 56px); padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; font-size: .82rem; color: var(--mute); }
.footer__bar a { color: var(--ink-2); text-decoration: none; }
.footer__bar a:hover { color: var(--ink); text-decoration: underline; }
.footer__bar a[aria-current="page"] { color: var(--ink); }
.footer__bar .lang { margin-left: auto; }
.footer__bar .lang a { text-decoration: none; }
.footer__top { white-space: nowrap; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__bar .lang { margin-left: 0; } }

/* Privacy page */
.doc { padding-block: clamp(56px, 10vh, 120px); }
.doc__body { max-width: 760px; }
.doc__body .display { margin-top: 1rem; }
.doc__updated { margin-top: 1rem; font: 500 .8rem/1.4 var(--f-mono); color: var(--mute); }
.doc__body h2 { margin-top: 2.6rem; font: 800 var(--step-1)/1.3 var(--f-body); }
.doc__body p { margin-top: .7rem; max-width: 36em; color: var(--ink-2); line-height: 1.8; }
.doc__body p a { color: var(--ember); }
:lang(en) .doc__body h2 { font-family: var(--f-display); letter-spacing: -.01em; }

/* Player */
.player { width: min(1200px, 94vw); padding: 0; border: 0; border-radius: 18px; background: #000; overflow: hidden; }
.player::backdrop { background: rgba(10, 10, 9, .86); backdrop-filter: blur(6px); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* Reveal: elements rest visible; JS only adds the entrance. */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film__track { height: auto; }
  .film__sticky { position: relative; top: 0; height: auto; aspect-ratio: 16 / 9; }
  .film__frame { transform: none; }
  .js .film__fallback { opacity: 1; }
  .film__canvas, .film__hud, .captions, .film__cue { display: none; }
  .film__watch { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .process__visual img { transition: none; }
}

/* English page: Latin display face for the big lines; the Chinese accents stay upright. */
:root:lang(en) { --f-body: "Schibsted Grotesk", "Noto Sans TC", "PingFang TC", "Helvetica Neue", Arial, sans-serif; }
:lang(en) .film__title { font-size: clamp(2.6rem, 1rem + 6.4vw, 6.6rem); }
:lang(en) .film__title { font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
:lang(en) .film__en { font-family: var(--f-body); font-weight: 700; letter-spacing: .08em; }
:lang(en) .captions b { font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; }
:lang(en) .captions i { font-family: var(--f-body); font-style: normal; font-weight: 700; letter-spacing: .1em; }
:lang(en) .statement__text { font-family: var(--f-display); font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
:lang(en) .tile h3, :lang(en) .step h3, :lang(en) .hl__copy p { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; }
:lang(en) .step h3 small { font-family: var(--f-body); font-weight: 500; }
:lang(en) .display { letter-spacing: -.035em; }
:lang(en) .hl__more h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; }
:lang(en) .brief dl div { grid-template-columns: 5.5em minmax(0, 1fr); }
:lang(en) .pillars h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.015em; }

/* 404 page */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 48px var(--gutter); text-align: center; }
.lost__mark { width: min(40vw, 200px); height: auto; opacity: .9; }
.lost__en { font: 500 var(--step-1)/1.4 var(--f-display); color: var(--ink-2); }
.lost__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: .8rem; }
.lost__links .pill { padding: .8em 1.4em; }
