/* =========================================================
   PREMIK — shift / move / movement
   Black & white. One idea: things move into place.
   ========================================================= */

@font-face {
  font-family: "Aspekta";
  src: url("../assets/fonts/AspektaVF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --white: #f6f6f4;
  --black: #0b0b0b;
  --bg: var(--white);
  --fg: var(--black);
  --muted: #8a8a86;
  --line: rgba(11, 11, 11, .14);

  --gutter: clamp(16px, 2.4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --f-sans: "Aspekta", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::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; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { 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, h4, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 400;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  background: var(--black); color: var(--white); padding: 10px 14px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { padding-inline: var(--gutter); }
/* Elements waiting to slide in sit off to the side — never let them widen the page */
main > section, .footer { overflow-x: clip; }

/* The square — the dot that moved out of the "i" */
.sq {
  display: inline-block;
  width: .5em; height: .5em;
  background: currentColor;
  flex: none;
}

.label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: clamp(24px, 4vw, 56px);
}
.label .sq { width: 8px; height: 8px; }

/* Underline that moves in from the left and leaves to the right */
.u { position: relative; display: inline-block; }
.u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.u:hover::after { transform: scaleX(1); transform-origin: left; }

/* Text roll on hover — the word shifts up, its copy follows */
.roll { display: inline-block; overflow: hidden; vertical-align: top; }
.roll span { display: inline-block; position: relative; transition: transform .55s var(--ease); }
.roll span::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%;
}
.roll:hover span { transform: translateY(-100%); }

/* ---------- Logo ---------- */
.logo-svg { width: 100%; height: auto; overflow: visible; fill: currentColor; }

/* ---------- Preloader ---------- */
/* Two black halves meet at a seam. The dot hops along the seam, drawing
   a line behind it while the words change; then the halves part. */
.loader { position: fixed; inset: 0; z-index: 200; color: var(--white); display: block; }
html:not(.js) .loader { display: none; }
.loader__half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--black); }
.loader__half--t { top: 0; }
.loader__half--b { bottom: 0; }
.loader__stage { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; }
.loader__words {
  position: absolute; left: 0; right: 0; bottom: clamp(14px, 1.6vw, 24px);
  height: 1.12em; overflow: hidden;
  font-size: clamp(44px, 8vw, 132px); font-weight: 500; letter-spacing: -.05em; line-height: 1.12;
}
.loader__words span { position: absolute; left: 0; bottom: 0; white-space: nowrap; transform: translateY(110%); }
.loader__line { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--white); transform: scaleX(0); transform-origin: left; }
.loader__dot { position: absolute; left: 0; top: -12px; width: 14px; height: 14px; background: var(--white); transform: scale(0); }
.loader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; justify-content: space-between; gap: 16px; color: rgba(246, 246, 244, .55);
}
.is-loaded .loader, .seen .loader { display: none; }
.js .hero__inner { visibility: hidden; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: #fff; mix-blend-mode: difference;
  pointer-events: none; display: none; opacity: 0;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out);
}
.cursor__label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: #000; opacity: 0; transition: opacity .3s;
}
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; mix-blend-mode: normal; background: var(--white); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter);
  color: #fff; mix-blend-mode: difference;
  transition: transform .7s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }
.header__logo { width: 112px; display: block; }
.header__nav { display: flex; gap: clamp(20px, 3vw, 44px); font-size: 15px; font-weight: 500; }
.header__right { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.header__cta {
  border: 1px solid currentColor; padding: 10px 14px;
  transition: background .4s, color .4s;
}
.header__cta:hover { background: #fff; color: #000; }
.header__burger { display: none; }
.burger-close { display: none; }
.menu-open .burger-open { display: none; }
.menu-open .burger-close { display: inline; }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--black); color: var(--white);
  padding: calc(var(--header-h) + 24px) var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: flex-start; gap: 10px; overflow: hidden;
  font-size: clamp(56px, 14vw, 120px); font-weight: 500; letter-spacing: -.05em; line-height: 1;
  padding-block: 4px; border-bottom: 1px solid rgba(246,246,244,.14);
}
.menu__links a span { display: inline-block; }
.menu__links sup { margin-top: 1em; color: #7d7d7a; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  color: var(--white); background: var(--black); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; will-change: clip-path; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.9);
  transform-origin: 50% 50%;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.6) 100%);
}
.hero__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 28px) var(--gutter) var(--gutter);
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.dict { max-width: 360px; }
.dict dt { margin-bottom: 12px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dict__word { font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.dict__ipa { opacity: .7; text-transform: none; }
.dict dd { font-size: 15px; display: flex; gap: 12px; opacity: .85; line-height: 1.5; }
.dict dd .mono { opacity: .6; padding-top: 2px; }
.hero__lead {
  max-width: 440px; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2;
  letter-spacing: -.02em; font-weight: 400; text-align: right;
}
.hero__title { margin-top: auto; }
.hero__logo { display: block; width: 100%; }
.hero__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(16px, 2.4vw, 32px); padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.25);
}
.hero__bottom b { font-weight: 400; font-size: 8px; vertical-align: middle; margin-inline: 6px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i { position: relative; width: 48px; height: 1px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.hero__pause { font: inherit; border-bottom: 1px solid currentColor; }
.pause-off { display: none; }
.hero__pause[aria-pressed="true"] .pause-on { display: none; }
.hero__pause[aria-pressed="true"] .pause-off { display: inline; }

/* ---------- ABOUT ---------- */
.about { padding-block: clamp(120px, 18vw, 240px) clamp(56px, 7vw, 100px); }
.about__text {
  font-size: clamp(34px, 5.6vw, 92px); line-height: 1.02; letter-spacing: -.045em;
  font-weight: 500; max-width: 16.5em;
}
.about__text em { font-style: normal; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .1em; }
.pill {
  display: inline-block; width: 1.9em; height: .82em; vertical-align: -.02em;
  overflow: hidden; margin-inline: .06em;
}
.pill img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.about__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  margin-top: clamp(64px, 9vw, 140px);
}
.about__sub { grid-column: 1 / span 5; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; letter-spacing: -.01em; }
.stats { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.stats li { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.stats__n { font-size: clamp(48px, 6vw, 96px); font-weight: 500; letter-spacing: -.05em; line-height: .9; }
.stats .mono { color: var(--muted); }

/* ---------- MARQUEE ---------- */
.marquee { padding-block: clamp(20px, 4vw, 60px) clamp(60px, 10vw, 140px); overflow: hidden; }
.marquee__row { display: flex; white-space: nowrap; will-change: transform; }
.marquee__track {
  display: flex; align-items: center; flex: none;
  font-size: clamp(80px, 16vw, 260px); font-weight: 600; letter-spacing: -.06em; line-height: .9;
}
.marquee__track > * { margin-right: .22em; }
.marquee__track .o { color: transparent; -webkit-text-stroke: 1.5px var(--fg); font-weight: 500; }
.marquee__track .sq { width: .16em; height: .16em; align-self: flex-end; margin-bottom: .14em; }

/* ---------- Section heads ---------- */
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; margin-bottom: clamp(56px, 8vw, 120px); }
.sec-head .label { grid-column: 1 / -1; margin-bottom: 0; }
.sec-title {
  grid-column: 1 / span 8;
  font-size: clamp(48px, 8.4vw, 148px); font-weight: 500; letter-spacing: -.055em; line-height: .92;
}
.sec-intro { grid-column: 9 / -1; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.4; max-width: 34ch; }

/* ---------- SERVICES ---------- */
.services { padding-block: clamp(120px, 14vw, 200px); }
.cards { position: relative; }
.card {
  position: sticky; top: calc(var(--header-h) + 8px);
  min-height: calc(100vh - var(--header-h) - 32px);
  background: var(--white); color: var(--black);
  padding: clamp(20px, 2.6vw, 40px);
  display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px);
  transform-origin: 50% 0;
  margin-bottom: 4vh;
}
.card:nth-child(2) { top: calc(var(--header-h) + 24px); }
.card:nth-child(3) { top: calc(var(--header-h) + 40px); }
.card::after {
  content: ""; position: absolute; inset: 0; background: var(--black);
  opacity: var(--dim, 0); pointer-events: none;
}
.card__head { display: flex; align-items: flex-start; gap: clamp(16px, 3vw, 48px); border-bottom: 1px solid rgba(11,11,11,.14); padding-bottom: clamp(16px, 2vw, 28px); }
.card__num { font-family: var(--f-mono); font-size: 13px; padding-top: .8em; }
.card__title { font-size: clamp(40px, 6.4vw, 112px); font-weight: 500; letter-spacing: -.055em; line-height: .92; }
.card__title span { color: #9a9a96; }
.card__body { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); flex: 1; }
.card__img { grid-column: 1 / span 5; overflow: hidden; position: relative; min-height: 260px; }
.card__img img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; filter: grayscale(1); }
.card__list { grid-column: 7 / -1; display: flex; flex-direction: column; }
.card__list li { padding-block: 20px; border-top: 1px solid rgba(11,11,11,.14); display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--gutter); }
.card__list li:first-child { border-top: 0; padding-top: 0; }
.card__list h4 { font-size: clamp(20px, 1.8vw, 28px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.card__list p { font-size: 15px; line-height: 1.5; color: #4a4a47; }
.card__tags { color: #6a6a66; }
.card__tags i { font-style: normal; font-size: 7px; vertical-align: middle; margin-inline: 8px; }

/* ---------- WORK (horizontal) ---------- */
.work { position: relative; }
.work__pin { height: 100vh; height: 100svh; overflow: hidden; position: relative; }
.work__track {
  display: flex; align-items: center; gap: clamp(24px, 3vw, 56px);
  height: 100%; padding-inline: var(--gutter);
  width: max-content; will-change: transform;
}
.work__intro { width: min(560px, 80vw); flex: none; align-self: center; }
.work__intro .sec-title { font-size: clamp(48px, 7vw, 120px); margin-bottom: 32px; }
.work__intro .sec-intro { max-width: 36ch; }
.work__hint { display: block; margin-top: 24px; color: var(--muted); }

.pcard { flex: none; width: clamp(300px, 40vw, 680px); display: block; }
.pcard--tall { width: clamp(260px, 28vw, 460px); }
.pcard__img { overflow: hidden; aspect-ratio: 4 / 3; position: relative; background: #ddd; }
.pcard--tall .pcard__img { aspect-ratio: 4 / 5; }
.pcard__img img {
  position: absolute; top: 0; left: -10%; width: 120%; max-width: none; height: 100%; object-fit: cover;
  filter: grayscale(1); transition: filter .8s var(--ease), scale 1.2s var(--ease-out);
}
.pcard:hover .pcard__img img { filter: grayscale(0); scale: 1.05; }
.pcard__meta { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; margin-top: 16px; }
.pcard__meta .mono:first-child { grid-row: span 2; padding-top: .7em; }
.pcard__meta h3 { font-size: clamp(22px, 2vw, 34px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.pcard__meta p { color: var(--muted); }

.work__more {
  flex: none; width: clamp(280px, 30vw, 480px); aspect-ratio: 1;
  background: var(--fg); color: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 2vw, 32px);
  margin-right: var(--gutter);
}
.work__more-big { font-size: clamp(40px, 4.6vw, 80px); font-weight: 500; letter-spacing: -.05em; line-height: .92; }
.work__arrow { font-size: 48px; align-self: flex-end; transition: transform .6s var(--ease); }
.work__more:hover .work__arrow { transform: translateY(12px); }
.work__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); height: 1px; background: var(--line); }
.work__progress i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }

/* ---------- INDEX ---------- */
.index { padding-block: clamp(80px, 10vw, 160px); position: relative; }
.index__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.index__head .label { margin: 0; }
.index__title { font-size: clamp(32px, 3.4vw, 56px); font-weight: 500; letter-spacing: -.04em; }
.index__title sup { font-size: 13px; vertical-align: top; margin-left: 4px; }
.index__list { border-top: 1px solid var(--line); }
.index__list li { border-bottom: 1px solid var(--line); overflow: hidden; }
.index__list a {
  position: relative;
  display: grid; grid-template-columns: 60px 1fr minmax(0, 320px) 40px; align-items: center; gap: var(--gutter);
  padding-block: clamp(14px, 1.6vw, 24px);
  transition: padding .6s var(--ease), color .5s var(--ease);
}
.index__list a::before {
  content: ""; position: absolute; inset: 0; background: var(--fg); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.index__list li { position: relative; z-index: 0; isolation: isolate; }
.index__name { font-size: clamp(26px, 3.6vw, 60px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.index__tags { color: var(--muted); }
.index__arr { font-size: 28px; text-align: right; transition: transform .5s var(--ease); }
@media (hover: hover) {
  .index__list a:hover { color: var(--bg); padding-inline: 20px; }
  .index__list a:hover::before { transform: scaleY(1); transform-origin: top; }
  .index__list a:hover .index__tags { color: inherit; opacity: .6; }
  .index__list a:hover .index__arr { transform: rotate(45deg); }
}
.hover-img {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: 300px; height: 380px; margin: -190px 0 0 -150px;
  display: none;
}
.hover-img__in { width: 100%; height: 100%; overflow: hidden; clip-path: inset(50% 50% 50% 50%); }
.hover-img img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .has-cursor .hover-img { display: block; } }

/* ---------- PROCESS ---------- */
.process { padding-block: clamp(80px, 10vw, 160px) clamp(120px, 14vw, 220px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.steps__rail { position: absolute; left: calc(50% - .5px); top: 0; bottom: 0; width: 1px; background: var(--line); }
.steps__fill { position: absolute; inset: 0; background: var(--fg); transform: scaleY(0); transform-origin: top; }
.steps__dot { position: absolute; left: -7px; top: 0; width: 14px; height: 14px; background: var(--fg); }
.step { grid-column: 1 / span 5; padding-block: clamp(24px, 5vw, 80px); }
.step:nth-of-type(even) { grid-column: 8 / span 5; }
.step__n { color: var(--muted); display: block; margin-bottom: 20px; }
.step__t { font-size: clamp(34px, 4.4vw, 72px); font-weight: 500; letter-spacing: -.05em; line-height: .95; margin-bottom: 16px; }
.step__p { font-size: clamp(16px, 1.25vw, 19px); max-width: 38ch; line-height: 1.45; }

/* ---------- CLIENTS ---------- */
.clients { padding-block: clamp(120px, 14vw, 200px) clamp(60px, 8vw, 120px); overflow: hidden; }
.clients__title { font-size: clamp(40px, 6vw, 104px); font-weight: 500; letter-spacing: -.05em; line-height: .95; max-width: 12em; margin-bottom: clamp(56px, 8vw, 120px); }
.logos { display: flex; white-space: nowrap; border-top: 1px solid var(--line); will-change: transform; }
.logos:last-child { border-bottom: 1px solid var(--line); }
.logos__track { display: flex; align-items: center; flex: none; }
.logos__track img {
  height: clamp(28px, 3.2vw, 46px); width: auto; max-width: 200px; object-fit: contain;
  margin-inline: clamp(36px, 5vw, 80px); margin-block: clamp(28px, 3.4vw, 52px);
  filter: brightness(0) invert(1); opacity: .75; transition: opacity .3s;
}
.logos__track img:hover { opacity: 1; }

/* ---------- CTA ---------- */
.cta { padding-block: clamp(40px, 6vw, 100px) clamp(100px, 12vw, 180px); overflow: hidden; }
.cta__i { display: inline-block; }
.cta__title {
  font-size: clamp(64px, 17vw, 300px); font-weight: 600; letter-spacing: -.07em; line-height: .84;
  margin-bottom: clamp(56px, 8vw, 120px);
}
.cta__line { display: block; white-space: nowrap; }
.cta__line--b { text-align: right; }
.cta__dot { display: inline-block; width: .14em; height: .14em; background: currentColor; margin-left: .04em; }

.brief { display: grid; gap: clamp(28px, 3.4vw, 44px); max-width: 1200px; }
.brief__group { border: 0; padding: 0; margin: 0; }
.brief__group legend { color: var(--muted); margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 12px 18px; border: 1px solid var(--line);
  font-size: 16px; letter-spacing: -.01em;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.chip:hover span { border-color: currentColor; }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 3px; }
.brief__row { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); }
.field { display: flex; flex-direction: column; gap: 10px; }
.field .mono { color: var(--muted); }
.field input {
  font: inherit; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.02em; color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0 14px;
  border-radius: 0; transition: border-color .3s;
}
.field input::placeholder { color: #555552; }
.field input:focus { outline: none; border-color: currentColor; }
.brief__actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-top: 12px; }
.brief__direct { display: flex; gap: 24px; flex-wrap: wrap; }

/* Button — the logo's trailing line + square, extending on hover */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0;
  padding: 22px 28px; border: 1px solid currentColor; overflow: hidden;
  font-size: 18px; font-weight: 500; letter-spacing: -.01em;
}
.btn__fill {
  position: absolute; inset: 0; background: currentColor;
  transform: translateX(-101%); transition: transform .6s var(--ease);
}
.btn__txt, .btn__line, .btn__sq { position: relative; z-index: 1; transition: color .6s var(--ease); }
.btn__line { width: 32px; height: 2px; background: currentColor; margin-left: 18px; transition: width .6s var(--ease), background .6s var(--ease); }
.btn__sq { width: 8px; height: 8px; background: currentColor; margin-left: 4px; transition: background .6s var(--ease); }
.btn:hover .btn__fill { transform: none; }
.btn:hover .btn__txt { color: var(--bg); }
.btn:hover .btn__line { width: 72px; background: var(--bg); }
.btn:hover .btn__sq { background: var(--bg); }

/* ---------- FOOTER ---------- */
.footer { padding-top: clamp(80px, 10vw, 140px); padding-bottom: var(--gutter); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin-bottom: clamp(80px, 12vw, 200px); }
.footer__cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 18px; letter-spacing: -.01em; }
.footer__h { color: var(--muted); margin-bottom: 10px; }
.footer__top { align-items: flex-end !important; }
.totop { border: 1px solid currentColor; padding: 12px 16px; }
.footer__logo { width: 100%; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- Split helpers ---------- */
.split-line { overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header__nav, .header__clock { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .header__burger { display: inline-block; border: 1px solid currentColor; padding: 10px 14px; min-width: 74px; }
  .about__sub { grid-column: 1 / -1; }
  .stats { grid-column: 1 / -1; }
  .sec-title { grid-column: 1 / -1; }
  .sec-intro { grid-column: 1 / -1; }
  .card__body { grid-template-columns: minmax(0, 1fr); }
  .card__img { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 9; }
  .card__list { grid-column: 1 / -1; min-width: 0; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .header__cta { display: none; }
  .header__logo { width: 96px; }
  .hero__top { flex-direction: column; gap: 24px; }
  .hero__lead { text-align: left; font-size: 20px; }
  .dict dd { font-size: 14px; }
  .hero__disc { display: none; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .stats .mono { font-size: 10px; }
  .card { position: relative; top: auto !important; min-height: 0; }
  .card__list li { grid-template-columns: 1fr; gap: 8px; }
  .card__tags { line-height: 2; }
  .work__pin { height: auto; overflow: visible; padding-block: 100px 40px; }
  .work__track { flex-direction: column; align-items: stretch; width: auto; gap: 48px; }
  .work__intro, .pcard, .pcard--tall, .work__more { width: 100%; }
  .work__more { aspect-ratio: auto; min-height: 220px; margin-right: 0; }
  .work__progress { display: none; }
  .index__list a { grid-template-columns: 32px 1fr 24px; }
  .index__tags { display: none; }
  .index__arr { font-size: 20px; }
  .steps__rail { left: 6px; }
  .step, .step:nth-of-type(even) { grid-column: 1 / -1; padding-left: 36px; padding-block: 28px; }
  .brief__row { grid-template-columns: 1fr; }
  .chip span { font-size: 14px; padding: 10px 14px; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer__top { align-items: flex-start !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .loader { display: none !important; }
}
