/* ==========================================================================
   Eco Creational — site.css
   One shared stylesheet for every page.
   1 Tokens · 2 Base · 3 Layout · 4 Header · 5 Buttons · 6 Hero · 7 Sections
   8 Materials · 9 Work · 10 Process · 11 Quotes · 12 FAQ · 13 Forms/Contact
   14 Inner pages · 15 Footer · 16 Utilities · 17 Motion/Responsive
   ========================================================================== */

/* 1 ── TOKENS ─────────────────────────────────────────────────────────── */
:root {
  --paper:   #F2EFE7;
  --paper-2: #E9E4D8;
  --card:    #FAF8F3;
  --ink:     #111A14;
  --ink-2:   #46524B;
  --ink-3:   #75807A;
  --line:    rgba(17, 26, 20, .14);
  --line-strong: rgba(17, 26, 20, .32);

  --forest:  #16301F;
  --forest-2:#1E4130;
  --moss:    #3F6B4F;
  --on-dark: #EFEBDF;
  --on-dark-2: rgba(239, 235, 223, .66);
  --line-dark: rgba(239, 235, 223, .18);

  --accent:  #D4572A;   /* kiln orange — used sparingly */
  --accent-ink: #A9401B;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans:  'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 52px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2 ── BASE ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--forest); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.02;
}
h1 { font-size: clamp(2.9rem, 6.4vw, 6.1rem); letter-spacing: -.025em; line-height: .98; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.12; }
h1 em, h2 em, h3 em { font-style: italic; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { left: 8px; }

/* 3 ── LAYOUT ─────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--dark { background: var(--forest); color: var(--on-dark); }
.section--dark .lead, .section--dark p { color: var(--on-dark-2); }
.section--paper2 { background: var(--paper-2); }
.rule-top { border-top: 1px solid var(--line); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.eyebrow b { font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.eyebrow::after { content: ""; flex: 0 0 56px; height: 1px; background: currentColor; opacity: .4; }
.section--dark .eyebrow { color: var(--on-dark-2); }
.section--dark .eyebrow b { color: var(--accent); }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 96px); align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head p { color: var(--ink-2); max-width: 30em; }
.section--dark .section-head p { color: var(--on-dark-2); }

/* 4 ── HEADER ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself turns it into the
   containing block for position:fixed children, which collapsed the mobile menu to zero height. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; color: var(--forest); flex: none; }
.brand-logo { height: 58px; width: auto; flex: none; object-fit: contain; }
.site-footer .brand-logo { height: 74px; background: var(--paper); padding: 8px 14px; border-radius: 8px; }
.brand-name { font-family: var(--serif); font-size: 1.65rem; letter-spacing: -.01em; line-height: 1; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav a:not(.btn) {
  position: relative; font-size: .95rem; font-weight: 500; color: var(--ink-2);
  padding-block: 6px; transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; position: relative;
}
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* 5 ── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--ink);
  font-size: .95rem; font-weight: 600; line-height: 1; white-space: nowrap;
  background: transparent; color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--on-dark); border-color: var(--on-dark); color: var(--forest); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--outline-light { border-color: var(--line-dark); color: var(--on-dark); }
.btn--outline-light:hover { background: var(--on-dark); color: var(--forest); border-color: var(--on-dark); }
.btn--sm { padding: 11px 18px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color .2s, gap .3s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; }
.link-arrow:hover { border-color: var(--ink); gap: 12px; }
.section--dark .link-arrow { border-color: var(--line-dark); }
.section--dark .link-arrow:hover { border-color: var(--on-dark); }

/* 6 ── HERO (home) ────────────────────────────────────────────────────── */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: end;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.hero-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: block; }
.hero h1 { margin-bottom: 30px; }
.hero h1 em { color: var(--forest-2); }
.hero .lead { margin-bottom: 38px; }

.mosaic {
  display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: auto auto; gap: 14px;
}
.mosaic figure { position: relative; margin: 0; }
.mosaic .m1 { grid-row: 1 / span 2; }
.mosaic .m3 { margin-top: -6px; }
.ph { overflow: hidden; border-radius: var(--radius); background: var(--card); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .m1 { display: flex; flex-direction: column; }
.mosaic .m1 .ph { aspect-ratio: auto; flex: 1; min-height: 0; }
.mosaic .m2 .ph { aspect-ratio: 1 / 1; }
.mosaic .m3 .ph { aspect-ratio: 1 / 1; }
.cap { margin-top: 10px; font-size: .78rem; line-height: 1.35; color: var(--ink-3); letter-spacing: .01em; }
.cap b { font-weight: 600; color: var(--ink-2); }

.facts {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.facts > div { padding: 22px 24px 22px 0; border-right: 1px solid var(--line); }
.facts > div + div { padding-left: 24px; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }

.clients { padding-block: 34px 0; }
.clients p { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.clients ul { display: flex; flex-wrap: wrap; gap: 6px 34px; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); color: var(--ink-2); }
.clients li { display: flex; align-items: center; gap: 34px; }
.clients li:not(:last-child)::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }

/* 7 ── SECTIONS: statement / pillars / stats ──────────────────────────── */
.statement {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.8vw, 3.3rem); line-height: 1.12; letter-spacing: -.015em;
  max-width: 24em; color: var(--on-dark);
}
.statement em { color: var(--accent); font-style: italic; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line-dark); }
.pillar { padding: 28px 32px 0 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.pillar h3 { color: var(--on-dark); margin-bottom: 12px; font-size: 1.55rem; }
.pillar p { font-size: .98rem; }
.pillar .n { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin-bottom: 20px; }

.mission { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(56px, 8vw, 110px); }
.mission h3 { color: var(--on-dark); font-size: 1rem; font-family: var(--sans); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.mission p { font-size: 1.05rem; }

.stats { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); border-top: 1px solid var(--line-strong); }
.stats > div { padding: 22px 20px 0 0; }
.stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
.stats span { display: block; margin-top: 8px; font-size: .85rem; color: var(--ink-2); }
.section--dark .stats { border-color: var(--line-dark); }
.section--dark .stats > div + div { border-color: var(--line-dark); }
.section--dark .stats span { color: var(--on-dark-2); }
.stats--inline { margin-top: clamp(40px, 6vw, 72px); }

/* 8 ── MATERIALS ──────────────────────────────────────────────────────── */
.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mat .ph { aspect-ratio: 1 / 1.1; background: #fff; }
.mat .ph img { transition: transform .9s var(--ease); }
.mat:hover .ph img { transform: scale(1.04); }
.mat-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-strong); margin-top: 16px; }
.mat h3 { font-size: 1.55rem; }
.mat .n { font-size: .78rem; font-weight: 600; color: var(--ink-3); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.mat p { margin-top: 8px; font-size: .95rem; color: var(--ink-2); }

/* 9 ── WORK ───────────────────────────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); align-items: start; }
.work:nth-child(3n + 2) { margin-top: clamp(0px, 5vw, 72px); }
.work .ph { aspect-ratio: 4 / 5; }
.work .ph img { transition: transform .9s var(--ease); }
.work:hover .ph img { transform: scale(1.035); }
.work-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.work h3 { margin-top: 8px; font-size: 1.7rem; }
.work p { margin-top: 10px; font-size: .96rem; color: var(--ink-2); max-width: 30em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span { font-size: .76rem; font-weight: 500; padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); }
.work-foot { display: flex; gap: 18px; margin-top: 14px; font-size: .82rem; color: var(--ink-3); }
.work-foot span + span::before { content: "·"; margin-right: 18px; }
.work[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: all .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.projects-page .work:nth-child(3n + 2) { margin-top: 0; }
.projects-page .work-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); row-gap: 56px; }

/* 10 ── PROCESS / SERVICES ────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.step { padding: 26px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--accent-ink); display: block; margin-bottom: 40px; }
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { font-size: .96rem; color: var(--ink-2); }

.rows { border-top: 1px solid var(--line-strong); }
.row {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .7fr);
  gap: clamp(16px, 3vw, 48px); align-items: start; padding-block: 34px; border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.row:hover { background: color-mix(in srgb, var(--card) 70%, transparent); }
.row .n { font-size: .85rem; font-weight: 600; color: var(--ink-3); padding-top: 8px; font-variant-numeric: tabular-nums; }
.row h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.row p { color: var(--ink-2); }
.row .tags { margin-top: 0; justify-content: flex-start; }

.quote-block { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.quote-block h2 { margin-bottom: 22px; }
.quote-block ul { margin-block: 26px 0; display: grid; gap: 12px; }
.quote-block li { display: flex; gap: 12px; align-items: flex-start; }
.quote-block li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--accent-ink); flex: none; }
.quote-cta { background: var(--forest); color: var(--on-dark); border-radius: var(--radius); padding: clamp(32px, 5vw, 64px); }
.quote-cta p { margin-top: 18px; font-size: .95rem; color: var(--on-dark-2); }
.quote-cta strong { color: var(--on-dark); font-weight: 600; }

/* 11 ── QUOTES ────────────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.quote { border-top: 1px solid var(--line-strong); padding-top: 28px; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.25; letter-spacing: -.01em; }
.quote figcaption { margin-top: 26px; font-size: .9rem; color: var(--ink-2); }
.quote figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* 12 ── FAQ ───────────────────────────────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.faq-wrap .sticky { position: sticky; top: 120px; }
details.faq { border-top: 1px solid var(--line-strong); }
details.faq:last-of-type { border-bottom: 1px solid var(--line-strong); }
details.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.2;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .4s var(--ease); color: var(--ink-2); }
details.faq[open] summary svg { transform: rotate(45deg); color: var(--accent-ink); }
details.faq .a { padding: 0 48px 28px 0; color: var(--ink-2); max-width: 44em; }
details.faq summary:hover { color: var(--forest-2); }

.faq-group { margin-bottom: clamp(48px, 7vw, 88px); }
.faq-group[hidden] { display: none; }
.faq-group > h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 22px; display: flex; align-items: baseline; gap: 16px; }
.faq-group > h2 small { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--accent-ink); }
.side-nav { display: grid; gap: 4px; margin-top: 8px; }
.side-nav button {
  text-align: left; background: none; border: 0; padding: 12px 0 12px 18px; font-size: 1rem; color: var(--ink-2);
  border-left: 1px solid var(--line-strong); transition: all .2s;
}
.side-nav button:hover { color: var(--ink); }
.side-nav button[aria-pressed="true"] { color: var(--ink); border-left: 3px solid var(--accent); padding-left: 16px; font-weight: 600; }

/* 13 ── FORMS / CONTACT ───────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.contact-list { margin-top: 36px; border-top: 1px solid var(--line-strong); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list .item { display: grid; grid-template-columns: 28px 1fr; gap: 18px; padding: 20px 0; align-items: start; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }
.contact-list small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.contact-list strong { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; display: block; }
.contact-list span.sub { display: block; margin-top: 4px; font-size: .9rem; color: var(--ink-2); }
.contact-list a:hover strong { color: var(--forest-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 52px); }
.form-card h2, .form-card h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-bottom: 8px; }
.form-card > p { color: var(--ink-2); margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; font-size: 1.05rem; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2346524B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--forest); box-shadow: 0 1px 0 var(--forest); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .8; }
.form-card .btn { width: 100%; padding-block: 17px; margin-top: 8px; }
.form-note { margin-top: 16px; font-size: .85rem; color: var(--ink-3); text-align: center; }

.map { margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; filter: grayscale(.85) contrast(1.02); transition: filter .4s; }
.map:hover iframe { filter: none; }
.map p { padding: 14px 18px; font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--line); }

/* 14 ── INNER PAGES ───────────────────────────────────────────────────── */
.page-hero { padding-block: clamp(56px, 8vw, 120px) clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); align-items: end; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
.page-hero .lead { padding-bottom: 8px; }
.page-hero .btn-row { margin-top: 28px; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.split .ph { aspect-ratio: 4 / 4.6; }
.split h2 { margin-bottom: 26px; }
.split p + p { margin-top: 18px; }
.split p { color: var(--ink-2); }
.split .stats { margin-top: 40px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.value { padding: 26px 28px 0 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value .n { font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--accent-ink); display: block; margin-bottom: 44px; }
.value h3 { font-size: 1.6rem; margin-bottom: 10px; }
.value p { font-size: .96rem; color: var(--ink-2); }

.founder { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.founder .ph { aspect-ratio: 1 / 1.1; }
.founder blockquote { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.8rem); line-height: 1.16; letter-spacing: -.012em; color: var(--on-dark); }
.founder figcaption { margin-top: 28px; font-size: .95rem; color: var(--on-dark-2); }
.founder figcaption b { color: var(--on-dark); font-weight: 600; }

.cta-band { padding-block: clamp(64px, 9vw, 120px); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { max-width: 14em; }
.cta-band p { margin-top: 18px; max-width: 28em; }

.center-page { min-height: calc(100vh - 76px); display: grid; align-items: center; padding-block: clamp(48px, 8vw, 100px); }
.big-num { font-family: var(--serif); font-size: clamp(7rem, 24vw, 19rem); line-height: .85; letter-spacing: -.04em; color: var(--forest); }
.nf h1 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); margin-block: 8px 20px; }
.nf p { max-width: 30em; color: var(--ink-2); margin-bottom: 32px; }
.thanks { max-width: 760px; }
.thanks h1 { margin-bottom: 22px; }
.thanks .steps-mini { margin-block: 40px; border-top: 1px solid var(--line-strong); }
.steps-mini li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps-mini .n { font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--accent-ink); }
.steps-mini strong { display: block; font-weight: 600; }
.steps-mini span { color: var(--ink-2); font-size: .95rem; }
.redirect { margin-top: 28px; font-size: .88rem; color: var(--ink-3); }
.redirect a { text-decoration: underline; text-underline-offset: 3px; }

/* 15 ── FOOTER ────────────────────────────────────────────────────────── */
.site-footer { background: var(--forest); color: var(--on-dark); padding-top: clamp(64px, 9vw, 112px); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(48px, 7vw, 88px); }
.site-footer .brand-mark { color: var(--on-dark); }
.footer-about p { margin-top: 20px; color: var(--on-dark-2); max-width: 24em; font-size: .98rem; }
.site-footer h4 { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 18px; }
.site-footer li + li { margin-top: 10px; }
.site-footer li a, .site-footer li span { color: var(--on-dark); font-size: .98rem; }
.site-footer li a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.site-footer li a:hover { background-size: 100% 1px; }
.footer-word { font-family: var(--serif); font-size: clamp(3rem, 12.4vw, 13rem); line-height: .92; letter-spacing: -.035em; color: rgba(239, 235, 223, .08); white-space: nowrap; overflow: hidden; user-select: none; margin-top: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line-dark); font-size: .85rem; color: var(--on-dark-2); }
.footer-bottom a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Floating actions: chat (22px) · WhatsApp (94px) on the right, scroll-to-top on the left */
.wa-float {
  position: fixed; right: 22px; bottom: 94px; z-index: 90;
  display: inline-flex; align-items: center; justify-content: center; height: 56px; min-width: 56px; padding: 0 16px; gap: 0;
  border-radius: 999px; background: #25D366; color: #fff; font-size: .9rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(17, 26, 20, .28); transition: transform .3s var(--ease), box-shadow .3s, gap .3s;
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .35s var(--ease), opacity .25s; }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px); gap: 10px; box-shadow: 0 12px 30px rgba(17, 26, 20, .32); }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 180px; opacity: 1; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; animation: wa-pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }

.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  box-shadow: 0 6px 20px rgba(17, 26, 20, .16);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, transform .35s var(--ease), visibility .3s, background .2s, color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--forest); color: var(--on-dark); border-color: var(--forest); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }
.to-top .ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.to-top .ring circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 110; background: transparent; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }


/* 18 ── CHAT ASSISTANT ────────────────────────────────────────────────── */
.ec { --ec-w: 380px; }
.ec-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 56px; height: 56px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--forest); color: var(--on-dark);
  box-shadow: 0 8px 26px rgba(17, 26, 20, .32); transition: transform .3s var(--ease), background .2s;
}
.ec-launch:hover { transform: translateY(-3px); background: var(--forest-2); }
.ec-launch svg { width: 26px; height: 26px; grid-area: 1 / 1; transition: transform .35s var(--ease), opacity .25s; }
.ec-launch .i-x { opacity: 0; transform: rotate(-60deg) scale(.6); }
.is-open .ec-launch .i-chat { opacity: 0; transform: rotate(60deg) scale(.6); }
.is-open .ec-launch .i-x { opacity: 1; transform: none; }
.ec-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper); }
.ec-nudge {
  position: fixed; right: 90px; bottom: 32px; z-index: 95; max-width: 230px; padding: 11px 16px; border-radius: 14px 14px 4px 14px;
  background: var(--card); color: var(--ink); font-size: .9rem; line-height: 1.35; border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(17, 26, 20, .16); cursor: pointer; animation: ec-in .5s var(--ease);
}
.ec-nudge[hidden], .ec-dot[hidden], .ec-panel[hidden] { display: none; }
.ec-panel {
  position: fixed; right: 22px; bottom: 90px; z-index: 120; width: var(--ec-w); max-width: calc(100vw - 32px);
  height: min(620px, calc(100dvh - 118px)); display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(17, 26, 20, .28);
  opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom right; transition: opacity .25s, transform .3s var(--ease);
}
.is-open .ec-panel { opacity: 1; transform: none; }
.ec-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--forest); color: var(--on-dark); }
.ec-av { width: 48px; height: 36px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; flex: none; overflow: hidden; }
.ec-av img { width: 42px; height: auto; }
.ec-ttl { flex: 1; min-width: 0; line-height: 1.25; }
.ec-ttl b { display: block; font-weight: 600; font-size: 1rem; }
.ec-ttl span { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--on-dark-2); }
.ec-ttl i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.ec-ico { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--on-dark); display: grid; place-items: center; transition: background .2s; }
.ec-ico:hover { background: rgba(239, 235, 223, .14); }
.ec-ico svg { width: 18px; height: 18px; }
.ec-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scroll-behavior: smooth; }
.ec-m { display: flex; flex-direction: column; max-width: 88%; animation: ec-in .35s var(--ease); }
.ec-bot { align-self: flex-start; align-items: flex-start; }
.ec-user { align-self: flex-end; align-items: flex-end; }
.ec-b { padding: 10px 14px; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.ec-bot .ec-b { background: var(--card); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; }
.ec-user .ec-b { background: var(--forest); color: var(--on-dark); border-radius: 14px 14px 4px 14px; }
.ec-b a { text-decoration: underline; text-underline-offset: 2px; }
.ec-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ec-act { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .88rem; font-weight: 600; transition: background .2s, transform .2s; }
.ec-act:hover { background: var(--accent-ink); transform: translateY(-1px); }
.ec-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 6px; animation: ec-in .4s var(--ease); }
.ec-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: .86rem; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.ec-chip:hover { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
.ec-typing .ec-b { display: flex; gap: 5px; padding: 14px 16px; }
.ec-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: ec-bounce 1s infinite ease-in-out; }
.ec-typing i:nth-child(2) { animation-delay: .15s; } .ec-typing i:nth-child(3) { animation-delay: .3s; }
.ec-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--card); }
.ec-in { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); font-size: 16px; outline: none; }
.ec-in:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(63, 107, 79, .2); }
.ec-send { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; }
.ec-send:hover { background: var(--accent-ink); transform: translateX(2px); }
.ec-send svg { width: 20px; height: 20px; }
@keyframes ec-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ec-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
body.chat-open .wa-float { opacity: 0; visibility: hidden; transform: translateY(10px); }
@media (max-width: 640px) {
  .ec-launch { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .ec-nudge { right: 78px; bottom: 24px; }
  .ec-panel { inset: auto 12px 12px 12px; width: auto; max-width: none; height: min(70vh, 480px); height: min(70dvh, 480px); border-radius: 16px; transform-origin: bottom; }
  .ec-head { padding: 10px 10px 10px 14px; }
  .ec-av { width: 40px; height: 30px; } .ec-av img { width: 34px; }
  .ec-ttl b { font-size: .92rem; } .ec-b { font-size: .9rem; padding: 9px 12px; }
  .ec-log { padding: 12px 12px 6px; } .ec-form { padding: 8px; } .ec-in { padding: 10px 14px; } .ec-send { width: 42px; height: 42px; }
  body.chat-open .ec-launch, body.chat-open .to-top { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .ec-typing i { animation: none; } }

/* 16 ── UTILITIES ─────────────────────────────────────────────────────── */
.mt-s { margin-top: 24px; } .mt-m { margin-top: 44px; } .mt-l { margin-top: clamp(48px, 7vw, 88px); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 17 ── MOTION ────────────────────────────────────────────────────────── */
html.js [data-rv] { opacity: 0; transform: translateY(34px); transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
html.js [data-rv="left"] { transform: translateX(-36px); }
html.js [data-rv="right"] { transform: translateX(36px); }
html.js [data-rv="zoom"] { transform: scale(.94); }
html.js [data-rv].in { opacity: 1; transform: none; }
html.js .ph.rv-img { clip-path: inset(10% 0 0 0 round var(--radius)); transition: clip-path 1.3s cubic-bezier(.16, 1, .3, 1); }
html.js .ph.rv-img.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.ph.px img { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }
[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-rv] { opacity: 1; transform: none !important; transition: none; }
  html.js .ph.rv-img { clip-path: none; }
  .wa-float::after { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .materials { grid-template-columns: repeat(2, 1fr); }
  .steps, .values { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3), .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n + 3), .value:nth-child(n + 3) { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 26px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr); }
  .row .tags { grid-column: 2 / -1; }
}
@media (max-width: 900px) {
  .hero-grid, .page-hero-grid, .section-head, .split, .quote-block, .faq-wrap, .contact-grid, .quotes, .mission, .founder { grid-template-columns: 1fr; }
  .faq-wrap .sticky { position: static; }
  .founder .ph { max-width: 320px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work:nth-child(3n + 2) { margin-top: 0; }
  .work:nth-child(2n) { margin-top: 40px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(3) { padding-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 0; border-left: 0; }
  .pillar + .pillar { margin-top: 28px; border-top: 1px solid var(--line-dark); }

  .site-header .wrap { height: 64px; }
  .brand-logo { height: 40px; }
  .site-footer .brand-logo { height: 56px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 0 0; height: calc(100vh - 64px); height: calc(100dvh - 64px); z-index: 99; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 2.1rem; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 24px; padding-block: 16px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .materials, .work-grid { grid-template-columns: 1fr; }
  .work:nth-child(2n) { margin-top: 0; }
  .steps, .values { grid-template-columns: 1fr; }
  .step, .step + .step, .value, .value + .value { padding: 26px 0 0; border-left: 0; }
  .step + .step, .value + .value { margin-top: 32px; border-top: 1px solid var(--line); }
  .step .n { margin-bottom: 18px; } .value .n { margin-bottom: 18px; }
  .footer-top { grid-template-columns: 1fr; }
  .stats { --cols: 2 !important; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; margin-top: 28px; }
  .row { grid-template-columns: 1fr; gap: 12px; padding-block: 28px; }
  .row .n { padding-top: 0; } .row .tags { grid-column: auto; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .facts dd { font-size: 1.3rem; }
  .clients ul { gap: 4px 22px; } .clients li::after { display: none !important; }
  details.faq .a { padding-right: 0; }
  .wa-float { right: 16px; bottom: 86px; height: 52px; min-width: 52px; padding: 0; } .wa-float span { display: none; }
  .to-top { left: 16px; bottom: 16px; width: 44px; height: 44px; }
  .cta-band .wrap { align-items: flex-start; }
}
