/* Michau Projects and Development: shared styles.
   All colours live in the tokens below. No white, no pure black anywhere.
   Design: brief.md plus brief-v2-taste.md (glass pill nav, editorial split hero,
   marquee, scrubbing statement, gapless bento, horizontal accordion). */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --midnight: #0d1420;
  --deep: #182030;
  --silver: #c9d0da;
  --bright: #e9edf3;
  --steel: #9aa4b2;
  --paper: #d3d9e2;
  --line: rgba(201, 208, 218, 0.22);
  --line-strong: rgba(201, 208, 218, 0.45);
  --error: #f0b3a6; /* soft clay tint, readable on navy; not a bright red */
  --shadow: 0 24px 48px -24px rgba(14, 19, 28, 0.85), 0 2px 6px rgba(14, 19, 28, 0.5);
  /* Glass system: clear frosted glass and shaded (smoked) glass */
  --glass-tint: rgba(28, 35, 48, 0.22);
  --smoke-tint: linear-gradient(160deg, rgba(14, 19, 28, 0.64), rgba(28, 35, 48, 0.34));
  --glass-edge: rgba(201, 208, 218, 0.22);
  --glass-hi: rgba(233, 237, 243, 0.28);
  --glass-shadow: 0 24px 60px -24px rgba(14, 19, 28, 0.75);
  --silver-grad: linear-gradient(90deg, var(--steel), var(--bright));
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1200px;
  --radius: 4px;
  --radius-card: 22px;
  --pill-h: 64px;
  --chapter: clamp(6rem, 12vw, 12rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--midnight);
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--silver);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

::selection { background: var(--steel); color: var(--midnight); }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--bright);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(2.35rem, 1.3rem + 4.6vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); font-weight: 500; letter-spacing: -0.005em; line-height: 1.25; }

p { margin: 0; max-width: 68ch; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--bright); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--bright); outline-offset: 2px; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--silver); color: var(--midnight);
  padding: 12px 18px; border-radius: var(--radius); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.num {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}

/* ---------- Glass system ----------
   .glass       clear frosted glass (nav bar, outline buttons, side panel)
   .glass-smoke shaded / smoked glass (hero card, bento plates, accordion text, form panel, menu panel, closing card)
   Glass only shows when a photo or wash sits behind it. */
.glass,
.glass-smoke {
  position: relative; isolation: isolate;
  border: 1px solid var(--glass-edge); border-radius: var(--radius-card);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}
.glass { background: var(--glass-tint); }
.glass-smoke {
  background: var(--smoke-tint);
  -webkit-backdrop-filter: blur(20px) saturate(1.25); backdrop-filter: blur(20px) saturate(1.25);
}
.glass::before,
.glass-smoke::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(233, 237, 243, 0.1), transparent 40%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-smoke { background: rgba(28, 35, 48, 0.92); }
}

/* ---------- Buttons (silver fill = midnight text; outline or dark fill = bright text) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.8rem;
  font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--silver); border-radius: 999px;
  background: transparent; color: var(--bright);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s ease;
}
.btn--primary { background: linear-gradient(90deg, var(--silver), var(--bright)); color: var(--midnight); border-color: var(--silver); }
.btn--primary:hover { background: var(--bright); border-color: var(--bright); }
.btn--ghost:hover { background: rgba(201, 208, 218, 0.12); border-color: var(--bright); }
.btn.glass { border-radius: 999px; border-color: var(--silver); box-shadow: inset 0 1px 0 var(--glass-hi); -webkit-backdrop-filter: blur(12px) saturate(1.25); backdrop-filter: blur(12px) saturate(1.25); }
.btn.glass:hover { background: rgba(201, 208, 218, 0.16); border-color: var(--bright); }
.btn .icon { width: 18px; height: 18px; margin-left: 10px; flex: none; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn--ink { background: var(--midnight); border-color: var(--midnight); color: var(--bright); }
.btn--ink:hover { background: var(--deep); border-color: var(--deep); }
.btn--lg { min-height: 56px; padding-inline: 2.3rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Floating glass pill navigation ---------- */
.site-header {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  padding-inline: var(--gutter); pointer-events: none;
}
/* The glass is drawn by ::before so the menu panel (a child) can be its own smoked glass. */
.pill {
  position: relative; pointer-events: auto; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1280px; min-height: var(--pill-h); margin-inline: auto;
  padding: 8px 10px 8px 26px;
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; pointer-events: none;
  background: linear-gradient(115deg, rgba(233, 237, 243, 0.1), transparent 40%), rgba(14, 19, 28, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pill::before { background: rgba(14, 19, 28, 0.94); }
}
.brand { display: block; flex: none; line-height: 0; border-radius: var(--radius); }
.brand img { width: clamp(112px, 12vw, 138px); height: auto; }

.nav { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 20px); }
.nav ul { display: flex; align-items: center; gap: clamp(2px, 1vw, 12px); }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 clamp(10px, 1.3vw, 18px);
  color: var(--silver); text-decoration: none; font-size: 0.97rem; font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: clamp(10px, 1.3vw, 18px); right: clamp(10px, 1.3vw, 18px); bottom: 6px; height: 1px;
  background: var(--silver); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav a:not(.btn):hover { color: var(--bright); }
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav a[aria-current="page"]:not(.btn) { color: var(--bright); }
.nav .btn { min-height: 44px; padding: 0.5rem 1.5rem; font-size: 0.97rem; }

.menu-button {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 18px;
  font: inherit; font-size: 0.97rem; font-weight: 500;
  color: var(--bright); background: transparent; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px;
}
.menu-button__bars { position: relative; width: 18px; height: 12px; }
.menu-button__bars::before,
.menu-button__bars::after,
.menu-button__bars span {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--bright);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-button__bars span { top: 5px; }
.menu-button__bars::before { top: 0; }
.menu-button__bars::after { bottom: 0; }
.menu-button[aria-expanded="true"] .menu-button__bars span { opacity: 0; }
.menu-button[aria-expanded="true"] .menu-button__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 859px) {
  .pill { padding-left: 20px; }
  .js .menu-button { display: inline-flex; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px; border-radius: 28px;
    background: var(--smoke-tint), rgba(14, 19, 28, 0.55);
    -webkit-backdrop-filter: blur(20px) saturate(1.25); backdrop-filter: blur(20px) saturate(1.25);
    border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
  }
  .nav a:not(.btn)::after { left: 20px; right: auto; width: 28px; bottom: 10px; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a:not(.btn) { min-height: 52px; font-size: 1.05rem; padding-inline: 20px; }
  .nav .btn { min-height: 52px; }
  .js .nav[hidden] { display: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(28, 35, 48, 0.96); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); }
.site-footer__grid {
  display: grid; gap: 40px 48px; padding-block: clamp(48px, 7vw, 88px);
  grid-template-columns: 1.3fr 1fr 1.3fr;
}
.site-footer img { width: min(220px, 70%); }
.site-footer__tag { margin-top: 18px; color: var(--silver); }
.site-footer h2 { font-size: 1rem; font-weight: 500; color: var(--steel); letter-spacing: 0; margin-bottom: 10px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer address p + p { margin-top: 0.4em; }
.site-footer__privacy { margin-top: 18px; font-size: 0.9rem; color: var(--steel); }
.site-footer__privacy a { color: var(--silver); display: inline-block; min-height: 24px; }
.site-footer__base { border-top: 1px solid var(--line); padding-block: 22px; font-size: 0.85rem; color: var(--steel); }
@media (max-width: 859px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Photos (palette treatment) ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--deep); border: 1px solid var(--line); box-shadow: var(--shadow); }
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1) contrast(1.05);
  transition: transform 0.7s ease-out;
}
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(14, 19, 28, 0.05);
}
.photo--warm::after { background: rgba(14, 19, 28, 0.18); }
.photo--ratio-43 { aspect-ratio: 4 / 3; }
.photo--ratio-45 { aspect-ratio: 4 / 5; }
.photo--ratio-sq { aspect-ratio: 1 / 1; }

/* ---------- Sections ---------- */
.section { padding-block: var(--chapter); }
.section--chapter-top { padding-top: var(--chapter); }
.section__head { margin-bottom: clamp(32px, 5vw, 64px); max-width: 44rem; }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.55; color: var(--silver); max-width: 52ch; }

/* ---------- Home hero: full-bleed photo, three-line headline, one smoked-glass card (reference layout) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: max(640px, 92vh); min-height: max(640px, 92svh);
  padding-top: calc(16px + var(--pill-h) + clamp(56px, 7vw, 96px));
  padding-bottom: clamp(24px, 4vw, 56px);
  background: var(--midnight);
}
.hero__bg { position: absolute; left: 0; right: 0; top: -12%; bottom: 0; z-index: -2; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: saturate(1) contrast(1.05); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 19, 28, 0) 78%, var(--midnight) 100%),
    linear-gradient(90deg, rgba(14, 19, 28, 0.9) 0%, rgba(14, 19, 28, 0.32) 52%, rgba(14, 19, 28, 0) 100%);
}
.hero__wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.hero__text { max-width: 46rem; margin-bottom: clamp(36px, 6vw, 72px); }
.accent-bar { display: block; width: 72px; height: 2px; background: var(--silver); margin-bottom: clamp(20px, 3vw, 32px); }
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 5.25rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.015em;
  color: var(--bright);
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .h1-accent {
  padding-bottom: 0.1em; width: fit-content;
  background: var(--silver-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero__sub { margin-top: 1.4rem; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.5; color: var(--bright); max-width: none; }
.hero .btn-row { margin-top: 2.2rem; }

/* One small smoked-glass card, bottom right of the hero (below the buttons on phone) */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.hero__text { margin-bottom: 0; }
.hero__card { width: min(340px, 100%); padding: 22px 24px; margin-bottom: 4px; }
.hero__card p { color: var(--bright); font-size: 1rem; line-height: 1.5; margin-bottom: 8px; }
@media (max-width: 859px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__card { width: 100%; max-width: 28rem; }
}
@media (max-width: 859px) {
  .hero { min-height: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: clamp(22px, 3vw, 36px);
}
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__group { display: flex; flex: none; align-items: center; }
.marquee__group li {
  display: flex; align-items: center; white-space: nowrap;
  font-size: clamp(1.9rem, 1rem + 3.4vw, 3.4rem); font-weight: 300; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--steel);
}
.marquee__group li::after {
  content: ""; flex: none; width: 7px; height: 7px; margin-inline: clamp(24px, 3.5vw, 52px);
  border-radius: 50%; background: var(--line-strong);
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee:focus-visible { outline: 2px solid var(--bright); outline-offset: -4px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Gapless bento ---------- */
.bento-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.bento-head h2 { max-width: 24ch; }
.link-arrow {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 500;
  color: var(--bright); text-decoration: none; border-bottom: 1px solid var(--steel);
}
.link-arrow:hover { border-bottom-color: var(--bright); }

.bento {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 19vw, 270px);
  grid-auto-flow: dense; gap: 16px;
}
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; border-radius: var(--radius-card); border: 1px solid var(--line);
  background: var(--deep); color: var(--silver); text-decoration: none;
  transition: border-color 0.5s ease-out;
}
.card:hover { text-decoration: none; }
.card__img { position: absolute; inset: 0; }
.card__img img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(1) contrast(1.05);
  transition: transform 0.7s ease-out;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 19, 28, 0) 0%, rgba(14, 19, 28, 0.04) 50%, rgba(14, 19, 28, 0.3) 100%);
}
.card--warm::after { background: linear-gradient(180deg, rgba(14, 19, 28, 0.14) 0%, rgba(14, 19, 28, 0.18) 50%, rgba(14, 19, 28, 0.38) 100%); }
.card--text::after { display: none; }
.card__body { position: relative; z-index: 1; margin: 12px; padding: clamp(16px, 1.8vw, 24px); border-radius: 16px; }
.card h3 { color: var(--bright); font-size: clamp(1.2rem, 1rem + 0.7vw, 1.7rem); font-weight: 400; line-height: 1.15; }
.card p { margin-top: 0.6rem; font-size: 0.97rem; line-height: 1.45; color: var(--bright); max-width: 34ch; }
.card--a { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.card--b { grid-column: 3 / span 2; grid-row: 1; }
.card--c { grid-column: 3; grid-row: 2 / span 2; }
.card--d { grid-column: 4; grid-row: 2 / span 2; }
.card--e { grid-column: 1 / span 2; grid-row: 3; }
.card--d { justify-content: flex-start; padding: 0; }
.card--d .card__body { display: flex; flex-direction: column; height: 100%; margin: 0; padding: clamp(20px, 2vw, 28px); border-radius: 0; }
.card--d ul { margin-top: 1.4rem; flex: 1; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.card--d li { flex: 1; display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--bright); font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.6rem); font-weight: 300; line-height: 1.3; }
.card--d li:last-child { border-bottom: 0; }
.card__more { display: inline-block; margin-top: 1rem; font-weight: 500; color: var(--bright); border-bottom: 1px solid var(--steel); }

@media (max-width: 859px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; grid-auto-flow: row; }
  .card--a, .card--b, .card--c, .card--d, .card--e { grid-column: auto; grid-row: auto; }
  .card { min-height: 300px; }
  .card--d { min-height: 0; }
  .card--d .card__body { min-height: 300px; }
}

/* ---------- Scrubbing statement ---------- */
.scrub { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--chapter); border-top: 1px solid var(--line); }
.wash { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 85% 15%, rgba(28, 35, 48, 0.2), rgba(28, 35, 48, 0) 70%),
    radial-gradient(ellipse 55% 50% at 5% 90%, rgba(28, 35, 48, 0.18), rgba(28, 35, 48, 0) 70%); }
/* Photo behind a glass panel, so the frosted blur has something to blur */
.wash--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; filter: saturate(1); }
.wash--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--midnight) 0%, rgba(14, 19, 28, 0.12) 28%, rgba(14, 19, 28, 0.12) 72%, var(--midnight) 100%); }
.scrub__head { text-align: center; max-width: 22ch; margin: 0 auto clamp(2.5rem, 6vw, 5rem); line-height: 1.2; }
.pill-img {
  display: inline-block; position: relative; overflow: hidden;
  width: 4.6em; height: 1.2em; vertical-align: -0.14em; margin-inline: 0.12em;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--deep);
}
.pill-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1) contrast(1.05); }
.pill-img::after { content: ""; position: absolute; inset: 0; background: rgba(14, 19, 28, 0.2); }
.scrub__text {
  max-width: 24em; margin-inline: auto; text-align: center;
  font-size: clamp(1.65rem, 1rem + 2.8vw, 3.3rem); line-height: 1.32; font-weight: 300; color: var(--bright); letter-spacing: -0.01em;
}
.js .scrub__text .w { opacity: 0.15; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: clamp(4rem, 9vw, 8rem); }
.point { padding: 32px clamp(20px, 3vw, 44px) 8px 0; }
.point + .point { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.point h3 { margin-bottom: 0.7rem; }
@media (max-width: 859px) {
  .points { grid-template-columns: 1fr; }
  .point, .point + .point { padding: 28px 0; border-left: 0; }
  .point + .point { border-top: 1px solid var(--line); }
}

/* ---------- Quote-from-photos band ---------- */
.washed { position: relative; overflow: hidden; isolation: isolate; }
.band {
  padding: clamp(28px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.band h2 { max-width: 16ch; }
.steps { counter-reset: step; margin-bottom: 2rem; border-top: 1px solid var(--line); }
.steps li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.08em; color: var(--steel); flex: none;
}
@media (max-width: 859px) { .band { grid-template-columns: 1fr; } }

/* ---------- Areas ---------- */
.areas h2 { max-width: 20ch; }
.areas__list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.areas__list li {
  padding: 10px 24px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-weight: 500; color: var(--bright);
}

/* ---------- Closing action band: smoked-glass card over a photo ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(6rem, 12vw, 12rem); background: var(--midnight); }
.ambient { position: absolute; inset: 0; z-index: -2; }
.ambient img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1) contrast(1.05); opacity: 0.85; }
.ambient::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 30% 50%, rgba(14, 19, 28, 0.18), rgba(14, 19, 28, 0.5)); }
.cta__card { padding: clamp(32px, 6vw, 88px); max-width: 60rem; }
.cta h2 { font-weight: 300; font-size: clamp(2.4rem, 1rem + 6vw, 6rem); line-height: 1.02; max-width: 14ch; }
.cta p { margin-top: 1.4rem; color: var(--bright); }
.cta .btn { margin-top: 2.2rem; }

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding-block: calc(16px + var(--pill-h) + clamp(48px, 8vw, 104px)) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.25rem); line-height: 1.05; max-width: 20ch; }
.page-head .lede { margin-top: 1.4rem; }

/* ---------- Services page: horizontal accordion ---------- */
.accordion-wrap { padding-block: clamp(48px, 7vw, 96px); }
.accordion { display: flex; gap: 12px; height: clamp(480px, 46vw, 600px); }
.slice {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--deep);
  transition: flex-grow 0.7s ease-out, border-color 0.5s ease-out;
}
.slice.is-open { flex-grow: 6; border-color: var(--line-strong); }
.slice__img { position: absolute; inset: 0; }
.slice__img img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(1) contrast(1.05);
  transition: transform 0.7s ease-out;
}
.slice::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 19, 28, 0.22) 0%, rgba(14, 19, 28, 0.24) 50%, rgba(14, 19, 28, 0.74) 100%);
}
.slice--warm::after { background: linear-gradient(180deg, rgba(14, 19, 28, 0.16) 0%, rgba(14, 19, 28, 0.34) 50%, rgba(14, 19, 28, 0.8) 100%); }
.slice__btn {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-start;
  width: 100%; padding: 22px 0 22px 0; margin: 0; background: transparent; border: 0; cursor: pointer;
  font: inherit; color: var(--bright); text-align: left;
}
.slice__btn:focus-visible { outline: 2px solid var(--bright); outline-offset: -6px; border-radius: var(--radius-card); }
.slice__title {
  display: block; width: 84px; padding-inline: 0; text-align: left;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 1.6rem; font-weight: 400; letter-spacing: 0.01em; white-space: nowrap; margin-left: 0; padding-block: 0;
  position: relative; left: 0; text-align: start;
  text-shadow: 0 1px 14px rgba(14, 19, 28, 0.75), 0 0 2px rgba(14, 19, 28, 0.6);
}
.slice__body {
  position: absolute; z-index: 1; left: 84px; right: 0; bottom: 0; top: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 16px 16px 16px 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease-out, visibility 0s linear 0.4s;
  pointer-events: none;
}
.slice__body-inner { width: clamp(260px, 30vw, 440px); padding: clamp(18px, 2vw, 26px); border-radius: 18px; }
.slice__body p { color: var(--bright); max-width: 44ch; }
.slice__body ul { margin-top: 1rem; border-top: 1px solid var(--line); }
.slice__body li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--bright); line-height: 1.35; }
.slice.is-open .slice__body { opacity: 1; visibility: visible; transition: opacity 0.5s ease-out 0.25s, visibility 0s; }

/* Without JavaScript everything stays open and stacked (no hover needed). */
html:not(.js) .accordion { height: auto; flex-direction: column; }
html:not(.js) .slice { min-height: 320px; }
html:not(.js) .slice__body { opacity: 1; visibility: visible; }

@media (max-width: 859px) {
  .accordion { flex-direction: column; height: auto; }
  .slice, .slice.is-open { flex: none; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
  .slice__btn { position: relative; inset: auto; z-index: 2; display: block; height: auto; padding: 22px 22px 0; cursor: default; flex: none; margin-top: auto; }
  .slice__title { writing-mode: horizontal-tb; transform: none; width: auto; font-size: 1.5rem; }
  .slice__body, .slice.is-open .slice__body {
    position: relative; left: auto; right: auto; top: auto; bottom: auto; z-index: 1;
    opacity: 1; visibility: visible; padding: 10px 22px 24px; transition: none; flex: none;
  }
  .slice__body-inner { width: auto; }
}

/* ---------- Services page: numbered list ---------- */
.svc-blocks { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px clamp(24px, 4vw, 56px);
  align-items: start; padding-block: clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--line);
}
.svc .num { padding-top: 0.55rem; }
.svc h3 { font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2.1rem); font-weight: 400; margin-bottom: 0.9rem; }
.svc p { max-width: 56ch; }
.trades { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.trades li {
  padding: 8px 20px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-weight: 500; color: var(--bright);
}
@media (max-width: 859px) {
  .svc { grid-template-columns: 1fr; }
  .svc .num { padding-top: 0; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose h2 { margin-bottom: 1.4rem; }
.prose p { color: var(--silver); }
.expect {
  position: relative; z-index: 1;
  background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow);
}
.expect h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: 1.2rem; }
.expect li { padding: 14px 0; border-top: 1px solid var(--line); }
.about__media .expect { margin: -56px 0 0 -48px; }
@media (max-width: 859px) {
  .about { grid-template-columns: 1fr; }
  .about__media .expect { margin: 16px 0 0; }
}

/* ---------- Quote page ---------- */
.quote-section { position: relative; overflow: hidden; isolation: isolate; background: var(--midnight); }
.quote-bg { position: absolute; inset: 0; z-index: -2; }
.quote-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1) contrast(1.05) blur(3px); transform: scale(1.04); }
.quote-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 19, 28, 0.54), rgba(14, 19, 28, 0.34) 50%, rgba(14, 19, 28, 0.62)); }
.quote-layout { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 120px); }
.preview-note {
  margin-bottom: 28px; padding: 14px 18px;
  border-left: 3px solid var(--silver); border-radius: 12px;
  font-size: 0.95rem; color: var(--bright);
}
.form-panel { padding: clamp(22px, 4vw, 48px); }
.form-panel__intro { margin-bottom: 32px; color: var(--silver); }
.field { margin: 0 0 clamp(28px, 4vw, 40px); padding: 0; border: 0; min-width: 0; }
.field + .field { padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); margin-top: clamp(-28px, -3vw, -20px); }
.field__label, legend.field__label {
  display: block; padding: 0; margin-bottom: 16px;
  font-size: 1.05rem; font-weight: 500; color: var(--bright); letter-spacing: 0;
}
.field__hint { display: block; margin: -8px 0 14px; font-size: 0.9rem; color: var(--steel); }

.choices { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.choices--one { grid-template-columns: 1fr; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 6px 0; cursor: pointer; color: var(--silver); line-height: 1.35; }
.choice input {
  position: absolute; width: 22px; height: 22px; margin: 0; opacity: 0; left: 0; top: 50%; transform: translateY(-50%); cursor: pointer;
}
.choice__mark {
  flex: none; position: relative; width: 22px; height: 22px;
  border: 1.5px solid var(--steel); border-radius: 50%; background: transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover .choice__mark { border-color: var(--bright); }
.choice input:checked + .choice__mark { border-color: var(--bright); }
.choice input:checked + .choice__mark::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--bright);
}
.choice input:checked ~ .choice__text { color: var(--bright); }
.choice input:focus-visible + .choice__mark { outline: 2px solid var(--bright); outline-offset: 3px; }
.choice--box .choice__mark { border-radius: 4px; }
.choice--box input:checked + .choice__mark { background: var(--silver); border-color: var(--silver); }
.choice--box input:checked + .choice__mark::after {
  inset: auto; left: 6px; top: 2px; width: 6px; height: 11px; border-radius: 0; background: transparent;
  border: solid var(--midnight); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.input, .textarea {
  display: block; width: 100%; min-height: 52px; padding: 0.8rem 1.3rem;
  font: inherit; color: var(--bright); background: var(--midnight);
  border: 1px solid var(--line-strong); border-radius: 26px;
  transition: border-color 0.15s ease;
}
.textarea { min-height: 150px; border-radius: 18px; resize: vertical; line-height: 1.55; padding-top: 1rem; }
.input::placeholder, .textarea::placeholder { color: var(--steel); opacity: 1; }
@media (max-width: 480px) { .input, .textarea { padding-inline: 1.05rem; font-size: 0.95rem; } }
.input:hover, .textarea:hover { border-color: var(--steel); }
.input:focus, .textarea:focus { border-color: var(--bright); outline: 2px solid var(--bright); outline-offset: 2px; }
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--bright);
  caret-color: var(--bright);
  -webkit-box-shadow: 0 0 0 1000px var(--midnight) inset;
  box-shadow: 0 0 0 1000px var(--midnight) inset;
  transition: background-color 9999s ease-in-out 0s;
}
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.details .field-item--wide { grid-column: 1 / -1; }
.field-item label { display: block; margin-bottom: 8px; font-size: 0.95rem; font-weight: 500; color: var(--bright); }

/* Photo upload */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 132px; padding: 22px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: 18px; background: var(--midnight);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.drop:hover, .drop.is-over { border-color: var(--bright); background: var(--deep); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 2px solid var(--bright); outline-offset: 2px; }
.drop__title { color: var(--bright); font-weight: 500; }
.drop__hint { font-size: 0.9rem; color: var(--steel); }
.file-list { margin-top: 14px; }
.file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.file-list__name { min-width: 0; overflow-wrap: anywhere; color: var(--bright); }
.file-list__size { color: var(--steel); font-family: var(--mono); font-size: 0.8rem; margin-left: 8px; white-space: nowrap; }
.remove-btn {
  flex: none; min-height: 44px; min-width: 44px; padding: 0 14px; font: inherit; font-size: 0.85rem; font-weight: 500;
  color: var(--silver); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
}
.remove-btn:hover { color: var(--bright); border-color: var(--bright); }

/* Errors */
.error { margin-top: 10px; font-size: 0.92rem; color: var(--error); max-width: none; }
[aria-invalid="true"] { border-color: var(--error); }
.form-summary { margin-bottom: 24px; padding: 14px 18px; border: 1px solid var(--error); border-radius: var(--radius); color: var(--error); background: var(--midnight); }
.form-summary:focus { outline: 2px solid var(--bright); outline-offset: 2px; }

/* Privacy block */
.privacy { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--midnight); margin-bottom: 28px; }
.privacy h2 { font-size: 1.05rem; font-weight: 500; margin-bottom: 10px; }
.privacy p { font-size: 0.95rem; color: var(--silver); margin-bottom: 14px; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.confirm h2 { margin-bottom: 1.2rem; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.confirm h2:focus { outline: none; }
.confirm .btn-row { margin-top: 2rem; }

/* Side panel */
.side { position: sticky; top: 100px; }
.side .photo { aspect-ratio: 4 / 5; max-height: 460px; width: 100%; }
.next-panel {
  position: relative; z-index: 1; margin: -64px 0 0 -32px;
  padding: clamp(22px, 3vw, 32px);
}
.next-panel .steps { margin-bottom: 0; }
.about__btn { margin-top: 2rem; }
.next-panel h2 { font-size: 1.35rem; font-weight: 400; margin-bottom: 1rem; }
.next-panel li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.98rem; }
@media (max-width: 959px) {
  .quote-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .side .photo { aspect-ratio: 3 / 2; max-height: none; }
  .next-panel { margin: 16px 0 0; }
}
@media (max-width: 640px) {
  .choices { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
}

/* ---------- Motion budget ----------
   hero parallax, marquee, scrub text, hover physics, fade-up on headings. Nothing else. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hover physics only where a real hover exists */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .card:hover { border-color: var(--line-strong); }
  .card:hover .card__img img { transform: scale(1.05); }
  .photo:hover img { transform: scale(1.05); }
  .slice:hover .slice__img img { transform: scale(1.05); }
  .slice:hover { border-color: var(--line-strong); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .scrub__text .w { opacity: 1; }
  .btn, .nav a, .choice__mark, .input, .textarea, .drop, .card, .slice, .slice__body,
  .card__img img, .slice__img img, .photo img, .menu-button__bars::before,
  .menu-button__bars::after, .menu-button__bars span { transition: none; }
  .btn:hover, .card:hover .card__img img, .photo:hover img, .slice:hover .slice__img img { transform: none; }
  .hero__bg { transform: none !important; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; }
  .marquee__group { flex-wrap: wrap; }
  .marquee__group[aria-hidden="true"] { display: none; }
}
