:root {
  --white: #fff;
  --ink: #555;
  --mid: #707070;
  --pale: #a8a8a8;
  --line: #dedede;
  --surface: #fff;
  --surface-muted: #fff;
  --copy: #666;
  --copy-soft: #747474;
  --max-width: 70rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

html[data-theme="dark"] {
  --white: #0b0d0e;
  --ink: #d7d7d7;
  --mid: #b8b8b8;
  --pale: #787b7d;
  --line: #272a2c;
  --surface: #0b0d0e;
  --surface-muted: #0b0d0e;
  --copy: #a8aaac;
  --copy-soft: #919496;
  color-scheme: dark;
}

a { color: inherit; }

.theme-toggle {
  position: fixed;
  z-index: 9;
  top: clamp(1rem, 2.5vw, 2rem);
  left: clamp(1rem, 2.5vw, 2rem);
  min-width: 3.6rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--mid);
  font: 600 .6rem/1 inherit;
  letter-spacing: .1em;
  cursor: pointer;
  opacity: .76;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color .25s ease, border-color .25s ease, background-color .35s ease, opacity .25s ease, transform .25s ease;
}

.theme-toggle:hover {
  border-color: var(--line);
  color: var(--ink);
  opacity: 1;
  transform: translateY(-1px);
}
.theme-toggle:focus-visible {
  border-color: var(--line);
  opacity: 1;
  outline: 2px solid var(--mid);
  outline-offset: .25rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
  transition: background-color .35s ease;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 58rem);
  min-height: 100svh;
  padding-inline: var(--gutter);
  text-align: center;
}

.hero__title {
  margin: 0 0 clamp(5rem, 10vh, 7rem);
  color: var(--pale);
  font-size: clamp(3.7rem, 6.1vw, 5.4rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.hero__title > span { display: inline-block; }
.multiply { margin-inline: .13em; color: var(--ink); font-weight: 200; }

.word--web { animation: word-in 1s .05s both cubic-bezier(.2,.75,.2,1); }
.multiply { animation: multiply-in .75s .45s both cubic-bezier(.2,.75,.2,1); }
.word--movie { animation: word-in 1s .22s both cubic-bezier(.2,.75,.2,1); }

.identity { color: var(--pale); }
.identity p { margin: 0; }
.identity__production {
  font-size: clamp(.8rem, 1.3vw, 1.18rem);
  font-weight: 600;
  letter-spacing: .68em;
  text-indent: .68em;
}
.identity__brand {
  display: inline-block;
  margin-top: clamp(1.2rem, 2.5vh, 1.8rem);
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  letter-spacing: .045em;
  text-decoration: none;
}
.identity__brand strong { color: var(--mid); font-weight: 500; }
.identity__brand span { font-weight: 300; }
.identity__place {
  margin-top: .45rem !important;
  font-size: clamp(.9rem, 1.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-indent: .22em;
}
.identity__since {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: clamp(.78rem, 1.3vw, 1.15rem);
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
}
.identity a { transition: color .25s ease; }
.identity a:hover, .identity a:focus-visible { color: #333; }
.identity a:focus-visible, .scroll-cue:focus-visible { outline: 2px solid #555; outline-offset: .35rem; }

.reveal { animation: fade-up .9s both cubic-bezier(.2,.75,.2,1); }
.identity__production { animation-delay: .62s; }
.identity__brand { animation-delay: .73s; }
.identity__place { animation-delay: .84s; }
.identity__since { animation-delay: .95s; }

.scroll-cue {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: 1.25rem;
  color: var(--pale);
  font-size: .62rem;
  letter-spacing: .28em;
  text-decoration: none;
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  display: block;
  width: 1px;
  height: 2.5rem;
  margin: .7rem auto 0;
  background: var(--pale);
  content: "";
  animation: line-pulse 1.8s infinite ease-in-out;
}

.section { padding: clamp(6rem, 13vw, 11rem) var(--gutter); }
.section__inner { width: min(100%, var(--max-width)); margin-inline: auto; }
.section__label {
  margin: 0 0 2rem;
  color: var(--pale);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .36em;
  text-transform: uppercase;
}
.section h2 {
  margin: 0;
  color: var(--mid);
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.045em;
}
.section__lead {
  max-width: 42rem;
  margin: clamp(2.5rem, 6vw, 5rem) 0 0 auto;
  color: var(--copy);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 2.15;
}
.section--services { border-top: 1px solid var(--line); }
.services {
  display: grid;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: minmax(3rem, .5fr) minmax(8rem, .8fr) 1.5fr;
  gap: 2rem;
  align-items: baseline;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.service__number { color: var(--pale); font-size: .72rem; letter-spacing: .15em; }
.service h3 { margin: 0; color: var(--mid); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 400; }
.service p { margin: 0; color: var(--copy-soft); font-size: .95rem; line-height: 1.9; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--pale);
}
.footer p { display: grid; gap: .35rem; margin: 0; }
.footer strong { color: var(--mid); font-weight: 500; letter-spacing: .05em; }
.footer span, .footer small { font-size: .68rem; letter-spacing: .12em; }

.reveal-on-scroll { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }

@keyframes word-in { from { opacity: 0; transform: translateY(.5em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes multiply-in { from { opacity: 0; transform: rotate(-35deg) scale(.65); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(.9rem); } to { opacity: 1; transform: none; } }
@keyframes line-pulse { 0%,100% { transform: scaleY(.35); transform-origin: top; opacity: .35; } 50% { transform: scaleY(1); transform-origin: top; opacity: 1; } }

@media (max-width: 42rem) {
  .hero__inner { min-height: 100svh; }
  .hero__title {
    display: inline-grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto auto;
    justify-content: center;
    justify-items: center;
    align-items: center;
    margin-bottom: clamp(3.75rem, 8vh, 5rem);
    font-size: clamp(2.9rem, 14vw, 3.7rem);
    line-height: 1;
    white-space: normal;
  }
  .word { display: block !important; }
  .word--web { grid-area: 1 / 1; }
  .multiply {
    grid-area: 2 / 1;
    position: static;
    margin: .32em 0 .12em;
    font-size: .72em;
  }
  .word--movie {
    grid-area: 3 / 1;
    margin-top: 0;
  }
  .word--web { animation-duration: 1.25s; animation-delay: .15s; }
  .multiply { animation-duration: 1.05s; animation-delay: .85s; }
  .word--movie { animation-duration: 1.25s; animation-delay: 1.35s; }
  .identity__production { animation-duration: 1.1s; animation-delay: 2.05s; }
  .identity__brand { animation-duration: 1.1s; animation-delay: 2.35s; }
  .identity__place { animation-duration: 1.05s; animation-delay: 2.65s; }
  .identity__since { animation-duration: 1.05s; animation-delay: 2.9s; }
  .identity__production { letter-spacing: .58em; text-indent: .58em; }
  .identity__brand { font-size: clamp(1.4rem, 7.2vw, 1.85rem); white-space: nowrap; }
  .scroll-cue { display: none; }
  .service { grid-template-columns: 2.5rem 1fr; gap: 1.25rem; }
  .service p { grid-column: 2; }
  .footer { align-items: start; flex-direction: column; }
}

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