/* TheRight — website v0.1
   Brand palette (Identity V01.0): Red #C60000 · Warm Ash #44423D · Cool Onyx #303633.
   Proposed, not yet in the brand book: Paper (light ground) and Onyx Deep (footer).
   Rules: Onyx is the canvas; red is a signal, never body text on Onyx (2.1:1). */

/* Self-hosted brand faces (licensed). Only the cuts the site uses are shipped. */
@font-face {
  font-family: "Acumin Pro";
  src: url("../fonts/AcuminPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Abar";
  src: url("../fonts/Abar-VF.woff2") format("woff2-variations"),
       url("../fonts/Abar-VF.woff2") format("woff2");
  font-weight: 100 950;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #C60000;
  --ash: #44423D;
  --onyx: #303633;
  --onyx-deep: #262B29;   /* proposed */
  --paper: #EDEAE4;       /* proposed light ground */

  --on-dark: var(--paper);
  --on-dark-mute: rgba(237, 234, 228, .66);
  --on-light: var(--onyx);
  --on-light-mute: rgba(48, 54, 51, .72);
  --line-dark: rgba(237, 234, 228, .2);

  --font: "Acumin Pro", "Helvetica Neue", Arial, sans-serif;
  --font-fa: "Abar", Tahoma, sans-serif;

  --gutter: clamp(16px, 2.2vw, 32px);
  --header-h: 72px;
  --t-label: 14px;
  --t-body: clamp(17px, 1.53vw, 22px);
  --t-display: clamp(26px, 2.8vw, 44px);
  --t-giant: clamp(52px, 11.1vw, 210px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--onyx);
  color: var(--on-dark);
  font: 500 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; font-weight: inherit; font-size: inherit; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; background: var(--paper); color: var(--onyx);
  transform: translateY(-150%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- shared atoms ---------- */
.label {
  font-size: var(--t-label);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.muted { color: var(--on-dark-mute); }
.fa {
  font-family: var(--font-fa);
  font-weight: 450;
  font-variation-settings: "CNTR" 40; /* Abar "Mid" contrast (Low 0 · Mid 40 · High 100) — house rule: Low/Mid only */
  text-transform: none;
  letter-spacing: 0;
}
.sq {
  display: inline-block; width: .62em; height: .62em; margin-right: .6em;
  background: var(--red); vertical-align: .02em;
}
.link { position: relative; display: inline-block; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }

.pill {
  justify-self: start;
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: var(--t-label); text-transform: uppercase; letter-spacing: .01em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.pill:hover { background: var(--paper); color: var(--onyx); border-color: var(--paper); }

.bar {
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  padding: 28px 0 18px;
  border-bottom: 1px solid currentColor;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 480px;
  overflow: hidden;
  background: #1C201E;
}
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,23,22,.5) 0%, rgba(20,23,22,.12) 42%, rgba(20,23,22,.62) 100%);
}
.hero__word {
  position: absolute; z-index: 2; top: clamp(12px, 2.6vw, 40px); left: calc(var(--gutter) * .6);
  width: 150vw; height: auto;
  color: rgba(237, 234, 228, .6);
  will-change: transform;
}
.hero__meta {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: var(--t-label); text-transform: uppercase; letter-spacing: .01em;
}
.hero__count { margin-right: .8em; color: var(--on-dark-mute); }
.hero__toggle { min-height: 44px; padding: 0 2px; text-transform: uppercase; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h); padding: 0 var(--gutter);
  background: var(--onyx);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line-dark); }
.logo { display: inline-flex; align-items: center; gap: 12px; height: 44px; }
.logo__mark { width: 30px; height: 30px; }
.logo__word { width: 118px; height: auto; color: var(--paper); }
.nav { justify-self: end; }
.nav__list { display: flex; gap: 26px; font-size: var(--t-label); text-transform: uppercase; letter-spacing: .01em; }
.nav__list a { display: inline-block; padding: 12px 0; }
.nav__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__toggle, .nav__contact { display: none; }

/* ---------- manifesto ---------- */
.manifesto {
  padding: clamp(96px, 16vw, 240px) var(--gutter) clamp(96px, 17vw, 260px);
  text-align: center;
}
.manifesto p {
  max-width: 1120px; margin: 0 auto;
  font-size: var(--t-display); line-height: 1.12;
  text-transform: uppercase; letter-spacing: -.005em;
  text-wrap: balance;
}
.manifesto .fa { font-size: 1.08em; }

/* ---------- work ---------- */
.work { padding: 0 var(--gutter) clamp(80px, 10vw, 160px); }
.project {
  display: grid; grid-template-columns: minmax(180px, 18.5%) 1fr; gap: 32px;
  padding-top: 32px;
}
.project__info { display: flex; flex-direction: column; gap: 2px; }
.project__info p.label { color: var(--on-dark-mute); max-width: 22ch; }
.project__nav { display: flex; align-items: center; gap: 4px; margin-top: 14px; font-size: var(--t-label); }
.project__count { min-width: 5ch; text-align: center; color: var(--on-dark-mute); }
.arrow {
  width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.arrow:hover { background: var(--paper); color: var(--onyx); border-color: var(--paper); }
.arrow:disabled { opacity: .35; cursor: default; background: none; color: inherit; }

.strip {
  display: flex; gap: 32px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
  cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging img { pointer-events: none; }
.strip figure {
  flex: 0 0 min(69vw, 1200px); aspect-ratio: 16 / 9;
  scroll-snap-align: start; background: var(--ash); overflow: hidden;
}
.strip img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* index */
.index { margin-top: clamp(80px, 9vw, 140px); }
.index__list li {
  position: relative;
  display: grid; grid-template-columns: 56px 1.1fr 1.5fr 1.4fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-dark);
  font-size: var(--t-label); line-height: 1.35; text-transform: uppercase; letter-spacing: .01em;
  transition: padding .35s var(--ease);
}
.index__list li > :first-child { color: var(--on-dark-mute); }
.index__list li > :last-child { color: var(--on-dark-mute); }
.index__list em { font-style: normal; color: var(--on-dark-mute); }
.index__list li::before {
  content: ""; position: absolute; left: -22px; top: 50%; width: 9px; height: 9px; margin-top: -5px;
  background: var(--red); transform: scale(0); transition: transform .3s var(--ease);
}
.index__list li:hover { padding-left: 8px; }
.index__list li:hover::before { transform: scale(1); }

/* ---------- ethos (paper) ---------- */
.ethos {
  position: relative; overflow: clip;
  background: var(--paper); color: var(--on-light);
  padding: clamp(72px, 9vw, 140px) var(--gutter) clamp(80px, 10vw, 160px);
}
.kinetic {
  position: relative; z-index: 2;
  font-size: var(--t-giant); line-height: .9; letter-spacing: -.025em; text-transform: uppercase;
}
.kinetic__line { display: flex; align-items: center; gap: .25em; }
.kinetic__line--split { justify-content: space-between; }
.kinetic__line--fa { justify-content: center; margin: .06em 0 .12em; }
.kinetic__fa { color: var(--red); font-size: .62em; line-height: 1.3; }
.kinetic__mark { width: .62em; height: .62em; margin-left: .1em; flex: none; }
.kinetic .ch { display: inline-block; white-space: pre; will-change: transform; }
.kinetic__thumb { height: .78em; width: auto; flex: none; object-fit: cover; }
.kinetic__thumb--push { margin-left: auto; }

.ethos__text {
  position: relative; z-index: 2;
  max-width: 760px; margin: clamp(64px, 8vw, 120px) auto 0; text-align: center;
}
.ethos__text p {
  font-size: var(--t-body); line-height: 1.3; text-transform: uppercase; letter-spacing: .005em;
  margin-bottom: 40px;
}

/* ---------- services (paper) ---------- */
.services {
  background: var(--paper); color: var(--on-light);
  padding: 0 var(--gutter) clamp(80px, 10vw, 160px);
}
.services .muted, .services .label.muted { color: var(--on-light-mute); }
.services__list li {
  display: grid; grid-template-columns: 56px 1fr 1fr; gap: 16px; align-items: baseline;
  padding: 22px 0 20px; border-bottom: 1px solid rgba(48, 54, 51, .25);
}
.services__no { font-size: var(--t-label); color: var(--on-light-mute); }
.services__list h3 { font-size: var(--t-display); line-height: 1.05; text-transform: uppercase; letter-spacing: -.005em; }
.services__list p { font-size: var(--t-label); text-transform: uppercase; letter-spacing: .01em; color: var(--on-light-mute); }

.process { margin-top: clamp(56px, 7vw, 100px); }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; border-top: 1px solid var(--onyx); }
.process__steps li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 18px 16px 18px 0; font-size: var(--t-body); text-transform: uppercase;
}
.process__steps li + li { padding-left: 16px; border-left: 1px solid rgba(48, 54, 51, .25); }
.process__steps .fa { color: var(--on-light-mute); }

.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(56px, 7vw, 100px); }
.numbers div { display: flex; flex-direction: column-reverse; gap: 8px; }
.numbers dd { font-size: var(--t-giant); line-height: .85; letter-spacing: -.03em; }
.numbers dt { font-size: var(--t-label); text-transform: uppercase; color: var(--on-light-mute); }

/* ---------- team split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: min(92vh, 920px); }
.split__text {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 36px var(--gutter) 40px;
}
.split__text h2 { font-size: var(--t-display); line-height: 1.1; text-transform: uppercase; letter-spacing: -.005em; max-width: 24ch; }
.split__media { position: relative; background: #1C201E; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__media figcaption { position: absolute; left: 28px; bottom: 24px; color: var(--paper); }

/* ---------- footer ---------- */
.footer {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(88px, 11vw, 160px) var(--gutter) 28px;
  background: var(--onyx-deep);
}
.footer__line { font-size: var(--t-display); line-height: 1.1; text-transform: uppercase; }
.footer__fa { margin-top: 10px; font-size: var(--t-body); color: var(--on-dark-mute); }
.footer .pill { justify-self: auto; margin-top: 40px; }
.footer__big {
  margin-top: 48px;
  font-size: var(--t-display); line-height: 1.12; text-transform: uppercase;
}
.footer__big a { transition: color .3s var(--ease); }
.footer__big a:hover { color: var(--on-dark-mute); }
.footer__mark { width: 52px; height: 52px; margin: clamp(64px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.footer__base {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end;
  color: var(--on-dark-mute);
}
.footer__base address { font-style: normal; }
.footer__base > :first-child { text-align: left; }
.footer__base > :last-child { text-align: right; }

/* ---------- reveal (only when JS runs; content is visible without it) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .site-header { grid-template-columns: auto 1fr; }
  .site-header > .pill { display: none; }
  .logo__mark { width: 26px; height: 26px; }
  .logo__word { width: 100px; }
  .nav__toggle { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-label); text-transform: uppercase; }
  .nav__list {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--onyx); border-bottom: 1px solid var(--line-dark);
    font-size: var(--t-display);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open .nav__list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__contact { display: block; }

  .bar .muted { display: none; }
  .project { grid-template-columns: 1fr; gap: 14px; padding-top: 28px; }
  .project__info p.label { max-width: none; }
  .project__nav { display: none; }
  .strip { gap: 12px; }
  .strip figure { flex-basis: 86vw; }

  .index__list li { grid-template-columns: 32px 1fr; row-gap: 2px; }
  .index__list li > :nth-child(3), .index__list li > :nth-child(4) { grid-column: 2; }
  .index__list li::before { display: none; }

  .kinetic__thumb { height: .72em; }

  .services__list li { grid-template-columns: 32px 1fr; }
  .services__list p { grid-column: 2; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .process__steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .process__steps li:nth-child(n+3) { border-top: 1px solid rgba(48, 54, 51, .25); }
  .numbers { grid-template-columns: 1fr; gap: 28px; }

  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 70vw; }

  .footer__base { grid-template-columns: 1fr; text-align: center; }
  .footer__base > :first-child, .footer__base > :last-child { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
