/* =====================================================================
   Tentra — assets/styles.css
   A studio of contemporary Persian-inspired design.
   Self-contained: no external requests, no build step.
   ===================================================================== */

/* ----- Fonts (self-hosted, OFL) ----- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-roman.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ----- Tokens ----- */
:root {
  /* Palette — ink + bone + ember, with Persian-tile accents */
  --ink: #0e0c0a;          /* near-black, warm */
  --ink-2: #161310;
  --ink-3: #221d18;
  --bone: #f3ece0;          /* warm off-white */
  --bone-2: #e7dcc8;
  --bone-dim: #b8ac98;
  --ember: #c8472b;          /* terracotta */
  --ember-2: #e25a36;
  --saffron: #e3a12e;        /* saffron gold */
  --teal: #2f6d5f;           /* oxidized copper / Persian green */
  --teal-2: #3f8a78;
  --line: rgba(243, 236, 224, 0.12);
  --line-strong: rgba(243, 236, 224, 0.22);
  --grid: rgba(243, 236, 224, 0.045);

  /* Type */
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.83rem, 0.78rem + 0.25vw, 0.95rem);
  --step-0: clamp(1rem, 0.92rem + 0.4vw, 1.18rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.3rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 5.6rem);
  --step-5: clamp(3.4rem, 1.6rem + 8vw, 9.5rem);

  /* Layout */
  --maxw: 1320px;
  --pad: clamp(1.1rem, 0.6rem + 2.5vw, 2.5rem);
  --gut: clamp(1rem, 0.4rem + 2.5vw, 2.4rem);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;
}

/* ----- Reset ----- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--ember); color: var(--bone); }

/* ----- Grain overlay ----- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ----- Reusable bits ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 520;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.center { justify-content: center; }
.h-display {
  font-family: var(--font-display);
  font-weight: 360;
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.h-display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  color: var(--ember-2);
}
.serif { font-family: var(--font-display); font-variation-settings: "opsz" 14; }
.mono-tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
}
.lede {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
  font-weight: 350;
  color: var(--bone-2);
  font-variation-settings: "opsz" 24;
  max-width: 46ch;
}

/* Buttons / links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 520;
  letter-spacing: 0.04em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
    color 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--bone);
  color: var(--ink);
}
.btn--primary:hover { background: var(--ember-2); color: var(--bone); transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--bone); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-u {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.45s var(--ease);
}
.link-u:hover { background-size: 100% 1px; }

/* ----- Custom cursor ----- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bone);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
    background 0.3s var(--ease), opacity 0.3s var(--ease);
  mix-blend-mode: difference;
}
.cursor.is-hover {
  width: 52px; height: 52px;
  background: var(--ember-2);
}
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
}

/* ----- Header / Nav ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease),
    padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14, 12, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 420;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  z-index: 210;
}
.brand svg { width: 26px; height: 26px; }
.brand .dot { color: var(--ember-2); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 0.5rem + 1.8vw, 2.4rem);
}
.nav-links a {
  font-size: var(--step--1);
  font-weight: 460;
  letter-spacing: 0.01em;
  opacity: 0.82;
  transition: opacity 0.3s var(--ease);
  position: relative;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--ember-2);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--step--1);
  font-weight: 520;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.nav-cta:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--bone);
  position: relative;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; width: 100%; height: 1.5px;
  background: var(--bone);
  transition: transform 0.4s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu — hidden on desktop, shown only inside the mobile media query */
.mobile-menu { display: none; }

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 2rem + 4vw, 6rem) 0 2rem;
  margin-top: clamp(5rem, 3rem + 6vw, 9rem);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--gut);
  padding-inline: var(--pad);
  max-width: var(--maxw);
  margin-inline: auto;
}
.footer-h {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: var(--step--1);
  opacity: 0.85;
  transition: opacity 0.3s, color 0.3s;
}
.footer-col a:hover { opacity: 1; color: var(--ember-2); }
.footer-wordmark {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 320;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
}
.footer-wordmark em { font-style: italic; color: var(--ember-2); }
.footer-bottom {
  max-width: var(--maxw);
  margin: clamp(3rem, 2rem + 3vw, 5rem) auto 0;
  padding-inline: var(--pad);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--bone-dim);
}
.footer-bottom .links { display: flex; gap: 1.4rem; }
.footer-bottom a:hover { color: var(--bone); }

/* ----- Section primitives ----- */
section { position: relative; }
.sec-pad { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  flex-wrap: wrap;
}
.sec-head .titles { max-width: 30ch; }
.sec-head h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 340;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 1;
}
.sec-head h2 em { font-style: italic; color: var(--ember-2); }
.sec-head .meta { text-align: right; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----- HERO ----- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  top: -25%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200, 71, 43, 0.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: drift 14s var(--ease) infinite alternate;
}
@keyframes drift {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-45%) translateY(40px) scale(1.08); }
}
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: var(--pad);
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.hero-top .loc {
  font-size: var(--step--1);
  color: var(--bone-dim);
  letter-spacing: 0.06em;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.4em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.hero-eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 0 0 rgba(63, 138, 120, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 138, 120, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(63, 138, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 138, 120, 0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 320;
  line-height: 0.92;
  letter-spacing: -0.035em;
  max-width: 14ch;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero h1 em {
  font-style: italic;
  color: var(--ember-2);
  font-variation-settings: "opsz" 144, "SOFT" 90, "WONK" 1;
}
@keyframes rise { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .line > span { transform: none; animation: none; }
}
.hero-sub {
  margin-top: clamp(1.6rem, 1rem + 2vw, 2.8rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
.hero-sub p {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.4;
  font-weight: 350;
  color: var(--bone-2);
  max-width: 40ch;
  font-variation-settings: "opsz" 24;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-scroll {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.hero-scroll .dash {
  width: 40px; height: 1px; background: var(--bone-dim);
  position: relative; overflow: hidden;
}
.hero-scroll .dash::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ember-2);
  transform: translateX(-100%);
  animation: dash 2.6s var(--ease) infinite;
}
@keyframes dash {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ----- Marquee ----- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 1.3rem 0;
  background: var(--ink-2);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 360;
  color: var(--bone-2);
  font-variation-settings: "opsz" 24;
  white-space: nowrap;
}
.marquee-item .sep {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ember);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ----- Works grid ----- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
}
.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  isolation: isolate;
}
.work-card.span-7 { grid-column: span 7; }
.work-card.span-5 { grid-column: span 5; }
.work-card.span-6 { grid-column: span 6; }
.work-card.span-8 { grid-column: span 8; }
.work-card.span-4 { grid-column: span 4; }
.work-card .media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.work-card.tall .media { aspect-ratio: 3 / 4; }
.work-card .media svg {
  width: 100%; height: 100%;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.work-card:hover .media svg { transform: scale(1.04); }
.work-card .meta-row {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px solid var(--line);
}
.work-card h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 1;
}
.work-card .tagline {
  font-size: 0.92rem;
  color: var(--bone-dim);
  margin-top: 0.35rem;
}
.work-card .yr {
  font-size: 0.78rem;
  color: var(--bone-dim);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.work-card .badge {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 3;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4em 0.8em;
  background: rgba(14, 12, 10, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

/* ----- Studio / manifesto ----- */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  align-items: start;
}
.manifesto .left h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 340;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96, "SOFT" 50, "WONK" 1;
}
.manifesto .left h2 em { font-style: italic; color: var(--ember-2); }
.manifesto .right p {
  font-size: var(--step-0);
  color: var(--bone-2);
  margin-bottom: 1.3rem;
  max-width: 48ch;
}
.principles {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gut);
}
.principle .num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ember-2);
  font-variation-settings: "opsz" 14;
  font-feature-settings: "tnum";
}
.principle h4 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  margin: 0.6rem 0 0.5rem;
  letter-spacing: -0.01em;
}
.principle p { font-size: 0.92rem; color: var(--bone-dim); line-height: 1.55; }

/* ----- Numbers strip ----- */
.numbers {
  border-block: 1px solid var(--line);
  padding: clamp(3rem, 2rem + 3vw, 5rem) 0;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gut);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.num-item .val {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 320;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bone);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}
.num-item .val sup {
  font-size: 0.4em;
  color: var(--ember-2);
  vertical-align: super;
}
.num-item .lbl {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--bone-dim);
  letter-spacing: 0.04em;
}

/* ----- Services / disciplines ----- */
.disciplines { border-top: 1px solid var(--line); }
.disc-list { border-top: 1px solid var(--line); }
.disc-row {
  display: grid;
  grid-template-columns: 0.5fr 2fr 3fr 1fr;
  gap: 2rem;
  padding: clamp(1.6rem, 1rem + 1.5vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  position: relative;
  transition: padding 0.5s var(--ease);
}
.disc-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--ember);
  transition: width 0.5s var(--ease);
}
.disc-row:hover { padding-left: 1.5rem; }
.disc-row:hover::before { width: 3px; }
.disc-row .n {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--bone-dim);
  font-variation-settings: "opsz" 14;
}
.disc-row h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 340;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72, "SOFT" 30;
}
.disc-row p { font-size: var(--step--1); color: var(--bone-dim); max-width: 44ch; }
.disc-row .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.disc-row .tag {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.3em 0.7em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--bone-2);
}

/* ----- Journal preview ----- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gut);
}
.j-card {
  display: block;
  border-top: 1px solid var(--line-strong);
  padding-top: 1.4rem;
  transition: border-color 0.4s var(--ease);
}
.j-card:hover { border-top-color: var(--ember-2); }
.j-card .cat {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-2);
}
.j-card h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0.8rem 0 1rem;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  transition: color 0.4s var(--ease);
}
.j-card:hover h3 { color: var(--ember-2); }
.j-card .meta {
  font-size: 0.8rem;
  color: var(--bone-dim);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.j-card .excerpt {
  font-size: 0.95rem;
  color: var(--bone-dim);
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

/* ----- CTA band ----- */
.cta-band {
  text-align: center;
  padding: clamp(4rem, 3rem + 5vw, 8rem) var(--pad);
  position: relative;
  overflow: hidden;
}
.cta-band .glow {
  position: absolute;
  width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(227, 161, 46, 0.14), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 320;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 1.2rem auto 2rem;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  position: relative;
}
.cta-band h2 em { font-style: italic; color: var(--ember-2); }
.cta-band .actions { display: inline-flex; gap: 0.8rem; position: relative; }

/* ----- Page hero (interior) ----- */
.page-hero {
  padding: clamp(8rem, 6rem + 6vw, 12rem) 0 clamp(3rem, 2rem + 3vw, 5rem);
  position: relative;
  border-bottom: 1px solid var(--line);
}
.page-hero .container { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 320;
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 16ch;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
}
.page-hero h1 em { font-style: italic; color: var(--ember-2); }
.page-hero .lede { max-width: 52ch; }
.breadcrumbs {
  font-size: 0.78rem;
  color: var(--bone-dim);
  letter-spacing: 0.04em;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.breadcrumbs span { opacity: 0.5; }

/* ----- Article ----- */
.prose {
  max-width: 68ch;
  margin-inline: auto;
}
.prose > * + * { margin-top: 1.4rem; }
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 350;
  letter-spacing: -0.015em;
  margin-top: 3rem;
  font-variation-settings: "opsz" 72, "SOFT" 30;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  margin-top: 2.2rem;
}
.prose p { color: var(--bone-2); line-height: 1.75; }
.prose blockquote {
  border-left: 2px solid var(--ember-2);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 340;
  line-height: 1.3;
  color: var(--bone);
  font-variation-settings: "opsz" 72, "SOFT" 60;
}
.prose ul.bullets { list-style: none; }
.prose ul.bullets li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--bone-2);
}
.prose ul.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ember);
}
.article-head {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.article-head h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 320;
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-top: 1.4rem;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
}
.article-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--bone-dim);
}
.article-cover {
  max-width: var(--maxw);
  margin: 0 auto clamp(3rem, 2rem + 3vw, 5rem);
  padding-inline: var(--pad);
  aspect-ratio: 21 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

/* ----- Form ----- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gut);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 0.6rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.7rem 0;
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  transition: border-color 0.3s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--ember-2);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select option { background: var(--ink-2); }

/* ----- 404 ----- */
.notfound {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 4rem + 18vw, 18rem);
  font-weight: 280;
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 144, "SOFT" 20, "WONK" 1;
}
.notfound .code em { font-style: italic; color: var(--ember-2); }

/* ----- Decorative Persian-tile motif ----- */
.tile-motif {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .work-card.span-7, .work-card.span-5,
  .work-card.span-6, .work-card.span-8, .work-card.span-4 { grid-column: span 6; }
  .principles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  /* Mobile menu */
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: 205;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
  }
  .mobile-menu.open { opacity: 1; pointer-events: auto; }
  .mobile-menu a {
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 340;
    font-variation-settings: "opsz" 96, "SOFT" 50;
  }
  .mobile-menu a:hover { color: var(--amber-2); }

  .works-grid > * { grid-column: span 12 !important; }
  .manifesto { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .disc-row { grid-template-columns: 0.3fr 1fr; gap: 1rem; }
  .disc-row p, .disc-row .tags { grid-column: 1 / -1; }
  .journal-grid { grid-template-columns: 1fr; }
  .hero-sub { grid-template-columns: 1fr; }
  .hero-actions { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
