/* =========================================================
   Jonathan Greye — landing page
   Desktop is drawn on the 1920px Figma grid: 1 design px = var(--u).
   Below 900px the layout switches to a stacked mobile flow.
   ========================================================= */

:root {
  --cream: #faf4ee;
  --cream-2: #fffbf5;
  --ink: #1e1e1e;
  --black: #000;
  --white: #fff;
  --orange: #ff5c21;
  --muted: #999;
  --grey: #727272;

  --f-display: "Anton", "Impact", sans-serif;
  --f-condensed: "Antonio", "Anton", sans-serif;
  --f-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --u: calc(min(100vw, 1920px) / 1920);
  --gutter: calc(75 * var(--u));
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--cream);
  color: var(--black);
  font-family: var(--f-body);
  font-size: max(16px, calc(18 * var(--u)));
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Faint double white rules that run down the cream page (from the Figma background) */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  min-height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(90deg,
      transparent 0, transparent calc(129 * var(--u)),
      rgba(255,255,255,.9) calc(129 * var(--u)), rgba(255,255,255,.9) calc(130 * var(--u)),
      transparent calc(130 * var(--u)), transparent calc(148 * var(--u)),
      rgba(255,255,255,.9) calc(148 * var(--u)), rgba(255,255,255,.9) calc(149 * var(--u)));
  background-position: calc(75 * var(--u)) 0;
}
/* Paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, footer, header { position: relative; z-index: 1; }
main, footer { overflow-x: hidden; overflow-x: clip; }
html, body { overflow-x: hidden; overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, blockquote, dl, dd { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

section[id], footer[id] { scroll-margin-top: calc(100 * var(--u) + 40px); }

.dark { background: var(--black); color: var(--white); position: relative; }
.edge { position: absolute; left: 0; width: 100%; height: calc(38 * var(--u)); object-fit: cover; pointer-events: none; z-index: 2; }
.edge--top { top: 0; }
.edge--bottom { bottom: 0; transform: scaleY(-1); }

/* Decorative corner squares */
.sq { position: absolute; width: calc(120 * var(--u)); height: calc(120 * var(--u)); z-index: 1; }
.sq--cream { background: var(--cream); }
.sq--orange { background: var(--orange); }
.sq--bl1 { left: 0; bottom: 0; }
.sq--bl2 { left: calc(120 * var(--u)); bottom: calc(120 * var(--u)); }
.sq--br1 { right: calc(120 * var(--u)); bottom: 0; }
.sq--br2 { right: 0; bottom: calc(120 * var(--u)); }
.sq--tr1 { right: calc(120 * var(--u)); top: 0; }
.sq--tr2 { right: 0; top: calc(120 * var(--u)); }

.eyebrow {
  font-weight: 600; font-size: max(13px, calc(16 * var(--u)));
  text-transform: uppercase; letter-spacing: .04em;
}
.eyebrow::before { content: "•"; margin-right: .9em; }

.section-statement {
  font-weight: 600;
  font-size: max(30px, calc(72 * var(--u)));
  line-height: 1.14;
  text-align: center;
  margin-inline: auto;
}

.big-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: max(64px, calc(190 * var(--u)));
  line-height: .895;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.big-title .thin { font-family: var(--f-condensed); font-weight: 400; }
.big-title .semi { font-family: var(--f-condensed); font-weight: 600; }

/* ---------- Line-reveal helper (GSAP SplitText wraps lines in .line-mask) ---------- */
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(30 * var(--u)) var(--gutter);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 244, 238, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  padding-block: calc(16 * var(--u));
}
.logo {
  font-family: var(--f-condensed); font-weight: 700;
  font-size: max(26px, calc(46 * var(--u))); line-height: .87;
  text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--black);
}
.nav {
  display: flex; align-items: center; gap: calc(6 * var(--u));
  background: var(--white); border-radius: 90px;
  padding: calc(7 * var(--u));
}
.nav__link {
  font-weight: 600; font-size: max(13px, calc(16 * var(--u))); line-height: 1.6;
  text-transform: uppercase; text-decoration: none;
  padding: calc(5 * var(--u)) calc(26 * var(--u)); border-radius: 90px;
  transition: background-color .25s var(--ease);
}
.nav__link:hover { background: rgba(255,92,33,.15); }
.nav__link.is-active { background: var(--orange); }
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--black); text-decoration: none;
  font-weight: 700; font-size: max(13px, calc(16 * var(--u))); line-height: 1.25; text-transform: uppercase;
  padding: calc(15 * var(--u)) calc(30 * var(--u)); border-radius: 90px; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.btn-cta img { width: 11px; height: 14px; }
.btn-cta:hover { transform: translateY(-2px); background: #ff7442; }

/* =========================================================
   HERO (absolute composition on the 1920 grid)
   ========================================================= */
.hero { position: relative; height: calc(1228 * var(--u)); overflow: hidden; }
.hero__title { font-weight: 400; }
.hero__line {
  position: absolute; display: block; overflow: hidden;
  font-family: var(--f-display); font-size: calc(160 * var(--u)); line-height: calc(170 * var(--u));
  text-transform: uppercase; white-space: nowrap; z-index: 1;
}
.hero__line > span { display: block; }
.hero__line--1 { left: calc(197 * var(--u)); top: calc(210 * var(--u)); }
.hero__line--2 { left: calc(365 * var(--u)); top: calc(412 * var(--u)); }
.hero__line--3 { left: calc(270 * var(--u)); top: calc(613 * var(--u)); }
.hero__line--4 { left: calc(1128 * var(--u)); top: calc(610 * var(--u)); }
.hero__portrait {
  position: absolute; z-index: 2;
  left: calc(50% - 10.5 * var(--u)); transform: translateX(-50%);
  top: calc(499 * var(--u));
  width: calc(879 * var(--u)); height: calc(729 * var(--u)); object-fit: cover; object-position: center top;
}
.badge {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  height: calc(76 * var(--u)); padding-inline: calc(34 * var(--u));
  border-radius: 90px; white-space: nowrap;
  font-weight: 700; font-size: calc(26 * var(--u)); line-height: 1; text-transform: uppercase;
}
.badge--dark { background: var(--ink); color: var(--white); width: calc(451 * var(--u)); left: calc(264 * var(--u)); top: calc(816 * var(--u)); transform: rotate(-3.37deg); }
.badge--orange { background: var(--orange); color: var(--black); width: calc(445 * var(--u)); left: calc(1186 * var(--u)); top: calc(819 * var(--u)); transform: rotate(3.8deg); }
.hero__stat { position: absolute; top: calc(972 * var(--u)); z-index: 1; }
.hero__stat--left { left: calc(160 * var(--u)); }
.hero__stat--right { left: calc(1498 * var(--u)); }
.hero__stat-num { font-size: calc(100 * var(--u)); line-height: 1; text-transform: uppercase; }
.hero__stat-text { font-size: calc(24 * var(--u)); line-height: calc(34 * var(--u)); margin-top: calc(20 * var(--u)); }

/* =========================================================
   EXPERIENCE BAR
   ========================================================= */
.experience {
  position: relative; z-index: 3;
  background: var(--orange);
  height: calc(167 * var(--u));
  display: flex; align-items: center; gap: calc(57 * var(--u));
  padding: 0 calc(83 * var(--u));
}
.experience__label {
  font-weight: 500; font-size: max(13px, calc(20 * var(--u))); line-height: 1.4;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.experience__logos { flex: 1; display: flex; align-items: center; justify-content: space-between; }
.experience__logos img { height: calc(var(--h) * var(--u)); width: auto; }

/* =========================================================
   STATEMENT (black)
   ========================================================= */
.statement { height: calc(990 * var(--u)); }
.statement__text {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(302 * var(--u)); width: calc(1638 * var(--u));
  font-weight: 600; font-size: calc(72 * var(--u)); line-height: calc(82 * var(--u)); text-align: center;
}
.contact-badge {
  position: absolute; left: calc(846 * var(--u)); top: calc(695 * var(--u));
  width: calc(230 * var(--u)); height: calc(230 * var(--u)); display: grid; place-items: center;
}
.contact-badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.contact-badge__icon { width: calc(150 * var(--u)); height: calc(150 * var(--u)); transition: transform .3s var(--ease); }
.contact-badge:hover .contact-badge__icon { transform: scale(1.08); }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   SERVICES STACK
   ========================================================= */
/* Each word is a rollover: the orange band slides behind it and the image pair swaps. */
.stack { position: relative; padding: calc(130 * var(--u)) 0; }
.stack__band {
  position: absolute; left: 0; right: 0; top: 0;
  height: calc(140 * var(--u)); background: var(--orange);
  transform: translateY(var(--band-y, 0px));
  transition: transform .55s var(--ease);
  z-index: 0;
}
.stack__words { position: relative; z-index: 1; }
.stack__words li { text-align: center; }
.stack__words li + li { margin-top: calc(20 * var(--u)); }
.stack__words button {
  border: 0; background: none; padding: 0; cursor: pointer; color: inherit;
  font-family: var(--f-display); font-size: calc(128 * var(--u)); line-height: calc(140 * var(--u));
  text-transform: uppercase;
}
.stack__words button:focus-visible { outline-offset: 6px; }
.stack__media {
  position: absolute; top: calc(278 * var(--u)); z-index: 2;
  width: calc(370 * var(--u)); height: calc(484 * var(--u));
}
.stack__media--left { left: calc(60 * var(--u)); }
.stack__media--right { right: calc(60 * var(--u)); }
.stack__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(.96);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.stack__media img.is-active { opacity: 1; transform: none; }
/* The Creative Direction phone mockup is larger and breaks out of the frame, as in Figma */
.stack__media img.is-wide {
  inset: auto; left: calc(-25 * var(--u)); top: calc(-30 * var(--u));
  width: calc(419 * var(--u)); height: calc(515 * var(--u));
}

/* =========================================================
   PILLARS (black cards)
   ========================================================= */
.pillars { padding: calc(130 * var(--u)) var(--gutter) calc(130 * var(--u)); }
.pillars .section-statement { width: calc(1385 * var(--u)); position: relative; z-index: 2; }
.pillars__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(20 * var(--u));
  margin-top: calc(90 * var(--u));
}
.pillar {
  position: relative; min-height: calc(603 * var(--u));
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  padding: calc(35 * var(--u));
  background: var(--black);
}
.pillar__num { font-size: max(15px, calc(20 * var(--u))); line-height: 1.5; }
.pillar__title {
  margin-top: calc(35 * var(--u));
  font-weight: 600; font-size: max(24px, calc(36 * var(--u))); line-height: 1.28;
  text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: from-font;
}
.pillar__text { margin-top: calc(35 * var(--u)); color: var(--muted); font-size: max(15px, calc(18 * var(--u))); line-height: 1.55; max-width: 370px; }
.tags { position: absolute; left: calc(35 * var(--u)); right: calc(35 * var(--u)); bottom: calc(46 * var(--u)); height: calc(185 * var(--u)); }
.tags li {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--white); border-radius: 75px;
  padding: calc(5 * var(--u)) calc(24 * var(--u));
  font-size: max(13px, calc(16 * var(--u))); line-height: 1.75; white-space: nowrap;
  transition: transform .4s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tags li:nth-child(1) { left: 0; top: 0; transform: rotate(-15deg); }
.tags li:nth-child(2) { left: 30%; top: 22%; transform: rotate(-15deg); }
.tags li:nth-child(3) { left: 0; top: 60%; transform: rotate(15deg); }
.tags li:nth-child(4) { left: 52%; top: 58%; transform: rotate(15deg); }
.pillar:hover .tags li { background: var(--white); color: var(--black); }

/* =========================================================
   SELECTED WORK
   ========================================================= */
.work { padding: calc(130 * var(--u)) var(--gutter) calc(148 * var(--u)); }
.work__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: calc(76 * var(--u)); row-gap: calc(93 * var(--u));
  margin-top: calc(130 * var(--u));
}
.project__media { position: relative; display: block; border-radius: 14px; overflow: hidden; cursor: none; }
.project__media img { width: 100%; aspect-ratio: 847 / 670; object-fit: cover; transition: transform .8s var(--ease); }
.project__media:hover img { transform: scale(1.03); }
.project__cursor {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--black);
  font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em;
  transform: scale(0); opacity: 0;
}
.project__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: calc(35 * var(--u)); }
.project__meta h3 { font-weight: 600; font-size: max(22px, calc(36 * var(--u))); line-height: 1.28; }
.pill {
  display: inline-flex; align-items: center;
  border: 1px solid var(--black); border-radius: 75px;
  padding: calc(6 * var(--u)) calc(25 * var(--u)); min-height: 40px;
  font-weight: 700; font-size: max(13px, calc(18 * var(--u))); line-height: 1.55; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.pill:hover { background: var(--black); color: var(--cream); }

/* =========================================================
   CLIENT PLATFORMS (black)
   ========================================================= */
.platforms { padding: calc(185 * var(--u)) calc(160 * var(--u)) calc(185 * var(--u)); }
.platforms__text {
  position: relative; z-index: 2;
  width: calc(1560 * var(--u)); margin-inline: auto;
  font-weight: 600; font-size: max(24px, calc(60 * var(--u))); line-height: 1.37; text-align: center;
}
.platforms__logos { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: calc(110 * var(--u)); }
.platforms__logos img { width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); object-fit: contain; }

/* =========================================================
   BOOK
   ========================================================= */
.book {
  position: relative; background: var(--orange); color: var(--ink);
  display: grid; grid-template-columns: calc(960 * var(--u)) 1fr; align-items: center;
  min-height: calc(1100 * var(--u));
  padding: calc(100 * var(--u)) var(--gutter) calc(100 * var(--u)) 0;
}
.book__cover { display: grid; place-items: center; }
.book__cover img {
  width: calc(671 * var(--u)); height: auto;
  filter: drop-shadow(calc(-20 * var(--u)) calc(40 * var(--u)) calc(35 * var(--u)) rgba(64, 15, 0, .45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-.4deg); } }
.book__copy { display: flex; flex-direction: column; gap: calc(28 * var(--u)); padding-left: calc(80 * var(--u)); max-width: calc(800 * var(--u) + 80 * var(--u)); }
.book__title { font-family: var(--f-display); font-weight: 400; font-size: max(56px, calc(150 * var(--u))); line-height: .92; text-transform: uppercase; }
.book__subtitle { font-weight: 500; font-size: max(20px, calc(30 * var(--u))); line-height: 1.25; max-width: 720px; }
.book__body { font-size: max(16px, calc(20 * var(--u))); line-height: 1.5; max-width: 680px; }
.book__label { font-weight: 600; font-size: max(12px, calc(14 * var(--u))); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1.5px solid var(--ink); border-radius: 100px; padding: 9px 18px; font-weight: 500; font-size: max(14px, calc(16 * var(--u))); line-height: 1.2; }
.book__quote { border-left: 3px solid var(--ink); padding-left: 24px; }
.book__quote p { font-weight: 500; font-size: max(18px, calc(24 * var(--u))); line-height: 1.3; }
.book__quote cite { display: block; margin-top: 8px; font-style: normal; font-size: max(14px, calc(16 * var(--u))); }
.book__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 30px; border-radius: 100px; text-decoration: none;
  font-weight: 600; font-size: max(14px, calc(16 * var(--u))); letter-spacing: .03em; text-transform: uppercase; line-height: 1.2;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--outline { border: 1.5px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--orange); }
.text-link { font-weight: 600; font-size: max(14px, calc(16 * var(--u))); letter-spacing: .03em; text-transform: uppercase; text-underline-offset: 4px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: calc(157 * var(--u)) calc(55 * var(--u)) calc(120 * var(--u)); overflow: hidden; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(60 * var(--u)); margin-top: calc(121 * var(--u)); }
.quote-card {
  background: var(--white); border-radius: 10px;
  padding: calc(60 * var(--u)) calc(40 * var(--u)) calc(50 * var(--u));
  min-height: calc(564 * var(--u));
  display: flex; flex-direction: column;
}
.quote-card__head { display: flex; justify-content: space-between; align-items: flex-start; }
.quote-card__avatar { width: calc(120 * var(--u)); height: calc(120 * var(--u)); min-width: 72px; min-height: 72px; border-radius: 6px; object-fit: cover; }
.quote-card__mark { width: calc(80 * var(--u)); height: auto; min-width: 48px; margin-top: calc(29 * var(--u)); }
.stars { display: flex; margin-top: calc(60 * var(--u)); }
.stars i { width: max(20px, calc(24 * var(--u))); height: max(20px, calc(24 * var(--u))); background: url("../assets/img/star.svg") center / contain no-repeat; }
.quote-card blockquote { margin-top: calc(35 * var(--u)); font-size: max(17px, calc(24 * var(--u))); line-height: 1.42; flex: 1; }
.quote-card__name { margin-top: calc(24 * var(--u)); font-weight: 600; font-size: max(17px, calc(24 * var(--u))); }

/* =========================================================
   FEATURED IN
   ========================================================= */
.featured { display: flex; align-items: center; gap: calc(60 * var(--u)); padding: calc(120 * var(--u)) calc(160 * var(--u)); }
.featured__label { flex: 0 0 calc(340 * var(--u)); font-weight: 500; font-size: max(13px, calc(16 * var(--u))); letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--ink); }
.featured__logos { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.featured__logos img { height: calc(var(--h) * var(--u)); width: auto; }

/* =========================================================
   BIO
   ========================================================= */
.bio {
  display: grid; grid-template-columns: calc(800 * var(--u)) 1fr; gap: 0;
  padding: calc(40 * var(--u)) calc(160 * var(--u)) calc(130 * var(--u));
  color: var(--ink);
}
.bio__title { margin-top: calc(28 * var(--u)); font-weight: 600; font-size: max(34px, calc(72 * var(--u))); line-height: 1.1; max-width: calc(700 * var(--u)); }
.bio__right { padding-top: calc(52 * var(--u)); max-width: calc(800 * var(--u)); }
.bio__lead { font-size: max(19px, calc(26 * var(--u))); line-height: 1.5; }
.bio__body { margin-top: calc(28 * var(--u)); font-size: max(16px, calc(20 * var(--u))); line-height: 1.6; opacity: .7; }

/* =========================================================
   HOW I'M WIRED (black) + RIBBONS
   ========================================================= */
.wired { padding: calc(170 * var(--u)) calc(160 * var(--u)) calc(300 * var(--u)); }
.wired__title { position: relative; z-index: 2; color: var(--white); }
.wired__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: calc(110 * var(--u));
  border-block: 1px solid rgba(255,255,255,.2);
}
.wired__cell {
  min-height: calc(290 * var(--u));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(18 * var(--u));
  text-align: center; padding: 24px 20px;
}
.wired__cell + .wired__cell { border-left: 1px solid rgba(255,255,255,.2); }
.wired__cell dt { font-size: max(13px, calc(18 * var(--u))); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.wired__cell dd { font-family: var(--f-display); font-size: max(30px, calc(52 * var(--u))); line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; }

.ribbons { position: relative; z-index: 4; height: calc(520 * var(--u)); margin-top: calc(-260 * var(--u)); pointer-events: none; overflow-x: clip; }
.ribbon {
  position: absolute; left: 50%; top: 50%;
  width: calc(1974 * var(--u) + 200px); height: calc(140 * var(--u));
  background: var(--orange); overflow: hidden;
  display: flex; align-items: center; pointer-events: auto;
}
.ribbon--a { transform: translate(-50%, calc(-50% - 60 * var(--u))) rotate(7deg); }
.ribbon--b { transform: translate(-50%, calc(-50% + 60 * var(--u))) rotate(-7deg); }
.ribbon__track { display: flex; white-space: nowrap; will-change: transform; }
.ribbon__track span {
  font-weight: 700; font-size: calc(60 * var(--u)); line-height: 1.17; text-transform: uppercase; color: var(--black);
  padding-right: .4em; white-space: pre;
}
.ribbons__cta {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(310 * var(--u)); height: calc(310 * var(--u)); min-width: 150px; min-height: 150px;
  border-radius: 50%; background: var(--cream-2); border: 1px solid var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-decoration: none; pointer-events: auto; z-index: 2;
  padding: 18px; text-align: center;
  font-weight: 700; font-size: max(13px, calc(20 * var(--u))); text-transform: uppercase; line-height: 1.5;
  transition: transform .4s var(--ease), background-color .3s var(--ease);
}
.ribbons__cta img { width: calc(20 * var(--u)); min-width: 14px; transform: scaleX(-1); }
.ribbons__cta:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--white); }

/* =========================================================
   BRAND PROBLEM
   ========================================================= */
.problem { padding: calc(40 * var(--u)) calc(76 * var(--u)) calc(160 * var(--u)); }
.problem__title { font-weight: 600; font-size: max(30px, calc(72 * var(--u))); line-height: 1.14; text-align: center; }
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(20 * var(--u)); margin-top: calc(124 * var(--u)); }
.problem-card {
  position: relative; background: var(--white); border-radius: 10px;
  min-height: calc(322 * var(--u));
  padding: calc(35 * var(--u)) calc(35 * var(--u)) calc(80 * var(--u));
  transition: background-color .35s var(--ease);
  outline: none;
}
.problem-card__head { font-weight: 500; font-size: max(22px, calc(34 * var(--u))); line-height: 1.25; max-width: 500px; color: var(--ink); }
.problem-card__body {
  margin-top: 18px; font-size: max(15px, calc(18 * var(--u))); line-height: 1.5; max-width: 500px; color: var(--ink);
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s ease-out, transform .3s ease-out;
}
.problem-card__tag {
  position: absolute; left: calc(35 * var(--u)); bottom: calc(35 * var(--u));
  font-weight: 600; font-size: max(12px, calc(14 * var(--u))); letter-spacing: .08em; text-transform: uppercase;
  color: rgba(30,30,30,.45); transition: color .3s ease-out;
}
.problem-card__tag span { margin-right: .5em; }
@media (hover: hover) {
  .problem-card:hover, .problem-card:focus-visible { background: var(--orange); }
  .problem-card:hover .problem-card__body, .problem-card:focus-visible .problem-card__body { opacity: .85; transform: none; }
  .problem-card:hover .problem-card__tag, .problem-card:focus-visible .problem-card__tag { color: var(--ink); }
}
@media (hover: none) {
  .problem-card__body { opacity: .85; transform: none; }
}

/* =========================================================
   FOOTER / CONTACT
   ========================================================= */
.footer {
  color: var(--white);
  background: var(--black) url("../assets/img/footer-bg.jpg") center / cover no-repeat;
}
.footer__main {
  display: grid; grid-template-columns: 1fr calc(790 * var(--u)); gap: 40px;
  padding: calc(130 * var(--u)) var(--gutter) calc(110 * var(--u));
}
.footer__title { font-weight: 400; font-size: max(56px, calc(150 * var(--u))); line-height: 1.07; }
.footer__text { margin-top: calc(80 * var(--u)); font-size: max(20px, calc(42 * var(--u))); line-height: 1.24; }
.footer__text a { text-decoration: none; border-bottom: 2px solid var(--orange); }
.btn-square {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
  width: max(220px, calc(248 * var(--u))); margin-top: calc(36 * var(--u));
  background: var(--orange); color: var(--black); text-decoration: none;
  padding: calc(18 * var(--u)) calc(30 * var(--u)); border-radius: 6px;
  font-weight: 600; font-size: max(16px, calc(20 * var(--u))); line-height: 1.5;
  transition: transform .25s var(--ease);
}
.btn-square i { width: 10px; height: 10px; background: var(--black); }
.btn-square:hover { transform: translateY(-2px); }
.socials { display: flex; flex-wrap: wrap; gap: calc(20 * var(--u)); margin-top: calc(36 * var(--u)); }
.socials a {
  display: inline-flex; align-items: center; gap: 15px;
  border: 1px solid var(--white); border-radius: 66px;
  padding: calc(20 * var(--u)) calc(41 * var(--u));
  font-weight: 600; font-size: max(15px, calc(26 * var(--u))); line-height: 1.38; text-transform: uppercase; text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.socials a::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: background-color .25s; }
.socials a:hover { background: var(--white); color: var(--black); }
.socials a:hover::before { background: var(--orange); }

.contact-form {
  align-self: start;
  background: var(--white); color: var(--black); border-radius: 10px;
  padding: calc(60 * var(--u)) calc(60 * var(--u)) calc(56 * var(--u));
  display: flex; flex-direction: column; gap: calc(40 * var(--u));
}
.contact-form__title { font-weight: 600; font-size: max(28px, calc(52 * var(--u))); line-height: 1.19; margin-bottom: calc(20 * var(--u)); max-width: 13em; }
.field { display: block; border-bottom: 1px solid #000; }
.field span { display: block; font-weight: 600; font-size: max(14px, calc(18 * var(--u))); line-height: 1.55; color: var(--grey); }
.field input, .field textarea {
  width: 100%; border: 0; background: transparent; padding: 6px 0 10px; outline: none;
  font-size: max(16px, calc(20 * var(--u))); resize: vertical; min-height: 40px;
}
.field:focus-within { border-bottom-color: var(--orange); }
.contact-form__submit {
  margin-top: calc(20 * var(--u));
  height: max(60px, calc(90 * var(--u))); border: 0; border-radius: 100px; cursor: pointer;
  background: var(--orange); color: var(--black);
  font-weight: 600; font-size: max(18px, calc(26 * var(--u)));
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.contact-form__submit:hover { background: var(--black); color: var(--white); }
.contact-form { position: relative; }
.contact-form__status { font-size: max(15px, calc(18 * var(--u))); line-height: 1.45; color: var(--black); }
.contact-form__status:empty { display: none; }
.contact-form__status.is-error { background: rgba(255, 92, 33, .12); border-left: 4px solid var(--orange); padding: 14px 16px; border-radius: 6px; }
.contact-form__status a { color: var(--black); font-weight: 600; }
.contact-form__detail { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--grey); }
.contact-form__done {
  display: none; position: absolute; inset: 0; border-radius: 10px; background: var(--white);
  padding: calc(60 * var(--u)) calc(60 * var(--u)); flex-direction: column; justify-content: center; gap: 16px;
  font-size: max(17px, calc(22 * var(--u))); line-height: 1.5;
}
.contact-form__done-title { font-weight: 600; font-size: max(30px, calc(52 * var(--u))); line-height: 1.15; }
.contact-form__done a { color: var(--black); font-weight: 600; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-form.is-sent .contact-form__done { display: flex; }
.contact-form__submit:disabled { opacity: .6; cursor: wait; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.project__media.is-static { cursor: default; }
.project__media.is-static .project__cursor { display: none; }
.project__media.is-static:hover img { transform: none; }

.footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.25);
  padding: calc(35 * var(--u)) var(--gutter) calc(40 * var(--u));
  font-weight: 500; font-size: max(14px, calc(20 * var(--u))); line-height: 2;
}
.footer__top { text-transform: uppercase; }
.footer__legal { display: flex; gap: calc(60 * var(--u)); }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover, .footer__top:hover { color: var(--orange); }
.footer__name {
  background: var(--orange); color: var(--black); overflow: hidden;
  height: calc(350 * var(--u)); display: flex; align-items: center; justify-content: center;
}
.footer__name span {
  font-family: var(--f-display); font-size: calc(250 * var(--u)); line-height: .92;
  text-transform: uppercase; white-space: nowrap;
}

/* =========================================================
   MOTION BASE STATES (only when JS + motion are enabled)
   ========================================================= */
.js-motion .fade-up { opacity: 0; transform: translateY(60px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .contact-badge__ring, .book__cover img { animation: none; }
  .stack__band, .stack__media img { transition: none; }
  .js-motion .fade-up { opacity: 1; transform: none; }
}

/* =========================================================
   TABLET (≤1200px)
   ========================================================= */
@media (max-width: 1200px) {
  .nav { display: none; }
  .pillars__grid { grid-template-columns: 1fr 1fr; }
  .pillar { min-height: 420px; }
  .tags { height: 150px; }
  .problem__grid { grid-template-columns: 1fr 1fr; }
  .platforms__logos { flex-wrap: wrap; justify-content: center; gap: 40px 56px; }
}

/* =========================================================
   MOBILE (≤900px) — stacked flow
   ========================================================= */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .site-header { padding: 14px var(--gutter); }
  .site-header.is-scrolled { padding-block: 10px; }
  .logo { font-size: 26px; }
  .btn-cta { padding: 10px 16px; font-size: 12px; }
  .btn-cta img { display: none; }

  /* Hero */
  .hero { height: auto; padding: 96px var(--gutter) 0; display: flex; flex-direction: column; overflow: visible; }
  .hero__title { order: 1; }
  .hero__line { position: static; font-size: clamp(44px, 14vw, 96px); line-height: .98; white-space: normal; }
  .hero__title { display: flex; flex-direction: column; line-height: .98; }
  .badge { position: static; order: 2; width: auto !important; height: 48px; font-size: 14px; padding-inline: 20px; margin-top: 16px; align-self: flex-start; }
  .badge--orange { align-self: flex-end; margin-top: 10px; }
  .hero__stat { position: static; order: 3; margin-top: 28px; }
  .hero__stat--right { margin-top: 18px; }
  .hero__stat-num { font-size: 48px; }
  .hero__stat-text { font-size: 16px; line-height: 1.45; margin-top: 8px; }
  .hero__portrait { position: static; order: 4; transform: none; width: 100%; height: auto; margin-top: 24px; aspect-ratio: 879 / 729; }

  .experience { height: auto; flex-direction: column; align-items: center; gap: 20px; padding: 32px var(--gutter) 36px; text-align: center; }
  .experience__logos { width: 100%; max-width: 340px; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 34px; }
  .experience__logos img { height: calc(var(--h) * .55px); }

  .statement { height: auto; padding: 96px var(--gutter) 200px; }
  .statement__text { position: static; transform: none; width: auto; font-size: clamp(26px, 7vw, 40px); line-height: 1.18; }
  .contact-badge { left: 50%; top: auto; bottom: 40px; transform: translateX(-50%); width: 130px; height: 130px; }
  .contact-badge__icon { width: 84px; height: 84px; }
  .sq { width: 48px; height: 48px; }
  .sq--bl2 { left: 48px; bottom: 48px; } .sq--br1 { right: 48px; } .sq--br2 { bottom: 48px; }
  .sq--tr1 { right: 48px; } .sq--tr2 { top: 48px; }

  .stack { padding: 64px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; max-width: 100vw; }
  .stack__words { grid-column: 1 / -1; min-width: 0; padding-inline: 16px; }
  .stack__words li { max-width: 100%; }
  .stack__words button { font-size: clamp(32px, 10.5vw, 64px); line-height: 1.08; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .stack__band { height: clamp(42px, 12.6vw, 76px); }
  .stack__media { min-width: 0; }
  .stack__words li + li { margin-top: 6px; }
  .stack__media { position: relative; top: auto; left: auto; right: auto; width: auto; height: auto; aspect-ratio: 390 / 510; margin-top: 32px; }
  .stack__media--left { margin-left: 20px; }
  .stack__media--right { margin-right: 20px; }
  .stack__media img.is-wide { inset: 0; left: 0; top: 0; width: 100%; height: 100%; }

  .pillars { padding: 80px var(--gutter); }
  .pillars .section-statement { width: auto; }
  .pillars__grid { grid-template-columns: 1fr; margin-top: 48px; }
  .pillar { min-height: 380px; padding: 24px; }
  .pillar__title, .pillar__text { margin-top: 18px; }
  .tags { left: 24px; right: 24px; bottom: 30px; height: 130px; }

  .work { padding: 80px var(--gutter); }
  .big-title { font-size: clamp(52px, 15vw, 96px); white-space: normal; }
  .work__grid { grid-template-columns: 1fr; row-gap: 44px; margin-top: 48px; }
  .project__media { cursor: pointer; border-radius: 10px; }
  .project__cursor { display: none; }
  .project__meta { margin-top: 16px; }

  .platforms { padding: 96px var(--gutter); }
  .platforms__text { width: auto; font-size: clamp(22px, 6vw, 34px); }
  .platforms__logos { margin-top: 48px; gap: 32px 36px; }
  .platforms__logos img { width: calc(var(--w) * .5px); height: calc(var(--h) * .5px); }

  .book { grid-template-columns: 1fr; padding: 56px var(--gutter) 64px; min-height: 0; gap: 28px; }
  .book__cover img { width: min(72%, 320px); }
  .book__copy { padding-left: 0; gap: 22px; max-width: none; align-items: center; text-align: center; }
  .book__title { font-size: clamp(56px, 17vw, 88px); }
  .book__subtitle { font-size: 21px; line-height: 1.3; max-width: 34ch; }
  .book__body { font-size: 16px; max-width: 38ch; }
  .book__excavations { width: 100%; }
  .chips { justify-content: center; gap: 8px; }
  .chips li { padding: 8px 15px; font-size: 14px; }
  .book__quote { border-left: 0; padding: 18px 0 0; border-top: 2px solid var(--ink); max-width: 30ch; }
  .book__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; gap: 12px; }
  .book__actions .btn { justify-content: center; padding: 16px 22px; }
  .book__actions .text-link { align-self: center; margin-top: 4px; }

  .testimonials { padding: 80px var(--gutter); }
  .testimonials__grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .quote-card { min-height: 0; padding: 28px 24px; }
  .stars { margin-top: 24px; }
  .quote-card blockquote { margin-top: 16px; }

  .featured { flex-direction: column; align-items: flex-start; gap: 24px; padding: 64px var(--gutter); }
  .featured__label { flex: none; }
  .featured__logos { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 22px 28px; }
  .featured__logos img { height: calc(var(--h) * .6px); }

  .bio { grid-template-columns: 1fr; gap: 24px; padding: 32px var(--gutter) 80px; }
  .bio__title { max-width: none; }
  .bio__right { padding-top: 0; max-width: none; }

  .wired { padding: 96px var(--gutter) 200px; }
  .wired__grid { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .wired__cell { min-height: 170px; }
  .wired__cell:nth-child(3) { border-left: 0; }
  .wired__cell:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.2); }

  .ribbons { height: 260px; margin-top: -130px; }
  .ribbon { height: 52px; width: 160vw; }
  .ribbon--a { transform: translate(-50%, calc(-50% - 26px)) rotate(7deg); }
  .ribbon--b { transform: translate(-50%, calc(-50% + 26px)) rotate(-7deg); }
  .ribbon__track span { font-size: 22px; }

  .problem { padding: 24px var(--gutter) 96px; }
  .problem__grid { grid-template-columns: 1fr; margin-top: 40px; }
  .problem-card { min-height: 0; padding: 24px 24px 64px; }
  .problem-card__tag { left: 24px; bottom: 24px; }

  .footer__main { grid-template-columns: 1fr; padding: 80px var(--gutter) 56px; }
  .footer__text { margin-top: 28px; }
  .btn-square { margin-top: 28px; }
  .socials { margin-top: 24px; gap: 12px; }
  .socials a { padding: 12px 22px; }
  .contact-form { padding: 28px 22px; gap: 26px; }
  .footer__bar { flex-direction: column; align-items: flex-start; padding: 24px var(--gutter); line-height: 1.6; }
  .footer__legal { flex-wrap: wrap; gap: 6px 20px; }
  .footer__legal a { white-space: nowrap; }
  .footer__name { height: 26vw; }
  .footer__name span { font-size: 15vw; }
}

/* =========================================================
   LEGAL PAGES (cookie policy, terms)
   ========================================================= */
.legal-page .site-header { position: sticky; top: 0; background: rgba(250, 244, 238, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(0,0,0,.08); padding-block: 18px; }
.legal { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 96px 24px 120px; color: var(--ink); }
.legal__eyebrow { font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.legal__eyebrow::before { content: "•"; margin-right: .8em; }
.legal h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 9vw, 120px); line-height: .92; text-transform: uppercase; margin-top: 18px; }
.legal__meta { margin-top: 20px; color: var(--grey); font-size: 16px; }
.legal__intro { margin-top: 40px; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; }
.legal h2 { margin-top: 56px; font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.legal h3 { margin-top: 28px; font-weight: 600; font-size: 20px; }
.legal p, .legal li { font-size: 18px; line-height: 1.65; }
.legal p + p { margin-top: 16px; }
.legal h2 + p, .legal h3 + p, .legal h2 + ul { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-top: 14px; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--black); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal__table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid rgba(0,0,0,.12); line-height: 1.5; }
.legal__table th { font-weight: 600; background: rgba(255,255,255,.6); }
.legal__back { display: inline-flex; margin-top: 64px; background: var(--orange); color: var(--black); text-decoration: none; font-weight: 700; text-transform: uppercase; padding: 16px 28px; border-radius: 6px; }
.legal-footer { background: var(--black); color: var(--white); position: relative; z-index: 1; }
.legal-footer .footer__bar { border-top: 0; }
@media (max-width: 700px) {
  .legal { padding: 56px 20px 80px; }
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; width: 100%; }
  .legal__table thead { display: none; }
  .legal__table td { border-bottom: 0; padding: 4px 0; }
  .legal__table tr { border-bottom: 1px solid rgba(0,0,0,.12); padding: 12px 0; }
  .legal__table td:first-child { font-weight: 600; }
}
.contact-form__privacy { margin-top: -16px; font-size: 14px; line-height: 1.5; color: var(--grey); text-align: center; }
.contact-form__privacy a { color: var(--black); }
