/* ============================================================
   FATEMI INFRA — Design System v2
   A quiet, gallery-like architecture aesthetic:
   ivory paper, ink typography, hairline rules,
   generous whitespace, image-led layouts.
   ============================================================ */

:root {
  --paper: #faf9f5;
  --ivory: #f1eee6;
  --sand: #e7e2d5;
  --ink: #17170f;
  --ink-70: #45453a;
  --ink-50: #6e6c5e;
  --line: rgba(23, 23, 15, 0.14);
  --line-soft: rgba(23, 23, 15, 0.08);
  --moss: #5e6f52;
  --moss-deep: #333d2a;
  --clay: #b07d54;
  --dark: #131309;
  --dark-2: #1b1c12;
  --light-line: rgba(250, 249, 245, 0.18);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --w: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: 0.005em; }

.wrap { max-width: var(--w); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-wide { max-width: 1520px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

section { padding: clamp(90px, 12vw, 170px) 0; }
.section-tight { padding: clamp(60px, 8vw, 110px) 0; }

/* ---------- Typography atoms ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.label::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.6; }
.label.no-rule::before { display: none; }

.display {
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 1.02;
}
.display em, .h-lg em { font-style: italic; color: var(--moss); }

.h-lg { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.8;
  color: var(--ink-70);
  max-width: 620px;
}
.measure { max-width: 660px; }

.rule { border: 0; border-top: 1px solid var(--line); }

/* Underline action link */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.35s var(--ease), opacity 0.3s;
}
.tlink .arr { transition: transform 0.35s var(--ease); }
.tlink:hover { gap: 20px; }
.tlink:hover .arr { transform: translateX(2px); }
.tlink.light { border-color: rgba(250, 249, 245, 0.6); color: var(--paper); }

/* Solid button (used sparingly) */
.btn {
  display: inline-block;
  padding: 16px 38px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.35s, transform 0.35s var(--ease);
}
.btn:hover { background: var(--moss-deep); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn.ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ============================================================
   HEADER
   Fixed; transparent over the home hero (ivory logo + light
   links), turning to paper with the ink logo once scrolled
   or on interior pages.
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.45s, box-shadow 0.45s, border-color 0.45s;
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand { position: relative; display: block; height: 40px; }
.brand img { height: 40px; width: auto; transition: opacity 0.4s; }
.brand .logo-ivory { position: absolute; inset: 0; opacity: 0; }

/* States */
.site-header.solid {
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(14px);
  border-color: var(--line-soft);
}
/* Keep the header (and its close button) above the drawer,
   and switch to the ivory logo while the menu is open */
body.menu-open .site-header { z-index: 300; background: transparent; backdrop-filter: none; border-color: transparent; }
body.menu-open .brand .logo-ink { opacity: 0; }
body.menu-open .brand .logo-ivory { opacity: 1; }
body.header-invert .site-header:not(.solid) .brand .logo-ink { opacity: 0; }
body.header-invert .site-header:not(.solid) .brand .logo-ivory { opacity: 1; }
body.header-invert .site-header:not(.solid) .menu-btn { color: var(--paper); }
body.header-invert .site-header:not(.solid) .menu-btn .bars i { background: var(--paper); }

/* ---------- Hamburger (all viewports) ---------- */
.menu-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  color: var(--ink);
  transition: color 0.4s;
}
.menu-btn em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.menu-btn .bars { display: block; }
.menu-btn .bars i {
  display: block;
  width: 30px; height: 1.5px;
  background: var(--ink);
  margin: 8px 0;
  transition: transform 0.45s var(--ease), background 0.4s, width 0.3s var(--ease);
}
.menu-btn:hover .bars i:first-child { width: 22px; margin-left: 8px; }
.menu-btn:hover .bars i:last-child { width: 22px; }
body.menu-open .menu-btn { color: var(--paper); }
body.menu-open .menu-btn .bars i { background: var(--paper) !important; width: 30px !important; margin-left: 0 !important; }
body.menu-open .menu-btn .bars i:first-child { transform: translateY(4.75px) rotate(45deg); }
body.menu-open .menu-btn .bars i:last-child { transform: translateY(-4.75px) rotate(-45deg); }

/* ---------- Right-side drawer ---------- */
body.menu-open { overflow: hidden; }
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(19, 19, 9, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
body.menu-open .drawer-backdrop { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(480px, 94vw);
  z-index: 250;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 130px clamp(28px, 4vw, 60px) 44px;
  transform: translateX(103%);
  transition: transform 0.7s var(--ease);
  overflow-y: auto;
  box-shadow: -30px 0 80px rgba(19, 19, 9, 0.35);
}
body.menu-open .drawer { transform: none; }

.drawer-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: rgba(250, 249, 245, 0.88);
  padding: 13px 0;
  border-bottom: 1px solid var(--light-line);
  opacity: 0;
  transform: translateX(56px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease),
              padding-left 0.35s var(--ease), color 0.3s;
}
.drawer-nav a i {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--clay);
}
.drawer-nav a:hover { color: #fff; padding-left: 16px; }
.drawer-nav a:hover span { animation: wiggle 0.5s var(--ease); display: inline-block; }
.drawer-nav a.active { color: #fff; }
.drawer-nav a.active i::after { content: " —"; }
body.menu-open .drawer-nav a { opacity: 1; transform: none; }
body.menu-open .drawer-nav a:nth-child(1) { transition-delay: 0.16s; }
body.menu-open .drawer-nav a:nth-child(2) { transition-delay: 0.21s; }
body.menu-open .drawer-nav a:nth-child(3) { transition-delay: 0.26s; }
body.menu-open .drawer-nav a:nth-child(4) { transition-delay: 0.31s; }
body.menu-open .drawer-nav a:nth-child(5) { transition-delay: 0.36s; }
body.menu-open .drawer-nav a:nth-child(6) { transition-delay: 0.41s; }
body.menu-open .drawer-nav a:nth-child(7) { transition-delay: 0.46s; }
body.menu-open .drawer-nav a:nth-child(8) { transition-delay: 0.51s; }

.drawer-foot { opacity: 0; transition: opacity 0.6s var(--ease) 0.55s; }
body.menu-open .drawer-foot { opacity: 1; }
.drawer-foot > a {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: rgba(250, 249, 245, 0.6);
  padding: 4px 0;
  transition: color 0.3s;
}
.drawer-foot > a:hover { color: var(--paper); }
.drawer-social { display: flex; gap: 22px; margin-top: 20px; }
.drawer-social a {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 249, 245, 0.45);
  transition: color 0.3s;
}
.drawer-social a:hover { color: var(--clay); animation: wiggle 0.5s var(--ease); display: inline-block; }

/* ============================================================
   HOME HERO — full-viewport artwork, headline pinned low-left
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: var(--dark);
}
.hero-art {
  position: absolute;
  inset: 0;
}
.hero-art svg, .hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: kenburns 26s var(--ease) both;
}
@keyframes kenburns {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 19, 9, 0.35) 0%, rgba(19, 19, 9, 0) 34%, rgba(19, 19, 9, 0.62) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(56px, 9vh, 110px);
}
.hero .label { color: rgba(250, 249, 245, 0.75); }
.hero h1 {
  margin: 22px 0 30px;
  max-width: 13ch;
  color: var(--paper);
}
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-foot p {
  max-width: 380px;
  font-size: 0.95rem;
  color: rgba(250, 249, 245, 0.72);
}
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 2;
  width: 1px;
  height: 74px;
  background: rgba(250, 249, 245, 0.28);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--paper);
  animation: cueDrop 2.2s var(--ease) infinite;
}
@keyframes cueDrop {
  0% { top: -50%; } 60%, 100% { top: 110%; }
}

/* Hero entrance */
.hero .label, .hero h1, .hero-foot { opacity: 0; transform: translateY(36px); animation: rise 1.1s var(--ease) forwards; }
.hero h1 { animation-delay: 0.15s; }
.hero-foot { animation-delay: 0.35s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================================
   PAGE HEAD (interior pages) — editorial, on paper
   ============================================================ */
.page-head {
  padding: calc(84px + clamp(70px, 10vw, 130px)) 0 clamp(50px, 7vw, 90px);
}
.page-head h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  max-width: 16ch;
  margin: 24px 0 28px;
}
.page-head .lede { margin-bottom: 0; }
.page-head .rule { margin-top: clamp(40px, 6vw, 70px); }

/* ============================================================
   MEDIA / ARTWORK FRAMES
   ============================================================ */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}
.frame svg, .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
a:hover > .frame svg, a:hover > .frame img,
.frame:hover svg, .frame:hover img { transform: scale(1.045); }
.frame .veil {
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform-origin: bottom;
  transition: transform 1.2s var(--ease);
  z-index: 3;
}
.in-view .veil, .visible .veil { transform: scaleY(0); }

.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-21 { aspect-ratio: 21 / 10; }

/* ============================================================
   HOME — editorial intro
   ============================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.intro-grid .h-lg { max-width: 17ch; }
.since {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-50);
  margin-top: 26px;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(60px, 8vw, 100px);
}
.stats .stat {
  padding: 34px clamp(10px, 2vw, 30px) 6px 0;
  border-right: 1px solid var(--line);
}
.stats .stat:last-child { border-right: 0; }
.stats b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1;
  margin-bottom: 10px;
}
.stats span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-50); }

/* ============================================================
   SELECTED WORKS — large alternating features
   ============================================================ */
.works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(50px, 7vw, 90px);
}
.work-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 4.5vw, 80px);
  align-items: end;
  margin-bottom: clamp(70px, 10vw, 140px);
}
.work-feature:last-child { margin-bottom: 0; }
.work-feature.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.work-feature.flip .work-info { order: -1; }
.work-info .idx {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-50);
}
.work-info h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 14px 0 14px;
}
.work-info p { color: var(--ink-70); font-size: 0.95rem; max-width: 40ch; margin-bottom: 26px; }
.work-info .meta { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 4px; }

/* ============================================================
   PROJECT GRID (Projects page)
   ============================================================ */
.filters {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  flex-wrap: wrap;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(46px, 6vw, 80px);
}
.filters button {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.filters button:hover { color: var(--ink); }
.filters button.active { color: var(--ink); border-color: var(--ink); }

.pgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: clamp(28px, 4vw, 64px) clamp(24px, 3.4vw, 56px);
}
.pcard.hidden { display: none; }
.pcard .pmeta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 18px;
}
.pcard h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.pcard .pmeta span { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-50); white-space: nowrap; }
.pcard.span2 { grid-column: span 2; }

/* ============================================================
   SERVICES — numbered index rows
   ============================================================ */
.svc-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: clamp(20px, 3.5vw, 60px);
  padding: clamp(36px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.svc-row:last-of-type { border-bottom: 1px solid var(--line); }
.svc-row .no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-50);
  padding-top: 8px;
}
.svc-row h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); max-width: 12ch; }
.svc-row .svc-body p { color: var(--ink-70); max-width: 56ch; }
.svc-list {
  margin-top: 22px;
  columns: 2;
  column-gap: 40px;
  list-style: none;
}
.svc-list li {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  break-inside: avoid;
}

/* ============================================================
   DARK BAND (sustainability highlight, CTAs)
   ============================================================ */
.band {
  background: var(--dark);
  color: var(--paper);
}
.band .label { color: rgba(250, 249, 245, 0.55); }
.band h2, .band h3 { color: var(--paper); }
.band p { color: rgba(250, 249, 245, 0.72); }
.band .rule { border-color: var(--light-line); }
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.eco-list { list-style: none; margin-top: 8px; }
.eco-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--light-line);
}
.eco-list li:first-child { padding-top: 0; }
.eco-list .n { font-family: var(--serif); font-style: italic; color: var(--clay); font-size: 1.05rem; }
.eco-list b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 6px; }
.eco-list p { font-size: 0.92rem; }

/* ============================================================
   QUOTES / TESTIMONIALS
   ============================================================ */
.quote-xl {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  line-height: 1.35;
  max-width: 24ch;
}
.quote-xl em { color: var(--moss); }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(50px, 7vw, 80px);
}
.quote-cell {
  background: var(--paper);
  padding: clamp(30px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  gap: 30px;
}
.quote-cell p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; }
.quote-cell .who { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-50); }
.quote-cell .who b { display: block; color: var(--ink); letter-spacing: 0.16em; margin-bottom: 3px; }

/* Client marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: clamp(48px, 7vw, 110px);
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-50);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   JOURNAL
   ============================================================ */
.post-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
  gap: clamp(20px, 4vw, 70px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.3s;
}
.post-row:last-of-type { border-bottom: 1px solid var(--line); }
.post-list:hover .post-row:not(:hover) { opacity: 0.45; }
.post-row .cat { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-50); }
.post-row h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin-top: 8px; }
.post-row .sum { color: var(--ink-70); font-size: 0.93rem; max-width: 52ch; }
.post-row .arr {
  font-size: 1.4rem;
  transition: transform 0.35s var(--ease);
}
.post-row:hover .arr { transform: translateX(8px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.c-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.c-item .label { display: flex; margin-bottom: 8px; }
.c-item a, .c-item span.v { font-family: var(--serif); font-size: 1.3rem; }
.c-item a:hover { color: var(--moss); }
.socials { display: flex; gap: 26px; margin-top: 34px; }
.socials a {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.socials a:hover { color: var(--ink); border-color: var(--ink); }

.field { margin-bottom: 34px; }
.field label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  padding: 6px 0 12px;
  border-radius: 0;
  transition: border-color 0.35s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); }
#form-status { display: none; margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--moss); }
.map-frame { margin-top: clamp(70px, 10vw, 120px); filter: grayscale(1) contrast(0.92); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ============================================================
   CTA — oversized closing statement
   ============================================================ */
.cta h2 {
  font-size: clamp(2.6rem, 6.6vw, 5.6rem);
  max-width: 14ch;
  margin: 22px 0 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(250, 249, 245, 0.65);
  padding: clamp(70px, 9vw, 120px) 0 0;
  font-size: 0.9rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 70px);
  padding-bottom: clamp(56px, 8vw, 90px);
}
.site-footer h4 {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 249, 245, 0.45);
  margin-bottom: 22px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: var(--paper); }
.footer-brand img { height: 46px; width: auto; margin-bottom: 26px; }
.footer-brand p { max-width: 34ch; font-size: 0.88rem; line-height: 1.8; }
.footer-word {
  border-top: 1px solid var(--light-line);
  padding: clamp(30px, 5vw, 50px) 0 clamp(20px, 3vw, 34px);
  overflow: hidden;
}
.footer-word span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 12.5vw, 11.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: rgba(250, 249, 245, 0.1);
  white-space: nowrap;
  text-align: center;
}
.footer-bottom {
  border-top: 1px solid var(--light-line);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 249, 245, 0.38);
}

/* ============================================================
   MOTION — reveals (gated on JS via body.js)
   ============================================================ */
body.js .reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
body.js .reveal.visible { opacity: 1; transform: none; }

body.js .reveal-line { overflow: hidden; }
body.js .reveal-line > * {
  display: block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
body.js .reveal-line.visible > * { transform: none; }

/* Cursor dot (desktop) */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clay);
  pointer-events: none;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.4s, width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s;
}
.cursor-dot.on { opacity: 0.9; }
.cursor-dot.grow { width: 44px; height: 44px; background: rgba(176, 125, 84, 0.16); }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* Parallax images: scroll owns the transform, so no hover transition */
.frame.plx img, .frame.plx svg { transition: none; will-change: transform; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 900px) {
  .intro-grid, .band-grid, .contact-grid { grid-template-columns: 1fr; }
  .work-feature, .work-feature.flip { grid-template-columns: 1fr; align-items: start; }
  .work-feature.flip .work-info { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2n) { border-right: 0; }
  .stats .stat { border-bottom: 1px solid var(--line); padding-bottom: 26px; }
  .svc-row { grid-template-columns: 48px 1fr; }
  .svc-row .svc-body { grid-column: 2; }
  .quote-grid { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 10px; }
  .post-row .arr { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard.span2 { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .svc-list { columns: 1; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { max-width: 100%; }
}

/* ============================================================
   ALIVE LAYER — jiggle, wiggle, float, drift, sheen
   ============================================================ */
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-2.6deg); }
  50% { transform: rotate(2deg); }
  75% { transform: rotate(-1.2deg); }
}
@keyframes jiggle {
  0%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-4px) rotate(-2deg); }
  60% { transform: translateY(2px) rotate(1.6deg); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes arrowBob {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(7px); }
}

/* Hover jiggles */
.brand:hover { animation: jiggle 0.55s var(--ease); }
.filters button:hover { animation: wiggle 0.5s var(--ease); }
.socials a:hover { animation: wiggle 0.5s var(--ease); display: inline-block; }
.footer-top a:hover { display: inline-block; animation: wiggle 0.5s var(--ease); }
.btn:hover { animation: jiggle 0.55s var(--ease); }

/* Perpetual little motions */
.tlink .arr { display: inline-block; animation: arrowBob 2.4s ease-in-out infinite; }
.work-info .idx, .since { display: inline-block; animation: floatY 5.5s ease-in-out infinite; }
.svc-row .no, .eco-list .n { display: inline-block; animation: floatY 6s ease-in-out infinite; }
.hero .label { animation: rise 1.1s var(--ease) forwards, floatY 6s ease-in-out 1.4s infinite; }

/* Hero art: never stops breathing */
.hero-art svg, .hero-art img {
  animation: kenburns 26s var(--ease) both, heroDrift 18s ease-in-out 26s infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.06) translateY(-14px); }
}

/* Scroll progress hairline */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0;
  background: linear-gradient(90deg, var(--moss), var(--clay));
  z-index: 1000;
  pointer-events: none;
}

/* Drifting glow orbs (injected by JS into .hero and .band) */
.hero, .band { position: relative; overflow: hidden; }
.hero .hero-content, .band .wrap, .band .wrap-wide { position: relative; z-index: 2; }
.orb-wrap {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  animation: orbDrift 18s ease-in-out infinite alternate;
}
.orb { border-radius: 50%; filter: blur(72px); will-change: transform; }
@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, -30px, 0) scale(1.12); }
}

/* Firefly canvas (injected by JS into .hero and .band) */
.life-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* 3D tilt + glare (frames and quote cells) */
.tilt { will-change: transform; transform-style: preserve-3d; }
.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
}
.quote-cell { position: relative; }

/* Sheen sweeps across the giant footer word and dark CTAs */
.footer-word span {
  background: linear-gradient(100deg, rgba(250,249,245,0.09) 42%, rgba(250,249,245,0.34) 50%, rgba(250,249,245,0.09) 58%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s linear infinite;
}
@keyframes sheen { to { background-position: -240% 0; } }

/* Marquee words wiggle when hovered */
.marquee-track span:hover { animation: wiggle 0.55s var(--ease); }

/* ---------- Whole-page life ---------- */

/* Aurora: a faint moss/clay glow that slowly wanders behind every page */
body::before {
  content: "";
  position: fixed;
  inset: -22%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 22% 28%, rgba(94, 111, 82, 0.075), transparent 62%),
    radial-gradient(32% 28% at 78% 72%, rgba(176, 125, 84, 0.06), transparent 62%);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate(-2.5%, -1.5%) rotate(-1deg) scale(1); }
  to   { transform: translate(2.5%, 2%) rotate(1deg) scale(1.06); }
}

/* Page-wide dust motes canvas (injected by JS, sits under the grain) */
.motes-canvas {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
}

/* Label rule lines quietly breathe */
.label::before { transform-origin: left; animation: rulePulse 4.5s ease-in-out infinite; }
@keyframes rulePulse {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.55); }
}

/* Hairlines draw themselves in when revealed */
body.js hr.rule.reveal {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
  transition-delay: var(--d, 0s);
}
body.js hr.rule.reveal.visible { transform: scaleX(1); }

/* Stats bob on their own, lift on hover */
.stats b { animation: floatY 6s ease-in-out infinite; }
.stats .stat:nth-child(2) b { animation-delay: -1.6s; }
.stats .stat:nth-child(3) b { animation-delay: -3.2s; }
.stats .stat:nth-child(4) b { animation-delay: -4.8s; }
.stats .stat { transition: transform 0.5s var(--ease); }
.stats .stat:hover { transform: translateY(-6px); }

/* Project cards float gently at different phases */
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.pgrid .pcard { animation: floatSoft 7.5s ease-in-out infinite; }
.pgrid .pcard:nth-child(2n) { animation-delay: -2.5s; }
.pgrid .pcard:nth-child(3n) { animation-delay: -5s; }

/* Service & philosophy rows slide alive on hover */
.svc-row { transition: padding-left 0.45s var(--ease), background 0.45s; }
.svc-row:hover { padding-left: 18px; }
.svc-row:hover .no { animation: wiggle 0.5s var(--ease), floatY 6s ease-in-out infinite; }
.svc-row:hover h3 { color: var(--moss); transition: color 0.4s; }

/* Journal rows indent alive on hover */
.post-row { transition: opacity 0.3s, padding-left 0.45s var(--ease); }
.post-row:hover { padding-left: 14px; }

/* Buttons emit a soft pulse ring */
.btn { animation: btnPulse 3.6s ease-out infinite; }
.btn:hover { animation: jiggle 0.55s var(--ease), btnPulse 3.6s ease-out infinite; }
@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(94, 111, 82, 0.35); }
  55%  { box-shadow: 0 0 0 14px rgba(94, 111, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 111, 82, 0); }
}
.band .btn { animation-name: btnPulseLight; }
@keyframes btnPulseLight {
  0%   { box-shadow: 0 0 0 0 rgba(250, 249, 245, 0.28); }
  55%  { box-shadow: 0 0 0 14px rgba(250, 249, 245, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 249, 245, 0); }
}

/* Giant footer word drifts side to side beneath its sheen */
.footer-word span { animation: sheen 9s linear infinite, wordDrift 16s ease-in-out infinite alternate; }
@keyframes wordDrift {
  from { transform: translateX(-1.2%); }
  to   { transform: translateX(1.2%); }
}

/* Map wakes into colour on hover */
.map-frame { transition: filter 0.8s var(--ease); }
.map-frame:hover { filter: grayscale(0) contrast(1); }

/* Trailing cursor ring behind the dot */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border: 1px solid rgba(176, 125, 84, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2999;
  opacity: 0;
  transition: opacity 0.4s, width 0.35s var(--ease), height 0.35s var(--ease);
}
.cursor-ring.on { opacity: 1; }
.cursor-ring.grow { width: 56px; height: 56px; }
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* ============================================================
   LOADER — construction scene behind frosted glass
   Fades in only if the page takes longer than ~0.5s to load
   (pure CSS delay), hidden by JS on window load.
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: linear-gradient(160deg, #24301f 0%, #333d2a 55%, #3e4a30 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
/* Only ever shown when JS is running (JS is what hides it again) */
body.js .loader { animation: loaderShow 0.4s ease 0.55s forwards; }
@keyframes loaderShow { to { opacity: 1; visibility: visible; } }
.loader.done { animation: none; opacity: 0 !important; visibility: hidden !important; }
.loader-logo {
  position: absolute;
  top: 26px; left: 28px;
  height: 44px;
  z-index: 4;
}
.loader-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}
.loader-scene svg { width: min(720px, 90vw); height: auto; }
.loader-blur {
  position: absolute;
  inset: 0;
  z-index: 2;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  background: rgba(36, 48, 31, 0.25);
}
.loader-front {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--paper);
}
.loader-word {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
}
.loader-word i {
  font-style: normal;
  animation: dotBlink 1.4s infinite;
}
.loader-word i:nth-child(2) { animation-delay: 0.2s; }
.loader-word i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBlink { 0%, 60%, 100% { opacity: 0.2; } 30% { opacity: 1; } }
.loader-bar {
  width: min(240px, 60vw);
  height: 1.5px;
  background: rgba(250, 249, 245, 0.2);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--clay);
  animation: barSlide 1.5s var(--ease) infinite;
}
@keyframes barSlide {
  from { transform: translateX(-110%); }
  to   { transform: translateX(280%); }
}
/* the construction loop behind the glass */
.lc-block { transform-origin: bottom; animation: lcRise 4.2s var(--ease) infinite; }
.lc-block.b2 { animation-delay: 0.5s; }
.lc-block.b3 { animation-delay: 1s; }
.lc-roof { transform-origin: center; animation: lcRoof 4.2s var(--ease) infinite; }
@keyframes lcRise {
  0% { transform: scaleY(0); }
  22%, 88% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}
@keyframes lcRoof {
  0%, 28% { transform: translateY(-160px); opacity: 0; }
  45%, 88% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-160px); opacity: 0; }
}
.lc-arm { transform-origin: 470px 150px; animation: lcSwing 4.2s ease-in-out infinite; }
@keyframes lcSwing {
  0%, 100% { transform: rotate(0deg); }
  45% { transform: rotate(-7deg); }
}
.lc-hook { animation: lcHook 4.2s ease-in-out infinite; }
@keyframes lcHook {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(46px); }
}

/* ============================================================
   GLASS / LIQUID CARDS — rounded, translucent, blurred
   ============================================================ */
:root { --r: 20px; }
.glass {
  background: rgba(250, 249, 245, 0.55);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r);
  box-shadow: 0 24px 60px rgba(23, 23, 15, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.band .glass, .glass.dark {
  background: rgba(250, 249, 245, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.frame { border-radius: var(--r); }
.map-frame { border-radius: var(--r); overflow: hidden; }
.btn { border-radius: 12px; }
.post-row { border-radius: 14px; }
.post-row:hover { background: rgba(250, 249, 245, 0.65); box-shadow: 0 14px 36px rgba(23,23,15,0.06); }
/* Quote cells become floating glass tiles */
.quote-grid { gap: 22px; background: none; border: 0; }
.quote-cell {
  background: rgba(250, 249, 245, 0.55);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r);
  box-shadow: 0 24px 60px rgba(23, 23, 15, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* ============================================================
   B&W → COLOUR — all framed imagery is monochrome until hover
   ============================================================ */
.frame img {
  filter: grayscale(1) contrast(1.03);
  transition: filter 0.7s var(--ease), transform 1.1s var(--ease);
}
.frame:hover img,
a:hover .frame img,
.pcard:hover .frame img,
.member:hover .frame img,
.founder-card:hover .frame img,
.modal .frame img { filter: none; }
.frame.plx img { transition: filter 0.7s var(--ease); }
.hero-art img { filter: none; }

/* ============================================================
   PROJECT CARDS — glass hover overlay + click-for-details
   ============================================================ */
.pcard-open {
  display: block;
  width: 100%;
  text-align: left;
  position: relative;
  cursor: pointer;
}
.pcard-overlay {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 5;
  padding: 22px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.pcard-open:hover .pcard-overlay,
.pcard-open:focus-visible .pcard-overlay { opacity: 1; transform: none; }
.pcard-overlay .ptag {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 6px;
}
.pcard-overlay h3 { font-size: 1.3rem; margin-bottom: 4px; }
.pcard-overlay p { font-size: 0.85rem; color: var(--ink-70); max-width: 34ch; }
.pcard-overlay .more {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  white-space: nowrap;
}

/* ============================================================
   MODAL — project & team details in-page (no separate pages)
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(19, 19, 9, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 410;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 44px);
  visibility: hidden;
  pointer-events: none;
}
.modal {
  position: relative;
  width: min(1020px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  background: rgba(250, 249, 245, 0.9);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  box-shadow: 0 60px 140px rgba(19, 19, 9, 0.45);
  opacity: 0;
  transform: perspective(1200px) rotateX(5deg) scale(0.92) translateY(34px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: auto;
}
body.modal-open .modal-backdrop { opacity: 1; visibility: visible; }
body.modal-open .modal-shell { visibility: visible; }
body.modal-open .modal { opacity: 1; transform: none; }
body.modal-open { overflow: hidden; }
.modal .frame { border-radius: 0; height: 100%; min-height: 320px; }
.modal .frame img { height: 100%; object-fit: cover; }
.modal-body { padding: clamp(28px, 4vw, 48px); }
.modal-body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 12px 0 14px; }
.modal-body .desc { color: var(--ink-70); font-size: 0.96rem; margin-bottom: 26px; }
.modal-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 30px;
}
.modal-facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.modal-facts b {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 4px;
}
.modal-facts span { font-family: var(--serif); font-size: 1.05rem; }
.modal-list { list-style: none; margin: 0 0 28px; }
.modal-list li {
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
  color: var(--ink-70);
  position: relative;
}
.modal-list li::before { content: "—"; position: absolute; left: 0; color: var(--clay); }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(250, 249, 245, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.3s;
}
.modal-close:hover { transform: rotate(90deg) scale(1.08); background: var(--paper); }
.modal-nav {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.modal-nav button {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.modal-nav button:hover { color: var(--ink); border-color: var(--ink); }

/* Project gallery carousel inside modal */
.modal .frame.gallery { position: relative; overflow: hidden; }
.modal .frame.gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.modal .frame.gallery img.active { opacity: 1; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  color: var(--ink);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.gallery-arrow:hover { background: var(--paper); transform: translateY(-50%) scale(1.08); }
.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }
.gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.gallery-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(250, 249, 245, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.gallery-dots button.active { background: var(--paper); transform: scale(1.3); }

/* ============================================================
   TEAM
   ============================================================ */
.founder-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(24px, 3vw, 44px);
  align-items: center;
}
.founder-card .frame { border-radius: 16px; }
.founder-card h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 12px 0 6px; }
.founder-card .role { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--clay); }
.founder-card .phil {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  font-style: italic;
  color: var(--ink-70);
  margin: 20px 0 22px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: clamp(44px, 6vw, 70px);
}
.member {
  padding: 14px 14px 20px;
  position: relative;
  cursor: pointer;
  text-align: left;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.member:hover {
  transform: translateY(-10px) scale(1.03) perspective(800px) rotateX(2deg);
  box-shadow: 0 40px 80px rgba(23, 23, 15, 0.16), inset 0 1px 0 rgba(255,255,255,0.65);
  z-index: 5;
}
.member .frame { border-radius: 14px; }
.member h3 { font-size: 1.25rem; margin: 14px 4px 2px; }
.member .role {
  display: block;
  margin: 0 4px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.member .peek {
  margin: 10px 4px 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.member:hover .peek { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .founder-card, .modal { grid-template-columns: 1fr; }
  .modal .frame { min-height: 220px; max-height: 34vh; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.js .reveal, body.js .reveal-line > * { opacity: 1; transform: none; }
  .frame .veil { display: none; }
  .cursor-dot, .cursor-ring, .life-canvas, .motes-canvas, .orb-wrap, .scroll-progress { display: none; }
  body::before { display: none; }
  body.js .loader { animation: none; }
}
