@font-face {
  font-family: Inter;
  src: url("work/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --panel: #0d0d0d;
  --white: #fff;
  --ink: #f4f4f2;
  --grey: #6b6b6b;
  --muted: #8f8f8a;
  --line: #1f1f1f;

  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --text: "Suisse Intl", Inter, Arial, sans-serif;

  --gutter: clamp(1rem, 2.6vw, 2.5rem);
  --radius: clamp(0.5rem, 0.8vw, 0.75rem);
  --space: clamp(7rem, 16vw, 16rem);
}

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

html { background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font: 500 1rem / 1.1 var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
img, video { display: block; }
a { color: inherit; text-decoration: none; }
:is(a, .reel):focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
::selection { background: var(--white); color: var(--black); }

/* =========================================================
   Intro (version 1): 1 -> 2 -> beers -> .design
   ========================================================= */
.intro {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: var(--gutter);
  overflow: hidden;
}

.word {
  display: flex;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 400;
  font-size: calc((100vw - 2 * var(--gutter)) / 6.95);
  line-height: 0.8;
  padding-bottom: 0.12em;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: var(--white);
  animation: glitch 7s steps(1) 5s infinite;
}

.digit { display: inline-grid; }
.digit > span { grid-area: 1 / 1; }

.d1 { opacity: 0; animation: flicker-in 0.9s steps(1) 0.3s forwards, cut 0s 1.5s forwards; }
.d2 { opacity: 0; animation: slam 0.35s steps(1) 1.5s forwards; }
.beers { opacity: 0; animation: flicker-in 0.7s steps(1) 2.1s forwards; }
.tld {
  color: var(--grey);
  clip-path: inset(-0.4em 100% -0.4em 0);
  animation: type 0.7s steps(7) 3s forwards;
}
.cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.72em;
  margin-left: 0.05em;
  background: var(--white);
  opacity: 0;
  animation: blink 0.8s steps(1) 3.7s infinite;
}

.flash {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--white);
  visibility: hidden;
  pointer-events: none;
  animation: flash 0.16s steps(1) 1.5s;
}

.tag {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: flicker-in 0.6s steps(1) forwards;
}
.t1 { top: var(--gutter); left: var(--gutter); animation-delay: 3.6s; }
.t2 { top: var(--gutter); right: var(--gutter); animation-delay: 3.9s; }
.t3 { top: 31%; left: 58%; animation-delay: 4.2s; }
.t4 { top: 47%; left: var(--gutter); animation-delay: 4s; color: var(--grey); }
.t5 { top: 39%; right: 9%; animation-delay: 4.4s; padding: 6px 0; }
.t5:hover { background: var(--white); color: var(--black); }

@keyframes flicker-in {
  0% { opacity: 1; } 12% { opacity: 0; } 24% { opacity: 1; } 30% { opacity: 0; }
  52% { opacity: 1; } 60% { opacity: 0.2; } 70%, 100% { opacity: 1; }
}
@keyframes cut { to { opacity: 0; visibility: hidden; } }
@keyframes slam {
  0%   { opacity: 1; transform: translate(-0.06em, 0.04em); }
  33%  { opacity: 1; transform: translate(0.05em, -0.03em); }
  66%  { opacity: 1; transform: translate(-0.02em, 0); }
  100% { opacity: 1; transform: none; }
}
@keyframes type { to { clip-path: inset(-0.4em 0 -0.4em 0); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes flash { 0% { visibility: visible; } 50% { visibility: hidden; } 75% { visibility: visible; } 100% { visibility: hidden; } }
@keyframes glitch {
  0%, 100% { transform: none; }
  92% { transform: translate(0.02em, 0); }
  93% { transform: translate(-0.03em, 0.01em); opacity: 0.6; }
  94% { transform: none; opacity: 1; }
}

/* =========================================================
   Sections
   ========================================================= */
/* Section names stay for screen readers only, never as visible captions */
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.label {
  padding-inline: var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}

.manifesto,
.work,
.contact {
  padding-block: clamp(4.5rem, 10vw, 10rem);
  border-top: 1px solid var(--line);
}

/* Manifesto: the story from version 1, set like a case intro */
.story {
  padding-inline: var(--gutter);
  max-inline-size: calc(30ch + 2 * var(--gutter));
  font-size: clamp(1.55rem, 3.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.story p + p { margin-top: 0.9em; color: var(--muted); }

/* =========================================================
   Approach: what a client gets (product, system, speed, ownership)
   ========================================================= */
.approach {
  padding-block: clamp(4.5rem, 10vw, 10rem);
  border-top: 1px solid var(--line);
}
.statement {
  padding-inline: var(--gutter);
  max-inline-size: calc(22ch + 2 * var(--gutter));
  font-size: clamp(2.1rem, 5.6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
/* Principles: big type rows like the case titles, a hairline between them */
.principles {
  margin: clamp(3.5rem, 8vw, 7.5rem) var(--gutter) 0;
  padding: 0;
  list-style: none;
}
.principles li {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles h3 {
  font-size: clamp(2rem, 5.4vw, 5.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.principles p {
  max-inline-size: 28ch;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.7vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* =========================================================
   Cases (version 2)
   ========================================================= */
.case {
  overflow-x: clip;
  padding-bottom: var(--space);
}
.case:last-child { padding-bottom: 0; }

.case-title {
  padding-inline: var(--gutter);
  margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}
.case-title h3 {
  /* Same face as the 2beers wordmark */
  font-family: var(--display);
  font-size: clamp(3.6rem, 10.8vw, 11rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.case-title p {
  margin-top: 0.45em;
  color: var(--muted);
  font-size: clamp(1.25rem, 2.9vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Reel: one large surface, no player chrome */
.stage { position: relative; background: var(--panel); }
.reel {
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
}

/* Paused: one quiet play mark */
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.stage::after {
  inline-size: 4.5rem;
  block-size: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
}
.stage::before {
  z-index: 1;
  margin: -0.7rem 0 0 -0.4rem;
  border-block: 0.7rem solid transparent;
  border-inline-start: 1.15rem solid var(--ink);
}
.stage.is-paused::before,
.stage.is-paused::after { opacity: 1; }

/* Screens: real product UI composed with the film */
.screens { position: relative; }

/* Navorina: the live desktop app steps out of the landing film, like Salonshi's phone */
.screens-navorina {
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(-14rem, -13vw, -5rem);
  padding-inline: clamp(1.5rem, 8vw, 9rem);
}
.screens-navorina .desk {
  inline-size: clamp(20rem, 54vw, 58rem);
  overflow: hidden;
  --r: clamp(0.75rem, 1.2vw, 1.25rem);
  border-radius: var(--r);
  background: #0b0b0b;
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.16);
}
/* Outline glint: a soft light travels slowly around the window edge.
   Appears once the fog entrance settles; still outline under reduced motion. */
@property --glint {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.glint {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(from var(--glint),
    transparent 0deg, transparent 220deg,
    rgba(255, 255, 255, 0.18) 280deg, rgba(255, 255, 255, 0.7) 330deg,
    rgba(255, 255, 255, 0.18) 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 1.6s ease;
}
.overlay.is-done .glint { opacity: 1; }
@keyframes glint-run { to { --glint: 360deg; } }
@media (prefers-reduced-motion: no-preference) {
  .glint { animation: glint-run 9s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .glint { display: none; }
}
/* Live product walkthrough recorded from the Navorina landing, not a still */
.ui-loop { aspect-ratio: 2 / 1; }

/* Salonshi: the iOS app, recorded live, steps out of the salon film */
.screens-salonshi {
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(-20rem, -20vw, -7rem);
  padding-inline: clamp(1.5rem, 10vw, 11rem);
}
.screens-salonshi .phone {
  inline-size: clamp(12rem, 22vw, 22rem);
  overflow: hidden;
  --r: clamp(1.6rem, 3.2vw, 3rem);
  border-radius: var(--r);
  background: #f4f4f2;
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.55);
}
.ui-phone { aspect-ratio: 600 / 1304; }

/* Overlay entrance, "fog": the app condenses out of a milky haze.
   It starts blurred and pale, the haze edge drifts up from the bottom and the
   picture sharpens. Fully solid at rest. Runs once (motion.js adds .is-in). */
@property --fog {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 130%;
}
.js .overlay {
  --fog: 0%;
  filter: blur(22px) brightness(1.7) saturate(0.4);
  transform: translateY(5%) scale(0.97);
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--fog) - 35%), transparent var(--fog));
  mask-image: linear-gradient(to top, #000 calc(var(--fog) - 35%), transparent var(--fog));
  transition:
    --fog 1.8s cubic-bezier(0.33, 0, 0.2, 1),
    filter 2.2s cubic-bezier(0.33, 0, 0.2, 1),
    transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .overlay.is-in {
  --fog: 130%;
  filter: blur(0) brightness(1) saturate(1);
  transform: none;
}
/* Once settled, drop the mask and filter so the video renders plainly */
.js .overlay.is-done {
  -webkit-mask-image: none;
  mask-image: none;
  filter: none;
}

/* =========================================================
   Contact
   ========================================================= */
.mail {
  display: inline-block;
  padding-inline: var(--gutter);
  /* Same face as the 2beers wordmark; wider than Inter, so a touch smaller */
  font-family: var(--display);
  font-size: clamp(1.9rem, 6.6vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}
/* Scope tags on the right, set like the intro tags */
.case-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--gutter);
}
.case-title > :not(.tags) { grid-column: 1; }
.tags {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0;
  padding: 0 0 0.35em;
  list-style: none;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--grey);
}
@media (max-width: 40rem) {
  .case-title { grid-template-columns: 1fr; }
  .tags {
    grid-column: 1;
    grid-row: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25em;
    margin-top: 1.25rem;
    padding: 0;
    text-align: left;
  }
}

/* Door to the agency page, quiet next to the address */
.agency-link {
  display: inline-block;
  margin: 0 var(--gutter) clamp(2rem, 4vw, 3.5rem);
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.agency-link:hover { color: var(--white); }
.contact { display: grid; justify-items: start; }

.mail:hover { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.1em; }

.foot {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: var(--gutter);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--grey);
}
/* Legal entity behind every order: the studio contracts through NAVORINA LLC */
.legal {
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.foot-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* =========================================================
   Phone
   ========================================================= */
@media (max-width: 40rem) {
  /* One landscape film everywhere; on phones crop 4:5 around her face */
  .case-salonshi .expand .reel { aspect-ratio: 4 / 5; object-position: 86% 50%; }
  .screens-navorina { justify-content: center; margin-top: -16vw; padding-inline: var(--gutter); }
  .screens-navorina .desk { inline-size: 100%; }
  .screens-salonshi { justify-content: center; margin-top: -30vw; }
  .screens-salonshi .phone { inline-size: 62vw; }
}

/* Principles stack title over text on phones */
@media (max-width: 40rem) {
  .principles li { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* =========================================================
   Agencies page
   ========================================================= */
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.page-head a:hover { background: var(--white); color: var(--black); }
.page-head span { color: var(--grey); }
.hero {
  padding: clamp(5rem, 14vw, 13rem) var(--gutter) clamp(4.5rem, 10vw, 10rem);
}
.hero h1 {
  max-inline-size: 11ch;
  font-size: clamp(3.6rem, 10.8vw, 11rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero p {
  max-inline-size: 30ch;
  margin-top: clamp(1.75rem, 4vw, 3.5rem);
  color: var(--muted);
  font-size: clamp(1.25rem, 2.9vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.terms {
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
  font-size: clamp(1.35rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.terms li {
  padding-block: clamp(1rem, 2vw, 1.75rem);
  border-top: 1px solid var(--line);
}
.terms li:last-child { border-bottom: 1px solid var(--line); }
.terms li { color: var(--muted); }
.terms b { font-weight: 500; color: var(--ink); }

/* =========================================================
   Scroll motion
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .expand {
      animation: expand linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    @keyframes expand {
      from { clip-path: inset(0 var(--gutter) round var(--radius)); filter: brightness(0.45); }
      to   { clip-path: inset(0 0 round 0); filter: brightness(1); }
    }

    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }
    @keyframes reveal {
      from { opacity: 0.15; filter: blur(10px); }
      to   { opacity: 1; filter: blur(0); }
    }

  }
}

/* Reduced motion: final intro state, no blinking, no scroll effects */
@media (prefers-reduced-motion: reduce) {
  .js .overlay { transform: none; filter: none; -webkit-mask-image: none; mask-image: none; transition: none; }
  .word, .d2, .beers, .tld, .cursor, .tag, .flash { animation: none; }
  .d1, .flash { display: none; }
  .d2, .beers, .tag, .cursor { opacity: 1; }
  .tld { clip-path: none; }
}

/* =========================================================
   Studio effects (fx.js adds .fx; nothing here runs under reduced motion)
   ========================================================= */
/* 1. Statements: words start dim and light up with the scroll */
.fx [data-words] .w { color: #2a2a2a; transition: color 0.35s ease; }
.fx [data-words] .w.on { color: var(--ink); }

/* 2. Principle rows: hairline draws from the left, content rises, hover inverts */
.fx .principles li {
  position: relative;
  isolation: isolate;
  border-top-color: transparent;
}
.fx .principles li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  block-size: 1px;
  background: #3a3a3a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.fx .principles li > * {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}
.fx .principles li > p { transition-delay: 0.15s, 0.15s, 0s; }
.fx .principles li.is-in::before { transform: scaleX(1); }
.fx .principles li.is-in > * { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .fx .principles li::after {
    content: "";
    position: absolute;
    inset: 0 calc(-1 * var(--gutter));
    z-index: -1;
    background: var(--white);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .fx .principles li:hover::after { transform: scaleY(1); }
  .fx .principles li.is-in > h3 { transition: opacity 0.9s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease; }
  .fx .principles li.is-in:hover > h3 { color: var(--black); transform: translateX(clamp(0.5rem, 2vw, 2rem)); }
  .fx .principles li.is-in:hover > p { color: #333; }
}

/* 3. Ticker: outlined giant line between the approach and the work */
.ticker {
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
}
.ticker-track {
  display: flex;
  inline-size: max-content;
  font-size: clamp(4rem, 12vw, 12.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
  white-space: nowrap;
  /* Inter variable keeps overlapping contours (the stem of D, the bar of e), and a plain stroke draws every one of
     them. The letter is filled with the page black over its own stroke instead: the inner lines disappear and the
     outer half of a 3px stroke stays, so the outline reads 1.5px as before. */
  color: var(--black);
  -webkit-text-stroke: 3px #5c5c5c;
  paint-order: stroke fill;
}
.ticker-track span { padding-right: 0.25em; }
.fx .ticker-track {
  animation: ticker 38s linear infinite;
}
.fx .ticker { transform: skewX(var(--skew, 0deg)); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 4. Studio pointer: blend-mode dot, grows on links, labels reels */
.has-pointer, .has-pointer * { cursor: none !important; }
.pointer {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 20;
  pointer-events: none;
  mix-blend-mode: difference;
}
.pointer::before {
  content: "";
  position: absolute;
  inline-size: 0.75rem;
  block-size: 0.75rem;
  margin: -0.375rem 0 0 -0.375rem;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.pointer.on-link::before { transform: scale(4); }
.pointer.on-reel::before { transform: scale(8); }
.pointer span {
  position: absolute;
  transform: translate(-50%, -50%);
  color: var(--black);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 0.2s;
}
.pointer.on-reel span { opacity: 1; }
/* Over a reel the dot turns solid so the label stays readable */
.pointer.on-reel { mix-blend-mode: normal; }
