/* ==========================================================================
   moloko agency — styles
   ========================================================================== */

:root {
  --milk: #f2efe8;
  --milk-2: #e8e4da;
  --ink: #0d0d0c;
  --ink-2: #1a1a18;
  --mute: #77736a;
  --accent: #ff5a2b;
  --accent-ink: #0d0d0c;

  --bg: var(--milk);
  --fg: var(--ink);
  --line: rgba(13, 13, 12, .14);
  --soft: var(--milk-2);

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 48px);
  --max: 1680px;
  --radius: 6px;
  --ease: cubic-bezier(.65, .05, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

.theme-dark   { --bg: var(--ink);   --fg: var(--milk); --line: rgba(242, 239, 232, .16); --soft: var(--ink-2); --mute: #8e8a80; }
.theme-light  { --bg: var(--milk);  --fg: var(--ink);  --line: rgba(13, 13, 12, .14);   --soft: var(--milk-2); }
.theme-accent { --bg: var(--accent); --fg: var(--accent-ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
section, footer { background: var(--bg); color: var(--fg); position: relative; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: italic; font-weight: 300; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.4; }
.eyebrow { color: var(--mute); margin-bottom: clamp(24px, 3vw, 40px); }
.h2 { font-size: clamp(40px, 6.4vw, 112px); font-weight: 500; letter-spacing: -.045em; line-height: .95; }

/* Logo (white svg used as a mask so it takes currentColor) */
.logo {
  --dot-at: 95.2%; /* the dot is the last ~5% of the logo width */
  display: inline-block;
  aspect-ratio: 321.41 / 59.65;
  background: linear-gradient(90deg, currentColor var(--dot-at), var(--accent) var(--dot-at));
  -webkit-mask: url(../assets/img/logo.svg) no-repeat center / contain;
          mask: url(../assets/img/logo.svg) no-repeat center / contain;
}

/* Buttons */
.btn {
  --b-bg: var(--fg); --b-fg: var(--bg);
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 28px;
  border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 500; font-size: 16px; letter-spacing: -.01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--light { --b-bg: var(--milk); --b-fg: var(--ink); }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--ink); }
.btn--accent::before { background: var(--milk); }
.btn__arrow { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Rolling link */
.link-roll { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3; }
.link-roll span { display: block; position: relative; transition: transform .5s var(--ease); }
.link-roll span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.link-roll:hover span { transform: translateY(-100%); }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--milk);
  display: grid; place-items: center;
  pointer-events: none;
}
html:not(.js) .loader { display: none; }
.loader__inner { display: flex; align-items: flex-end; gap: 16px; }
.loader__logo { width: clamp(160px, 22vw, 320px); }
.loader__count { color: var(--mute); min-width: 3ch; }

/* ==========================================================================
   Cursor
   ========================================================================== */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), opacity .3s;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor__label {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--ink);
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease-out);
  white-space: nowrap;
}
.cursor.is-big { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
.cursor.is-big .cursor__label { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  color: var(--milk);
  mix-blend-mode: difference;
  transition: transform .6s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }
.header__logo .logo { width: 112px; display: block; }
/* The header is inverted with mix-blend-mode, which would turn an orange dot blue.
   So the header logo's own dot is hidden and an unblended copy of the dot sits on top. */
.has-dot .header__logo .logo { background: linear-gradient(90deg, currentColor var(--dot-at), transparent var(--dot-at)); }
.logo-dot {
  position: fixed; left: 0; top: 0; z-index: 51; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent var(--dot-at), var(--accent) var(--dot-at));
  transition: transform .6s var(--ease);
}
.has-dot .logo-dot { opacity: 1; }
.header.is-hidden + .logo-dot { transform: translateY(-120px); }
.menu-open .logo-dot { background: linear-gradient(90deg, transparent var(--dot-at), var(--ink) var(--dot-at)); }
.header__nav { display: flex; gap: 36px; font-size: 15px; font-weight: 500; position: absolute; left: 50%; transform: translateX(-50%); }
.header__right { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 6px; align-items: center; }
.lang a { opacity: .5; transition: opacity .3s; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.lang span { opacity: .35; }
.header__cta { --b-bg: var(--milk); --b-fg: var(--ink); }
.header__cta::before { background: var(--milk); }
.header__cta:hover { color: var(--ink); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--milk); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 23px; }
.menu-open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--accent); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 32px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { font-size: clamp(48px, 13vw, 96px); font-weight: 500; letter-spacing: -.05em; line-height: 1.02; }
.menu__foot { display: flex; flex-direction: column; gap: 8px; }
.menu__foot .lang { margin-bottom: 12px; font-size: 14px; }
.menu-open .header { mix-blend-mode: normal; color: var(--ink); }
.menu-open .header .header__cta, .menu-open .header .lang { visibility: hidden; }
.menu-open .burger { background: var(--ink); } .menu-open .burger span { background: var(--milk); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: clamp(140px, 18vh, 200px); }
.hero__title {
  font-size: clamp(56px, 12.4vw, 232px);
  font-weight: 500; letter-spacing: -.06em; line-height: .88;
  margin-left: -.04em;
}
.hero__title em { font-weight: 300; }
.hero__dot { color: var(--accent); font-style: normal; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }

.hero__row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-top: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 96px);
}
.hero__lead { max-width: 30ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -.015em; color: color-mix(in srgb, var(--fg) 78%, transparent); }

.hero__media { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero__media-inner { position: absolute; inset: 0; clip-path: inset(0 var(--gutter) 0 var(--gutter) round var(--radius)); will-change: clip-path; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__slide figcaption {
  position: absolute; left: calc(var(--gutter) + 24px); bottom: 28px;
  color: var(--milk); background: rgba(13, 13, 12, .55); backdrop-filter: blur(8px);
  padding: 8px 12px; border-radius: 999px;
}
.hero__progress { position: absolute; right: calc(var(--gutter) + 24px); bottom: 40px; width: 120px; height: 2px; background: rgba(242, 239, 232, .3); }
.hero__progress span { display: block; height: 100%; background: var(--milk); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   Section head
   ========================================================================== */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.section-head__note { max-width: 32ch; color: var(--mute); font-size: 18px; line-height: 1.4; }
.section-head--line { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 0; }
.section-head--line .eyebrow { margin: 0; }

/* ==========================================================================
   Work
   ========================================================================== */
.work { padding: clamp(96px, 12vw, 200px) 0 clamp(80px, 10vw, 160px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 15px; font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.filter sup { font-family: var(--mono); font-size: 10px; opacity: .55; margin-left: 2px; }
.filter:hover { border-color: var(--fg); }
.filter.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.grid__col { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 112px); }
.grid__col:nth-child(2) { padding-top: clamp(80px, 14vw, 260px); }

.card { display: block; }
.card.is-hidden { display: none; }
.card__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--soft);
}
.card--tall .card__media { aspect-ratio: 4 / 4.6; }
.card--portrait .card__media { aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card__media--soft img { object-fit: contain; padding: 6%; }
.card:hover .card__media img { transform: scale(1.04); }
.card__meta {
  display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 2px;
  padding-top: 18px;
}
.card__meta h3 { font-size: clamp(22px, 2vw, 32px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.card__meta p { grid-column: 1; color: var(--mute); font-size: 16px; }
.card__tags { grid-column: 2; grid-row: 1 / span 2; align-self: start; padding-top: .6em; color: var(--mute); text-align: right; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { overflow: hidden; padding: clamp(20px, 2.4vw, 36px) 0; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee span, .marquee i {
  font-size: clamp(56px, 9vw, 160px); font-weight: 600; letter-spacing: -.05em; line-height: 1;
  text-transform: uppercase; font-style: normal; padding: 0 .18em;
}
.marquee i { font-size: clamp(40px, 6vw, 100px); }
.marquee .outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: clamp(100px, 13vw, 220px) 0; }
.statement {
  font-size: clamp(32px, 4.6vw, 84px); font-weight: 400;
  letter-spacing: -.04em; line-height: 1.04; max-width: 20em;
}
.statement .w { display: inline-block; }
.about__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(72px, 9vw, 160px);
}
.about__col { border-top: 1px solid var(--line); padding-top: 24px; }
.about__num { color: var(--accent); display: block; margin-bottom: 40px; }
.about__col h3 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 12px; }
.about__col p { color: var(--mute); max-width: 34ch; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: clamp(100px, 12vw, 200px) 0 clamp(60px, 8vw, 120px); }
.svc { border-top: 1px solid var(--line); }
.svc__item { border-bottom: 1px solid var(--line); position: relative; }
.svc__item a {
  display: grid; grid-template-columns: 80px 1fr auto 48px; align-items: center; gap: 24px;
  padding: clamp(24px, 3vw, 44px) 0;
  position: relative; z-index: 1;
}
.svc__item::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.svc__item:hover::before { transform: scaleY(1); transform-origin: top; }
.svc__item a { transition: color .4s var(--ease), padding .6s var(--ease); }
.svc__item:hover a { color: var(--milk); padding-left: 24px; padding-right: 24px; }
.svc__num { color: var(--mute); }
.svc__title { font-size: clamp(36px, 5.6vw, 96px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.svc__tags { color: var(--mute); text-align: right; max-width: 30ch; }
.svc__arrow { font-size: 32px; justify-self: end; transition: transform .6s var(--ease); }
.svc__item:hover .svc__arrow { transform: rotate(-45deg); color: var(--accent); }
.svc__preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(220px, 20vw, 340px); aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden;
  opacity: 0; transform: scale(.85);
  transition: opacity .35s, transform .5s var(--ease-out);
}
.svc__preview.is-on { opacity: 1; transform: scale(1); }
.svc__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .svc__preview { display: none; } }

/* ==========================================================================
   Clients
   ========================================================================== */
.clients { padding: clamp(40px, 6vw, 100px) 0; }
.clients__list { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); margin-top: 32px; }
.clients__list li {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: clamp(96px, 9vw, 150px);
  display: flex; align-items: flex-end;
  padding: 20px;
  font-size: clamp(18px, 1.6vw, 26px); font-weight: 500; letter-spacing: -.03em;
  transition: background .35s, color .35s;
}
.clients__list li:nth-child(-n+4) { border-top: 1px solid var(--line); }
.clients__list li:hover { background: var(--ink); color: var(--milk); }
.clients__you { background: var(--accent); }
.clients__you a { width: 100%; }

/* ==========================================================================
   Process
   ========================================================================== */
.process { padding: clamp(80px, 10vw, 180px) 0 clamp(100px, 12vw, 200px); }
.process__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 40px); counter-reset: s; }
.process__list li { border-top: 2px solid var(--fg); padding-top: 20px; }
.process__list span { display: block; margin-bottom: 64px; }
.process__list p { font-size: 18px; line-height: 1.4; letter-spacing: -.01em; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: clamp(100px, 13vw, 220px) 0 clamp(80px, 10vw, 160px); }
.contact__title { font-size: clamp(52px, 10vw, 188px); font-weight: 500; letter-spacing: -.06em; line-height: .9; margin-left: -.04em; }
.contact__title em { color: var(--accent); }
.contact__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(48px, 8vw, 160px); margin-top: clamp(64px, 8vw, 128px); }

.chips { border: 0; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { color: var(--mute); margin-bottom: 18px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 15px;
  transition: background .3s, color .3s, border-color .3s;
}
.chips label:hover span { border-color: var(--fg); }
.chips input:checked + span { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.field { position: relative; border-bottom: 1px solid var(--line); margin-bottom: 8px; transition: border-color .3s; }
.field:focus-within { border-color: var(--fg); }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; outline: 0; color: var(--fg);
  font: inherit; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em;
  padding: 34px 0 14px; resize: vertical;
}
.field label {
  position: absolute; left: 0; top: 34px; color: var(--mute);
  font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; pointer-events: none;
  transform-origin: left top; transition: transform .4s var(--ease-out), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.55); }
.field.is-error { border-color: var(--accent); }
.field.is-error label { color: var(--accent); }
.form__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.form__note { color: var(--mute); }
.form__status { margin-top: 20px; color: var(--accent); min-height: 1.4em; }

.contact__info { display: flex; flex-direction: column; gap: 40px; }
.contact__label { color: var(--mute); margin-bottom: 10px; }
.contact__big { font-size: clamp(24px, 2.4vw, 40px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.contact__big:hover { background-size: 100% 1px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { height: 44px; padding: 0 20px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; transition: background .3s, color .3s; }
.pills a:hover { background: var(--milk); color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: clamp(40px, 5vw, 80px) 0 24px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 32px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer__cols a, .footer__cols span { font-size: 17px; }
.footer__cols a { opacity: .85; transition: opacity .3s, color .3s; }
.footer__cols a:hover { opacity: 1; color: var(--accent); }
.footer__label { color: var(--mute); margin-bottom: 12px; }
.footer__mark { margin: clamp(56px, 8vw, 140px) 0 24px; }
.footer__mark .logo { width: 100%; display: block; }
.footer__legal { display: flex; justify-content: space-between; color: var(--mute); border-top: 1px solid var(--line); padding-top: 20px; }


/* ==========================================================================
   Case pages
   ========================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header.is-over-case { mix-blend-mode: normal; color: var(--case-fg); }
.header.is-over-case .header__cta { --b-bg: var(--case-fg); --b-fg: var(--case); }
.header.is-over-case .burger { background: var(--case-fg); }
.header.is-over-case .burger span { background: var(--case); }
.curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
html:not(.js) .curtain { display: none; }

.case-hero {
  background: var(--case); color: var(--case-fg);
  padding: clamp(140px, 18vh, 200px) 0 clamp(48px, 6vw, 96px);
}
.case-hero__crumbs { opacity: .7; margin-bottom: clamp(32px, 4vw, 56px); display: flex; gap: 10px; flex-wrap: wrap; }
.case-hero__crumbs a:hover { opacity: .6; }
.case-hero__title {
  font-size: clamp(56px, 13vw, 248px); font-weight: 500;
  letter-spacing: -.06em; line-height: .88; margin-left: -.04em;
  overflow-wrap: anywhere;
}
.case-hero__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-top: clamp(40px, 5vw, 80px); align-items: start;
}
.case-hero__kind { font-size: clamp(20px, 1.8vw, 28px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.case-hero__lead { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -.015em; opacity: .85; max-width: 34ch; }

.case-cover { position: relative; height: 92vh; height: 92svh; overflow: hidden; background: linear-gradient(var(--case) 50%, var(--milk) 50%); }
.case-cover__inner { position: absolute; inset: 0; will-change: clip-path; clip-path: inset(0 var(--gutter) 0 var(--gutter) round var(--radius)); }
.case-cover__inner img { width: 100%; height: 100%; object-fit: cover; }

.case-intro { padding: clamp(72px, 9vw, 160px) 0 clamp(48px, 6vw, 96px); }
.case-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 0 0 clamp(64px, 8vw, 140px); padding-top: 20px; border-top: 1px solid var(--line);
}
.case-meta dt { color: var(--mute); margin-bottom: 10px; }
.case-meta dd { margin: 0; font-size: 18px; line-height: 1.45; }
.case-intro__text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); }
.case-intro__p { font-size: clamp(22px, 2vw, 32px); line-height: 1.25; letter-spacing: -.025em; }

.case-gallery { padding-bottom: clamp(80px, 10vw, 180px); }
.case-gallery .container { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 48px); }
.g-row { display: grid; gap: clamp(20px, 3vw, 48px); }
.g-row--pair { grid-template-columns: 1fr 1fr; align-items: start; }
.g-row--trio { grid-template-columns: repeat(3, 1fr); }
.g-row--split { grid-template-columns: 1fr 1fr; align-items: center; }
.g-row--text {
  grid-template-columns: 1fr 1.4fr; align-items: start;
  padding: clamp(48px, 7vw, 120px) 0; border-top: 1px solid var(--line);
}
.g-row--text h3, .g-copy h3 { font-size: clamp(28px, 3vw, 48px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.g-row--text p, .g-copy p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: color-mix(in srgb, var(--fg) 75%, transparent); max-width: 44ch; }
.g-copy { padding: 0 clamp(0px, 3vw, 48px); }
.g-copy h3 { margin-bottom: 20px; }
.g figcaption { color: var(--mute); padding-top: 12px; }
.g-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.g-media img { width: 100%; height: 100%; object-fit: cover; }
.g-row--full .g-media { aspect-ratio: 16 / 10; }
.g-row--wide .g-media img { height: auto; }
.g-row--pair .g-media, .g-row--split .g-media { aspect-ratio: 4 / 5; }
.g-row--trio .g-media { aspect-ratio: 3 / 4; }
.g-media--contain { background: var(--contain-bg, #fff); aspect-ratio: auto !important; display: flex; align-items: center; justify-content: center; padding: 6%; }
.g-media--contain img { object-fit: contain; width: auto; max-width: 100%; height: auto; }
.g-row--wide .g-media--contain { padding: 5%; }

.case-statement { padding: clamp(100px, 13vw, 220px) 0; }

.case-next { padding: clamp(80px, 10vw, 160px) 0; }
.next {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 32px;
  border-top: 1px solid var(--line); padding-top: 24px; position: relative;
}
.next__label { grid-column: 1 / -1; color: var(--mute); margin-bottom: clamp(24px, 3vw, 48px); }
.next__title { font-size: clamp(56px, 10vw, 180px); font-weight: 500; letter-spacing: -.06em; line-height: .9; transition: transform .8s var(--ease); }
.next__kind { color: var(--mute); font-size: 18px; padding-bottom: .6em; text-align: right; max-width: 22ch; }
.next__media {
  position: absolute; right: 18%; bottom: 10%; width: clamp(200px, 22vw, 360px); aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden; pointer-events: none;
  clip-path: inset(100% 0 0 0); transition: clip-path .8s var(--ease);
}
.next__media img { width: 100%; height: 100%; object-fit: cover; }
.next:hover .next__media { clip-path: inset(0 0 0 0); }
.next:hover .next__title { transform: translateX(16px); }

.case-cta { padding: clamp(80px, 10vw, 160px) 0; }
.case-cta__title { font-size: clamp(48px, 9vw, 160px); font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.case-cta__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 64px); }
.case-cta__row p { max-width: 36ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; }
.case-cta .btn { --b-bg: var(--ink); --b-fg: var(--milk); }
.case-cta .btn::before { background: var(--milk); }

/* SEO / FAQ block on the home page */
.seo { padding: clamp(80px, 10vw, 180px) 0; }
.seo__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 120px); }
.seo__intro h2 { font-size: clamp(32px, 3.6vw, 60px); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin-bottom: 24px; }
.seo__intro p { color: var(--mute); font-size: 17px; line-height: 1.6; margin-bottom: 16px; max-width: 46ch; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.3em; line-height: 1; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mute); padding: 0 0 24px; max-width: 60ch; line-height: 1.6; }


/* AI service page + home promo */
.ai-hero { padding: clamp(140px, 18vh, 200px) 0 clamp(64px, 8vw, 128px); overflow: hidden; }
.ai-hero .container, .ai-promo .container { position: relative; z-index: 1; }
.ai-hero__orb {
  position: absolute; right: -10vw; top: -10vw; width: 60vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent), #8a3bff 45%, transparent 70%);
  filter: blur(60px); opacity: .45; animation: orb 14s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes orb { to { transform: translate(-12vw, 10vw) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .ai-hero__orb { animation: none; } }
.ai-offers { padding: clamp(96px, 12vw, 200px) 0; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ai-card {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(24px, 2.6vw, 40px); min-height: clamp(260px, 22vw, 340px);
  display: flex; flex-direction: column; transition: background .4s, color .4s;
}
.ai-card:hover { background: var(--ink); color: var(--milk); }
.ai-card__num { color: var(--accent); margin-bottom: auto; padding-bottom: 40px; }
.ai-card h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 12px; }
.ai-card p { color: var(--mute); line-height: 1.5; }
.ai-card:hover p { color: rgba(242, 239, 232, .7); }
.ai-uses { margin-top: clamp(56px, 7vw, 120px); }
.ai-uses__label { color: var(--mute); margin-bottom: 20px; }
.ai-uses ul { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-uses li { border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-size: 16px; }
.ai-cases { padding-top: 0; }
.ai-hero .hero__lead { max-width: 44ch; }
.ai-hero .case-hero__crumbs { margin-bottom: clamp(32px, 4vw, 56px); }
.ai-promo { padding: clamp(96px, 12vw, 200px) 0; overflow: hidden; }
.ai-promo__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: end; }
.ai-promo__title { font-size: clamp(48px, 8vw, 150px); font-weight: 500; letter-spacing: -.06em; line-height: .9; margin-left: -.04em; }
.ai-promo__title em { color: var(--accent); }
.ai-promo__lead { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -.015em; opacity: .8; max-width: 36ch; margin-top: 32px; }
.ai-promo__list { border-top: 1px solid var(--line); }
.ai-promo__list li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.02em; }
.ai-promo__list .mono { color: var(--accent); padding-top: .45em; }
.ai-promo__foot { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 40px; }
.ai-promo__foot a.mono { color: var(--mute); transition: color .3s; }
.ai-promo__foot a.mono:hover { color: var(--milk); }
@media (max-width: 1100px) { .ai-grid { grid-template-columns: 1fr 1fr; } .ai-promo__grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .ai-grid { grid-template-columns: 1fr; } .ai-card { min-height: 0; } .ai-card__num { padding-bottom: 24px; } }

/* ==========================================================================
   Reveal (JS-only initial states)
   ========================================================================== */
.js .reveal-up { opacity: 0; transform: translateY(32px); }
.js .line > span { transform: translateY(110%); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal-up { opacity: 1; transform: none; }
  .js .line > span { transform: none; }
  .hero__slide img { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .burger { display: block; }
  .svc__item a { grid-template-columns: 56px 1fr 40px; }
  .svc__tags { grid-column: 2; text-align: left; }
  .svc__arrow { grid-row: 1; grid-column: 3; }
  .process__list { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .clients__list { grid-template-columns: repeat(3, 1fr); }
  .clients__list li:nth-child(-n+4) { border-top: 0; }
  .clients__list li:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header { padding: 16px var(--gutter); }
  .header__logo .logo { width: 92px; }
  .header__cta, .header__right > .lang { display: none; }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .hero__media { height: 72svh; }
  .hero__slide figcaption { left: calc(var(--gutter) + 12px); bottom: 16px; }
  .hero__progress { display: none; }
  .grid { grid-template-columns: 1fr; }
  .grid__col:nth-child(2) { padding-top: 0; }
  .grid__col { gap: 48px; }
  .card__meta { grid-template-columns: 1fr; }
  .card__tags { grid-column: 1; grid-row: auto; text-align: left; padding-top: 8px; }
  .about__cols { grid-template-columns: 1fr; gap: 40px; }
  .about__num { margin-bottom: 20px; }
  .svc__item a { grid-template-columns: 1fr 32px; gap: 8px 16px; }
  .svc__num { grid-column: 1; }
  .svc__title { grid-column: 1; }
  .svc__tags { grid-column: 1; }
  .svc__arrow { grid-column: 2; grid-row: 2; font-size: 24px; }
  .svc__item:hover a { padding-left: 0; padding-right: 0; color: inherit; }
  .svc__item::before { display: none; }
  .process__list { grid-template-columns: 1fr; }
  .process__list span { margin-bottom: 20px; }
  .clients__list { grid-template-columns: 1fr 1fr; }
  .clients__list li:nth-child(-n+3) { border-top: 0; }
  .clients__list li:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .clients__list li { padding: 16px; min-height: 88px; font-size: 17px; }
  .chips span { height: 40px; padding: 0 16px; font-size: 14px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-column: 1 / -1; }
  .footer__legal { flex-direction: column; gap: 6px; }
}

@media (max-width: 1100px) {
  .case-meta { grid-template-columns: 1fr 1fr; }
  .seo__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .case-hero__row, .case-intro__text { grid-template-columns: 1fr; }
  .case-cover { height: 64svh; }
  .case-meta { grid-template-columns: 1fr; gap: 20px; }
  .g-row--pair, .g-row--split, .g-row--text { grid-template-columns: 1fr; }
  .g-row--trio { grid-template-columns: 1fr 1fr; }
  .g-row--trio .g:last-child { grid-column: 1 / -1; }
  .g-row--trio .g:last-child .g-media { aspect-ratio: 16 / 10; }
  .g-row--full .g-media { aspect-ratio: 4 / 3; }
  .g-copy { padding: 0; }
  .next { grid-template-columns: 1fr; }
  .next__kind { text-align: left; }
  .next__media { display: none; }
}

.faq__link { color: var(--fg); border-bottom: 1px solid currentColor; }

/* Lead form: honeypot, states */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit:disabled { opacity: .6; cursor: progress; }
.form__status a { color: var(--fg); border-bottom: 1px solid currentColor; }
.form-done { border-top: 1px solid var(--line); padding-top: 32px; }
.form-done__label { color: var(--accent); margin-bottom: 16px; }
.form-done__title { font-size: clamp(28px, 3vw, 48px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 32px; max-width: 18ch; }

/* Cookie consent banner */
.cookie {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 80;
  width: min(420px, calc(100vw - 2 * var(--gutter)));
  background: var(--ink-2); color: var(--milk); border: 1px solid rgba(242, 239, 232, .14);
  border-radius: 14px; padding: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  font-size: 15px; line-height: 1.45;
  opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease-out);
}
.cookie.is-on { opacity: 1; transform: none; }
.cookie a { border-bottom: 1px solid currentColor; }
.cookie__actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.cookie__decline { --b-bg: transparent; --b-fg: var(--milk); border: 1px solid rgba(242, 239, 232, .3); }
.cookie__decline::before { background: var(--milk); }

/* Privacy note under the form */
.form__consent { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--mute); max-width: 52ch; }
.form__consent a { color: var(--fg); border-bottom: 1px solid currentColor; }
.footer__legal a { border-bottom: 1px solid currentColor; }
.footer__legal a:hover { color: var(--accent); }

/* Legal page */
.legal { padding: clamp(140px, 18vh, 200px) 0 clamp(80px, 10vw, 160px); }
.legal__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.legal__head { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.legal__head .case-hero__crumbs { margin-bottom: 0; opacity: 1; color: var(--mute); }
.legal__title { font-size: clamp(40px, 5vw, 84px); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.legal__date { color: var(--mute); }
.legal__block { border-top: 1px solid var(--line); padding: 28px 0; }
.legal__block h2 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.03em; margin-bottom: 14px; }
.legal__block p { color: color-mix(in srgb, var(--fg) 78%, transparent); line-height: 1.6; max-width: 64ch; }
.legal__block p + p { margin-top: 10px; }
@media (max-width: 900px) { .legal__grid { grid-template-columns: 1fr; } .legal__head { position: static; } }
