/* =========================================================================
   NORTHPEAK STUDIO — design system
   Light editorial. Cream + ink + pine. Fraunces display / Inter text.
   ========================================================================= */

:root {
  /* colour */
  --paper:      #F7F4EE;
  --paper-2:    #F0EBE1;
  --paper-3:    #EAE3D6;
  --ink:        #181612;
  --ink-soft:   #423D34;
  --muted:      #7B746A;
  --line:       #E2DBCD;
  --line-soft:  #ECE6DA;
  --accent:     #1F4D3A;
  --accent-2:   #2E6B52;
  --accent-tint:#E8EFE9;
  --amber:      #C2853B;
  --dark:       #161510;
  --dark-2:     #201E18;
  --dark-line:  #34302820;
  --on-dark:    #F1ECE2;
  --on-dark-mut:#A49B8C;

  /* type */
  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --step-5:  clamp(3.2rem, 2.1rem + 5.2vw, 6.4rem);

  /* space */
  --gap: clamp(1rem, 0.7rem + 1.5vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --container: 1180px;

  /* misc */
  --r-sm: 9px;
  --r:    16px;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgba(24,22,18,.04), 0 12px 30px -16px rgba(24,22,18,.18);
  --shadow-lg: 0 30px 70px -30px rgba(24,22,18,.32);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 460; line-height: 1.04; letter-spacing: -.015em; }
h1 { font-size: var(--step-5); font-optical-sizing: auto; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p  { color: var(--ink-soft); }

/* ----- layout ----- */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.bg-2 { background: var(--paper-2); }
.bg-3 { background: var(--paper-3); }

.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }
.eyebrow {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .55rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.mw-prose { max-width: 60ch; }
.mw-narrow { max-width: 46ch; }

/* numbered editorial section header */
.sec-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sec-head .num {
  font-family: var(--serif); font-size: var(--step--1); letter-spacing: .1em;
  color: var(--accent); border-top: 1px solid var(--line); padding-top: .9rem; width: 100%;
  display: flex; justify-content: space-between; font-weight: 500;
}
.sec-head h2 { max-width: 18ch; }
.sec-head.center { align-items: center; text-align: center; }
.sec-head.center h2 { max-width: 22ch; }

/* ----- buttons ----- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--bg); color: var(--fg);
  padding: .95em 1.5em; border-radius: 100px; border: 1px solid transparent;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .01em;
  cursor: pointer; transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease), color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(24,22,18,.5); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--accent { --bg: var(--accent); --fg: #fff; }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; background: transparent; }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--lg { padding: 1.1em 1.8em; font-size: var(--step-0); }
.btn--block { width: 100%; justify-content: center; }
.btn--on-dark.btn--ghost { --fg: var(--on-dark); border-color: #ffffff2e; }
.btn--on-dark.btn--ghost:hover { border-color: var(--on-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.textlink {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 600;
  font-size: var(--step--1); color: var(--ink); border-bottom: 1px solid var(--line);
  padding-bottom: 2px; transition: border-color .25s, gap .3s var(--ease);
}
.textlink:hover { border-color: var(--ink); gap: .7rem; }
.textlink .arrow { transition: transform .3s var(--ease); }
.textlink:hover .arrow { transform: translateX(3px); }

/* ----- header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.32rem; letter-spacing: -.02em; font-weight: 500; }
.brand .mark { width: 30px; height: 30px; }
.brand b { font-weight: 560; }
.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a:not(.btn) {
  font-size: var(--step--1); font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color .2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- hero ----- */
.hero { padding-block: clamp(3.5rem, 2rem + 9vw, 8rem) clamp(3rem, 2rem + 4vw, 5rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 100px; padding: .45em .9em;
  font-size: var(--step--1); font-weight: 500; color: var(--ink-soft);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 var(--accent-2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,107,82,.5); } 70% { box-shadow: 0 0 0 8px rgba(46,107,82,0); } 100% { box-shadow: 0 0 0 0 rgba(46,107,82,0); } }
.hero h1 { margin-top: 1.6rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-top: 1.5rem; max-width: 44ch; }
.hero .btn-row { margin-top: 2.2rem; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 3.2rem; flex-wrap: wrap; }
.hero-stats .stat .n { font-family: var(--serif); font-size: var(--step-2); line-height: 1; }
.hero-stats .stat .l { font-size: var(--step--1); color: var(--muted); margin-top: .4rem; max-width: 16ch; }

/* browser mock visual */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(.6deg);
  transition: transform .5s var(--ease);
}
.mock:hover { transform: rotate(0deg) translateY(-4px); }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.mock-bar .url { margin-left: .6rem; font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--line-soft); border-radius: 100px; padding: .25em .8em; flex: 1; }
.mock-body { padding: 1.4rem; display: grid; gap: 1rem; }
.mock-hero { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); border-radius: 12px; padding: 1.4rem; color: #fff; }
.mock-hero .t { font-family: var(--serif); font-size: 1.4rem; line-height: 1.05; max-width: 12ch; }
.mock-hero .s { font-size: .72rem; opacity: .85; margin-top: .5rem; }
.mock-hero .b { display: inline-block; margin-top: .9rem; background: #fff; color: var(--accent); font-size: .68rem; font-weight: 700; padding: .45em .9em; border-radius: 100px; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.mock-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 9px; padding: .8rem; }
.mock-card .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-tint); margin-bottom: .5rem; }
.mock-card .ln { height: 6px; border-radius: 4px; background: var(--line); margin-bottom: 5px; }
.mock-card .ln.s { width: 60%; }

/* ----- logo strip ----- */
.logos { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; opacity: .8; }
.logos .label { font-size: var(--step--1); color: var(--muted); max-width: 14ch; }
.logos .row { display: flex; gap: clamp(1.4rem, 4vw, 3rem); flex-wrap: wrap; align-items: center; }
.logos .row span { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-soft); letter-spacing: -.02em; }

/* ----- service cards ----- */
.cards { display: grid; gap: 1.2rem; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.8rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-soft); }
.card .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-tint); color: var(--accent); margin-bottom: 1.3rem; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.card p { font-size: var(--step-0); color: var(--ink-soft); }
.card .k { font-family: var(--serif); color: var(--accent); font-size: var(--step--1); display: block; margin-bottom: 1rem; }

/* feature list */
.feature-list { list-style: none; padding: 0; display: grid; gap: .9rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); font-size: var(--step-0); }
.feature-list .check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-top: 2px; }
.feature-list .check svg { width: 13px; height: 13px; }

/* ----- process ----- */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 4vw, 3rem); padding: 2rem 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .s-num { font-family: var(--serif); font-size: var(--step-3); color: var(--accent); line-height: 1; }
.step .s-body { display: grid; gap: .5rem; }
.step h3 { font-size: var(--step-1); }
.step p { max-width: 56ch; }
.step .s-meta { font-size: var(--step--1); color: var(--muted); font-weight: 500; }

/* ----- work grid ----- */
.filterbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  border-radius: 100px; padding: .5em 1.1em; font-size: var(--step--1); font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.work-card { cursor: pointer; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.work-thumb { aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--paper-2); }
/* live preview: render the real site at 4x card width, then scale to fit */
.work-thumb .frame { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; background: #fff; }
.work-tag { position: absolute; top: .8rem; left: .8rem; z-index: 3; font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; background: rgba(22,21,16,.72); color: #fff; padding: .4em .75em; border-radius: 100px; backdrop-filter: blur(6px); }
.work-meta { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem; }
.work-meta .nm { font-weight: 600; }
.work-meta .ar { color: var(--muted); transition: transform .3s var(--ease); }
.work-card:hover .work-meta .ar { transform: translate(3px,-3px); color: var(--accent); }

/* ----- pricing ----- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: stretch; }
.price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem; display: flex; flex-direction: column; gap: 1.3rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price.featured { background: var(--dark); color: var(--on-dark); border-color: var(--dark); transform: scale(1.02); }
.price.featured:hover { transform: scale(1.02) translateY(-4px); box-shadow: var(--shadow-lg); }
.price.featured p, .price.featured .price-sub { color: var(--on-dark-mut); }
.price.featured .feature-list li { color: var(--on-dark); }
.price.featured .feature-list .check { background: #ffffff18; color: #fff; }
.price.featured .amt { color: #fff; }
.price-tag { display: flex; align-items: center; justify-content: space-between; }
.price-tag .nm { font-family: var(--serif); font-size: var(--step-1); }
.badge { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #fff; padding: .4em .8em; border-radius: 100px; }
.price .amt { font-family: var(--serif); font-size: var(--step-3); line-height: 1; }
.price .amt small { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.price-sub { font-size: var(--step--1); color: var(--muted); margin-top: -.6rem; }
.price .feature-list { flex: 1; }

/* care plans / mini cards */
.mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.mini { border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; background: var(--paper); }
.mini .nm { font-weight: 600; margin-bottom: .3rem; }
.mini .amt { font-family: var(--serif); font-size: var(--step-2); }
.mini .amt small { font-size: var(--step--1); color: var(--muted); font-family: var(--sans); }
.mini p { font-size: var(--step--1); margin-top: .6rem; }

/* ----- testimonials ----- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem; display: flex; flex-direction: column; gap: 1.3rem; }
.quote .stars { color: var(--amber); display: flex; gap: 2px; }
.quote .stars svg { width: 16px; height: 16px; }
.quote blockquote { font-family: var(--serif); font-size: var(--step-1); line-height: 1.35; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote .av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.quote .who .nm { font-weight: 600; font-size: var(--step--1); }
.quote .who .ro { font-size: var(--step--1); color: var(--muted); }

/* ----- FAQ ----- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 26px; height: 26px; position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--accent); left: 50%; top: 50%; transition: transform .3s var(--ease); }
.faq summary .pm::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.faq summary .pm::after { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.faq details[open] summary .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.faq details > div { padding-bottom: 1.5rem; max-width: 70ch; color: var(--ink-soft); }

/* ----- dark CTA band ----- */
.cta-band { background: var(--dark); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(2.5rem, 5vw, 5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% -10%, rgba(46,107,82,.35), transparent 60%); pointer-events: none; }
.cta-band h2 { color: var(--on-dark); position: relative; max-width: 18ch; margin-inline: auto; }
.cta-band p { color: var(--on-dark-mut); position: relative; max-width: 52ch; margin: 1.2rem auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; position: relative; }

/* ----- forms ----- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.2rem; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field label .req { color: var(--accent); }
.field .hint { font-size: var(--step--1); color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .85em 1em; font-size: var(--step-0); transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-tint); }
.textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.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='%237B746A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.6em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: var(--step--1); color: var(--muted); margin-top: .4rem; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: #c0392b; box-shadow: 0 0 0 4px #c0392b18; }
.field .err { color: #c0392b; font-size: var(--step--1); display: none; }
.field.invalid .err { display: block; }

.form-success { text-align: center; padding: 2rem 1rem; display: none; }
.form-success.show { display: block; animation: pop .5s var(--ease); }
.form-success .tick { width: 64px; height: 64px; margin: 0 auto 1.4rem; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.form-success .tick svg { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* newsletter inline */
.subscribe { display: flex; gap: .6rem; max-width: 420px; }
.subscribe .input { background: #ffffff10; border-color: #ffffff2a; color: var(--on-dark); }
.subscribe .input::placeholder { color: var(--on-dark-mut); }
.subscribe .input:focus { border-color: var(--on-dark); box-shadow: none; background: #ffffff18; }
.subscribe-msg { font-size: var(--step--1); margin-top: .7rem; min-height: 1.2em; }

/* ----- split / about ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.figure { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 4/5; position: relative; }
.figure .portrait { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: var(--step-5); color: var(--accent); background: linear-gradient(160deg, var(--accent-tint), var(--paper-2)); }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.stat-strip .n { font-family: var(--serif); font-size: var(--step-3); color: var(--accent); line-height: 1; }
.stat-strip .l { font-size: var(--step--1); color: var(--muted); margin-top: .5rem; }

/* ----- footer ----- */
.site-footer { background: var(--dark); color: var(--on-dark); padding-block: clamp(3.5rem, 5vw, 5.5rem) 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid #ffffff18; }
.footer-brand .brand { color: var(--on-dark); }
.footer-brand p { color: var(--on-dark-mut); margin-top: 1rem; max-width: 32ch; font-size: var(--step--1); }
.footer-col h4 { font-family: var(--sans); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-mut); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col a { display: block; color: var(--on-dark); margin-bottom: .7rem; font-size: var(--step--1); opacity: .85; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; flex-wrap: wrap; }
.footer-bottom p { color: var(--on-dark-mut); font-size: var(--step--1); }

/* ----- page hero (interior) ----- */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2rem, 4vw, 3.5rem); }
.page-hero h1 { font-size: var(--step-4); max-width: 16ch; }
.page-hero .lead { margin-top: 1.3rem; }

/* ----- reveal animation -----
   Progressive enhancement: content is visible by default. Only when JS adds
   `.js` to <html> do we hide-then-reveal, so content can never get stuck. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ----- modal (work preview) ----- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1.4rem; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(24,22,18,.55); backdrop-filter: blur(4px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; background: var(--paper); border-radius: var(--r-lg); max-width: 640px; width: 100%; overflow: hidden; box-shadow: var(--shadow-lg); animation: pop .4s var(--ease); max-height: 90vh; overflow-y: auto; }
.modal-head { padding: 1.6rem; color: #fff; }
.modal-head .tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.modal-head h3 { color: #fff; font-size: var(--step-2); margin-top: .4rem; }
.modal-body { padding: 1.6rem; }
.modal-body p { margin-bottom: 1.2rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%; background: #ffffff22; border: 1px solid #ffffff33; color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 2; transition: background .2s; }
.modal-close:hover { background: #ffffff3a; }

/* ----- responsive ----- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .quotes, .price-grid, .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .price.featured { transform: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .figure { max-width: 380px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 1.4rem; padding: 1.6rem 1.4rem 2rem;
    border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .4s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav-open .nav-links { transform: none; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
  .nav-desktop-cta { display: none; }
  .cards.cols-2, .cards.cols-3, .cards.cols-4,
  .work-grid, .quotes, .price-grid, .mini-grid, .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .step { grid-template-columns: 1fr; gap: .6rem; }
}
