/* ====================================================================
   DHODY & DHODY — Editorial Practice Site
   Palette: cream, ink, terracotta, sage
   Type: Fraunces (display) / Geist (body) / Geist Mono (metadata)
==================================================================== */

:root {
  --cream:        #F4EFE6;
  --cream-deep:   #EBE3D4;
  --paper:        #FAF6EE;
  --ink:          #1A1814;
  --ink-soft:     #2C2823;
  --ink-mute:     #5C5448;
  --terracotta:   #A0492A;
  --terracotta-soft: #C26E4D;
  --sage:         #7D8471;
  --rule:         #1A18141A;
  --rule-strong:  #1A18142E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}

/* Subtle paper grain via SVG */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 999;
  mix-blend-mode: multiply; opacity: 0.55;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- TYPOGRAPHY ---------- */

.serif {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 0;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.mono {
  font-family: 'Geist Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-weight: 500;
}

.kicker {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: ''; width: 28px; height: 1px;
  background: var(--ink-mute);
  display: inline-block;
}

/* ---------- LAYOUT ---------- */

.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ---------- NAVIGATION ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: transparent;
  transition: background 0.4s ease, padding 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav .brand { justify-self: start; }
.nav-social-row { justify-self: center; }
.nav-links { justify-self: end; }

.nav.scrolled {
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 32px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .nav, .nav.scrolled { padding: 14px 20px; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-social-row { display: none; }   /* mobile: social lives in the menu */
}

.brand {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 14, 'WONK' 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.brand .amp { font-style: italic; color: var(--terracotta); font-weight: 400; }

.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 0.86rem; color: var(--ink-soft);
  position: relative; padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--terracotta);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-links a:hover::after { width: 100%; }

.nav .nav-cta {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 999px;
  margin-left: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(160, 73, 42, 0.6);
}

/* ---------- HAMBURGER BUTTON (mobile only) ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-left: 4px;
  padding: 0;
}
.nav-toggle-bars {
  position: relative;
  width: 22px; height: 14px;
}
.nav-toggle-bars span {
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7px; }
.nav-toggle-bars span:nth-child(3) { top: 14px; }
body.menu-open .nav-toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
body.menu-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav .nav-cta { display: none; }   /* The CTA lives in the mobile menu instead */
}

/* ---------- MOBILE FULL-SCREEN MENU ---------- */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 95;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 88px 24px 32px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
body.menu-open { overflow: hidden; }

.mobile-menu-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.45);
  margin-bottom: 20px;
}

.mobile-menu-links {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
  margin-bottom: 36px;
}
.mobile-menu-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.18);
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 1;
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.02em;
  transition: padding 0.3s ease, color 0.2s ease;
}
.mobile-menu-links a .arrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--terracotta-soft);
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}
.mobile-menu-links a:hover,
.mobile-menu-links a:active {
  padding-left: 12px;
  color: var(--terracotta-soft);
}
.mobile-menu-links a:hover .arrow,
.mobile-menu-links a:active .arrow {
  transform: translateX(6px);
}

.mobile-menu-cta {
  display: block;
  text-align: center;
  font-family: 'Geist Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 24px;
  background: var(--terracotta);
  color: var(--cream);
  border-radius: 999px;
  margin-bottom: 36px;
  transition: background 0.25s ease;
}
.mobile-menu-cta:hover, .mobile-menu-cta:active { background: var(--terracotta-soft); }

.mobile-menu-contact {
  display: grid; gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
}
.mobile-menu-contact .row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: baseline;
}
.mobile-menu-contact .label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
}
.mobile-menu-contact .value {
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.4;
}
.mobile-menu-contact a { color: var(--cream); border-bottom: 1px solid rgba(244, 239, 230, 0.35); padding-bottom: 1px; }

/* ---------- HERO ---------- */

.hero {
  min-height: 100vh;
  padding: 120px 32px 60px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
}
@media (max-width: 720px) { .hero { padding: 100px 20px 40px; } }

.hero-grid {
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-text { position: relative; }

.hero-eyebrow {
  margin-bottom: 36px;
  display: flex; align-items: center; gap: 16px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.86rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; background: var(--terracotta); border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
  font-size: clamp(2.8rem, 7.2vw, 6.8rem);
  font-weight: 350;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  color: var(--ink);
}
.hero h1 .italic {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 70, 'WONK' 1;
  color: var(--terracotta);
}
.hero h1 .small {
  font-size: 0.6em;
  display: block;
  letter-spacing: -0.02em;
  margin-top: 4px;
  color: var(--ink-soft);
}

.hero-sub {
  font-size: 1.08rem;
  max-width: 520px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
}
.hero-meta-item .label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 6px;
}
.hero-meta-item .value {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-variation-settings: 'opsz' 24, 'SOFT' 30, 'WONK' 1;
  font-weight: 400;
}

/* Hero image */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 2px;
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  animation: heroIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 35%, rgba(160,73,42,0.08) 100%);
  pointer-events: none;
}
.hero-visual-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 2px;
}
@keyframes heroIn {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}

/* Hero entrance reveal — only active when JS has marked the body ready */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.js-ready .reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.35s; }
.reveal.d4 { transition-delay: 0.5s; }
.reveal.d5 { transition-delay: 0.65s; }

/* ---------- SECTION CHROME ---------- */

section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { section { padding: 80px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  margin-bottom: 72px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule-strong);
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
}

.section-head .label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 12px;
}
.section-head h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 1;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 920px;
}
.section-head h2 .italic {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: 'opsz' 144, 'SOFT' 80, 'WONK' 1;
}

/* ---------- INTRO STATEMENT ---------- */

.statement {
  padding: 100px 0 80px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.statement-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .statement-inner { grid-template-columns: 1fr; gap: 20px; padding: 0 20px; }
}
.statement-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: 3.4rem;
  color: var(--terracotta);
  font-weight: 400;
  line-height: 1;
}
.statement-text {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.32;
  font-weight: 350;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.statement-text em {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: 'opsz' 144, 'SOFT' 80, 'WONK' 1;
}

/* ---------- PRACTICE / ABOUT ---------- */

.practice-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
}
@media (max-width: 820px) {
  .practice-body { grid-template-columns: 1fr; gap: 32px; }
}
.practice-aside {
  border-top: 1px solid var(--rule-strong);
  padding-top: 16px;
}
.practice-aside .role {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--terracotta);
  margin-bottom: 4px;
}
.practice-aside .name {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 24, 'SOFT' 40, 'WONK' 1;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.practice-aside .quals {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.6;
}
.practice-prose {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 760px;
}
.practice-prose p + p { margin-top: 1.2em; }
.practice-prose strong { color: var(--ink); font-weight: 500; }

.practice-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .practice-stats { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
}
.stat .n {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.stat .n .accent { color: var(--terracotta); font-style: italic; }
.stat .desc {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* ---------- PROJECTS ---------- */

.project {
  padding: 110px 0;
  border-top: 1px solid var(--rule);
}
.project:first-of-type { border-top: none; padding-top: 60px; }

.project-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 820px) {
  .project-head { grid-template-columns: 1fr; gap: 24px; }
}
.project-head .num {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.project-head h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 1;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.project-head h3 .italic {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: 'opsz' 144, 'SOFT' 80, 'WONK' 1;
}

.project-meta {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  margin-bottom: 56px;
}
@media (max-width: 820px) {
  .project-meta { grid-template-columns: 1fr; gap: 24px; }
}
.project-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.spec-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.86rem;
}
.spec-row .k {
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.spec-row .v { color: var(--ink); font-weight: 500; text-align: right; }

.project-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 720px;
}

/* Project Gallery — magazine-style mosaic */
.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
.g-img {
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--cream-deep);
}
.g-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.g-img:hover img { transform: scale(1.04); }
.g-img::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(160, 73, 42, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}
.g-img:hover::after { background: rgba(160, 73, 42, 0.08); }

/* Project 1 layout: hero + mosaic */
.g-1a { grid-column: span 8; aspect-ratio: 16/9; }
.g-1b { grid-column: span 4; aspect-ratio: 4/5; }
.g-1c { grid-column: span 4; aspect-ratio: 4/5; }
.g-1d { grid-column: span 8; aspect-ratio: 16/9; }
.g-1e { grid-column: span 6; aspect-ratio: 4/3; }
.g-1f { grid-column: span 6; aspect-ratio: 4/3; }
.g-1g { grid-column: span 12; aspect-ratio: 21/9; }

/* Project 2 layout */
.g-2a { grid-column: span 12; aspect-ratio: 21/9; }
.g-2b { grid-column: span 6; aspect-ratio: 4/3; }
.g-2c { grid-column: span 6; aspect-ratio: 4/3; }
.g-2d { grid-column: span 4; aspect-ratio: 4/5; }
.g-2e { grid-column: span 8; aspect-ratio: 16/9; }

@media (max-width: 820px) {
  .g-1a, .g-1b, .g-1c, .g-1d, .g-1e, .g-1f, .g-1g,
  .g-2a, .g-2b, .g-2c, .g-2d, .g-2e {
    grid-column: span 12;
    aspect-ratio: 16/10;
  }
}

.project-link {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 6px 0;
  transition: gap 0.25s ease, color 0.25s ease;
}
.project-link:hover { gap: 18px; color: var(--terracotta); border-bottom-color: var(--terracotta); }
.project-link svg { width: 14px; height: 14px; }

/* ---------- SERVICES ---------- */

.services-section { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px 56px;
  padding-top: 60px;
  border-top: 1px solid var(--rule-strong);
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; gap: 48px; } }

.service {
  padding: 0;
  border: none;
}

.service .num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.service h4 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 24, 'SOFT' 40, 'WONK' 1;
  font-size: 1.5rem;
  font-weight: 450;
  letter-spacing: -0.018em;
  margin-bottom: 22px;
  padding-bottom: 18px;
  line-height: 1.2;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.service h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 1px;
  background: var(--terracotta);
}
.service h4 .italic { font-style: italic; color: var(--terracotta); }

.service p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- CREDENTIALS ---------- */

.creds-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.cred {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--rule-strong);
  align-items: baseline;
  transition: padding-left 0.3s ease;
}
.cred:last-child { border-bottom: 1px solid var(--rule-strong); }
.cred:hover { padding-left: 12px; }
.cred .n {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 80, 'WONK' 1;
  font-size: 1.8rem;
  color: var(--terracotta);
  font-weight: 400;
}
.cred .body {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 24, 'SOFT' 30, 'WONK' 1;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.25;
}
.cred .body .sub {
  display: block;
  font-family: 'Geist', sans-serif;
  font-size: 0.92rem;
  color: var(--ink-mute);
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: 0;
}
.cred .ref {
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .cred { grid-template-columns: 50px 1fr; gap: 20px; padding: 24px 0; }
  .cred .ref { grid-column: 2; margin-top: 6px; }
  .cred .body { font-size: 1.15rem; }
}

/* ---------- CONTACT ---------- */

.contact-section {
  background: var(--ink);
  color: var(--cream);
  border: none;
}
.contact-section .kicker { color: rgba(244, 239, 230, 0.6); }
.contact-section .kicker::before { background: rgba(244, 239, 230, 0.4); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 50px; } }

.contact-lead {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  color: var(--cream);
}
.contact-lead .italic {
  font-style: italic;
  color: var(--terracotta-soft);
  font-variation-settings: 'opsz' 144, 'SOFT' 90, 'WONK' 1;
}

.contact-channels { margin-top: 32px; }
.channel {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
  align-items: baseline;
}
.channel:last-child { border-bottom: 1px solid rgba(244, 239, 230, 0.18); }
.channel .label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
}
.channel .value {
  font-size: 1.02rem;
  color: var(--cream);
  font-weight: 400;
}
.channel a { color: var(--cream); position: relative; padding-bottom: 2px; }
.channel a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--terracotta-soft);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.channel a:hover::after { transform: scaleX(1); }

.hours-card {
  background: rgba(244, 239, 230, 0.05);
  border: 1px solid rgba(244, 239, 230, 0.12);
  padding: 32px 28px;
  border-radius: 2px;
}
.hours-card h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.7);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hours-card h4::before {
  content: ''; width: 24px; height: 1px;
  background: var(--terracotta-soft);
}
.hours-block { margin-bottom: 24px; }
.hours-block:last-child { margin-bottom: 0; }
.hours-block .season {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: 'opsz' 24, 'SOFT' 100, 'WONK' 1;
  font-size: 1.15rem;
  color: var(--terracotta-soft);
  margin-bottom: 8px;
}
.hours-block .times {
  font-size: 0.96rem;
  color: var(--cream);
  line-height: 1.7;
}
.hours-block .times .slot {
  display: block;
}
.hours-divider {
  height: 1px; background: rgba(244, 239, 230, 0.12);
  margin: 24px 0;
}
.site-visit {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.65);
  padding-top: 8px;
}
.site-visit strong { color: var(--terracotta-soft); font-weight: 500; }

/* ---------- FOOTER ---------- */

.footer {
  background: var(--ink);
  color: rgba(244, 239, 230, 0.7);
  padding: 60px 32px 28px;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}
@media (max-width: 720px) { .footer { padding: 40px 20px 24px; } }
.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.15);
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--cream);
}
.footer-brand .amp { font-style: italic; color: var(--terracotta-soft); }
.footer-tag {
  margin-top: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
}

.footer-social {
  display: flex; flex-direction: column; gap: 14px;
  align-items: flex-end;
}
@media (max-width: 720px) { .footer-social { align-items: flex-start; } }

.social-row {
  display: flex; gap: 12px;
}
.social-link {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 50%;
  color: rgba(244, 239, 230, 0.75);
  transition: all 0.25s ease;
}
.social-link:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
  transform: translateY(-2px);
}
.social-link svg { width: 18px; height: 18px; }

.footer-bot {
  max-width: 1480px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.45);
}

/* ---------- LIGHTBOX ---------- */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(26, 24, 20, 0.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 40px;
  backdrop-filter: blur(8px);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(244, 239, 230, 0.3);
  color: var(--cream);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lightbox-close:hover { background: var(--terracotta); border-color: var(--terracotta); }

/* ====================================================================
   ADDITIONS: Logo placements, Vision/Mission, Founder's Note, Tagline
==================================================================== */

/* ---------- LOGO IN NAV ---------- */
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 48px; width: auto; display: block; transition: transform 0.3s ease; }
.nav.scrolled .brand-logo { height: 40px; }
.brand-row:hover .brand-logo { transform: rotate(-3deg); }
@media (max-width: 540px) {
  .brand-logo { height: 38px; }
  .brand .wordmark { display: none; }
}

/* ---------- BELIEFS (VISION & MISSION) ---------- */
.beliefs {
  background: var(--ink);
  color: var(--cream);
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) { .beliefs { padding: 90px 0; } }

.beliefs::before {
  /* faint terracotta corner accent */
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(160, 73, 42, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.beliefs .section-head .label { color: rgba(244, 239, 230, 0.55); }
.beliefs .section-head { border-bottom-color: rgba(244, 239, 230, 0.18); }
.beliefs .section-head h2 { color: var(--cream); }
.beliefs .section-head h2 .italic { color: var(--terracotta-soft); }

.beliefs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .beliefs-grid { grid-template-columns: 1fr; gap: 60px; }
}

.belief-block .belief-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
  margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 14px;
}
.belief-block .belief-label::before {
  content: ''; width: 28px; height: 1px; background: var(--terracotta-soft);
}

.belief-block .belief-headline {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--cream);
  margin-bottom: 24px;
}
.belief-block .belief-headline em {
  font-style: italic;
  color: var(--terracotta-soft);
  font-variation-settings: 'opsz' 144, 'SOFT' 80, 'WONK' 1;
}

.belief-block .belief-body {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(244, 239, 230, 0.78);
}
.belief-block .belief-body p + p { margin-top: 1em; }

/* ---------- FOUNDER'S NOTE ---------- */
.founders-note { padding: 130px 0; }
@media (max-width: 720px) { .founders-note { padding: 80px 0; } }

.note-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 64px 72px;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -30px rgba(26, 24, 20, 0.12);
}
@media (max-width: 720px) {
  .note-card { padding: 40px 28px; }
}

.note-card::before {
  /* quote mark decoration */
  content: '"';
  position: absolute;
  top: -8px; left: 32px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 7rem;
  color: var(--terracotta);
  line-height: 1;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}

.note-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
  margin-top: 16px;
}

.note-body {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 350;
}
.note-body em {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: 'opsz' 144, 'SOFT' 80, 'WONK' 1;
}

.note-signature {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
  display: flex; flex-direction: column; gap: 4px;
}
.note-signature .sig-name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: 'opsz' 24, 'SOFT' 80, 'WONK' 1;
  font-size: 1.3rem;
  color: var(--terracotta);
}
.note-signature .sig-role {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- TAGLINE BANNER (between Credentials and Contact) ---------- */
.tagline-banner {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
@media (max-width: 720px) { .tagline-banner { padding: 70px 0; } }

.tagline-text {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
  font-size: clamp(1.6rem, 4.4vw, 3.4rem);
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.tagline-text .italic {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: 'opsz' 144, 'SOFT' 90, 'WONK' 1;
}
.tagline-text .divider {
  display: inline-block;
  margin: 0 0.4em;
  color: var(--terracotta);
  font-style: italic;
}

.tagline-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.tagline-eyebrow::before,
.tagline-eyebrow::after {
  content: ''; width: 32px; height: 1px; background: var(--terracotta);
  display: inline-block;
}

/* ---------- FOOTER LOGO ---------- */
.footer-brand-row { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; }
.footer-logo { height: 64px; width: auto; display: block; }
@media (max-width: 720px) { .footer-logo { height: 52px; } }

.footer-tagline {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 24, 'SOFT' 30, 'WONK' 1;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(244, 239, 230, 0.85);
  margin-top: 10px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.footer-tagline em {
  font-style: italic;
  font-variation-settings: 'opsz' 24, 'SOFT' 90, 'WONK' 1;
  color: var(--terracotta-soft);
}

/* ====================================================================
   MOBILE REFINEMENTS — applied below 720px
==================================================================== */

@media (max-width: 720px) {

  /* Hero — tighter meta layout, cleaner stack */
  .hero { padding: 96px 20px 56px; }
  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
  }
  .hero-sub { font-size: 1rem; }
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    padding-top: 20px;
  }
  .hero-meta-item .value { font-size: 1.2rem; }
  .hero-eyebrow { font-size: 0.66rem; letter-spacing: 0.2em; margin-bottom: 24px; }

  /* Statement — less vertical padding */
  .statement { padding: 64px 0 56px; }

  /* Section padding — friendlier on small screens */
  section { padding: 80px 0; }
  .project { padding: 72px 0; }
  .project:first-of-type { padding-top: 40px; }
  .founders-note { padding: 64px 0; }
  .beliefs { padding: 72px 0; }

  /* Section heads — tighter on mobile */
  .section-head { gap: 12px; margin-bottom: 36px; padding-bottom: 20px; }
  .section-head .label { font-size: 0.66rem; padding-top: 0; }
  .section-head h2 { font-size: clamp(1.7rem, 7.5vw, 2.4rem); line-height: 1.08; }

  /* Project specs — single column, left-aligned */
  .project-specs {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .spec-row {
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .spec-row .v { text-align: left; }
  .project-meta { gap: 24px; margin-bottom: 36px; }
  .project-head { gap: 12px; margin-bottom: 32px; }
  .project-head h3 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .project-desc { font-size: 0.98rem; }

  /* Gallery — tighter gaps */
  .gallery { gap: 10px; }

  /* Practice section */
  .practice-prose { font-size: 1rem; line-height: 1.65; }
  .practice-aside { padding-top: 12px; }
  .practice-aside .name { font-size: 1.35rem; }
  .practice-stats { margin-top: 40px; gap: 16px; }
  .stat .n { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .stat .desc { font-size: 0.62rem; letter-spacing: 0.14em; }

  /* Beliefs */
  .belief-block .belief-headline { font-size: 1.25rem; }
  .belief-block .belief-body { font-size: 0.95rem; }

  /* Founder's note — tighter on small screens */
  .note-card { padding: 36px 22px; }
  .note-card::before { font-size: 5rem; left: 20px; top: -10px; }
  .note-label { margin-top: 8px; margin-bottom: 20px; font-size: 0.66rem; }
  .note-body { font-size: 1.05rem; line-height: 1.55; }
  .note-signature { margin-top: 28px; padding-top: 20px; }
  .note-signature .sig-name { font-size: 1.15rem; }

  /* Services — tighter spacing */
  .services-grid { padding-top: 40px; gap: 40px; }
  .service .num { font-size: 2rem; margin-bottom: 16px; }
  .service h4 { font-size: 1.35rem; margin-bottom: 16px; padding-bottom: 14px; }
  .service p { font-size: 0.94rem; }

  /* Credentials */
  .cred .body { font-size: 1.05rem; }
  .cred .body .sub { font-size: 0.85rem; }
  .cred .n { font-size: 1.5rem; }
  .cred { padding: 22px 0; }

  /* Tagline banner */
  .tagline-banner { padding: 60px 20px; }
  .tagline-text { font-size: clamp(1.5rem, 7vw, 2.2rem); padding: 0; }
  .tagline-eyebrow { margin-bottom: 22px; font-size: 0.64rem; letter-spacing: 0.2em; }

  /* Contact section */
  .contact-section { padding: 72px 0; }
  .contact-lead { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: 24px; }
  .channel { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .channel .label { font-size: 0.62rem; letter-spacing: 0.16em; }
  .hours-card { padding: 24px 22px; }

  /* Footer */
  .footer { padding: 40px 20px 24px; }
  .footer-brand { font-size: 1.7rem; }
  .footer-logo { height: 44px; }
  .footer-tagline { font-size: 1rem; }
  .footer-tag { font-size: 0.62rem; letter-spacing: 0.14em; }
  .footer-bot { font-size: 0.6rem; letter-spacing: 0.14em; gap: 8px; padding-top: 18px; }
  .social-link { width: 38px; height: 38px; }
  .social-link svg { width: 16px; height: 16px; }
}

@media (max-width: 420px) {
  /* Extra-tight tweaks for very small phones */
  .hero { padding: 90px 18px 48px; }
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .hero-meta { grid-template-columns: 1fr; gap: 16px; }
  .practice-stats { grid-template-columns: 1fr 1fr; }
  .nav { padding: 12px 18px; }
  .nav.scrolled { padding: 10px 18px; }
}

/* ====================================================================
   HERO SLIDESHOW — Temple banner cycling through 5 images
==================================================================== */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.05) contrast(1.02);
  animation: heroCycle 144s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: opacity, transform;
}
/* 24 slides × 6s each = 144s total */
.hero-slides img:nth-child(1) { animation-delay:    0s; }
.hero-slides img:nth-child(2) { animation-delay:    6s; }
.hero-slides img:nth-child(3) { animation-delay:   12s; }
.hero-slides img:nth-child(4) { animation-delay:   18s; }
.hero-slides img:nth-child(5) { animation-delay:   24s; }
.hero-slides img:nth-child(6) { animation-delay:   30s; }
.hero-slides img:nth-child(7) { animation-delay:   36s; }
.hero-slides img:nth-child(8) { animation-delay:   42s; }
.hero-slides img:nth-child(9) { animation-delay:   48s; }
.hero-slides img:nth-child(10) { animation-delay:   54s; }
.hero-slides img:nth-child(11) { animation-delay:   60s; }
.hero-slides img:nth-child(12) { animation-delay:   66s; }
.hero-slides img:nth-child(13) { animation-delay:   72s; }
.hero-slides img:nth-child(14) { animation-delay:   78s; }
.hero-slides img:nth-child(15) { animation-delay:   84s; }
.hero-slides img:nth-child(16) { animation-delay:   90s; }
.hero-slides img:nth-child(17) { animation-delay:   96s; }
.hero-slides img:nth-child(18) { animation-delay:  102s; }
.hero-slides img:nth-child(19) { animation-delay:  108s; }
.hero-slides img:nth-child(20) { animation-delay:  114s; }
.hero-slides img:nth-child(21) { animation-delay:  120s; }
.hero-slides img:nth-child(22) { animation-delay:  126s; }
.hero-slides img:nth-child(23) { animation-delay:  132s; }
.hero-slides img:nth-child(24) { animation-delay:  138s; }

@keyframes heroCycle {
  /* one slide's visible window = 6s of the 144s loop */
  0%     { opacity: 0; transform: scale(1.04); }
  0.83%  { opacity: 1; transform: scale(1.03); }   /* fade in over ~1.2s */
  3.75%  { opacity: 1; transform: scale(1.0); }    /* hold + slow zoom out */
  4.58%  { opacity: 0; transform: scale(1.0); }    /* fade out (~1.2s crossfade) */
  100%   { opacity: 0; transform: scale(1.0); }
}

/* Keep the tag/label and gradient above the slides */
.hero-visual .hero-visual-tag,
.hero-visual::after { z-index: 2; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-slides img { animation: none; }
  .hero-slides img:nth-child(1) { opacity: 1; }
}

/* ====================================================================
   NAV SOCIAL ICONS (center)
==================================================================== */
.nav-social-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-social-link {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(26, 24, 20, 0.06);
  color: var(--ink);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-social-link:hover {
  background: var(--terracotta);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(160, 73, 42, 0.55);
}
.nav-social-link svg { width: 19px; height: 19px; stroke-width: 1.8; }

/* On scrolled (translucent cream) nav, deepen the chip slightly */
.nav.scrolled .nav-social-link { background: rgba(26, 24, 20, 0.08); }

@media (max-width: 1020px) {
  .nav-social-link { width: 36px; height: 36px; }
  .nav-social-link svg { width: 17px; height: 17px; }
}

/* Hide regular nav links a bit earlier on mid widths so the center has room */
@media (max-width: 1140px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ====================================================================
   PROJECT SECTIONS — split layout, banner first, details below
==================================================================== */

.project-section {
  padding: 120px 0 100px;
  border-top: 1px solid var(--rule);
}
.project-section:first-of-type {
  border-top: none;
  padding-top: 60px;
}
@media (max-width: 720px) {
  .project-section { padding: 72px 0; }
  .project-section:first-of-type { padding-top: 32px; }
}

/* The banner sits full-width inside its section; the section-head + meta stay in .wrap */
.project-banner {
  position: relative;
  margin-top: 40px;
  margin-bottom: 56px;
  background: var(--cream-deep);
  overflow: hidden;
}
@media (max-width: 720px) {
  .project-banner { margin-top: 24px; margin-bottom: 36px; }
}

.banner-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  aspect-ratio: 16 / 9;
}
.banner-track::-webkit-scrollbar { display: none; }

.banner-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}
.banner-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.banner-slide:hover img { transform: scale(1.02); }

/* Slide caption pill (top-left over image) */
.banner-caption {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(26, 24, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  border-radius: 2px;
  z-index: 3;
  pointer-events: none;
}
@media (max-width: 540px) {
  .banner-caption { font-size: 0.55rem; padding: 6px 10px; top: 10px; left: 10px; }
}

/* Banner controls — dot indicators + counter */
.banner-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
  z-index: 2;
}
@media (max-width: 540px) {
  .banner-controls { padding: 12px 16px; }
}

.banner-dots {
  display: flex; gap: 6px;
  pointer-events: auto;
}
.banner-dot {
  display: inline-block;
  width: 22px; height: 3px;
  background: rgba(244, 239, 230, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, width 0.3s ease;
}
.banner-dot:hover { background: rgba(244, 239, 230, 0.75); }
.banner-dot.active {
  background: var(--cream);
  width: 32px;
}

.banner-counter {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.85);
  pointer-events: none;
}
.banner-counter .total { color: rgba(244, 239, 230, 0.6); margin-left: 6px; }

/* Banner side arrows (desktop only — touchscreens use swipe) */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26, 24, 20, 0.55);
  border: 1px solid rgba(244, 239, 230, 0.25);
  color: var(--cream);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.project-banner:hover .banner-arrow { opacity: 1; }
.banner-arrow:hover { background: var(--terracotta); border-color: var(--terracotta); }
.banner-arrow.prev { left: 16px; }
.banner-arrow.next { right: 16px; }
.banner-arrow svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .banner-arrow { display: none; }   /* swipe is the gesture on mobile */
}

/* Section head adjusted slightly inside project-section: project number split from title */
.project-section .section-head h2 {
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  line-height: 1.05;
}
.project-section .section-head h2 .italic {
  color: var(--terracotta);
  font-variation-settings: 'opsz' 144, 'SOFT' 90, 'WONK' 1;
  font-style: italic;
}

/* Meta block beneath banner */
.project-section .project-meta {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  margin-top: 12px;
}
@media (max-width: 820px) {
  .project-section .project-meta { grid-template-columns: 1fr; gap: 24px; }
}

/* ====================================================================
   NAV — clean mobile layout fix
==================================================================== */
@media (max-width: 720px) {
  .nav, .nav.scrolled {
    grid-template-columns: auto 1fr auto;
    padding: 14px 20px;
  }
  .nav-links { display: none; }      /* hide the entire nav-links container on mobile */
  .nav-social-row {
    display: inline-flex;            /* keep social visible & centered on mobile */
    gap: 6px;
  }
  .nav-social-link { width: 38px; height: 38px; }
  .nav-social-link svg { width: 17px; height: 17px; stroke-width: 1.8; }
}

/* ====================================================================
   WORK GRID — two projects side-by-side
==================================================================== */
.work-section {
  padding: 120px 0;
}
@media (max-width: 720px) {
  .work-section { padding: 80px 0; }
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 56px;
  margin-top: 8px;
}
@media (max-width: 1100px) {
  .work-grid { gap: 56px 40px; }
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; gap: 80px; }
}
@media (max-width: 720px) {
  .work-grid { gap: 64px; }
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;            /* allow shrinking */
}

.project-card-head { margin-bottom: 28px; }
.project-card-head .num {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.project-card-head .num::before {
  content: ''; width: 24px; height: 1px; background: var(--terracotta);
  display: inline-block;
}
.project-card-head h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 1;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.05;
}
.project-card-head h3 .italic {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: 'opsz' 144, 'SOFT' 90, 'WONK' 1;
}

/* Banner inside a card — tighter aspect, contained width */
.project-card .project-banner {
  margin: 0 0 28px 0;
  background: var(--cream-deep);
  border-radius: 2px;
}
.project-card .banner-track {
  aspect-ratio: 16 / 11;        /* slightly less wide than 16:9 to feel substantial in a narrower column */
}
/* Smaller controls inside a narrower banner */
.project-card .banner-arrow {
  width: 38px; height: 38px;
}
.project-card .banner-arrow svg { width: 15px; height: 15px; }
.project-card .banner-arrow.prev { left: 12px; }
.project-card .banner-arrow.next { right: 12px; }
.project-card .banner-controls { padding: 12px 16px; }
.project-card .banner-dot { width: 18px; }
.project-card .banner-dot.active { width: 26px; }
.project-card .banner-counter { font-size: 0.62rem; letter-spacing: 0.16em; }
.project-card .banner-caption { font-size: 0.58rem; padding: 6px 12px; top: 12px; left: 12px; }

/* Card meta block — specs grid + description + link */
.project-card-meta { display: block; }
.project-card-meta .project-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  margin-bottom: 24px;
}
@media (max-width: 540px) {
  .project-card-meta .project-specs { grid-template-columns: 1fr; }
}
.project-card-meta .spec-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  font-size: 0.84rem;
}
.project-card-meta .spec-row .k {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.project-card-meta .spec-row .v {
  color: var(--ink);
  font-weight: 500;
  text-align: left;
}
.project-card-meta .project-desc {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.project-card-meta .project-link {
  margin-top: 24px;
}

/* Adjust section-head bottom margin in work section */
.work-section .section-head { margin-bottom: 56px; }
@media (max-width: 720px) {
  .work-section .section-head { margin-bottom: 32px; }
}

/* Old .project-section is now dead code but kept for any future use — silence its first-of-type */
.work-section + .project-section,
.project-section { display: none; }

/* ─── ALL-PROJECTS PAGE ─── */
.projects-hero {
  padding: 180px 0 60px;
  border-bottom: 1px solid var(--rule);
}
.projects-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
}
.projects-hero-sub {
  max-width: 60ch;
  margin: 26px 0 0;
  color: var(--ink-mute);
  font-size: 1.02rem;
  line-height: 1.7;
}
.projects-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.projects-jump a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.projects-jump a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.projects-jump a .c {
  font-size: 0.66rem;
  color: var(--terracotta);
  background: #A0492A14;
  padding: 1px 7px;
  border-radius: 100px;
}
.projects-jump a:hover .c { color: var(--terracotta-soft); }

.projects-cat { padding: 90px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.projects-cat .section-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  max-width: 30ch;
}

.projects-foot { padding: 70px 0 120px; }

@media (max-width: 720px) {
  .projects-hero { padding: 140px 0 44px; }
  .projects-cat { padding: 64px 0; }
}
