:root {
  --bg: #050505;
  --ink: #ede9e2;
  --ink-2: rgba(237, 233, 226, 0.62);
  --ink-3: rgba(237, 233, 226, 0.34);
  --line: rgba(237, 233, 226, 0.12);
  --accent: #d9c7a5;
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--ink); color: var(--bg); }

#gl {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark { font-family: var(--serif); font-size: 28px; line-height: 1; letter-spacing: -0.02em; }
.brand-name { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.nav-links { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav-links a {
  font-size: 13px; letter-spacing: 0.04em;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

main { position: relative; z-index: 1; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Hero ---------- */
.hero {
  height: 100svh; min-height: 560px;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) clamp(28px, 6vh, 64px);
}
.hero-bottom { max-width: 880px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 22px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero-title {
  font-weight: 300;
  font-size: clamp(38px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero-title em { font-size: 1.06em; }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
}
.scroll-line { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--ink); animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }

/* ---------- Manifesto ---------- */
.manifesto {
  padding: clamp(120px, 22vh, 240px) var(--gutter) clamp(80px, 14vh, 160px);
}
.manifesto-text {
  margin-top: 36px;
  max-width: 1200px;
  font-weight: 300;
  font-size: clamp(28px, 4.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
/* ---------- How we work (pinned, particles morph behind) ---------- */
.ops { position: relative; }
.ops-pin {
  height: 100svh;
  display: flex; flex-direction: column;
  padding: clamp(88px, 12vh, 120px) var(--gutter) clamp(28px, 6vh, 56px);
}
.ops-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  align-items: end;
}
.ops-count {
  grid-column: 1; grid-row: 1; align-self: start;
  margin-top: 28px;
  font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.ops-cur { color: var(--ink); }
.ops-items { grid-column: 1; grid-row: 2; position: relative; align-self: end; min-height: 1px; }
.ops-item { position: absolute; left: 0; right: 0; bottom: 0; }
.ops-item { --ops-size: clamp(76px, 13.5vw, 240px); }
.ops-word {
  font-weight: 300;
  font-size: var(--ops-size);
  line-height: 0.86; letter-spacing: -0.055em;
  margin-left: -0.05em;
}
/* Clear the giant word's descenders (the q in Acquire, the p in Operate). */
.ops-sub { font-size: clamp(30px, 3.6vw, 60px); line-height: 1; margin-top: calc(var(--ops-size) * 0.2); color: var(--accent); }
.ops-desc { margin-top: 26px; max-width: 38ch; font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-2); }
.ops-progress {
  grid-column: 1 / -1; grid-row: 3;
  margin-top: clamp(28px, 5vh, 48px);
  height: 1px; background: var(--line); overflow: hidden;
}
.ops-progress i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* ---------- Portfolio ---------- */
.portfolio { padding: clamp(80px, 14vh, 160px) var(--gutter); }
.section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px;
  margin-bottom: clamp(40px, 8vh, 88px);
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-title {
  font-weight: 300; font-size: clamp(36px, 5.6vw, 88px);
  line-height: 0.98; letter-spacing: -0.035em; max-width: 14ch;
}
.count { font-family: var(--serif); font-size: clamp(48px, 6vw, 96px); line-height: 0.8; color: var(--ink-3); }

.v-list { list-style: none; border-top: 1px solid var(--line); }
.v-row { border-bottom: 1px solid var(--line); }
.v-row > a, .v-row > div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 220px 110px 32px;
  align-items: center; gap: 16px;
  padding: clamp(18px, 3vh, 30px) 0;
  transition: opacity 0.5s var(--ease);
}
/* Hover dimming is for real pointers only — on touch a scroll-tap would stick it on. */
@media (hover: hover) { .v-list:hover .v-row:not(:hover) > * { opacity: 0.28; } }
.v-idx { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.v-name {
  font-size: clamp(26px, 3.6vw, 56px); font-weight: 300; letter-spacing: -0.03em; line-height: 1;
  transition: transform 0.7s var(--ease);
}
@media (hover: hover) { .v-row:hover .v-name { transform: translateX(18px); } }
.v-name em { display: none; }
.v-meta { font-size: 13px; color: var(--ink-2); }
.v-status {
  justify-self: start;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2);
}
.v-status[data-s="Live"] { color: var(--accent); border-color: rgba(217, 199, 165, 0.35); }
.v-arrow { font-size: 22px; color: var(--ink-3); transition: transform 0.6s var(--ease), color 0.3s; }
@media (hover: hover) { .v-row:hover .v-arrow { transform: translate(4px, -4px); color: var(--ink); } }
/* Touch: every row stays lit; each one flares briefly brighter as it scrolls into view. */
.v-row > a { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .v-row.is-glint .v-name { animation: v-glint 1.6s var(--ease) both; }
  .v-row.is-glint .v-status[data-s="Live"] { animation: v-glint-soft 1.6s var(--ease) both; }
}
@keyframes v-glint {
  0% { color: #fff; text-shadow: 0 0 22px rgba(217, 199, 165, 0.75); }
  100% { color: var(--ink); text-shadow: 0 0 0 rgba(217, 199, 165, 0); }
}
@keyframes v-glint-soft {
  0% { border-color: rgba(217, 199, 165, 0.9); box-shadow: 0 0 14px rgba(217, 199, 165, 0.35); }
  100% { border-color: rgba(217, 199, 165, 0.35); box-shadow: 0 0 0 rgba(217, 199, 165, 0); }
}

.cursor-card {
  position: fixed; top: 0; left: 0; z-index: 30;
  width: 300px; padding: 22px;
  pointer-events: none;
  border-radius: 14px;
  background: rgba(14, 14, 14, 0.72);
  border: 1px solid rgba(237, 233, 226, 0.14);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  opacity: 0; transform: scale(0.9);
}
.cc-glow {
  position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 30%, var(--cc, #d9c7a5) 0%, transparent 55%);
  opacity: 0.35; filter: blur(20px);
}
.cc-type { position: relative; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.cc-blurb { position: relative; margin-top: 10px; font-family: var(--serif); font-size: 22px; line-height: 1.15; }

/* ---------- Footprint ---------- */
.sectors { padding: clamp(80px, 14vh, 160px) var(--gutter); }
.stats {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 32px 24px 0 0; }
.stat-num {
  font-family: var(--serif); font-size: clamp(64px, 9vw, 150px); line-height: 0.9; letter-spacing: -0.02em;
}
.stat-label { margin-top: 14px; font-size: 13px; color: var(--ink-2); max-width: 22ch; }

/* ---------- Footer ---------- */
.footer {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(100px, 18vh, 200px) var(--gutter) 28px;
}
.footer-inner { position: relative; z-index: 2; }
.footer-title {
  margin-top: 28px;
  font-weight: 300; font-size: clamp(44px, 8vw, 132px);
  line-height: 0.95; letter-spacing: -0.04em; max-width: 12ch;
}
.mail {
  margin-top: 48px;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(18px, 2vw, 26px);
  padding-bottom: 8px; border-bottom: 1px solid var(--ink-3);
  transition: border-color 0.4s, gap 0.6s var(--ease);
}
.mail:hover { border-color: var(--ink); gap: 22px; }
.legal {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.12em;
}

/* ---------- Motion prep ---------- */
/* Line masks clip the rise-in; pad them so descenders and italic overhang
   (g, y, ?) aren't cut off at tight line-heights. */
.line-mask { padding: 0 0.12em 0.16em 0; margin: 0 -0.12em -0.16em 0; }
/* Per-letter masks in "How we work": room for descenders (p, q) and ascenders. */
.ch-mask { padding: 0.08em 0.02em 0.2em; margin: -0.08em -0.02em -0.2em; }

@media (max-width: 900px) {
  .ops-stage { grid-template-columns: 1fr; }
  .v-row > a, .v-row > div { grid-template-columns: 36px minmax(0, 1fr) auto; row-gap: 6px; }
  .v-meta { grid-column: 2; grid-row: 2; }
  .v-status { grid-column: 3; grid-row: 1; }
  .v-arrow { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cursor-card { display: none; }
}
@media (max-width: 560px) {
  .nav-links a:not(:last-child) { display: none; }
  .brand-name { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .dot, .scroll-line::after { animation: none; }
}

/* Even out headline line lengths so nothing is left stranded on its own line. */
.hero-title, .section-title, .footer-title, .manifesto-text { text-wrap: balance; }
