/* Terra Studio PHP — matched to the React Architectural Bento source */

:root {
  --paper: #faf8f5;
  --sand: #f0ebe3;
  --clay: #c9b99a;
  --earth: #8b7355;

  --bg: var(--paper);
  --surface: var(--sand);
  --card: #ffffff;
  --fg: var(--earth);
  --muted: #a99a80;
  --accent: var(--clay);
  --hairline: rgba(139, 115, 85, 0.14);
  --input: rgba(139, 115, 85, 0.22);
  --radius: 2px;
  --maxw: 1400px;
}

html.dark {
  --paper: #14110d;
  --sand: #1c1815;
  --clay: #c9b99a;
  --earth: #f0ebe3;

  --bg: #14110d;
  --surface: #1c1815;
  --card: #1a1613;
  --fg: #f0ebe3;
  --muted: #8b7d69;
  --accent: #c9b99a;
  --hairline: rgba(240, 235, 227, 0.10);
  --input: rgba(240, 235, 227, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color: var(--fg); }
[hidden] { display: none !important; }
body {
  font-family: 'Urbanist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s ease, color .4s ease;
}
main { min-height: 50vh; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: 'Epilogue', ui-sans-serif, system-ui, sans-serif;
  color: var(--fg);
  font-weight: 300;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.75rem, 8vw, 7rem); line-height: .9; }
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1; }
h3 { font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.1; }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
p { margin: 0; }
em, i { color: var(--accent); font-style: italic; font-weight: 300; }
::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding-left: 2.5rem; padding-right: 2.5rem; }
}

.mono-label {
  display: inline-block;
  font-family: 'Urbanist', ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.muted { color: color-mix(in oklab, var(--fg) 65%, transparent); }
.lead { color: color-mix(in oklab, var(--fg) 75%, transparent); font-size: 1.1rem; line-height: 1.7; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  max-width: var(--maxw);
  height: 64px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .header-inner { height: 80px; padding: 0 2.5rem; }
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .375rem;
  font-family: 'Epilogue', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@media (min-width: 1024px) { .brand { font-size: 1.5rem; } }
.brand-1 { color: var(--fg); font-weight: 700; }
.brand-2 { color: var(--accent); font-weight: 300; }
.main-nav { display: none; align-items: center; gap: 2.5rem; }
.main-nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--fg) 60%, transparent);
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--fg); }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.header-cta { display: flex; align-items: center; gap: .75rem; }

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  height: 36px;
  padding: 0 .5rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  transition: border-color .2s ease;
}
.theme-toggle:hover { border-color: color-mix(in oklab, var(--fg) 40%, transparent); }
.theme-toggle span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: color-mix(in oklab, var(--fg) 50%, transparent);
  transition: background .2s ease, color .2s ease;
}
html:not(.dark) .theme-toggle .sun,
html.dark .theme-toggle .moon { background: var(--fg); color: var(--bg); }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: -.375rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-size: 1.05rem;
  line-height: 1;
}
.menu-toggle .mt-close { display: none; }
.menu-toggle[aria-expanded="true"] .mt-open { display: none; }
.menu-toggle[aria-expanded="true"] .mt-close { display: inline; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 42px;
  padding: .75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.header-cta .btn { display: none; }
@media (min-width: 768px) { .header-cta .btn { display: inline-flex; } }

.mobile-nav {
  position: static;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  animation: mnav-in .2s ease;
}
@keyframes mnav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: .75rem 0;
  border-bottom: 1px solid var(--hairline);
  font-family: 'Epilogue', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.mobile-nav a::after { content: "→"; font-family: 'Urbanist', sans-serif; font-size: 11px; letter-spacing: .22em; color: var(--accent); }
.mobile-nav .btn { margin-top: .5rem; width: 100%; min-height: 52px; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* Shared sections */
.section-pad { padding: 5rem 0; }
@media (min-width: 1024px) { .section-pad { padding: 7rem 0; } }
.react-section-head,
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .react-section-head,
  .section-head { flex-direction: row; align-items: flex-end; }
}
.section-head .mono-label { margin-bottom: 1.25rem; }
.section-head h2 { letter-spacing: -0.04em; }
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: flex-start;
  padding-bottom: .25rem;
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, transparent);
  color: var(--fg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease;
}
.link-underline:hover { color: var(--accent); border-color: var(--accent); }

/* Homepage hero — no oversized image, same as React source */
.react-home-hero { padding: 5rem 0 4rem; }
@media (min-width: 1024px) { .react-home-hero { padding: 8rem 0 6rem; } }
.hero-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: end;
}
@media (min-width: 1024px) { .hero-intro-grid { grid-template-columns: 8fr 4fr; } }
.hero-title .mono-label { margin-bottom: 2rem; }
.hero-title h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: .88;
  letter-spacing: -0.05em;
  font-weight: 300;
}
.hero-copy { padding-bottom: .25rem; }
.hero-copy p { max-width: 24rem; color: color-mix(in oklab, var(--fg) 80%, transparent); font-size: 1.125rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.studio-meta-strip {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}
@media (min-width: 768px) { .studio-meta-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .studio-meta-strip { margin-top: 6rem; } }
.studio-meta-value {
  font-family: 'Epilogue', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.04em;
}
.studio-meta-strip .mono-label { margin-top: .75rem; }

/* Home bento */
.react-bento-services,
.bento-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .react-bento-services,
  .bento-services { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 360px); }
}
.bento-tile {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 2.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
@media (min-width: 1024px) { .bento-tile { padding: 2.5rem; } .bento-tile.feature { padding: 3.5rem; } }
@media (min-width: 768px) { .bento-tile.feature { grid-column: span 2; grid-row: span 2; } .bento-tile.wide { grid-column: span 2; } }
.bento-tile .mono-label { display: block; margin-bottom: 1.25rem; }
.bento-tile h3 { font-size: clamp(1.5rem, 3vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; }
.bento-tile p { max-width: 28rem; color: color-mix(in oklab, var(--fg) 70%, transparent); line-height: 1.6; }
.bento-tile .items { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1rem; }
.bento-tile .items li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: color-mix(in oklab, var(--fg) 70%, transparent); }
.bento-tile .items li::before { content: "◆"; color: var(--accent); font-size: 9px; }
.bento-tile.feature::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  transition: transform .7s ease;
}
.bento-tile.feature:hover::after { transform: scale(1.1); }
.tile-line { width: 3rem; height: 1px; background: var(--fg); transition: width .5s ease; }
.bento-tile.feature:hover .tile-line { width: 6rem; }
.bento-tile.card { background: var(--card); border: 1px solid var(--hairline); transition: box-shadow .3s ease; }
.bento-tile.card:hover { box-shadow: 0 18px 50px color-mix(in oklab, var(--earth) 10%, transparent); }
.bento-tile.dark { background: var(--fg); color: var(--bg); }
.bento-tile.dark h3 { color: var(--bg); }
.bento-tile.dark .mono-label, .bento-tile.dark .bento-arrow { color: var(--accent); }
.bento-tile.accent { background: var(--accent); color: #fff; }
.bento-tile.accent h3 { color: #fff; }
.bento-tile.accent .mono-label { color: rgba(255,255,255,.72); }
.bento-arrow { margin-top: 1rem; font-size: 1.35rem; line-height: 1; }

/* Ticker */
.ticker {
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.ticker-track { display: flex; width: max-content; white-space: nowrap; animation: ticker 90s linear infinite; }
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--fg) 80%, transparent);
}
.ticker span::after { content: "◆"; color: var(--accent); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Portfolio cards */
.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
.project-card { display: block; }
.project-card .thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.project-card:hover .thumb img { transform: scale(1.03); }
.project-card .badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  padding: .5rem 1rem;
  color: var(--fg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.project-card .meta { margin-top: 1.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.project-card h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.15; }
.project-card .loc { display: block; margin-top: .5rem; font-size: .9rem; color: var(--accent); font-weight: 500; }
.project-card .arrow { font-size: 1.5rem; color: color-mix(in oklab, var(--fg) 60%, transparent); transition: color .3s ease, transform .3s ease; }
.project-card:hover .arrow { color: var(--accent); transform: translate(4px, -4px); }

/* Testimonials */
.testimonials-band { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.testimonials { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.testimonial {
  min-height: 260px;
  margin: 0;
  padding: 2.5rem;
  background: var(--bg);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}
.testimonial.dark { background: var(--fg); color: var(--bg); border-color: transparent; }
.testimonial.dark blockquote { color: var(--bg); }
.testimonial.dark .mono-label { color: var(--accent); }
.testimonial blockquote { margin: 0; font-family: 'Epilogue', sans-serif; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.35; font-style: italic; font-weight: 300; letter-spacing: -0.02em; }
.testimonial .cite { display: flex; flex-direction: column; gap: .35rem; }
.testimonial .cite b { font-size: .9rem; font-weight: 600; }

/* Regions + journal home */
.regions-journal-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .regions-journal-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.regions-panel {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
}
@media (min-width: 1024px) { .regions-panel { grid-column: span 7; padding: 3.5rem; } }
.regions-panel .mono-label { margin-bottom: 1.25rem; }
.regions-panel h2 { margin-bottom: 2.5rem; }
.regions-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hairline); }
.regions-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hairline); }
.regions-list .r-name { display: flex; align-items: baseline; gap: 1.5rem; }
.regions-list .idx { width: 2rem; font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--accent); }
.regions-list .r-name b { font-family: 'Epilogue', sans-serif; font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 300; }
.regions-list .cities { display: none; font-size: .875rem; color: color-mix(in oklab, var(--fg) 60%, transparent); }
@media (min-width: 768px) { .regions-list .cities { display: inline; } }
.regions-link { margin-top: 2.5rem; }
.cta-panel {
  min-height: 380px;
  background: var(--fg);
  color: var(--bg);
  padding: 2.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .cta-panel { grid-column: span 5; padding: 3.5rem; } }
.cta-panel h3 { color: var(--bg); font-size: clamp(2rem, 3.5vw, 2.5rem); }
.cta-panel p { margin-top: 1.5rem; max-width: 24rem; color: color-mix(in oklab, var(--bg) 75%, transparent); line-height: 1.65; }
.cta-panel .mono-label { color: var(--accent); }
.btn-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid color-mix(in oklab, var(--bg) 25%, transparent); padding: 1rem 1.5rem; color: var(--bg); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; transition: background .25s ease, border-color .25s ease; }
.btn-cta:hover { background: var(--accent); border-color: var(--accent); }
.journal-mini { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: .25rem; }
@media (min-width: 768px) { .journal-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .journal-mini { grid-column: span 12; } }
.journal-card { min-height: 240px; padding: 2rem; background: var(--bg); border: 1px solid var(--hairline); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; transition: border-color .25s ease; }
.journal-card:hover { border-color: color-mix(in oklab, var(--fg) 40%, transparent); }
.journal-card .top, .journal-card .bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.journal-card .top { margin-bottom: 1.25rem; }
.journal-card h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 300; }
.journal-card .date { font-size: .8rem; color: color-mix(in oklab, var(--fg) 60%, transparent); }
.journal-card .arrow { color: color-mix(in oklab, var(--fg) 60%, transparent); transition: color .25s ease, transform .25s ease; }
.journal-card:hover .arrow { color: var(--accent); transform: translate(2px, -2px); }

/* Page hero from React PageHero */
.page-hero { border-bottom: 1px solid var(--hairline); }
.page-hero .container { padding-top: 6rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .page-hero .container { padding-top: 8rem; padding-bottom: 6rem; } }
.page-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: end; }
@media (min-width: 1024px) { .page-hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } .page-hero-grid > div { grid-column: span 8; } .page-hero-grid > p { grid-column: span 4; } }
.page-hero .mono-label { margin-bottom: 1.5rem; }
.page-hero h1 { max-width: 12ch; font-size: clamp(2.75rem, 8vw, 7rem); letter-spacing: -0.05em; }
.page-hero p { max-width: 24rem; padding-bottom: .25rem; color: color-mix(in oklab, var(--fg) 75%, transparent); font-size: 1.125rem; line-height: 1.65; }

/* Services page */
.discipline-list { border-bottom: 1px solid var(--hairline); }
.discipline-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--hairline);
}
.discipline-row:last-child { border-bottom: 0; }
@media (min-width: 1024px) { .discipline-row { grid-template-columns: repeat(12, 1fr); gap: 3.5rem; padding: 5rem 0; } }
.discipline-main { min-width: 0; }
@media (min-width: 1024px) { .discipline-main { grid-column: span 5; } .included-panel { grid-column: 7 / span 6; } }
.discipline-label { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.discipline-label > span { font-family: 'Epilogue', sans-serif; font-size: 2.25rem; font-style: italic; font-weight: 300; color: color-mix(in oklab, var(--fg) 40%, transparent); letter-spacing: -0.03em; }
.discipline-main h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; }
.discipline-main .tagline { margin-top: .75rem; font-family: 'Epilogue', sans-serif; font-style: italic; font-size: 1.125rem; color: color-mix(in oklab, var(--fg) 70%, transparent); }
.discipline-main .description { margin-top: 1.25rem; max-width: 40rem; color: color-mix(in oklab, var(--fg) 75%, transparent); line-height: 1.7; }
.discipline-main .link-underline { margin-top: 1.5rem; }
.included-panel { border: 1px solid var(--hairline); background: var(--surface); padding: 1.5rem; }
@media (min-width: 1024px) { .included-panel { padding: 2rem; } }
.included-panel ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .75rem; }
.included-panel li { display: flex; align-items: flex-start; gap: .75rem; color: color-mix(in oklab, var(--fg) 85%, transparent); }
.included-panel li span { margin-top: .15rem; color: color-mix(in oklab, var(--fg) 50%, transparent); }
.ready-band { background: var(--surface); text-align: center; }
.ready-band .container { padding-top: 4rem; padding-bottom: 4rem; }
.ready-band h3 { font-size: clamp(2rem, 4vw, 2.5rem); font-style: italic; }
.ready-band .btn { margin-top: 1.5rem; }

/* Portfolio page */
.portfolio-hero { border-bottom: 1px solid var(--hairline); }
.portfolio-hero .container { padding-top: 3.5rem; padding-bottom: 2.5rem; }
@media (min-width: 1024px) { .portfolio-hero .container { padding-top: 5rem; padding-bottom: 2.5rem; } }
.portfolio-hero-grid { display: grid; gap: 2rem; align-items: end; margin-top: 1.5rem; }
@media (min-width: 1024px) { .portfolio-hero-grid { grid-template-columns: 1fr auto; } }
.portfolio-hero h1 { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -0.04em; }
.portfolio-hero p { max-width: 24rem; color: color-mix(in oklab, var(--fg) 70%, transparent); line-height: 1.6; }
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: .65rem .85rem;
  border: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.filter-pill:hover { border-color: color-mix(in oklab, var(--fg) 40%, transparent); }
.filter-pill.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.portfolio-list-section { padding: 3.5rem 0 5rem; }
@media (min-width: 1024px) { .portfolio-list-section { padding: 5rem 0 6rem; } }
.portfolio-masonry { display: grid; grid-template-columns: 1fr; gap: 3rem 1rem; }
@media (min-width: 640px) { .portfolio-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .portfolio-masonry { grid-template-columns: repeat(4, minmax(0, 1fr)); } .portfolio-mini-card.offset-1 { margin-top: 1.5rem; } .portfolio-mini-card.offset-2 { margin-top: 3rem; } .portfolio-mini-card.offset-3 { margin-top: 1rem; } }
.portfolio-mini-card { display: flex; flex-direction: column; }
.portfolio-mini-card .thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); }
.portfolio-mini-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.portfolio-mini-card:hover .thumb img { transform: scale(1.03); }
.ba-badge { position: absolute; top: .625rem; right: .625rem; background: color-mix(in oklab, var(--bg) 90%, transparent); border: 1px solid var(--hairline); backdrop-filter: blur(8px); padding: .35rem .5rem; font-size: 10px; font-weight: 600; letter-spacing: .22em; color: var(--fg); }
.portfolio-card-meta { margin-top: .75rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.portfolio-card-meta h3 { margin-top: .4rem; font-size: 1rem; line-height: 1.15; }
.portfolio-card-meta p { margin-top: .125rem; font-size: .75rem; color: var(--muted); }
.portfolio-card-meta > span { color: color-mix(in oklab, var(--fg) 50%, transparent); transition: color .2s ease; }
.portfolio-mini-card:hover .portfolio-card-meta > span { color: var(--fg); }

/* Regions page */
.regions-page-list { border-bottom: 1px solid var(--hairline); }
.region-cards-grid { padding-top: 3.5rem; padding-bottom: 5rem; display: grid; gap: 2.5rem 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .region-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .region-cards-grid { padding-top: 5rem; padding-bottom: 6rem; } }
.region-card { display: flex; flex-direction: column; }
.region-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); }
.region-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.region-card:hover .thumb img { transform: scale(1.03); }
.region-card-meta { margin-top: 1.25rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.region-card h2 { margin-top: .5rem; font-size: clamp(2rem, 4vw, 2.5rem); font-style: italic; }
.region-card p { margin-top: .5rem; color: color-mix(in oklab, var(--fg) 70%, transparent); line-height: 1.6; }
.region-card ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1rem; }
.region-card li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: color-mix(in oklab, var(--fg) 80%, transparent); }
.region-card li span { color: color-mix(in oklab, var(--fg) 40%, transparent); font-size: 9px; }
.region-card .link-underline { margin-top: 1.5rem; }

/* Blog page */
.featured-post-section, .all-posts-section { border-bottom: 1px solid var(--hairline); }
.featured-post-section .container, .all-posts-section .container { padding-top: 3.5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .featured-post-section .container, .all-posts-section .container { padding-top: 5rem; padding-bottom: 5rem; } }
.featured-label, .all-posts-label { margin-bottom: 2rem; }
.featured-post { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .featured-post { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem; } .featured-post .thumb { grid-column: span 7; } .featured-post > div:last-child { grid-column: span 5; } }
.featured-post .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); }
.featured-post .thumb img, .post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.featured-post:hover .thumb img, .post-card:hover .thumb img { transform: scale(1.03); }
.featured-post h2 { margin-top: .75rem; font-size: clamp(2rem, 4vw, 3rem); font-style: italic; line-height: 1.05; transition: color .2s ease; }
.featured-post:hover h2, .post-card:hover h3 { color: color-mix(in oklab, var(--fg) 70%, transparent); }
.featured-post p { margin-top: 1.25rem; color: color-mix(in oklab, var(--fg) 70%, transparent); line-height: 1.7; }
.featured-post .link-underline { margin-top: 1.5rem; }
.post-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 1rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .post-card.offset-1 { margin-top: 2rem; } }
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); margin-bottom: 1rem; }
.post-card h3 { margin-top: .5rem; font-size: 1.25rem; line-height: 1.35; transition: color .2s ease; }
.post-card p { margin-top: .5rem; color: color-mix(in oklab, var(--fg) 70%, transparent); font-size: .9rem; line-height: 1.6; }
.post-card .mono-label:last-child { margin-top: .75rem; }

/* Contact page */
.contact-section { border-bottom: 1px solid var(--hairline); }
.contact-layout { padding-top: 3.5rem; padding-bottom: 5rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-layout { padding-top: 5rem; padding-bottom: 5rem; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; } .contact-aside { grid-column: span 4; } .contact-form-wrap { grid-column: span 8; } }
.contact-aside { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-aside ul, .contact-aside ol { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; color: color-mix(in oklab, var(--fg) 85%, transparent); }
.contact-aside li { line-height: 1.5; }
.contact-aside li:nth-child(n+3) { font-size: .9rem; color: var(--muted); }
.next-steps { border-top: 1px solid var(--hairline); padding-top: 2rem; }
.next-steps ol { gap: .75rem; font-size: .9rem; color: color-mix(in oklab, var(--fg) 80%, transparent); }
.next-steps li { display: flex; gap: .75rem; }
.next-steps span { font-family: 'Epilogue', sans-serif; font-style: italic; color: color-mix(in oklab, var(--fg) 50%, transparent); }
.quote-form { border: 1px solid var(--hairline); background: var(--bg); padding: 1.5rem; display: grid; gap: 2rem; }
@media (min-width: 1024px) { .quote-form { padding: 2.5rem; } }
.form-fields-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .form-fields-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote-form label { display: block; }
.quote-form input:not([type="checkbox"]):not([type="radio"]), .quote-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--fg);
  padding: .5rem 0;
  outline: none;
  border-radius: 0;
  transition: border-color .2s ease;
}
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--fg); }
.quote-form textarea { min-height: 140px; resize: vertical; border: 1px solid var(--hairline); padding: .85rem 1rem; }
.block-label { display: block; margin-bottom: .75rem; }
.choice-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-cloud input, .budget-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-cloud label span, .budget-grid label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: .65rem .85rem;
  border: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.choice-cloud input:checked + span, .budget-grid input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.budget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 768px) { .budget-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.budget-grid label span { width: 100%; min-height: 44px; text-align: center; }
.form-error { border: 1px solid #b4432b; background: color-mix(in oklab, #b4432b 15%, var(--bg)); color: #b4432b; padding: 1rem; }
.thank-you-panel { border: 1px solid var(--hairline); background: var(--surface); padding: 2.5rem; text-align: center; }
@media (min-width: 1024px) { .thank-you-panel { padding: 3.5rem; } }
.checkmark { width: 3rem; height: 3rem; margin: 0 auto; display: grid; place-items: center; border: 1px solid var(--hairline); }
.thank-you-panel h2 { margin-top: 1.5rem; font-size: 2rem; font-style: italic; }
.thank-you-panel p { max-width: 28rem; margin: 1rem auto 0; color: color-mix(in oklab, var(--fg) 75%, transparent); }

/* Before/after + project detail */
.project-hero-detail {
  position: relative;
  min-height: 80vh;
  padding-top: 6rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.project-hero-detail > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), color-mix(in oklab, var(--bg) 60%, transparent), color-mix(in oklab, var(--bg) 20%, transparent)); }
.project-hero-detail .container { position: relative; width: 100%; padding-top: 4rem; padding-bottom: 4rem; }
.project-back { color: color-mix(in oklab, var(--fg) 70%, transparent); }
.project-hero-content { margin-top: 2rem; display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 1024px) { .project-hero-content { grid-template-columns: 1.4fr 1fr; } }
.project-hero-content h1 { font-size: clamp(2.5rem, 8vw, 7rem); line-height: .9; letter-spacing: -0.04em; }
.project-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.project-info-grid > div { border-top: 1px solid var(--hairline); padding-top: .75rem; }
.project-info-grid b { display: block; margin-top: .25rem; font-family: 'Epilogue', sans-serif; font-size: 1.125rem; font-weight: 300; }
.project-section { padding: 5rem 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 1024px) { .project-section { padding: 6rem 0; } }
.project-section h2 { margin-top: .75rem; font-size: clamp(2.5rem, 5vw, 3.5rem); }
.project-section-intro { margin-top: .75rem; max-width: 36rem; color: color-mix(in oklab, var(--fg) 60%, transparent); }
.ba-slider { position: relative; user-select: none; overflow: hidden; aspect-ratio: 16 / 10; background: #000; touch-action: none; cursor: ew-resize; margin-top: 2.5rem; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .ba-after { clip-path: inset(0 0 0 50%); will-change: clip-path; }
.ba-slider .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.ba-slider .handle::after { content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: #000; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.ba-slider .tag { position: absolute; top: 1rem; padding: .4rem .75rem; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; pointer-events: none; font-weight: 600; }
.ba-slider .tag.before { left: 1rem; }
.ba-slider .tag.after { right: 1rem; }
.project-body { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 900px) { .project-body { grid-template-columns: 1.4fr 1fr; } .project-body aside { position: sticky; top: 7rem; align-self: start; } }
.project-quote { margin-top: 1.5rem; max-width: 42rem; font-family: 'Epilogue', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.35; font-style: italic; color: color-mix(in oklab, var(--fg) 85%, transparent); }
.project-copy { margin-top: 2rem; max-width: 42rem; color: color-mix(in oklab, var(--fg) 70%, transparent); line-height: 1.7; }
.scope-list { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.scope-list li { padding: .85rem 0; border-bottom: 1px solid var(--hairline); display: flex; gap: 1rem; align-items: baseline; }
.scope-list li:last-child { border-bottom: 0; }
.scope-list li span { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .22em; }
.project-gallery { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .project-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project-gallery-item { margin: 0; }
.project-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); border: 1px solid var(--hairline); transition: transform .5s ease; }
.project-gallery-item:hover img { transform: scale(1.02); }
.project-gallery-item figcaption { margin-top: .75rem; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.project-next { background: var(--surface); padding: 5rem 0; }
.project-next .container { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 1024px) { .project-next .container { grid-template-columns: 1.4fr 1fr; } }
.project-next h2 { margin-top: .75rem; font-size: clamp(2.5rem, 5vw, 3.5rem); }
.project-next-actions { display: flex; flex-direction: column; gap: .75rem; }
.project-next-actions .btn { min-height: 56px; }

/* Journal detail */
.post-detail { border-bottom: 1px solid var(--hairline); }
.post-detail .container { max-width: 920px; padding-top: 5rem; padding-bottom: 6rem; }
.post-detail-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 2rem 0 1.25rem; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.post-detail h1 { font-size: clamp(2.75rem, 7vw, 6rem); letter-spacing: -0.05em; }
.post-detail-image { aspect-ratio: 16 / 9; margin: 3rem 0; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); }
.post-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.post-detail-excerpt { font-family: 'Epilogue', sans-serif; font-size: clamp(1.25rem, 2.5vw, 1.75rem); line-height: 1.45; font-style: italic; color: color-mix(in oklab, var(--fg) 75%, transparent); }
.post-content { margin-top: 2rem; display: grid; gap: 1rem; color: color-mix(in oklab, var(--fg) 78%, transparent); font-size: 1.05rem; line-height: 1.75; }
.post-content a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--hairline); padding: 6rem 0 2.5rem; }
@media (min-width: 1024px) { .site-footer { padding-top: 8rem; } }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-inner { padding: 0 2.5rem; gap: 3rem; } }
.footer-col { display: flex; flex-direction: column; gap: .75rem; }
.footer-brand-col { max-width: 34rem; }
.footer-col .brand { font-size: 1.5rem; margin-bottom: .75rem; }
.footer-col p { max-width: 28rem; color: color-mix(in oklab, var(--fg) 70%, transparent); line-height: 1.65; }
.footer-col h5 { margin: 0 0 1.25rem; font-family: 'Urbanist', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.footer-col a, .footer-col span { color: color-mix(in oklab, var(--fg) 75%, transparent); font-size: .9rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  color: color-mix(in oklab, var(--accent) 80%, transparent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; } }
@media (min-width: 1024px) { .footer-bottom { padding-left: 2.5rem; padding-right: 2.5rem; } }

/* Small screens */
@media (max-width: 767px) {
  h1 { overflow-wrap: normal; word-break: normal; }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-title h1 { font-size: clamp(3.15rem, 18vw, 5.25rem); }
  .page-hero .container { padding-top: 4.5rem; padding-bottom: 3.5rem; }
  .page-hero h1 { font-size: clamp(2.85rem, 14vw, 4.75rem); }
  .section-pad { padding: 4rem 0; }
  .bento-tile, .regions-panel, .cta-panel, .testimonial, .journal-card { padding: 1.5rem; }
  .bento-tile .items { grid-template-columns: 1fr; }
  .regions-list li { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .regions-list .cities { display: inline; font-size: .8rem; }
  .filter-pill, .choice-cloud label span, .budget-grid label span { letter-spacing: .16em; }
  .header-inner { padding: 0 1rem; gap: .75rem; }
  .brand { font-size: 1.125rem; }
  .theme-toggle { height: 34px; padding: 0 .35rem; }
  .theme-toggle span { width: 22px; height: 22px; font-size: 12px; }
  .header-cta { gap: .5rem; }
  .studio-meta-strip { gap: 1.5rem 1rem; }
  .studio-meta-value { font-size: 2rem; }
  .project-hero-detail { min-height: 60vh; padding-top: 4rem; }
  .project-info-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-section { padding: 4rem 0; }
  .footer-inner { gap: 2.5rem; padding: 0 1.25rem; }
  .footer-bottom { padding: 1.5rem 1.25rem 0; }
}
@media (max-width: 380px) {
  .brand { font-size: 1rem; }
  .theme-toggle { display: none; }
}
