:root {
  --paper: #f2f0ea;
  --ink: #101010;
  --red: #ff2b18;
  --white: #fffdf8;
  --line: rgba(16, 16, 16, .22);
  --pad: clamp(20px, 3.3vw, 56px);
  --display: "DM Sans", Arial, sans-serif;
  --mono: "Space Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--display); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; }
::selection { background: var(--red); color: white; }

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: white; color: black; padding: 12px 16px; }
.skip-link:focus { top: 12px; }

/* ---- scroll progress hairline ---- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ---- header ---- */
.site-header { height: 74px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; position: fixed; inset: 0 0 auto; z-index: 50; color: white; mix-blend-mode: difference; }
.brand img { width: auto; height: 34px; filter: grayscale(1) brightness(0) invert(1); }
.site-nav { display: flex; gap: clamp(16px, 2.2vw, 40px); align-items: center; }
.site-nav a, .menu-toggle { text-decoration: none; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; height: 1px; background: currentColor; left: 0; right: 100%; bottom: -6px; transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.is-active::after { right: 0; }
.menu-toggle { display: none; color: inherit; background: none; border: 0; padding: 10px 0; }
.nav-foot { display: none; }

/* ---- hero ---- */
.hero { min-height: 100svh; position: relative; overflow: hidden; color: white; display: grid; align-content: end; padding: 110px var(--pad) 26px; background: #1c1c1c; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { inset: -12% 0; will-change: transform; }
.hero-media img { height: 100%; object-fit: cover; scale: 1.02; animation: hero-in 1.4s var(--ease) both; }
.hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.06) 42%, rgba(0,0,0,.7)); }
.hero-topline { position: absolute; z-index: 1; top: 102px; left: var(--pad); right: var(--pad); border-top: 1px solid rgba(255,255,255,.58); padding-top: 11px; display: flex; justify-content: space-between; font: 400 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.hero-content { position: relative; z-index: 2; }
.eyebrow, .section-label { font: 400 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.hero h1 { margin: 12px 0 34px; max-width: 1240px; font-size: clamp(60px, 10.5vw, 176px); font-weight: 650; line-height: .84; letter-spacing: -.07em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: block; translate: 0 112%; animation: line-up .9s var(--ease) forwards; }
.hero h1 .line:nth-child(1) > span { animation-delay: .15s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .27s; }
.hero-link { display: inline-flex; gap: 28px; align-items: center; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.75); padding: 0 0 10px; font-size: 14px; }
.hero-link span { transition: translate .25s ease; }
.hero-link:hover span { translate: 0 5px; }
.hero-index { position: absolute; z-index: 1; right: var(--pad); bottom: 66px; font: 700 clamp(40px, 7vw, 110px)/1 var(--mono); letter-spacing: -.1em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.9); transition: color .35s ease, -webkit-text-stroke-color .35s ease; }
.hero-index:hover { color: var(--red); -webkit-text-stroke-color: var(--red); }
.hero-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 24px; margin-top: 44px; border-top: 1px solid rgba(255,255,255,.45); padding-top: 12px; font: 400 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.85); }

/* ---- shared section furniture ---- */
.section-pad { padding-left: var(--pad); padding-right: var(--pad); }
.section-label { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.section-label span:first-child { color: var(--red); }

/* ---- reveal engine (JS adds .is-in; no-JS renders visible) ---- */
html.js [data-reveal] { opacity: 0; translate: 0 34px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: var(--reveal-delay, 0s); }
html.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---- intro ---- */
.intro { padding-top: clamp(100px, 15vw, 210px); padding-bottom: clamp(110px, 16vw, 230px); }
.intro .section-label { position: sticky; top: 88px; z-index: 5; background: var(--paper); padding-bottom: 10px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: clamp(50px, 10vw, 180px); margin-top: clamp(58px, 8vw, 110px); align-items: start; }
.intro h2, .section-head h2, .tools h2, .team-heading h2 { margin: 0; font-size: clamp(42px, 6vw, 92px); font-weight: 550; line-height: .98; letter-spacing: -.055em; }
.intro h2 .word { opacity: .14; transition: opacity .5s ease; transition-delay: var(--word-delay, 0s); }
.intro h2.is-lit .word { opacity: 1; }
html:not(.js) .intro h2 .word { opacity: 1; }
.intro-copy { max-width: 520px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; }
.intro-copy p { margin: 0 0 1.4em; }
.text-link { display: inline-flex; gap: 24px; align-items: center; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 7px; font: 500 12px/1.2 var(--mono); text-transform: uppercase; }
.text-link span { transition: translate .25s ease; }
.text-link:hover span { translate: 4px -4px; }

/* ---- projects ---- */
.projects { background: #111; color: var(--white); padding-top: 42px; padding-bottom: clamp(80px, 10vw, 140px); }
.projects .section-label { border-color: rgba(255,255,255,.25); }
.section-head h2 { max-width: 1040px; margin: 58px 0 clamp(70px, 10vw, 140px); }
.project-index { font: 700 11px/1 var(--mono); color: var(--red); letter-spacing: .08em; }

.project-feature { display: block; position: relative; text-decoration: none; overflow: hidden; }
.project-feature figure { margin: 0; height: min(82vh, 940px); overflow: hidden; background: #242424; }
.project-feature img { height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.project-feature:hover img { scale: 1.04; }
.project-feature::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.project-feature:hover::after { transform: scaleX(1); }
.feature-meta { position: absolute; inset: auto 0 0; padding: clamp(90px, 12vw, 170px) var(--pad) clamp(28px, 3.4vw, 50px); background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }
.feature-meta h3 { margin: 10px 0 8px; font-size: clamp(36px, 4.5vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.feature-meta p { margin: 0; font: 400 11px/1.5 var(--mono); text-transform: uppercase; color: rgba(255,255,255,.72); }
.project-tag { font: 400 10px/1.5 var(--mono); text-transform: uppercase; color: rgba(255,255,255,.62); white-space: nowrap; }
.feature-meta .project-tag { position: absolute; right: var(--pad); bottom: clamp(30px, 3.6vw, 54px); }

.project-wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 22px); padding: clamp(10px, 1.4vw, 22px) var(--pad) 0; }
.project-card { display: block; position: relative; text-decoration: none; }
.wall-a { grid-column: 1 / 6; }
.wall-b { grid-column: 6 / 13; margin-top: clamp(48px, 7vw, 130px); }
.wall-c { grid-column: 5 / 13; margin-top: clamp(10px, 1.4vw, 22px); }
.project-card figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 1.06; background: #242424; }
.wall-b figure { aspect-ratio: 1.45; }
.wall-c figure { aspect-ratio: 1.7; }
.project-card img { height: 100%; object-fit: cover; transition: scale .8s var(--ease), filter .4s ease; }
.project-card:hover img { scale: 1.04; filter: saturate(1.08); }
.project-card figure::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.project-card:hover figure::after { transform: scaleX(1); }
.project-meta { display: flex; align-items: flex-start; gap: 18px; padding-top: 16px; }
.project-meta > div { flex: 1; }
.project-meta h3 { margin: 0 0 4px; font-size: clamp(20px, 2vw, 31px); font-weight: 550; letter-spacing: -.03em; }
.project-meta p { margin: 0; font: 400 10px/1.5 var(--mono); text-transform: uppercase; color: rgba(255,255,255,.62); }
.project-meta .project-index { padding-top: 6px; }
.project-meta .project-tag { padding-top: 6px; }
.projects-foot { display: flex; justify-content: flex-end; margin-top: clamp(60px, 9vw, 130px); }
.circle-link { width: 178px; aspect-ratio: 1; border-radius: 50%; display: flex; justify-content: space-between; align-items: center; padding: 30px; color: #111; background: var(--red); text-decoration: none; font: 500 14px/1.2 var(--mono); transition: rotate .5s var(--ease), scale .35s ease; }
.circle-link:hover { rotate: -14deg; scale: 1.05; }
.circle-link b { font-size: 24px; font-weight: 400; }

/* ---- manifesto ---- */
.manifesto { overflow: hidden; padding: clamp(70px, 9vw, 130px) 0; background: var(--red); color: #111; }
.manifesto-track { display: flex; width: max-content; white-space: nowrap; font: 400 clamp(18px, 2.4vw, 36px)/1 var(--mono); text-transform: uppercase; animation: ticker 28s linear infinite; }
.manifesto-track--reverse { animation: ticker-reverse 34s linear infinite; margin-top: clamp(80px, 12vw, 170px); }
.manifesto-track span { padding-right: .5em; }
.manifesto p { margin: clamp(80px, 12vw, 170px) var(--pad) 0; max-width: 1400px; font-size: clamp(48px, 9vw, 145px); font-weight: 700; line-height: .87; letter-spacing: -.065em; }

/* ---- tools ---- */
.tools { padding-top: clamp(100px, 13vw, 180px); padding-bottom: clamp(110px, 15vw, 210px); }
.tools-heading { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr); align-items: end; gap: 70px; margin: 60px 0 100px; }
.tools-heading p { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; max-width: 490px; margin: 0; }
.tool-row { position: relative; z-index: 0; display: grid; grid-template-columns: clamp(80px, 9vw, 150px) minmax(220px, .65fr) 1fr 40px; align-items: center; gap: 22px; min-height: 128px; text-decoration: none; border-top: 1px solid var(--ink); transition: padding .3s var(--ease); }
.tool-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.tool-row:last-child { border-bottom: 1px solid var(--ink); }
.tool-row:hover { padding-left: 18px; padding-right: 18px; }
.tool-row:hover::before { transform: scaleY(1); }
.tool-number { font: 300 clamp(56px, 6.4vw, 110px)/1 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(16,16,16,.55); transition: -webkit-text-stroke-color .3s ease; }
.tool-row:hover .tool-number { -webkit-text-stroke-color: #111; }
.tool-row strong { font-size: clamp(26px, 3vw, 48px); font-weight: 550; letter-spacing: -.04em; }
.tool-desc { font-size: 15px; color: #4f4f4f; transition: color .3s ease; }
.tool-row:hover .tool-desc { color: #241311; }
.tool-arrow { text-align: right; font-size: 25px; transition: translate .3s var(--ease); }
.tool-row:hover .tool-arrow { translate: 6px -6px; }

/* ---- team ---- */
.team { position: relative; padding-top: clamp(90px, 12vw, 170px); padding-bottom: clamp(110px, 15vw, 210px); }
.anchor-alias { position: absolute; top: -84px; }
.team-heading { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr); align-items: end; gap: 70px; margin: 60px 0 clamp(60px, 8vw, 110px); }
.team-heading p { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; max-width: 460px; margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: clamp(28px, 4vw, 64px); }
.team-card { max-width: 520px; }
.team-card figure { margin: 0 0 26px; overflow: hidden; aspect-ratio: 4 / 5; background: #ddd; }
.team-card img { height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s ease, scale .8s var(--ease); }
.team-card:hover img { filter: grayscale(0); scale: 1.03; }
.team-card h3 { margin: 0 0 8px; font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }
.team-role { margin: 0 0 18px; font: 700 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.team-bio { margin: 0 0 24px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.55; color: #3c3c3c; }
.team-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.team-links a { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color .25s ease, border-color .25s ease; }
.team-links a:hover { color: var(--red); border-color: var(--red); }

/* Social marks are drawn, not fonts — they inherit colour so they follow every
   hover and inverted-surface rule the link they sit in already has. */
.social-icon { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- contact ---- */
.contact { min-height: 92svh; display: flex; flex-direction: column; justify-content: space-between; padding: 34px var(--pad) 30px; background: #080808; color: white; }
.contact-top { display: flex; justify-content: space-between; gap: 30px; font: 400 10px/1.4 var(--mono); text-transform: uppercase; }
.contact h2 { font-size: clamp(68px, 13.5vw, 220px); font-weight: 650; line-height: .76; letter-spacing: -.075em; margin: 90px 0; }
.contact-email { font-size: clamp(18px, 2.4vw, 36px); text-decoration: none; padding: 0 6px 12px; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.6); background: linear-gradient(var(--red), var(--red)) left bottom / 0% 100% no-repeat; transition: background-size .45s var(--ease), color .3s ease; }
.contact-email:hover { background-size: 100% 100%; color: #0a0a0a; }
.contact-social { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 26px; padding: 0 6px; font: 400 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.contact-social a { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.75); text-decoration: none; transition: color .25s ease; }
.contact-social a:hover { color: var(--red); }
.contact-social .social-icon { width: 17px; height: 17px; }
.contact-foot { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 30px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 24px; margin-top: 90px; font: 400 11px/2 var(--mono); text-transform: uppercase; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; }
.foot-h { color: rgba(255,255,255,.45); margin-bottom: 6px; }
.contact-foot a { text-decoration: none; }
.contact-foot a:hover { color: var(--red); }
.foot-meta { align-items: flex-end; text-align: right; color: rgba(255,255,255,.75); }
.foot-meta a { color: white; margin-top: 6px; }

@keyframes hero-in { from { opacity: 0; scale: 1.08; } to { opacity: 1; scale: 1.02; } }
@keyframes line-up { to { translate: 0 0; } }
@keyframes ticker { to { translate: -50% 0; } }
@keyframes ticker-reverse { from { translate: -50% 0; } to { translate: 0 0; } }

@media (max-width: 850px) {
  .site-header { height: 64px; }
  .brand img { height: 29px; }
  .menu-toggle { display: block; z-index: 2; cursor: pointer; }
  .site-nav { position: fixed; inset: 0; background: var(--red); color: #111; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: var(--pad); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
  .site-nav a { font: 550 clamp(40px, 11vw, 72px)/1 var(--display); letter-spacing: -.05em; text-transform: none; translate: 0 26px; opacity: 0; transition: translate .5s var(--ease), opacity .5s ease; }
  .site-nav a:nth-child(1) { transition-delay: .05s; } .site-nav a:nth-child(2) { transition-delay: .11s; }
  .site-nav a:nth-child(3) { transition-delay: .17s; } .site-nav a:nth-child(4) { transition-delay: .23s; }
  .site-nav a:nth-child(5) { transition-delay: .29s; } .site-nav a:nth-child(6) { transition-delay: .35s; }
  .site-header.menu-open { mix-blend-mode: normal; color: #111; }
  .site-header.menu-open .brand { visibility: hidden; }
  .site-header.menu-open .site-nav { opacity: 1; visibility: visible; }
  .site-header.menu-open .site-nav a { translate: 0 0; opacity: 1; }
  .nav-foot { display: flex; position: absolute; left: var(--pad); right: var(--pad); bottom: 26px; justify-content: space-between; gap: 16px; font: 400 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; border-top: 1px solid rgba(16,16,16,.4); padding-top: 12px; }
  .hero { padding-bottom: 22px; }
  .hero-topline span:last-child { display: none; }
  .hero h1 { font-size: clamp(54px, 15.5vw, 96px); }
  .hero-index { display: none; }
  .hero-foot span:nth-child(2) { display: none; }
  .intro .section-label { position: static; padding-bottom: 0; }
  .intro-grid, .tools-heading, .team-heading { grid-template-columns: 1fr; }
  .intro-grid { gap: 54px; }
  .tools-heading, .team-heading { align-items: start; gap: 38px; margin-bottom: 70px; }
  .feature-meta { padding-bottom: 24px; }
  .feature-meta .project-tag { position: static; display: block; margin-top: 10px; }
  .project-feature figure { height: min(64vh, 560px); }
  .project-wall { display: block; padding-top: 14px; }
  .project-card { margin: 0 0 34px; }
  .wall-b, .wall-c { margin-top: 0; }
  .project-card figure, .wall-b figure, .wall-c figure { aspect-ratio: 4 / 3; }
  .manifesto p { font-size: clamp(48px, 13vw, 86px); }
  .manifesto-track--reverse { margin-top: clamp(70px, 11vw, 150px); }
  .tool-row { grid-template-columns: 52px 1fr 32px; min-height: 100px; }
  .tool-number { font-size: 40px; }
  .tool-desc { display: none; }
  .team-card { max-width: none; }
  .contact-top span:last-child { display: none; }
  .contact-foot { grid-template-columns: 1fr 1fr; }
  .foot-meta { grid-column: 1 / -1; align-items: flex-start; text-align: left; border-top: 1px solid rgba(255,255,255,.18); padding-top: 16px; }
}

@media (max-width: 520px) {
  .hero-topline { top: 82px; }
  .hero h1 { letter-spacing: -.06em; }
  .intro, .tools, .team { padding-top: 90px; padding-bottom: 110px; }
  .intro h2, .section-head h2, .tools h2, .team-heading h2 { font-size: 42px; }
  .feature-meta h3 { font-size: 30px; }
  .project-meta { flex-wrap: wrap; }
  .circle-link { width: 144px; padding: 23px; font-size: 12px; }
  .manifesto { padding: 70px 0 80px; }
  .manifesto p { margin-top: 90px; }
  .contact { min-height: 82svh; }
  .contact h2 { font-size: 20vw; margin: 70px 0; }
  .contact-email { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js [data-reveal] { opacity: 1; translate: 0 0; }
  .hero h1 .line > span { translate: 0 0; animation: none; }
  .intro h2 .word { opacity: 1; }
  .hero-media { inset: 0; }
  .hero-media img { transform: none !important; }
}
