
/* Layout: a twelve-column page. Labels sit in the left half, what they introduce starts at the
   seventh column. The film opens and closes the page; Work is the one dark room in between. */
@property --bg   { syntax: '<color>'; inherits: true; initial-value: #f7f6f2; }
@property --fg   { syntax: '<color>'; inherits: true; initial-value: #0d0f14; }
@property --mid  { syntax: '<color>'; inherits: true; initial-value: #5c5f68; }
@property --rule { syntax: '<color>'; inherits: true; initial-value: #d8d7d0; }

:root {
  /* constants */
  --paper: #f7f6f2;
  --ink: #0d0f14;
  --cobalt: #1d35f0;      /* hyperlink blue, the web's first public colour */
  --mist: #c8d0ff;
  --on-ink-mid: #a4a8b3;
  --on-ink-rule: #2b2e37;

  /* tone tokens: flip together when the page turns dark */
  --bg: #f7f6f2;
  --fg: #0d0f14;
  --mid: #5c5f68;
  --rule: #d8d7d0;
  --focus: #1d35f0;

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 28px);
  --col-gap: clamp(12px, 1.6vw, 24px);
  --radius: 6px;
  --ease: cubic-bezier(.5, .3, 0, 1);

  color-scheme: light;
  scroll-behavior: smooth;
  transition: --bg .7s var(--ease), --fg .7s var(--ease), --mid .7s var(--ease), --rule .7s var(--ease);
}
:root[data-tone="dark"] {
  --bg: #0d0f14;
  --fg: #f7f6f2;
  --mid: #a4a8b3;
  --rule: #2b2e37;
  --focus: #9fb0ff;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 450 16px/1.35 var(--sans);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
a { color: inherit; }
p, h1, h2, h3, h4, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 450; font-size: inherit; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* type scale */
.t-display { font-size: clamp(2.15rem, 1.05rem + 4.3vw, 5.3rem); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.t-title { font-size: clamp(1.85rem, 1.2rem + 2.3vw, 3.4rem); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.t-lead { font-size: clamp(1.4rem, 1.05rem + 1.35vw, 2.15rem); line-height: 1.15; letter-spacing: -.02em; }
.t-row { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.95rem); line-height: 1.1; letter-spacing: -.02em; }
.t-small { font-size: .8125rem; letter-spacing: 0; }

/* grid */
.wrap { padding-inline: var(--gutter); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.g12 > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 860px) {
  .g12 > .c-l { grid-column: 1 / 6; }
  .g12 > .c-r { grid-column: 7 / -1; }
}

/* sections rise a little as they come into view; they are never hidden */
.rise { transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rise.is-below { transform: translateY(40px); }

/* ---------- header: wordmark left, plain links from the sixth column, contact right ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--gutter) 16px;
  color: var(--ink); font-size: 1rem; line-height: 1.2;
  transition: transform .55s var(--ease), background-color .45s var(--ease), color .35s var(--ease);
}
.hdr[data-on="dark"] { color: var(--paper); }
/* glass, only once the page has moved on and the bar comes back */
.hdr.is-solid { background: rgb(247 246 242 / .6); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.hdr.is-solid[data-on="dark"] { background: rgb(13 15 20 / .42); }
.hdr.is-hidden { transform: translateY(-110%); }
.hdr a { text-decoration: none; transition: opacity .25s var(--ease); }
.hdr__logo { grid-column: 1 / 5; justify-self: start; display: block; line-height: 0; }
.hdr__logo svg { display: block; height: 38px; width: auto; aspect-ratio: 1050 / 532; }
.hdr__nav { grid-column: 6 / 11; display: flex; gap: clamp(18px, 2.2vw, 30px); }
.hdr__nav:hover a { opacity: .5; }
.hdr__nav a:hover, .hdr__nav a:focus-visible { opacity: 1; }
.hdr__cta { grid-column: 11 / -1; justify-self: end; }
.hdr__cta:hover { opacity: .5; }
.hdr__menu { display: none; grid-column: 9 / -1; justify-self: end; margin-right: -4px; padding: 10px 4px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
@media (max-width: 859px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__logo { grid-column: 1 / 9; }
  .hdr__menu { display: block; }
}
:root[data-menu="open"] .hdr { color: var(--paper); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

/* ---------- menu (phones): a plain list that fills the screen ---------- */
.menu {
  position: fixed; inset: 0; z-index: 20;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(env(safe-area-inset-top, 0px) + 104px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
  overflow-y: auto;
  animation: menu-in .35s var(--ease);
}
@keyframes menu-in { from { opacity: 0; } }
.menu__nav a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0 17px; border-top: 1px solid var(--on-ink-rule);
  text-decoration: none; font-size: clamp(2rem, 9.5vw, 3.2rem); line-height: 1.04; letter-spacing: -.025em;
  animation: rise-in .6s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 90ms);
}
.menu__nav a:last-child { border-bottom: 1px solid var(--on-ink-rule); }
.menu__nav a .ico { width: 22px; height: 22px; align-self: center; opacity: .55; }
.menu__foot { display: grid; gap: 4px; color: var(--on-ink-mid); }
.menu__mail { color: var(--paper); text-decoration: none; overflow-wrap: anywhere; }

/* ---------- film: light drifting behind fluted glass, drawn on canvas ---------- */
.film { position: relative; overflow: hidden; isolation: isolate; background: #060814; }
.film__in { position: absolute; inset: -12% 0; will-change: transform; }
.film__in canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film__grain { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: .4; }
.film--floor::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgb(6 8 20 / .74), rgb(6 8 20 / 0) 62%);
}

/* ---------- intro: the film holds still, then dissolves into the page colour as the premise arrives ---------- */
.intro { --vh: 100vh; --screen: min(var(--vh), 1100px); position: relative; }
@supports (height: 100svh) { .intro { --vh: 100svh; } }
.film.intro__film { position: sticky; top: 0; height: var(--screen); }
.intro__film .film__in { animation: film-in 1.6s ease both; }
@keyframes film-in { from { opacity: 0; } }
.intro__film::before {            /* a soft floor for the headline to read against */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgb(6 8 20 / .74), rgb(6 8 20 / 0) 62%);
}
.intro__film::after {             /* the veil: the film fades to paper as the page moves on */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--paper); opacity: var(--veil, 0);
}
.hero { position: relative; z-index: 2; height: var(--screen); margin-top: calc(var(--screen) * -1); display: flex; align-items: flex-end; color: var(--paper); }
.hero__in { width: 100%; display: grid; gap: clamp(28px, 5vh, 60px); padding-bottom: clamp(18px, 2.6vw, 30px); }
.hero__h { max-width: 13.2em; }
.hero__foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 14px; border-top: 1px solid rgb(255 255 255 / .3); font-size: .875rem;
  animation: rise-in .9s var(--ease) both; animation-delay: .75s;
}
.hero__foot a { display: inline-flex; align-items: center; gap: .35em; text-decoration: none; }
.w { display: inline-block; }
.is-split .w { animation: rise-in .85s var(--ease) both; animation-delay: calc(var(--i) * 24ms + 250ms); }
@keyframes rise-in { from { opacity: 0; transform: translateY(.45em); } }

/* the premise is read by scrolling, on paper: the scene holds and the words turn from grey to ink in order */
.read { position: relative; z-index: 2; height: min(calc(var(--vh) * 2.5), 2500px); color: var(--ink); }
.no-scrollfx .read { background: var(--paper); }
/* when the page cannot scroll inside its frame, scenes lie flat and take a sensible screen height */
.no-scrollfx .intro, .no-scrollfx .svcs { --vh: var(--vh-fix, 800px); }
.no-scrollfx .read, .no-scrollfx .svcs { height: auto; }
.no-scrollfx .read__pin, .no-scrollfx .svcs__pin { position: static; height: auto; padding-block: 96px; }
.read__pin {
  position: sticky; top: 0; height: var(--screen);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 34px);
  padding-top: 56px;
}
.read__label { opacity: .6; }
.read__text {
  display: grid; gap: .62em; max-width: 20em;
  font-size: clamp(1.3rem, min(.9rem + 2.9vw, 5vh), 3.9rem); line-height: 1.1; letter-spacing: -.025em;
}
.read__text .w { opacity: .2; transition: opacity .3s linear; }
.read__text .w.on { opacity: 1; }

/* ---------- sections ---------- */
.sx { padding-top: clamp(96px, 13vw, 210px); }
.sx__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 14px; border-top: 1px solid var(--rule);
  margin-bottom: clamp(36px, 6vw, 92px);
}
.sx__head span { color: var(--mid); }
.sx__lead { margin-bottom: clamp(36px, 5vw, 76px); max-width: 13em; }
.more { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; }
.more .ico { transition: transform .35s var(--ease); }
.more:hover .ico { transform: translateX(4px); }

/* services: one full-screen scene. The page holds while each of the five takes its turn */
.svcs { --vh: 100vh; --screen: min(var(--vh), 1100px); height: calc(var(--screen) + min(var(--vh) * 2.1, 2100px)); margin-top: clamp(40px, 8vh, 96px); }
@supports (height: 100svh) { .svcs { --vh: 100svh; } }
.svcs__pin {
  position: sticky; top: 0; height: var(--screen);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 12px;
  padding-top: clamp(84px, 12vh, 116px); padding-bottom: clamp(18px, 3vh, 34px);
}
.svcs__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; }
.svcs__lead { grid-column: 1 / -1; color: var(--mid); }
.svcs__count { color: var(--mid); }
.svcs__count b { font-weight: inherit; color: var(--fg); }
.svcs__body { align-self: center; min-height: 0; }
.svc { position: relative; }
.svc__t {
  display: flex; align-items: baseline; width: 100%; padding: .15em 0;
  background: none; border: 0; color: inherit; cursor: pointer; text-align: left;
  font: inherit; font-size: clamp(1.5rem, min(1rem + 2.4vw, 6.4vh), 3.4rem); line-height: 1.12; letter-spacing: -.025em;
  opacity: .24; transition: opacity .45s var(--ease);
}
.svc__t:hover { opacity: .6; }
.svc__row.is-on .svc__t { opacity: 1; }
.svc__n { flex: none; width: 2.4rem; color: var(--mid); font-size: .8125rem; letter-spacing: 0; }
.svc__d {
  display: grid; grid-template-rows: 0fr; opacity: 0; padding-left: 2.4rem;
  transition: grid-template-rows .55s var(--ease), opacity .4s var(--ease);
}
.svc__row.is-on .svc__d { grid-template-rows: 1fr; opacity: 1; }
.svc__din { min-height: 0; overflow: hidden; max-width: 34em; }
.svc__k { margin-top: 6px; font-size: 1.125rem; letter-spacing: -.01em; }
.svc__b { margin: 6px 0 16px; color: var(--mid); }
.no-scrollfx .svc__t { opacity: 1; }
.no-scrollfx .svc__d { grid-template-rows: 1fr; opacity: 1; }
@media (min-width: 860px) {
  .svcs__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .svcs__head h2 { grid-column: 1 / 7; }
  .svcs__lead { grid-column: 7 / 12; grid-row: 1; }
  .svcs__count { grid-column: 12; grid-row: 1; justify-self: end; }
}
@media (min-width: 860px) and (prefers-reduced-motion: no-preference) {
  /* wide screens: names on the left, the one being read opens on the right */
  :root:not(.no-scrollfx) .svc__row { width: calc(50% - var(--col-gap) / 2); }
  :root:not(.no-scrollfx) .svc__d {
    position: absolute; top: 50%; left: calc(50% + var(--col-gap) / 2); right: 0;
    grid-template-rows: 1fr; padding-left: 0; pointer-events: none;
    transform: translateY(calc(-50% + 16px));
    transition: opacity .45s var(--ease), transform .65s var(--ease);
  }
  :root:not(.no-scrollfx) .svc__row.is-on .svc__d { transform: translateY(-50%); pointer-events: auto; }
  :root:not(.no-scrollfx) .svc__din { max-width: 30em; overflow: visible; }
  :root:not(.no-scrollfx) .svc__k { margin-top: 0; font-size: clamp(1.4rem, 1.05rem + 1.35vw, 2.15rem); line-height: 1.15; letter-spacing: -.02em; }
  :root:not(.no-scrollfx) .svc__b { margin: 16px 0 0; font-size: 1.125rem; line-height: 1.4; max-width: 30em; }
}

/* work */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.work { display: grid; gap: 12px; min-width: 0; text-decoration: none; }
.work__cap { display: flex; justify-content: space-between; gap: 12px; }
.work__cap span + span { color: var(--mid); }
.work__cover { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); overflow: hidden; }
.work__cover > * { transition: transform 1.2s var(--ease); }
.work:hover .work__cover > * { transform: scale(1.04); }
.work__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .works {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .works::-webkit-scrollbar { display: none; }
  .work { flex: none; width: 76vw; scroll-snap-align: start; }
}

/* studio */
.defn { row-gap: 20px; }
.defn__term { display: grid; gap: 2px; align-content: start; }
.defn__term span { color: var(--mid); font-size: 1rem; letter-spacing: 0; }
.defn__body { display: grid; gap: clamp(22px, 3vw, 40px); }
.defn__more { max-width: 30em; font-size: 1.125rem; line-height: 1.4; letter-spacing: -.005em; color: var(--mid); }
.how { margin-top: clamp(72px, 10vw, 150px); }
.how__label { margin-bottom: 16px; }
.how__cols { display: grid; gap: 0 var(--col-gap); }
.how__cols > div { display: grid; gap: 12px; align-content: start; padding: 16px 0 28px; border-top: 1px solid var(--rule); }
.how__cols p { color: var(--mid); max-width: 24em; }
@media (min-width: 860px) {
  .how__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how__cols > div { padding-bottom: 0; }
}

/* ---------- contact: one address, set large, that opens a new message ---------- */
.contact {
  margin-top: clamp(96px, 13vw, 210px);
  padding: clamp(64px, 8vw, 120px) 0 clamp(48px, 6vw, 96px);
  background: var(--ink); color: var(--paper);
}
.contact__head { padding-top: 14px; border-top: 1px solid var(--on-ink-rule); margin-bottom: clamp(36px, 6vw, 92px); }
.contact__lead { margin-bottom: clamp(36px, 5vw, 76px); max-width: 13em; }
.contact__mail {
  display: flex; justify-content: space-between; align-items: baseline; gap: .35em;
  padding: .3em 0 .36em; border-block: 1px solid var(--on-ink-rule);
  text-decoration: none; font-size: clamp(1.3rem, 6.1vw, 5.6rem); line-height: 1.05; letter-spacing: -.03em;
  transition: border-color .4s var(--ease);
}
.contact__mail:hover { border-color: var(--paper); }
.contact__addr { min-width: 0; overflow-wrap: anywhere; }
.contact__go { width: .62em; height: .62em; align-self: center; stroke-width: 1.4; transition: transform .45s var(--ease); }
.contact__mail:hover .contact__go { transform: translate(.14em, -.14em); }
.contact__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px;
  margin-top: 14px; color: var(--on-ink-mid);
}
.contact__copy {
  padding: 8px 0; background: none; border: 0; cursor: pointer;
  color: var(--paper); font: inherit;
  text-decoration: underline; text-decoration-color: var(--on-ink-mid); text-underline-offset: .28em;
  transition: text-decoration-color .25s var(--ease);
}
.contact__copy:hover { text-decoration-color: var(--paper); }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--paper); padding: clamp(28px, 4vw, 48px) 0 calc(env(safe-area-inset-bottom, 0px) + 22px); }
.ftr .g12 { row-gap: 36px; align-items: start; }
.ftr__mark { line-height: 0; }
.ftr__mark { display: inline-block; }
.ftr__mark svg { display: block; height: 60px; width: auto; aspect-ratio: 1050 / 532; }
.ftr__col { line-height: 1.5; }
.ftr__col span, .ftr__nav a { display: block; }
.ftr__col span + span, .ftr__nav a { color: var(--on-ink-mid); }
.ftr__nav { line-height: 1.5; }
.ftr__nav a { text-decoration: none; transition: color .25s var(--ease); }
.ftr__nav a:hover { color: var(--paper); }
.ftr__base {
  margin-top: clamp(44px, 6vw, 84px); padding-top: 14px; border-top: 1px solid var(--on-ink-rule);
  display: flex; justify-content: space-between; gap: 16px; color: var(--on-ink-mid);
}
.ftr__base a { display: inline-flex; align-items: center; gap: .35em; text-decoration: none; }
@media (min-width: 860px) {
  .ftr .g12 > div:first-child { grid-column: 1 / 6; }
  .ftr .g12 > .ftr__col { grid-column: 7 / 10; }
  .ftr .g12 > .ftr__nav { grid-column: 10 / -1; }
}

@media (max-width: 560px) {
  .hdr__logo svg { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .menu, .is-split .w, .hero__foot, .intro__film .film__in { animation: none; }
  .read { height: auto; background: var(--paper); }
  .read__pin, .svcs__pin { position: static; height: auto; padding-block: 18vh; }
  .svcs { height: auto; }
  .svc__t { opacity: 1; }
  .svc__d { grid-template-rows: 1fr; opacity: 1; }
}
