/* ==========================================================
   Aryamineral — "Mineral Noir" design system
   ========================================================== */

:root {
  --ink: #0d0d0c;
  --ink-2: #161614;
  --ink-3: #22211e;
  --talc: #f3f0ea;
  --talc-2: #e8e3da;
  --stone: #8b867c;
  --stone-2: #b9b3a8;
  --oxide: #c2412b;          /* from the brand's red, refined */
  --line-dark: rgba(243, 240, 234, .12);
  --line-light: rgba(13, 13, 12, .12);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --section: clamp(96px, 14vw, 200px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--talc);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--oxide); color: var(--talc); }

/* Grain overlay for tactile, mineral feel */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .05;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dark { background: var(--ink); color: var(--talc); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--talc); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { border: 1px solid rgba(243,240,234,.35); color: var(--talc); }
.btn--ghost:hover { border-color: var(--talc); background: rgba(243,240,234,.08); }
.btn--dark { background: var(--ink); color: var(--talc); }
.btn--dark:hover { background: var(--oxide); }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow::after { content: "→"; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--talc);
  transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .5s var(--ease); }
.header.is-scrolled {
  background: rgba(13,13,12,.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--line-dark);
}
.header.is-scrolled .header__inner { height: 68px; }
.header.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 28px; height: 28px; color: var(--talc); }
.brand__mark path:last-child { fill: var(--oxide); }
.brand__name { font: 400 26px/1 var(--serif); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 500; }
.nav a:not(.nav__cta) { position: relative; opacity: .8; transition: opacity .3s; }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { opacity: 1; }
.nav__cta {
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid rgba(243,240,234,.35);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.nav__cta:hover { background: var(--talc); color: var(--ink); }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); color: var(--talc);
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  filter: grayscale(1) contrast(1.08) brightness(.72);
  transform: scale(1.12);
  animation: heroZoom 14s var(--ease) forwards;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,13,12,.65) 0%, rgba(13,13,12,.15) 35%, rgba(13,13,12,.55) 70%, var(--ink) 100%),
    linear-gradient(90deg, rgba(13,13,12,.7) 0%, rgba(13,13,12,.25) 55%, transparent 100%),
    radial-gradient(ellipse at 70% 40%, transparent 30%, rgba(13,13,12,.6) 100%);
}
@keyframes heroZoom { to { transform: scale(1.0); } }
.hero__dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }

.hero__content { padding-top: 140px; padding-bottom: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone-2); margin-bottom: 32px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oxide); box-shadow: 0 0 0 4px rgba(194,65,43,.25); }
.hero__title {
  font: 400 clamp(52px, 10.5vw, 168px)/.92 var(--serif);
  letter-spacing: -.025em;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.hero__title .line { display: block; }
.hero__title em { color: var(--stone-2); }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero__lede { max-width: 520px; color: rgba(243,240,234,.85); font-size: 17px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__meta {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 24px;
  padding-top: 28px; padding-bottom: 32px;
  position: relative;
}
.hero__meta::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--line-dark);
}
.hero__meta div { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--stone-2); }
.hero__meta .mono { color: var(--talc); font-size: 13px; text-transform: none; letter-spacing: .06em; }
.scroll-cue {
  width: 26px; height: 42px; border: 1px solid rgba(243,240,234,.4); border-radius: 14px;
  position: relative; align-self: center;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px;
  background: var(--talc); border-radius: 2px;
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink); color: var(--talc);
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  overflow: hidden; padding: 26px 0;
}
.marquee__track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  animation: marquee 40s linear infinite;
  font: 400 clamp(28px, 3.4vw, 44px)/1 var(--serif);
  white-space: nowrap;
}
.marquee__track i { font-style: normal; font-size: .45em; color: var(--oxide); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee.is-gsap .marquee__track { animation: none; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section__head { margin-bottom: clamp(56px, 8vw, 110px); }
.section__head.split {
  display: grid; grid-template-columns: 1fr 2fr 1.2fr; gap: 40px; align-items: end;
}
.kicker {
  display: flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone); align-self: start;
}
.kicker span {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid currentColor; border-radius: 50%; font-size: 10px;
}
.h2 { font: 400 clamp(44px, 6.2vw, 96px)/.95 var(--serif); letter-spacing: -.02em; }
.h2 em { color: var(--oxide); }
.dark .h2 em { color: var(--stone-2); }
.section__intro { color: var(--stone); font-size: 16px; max-width: 380px; }
.dark .section__intro { color: var(--stone-2); }

/* ---------- Company ---------- */
.statement {
  font: 400 clamp(32px, 4.6vw, 68px)/1.08 var(--serif);
  letter-spacing: -.015em;
  max-width: 1180px;
  text-indent: clamp(0px, 16vw, 220px);
}
.statement em { color: var(--oxide); }

.company__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 8vw, 140px);
  margin-top: clamp(64px, 9vw, 130px);
  padding-top: 48px; border-top: 1px solid var(--line-light);
}
.company__text { display: grid; gap: 20px; color: #3e3c37; font-size: 17px; }
.ceo blockquote {
  font: italic 400 clamp(24px, 2.4vw, 34px)/1.25 var(--serif);
  position: relative; padding-inline-start: 32px;
}
.ceo blockquote::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 2px; background: var(--oxide);
}
.ceo figcaption { margin-top: 24px; padding-inline-start: 32px; color: var(--stone); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(80px, 10vw, 150px);
  border-top: 1px solid var(--ink);
}
.stats li {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px;
  padding-block: 32px 8px; padding-inline: 0 28px;
  border-inline-end: 1px solid var(--line-light);
}
.stats li + li { padding-inline-start: 28px; }
.stats li:last-child { border-inline-end: 0; }
.stats__num { font: 400 clamp(48px, 5.4vw, 84px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats__unit { white-space: nowrap; font: 500 12px/1 var(--mono); color: var(--stone); text-transform: uppercase; letter-spacing: .1em; }
.stats__label { grid-column: 1 / -1; margin-top: 14px; font-size: 14px; color: var(--stone); }

/* ---------- Products ---------- */
.grades { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grade {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .5s var(--ease);
}
.grade:hover { border-color: rgba(243,240,234,.3); }
.grade__media { aspect-ratio: 16/10; overflow: hidden; }
.grade__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.9);
  transition: transform 1.4s var(--ease), filter 1s var(--ease);
}
.grade:hover .grade__media img { transform: scale(1.05); filter: grayscale(.6) contrast(1.05) brightness(1); }
.grade__body { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 24px; flex: 1; }
.grade__top { display: flex; justify-content: space-between; align-items: center; color: var(--stone-2); }
.tag {
  font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--talc);
}
.grade h3 { font: 400 clamp(34px, 3.4vw, 50px)/1 var(--serif); letter-spacing: -.01em; }
.spec { border-top: 1px solid var(--line-dark); }
.spec div {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px;
}
.spec dt { color: var(--stone-2); font: 500 11px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.grade .link-arrow { margin-top: auto; align-self: flex-start; }

.apps { margin-top: clamp(96px, 12vw, 170px); }
.apps__title { font: 400 clamp(30px, 3vw, 44px)/1.1 var(--serif); margin-bottom: 40px; }
.apps__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark); border-inline-start: 1px solid var(--line-dark);
}
.apps__grid li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 32px 28px 36px;
  border-inline-end: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  transition: background .5s var(--ease);
}
.apps__grid li:hover { background: var(--ink-3); }
.apps__grid svg {
  width: 32px; height: 32px; margin-bottom: 40px;
  fill: none; stroke: var(--stone-2); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round;
  transition: stroke .4s, transform .6s var(--ease);
}
.apps__grid li:hover svg { stroke: var(--oxide); transform: translateY(-4px); }
.apps__grid span { font-size: 18px; font-weight: 600; }
.apps__grid small { font-size: 14px; color: var(--stone-2); }

/* ---------- Operations ---------- */
.project {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.project + .project { margin-top: clamp(96px, 12vw, 170px); }
.project--rev { grid-template-columns: 1fr 1.35fr; }
.project--rev .project__media { order: 2; }
.project__media { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; background: var(--talc-2); }
.project__media img {
  width: 100%; height: 118%; object-fit: cover;
  filter: grayscale(.85) contrast(1.05);
  will-change: transform;
}
.project--wide { grid-template-columns: 1fr 1fr; row-gap: 56px; align-items: start; }
.project--wide .project__media { grid-column: 1 / -1; aspect-ratio: 1024 / 373; max-height: 520px; }
.project--wide .project__media img { height: 112%; }
.project--wide .project__body { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 100px); }
.project--wide .project__body > .mono, .project--wide .project__body h3 { grid-column: 1; }
.project--wide .project__body p, .project--wide .kv { grid-column: 2; }
.project--wide .project__body p { grid-row: 1 / span 2; align-self: end; }
.project__body { display: flex; flex-direction: column; gap: 22px; }
.project__body .mono { color: var(--oxide); }
.project__body h3 { font: 400 clamp(38px, 4vw, 60px)/1 var(--serif); letter-spacing: -.015em; }
.project__body p { color: #4a4740; font-size: 17px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border-top: 1px solid var(--ink); }
.kv div { padding-top: 16px; }
.kv dt { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.kv dd { font-size: 15px; font-weight: 600; }

/* ---------- Services ---------- */
.svc { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 100px); }
.svc__list { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.svc__list button {
  display: flex; align-items: baseline; gap: 22px; text-align: start;
  padding: 26px 0; border-bottom: 1px solid var(--line-dark);
  font: 400 clamp(30px, 3.2vw, 48px)/1 var(--serif);
  color: rgba(243,240,234,.35);
  transition: color .4s var(--ease), padding .5s var(--ease);
  position: relative;
}
.svc__list button .mono { color: var(--stone); font-size: 11px; transform: translateY(-.6em); }
.svc__list button:hover { color: rgba(243,240,234,.75); }
.svc__list button[aria-selected="true"] { color: var(--talc); padding-inline-start: 16px; }
.svc__list button[aria-selected="true"]::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px;
  border-radius: 50%; background: var(--oxide);
}
.svc__list button:focus-visible { outline: 1px solid var(--oxide); outline-offset: 4px; }
.svc__panel { display: grid; gap: 28px; animation: panelIn .8s var(--ease); }
.svc__panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } }
.svc__img { aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.85); }
.svc__panel > p { font-size: 19px; color: rgba(243,240,234,.82); max-width: 620px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--stone-2); }
.ticks li::before { content: ""; width: 14px; height: 1px; background: var(--oxide); flex: none; transform: translateY(-4px); }

.method { margin-top: clamp(96px, 12vw, 170px); }
.method__title { font: 400 clamp(30px, 3vw, 44px)/1.1 var(--serif); margin-bottom: 40px; }
.method__steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.method__steps li {
  padding-block: 26px 34px; padding-inline: 0 26px;
  border-top: 1px solid var(--line-dark);
  position: relative;
}
.method__steps li::before {
  content: ""; position: absolute; top: -4px; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--stone-2);
}
.method__steps li:hover::before { background: var(--oxide); border-color: var(--oxide); }
.method__steps .mono { color: var(--oxide); display: block; margin-bottom: 14px; }
.method__steps p { color: var(--stone-2); font-size: 15px; max-width: 260px; }

/* ---------- Principles ---------- */
.principles__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(32px, 5vw, 80px);
}
.principle { display: flex; flex-direction: column; gap: 22px; }
.principle .mono { color: var(--oxide); padding-bottom: 18px; border-bottom: 1px solid var(--line-light); }
.principle p { color: #4a4740; }
.principle .principle__big { font: 400 clamp(30px, 3.2vw, 46px)/1.1 var(--serif); color: var(--ink); }
.principle__big em { color: var(--oxide); }
.values {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(64px, 8vw, 110px);
}
.values li {
  padding: 14px 24px; border: 1px solid var(--line-light); border-radius: 999px;
  font: 400 22px/1 var(--serif);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.values li:hover { background: var(--ink); color: var(--talc); border-color: var(--ink); }

/* ---------- Presence ---------- */
.offices { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.office {
  background: var(--ink); padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 14px; min-height: 220px;
  transition: background .5s var(--ease);
}
.office:hover { background: var(--ink-2); }
.office .mono { color: var(--stone); }
.office h3 { font: 400 clamp(28px, 2.6vw, 38px)/1.05 var(--serif); }
.office p { color: var(--stone-2); }
.office .coord { margin-top: auto; color: var(--stone-2); }
.office--hq { grid-row: span 2; position: relative; overflow: hidden; }
.office--hq .mono:first-child { color: var(--oxide); }
.office--hq h3 { font-size: clamp(44px, 5vw, 76px); }
.office--hq::after {
  content: ""; position: absolute; inset-inline-end: -80px; bottom: -80px; width: 320px; height: 320px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 22px, var(--line-dark) 22px 23px);
  pointer-events: none;
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 8vw, 140px); }
.contact__intro { display: flex; flex-direction: column; gap: 28px; }
.contact__intro > p:not(.kicker) { color: #4a4740; max-width: 440px; font-size: 17px; }
.contact__list { margin-top: 16px; border-top: 1px solid var(--line-light); }
.contact__list li {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line-light); font-size: 16px;
}
.contact__list .mono { color: var(--stone); }
.contact__list a { transition: color .3s; }
.contact__list a:hover { color: var(--oxide); }

.form {
  background: #fff; padding: clamp(28px, 4vw, 56px); border-radius: 4px;
  box-shadow: 0 1px 0 var(--line-light), 0 40px 80px -40px rgba(13,13,12,.25);
  display: grid; gap: 24px; align-self: start;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span, .chips legend { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.field input, .field textarea {
  font: 400 16px/1.5 var(--sans); color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line-light); background: transparent;
  padding: 8px 0 12px; border-radius: 0; resize: vertical;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input.is-invalid { border-color: var(--oxide); }
.field textarea::placeholder { color: var(--stone-2); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 14px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line-light); transition: all .3s var(--ease);
}
.chips input:checked + span { background: var(--ink); color: var(--talc); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--oxide); outline-offset: 2px; }
.form__note { font-size: 14px; color: var(--stone); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--talc); padding: clamp(64px, 8vw, 120px) 0 32px; overflow: hidden; }
.footer__word {
  font: 400 clamp(64px, 17vw, 270px)/.8 var(--serif); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(243,240,234,.22);
  margin-bottom: clamp(48px, 6vw, 90px); white-space: nowrap;
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer__claim { font: 400 28px/1.2 var(--serif); max-width: 400px; }
.footer nav, .footer__contact { display: flex; flex-direction: column; gap: 10px; color: var(--stone-2); font-size: 15px; }
.footer nav a:hover, .footer__contact a:hover { color: var(--talc); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: var(--stone); }
.footer__base a:hover { color: var(--talc); }

/* ---------- Motion (GSAP-driven; content stays visible without JS) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.js .reveal { opacity: 0; transform: translateY(32px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .hero-in { opacity: 0; }
.js.no-motion .reveal, .js.no-motion .hero-in { opacity: 1; transform: none; }

.hero__title .line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .char { display: inline-block; will-change: transform; }
.split-line { padding-bottom: .06em; margin-bottom: -.06em; }
[data-words] .word { opacity: .14; transition: none; text-indent: 0; }
.no-motion [data-words] .word { opacity: 1; }
[data-clip] { will-change: clip-path; }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); color: var(--talc);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 28px var(--gutter);
}
.no-motion .loader, .loader.is-done { display: none; }
html:not(.js) .loader { display: none; }
.loader__top .mono { text-transform: none; }
.loader__top, .loader__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: var(--stone-2); }
.loader__center { display: grid; place-items: center; }
.loader__mark { width: clamp(72px, 9vw, 120px); color: var(--talc); overflow: visible; }
.loader__tri { stroke-dasharray: 110; stroke-dashoffset: 110; }
.loader__core { fill: var(--oxide); transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); }
.loader__count {
  font: 400 clamp(80px, 16vw, 240px)/.8 var(--serif); color: var(--talc);
  font-variant-numeric: tabular-nums; letter-spacing: -.03em; min-width: 3ch;
}
.loader__bar { flex: 1; height: 1px; background: var(--line-dark); align-self: center; margin: 0 clamp(16px, 4vw, 64px); position: relative; overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: var(--talc); transform-origin: left; transform: scaleX(0); }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--talc); mix-blend-mode: difference;
  display: grid; place-items: center;
  opacity: 0; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), opacity .3s, background .3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--oxide); }
.cursor__label { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--talc); opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- Pinned horizontal methodology (desktop) ---------- */
.method__progress { display: none; }
.method.is-h { overflow: hidden; }
.method.is-h .method__progress { display: block; height: 1px; background: var(--line-dark); margin-bottom: 0; position: relative; }
.method.is-h .method__progress span { position: absolute; inset: 0; background: var(--oxide); transform-origin: left; transform: scaleX(0); }
.method.is-h .method__steps { display: flex; width: max-content; will-change: transform; }
.method.is-h .method__steps li {
  width: clamp(300px, 27vw, 400px); min-height: 340px;
  padding-block: 40px; padding-inline: 0 40px; margin-inline-end: 40px; border-top: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.method.is-h .method__steps li::before { top: -4px; }
.method.is-h .method__steps .mono { font: 400 clamp(80px, 8vw, 128px)/1 var(--serif); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(243,240,234,.35); transition: color .5s, -webkit-text-stroke-color .5s; }
.method.is-h .method__steps li:hover .mono { color: var(--oxide); -webkit-text-stroke-color: var(--oxide); }
.method.is-h .method__steps p { font-size: 18px; color: var(--talc); max-width: 300px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .section__head.split { grid-template-columns: 1fr; gap: 24px; }
  .section__intro { max-width: 560px; }
  .method__steps { grid-template-columns: repeat(2, 1fr); }
  .offices { grid-template-columns: repeat(3, 1fr); }
  .office--hq { grid-row: auto; grid-column: 1 / -1; }
  .principles__grid { grid-template-columns: 1fr 1fr; }
  .principle:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px;
    padding: 0 var(--gutter);
    background: var(--ink);
    font: 400 44px/1.2 var(--serif);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .7s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .nav a:not(.nav__cta) { opacity: 1; }
  .nav__cta { margin-top: 24px; font: 600 15px/1 var(--sans); padding: 16px 24px; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta div:nth-child(3), .scroll-cue { display: none; }
  .company__grid, .project, .project--rev, .svc, .contact__grid { grid-template-columns: 1fr; }
  .project--rev .project__media { order: 0; }
  .project--wide .project__body { display: flex; }
  .office { min-height: 0; }
  .office .coord { margin-top: 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(2) { border-inline-end: 0; }
  .stats li:nth-child(3) { padding-inline-start: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .grades { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .statement { text-indent: 0; }
}

@media (max-width: 600px) {
  .header__inner { height: 68px; }
  .hero__content { padding-top: 120px; }
  .hero__actions, .hero__actions .btn { width: 100%; }
  .method__steps, .offices, .principles__grid, .form__row, .ticks { grid-template-columns: 1fr; }
  .apps__grid { grid-template-columns: 1fr 1fr; }
  .apps__grid li:last-child:nth-child(odd) { grid-column: span 2; }
  .apps__grid li { padding: 24px 20px; }
  .apps__grid svg { margin-bottom: 20px; }
  .stats li, .stats li + li { padding-block: 24px 8px; padding-inline: 0 12px; }
  .stats li:nth-child(even) { padding-inline-start: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li { grid-template-columns: 1fr; row-gap: 6px; }
  .stats__num { font-size: clamp(38px, 11vw, 52px); }
  .stats__label { margin-top: 6px; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .kv { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .svc__list button { padding: 20px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .hero-in { opacity: 1; transform: none; }
  .loader { display: none; }
}


/* ==========================================================
   v3 additions — languages, new sections, RTL
   ========================================================== */
.header__end { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; }
.langs a {
  padding: 7px 10px; border-radius: 999px; opacity: .6;
  transition: opacity .3s, background .3s, color .3s;
}
.langs a:hover { opacity: 1; }
.langs a[aria-current] { opacity: 1; background: rgba(243,240,234,.12); }
.langs a[lang="fa-AF"], .langs a[lang="ps-AF"] { font-family: "Vazirmatn", "Noto Naskh Arabic", var(--sans); }
.langs--menu { display: none; }
.langs--footer { margin-top: 18px; }
.langs--footer a { border: 1px solid var(--line-dark); }

/* CEO letter */
.ceo__letter { margin-top: 28px; padding-inline-start: 32px; }
.ceo__letter summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.ceo__letter summary::-webkit-details-marker { display: none; }
.ceo__plus { position: relative; width: 10px; height: 10px; }
.ceo__plus::before, .ceo__plus::after { content: ""; position: absolute; inset: 4.5px 0; background: currentColor; transition: transform .5s var(--ease); }
.ceo__plus::after { transform: rotate(90deg); }
.ceo__letter[open] .ceo__plus::after { transform: rotate(0); }
.ceo__body { display: grid; gap: 16px; margin-top: 24px; color: #4a4740; font-size: 15.5px; }
.ceo__body .mono { color: var(--stone); }

/* Talc facts + colors */
.talc-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center;
  margin-top: clamp(96px, 12vw, 170px);
}
.talc-facts__media { aspect-ratio: 675 / 291; overflow: hidden; border-radius: 4px; background: #000; }
.talc-facts__media img { width: 100%; height: 100%; object-fit: cover; }
.talc-facts__body { display: grid; gap: 22px; }
.talc-facts__body > p:not(.mono) { color: var(--stone-2); font-size: 17px; }
.talc-facts__body .apps__title { margin: 0; }
.talc-facts__body .mono { color: var(--stone); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.swatches li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--talc); }
.swatches i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

.apps__grid span { font-size: 19px; }

/* Plant strip */
.plant-strip { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.plant-strip figure { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; }
.plant-strip figure:last-child { aspect-ratio: auto; }
.plant-strip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.05); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.plant-strip figure:hover img { filter: grayscale(0); transform: scale(1.03); }
.plant-strip figcaption, .gallery figcaption {
  position: absolute; inset-inline-start: 16px; bottom: 16px;
  padding: 8px 12px; border-radius: 999px; background: rgba(13,13,12,.7); color: var(--talc);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.project + .plant-strip + .project { margin-top: clamp(96px, 12vw, 170px); }

/* Trade commodities */
.commodities { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.commodities > div { padding: 22px 24px; border: 1px solid var(--line-dark); border-radius: 4px; display: grid; gap: 10px; }
.commodities .mono { color: var(--oxide); }
.commodities p { font: 400 clamp(20px, 1.8vw, 26px)/1.35 var(--serif); color: var(--talc); }

/* Media: news, gallery, reports */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.news__item { display: grid; gap: 16px; align-content: start; }
.news__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; margin-bottom: 12px; }
.news__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.8) contrast(1.05); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.news__item:hover .news__media img { filter: grayscale(0); transform: scale(1.03); }
.news__item .mono { color: var(--oxide); }
.news__item h3 { font: 400 clamp(28px, 2.8vw, 40px)/1.08 var(--serif); }
.news__item p { color: #4a4740; max-width: 520px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-top: clamp(64px, 8vw, 110px); }
.gallery figure { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; }
.gallery figure:first-child { aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.8); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.gallery figure:hover img { filter: grayscale(0); transform: scale(1.04); }
.gallery figcaption { font-size: 13px; }

.reports { margin-top: clamp(80px, 10vw, 140px); }
.reports .apps__title { margin-bottom: 28px; }
.reports__list { border-top: 1px solid var(--ink); }
.reports__list a {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--line-light);
  transition: padding .5s var(--ease), color .3s;
}
.reports__list a:hover { padding-inline: 16px; color: var(--oxide); }
.reports__list .mono { color: var(--stone); }
.reports__list strong { font: 400 clamp(22px, 2.2vw, 32px)/1.2 var(--serif); }
.reports__go { font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; }

.values__label { color: var(--stone); margin-top: clamp(64px, 8vw, 110px); }
.values { margin-top: 20px; }

.office--wide { grid-column: span 3; }
.office__link { color: var(--talc); font-weight: 600; transition: color .3s; align-self: flex-start; }
.office__link:hover { color: var(--oxide); }
.office--hq .coord { margin-top: auto; }

/* Responsive for new parts */
@media (max-width: 1100px) {
  .office--wide { grid-column: 1 / -1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 900px) {
  .header__end .langs { display: none; }
  .langs--menu { display: flex; margin-top: 28px; font: 600 15px/1 var(--sans); }
  .langs--menu a { padding: 12px 18px; border: 1px solid var(--line-dark); }
  .talc-facts, .news, .plant-strip, .commodities { grid-template-columns: 1fr; }
  .plant-strip figure:last-child { aspect-ratio: 3 / 2; }
  .ceo__letter { padding-inline-start: 0; }
}
@media (max-width: 600px) {
  .offices { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure, .gallery figure:first-child { aspect-ratio: 4 / 3; }
  .reports__list a { grid-template-columns: 1fr auto; }
  .reports__list .mono { display: none; }
  .langs a { padding: 6px 8px; }
}
@media (min-width: 1600px) {
  :root { --max: 1520px; }
}

/* ---------- Right-to-left (Dari & Pashto) ---------- */
[dir="rtl"] {
  --serif: "Noto Naskh Arabic", "Instrument Serif", serif;
  --sans: "Vazirmatn", "Manrope", system-ui, sans-serif;
  --mono: "Vazirmatn", "JetBrains Mono", ui-monospace, monospace;
}
[dir="rtl"] body { line-height: 1.9; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] .mono, [dir="rtl"] .kicker, [dir="rtl"] .eyebrow, [dir="rtl"] .tag,
[dir="rtl"] .stats__unit, [dir="rtl"] .spec dt, [dir="rtl"] .kv dt,
[dir="rtl"] .field span, [dir="rtl"] .chips legend, [dir="rtl"] .cursor__label { text-transform: none; font-size: 13px; }
[dir="rtl"] em { font-style: normal; }
[dir="rtl"] .brand__name, [dir="rtl"] [dir="ltr"] { font-family: "Instrument Serif", serif; }
[dir="rtl"] .mono[dir="ltr"], [dir="rtl"] .coord { font-family: "JetBrains Mono", monospace; }
[dir="rtl"] dd[dir="ltr"], [dir="rtl"] a[dir="ltr"], [dir="rtl"] input[dir="ltr"] { font-family: "Manrope", sans-serif; unicode-bidi: isolate; text-align: end; }
[dir="rtl"] .hero__title { font-size: clamp(42px, 7.6vw, 124px); line-height: 1.32; font-weight: 500; }
[dir="rtl"] .hero__title .line { padding-bottom: .12em; margin-bottom: -.12em; }
[dir="rtl"] .h2 { font-size: clamp(34px, 4.6vw, 70px); line-height: 1.4; font-weight: 500; }
[dir="rtl"] .statement { font-size: clamp(26px, 3.4vw, 50px); line-height: 1.6; }
[dir="rtl"] .ceo blockquote { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.75; }
[dir="rtl"] .grade h3, [dir="rtl"] .project__body h3 { font-size: clamp(30px, 3vw, 46px); line-height: 1.35; }
[dir="rtl"] .svc__list button { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.4; padding-block: 18px; }
[dir="rtl"] .principle .principle__big { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.55; }
[dir="rtl"] .apps__title, [dir="rtl"] .method__title { line-height: 1.5; }
[dir="rtl"] .office h3 { line-height: 1.4; }
[dir="rtl"] .office--hq h3 { font-size: clamp(38px, 4vw, 60px); }
[dir="rtl"] .marquee__track { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.6; }
[dir="rtl"] .values li { font-size: 19px; line-height: 1.5; padding: 10px 22px; }
[dir="rtl"] .footer__claim { line-height: 1.6; }
[dir="rtl"] .nav { font-size: 15px; }
[dir="rtl"] .arrow, [dir="rtl"] .reports__go .arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .link-arrow::after { content: "←"; }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-6px); }
[dir="rtl"] .hero__media::after {
  background:
    linear-gradient(180deg, rgba(13,13,12,.65) 0%, rgba(13,13,12,.15) 35%, rgba(13,13,12,.55) 70%, var(--ink) 100%),
    linear-gradient(270deg, rgba(13,13,12,.7) 0%, rgba(13,13,12,.25) 55%, transparent 100%);
}
[dir="rtl"] .loader__bar span, [dir="rtl"] .method.is-h .method__progress span { transform-origin: right; }
[dir="rtl"] .nav a:not(.nav__cta)::after { transform-origin: left; }
[dir="rtl"] .nav a:hover::after, [dir="rtl"] .nav a.is-active::after { transform-origin: right; }
[dir="rtl"] .method.is-h .method__steps .mono { font-family: "Instrument Serif", serif; }
[dir="rtl"] .stats__num { font-family: "Vazirmatn", sans-serif; font-weight: 300; }
[dir="rtl"] .loader__count { font-family: "Vazirmatn", sans-serif; font-weight: 200; }
@media (max-width: 900px) {
  [dir="rtl"] .nav { font-size: 30px; line-height: 1.7; }
}

/* ==========================================================
   v4 — multi-page components
   ========================================================== */

/* Page transition curtain */
.curtain {
  position: fixed; inset: 0; z-index: 190; display: none; place-items: center;
  background: var(--ink); color: var(--talc);
}
.js:not(.no-motion) body:not([data-page="home"]) .curtain { display: grid; }
.curtain__mark { width: 56px; height: 56px; }
/* Failsafe: never leave the page covered if scripts fail to run */
.curtain { animation: curtain-failsafe .01s 4s forwards; }
@keyframes curtain-failsafe { to { visibility: hidden; } }

/* Subpage hero */
.page-hero {
  position: relative; min-height: min(86svh, 820px); display: flex; align-items: flex-end;
  background: var(--ink); color: var(--talc); overflow: hidden; isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.6); }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,12,.7) 0%, rgba(13,13,12,.2) 40%, rgba(13,13,12,.85) 100%);
}
.page-hero__content { padding-top: 150px; padding-bottom: clamp(56px, 8vw, 110px); }
.page-hero__title {
  font: 400 clamp(46px, 7.4vw, 120px)/.98 var(--serif); letter-spacing: -.025em;
  max-width: 14ch; margin-bottom: 28px;
}
.page-hero__intro { max-width: 560px; font-size: 18px; color: rgba(243,240,234,.82); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--stone-2); margin-bottom: 28px; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--talc); }
.crumbs [aria-current] { color: var(--talc); }

/* Generic layout helpers */
.section__more { margin-top: clamp(40px, 5vw, 64px); }
.dark .link-arrow { color: var(--talc); }
.split-2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.split-2__body { display: grid; gap: 28px; }
.split-2__body > p:not(.mono) { color: #4a4740; font-size: 17px; }
.split-2 .h2 { margin-top: 28px; }
.lead { font: 400 clamp(24px, 2.4vw, 34px)/1.35 var(--serif) !important; color: var(--ink) !important; }
.list-label { color: var(--stone); }
.scope { border-top: 1px solid var(--ink); }
.scope li { display: flex; gap: 22px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-light); font-size: 18px; }
.scope .mono, .steps-inline .mono { color: var(--oxide); }
.steps-inline { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.steps-inline li { display: grid; gap: 10px; padding: 20px 20px 0 0; font: 400 26px/1.2 var(--serif); }
.service__team { color: var(--stone) !important; font-size: 15px !important; }
.kv--stack { grid-template-columns: 1fr; margin-top: 28px; }
.kv--stack div { padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.kv--stack dd { font: 400 26px/1.2 var(--serif); }
.commodities--light > div { border-color: var(--line-light); }
.commodities--light p { color: var(--ink); }

/* Project cards */
.pcards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.pcard { display: grid; gap: 14px; align-content: start; }
.pcard__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; margin-bottom: 10px; background: var(--talc-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.05); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.pcard:hover .pcard__media img { filter: grayscale(0); transform: scale(1.04); }
.pcard .mono { color: var(--oxide); }
.pcard h3 { font: 400 clamp(34px, 3.6vw, 54px)/1.02 var(--serif); letter-spacing: -.015em; }
.pcard .link-arrow { justify-self: start; }
.pcards + .stats { margin-top: clamp(80px, 10vw, 140px); }

/* Service cards */
.scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.scards--2 { grid-template-columns: 1fr 1fr; }
.scard {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 340px;
  padding: clamp(28px, 3vw, 44px); background: var(--talc);
  transition: background .5s var(--ease), color .5s var(--ease);
}
.scard:hover { background: var(--ink); color: var(--talc); }
.scard .mono { color: var(--oxide); }
.scard h3 { font: 400 clamp(32px, 3vw, 46px)/1.05 var(--serif); }
.scard p { color: var(--stone); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.scard:hover p { color: var(--stone-2); }
.scard__go { margin-top: auto; font-size: 22px; transition: transform .5s var(--ease); align-self: flex-start; }
.scard:hover .scard__go { transform: translateX(8px); }
[dir="rtl"] .scard:hover .scard__go { transform: scaleX(-1) translateX(8px); }

/* CEO letter (about) */
.letter__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.letter__aside { position: sticky; top: 110px; display: grid; gap: 32px; }
.letter__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.letter__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.letter__body { display: grid; gap: 22px; }
.letter__body .h2 { margin-bottom: 18px; }
.letter__body p { color: rgba(243,240,234,.8); font-size: 18px; line-height: 1.75; }
.letter__body p:first-of-type { font: 400 clamp(24px, 2.2vw, 30px)/1.4 var(--serif); color: var(--talc); }
.letter__sign .mono { color: var(--oxide); }
.ceo__more { margin-top: 28px; margin-inline-start: 32px; }

/* Service media pair */
.service-media { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.service-media figure { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; }
.service-media figure:last-child { aspect-ratio: auto; }
.service-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.05); transition: filter 1s var(--ease); }
.service-media figure:hover img { filter: grayscale(0); }

/* Pager */
.pager { display: grid; border-top: 1px solid var(--ink); }
.pager--2 { grid-template-columns: 1fr 1fr; }
.pager a { display: grid; gap: 8px; padding: 32px 0; position: relative; transition: color .3s; }
.pager--2 a + a { text-align: end; border-inline-start: 1px solid var(--line-light); padding-inline-start: 24px; }
.pager .mono { color: var(--stone); }
.pager strong { font: 400 clamp(30px, 3.4vw, 52px)/1.05 var(--serif); }
.pager .arrow { position: absolute; top: 32px; inset-inline-end: 0; font-size: 22px; }
.pager--2 a:first-child .arrow { inset-inline-end: 24px; }
.pager a:hover { color: var(--oxide); }
.scards + .pager { margin-top: clamp(56px, 7vw, 100px); }

/* Gallery (media page) */
.gallery--full { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.gallery--full figure, .gallery--full figure:first-child { aspect-ratio: 4 / 3; }
.news--dark .news__item p { color: var(--stone-2); }
.plant-strip + .news { margin-top: clamp(64px, 8vw, 110px); }

/* Request form: document picker + honeypot */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.docs { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.docs legend { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.docs label { cursor: pointer; }
.docs input { position: absolute; opacity: 0; pointer-events: none; }
.docs label > span {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line-light); border-radius: 4px;
  font: 400 21px/1.2 var(--serif); transition: border-color .3s, background .3s, color .3s;
}
.docs label > span .mono { font-size: 10px; color: var(--stone); }
.docs input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--talc); }
.docs input:focus-visible + span { outline: 2px solid var(--oxide); outline-offset: 2px; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* CTA band */
.cta-band { padding: clamp(96px, 12vw, 170px) 0; border-bottom: 1px solid var(--line-dark); }
.cta-band__inner { display: grid; gap: 32px; }
.cta-band .kicker { color: var(--stone-2); }
.cta-band__title { font: 400 clamp(38px, 5.4vw, 84px)/1.02 var(--serif); letter-spacing: -.02em; max-width: 18ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer, 4 columns */
.footer__grid--4 { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.footer nav .mono, .footer__contact .mono { color: var(--stone); margin-bottom: 8px; }

/* Thank-you / 404 */
.message {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--ink); color: var(--talc); overflow: hidden; isolation: isolate;
}
.message__media { position: absolute; inset: 0; z-index: -1; }
.message__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.4); }
.message__content { padding-top: 140px; padding-bottom: 80px; display: grid; gap: 8px; justify-items: start; }
.message__code { font: 400 clamp(120px, 22vw, 320px)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(243,240,234,.4); }
.message .hero__actions { margin-top: 32px; }

/* Responsive */
@media (max-width: 1100px) {
  .scards { grid-template-columns: 1fr 1fr; }
  .footer__grid--4 { grid-template-columns: 1fr 1fr; }
  .footer__grid--4 > div:first-child { grid-column: 1 / -1; }
  .gallery--full { grid-template-columns: 1fr 1fr; }
  .gallery--full figure:first-child { grid-column: auto; }
}
@media (max-width: 900px) {
  .split-2, .letter__grid, .pcards, .service-media, .scards--2 { grid-template-columns: 1fr; }
  .letter__aside { position: static; }
  .letter__photo { aspect-ratio: 16 / 10; }
  .service-media figure:last-child { aspect-ratio: 4 / 3; }
  .ceo__more { margin-inline-start: 0; }
  .page-hero { min-height: 72svh; }
}
@media (max-width: 600px) {
  .scards, .gallery--full, .pager--2, .steps-inline { grid-template-columns: 1fr; }
  .pager--2 a + a { text-align: start; border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line-light); }
  .pager--2 a:first-child .arrow { inset-inline-end: 0; }
  .scard { min-height: 0; }
  .footer__grid--4 { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .page-hero__content { padding-top: 120px; }
  .crumbs { font-size: 12px; }
}

/* RTL sizing for new display type */
[dir="rtl"] .page-hero__title { font-size: clamp(36px, 5.6vw, 88px); line-height: 1.4; font-weight: 500; max-width: 18ch; }
[dir="rtl"] .cta-band__title { font-size: clamp(30px, 4vw, 62px); line-height: 1.45; }
[dir="rtl"] .pcard h3, [dir="rtl"] .scard h3, [dir="rtl"] .pager strong { line-height: 1.45; }
[dir="rtl"] .lead { line-height: 1.75 !important; font-size: clamp(21px, 2vw, 28px) !important; }
[dir="rtl"] .letter__body p:first-of-type { line-height: 1.8; font-size: clamp(21px, 1.9vw, 26px); }
[dir="rtl"] .steps-inline li, [dir="rtl"] .kv--stack dd, [dir="rtl"] .docs label > span { line-height: 1.6; }
[dir="rtl"] .message__code { font-family: "Instrument Serif", serif; }
