/* Forja Arquitetura · public website.
   Calm, light and architectural: white and off-white, black type, a champagne gold accent and deep black
   for the quiet bands. Class names are shared with the scripts (booking, portfolio, visit): keep them. */
:root {
  --paper: #ffffff;
  --paper-2: #f6f5f2;
  --white: #ffffff;
  --stone: #e6e3dc;
  --ink: #141414;
  --ink-2: #444444;
  --muted: #7a7a7a;
  --accent: #a8854d;
  --accent-2: #8a6c3c;
  --accent-soft: rgba(168,133,77,.1);
  --accent-light: #d9bf8c;
  --green: #0d0d0d;
  --green-2: #000000;
  --on-dark: #f5f5f5;
  --on-dark-2: #d9bf8c;
  --line: rgba(20,20,20,.12);
  --line-2: rgba(20,20,20,.24);
  --line-dark: rgba(255,255,255,.2);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 em, h1 em { font-style: italic; color: var(--accent); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.2em; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 48px); margin-inline: auto; }
.eyebrow {
  font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.4rem;
}
.section-head { text-align: center; margin-bottom: 4rem; }
.section-sub { max-width: 620px; margin: 1.4rem auto 0; color: var(--ink-2); }
.section-sub.left { margin-left: 0; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; text-decoration: none; text-align: center; padding: 1.15em 2.2em; border: 1px solid var(--accent);
  cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn-gold { background: var(--accent); color: #ffffff; }
.btn-gold:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost.btn-light { color: #ffffff; border-color: rgba(255,255,255,.55); }
.btn-ghost.btn-light:hover { background: rgba(255,255,255,.12); color: #ffffff; border-color: #ffffff; }
.btn-block { width: 100%; }

/* Nav: white over the photographs (home hero, project hero), charcoal everywhere else */
.nav {
  --nav-fg: var(--ink); --nav-fg-2: var(--ink-2);
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 clamp(1rem, 4vw, 3.5rem); color: var(--nav-fg);
  transition: background .5s, height .5s, border-color .5s, color .5s;
  border-bottom: 1px solid transparent;
}
body:not([data-page="home"]):not([data-page="project"]) .nav { background: rgba(240,240,240,.94); border-color: var(--line); }
body[data-page="home"] .nav:not(.scrolled):not(.open), body[data-page="project"] .nav:not(.scrolled):not(.open) { --nav-fg: #ffffff; --nav-fg-2: rgba(255,255,255,.85); }
.nav.scrolled {
  background: rgba(240,240,240,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  height: 64px; border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--nav-fg); min-width: 0; flex: none; }
.brand-mono {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border: 1px solid currentColor; color: inherit;
}
.brand-mono svg { width: 26px; height: 26px; }
.brand-mono path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.brand-mono.big { width: 60px; height: 60px; margin-bottom: 1.2rem; color: var(--accent-light); }
.brand-mono.big svg { width: 36px; height: 36px; }
.brand-name { font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.brand-name i { font-style: normal; font-weight: 400; }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--nav-fg-2); position: relative; transition: color .3s; white-space: nowrap;
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: currentColor; transition: width .4s var(--ease); }
.nav-links a:hover { color: var(--nav-fg); }
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-cta { color: var(--nav-fg); font-weight: 600; }
.lang { display: flex; align-items: center; gap: .3rem; color: var(--nav-fg-2); font-size: .72rem; }
.lang button { background: none; border: 0; color: var(--nav-fg-2); cursor: pointer; font: 500 .72rem var(--sans); letter-spacing: .18em; padding: .35rem; opacity: .7; }
.lang button[aria-pressed="true"] { color: var(--nav-fg); opacity: 1; font-weight: 700; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden;
  padding: 9rem 0 clamp(4rem, 10vh, 7rem); color: #ffffff;
}
.hero-bg {
  position: absolute; inset: -4%;
  background:
    linear-gradient(180deg, rgba(20,20,20,.5) 0%, rgba(20,20,20,.12) 38%, rgba(20,20,20,.7) 100%),
    url("../img/hero-house.jpg") center 55%/cover, #575757;
  animation: drift 32s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.06) translateY(-1%); } }
.hero-inner { position: relative; width: min(1200px, 100% - 48px); margin-inline: auto; text-shadow: 0 1px 22px rgba(0,0,0,.35); }
.hero-inner .btn { text-shadow: none; }
.pj-hero-inner { text-shadow: 0 1px 22px rgba(0,0,0,.35); }
.hero .eyebrow { color: rgba(255,255,255,.88); }
.hero-title { font-size: clamp(3.6rem, 12vw, 9rem); line-height: .88; margin-bottom: 2rem; color: #ffffff; }
.hero-title span { display: block; }
.hero-title em { display: block; color: #ffffff; padding-left: .55em; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.9); max-width: 560px; margin: 0 0 2.6rem; line-height: 1.65; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 2.2rem; right: clamp(1.5rem, 4vw, 3.5rem); width: 1px; height: 64px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #ffffff; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Manifesto */
.manifesto { padding: clamp(6rem, 12vw, 10rem) 0; text-align: center; }
.ornament { display: block; width: 48px; height: 1px; background: var(--accent); margin: 0 auto 2.4rem; }
.manifesto-text { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.25; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 4.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 3.2rem; color: var(--accent); line-height: 1.1; margin-bottom: .4rem; }
.stats span { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }

/* Studio / Helena */
.maker { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--paper-2); }
.maker-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.maker-portrait { margin: 0; position: relative; }
.maker-portrait::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--line-2); z-index: 0; }
.maker-portrait img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center 25%; background: var(--stone); }
.maker-portrait figcaption { margin-top: 2.2rem; font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.maker-copy h2 { margin-bottom: 2.2rem; }
.maker-copy > p { color: var(--ink-2); }
.maker-copy blockquote { margin: 2.6rem 0 1.2rem; padding-left: 1.6rem; border-left: 2px solid var(--accent); }
.maker-copy blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.65rem; line-height: 1.35; color: var(--ink); margin-bottom: .6rem; }
.maker-copy cite { font-style: normal; font-size: .68rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.maker-copy .signature { font-family: "Mrs Saint Delafield", cursive; font-size: 3.4rem; line-height: 1; color: var(--ink); opacity: .85; margin: 1.4rem 0 0; transform: rotate(-3deg); transform-origin: left; }

/* Approach / principles (deep green) */
.hands { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--green); color: var(--on-dark); }
.hands-img { background-color: var(--green-2); background-size: cover; background-position: center; min-height: 620px; }
.hands-copy { padding: clamp(3.5rem, 7vw, 7rem); align-self: center; }
.hands .eyebrow { color: var(--accent-light); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2rem; }
.principles li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1rem; }
.principles span { font-family: var(--serif); font-style: italic; color: var(--accent-light); font-size: 1.5rem; line-height: 1.2; }
.principles h3 { margin-bottom: .45rem; color: #ffffff; }
.principles p { color: var(--on-dark-2); margin: 0; font-size: .97rem; }

/* Services */
.atelier { padding: clamp(6rem, 11vw, 10rem) 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { position: relative; padding: 0 0 2.2rem; background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(36,36,36,.35); }
.card-photo { aspect-ratio: 3/2; overflow: hidden; margin-bottom: 1.7rem; background: var(--stone); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-photo img { transform: scale(1.05); }
.card h3, .card p { padding-inline: 1.8rem; }
.card h3 { margin-bottom: .8rem; }
.card p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Quote band */
.band { position: relative; padding: clamp(6rem, 13vw, 11rem) 1.5rem; text-align: center; overflow: hidden; background: var(--green); color: var(--on-dark); }
.band-bg {
  position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000000 10%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000000 10%, transparent 70%);
}
.band-quote { position: relative; max-width: 960px; margin: 0 auto; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.2; }

/* Materials and finishes */
.materials { padding: clamp(6rem, 11vw, 10rem) 0; background: var(--paper-2); }
.materials-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.materials-board { margin: 0; }
.materials-board img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; background: var(--stone); }
.materials-copy h2 { margin-bottom: 1.6rem; }
.materials-lead { color: var(--ink-2); }
.mat-list { margin: 2rem 0 0; }
.mat-list div { padding: 1rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; }
.mat-list dt { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.mat-list dd { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* Certificate section */
.certsec { padding: clamp(5rem, 10vw, 8rem) 0; }
.certsec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.certsec-thumb { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; justify-self: center; width: min(320px, 100%); }
.certsec-paper {
  position: relative; display: grid; justify-items: center; align-content: start; gap: .7rem; aspect-ratio: 3/4; padding: 2.2rem 2rem;
  background: var(--white); border: 1px solid var(--line-2); outline: 1px solid var(--line); outline-offset: -10px;
  box-shadow: 0 30px 60px -36px rgba(36,36,36,.45); transform: rotate(-3deg); transition: transform .6s var(--ease);
}
.certsec-thumb:hover .certsec-paper, .certsec-thumb:focus-visible .certsec-paper { transform: rotate(0) translateY(-6px); }
.certsec-mono { font-family: var(--serif); font-size: 1.4rem; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); margin-bottom: .8rem; }
.certsec-l { display: block; height: 2px; background: var(--stone); }
.certsec-l.w1 { width: 80%; } .certsec-l.w2 { width: 64%; } .certsec-l.w3 { width: 40%; height: 6px; background: var(--ink-2); margin: .4rem 0; }
.certsec-seal { position: absolute; right: 1.6rem; bottom: 1.6rem; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e3c995, var(--accent-2) 70%); }

/* Testimonials (illustrative) */
.testimonials { padding: clamp(6rem, 11vw, 9rem) 0; background: var(--paper-2); }
.tst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.tst { position: relative; margin: 0; padding: 3.2rem 2rem 2rem; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tst blockquote { margin: 0 0 1.6rem; font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.35; flex: 1; }
.tst figcaption { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 1rem; border-top: 1px solid var(--line); }
.tst-badge { position: absolute; top: 1rem; right: 1rem; font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(168,133,77,.5); padding: .25rem .6rem; border-radius: 999px; }
.tst-note { margin: 2rem auto 0; max-width: 62ch; font-size: .82rem; color: var(--muted); text-align: center; }

/* Start your project: booking and the message form */
.commission { padding: clamp(6rem, 11vw, 10rem) 0; }
.commission-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.commission-intro h2 { margin-bottom: 1.8rem; }
.commission-intro p { color: var(--ink-2); }
.assurances { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: .9rem; }
.assurances li { padding-left: 1.8rem; position: relative; font-size: .95rem; }
.assurances li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 10px; border: 1px solid var(--accent); transform: rotate(45deg); }
.form { background: transparent; padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.5rem; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.form label, .bk-form label { display: grid; gap: .5rem; font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.form input, .form select, .form textarea, .bk-form input, .bk-form select, .bk-form textarea {
  width: 100%; min-width: 0; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--line-2);
  padding: .65rem 0; font: 400 1rem var(--sans); letter-spacing: normal; text-transform: none; border-radius: 0;
  transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.form select, .bk-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.6rem;
}
.form select option, .bk-form select option { background: var(--white); color: var(--ink); }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus, .bk-form input:focus, .bk-form select:focus, .bk-form textarea:focus { outline: none; border-color: var(--accent); }
.form .invalid, .bk-form .invalid { border-color: #656565; }
.form label.req > span::after, .bk-form label.req > span::after { content: " *"; color: var(--accent); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin: 0; min-height: 1.5em; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--green); text-align: center; }
.form-status.error { color: #656565; }

/* FAQ */
.faq { padding: clamp(6rem, 11vw, 9rem) 0; background: var(--paper-2); }
.faq-list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--accent), var(--accent)) center/100% 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center/1.5px 100% no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq details p { margin: 0 0 1.6rem; color: var(--ink-2); max-width: 68ch; }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark); padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer p { margin: 0 0 .4rem; color: var(--on-dark-2); font-size: .92rem; }
.footer-name { font-family: var(--sans); font-weight: 600; font-size: .95rem !important; color: var(--on-dark) !important; letter-spacing: .26em; text-transform: uppercase; }
.footer-tag, .footer-h { font-size: .66rem !important; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-light) !important; }
.footer-h { margin-bottom: 1rem !important; }
.footer a { text-decoration: none; }
.footer a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.copyright { text-align: center; margin: 4rem 0 0; font-size: .72rem; letter-spacing: .12em; color: rgba(237,237,237,.5); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}

/* Journey: how a project unfolds */
.journey { padding: clamp(6rem, 11vw, 10rem) 0; position: relative; }
.phases {
  list-style: none; margin: 0 auto 5rem; padding: .4rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem;
  max-width: 820px; position: sticky; top: 76px; z-index: 5;
  background: rgba(250,250,250,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px;
}
.phases li { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .7rem .5rem; border-radius: 999px; color: var(--muted); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; transition: all .5s var(--ease); text-align: center; }
.phases li span { font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--accent); }
.phases li b { font-weight: 600; }
.phases li.active { background: var(--accent); color: #ffffff; }
.phases li.active span { color: #ffffff; }
.phases li.done { color: var(--ink); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 7rem; row-gap: 1rem; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line-2); transform: translateX(-50%); }
.tl-progress { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); pointer-events: none; }
.tl-progress span { display: block; width: 2px; margin-left: -.5px; height: calc(var(--progress, 0) * 100%); background: var(--accent); }
.step { position: relative; }
.step.left { grid-column: 1; }
.step.right { grid-column: 2; margin-top: 9rem; }
.step.left + .step.right { margin-top: 9rem; }
.step-feature + .step.right { margin-top: 0; }
.node {
  position: absolute; top: 2rem; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line-2); color: var(--muted); font-family: var(--serif); font-size: 1.2rem; z-index: 2; transition: all .6s var(--ease);
}
.step.left .node { right: calc(-3.5rem - 26px); }
.step.right .node { left: calc(-3.5rem - 26px); }
.step.lit .node { background: var(--accent); border-color: var(--accent); color: #ffffff; box-shadow: 0 0 0 8px var(--accent-soft); }
.step-card { position: relative; padding: 2.2rem 2.2rem 2.4rem; background: var(--white); border: 1px solid var(--line); transition: border-color .6s var(--ease), transform .6s var(--ease); }
.step-card::before { content: ""; position: absolute; top: calc(2rem + 26px); width: 3.5rem; height: 1px; background: var(--line-2); }
.step.left .step-card::before { right: -3.5rem; }
.step.right .step-card::before { left: -3.5rem; }
.step.lit .step-card { border-color: rgba(20,20,20,.35); }
.step-card:hover { transform: translateY(-4px); }
.step-icon { width: 42px; height: 42px; margin-bottom: 1.3rem; }
.step-icon path, .loop svg path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.step-phase { font-size: .64rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.step-card h3 { margin-bottom: .8rem; font-size: 1.8rem; }
.step-card > p:last-of-type { color: var(--ink-2); margin: 0; font-size: .97rem; }
.step-photo { display: block; height: auto; width: calc(100% + 4.4rem); max-width: none; margin: -2.2rem -2.2rem 1.8rem; aspect-ratio: 3/2; object-fit: cover; background: var(--stone); }

/* Approval loop */
.loop { margin-top: 1.8rem; display: grid; gap: .8rem; }
.loop-path { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border: 1px dashed var(--line-2); }
.loop-path svg { width: 26px; height: 26px; flex: none; }
.loop-path b { display: block; font-weight: 600; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.loop-path span { font-size: .9rem; color: var(--ink-2); }
.loop-change svg { animation: spin 6s linear infinite; }
.loop-ok { border-style: solid; border-color: rgba(20,20,20,.4); background: var(--accent-soft); }
.loop-note { margin: .4rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent) !important; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Before / after visualiser */
.step-feature { grid-column: 1 / -1; position: relative; z-index: 3; margin: 3rem 0 2rem; }
.compare { position: relative; overflow: hidden; background: var(--stone); box-shadow: 0 40px 80px -40px rgba(36,36,36,.5); touch-action: pan-y; aspect-ratio: 3/2; }
.compare-img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.compare-after-layer { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-after-layer .compare-img { height: 100%; object-fit: cover; }
.compare-label { position: absolute; top: 1rem; padding: .45rem .9rem; font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; background: rgba(250,250,250,.92); color: var(--ink); pointer-events: none; }
.compare-after { left: 1rem; color: var(--accent); }
.compare-before { right: 1rem; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #ffffff; transform: translateX(-1px); pointer-events: none; }
.compare-handle i { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.compare-handle i::before, .compare-handle i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 7px solid transparent; transform: translateY(-50%); }
.compare-handle i::before { left: 8px; border-right-color: #ffffff; }
.compare-handle i::after { right: 8px; border-left-color: #ffffff; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within .compare-handle i { outline: 2px solid var(--ink); outline-offset: 3px; }
.compare-note { text-align: center; margin: 1.2rem 0 0; font-size: .85rem; color: var(--muted); }
.compare-note span:first-child { color: var(--accent); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .68rem; }

.journey-end { text-align: center; margin-top: 6rem; }
.journey-end p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; max-width: 760px; margin: 0 auto 2.4rem; }

/* Portfolio: filters, grid, cards */
.latest { padding: clamp(6rem, 11vw, 10rem) 0; background: var(--paper-2); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 3rem; }
.filters button {
  font: 600 .66rem var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); transition: all .4s var(--ease);
}
.filters button span { color: var(--accent); margin-left: .35rem; letter-spacing: 0; }
.filters button:hover { border-color: var(--accent); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.filters button[aria-pressed="true"] span { color: var(--accent-light); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.project-card { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.project-card:hover, .project-card:focus-visible { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(36,36,36,.35); outline: none; }
.project-card-img { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--stone); }
.project-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.pc-before { opacity: 0; }
.project-card:hover .pc-before, .project-card:focus-visible .pc-before { opacity: 1; }
.project-card:hover img { transform: scale(1.04); }
.pc-cat, .pc-flag { position: absolute; top: .9rem; padding: .4rem .75rem; font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; background: rgba(250,250,250,.92); color: var(--ink); }
.pc-cat { left: .9rem; }
.pc-sample { position: absolute; left: .9rem; bottom: .9rem; padding: .35rem .7rem; font-size: .56rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: rgba(36,36,36,.8); color: #ffffff; }
.pj-sample-note { margin: 1.4rem auto 0; max-width: 62ch; font-size: .82rem; color: var(--muted); text-align: center; }
.pc-flag { right: .9rem; opacity: 0; transition: opacity .6s var(--ease); }
.project-card:hover .pc-flag { opacity: 1; }
.project-card-body { padding: 1.5rem 1.5rem 1.7rem; }
.project-card-body h3 { margin-bottom: .55rem; font-size: 1.5rem; }
.project-card-body p { color: var(--ink-2); font-size: .93rem; margin: 0 0 1rem; }
.project-card-body .pc-meta { margin: 0; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.latest-more { text-align: center; margin-top: 3.5rem; }
.pj-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.35rem; }

/* Sub-pages */
.subpage { padding-top: var(--nav-h); }
.page-hero { padding: clamp(4.5rem, 9vw, 7rem) 0 0; text-align: center; }
.page-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); }
.latest-page { padding-top: 4rem; background: var(--paper); }
.pj-loading { min-height: 60vh; padding-top: 6rem; }

/* Single project */
.pj-hero { position: relative; min-height: 76vh; display: grid; align-items: end; overflow: hidden; margin-top: calc(-1 * var(--nav-h)); color: #ffffff; background: #575757; }
.pj-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.pj-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.5) 0%, rgba(20,20,20,.1) 40%, rgba(20,20,20,.78) 100%); }
.pj-hero-inner { position: relative; padding: 10rem 0 4rem; }
.pj-hero .eyebrow { color: rgba(255,255,255,.88); }
.pj-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); margin-bottom: 1.2rem; }
.pj-lead { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: rgba(255,255,255,.9); max-width: 680px; margin: 0; }
.pj-back { display: inline-block; margin-bottom: 2rem; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.85); }
.pj-back:hover { color: #ffffff; }
.pj-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; background: var(--white); border: 1px solid var(--line); border-top: 0; }
.pj-meta div { padding: 1.5rem 1.4rem; border-left: 1px solid var(--line); }
.pj-meta div:first-child { border-left: 0; }
.pj-meta dt { font-size: .6rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: .45rem; }
.pj-meta dd { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; }
.pj-sample { margin: 1.4rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.pj-body { max-width: 760px; margin: 5rem auto; }
.pj-body h2, .pj-pairs h2 { margin-bottom: 1.6rem; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.pj-body > p { font-size: 1.06rem; color: var(--ink-2); }
.pj-tags { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pj-tags li { font-size: .76rem; color: var(--ink-2); border: 1px solid var(--line-2); padding: .3rem .8rem; border-radius: 999px; }
.pj-pairs { text-align: center; }
.pj-pair { margin: 2.5rem 0 0; }
.pj-pair figcaption { margin-top: 1rem; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-2); }
.pj-cta { text-align: center; margin: 6rem 0; }
.pj-cta p { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 2rem; }
.pj-related { padding-bottom: 7rem; }
.pj-related .eyebrow { text-align: center; }
.pj-missing { padding: 10rem 0; text-align: center; }

/* Certificate of authorship (sample dialog) */
.cert-link {
  font: inherit; color: var(--accent-light); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(190,190,190,.5); text-underline-offset: 4px; transition: text-decoration-color .3s;
}
.cert-link:hover, .cert-link:focus-visible { text-decoration-color: var(--accent-light); outline: none; }
body.modal-open { overflow: hidden; }
.cert-modal { width: min(780px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; overflow: auto; color: var(--ink); }
.cert-modal::backdrop { background: rgba(26,26,26,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cert-modal[open] { animation: certIn .5s var(--ease); }
@keyframes certIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.cert-close { position: sticky; top: 0; float: right; margin: 0 0 -46px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #ffffff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.cert-close:hover { background: var(--accent); }
.cert { padding: 14px; background: var(--white); box-shadow: 0 40px 90px rgba(0,0,0,.4); }
.cert-inner { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 3.2rem) clamp(1.3rem, 5vw, 3.4rem); border: 1px solid var(--ink-2); outline: 1px solid var(--line-2); outline-offset: -8px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; background-color: var(--white); }
.cert-inner::before { content: ""; position: absolute; inset: 0; background: rgba(250,250,250,.86); }
.cert-inner > * { position: relative; }
.cert-watermark { position: absolute !important; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); font-family: var(--serif); font-size: clamp(4rem, 14vw, 8rem); letter-spacing: .16em; text-transform: uppercase; color: rgba(20,20,20,.08); pointer-events: none; white-space: nowrap; }
.cert-head { text-align: center; }
.cert-mono { display: inline-grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--accent); font-family: var(--serif); font-size: 1.5rem; color: var(--accent); }
.cert-house { margin: .9rem 0 1.2rem; font-size: .6rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.cert-head h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); color: var(--ink); }
.cert-no { margin: .6rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-2); }
.cert-intro { max-width: 540px; margin: 1.6rem auto 1.8rem; text-align: center; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; color: var(--ink-2); }
.cert-fields { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2rem; }
.cert-fields div { padding: .7rem 0; border-top: 1px solid var(--line-2); min-width: 0; }
.cert-fields dt { font-size: .56rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.cert-fields dd { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.cert-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-top: 2.2rem; }
.cert-sign { min-width: 0; }
.cert-signature { margin: 0; font-family: "Mrs Saint Delafield", cursive; font-size: clamp(2.4rem, 7vw, 3.3rem); line-height: 1; color: var(--ink); }
.cert-role { margin: .3rem 0 0; padding-top: .5rem; border-top: 1px solid var(--ink-2); font-size: .58rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.cert-seal { flex: none; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; transform: rotate(-12deg); background: radial-gradient(circle at 35% 30%, #e3c995, var(--accent-2) 70%); box-shadow: inset 0 0 0 6px rgba(0,0,0,.1), 0 4px 10px rgba(43,43,43,.3); }
.cert-seal span { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(236,236,236,.4); font-family: var(--serif); font-size: 1.5rem; color: rgba(240,240,240,.9); }
.cert-note { margin: 1rem 0 0; text-align: center; font-size: .8rem; color: var(--on-dark); }

/* Client area link and mobile header */
.nav-links .nav-portal { border: 1px solid currentColor; padding: .55rem .9rem; border-radius: 999px; }
.nav-links .nav-portal::after { display: none; }
.nav-mobile { display: none; align-items: center; gap: .7rem; }
.nav-login { font: 600 .62rem var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--nav-fg); border: 1px solid currentColor; border-radius: 999px; padding: .6rem 1rem; white-space: nowrap; }
.nav-toggle { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-content: center; gap: 7px; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--nav-fg); transition: transform .35s var(--ease); }
.nav.open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
body.menu-open { overflow: hidden; }
@keyframes menuIn { from { opacity: 0; } }

/* ================= Visit booking ================= */
.bk-card { background: var(--white); border: 1px solid var(--line); padding: 0; box-shadow: 0 30px 60px -45px rgba(36,36,36,.4); }
.bk-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.bk-tabs button { background: none; border: 0; padding: 1.15rem .8rem; cursor: pointer; font: 600 .68rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .35s var(--ease); }
.bk-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.booking, .bk-card[data-visit] { padding: clamp(1.3rem, 3vw, 2.3rem); }
.bk-card[data-visit] { padding: clamp(1.5rem, 4vw, 3rem); }
.bk-steps { list-style: none; display: flex; gap: 1.3rem; margin: 0 0 1.3rem; padding: 0; flex-wrap: wrap; }
.bk-steps li { display: flex; align-items: center; gap: .5rem; font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.bk-steps span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: .64rem; letter-spacing: 0; transition: all .4s var(--ease); }
.bk-steps li.now { color: var(--ink); } .bk-steps li.now span { border-color: var(--accent); color: var(--accent); }
.bk-steps li.done span { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.bk-urgency { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 1px solid var(--line); margin-bottom: 1.3rem; font-family: var(--serif); font-size: 1.2rem; color: var(--ink-2); animation: bkIn .6s var(--ease) both; }
.bk-urgency.hot { border-color: rgba(20,20,20,.45); color: var(--ink); background: linear-gradient(90deg, var(--accent-soft), transparent); }
.bk-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; animation: bkPulse 1.8s infinite; }
.bk-urgency.hot .bk-pulse { background: var(--accent); }
@keyframes bkPulse { 0% { box-shadow: 0 0 0 0 rgba(20,20,20,.45); } 70% { box-shadow: 0 0 0 10px rgba(20,20,20,0); } 100% { box-shadow: 0 0 0 0 rgba(20,20,20,0); } }
@keyframes bkIn { from { opacity: 0; transform: translateY(8px); } }
.bk-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.bk-cal-head b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.bk-cal-head b::first-letter { text-transform: uppercase; }
.bk-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--ink); font-size: 1.2rem; cursor: pointer; transition: all .3s; }
.bk-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.bk-nav:disabled { opacity: .25; cursor: default; }
.bk-week, .bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bk-week span { text-align: center; font-size: .58rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .3rem 0; }
.bk-grid.is-loading { opacity: .4; pointer-events: none; }
.bk-day { position: relative; min-width: 0; aspect-ratio: 1 / 1.05; border: 1px solid transparent; background: none; color: var(--muted); font: inherit; cursor: default; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; transition: all .3s var(--ease); }
.bk-day b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.bk-day small { font-size: .5rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bk-day.empty { visibility: hidden; }
.bk-day.off { opacity: .35; }
.bk-day.full b { text-decoration: line-through; text-decoration-color: var(--line-2); }
.bk-day.full { opacity: .55; }
.bk-day.avail { color: var(--ink); border-color: var(--line); cursor: pointer; background: var(--accent-soft); }
.bk-day.avail small { color: var(--accent); }
.bk-day.avail:hover { border-color: var(--accent); transform: translateY(-2px); }
.bk-day.last { border-color: rgba(20,20,20,.6); }
.bk-day.today::after { content: ""; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.bk-day.sel { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.bk-day.sel small, .bk-day.sel.last small { color: #ffffff; }
.bk-dots { display: flex; gap: 2px; margin-top: 2px; }
.bk-dots em { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.bk-times { min-height: 220px; }
.bk-times.flash { animation: bkIn .45s var(--ease); }
.bk-slots-head { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .9rem; }
.bk-slots-head b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.bk-slots-head span { font-size: .8rem; color: var(--muted); }
.bk-slots-head span.hot { color: var(--accent); }
.bk-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.bk-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: .75rem .5rem; border: 1px solid var(--line-2); background: none; color: var(--ink); cursor: pointer; font: inherit; transition: all .3s var(--ease); animation: bkIn .4s var(--ease) both; }
.bk-slot:nth-child(2) { animation-delay: .04s; } .bk-slot:nth-child(3) { animation-delay: .08s; } .bk-slot:nth-child(4) { animation-delay: .12s; } .bk-slot:nth-child(n+5) { animation-delay: .16s; }
.bk-slot b { font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-slot small { color: var(--muted); font-size: .56rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bk-slot:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.bk-slot.taken { color: var(--muted); cursor: not-allowed; opacity: .55; }
.bk-slot.taken b { text-decoration: line-through; }
.bk-slot.sel { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.bk-slot.sel small { color: #ffffff; }
.bk-hint { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; text-align: center; padding: 1.4rem 0; }
.bk-meta { margin: 1.2rem 0 0; font-size: .74rem; color: var(--muted); }
.bk-next { margin-top: 1.2rem; animation: bkIn .45s var(--ease); }
.bk-loading { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 3rem 0; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.bk-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: bkSpin .8s linear infinite; }
@keyframes bkSpin { to { transform: rotate(360deg); } }
.bk-chosen { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid rgba(20,20,20,.45); background: var(--accent-soft); margin-bottom: 1.3rem; animation: bkIn .45s var(--ease); }
.bk-chosen small { display: block; font-size: .58rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.bk-chosen b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.bk-chosen b::first-letter, .bk-when::first-letter, .vm-details dd::first-letter, .bk-slots-head b::first-letter { text-transform: uppercase; }
.bk-chosen span { font-size: .78rem; color: var(--muted); }
.bk-link { background: none; border: 0; color: var(--accent); cursor: pointer; font: 600 .64rem var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.bk-form { display: grid; gap: 1.2rem; animation: bkIn .5s var(--ease); }
.bk-form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
.bk-consent { display: flex !important; gap: .7rem; align-items: flex-start; font-size: .84rem !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink-2) !important; }
.bk-consent input { width: auto; margin-top: .25rem; accent-color: var(--accent); -webkit-appearance: checkbox; appearance: auto; }
.bk-consent.invalid span { color: #656565; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #ffffff; animation: bkSpin .8s linear infinite; }
.btn-ghost.is-busy::after { border-color: var(--line); border-top-color: var(--accent); }
.bk-done { text-align: center; padding: 1rem 0 .6rem; }
.bk-check svg { width: 72px; height: 72px; margin: 0 auto 1.2rem; display: block; }
.bk-check circle { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: bkDraw .8s var(--ease) forwards; }
.bk-check path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: bkDraw .5s .6s var(--ease) forwards; }
@keyframes bkDraw { to { stroke-dashoffset: 0; } }
.bk-done h3 { font-size: 2.1rem; margin-bottom: .6rem; animation: bkIn .6s .3s var(--ease) both; }
.bk-when { font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--accent); animation: bkIn .6s .4s var(--ease) both; }
.bk-done p { color: var(--ink-2); animation: bkIn .6s .5s var(--ease) both; }
.bk-done-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; animation: bkIn .6s .6s var(--ease) both; }
.bk-sub { font-family: var(--serif); font-size: 1.5rem; text-align: center; margin-bottom: 1rem; }
/* visit page */
.visit-manage { padding: 3rem 0 8rem; }
.vm-status { display: inline-block; margin-bottom: 1.4rem; font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: .45rem .9rem; border: 1px solid currentColor; border-radius: 999px; color: var(--green); }
.vm-status.st-cancelled { color: #656565; } .vm-status.st-completed { color: var(--muted); }
.vm-details { margin: 0 0 2rem; }
.vm-details div { padding: 1rem 0; border-top: 1px solid var(--line); }
.vm-details dt { font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.vm-details dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; }
.vm-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.vm-cancel { display: grid; gap: 1rem; margin-top: 1rem; animation: bkIn .4s var(--ease); }
.vm-cancel label { display: grid; gap: .4rem; font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.vm-cancel textarea { background: transparent; border: 1px solid var(--line-2); color: var(--ink); padding: .8rem; font: 400 1rem var(--sans); }
.vm-notice { border: 1px solid rgba(63,63,63,.4); background: rgba(63,63,63,.07); padding: .9rem 1.1rem; margin-bottom: 1.4rem; color: var(--ink); animation: bkIn .5s var(--ease); }
.btn-danger-site { border-color: rgba(101,101,101,.6); color: #656565; background: transparent; }
.btn-danger-site:hover { background: rgba(101,101,101,.08); }
.visit-manage .narrow, body[data-page="visit"] .page-hero .narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .bk-urgency, .bk-slot, .bk-form, .bk-done *, .bk-check *, .loop-change svg { animation: none !important; stroke-dashoffset: 0 !important; } }

input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"] { color-scheme: light; }

/* ================= Responsive ================= */
/* The full menu needs about 1400px beside the brand; below that it tightens, then folds into the menu button. */
@media (max-width: 1480px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { letter-spacing: .12em; }
}
@media (max-width: 1320px) {
  .nav-links { display: none; }
  .nav-mobile { display: flex; }
  .lang { margin-left: auto; }
}
@media (max-width: 1100px) {
  .cards, .project-grid, .tst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-body { grid-template-columns: minmax(0, 1fr); }
  .bk-times { min-height: 0; }
}
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-mobile { display: flex; }
  .lang { margin-left: auto; }
  .nav { gap: 1rem; }
  .nav.open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
  .nav.open .nav-links {
    display: flex; position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: center; justify-content: center; gap: 1.3rem;
    background: var(--paper); animation: menuIn .35s var(--ease); overflow-y: auto; padding: 5rem 1rem 2rem;
  }
  .nav.open .nav-links a { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
  .nav.open .nav-links a::after { display: none; }
  .nav.open .nav-links .nav-cta { color: var(--accent); }
  .nav.open .nav-links .nav-portal { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: .9rem 1.6rem; margin-top: .4rem; }
}
@media (max-width: 900px) {
  .maker-grid, .commission-grid, .hands, .materials-grid, .certsec-grid { grid-template-columns: minmax(0, 1fr); }
  .maker-portrait { max-width: 480px; margin-inline: 0 22px; }
  .materials-board { max-width: 520px; }
  .materials-board img { aspect-ratio: 4/3; }
  .hands-img { min-height: 380px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .certsec-thumb { width: min(240px, 70%); }

  .phases { top: 68px; border-radius: 14px; }
  .phases li { flex-direction: column; gap: .1rem; font-size: .54rem; letter-spacing: .1em; padding: .5rem .2rem; border-radius: 10px; }
  .timeline { grid-template-columns: minmax(0, 1fr); padding-left: 58px; row-gap: 2rem; }
  .timeline::before, .tl-progress { left: 22px; }
  .step, .step.left, .step.right { grid-column: 1; grid-row: auto; margin-top: 0 !important; }
  .step.left .node, .step.right .node { left: -58px; right: auto; width: 44px; height: 44px; font-size: 1.05rem; top: 1.6rem; }
  .step.left .step-card::before, .step.right .step-card::before { left: -14px; right: auto; width: 14px; top: calc(1.6rem + 22px); }
  .step-card { padding: 1.8rem 1.5rem 2rem; }
  .step-photo { width: calc(100% + 3rem); margin: -1.8rem -1.5rem 1.5rem; }
  .step-feature { margin: 1rem 0; margin-left: -58px; }
  .compare-label { font-size: .5rem; letter-spacing: .12em; padding: .35rem .55rem; top: .6rem; }
  .compare-after { left: .6rem; } .compare-before { right: .6rem; top: auto; bottom: .6rem; }
  .compare-handle i { width: 40px; height: 40px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .brand-name { display: none; }
  .container, .narrow, .hero-inner, .visit-manage .narrow, body[data-page="visit"] .page-hero .narrow { width: calc(100% - 32px); }
  .cards, .stats, .form .row, .bk-form .row, .project-grid, .tst-grid, .cert-fields { grid-template-columns: minmax(0, 1fr); }
  .stats { gap: 2rem; margin-top: 3.5rem; }
  .hero { padding-bottom: 5.5rem; }
  .hero-title em { padding-left: 0; }
  .hero-actions .btn { width: 100%; }
  .section-head { margin-bottom: 3rem; }
  .mat-list div { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .pj-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pj-meta div { border-left: 0; border-top: 1px solid var(--line); }
  .pj-meta div:nth-child(even) { border-left: 1px solid var(--line); }
  .pj-meta div:nth-child(-n+2) { border-top: 0; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px .4rem; scrollbar-width: none; }
  .filters button { flex: none; }
  .pj-hero { min-height: 66vh; }
  .bk-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-day small { font-size: .44rem; letter-spacing: 0; }
  .bk-steps { gap: .8rem; }
  .bk-steps li { font-size: .54rem; letter-spacing: .1em; }
  .booking { padding: 1.2rem 1rem; }
  .form { padding: 1.3rem 1rem 1.6rem; }
  .cert-foot { flex-direction: column; align-items: flex-start; }
  .cert-seal { width: 70px; height: 70px; align-self: flex-end; margin-top: -3rem; } .cert-seal span { width: 50px; height: 50px; font-size: 1.2rem; }
}
@media (max-width: 380px) { .nav-login { padding: .55rem .75rem; letter-spacing: .12em; } .nav { gap: .5rem; } }

/* Landscape phones: short screens get a compact header, hero and journey bar */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --nav-h: 56px; }
  .nav, .nav.scrolled { height: 56px; padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .hero { min-height: 100svh; padding: 5rem 0 2.5rem; }
  .hero-title { font-size: clamp(2.6rem, 9vh + 2vw, 4.4rem); margin-bottom: 1rem; }
  .hero-lead { margin-bottom: 1.4rem; font-size: .98rem; max-width: 620px; }
  .hero-actions .btn { width: auto; padding: .95em 1.6em; }
  .scroll-cue { display: none; }
  .phases { position: static; }
  .pj-hero { min-height: 100svh; }
  .pj-hero-inner { padding: 5rem 0 2rem; }
  .nav.open .nav-links { justify-content: flex-start; gap: .6rem; padding-top: 4.5rem; }
  .nav.open .nav-links a { font-size: 1.4rem; }
  .cert-modal { max-height: calc(100dvh - 16px); }
}
.pj-still { max-width: 900px; margin-inline: auto; }
.pj-still img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; background: var(--stone); }
