/* ==========================================================================
   Infinitive Design Studio — global styles
   Tokens first: swap these to re-brand the whole site.
   ========================================================================== */
:root {
  /* Palette: warm neutrals + Infinitive's own navy (#20303c) and brown (#7d5243) from the original site */
  --ink: #171614;
  --ink-2: #2a2723;
  --muted: #6e665d;
  --taupe: #8a8177;
  --line: rgba(23, 22, 20, 0.12);
  --paper: #faf8f4;
  --cream: #f4f1eb;
  --sand: #ebe8e2;
  --night: #20303c;
  --night-2: #273a48;
  --night-line: rgba(243, 242, 240, 0.09);
  --on-night: #f3f2f0;
  --on-night-muted: rgba(243, 242, 240, 0.62);
  --accent: #7d5243;       /* brand brown — text/buttons on light */
  --accent-soft: #d6b29e;  /* light clay — accents on dark */
  --success: #4f7a52;

  /* Type */
  --font-display: "EB Garamond", Georgia, serif;
  --font-sans: "Jost", "Futura", "Century Gothic", system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(2.75rem, 1.6rem + 4.6vw, 5.75rem);
  --fs-h2: clamp(2.1rem, 1.4rem + 2.6vw, 3.75rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.72rem;

  /* Layout */
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 3rem);
  --maxw: 1360px;
  --radius: 4px;
  --radius-lg: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 30px 60px -30px rgba(23, 22, 20, 0.35);
}

/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); position: relative; }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--night { background: var(--night); color: var(--on-night); }

/* Architectural grid lines (PHI Design motif) */
.gridlines { position: absolute; inset: 0; pointer-events: none; display: flex; justify-content: space-between; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.gridlines span { width: 1px; background: var(--line); }
.section--night .gridlines span, .gridlines--night span { background: var(--night-line); }
.section > .container { position: relative; }

/* Type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--night .eyebrow { color: var(--accent-soft); }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.display em, .h2 em { font-style: italic; color: var(--accent); }
.section--night .display em, .section--night .h2 em, .immersive .h2 em { color: var(--accent-soft); }
.h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 36rem; }
.section--night .lead { color: var(--on-night-muted); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }

/* Buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { --bg: var(--accent); --bd: var(--accent); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: rgba(23,22,20,.35); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--light { --bg: var(--on-night); --fg: var(--ink); --bd: var(--on-night); }
.btn--light:hover { --bg: var(--accent-soft); --bd: var(--accent-soft); }
.btn--ghost-light { --bg: transparent; --fg: var(--on-night); --bd: rgba(243,242,240,.35); }
.btn--ghost-light:hover { --bg: var(--on-night); --fg: var(--ink); }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .74rem; }
.link-arrow { display: inline-flex; gap: .5rem; align-items: center; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: .25rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
/* Above the fold: CSS-only entrance so the hero never waits on JS */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 1s var(--ease) both; }
.hero .reveal[data-delay="1"] { animation-delay: .12s; }
.hero .reveal[data-delay="2"] { animation-delay: .24s; }
.hero .reveal[data-delay="3"] { animation-delay: .36s; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
}
.site-header.is-solid { background: rgba(250, 248, 244, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; line-height: 1; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__logo { height: 50px; width: auto; }
.brand__logo--light, .menu-open .site-header .brand__logo--dark { display: none; }
.menu-open .site-header .brand__logo--light, .site-footer .brand__logo--light { display: block; }
.site-footer .brand__logo { height: 64px; }
.brand__name { display: grid; gap: .2rem; }
.brand__name strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: .04em; }
.brand__name small { font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--taupe); }
.nav { display: none; }
.nav ul { display: flex; gap: 2rem; }
.nav a { font-size: .82rem; font-weight: 500; letter-spacing: .04em; position: relative; padding-block: .4rem; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { right: 0; }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-cta .btn { display: none; }
.header-phone { display: none; font-size: .82rem; font-weight: 600; }
.menu-toggle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }
@media (min-width: 1100px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-cta .btn { display: inline-flex; }
}
@media (min-width: 1280px) { .header-phone { display: inline; } }

.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--night); color: var(--on-night);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem; display: flex; flex-direction: column; gap: 2rem;
  transform: translateY(-100%); transition: transform .6s var(--ease); visibility: hidden;
}
.menu-open .drawer { transform: none; visibility: visible; }
.menu-open .site-header { color: var(--on-night); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .brand__name small { color: var(--on-night-muted); }
.menu-open .menu-toggle { border-color: var(--night-line); }
.drawer ul { display: grid; gap: .4rem; }
.drawer a { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem); }
.drawer__foot { margin-top: auto; display: grid; gap: 1rem; color: var(--on-night-muted); font-size: var(--fs-small); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(1.5rem, 1rem + 3vw, 3.5rem)); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); background: var(--cream); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); } }
.hero__copy { display: grid; gap: 1.6rem; position: relative; z-index: 2; }
.hero__title { font-family: var(--font-display); font-size: var(--fs-hero); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__sub { font-size: var(--fs-lead); color: var(--muted); max-width: 33rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.trust-item { display: grid; gap: .1rem; }
.trust-item strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.trust-item span { font-size: .78rem; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: .1em; font-size: .9rem; }

.hero__media { position: relative; }
.hero__frame { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); box-shadow: var(--shadow); }
@media (min-width: 1000px) { .hero__frame { aspect-ratio: auto; height: clamp(480px, calc(100vh - var(--header-h) - 6rem), 760px); margin-left: 3rem; } }
.hero__slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 6s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__word {
  position: absolute; right: 1.5rem; bottom: 1.25rem; z-index: 2; color: #fff; text-align: right;
  font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1;
}
.hero__word span { display: inline-block; transition: opacity .6s, transform .6s var(--ease); }
.hero__word.is-swapping span { opacity: 0; transform: translateY(14px); }
/* Lemon-style word index */
.hero__index { position: absolute; right: 1.25rem; top: 1.25rem; z-index: 2; display: grid; gap: .2rem; text-align: right; }
.hero__index button { background: none; border: 0; padding: .15rem 0; color: rgba(255,255,255,.62); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; transition: color .3s; }
.hero__index button[aria-current="true"] { color: #fff; }
.hero__index button[aria-current="true"]::before { content: "— "; }
/* Founder card overlapping the hero image */
.founder-card {
  position: relative; z-index: 3; margin: -3.5rem 1rem 0 auto; width: min(320px, 88%);
  display: flex; gap: 1rem; align-items: center; background: var(--paper); padding: .9rem 1.1rem .9rem .9rem;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
@media (min-width: 1000px) { .founder-card { position: absolute; left: 0; bottom: 2.5rem; margin: 0; } }
.founder-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.founder-card p { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.founder-card strong { display: block; font-size: .92rem; color: var(--ink); }
.founder-card q { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.02rem; color: var(--ink-2); margin-top: .3rem; quotes: "“" "”"; }

/* ==========================================================================
   Press strip
   ========================================================================== */
.press { background: var(--paper); border-block: 1px solid var(--line); padding-block: 1.6rem; overflow: hidden; }
.press .container { display: flex; align-items: center; gap: 2.5rem; }
.press__label { flex: none; font-size: var(--fs-eyebrow); letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 4rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: .06em; color: rgba(23,22,20,.42); white-space: nowrap; }
.marquee__track li img { height: 30px; width: auto; opacity: .55; filter: grayscale(1); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 700px) { .press__label { display: none; } }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: grid; gap: .4rem; padding-left: 1.2rem; border-left: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2.4vw, 4.2rem); line-height: 1; font-weight: 500; }
.stat__num sup { font-size: .45em; color: var(--accent); vertical-align: super; }
.stat__label { font-size: var(--fs-small); color: var(--muted); }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .6rem 1.1rem;
  font-size: .8rem; font-weight: 500; letter-spacing: .03em; transition: all .3s var(--ease); display: inline-flex; align-items: center; gap: .5rem;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .count { font-size: .7rem; opacity: .6; }
.portfolio-grid { display: grid; gap: clamp(1rem, .5rem + 1.5vw, 2rem); grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 700px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { display: grid; gap: 1rem; text-align: left; background: none; border: 0; padding: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.project-card[hidden] { display: none; }
.project-card.is-entering { opacity: 0; transform: translateY(16px); }
.project-card__media { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__tag { position: absolute; top: 1rem; left: 1rem; background: rgba(250,248,244,.92); padding: .35rem .7rem; border-radius: 999px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.project-card__view { position: absolute; right: 1rem; bottom: 1rem; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; opacity: 0; transform: translateY(10px); transition: all .4s var(--ease); }
.project-card:hover .project-card__view, .project-card:focus-visible .project-card__view { opacity: 1; transform: none; }
.project-card__meta { display: grid; gap: .3rem; }
.project-card__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; }
.project-card__title small { font-family: var(--font-sans); font-size: .78rem; color: var(--taupe); margin-right: .5rem; letter-spacing: .05em; }
.project-card__info { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.portfolio-foot { display: flex; justify-content: center; margin-top: 3rem; }

/* Lightbox / project modal */
.modal { position: fixed; inset: 0; z-index: 150; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(18, 16, 14, .72); backdrop-filter: blur(4px); animation: fade .4s var(--ease); }
.modal__panel { position: absolute; inset: 0; margin: auto; background: var(--paper); overflow: auto; animation: rise .5s var(--ease); }
@media (min-width: 900px) { .modal__panel { inset: 3vh 3vw; border-radius: var(--radius-lg); } }
.modal__close { position: sticky; top: 1rem; float: right; margin: 1rem 1rem 0 0; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.4rem; line-height: 1; }
.project-modal { display: grid; gap: 2rem; padding: clamp(1rem, .5rem + 2vw, 3rem); }
@media (min-width: 1000px) { .project-modal { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.project-modal__gallery { display: grid; gap: .75rem; }
.project-modal__gallery img { width: 100%; border-radius: var(--radius); }
.project-modal__aside { display: grid; gap: 1.5rem; position: sticky; top: 2rem; }
.project-modal__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: 1.25rem; border-block: 1px solid var(--line); }
.project-modal__facts dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
.project-modal__facts dd { margin: 0; font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ==========================================================================
   Immersive gallery (WebGL)
   ========================================================================== */
.immersive { background: var(--night); color: var(--on-night); padding-top: clamp(4.5rem, 3rem + 6vw, 8rem); }
.immersive__track { position: relative; margin-top: 2.5rem; height: 70vh; min-height: 460px; }
.immersive--webgl .immersive__track { height: calc(100vh + 750vh / 4); } /* scroll length of the walk (halved: featured projects only) */
.immersive__stage { position: relative; height: 100%; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); overflow: hidden; cursor: grab; touch-action: pan-y; }
.immersive--webgl .immersive__stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.immersive__stage:active { cursor: grabbing; }
.immersive__stage canvas { display: block; width: 100% !important; height: 100% !important; }
.immersive__hud { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 1.25rem calc(var(--gutter) + 72px) 1.25rem var(--gutter); pointer-events: none; }
.immersive__hud > * { pointer-events: auto; }
.immersive__caption { display: grid; gap: .2rem; min-height: 3.4rem; }
.immersive__caption strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.immersive__caption span { font-size: .78rem; color: var(--on-night-muted); letter-spacing: .08em; }
.immersive__controls { display: flex; gap: .5rem; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(243,242,240,.3); background: rgba(32,48,60,.55); color: var(--on-night); display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .3s, border-color .3s; }
.round-btn:hover { background: var(--on-night); color: var(--ink); }
.immersive__hint { position: absolute; top: calc(var(--header-h) + 1rem); left: 50%; transform: translateX(-50%); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-night-muted); background: rgba(32,48,60,.6); padding: .5rem 1rem; border-radius: 999px; transition: opacity .6s; white-space: nowrap; }
.immersive__hint.is-hidden { opacity: 0; }
@media (max-width: 699px) {
  .immersive__hud { inset: calc(var(--header-h) + .5rem) 0 auto; flex-direction: column; align-items: stretch; padding: .75rem var(--gutter); background: linear-gradient(180deg, rgba(32,48,60,.75), rgba(32,48,60,0)); }
  .immersive__caption strong { font-size: 1.3rem; }
  .immersive__hint { top: auto; bottom: 1.5rem; }
  .round-btn { width: 44px; height: 44px; }
}
.immersive__progress { position: absolute; left: 0; top: 0; height: 2px; background: var(--accent-soft); width: 0; transition: width .2s; }
/* Fallback when WebGL is unavailable or reduced motion is requested */
.immersive__fallback { display: none; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2rem var(--gutter); height: 100%; align-items: center; }
.immersive--fallback .immersive__fallback { display: flex; }
.immersive--fallback canvas, .immersive--fallback .immersive__hint { display: none; }
.immersive__fallback figure { margin: 0; flex: 0 0 min(78vw, 560px); scroll-snap-align: center; }
.immersive__fallback img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.immersive__fallback figcaption { margin-top: .6rem; font-size: .85rem; color: var(--on-night-muted); }

/* ==========================================================================
   Services / packages
   ========================================================================== */
.packages { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .packages { grid-template-columns: repeat(3, 1fr); } }
.package { position: relative; display: flex; flex-direction: column; gap: 1.5rem; padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.package--featured { background: var(--night); color: var(--on-night); border-color: var(--night); }
.package__badge { position: absolute; top: -12px; right: 1.5rem; background: var(--accent-soft); color: var(--ink); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: .35rem .8rem; border-radius: 999px; }
.package__name { font-family: var(--font-display); font-size: 2.2rem; }
.package__for { font-size: .9rem; color: var(--muted); }
.package--featured .package__for, .package--featured .package__price small { color: var(--on-night-muted); }
.package__price { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.package__price small { font-family: var(--font-sans); font-size: .78rem; color: var(--muted); letter-spacing: .04em; margin-right: .3rem; }
.package__list { display: grid; align-content: start; gap: .7rem; font-size: .92rem; padding-top: 1.5rem; border-top: 1px solid var(--line); flex: 1; }
.package--featured .package__list { border-color: var(--night-line); }
.package__list li { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; align-items: start; }
.package__list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.package--featured .package__list li::before { color: var(--accent-soft); }
.package__list li.is-off { color: var(--taupe); text-decoration: line-through; text-decoration-color: rgba(138,129,119,.5); }
.package__list li.is-off::before { content: "–"; color: var(--taupe); }
.package .btn { width: 100%; }
.packages-note { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--muted); text-align: center; }
.package__unit { font-family: var(--font-sans); font-size: .85rem; letter-spacing: .04em; color: var(--muted); margin-left: .4rem; }
.package--featured .package__unit { color: var(--on-night-muted); }
.package__addon { display: grid; gap: .35rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--night-line); }
.package__addon p { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .9rem; }
.package__addon span { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-soft); white-space: nowrap; }
.package__addon small { font-size: .8rem; color: var(--on-night-muted); line-height: 1.5; }
.landscape { display: grid; gap: 2rem; margin-top: 1.25rem; padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); }
@media (min-width: 960px) { .landscape { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem; } }
.landscape__copy { display: grid; gap: .9rem; }
.landscape__copy p { color: var(--ink-2); max-width: 60ch; }
.landscape__copy .landscape__note { font-size: var(--fs-small); color: var(--muted); }
.landscape__prices { display: grid; gap: 1.25rem; }
.landscape__prices ul { display: grid; }
.landscape__prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.landscape__prices li:first-child { border-top: 1px solid var(--line); }
.landscape__prices li small { display: block; font-size: .78rem; color: var(--muted); }
.landscape__prices strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; white-space: nowrap; }
.landscape .btn { justify-self: start; }

/* ==========================================================================
   Process (dark band) + guarantees
   ========================================================================== */
.process { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .process { grid-template-columns: .85fr 1.15fr; gap: 5rem; } .process__intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.process__intro { display: grid; gap: 1.5rem; }
.process__intro img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; margin-top: 1rem; }
.steps { display: grid; }
.step { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem 1.25rem; padding-block: 2rem; border-top: 1px solid var(--night-line); }
.step:last-child { border-bottom: 1px solid var(--night-line); }
.step__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent-soft); padding-top: .35rem; }
.step h3 { font-family: var(--font-display); font-size: var(--fs-h3); }
.step p { color: var(--on-night-muted); margin-top: .5rem; }
.step__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.step__meta span { font-size: .72rem; letter-spacing: .06em; padding: .3rem .7rem; border: 1px solid var(--night-line); border-radius: 999px; color: var(--on-night); }
.guarantees { display: grid; gap: 1px; background: var(--night-line); margin-top: clamp(3rem, 2rem + 3vw, 5rem); border: 1px solid var(--night-line); }
@media (min-width: 800px) { .guarantees { grid-template-columns: repeat(4, 1fr); } }
.guarantee { background: var(--night); padding: 1.75rem; display: grid; gap: .6rem; }
.guarantee svg { width: 30px; height: 30px; stroke: var(--accent-soft); }
.guarantee strong { font-size: 1rem; }
.guarantee p { font-size: .86rem; color: var(--on-night-muted); }

/* ==========================================================================
   Founder / studio
   ========================================================================== */
.founder { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 960px) { .founder { grid-template-columns: .9fr 1.1fr; } }
.founder__media { position: relative; }
.founder__media img { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 25%; width: 100%; }
.founder__badge { position: absolute; right: -1rem; bottom: 2rem; background: var(--accent); color: #fff; width: 132px; height: 132px; border-radius: 50%; display: grid; place-content: center; text-align: center; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; }
.founder__badge strong { display: block; font-family: var(--font-display); font-size: 2.4rem; letter-spacing: 0; text-transform: none; }
@media (max-width: 600px) { .founder__badge { right: .75rem; width: 108px; height: 108px; } .founder__badge strong { font-size: 2rem; } }
.founder__copy { display: grid; gap: 1.5rem; }
.founder__copy p { color: var(--muted); }
.founder__quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.3; color: var(--ink-2); padding-left: 1.25rem; border-left: 2px solid var(--accent); }
.signature { font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--accent); }
.team { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.team__member { display: flex; align-items: center; gap: .75rem; }
.team__member img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.team__member strong { display: block; font-size: .9rem; }
.team__member span { font-size: .78rem; color: var(--muted); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.reviews { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .reviews { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; } }
.rating-card { display: inline-grid; gap: .4rem; padding: 1.25rem 1.5rem; background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); justify-self: start; }
.rating-card strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.rating-card span { font-size: .8rem; color: var(--muted); }
.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; transition: transform .8s var(--ease); }
.review { flex: 0 0 100%; display: grid; gap: 1.5rem; padding-right: 1rem; }
@media (min-width: 700px) { .review { grid-template-columns: 180px 1fr; align-items: start; } }
.review img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 699px) { .review img { aspect-ratio: 16/9; } }
.review blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.1rem); line-height: 1.3; }
.review figcaption { margin-top: 1.25rem; display: grid; gap: .15rem; font-size: .88rem; }
.review figcaption span { color: var(--muted); font-size: .8rem; }
.slider__nav { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.slider__dots { display: flex; gap: .5rem; }
.slider__dots button { width: 28px; height: 3px; padding: 0; border: 0; background: var(--line); border-radius: 2px; transition: background .3s, width .3s; }
.slider__dots button[aria-current="true"] { background: var(--ink); width: 44px; }
.round-btn--light { border-color: var(--line); background: transparent; color: var(--ink); backdrop-filter: none; }
.round-btn--light:hover { background: var(--ink); color: var(--paper); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 2rem; }
@media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.4rem 0; font-size: 1.08rem; font-weight: 600; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; line-height: 1; transition: transform .3s var(--ease); flex: none; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 2.5rem 1.5rem 0; color: var(--muted); }

/* ==========================================================================
   Booking
   ========================================================================== */
.booking { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 1000px) { .booking { grid-template-columns: .85fr 1.15fr; } }
.booking__info { display: grid; gap: 1.75rem; align-content: start; }
.booking__perks { display: grid; gap: .9rem; }
.booking__perks li { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; color: var(--on-night-muted); }
.booking__perks li::before { content: "✓"; color: var(--accent-soft); font-weight: 700; }
.contacts { display: grid; gap: 1rem; padding-top: 1.75rem; border-top: 1px solid var(--night-line); }
@media (min-width: 560px) { .contacts { grid-template-columns: 1fr 1fr; } }
.contacts small { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-night-muted); margin-bottom: .2rem; }
.contacts a { font-weight: 600; }
.contacts a:hover { color: var(--accent-soft); }

.wizard { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.25rem, .8rem + 2vw, 2.75rem); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.wizard__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: 1.75rem; }
.wizard__progress li { display: grid; gap: .5rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.wizard__progress li::before { content: ""; height: 3px; border-radius: 2px; background: var(--sand); transition: background .4s; }
.wizard__progress li.is-done::before, .wizard__progress li.is-current::before { background: var(--accent); }
.wizard__progress li.is-current { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) { .wizard__progress li { font-size: 0; gap: 0; } }
.wizard__step { display: none; gap: 1.5rem; }
.wizard__step.is-active { display: grid; animation: rise .5s var(--ease); }
.wizard__step h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.wizard__step > p { color: var(--muted); margin-top: -.75rem; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span { display: grid; gap: .25rem; height: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; font-weight: 600; transition: all .25s var(--ease); }
.option span small { font-weight: 400; color: var(--muted); font-size: .76rem; }
.option input:hover + span { border-color: var(--ink); }
.option input:checked + span { border-color: var(--accent); background: rgba(125,82,67,.08); box-shadow: inset 0 0 0 1px var(--accent); }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .25s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(125,82,67,.15); }
.field.has-error input, .field.has-error select { border-color: #b4483b; }
.field__error { font-size: .78rem; color: #b4483b; min-height: 1em; }
.row-2 { display: grid; gap: 1rem; }
@media (min-width: 620px) { .row-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checkbox { display: flex; gap: .7rem; align-items: start; font-size: .84rem; color: var(--muted); }
.checkbox input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--accent); flex: none; }
.wizard__nav { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.wizard__nav .btn[hidden] { display: none; }
.wizard__note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 1rem; }

/* Request summary */
.summary { background: var(--cream); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .88rem; display: grid; gap: .3rem; }
.summary strong { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.wizard__success { display: none; text-align: center; gap: 1rem; justify-items: center; padding-block: 2rem; }
.wizard.is-done .wizard__success { display: grid; animation: rise .5s var(--ease); }
.wizard.is-done form, .wizard.is-done .wizard__progress { display: none; }
.success-mark { width: 72px; height: 72px; border-radius: 50%; background: rgba(79,122,82,.12); color: var(--success); display: grid; place-items: center; font-size: 2rem; }

/* ==========================================================================
   Closing CTA + Footer
   ========================================================================== */
.closing { position: relative; color: #fff; overflow: hidden; }
.closing__bg { position: absolute; inset: 0; }
.closing__bg img { width: 100%; height: 100%; object-fit: cover; }
.closing__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,16,.82), rgba(20,18,16,.35)); }
.closing .container { position: relative; display: grid; gap: 1.5rem; justify-items: start; padding-block: clamp(5rem, 4rem + 6vw, 10rem); }
.closing .h2 { max-width: 14ch; }
.closing p { max-width: 32rem; color: rgba(255,255,255,.8); font-size: var(--fs-lead); }

.site-footer { background: var(--night); color: var(--on-night-muted); position: relative; padding-top: 5rem; font-size: .9rem; }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } .footer__grid:has(> div:nth-child(5)) { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.site-footer h4 { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-night); margin-bottom: 1rem; font-weight: 600; }
.site-footer li + li { margin-top: .5rem; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer .brand { color: var(--on-night); }
.footer__about { display: grid; gap: 1.25rem; max-width: 22rem; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--night-line); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.75rem; border-top: 1px solid var(--night-line); font-size: .78rem; }
.footer__word { font-family: var(--font-display); font-size: clamp(4rem, 2rem + 11vw, 13rem); line-height: .8; color: rgba(243,242,240,.06); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; user-select: none; }

/* ==========================================================================
   Floating + modal helpers
   ========================================================================== */
.fab-whatsapp { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 28px; height: 28px; fill: currentColor; }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 79; padding: .75rem 5.5rem .75rem 1rem; background: rgba(250,248,244,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease); }
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { width: 100%; white-space: nowrap; letter-spacing: .06em; padding-inline: 1rem; }
@media (min-width: 1100px) { .mobile-cta { display: none; } }

.lead-modal .modal__panel { inset: auto 0 0; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: grid; overflow: auto; }
@media (min-width: 760px) { .lead-modal .modal__panel { inset: 0; margin: auto; width: min(860px, 92vw); height: fit-content; border-radius: var(--radius-lg); grid-template-columns: .9fr 1.1fr; } }
.lead-modal__img { min-height: 180px; }
.lead-modal__img img { width: 100%; height: 100%; object-fit: cover; }
.lead-modal__body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); display: grid; gap: 1.1rem; align-content: center; }
.lead-modal__body h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); }
.lead-modal__body p { color: var(--muted); }
.lead-modal .modal__close { position: absolute; right: 0; top: 0; }

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

/* ==========================================================================
   Why Infinitive (pillars from the original "De ce suntem unici?")
   ========================================================================== */
.pillars { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { background: var(--paper); padding: 2rem clamp(1.25rem, 1rem + 1vw, 2rem); display: grid; gap: .75rem; align-content: start; }
.pillar__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); }
.pillar h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; line-height: 1.15; }
.pillar p { color: var(--muted); font-size: .95rem; }
.package__price--quote { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }

/* Language switch (RO / EN) — separate pages, the link keeps the current #section */
.lang-switch { display: flex; align-items: center; font-size: .72rem; font-weight: 600; letter-spacing: .14em; }
.lang-switch a { padding: .4rem .45rem; opacity: .5; transition: opacity .2s; }
.lang-switch a + a { border-left: 1px solid currentColor; }
.lang-switch a:hover, .lang-switch a[aria-current="true"] { opacity: 1; }

/* ==========================================================================
   Inner pages — projects, services (generated by build/build.py)
   ========================================================================== */
.subpage main { padding-top: var(--header-h); }
.page-hero { background: var(--cream); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero .container { display: grid; gap: 1.25rem; justify-items: start; }
.page-hero--center { min-height: 60vh; display: grid; align-items: center; }
.page-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.3rem, 1.6rem + 3vw, 4.2rem); line-height: 1.05; letter-spacing: -0.015em; max-width: 22ch; }
.page-hero .lead { max-width: 44rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.breadcrumbs a:hover { color: var(--accent); }
.tldr { width: 100%; max-width: 52rem; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-top: .5rem; }
.tldr__label { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.tldr p { max-width: none; }
.tldr a, .prose a, .prose-wide p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.facts { display: grid; gap: .75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.facts dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
.facts dd { font-weight: 500; margin: 0; }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.prose { max-width: 50rem; }
.prose, .prose-wide { display: grid; gap: 1.1rem; }
.prose > .h2, .prose-wide > .h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); margin-top: 1.75rem; line-height: 1.15; }
.prose > .h2:first-child, .prose-wide > .h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3d3934; line-height: 1.7; }
.prose ul, .prose ol { display: grid; gap: .5rem; padding-left: 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose + .prose-wide, .prose-wide + .prose { margin-top: 2rem; }
.ticks { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.ticks li { padding-left: 1.6rem; position: relative; line-height: 1.55; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.gallery-grid { display: grid; gap: clamp(.6rem, .4rem + .8vw, 1.2rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid figure:first-child { grid-column: 1 / -1; } }
.gallery-grid a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.gallery-grid img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.03); }
.link-list { display: grid; gap: .5rem; list-style: none; padding: 0 !important; }
.link-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.link-list a::after { content: " →"; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 34rem; }
.data-table caption { text-align: left; padding: .9rem 1rem; font-weight: 600; border-bottom: 1px solid var(--line); background: var(--cream); }
.data-table th, .data-table td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); font-weight: 600; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th { font-weight: 600; }
.data-table a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.steps-list { counter-reset: s; list-style: none !important; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 2.6rem; }
.steps-list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .05rem; font-family: var(--font-display); color: var(--accent); font-size: 1.15rem; }
.svc-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.svc-card { display: grid; gap: .5rem; height: 100%; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .3s, transform .3s var(--ease); }
.svc-card strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.svc-card span { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.svc-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.prose .faq__list { margin-top: .25rem; }
/* homepage: links to the service pages, and "all projects" */
.service-links { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.service-links h3 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-bottom: 1rem; font-weight: 600; }
.service-links ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.service-links a { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; transition: border-color .2s, color .2s; }
.service-links a:hover { border-color: var(--accent); color: var(--accent); }
.portfolio-foot { display: flex; flex-wrap: wrap; gap: 1rem; }
a.project-card { color: inherit; }
/* lightbox (project pages) */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(16, 14, 12, .94); display: grid; place-items: center; padding: 3.5rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; background: rgba(0,0,0,.3); font-size: 1.4rem; display: grid; place-items: center; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.15); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; }
.prose .link-list { list-style: none; padding-left: 0; }
.gallery-grid figure { margin: 0; }

/* Partner (landscape design) in the studio section */
.partner { margin-inline: 0; display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: start; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .partner { grid-template-columns: 140px 1fr; gap: 1.5rem; } }
.partner img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); filter: grayscale(1); }
.partner figcaption { display: grid; gap: .45rem; }
.partner strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1.1; }
.partner p { font-size: .92rem; color: var(--ink-2); }

/* Nov 2026: no words over or beside the hero images (client request) */
.hero__index { display: none; }

/* legal pages */
.legal__updated { font-size: .85rem; color: var(--muted); letter-spacing: .02em; }
.legal h3 { font-family: "Jost", sans-serif; font-weight: 500; font-size: 1.05rem; margin-top: .6rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid rgba(0,0,0,.1); vertical-align: top; }
.legal th { font-weight: 500; background: var(--cream); }
.checkbox a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
