/* ==========================================================================
   Kilivridis autodesign — shared stylesheet (all pages)
   Desktop-first; max-width queries adapt downward (see bottom of file).
   ========================================================================== */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--light { background: var(--bg-light); color: var(--text-on-light); }
.section--deep { background: var(--bg-deep); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-6);
}
.eyebrow::before { content: ""; width: 34px; border-top: var(--stitch); }
.section--light .eyebrow { color: var(--leather); }
.section--light .eyebrow::before { border-top-color: var(--leather); }
.h-display { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.h-section { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.03em; }
.h-section em, .h-display em { font-style: normal; color: var(--accent); }
.section--light .h-section em { color: var(--leather); }
.lede { font-size: var(--fs-lg); color: var(--text-muted); max-width: 60ch; line-height: 1.6; }
.section--light .lede { color: var(--muted-on-light); }
.prose { max-width: 68ch; }
.prose p { color: var(--text-muted); }
.section--light .prose p { color: var(--muted-on-light); }
.prose strong { color: var(--text); font-weight: 600; }
.section--light .prose strong { color: var(--text-on-light); }
.tnum { font-variant-numeric: tabular-nums; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8); margin-bottom: var(--space-12); flex-wrap: wrap; }
.section-head > div { max-width: 760px; }
.section-head .lede { margin-top: var(--space-6); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--btn-bg); --_fg: var(--btn-text);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 52px; padding: 0 var(--space-8);
  background: var(--_bg); color: var(--_fg);
  border: 0; border-radius: var(--radius-btn); cursor: pointer;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.01em; text-decoration: none;
  transition: transform .35s var(--ease-out), background-color .25s, box-shadow .35s;
  position: relative; white-space: nowrap;
}
.btn::after { /* stitched inner seam */
  content: ""; position: absolute; inset: 4px; border-radius: calc(var(--radius-btn) - 4px);
  border: 1px dashed color-mix(in srgb, var(--_fg) 40%, transparent); pointer-events: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--_bg) 70%, transparent); }
.btn:hover { --_bg: var(--accent-hover); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { --_bg: transparent; --_fg: var(--text); border: 1px solid var(--btn-ghost-border); }
.btn--ghost::after { display: none; }
.btn--ghost:hover { --_bg: color-mix(in srgb, var(--text) 8%, transparent); box-shadow: none; }
.section--light .btn--ghost { --_fg: var(--text-on-light); border-color: color-mix(in srgb, var(--text-on-light) 30%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.text-link {
  display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; text-decoration: none;
  color: var(--accent); border-bottom: var(--stitch-soft); padding-bottom: 2px; min-height: 44px;
}
.section--light .text-link { color: var(--leather); border-bottom-color: color-mix(in srgb, var(--leather) 55%, transparent); }
.text-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; text-decoration: none; }
.brand__emblem { display: block; height: 58px; width: auto; max-width: none; }
.brand__text { display: grid; justify-items: start; gap: 3px; line-height: 1; }
.brand__name { display: grid; justify-items: end; gap: 3px; }   /* 'since' ends where the name ends */
.brand__since { margin-right: -.16em; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.brand__word { display: block; height: 29px; width: auto; max-width: none; }
.brand__tag { display: block; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); white-space: nowrap; line-height: 1.2; }
.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav__list { display: flex; gap: var(--space-6); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; border-top: var(--stitch);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__actions { display: flex; gap: var(--space-3); align-items: center; }
.nav__actions .btn { min-height: 44px; padding: 0 var(--space-6); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: calc(var(--radius-btn) - 2px);
  border: 1px solid var(--btn-ghost-border); background: transparent; cursor: pointer; text-decoration: none;
  transition: background-color .25s, border-color .25s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--btn-ghost-border); border-radius: calc(var(--radius-btn) - 2px); padding: 2px; gap: 2px; }
.lang-switch a {
  display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 var(--space-2);
  border-radius: calc(var(--radius-btn) - 4px); text-decoration: none; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  color: var(--text-muted); transition: background-color .25s, color .25s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- Mobile menu panel (right, not full screen) ---------- */
.menu-scrim {
  position: fixed; inset: 0; z-index: 140; background: rgb(0 0 0 / 0.55);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.menu-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(80vw, 340px);
  background: var(--surface); border-left: var(--stitch);
  padding: calc(var(--header-h) + var(--space-4)) var(--space-8) var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-8); overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease-out), visibility .45s;
}
.menu-open .menu-scrim { opacity: 1; visibility: visible; }
.menu-open .menu-panel { transform: none; visibility: visible; }
.menu-panel__close { position: absolute; top: 16px; right: 16px; }
.menu-panel__list a {
  display: flex; align-items: center; min-height: 56px; text-decoration: none;
  font-size: 1.5rem; font-weight: 700; border-bottom: 1px solid var(--line);
}
.menu-panel__list a[aria-current="page"] { color: var(--accent); }
.menu-panel__meta { font-size: var(--fs-sm); color: var(--text-muted); overflow-wrap: anywhere; }
.menu-panel__meta a { color: var(--text); }
.menu-panel .btn { width: 100%; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100dvh; display: flex; align-items: center;
  padding-top: var(--header-h); overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 640px); width: 100%; }
.hero__copy { position: relative; z-index: 2; padding-block: var(--space-12); }
.hero__title { margin-bottom: var(--space-8); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero .lede { margin-bottom: var(--space-8); }
.rating-chip {
  display: inline-flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  border: 1px solid var(--line); border-radius: var(--radius-btn); background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: var(--fs-sm); text-decoration: none; margin-bottom: var(--space-8); min-height: 44px;
}
.rating-chip__score { background: var(--accent); color: var(--accent-ink); font-weight: 800; border-radius: calc(var(--radius-btn) - 4px); padding: 4px 12px; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 15px; height: 15px; }
.rating-chip__label { color: var(--text-muted); }
.hero__media {   /* full-bleed photo under the text; starts below the header so it never runs behind it */
  position: absolute; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 0; overflow: hidden;
}
.hero__frame { position: absolute; inset: 0; overflow: hidden; }
.hero__frame picture { display: contents; }
.hero__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%;
  transform-origin: 72% 55%;   /* the zoom drifts gently towards the seats, away from the text */
}
.hero.is-live .hero__frame img {   /* 4 s slow push-in, 4 s ease back to the full frame, repeating */
  animation: heroZoom 4s cubic-bezier(.37, 0, .63, 1) infinite alternate;
  will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero__frame::after {   /* darkens the text side and fades into the page below */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(13 11 10 / .92) 0%, rgb(13 11 10 / .8) 30%, rgb(13 11 10 / .42) 58%, rgb(13 11 10 / .12) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 24%);
}

/* ---------- Marquee (makes worked on) ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: var(--space-6); overflow: hidden; background: var(--bg-deep); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: var(--space-12); padding-right: var(--space-12); }
.marquee__item { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.01em; color: color-mix(in srgb, var(--text) 26%, transparent); white-space: nowrap; }
.marquee__dot { width: 8px; height: 8px; border-radius: 50%; border: 2px dashed var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Before / After seam ---------- */
.ba {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface);
  aspect-ratio: 4 / 3; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
/* per-photo framing so "before" lines up with "after" */
.ba__before--wheel { transform: scale(1.12); transform-origin: 64% 41%; }
.ba img.ba__before--seat {   /* whole photo placed (not a moved crop), so no empty band appears: 98% size, 4.2% left, 6.2% down */
  inset: auto; left: -3.2%; top: -23.4%; width: 98%; height: auto;
}
.ba__seam {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 3;
  border-left: 2px dashed var(--accent); filter: drop-shadow(0 0 6px rgb(0 0 0 / .6));
  pointer-events: none;
}
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 4; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; cursor: ew-resize;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgb(0 0 0 / .7);
}
.ba__handle::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--accent-ink) 50%, transparent); }
.ba__handle svg { width: 28px; height: 28px; }
.ba__label {
  position: absolute; top: var(--space-4); z-index: 2; pointer-events: none;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 6px; background: rgb(13 11 10 / .72); color: var(--text);
  backdrop-filter: blur(6px);
}
.ba__label--before { left: var(--space-4); }
.ba__label--after { right: var(--space-4); background: var(--accent); color: var(--accent-ink); }
.ba__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--space-8);
  background: repeating-linear-gradient(135deg, var(--surface) 0 18px, var(--surface-2) 18px 36px);
  color: var(--text-muted); font-size: var(--fs-sm);
}
.ba__placeholder strong { display: block; color: var(--accent); font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.ba-caption { margin-top: var(--space-4); font-size: var(--fs-xs); color: var(--text-muted); }

.transform__layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.transform__stage { display: flex; flex-direction: column; align-items: center; }
.transform__stage .ba { aspect-ratio: 3 / 4; height: min(calc(100dvh - var(--header-h) - 120px), 680px); min-height: 360px; width: auto; max-width: 100%; }
.transform__points { margin-top: var(--space-8); display: grid; gap: var(--space-4); }
.transform__points li { display: flex; gap: var(--space-4); align-items: flex-start; color: var(--text-muted); }
.transform__points svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- Services horizontal gallery ---------- */
.services__head { margin-bottom: var(--space-8); }
.hgallery {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
}
.hgallery::-webkit-scrollbar { display: none; }
.hgallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.hgallery.is-dragging * { pointer-events: none; }
.hgallery__track { display: flex; gap: var(--space-6); padding-inline: var(--gutter); width: max-content; }
.hgallery__nav { display: flex; gap: var(--space-3); }
.hgallery__nav .icon-btn:disabled { opacity: .35; cursor: default; }
.carousel-arrows { display: none; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-6); }
.carousel-arrows .icon-btn:disabled { opacity: .35; cursor: default; }
.service-card {
  position: relative; height: clamp(360px, calc(100dvh - 300px), 560px); aspect-ratio: 3 / 4; scroll-snap-align: start; user-select: none; border-radius: var(--radius-lg);
  overflow: hidden; flex: none; background: var(--surface); text-decoration: none; isolation: isolate;
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); z-index: -2; }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(13 11 10 / 0) 50%, rgb(13 11 10 / .5) 100%); }
.service-card:hover img { transform: scale(1.05); }
.service-card__body { position: absolute; inset: auto 0 0 0; min-height: 30%; padding: var(--space-6) var(--space-6) var(--space-6); }
.service-card__body::before { /* blurred, darkened lower band behind the text */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(13 11 10 / .55);
  backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px); mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
}
.service-card__num { font-size: var(--fs-xs); letter-spacing: .2em; color: var(--accent); font-weight: 700; display: block; margin-bottom: var(--space-1); }
.service-card h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.service-card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }   /* the whole card links to its gallery category */
.service-card__link:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.service-card p { color: color-mix(in srgb, var(--text) 85%, transparent); font-size: var(--fs-sm); line-height: 1.5; margin: 0; }
.service-card--cta { border-radius: var(--radius-card); display: flex; flex-direction: column; justify-content: center; padding: var(--space-8); border: var(--stitch); background: var(--surface); }
.service-card--cta::before { display: none; }
.service-card--cta h3 { font-size: var(--fs-2xl); margin-bottom: var(--space-6); }

/* ---------- Big figure (rating card) ---------- */
.stat__value { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.stat__value small { font-size: 0.45em; color: var(--accent); margin-left: 4px; }


/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.review { margin: 0;
  background: var(--card-bg); border-radius: var(--radius-card); padding: var(--space-6) var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-4); position: relative; border: 1px solid var(--line);
}
.review::before { content: ""; position: absolute; inset: 8px; border-radius: 3px; border: var(--stitch-soft); pointer-events: none; }
.review--feature { grid-column: span 2; background: var(--surface-2); }
.review blockquote { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-base); line-height: 1.55; color: var(--text); }
.review--feature blockquote { font-size: var(--fs-lg); line-height: 1.45; }
.review--score { justify-content: center; align-items: flex-start; background: var(--surface-2); }
.review--score .stat__value { font-size: clamp(2.6rem, 2rem + 2vw, 3.75rem); }
.review--score p { color: var(--text-muted); margin: 0; font-size: var(--fs-sm); }
.review figcaption { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; font-size: var(--fs-sm); }
.review figcaption strong { display: block; }
.review figcaption span { color: var(--text-muted); font-size: var(--fs-xs); }
.reviews-foot { margin-top: var(--space-8); display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); flex-wrap: wrap; color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Bento teaser ---------- */
.bento {   /* 6 photos fill all 12 cells: 2 tall at the sides, 4 wide */
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 14vw, 230px); gap: var(--space-4);
  grid-template-areas: "a b b c" "a d d c" "e e f f";
}
.bento__item--a { grid-area: a; } .bento__item--b { grid-area: b; } .bento__item--c { grid-area: c; }
.bento__item--d { grid-area: d; } .bento__item--e { grid-area: e; } .bento__item--f { grid-area: f; }
.bento__item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.bento__item:hover img { transform: scale(1.04); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-card); padding: clamp(1.75rem, 1.2rem + 2vw, 3rem) clamp(1.5rem, 1rem + 3vw, 3.5rem);
  background: linear-gradient(135deg, var(--leather), #6e3a1b);
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 10px; border-radius: 3px; border: 2px dashed rgb(239 230 214 / .35); pointer-events: none; }
.cta-band h2 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { color: rgb(239 230 214 / .85); font-size: var(--fs-base); margin: var(--space-3) 0 0; max-width: 58ch; }
.cta-band .btn-row { flex-wrap: nowrap; }
.cta-band .btn { --_bg: var(--p-bone-100); --_fg: var(--p-ink-900); }
.cta-band .btn--ghost { --_bg: transparent; --_fg: var(--p-bone-100); border-color: rgb(239 230 214 / .5); }

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(2rem, 1.5rem + 3vw, 4.5rem)); padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); position: relative; overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-12); align-items: center; }
.page-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 4rem); }
.page-hero .btn-row { margin-top: var(--space-8); }
.page-hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; max-height: min(56dvh, 480px); width: 100%; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* About: the whole steering wheel is square, so this frame stays square (never cropped by a height cap) */
.page-hero__media--square { aspect-ratio: 1 / 1; max-height: none; width: min(100%, 500px); justify-self: end; }
.page-hero__media::after { content: ""; position: absolute; inset: 10px; border-radius: calc(var(--radius-lg) - 7px); border: var(--stitch); opacity: .7; pointer-events: none; }
.page-hero .lede { margin-top: var(--space-8); }
.breadcrumb { display: flex; gap: var(--space-2); font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--space-6); flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.page-hero__stitch { position: absolute; left: 0; right: 0; bottom: 0; border-top: var(--stitch); opacity: .4; }

/* ---------- Work page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-12); }
.filter {
  min-height: 44px; padding: 0 var(--space-6); border-radius: calc(var(--radius-btn) - 2px); cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm);
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter:hover { color: var(--text); border-color: var(--text-muted); }
.filter[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.filter .count { opacity: .65; margin-left: 6px; font-variant-numeric: tabular-nums; }
.masonry { columns: 3 300px; column-gap: var(--space-4); }
/* with JS the photos fill across (see site.js): real columns, same gap, so row 1 holds the first photos */
.masonry.is-rows { display: flex; align-items: flex-start; gap: var(--space-4); }
.masonry__col { flex: 1 1 0; min-width: 0; }
.tile {
  break-inside: avoid; margin-bottom: var(--space-4); position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; text-align: left;
}
.tile img { width: 100%; height: auto; transition: transform 1s var(--ease-out), filter .5s; }
.tile:hover img { transform: scale(1.035); }
.tile__cap {
  position: absolute; inset: auto 0 0 0; padding: var(--space-8) var(--space-6) var(--space-6);
  background: linear-gradient(180deg, transparent, rgb(13 11 10 / .9));
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4);
}
.tile__cap strong { font-size: var(--fs-base); display: block; line-height: 1.3; }
.tile__cap span { font-size: var(--fs-xs); color: var(--accent); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.tile__zoom { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.tile__zoom svg { width: 18px; height: 18px; }
.tile[hidden] { display: none; }
.gallery-more { margin-top: var(--space-12); }
/* "show all": a thick gold line across the gallery with a button in the middle */
.more-line {
  display: flex; align-items: center; gap: var(--space-4); width: 100%; padding: var(--space-2) 0;
  background: none; border: 0; cursor: pointer; font: inherit;
}
.more-line[hidden] { display: none; }
.more-line__rule { flex: 1; height: 4px; border-radius: 2px; opacity: .85; transition: opacity .35s;
  background: linear-gradient(90deg, transparent, var(--accent) 70%); }
.more-line__rule:last-child { background: linear-gradient(270deg, transparent, var(--accent) 70%); }
.more-line__core { flex: none; }
.more-line__label {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-8);
  border: 2px solid var(--accent); border-radius: var(--radius-btn); background: var(--bg);
  color: var(--accent); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 28px -8px color-mix(in srgb, var(--accent) 75%, transparent);
  transition: background-color .3s, color .3s, box-shadow .35s, transform .35s var(--ease-out);
}
.more-line__label::after { content: ""; position: absolute; inset: 4px; border-radius: calc(var(--radius-btn) - 4px); border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); pointer-events: none; }
.more-line:hover .more-line__label, .more-line:focus-visible .more-line__label {
  background: var(--accent); color: var(--accent-ink); transform: translateY(-1px);
  box-shadow: 0 0 38px -4px color-mix(in srgb, var(--accent) 85%, transparent);
}
.more-line:hover .more-line__label::after, .more-line:focus-visible .more-line__label::after { border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.more-line:hover .more-line__rule, .more-line:focus-visible .more-line__rule { opacity: 1; }
.more-line:focus-visible { outline: none; }
.more-line:focus-visible .more-line__label { outline: 2px solid var(--accent); outline-offset: 4px; }

.ba-trio { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-6); }
.ba-trio figure { margin: 0; grid-column: span 3; }                 /* upright pairs: four per row */
.ba-trio figure:has(.ba--wide) { grid-column: span 4; }             /* wide pairs: three per row */
.ba-trio .ba { aspect-ratio: 3 / 4; }
.ba-trio .ba--wide { aspect-ratio: 16 / 10; }   /* landscape pairs keep the seats in frame */
.ba-trio figcaption { margin-top: var(--space-4); }
.ba-trio figcaption strong { display: block; font-size: var(--fs-lg); }
.ba-trio figcaption span { font-size: var(--fs-sm); color: var(--text-muted); }

.videos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6); }   /* wide clip + two upright, one row */
.clip { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip--wide { aspect-ratio: auto; }   /* takes the row height set by the upright clips */
.videos--more { grid-template-columns: repeat(2, 1fr); width: calc(50% - var(--space-3)); margin: var(--space-6) auto 0; }   /* second row: two upright clips, same size as row 1, centred */
.videos--more.is-collapsed { display: none; }   /* phones: hidden until "More videos" is pressed */
.videos-more { margin-top: var(--space-6); text-align: center; }
.videos-more:has(button[hidden]) { display: none; }
.clip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-12) var(--space-6) var(--space-8);
  font-size: var(--fs-sm); line-height: 1.4; color: var(--text); pointer-events: none;
  background: linear-gradient(0deg, rgb(13 11 10 / .85), transparent);
}
.clip:not(.is-ready) figcaption { display: none; }   /* no-JS: the native controls need that space */
.clip.is-ready { cursor: pointer; }
.clip__play {
  position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; padding: 0;
  border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 28px rgb(0 0 0 / .45);
  transition: opacity .3s ease, transform .3s ease;
}
.clip__play[hidden] { display: none; }
.clip__play svg { width: 28px; height: 28px; margin-left: 4px; }
.clip__play:hover, .clip__play:focus-visible { transform: scale(1.06); }
.clip.is-playing .clip__play { opacity: 0; transform: scale(.85); pointer-events: none; }
/* seek bar: the only video control, a thin gold line along the bottom that grows on hover/focus */
.clip__bar {
  --p: 0%; position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-2); z-index: 3;
  width: calc(100% - 2 * var(--space-4)); height: 20px; margin: 0; padding: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.clip__bar::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; transition: height .2s ease;
  background: linear-gradient(90deg, var(--accent) var(--p), rgb(255 255 255 / .3) var(--p));
}
.clip__bar::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%;
  background: var(--accent); box-shadow: 0 2px 6px rgb(0 0 0 / .5); transform: scale(0); transition: transform .2s ease;
}
.clip__bar::-moz-range-track { height: 4px; border-radius: 2px; background: rgb(255 255 255 / .3); }
.clip__bar::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.clip__bar::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .2s ease; }
.clip:hover .clip__bar::-webkit-slider-thumb, .clip__bar:focus-visible::-webkit-slider-thumb { transform: scale(1); }
.clip:hover .clip__bar::-moz-range-thumb, .clip__bar:focus-visible::-moz-range-thumb { transform: scale(1); }
.clip__bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  background: rgb(13 11 10 / .96); color: var(--text);
}
.lightbox::backdrop { background: rgb(0 0 0 / .8); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; position: fixed; inset: 0; width: 100%; height: 100dvh; overflow: hidden; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) var(--gutter); gap: var(--space-4); }
.lightbox__count { font-size: var(--fs-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; min-height: 0; touch-action: pan-y; }
.lightbox__stage img { position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + 56px); right: calc(var(--gutter) + 56px); width: calc(100% - 2 * (var(--gutter) + 56px)); height: 100%; max-width: none; object-fit: contain; }
.lightbox__caption { margin: 0; text-align: center; padding: var(--space-4) var(--gutter) var(--space-6); color: var(--text-muted); font-size: var(--fs-sm); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }

/* ---------- About ---------- */
.story-intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.story-intro__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.story-intro__media img { width: 100%; height: 100%; object-fit: cover; }
.story-since { display: flex; align-items: baseline; gap: var(--space-4); margin: 0 0 var(--space-6); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.story-since span { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.02em; color: var(--text); padding-right: var(--space-4); border-right: var(--stitch); }
.hero-philosophy { margin: var(--space-6) 0 0; max-width: 52ch; font-size: var(--fs-lg); font-weight: 500; line-height: 1.5; color: var(--text); }
.hero-philosophy .eyebrow { display: flex; margin-bottom: var(--space-3); }
.hero-points { display: grid; gap: var(--space-3); margin-top: var(--space-6); max-width: 60ch; }
.hero-points li { position: relative; padding-left: 28px; font-size: var(--fs-sm); line-height: 1.55; color: var(--text-muted); }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; border-top: var(--stitch); }
.hero-points strong { color: var(--accent); font-weight: 700; }
.hero-closing { margin: var(--space-6) 0 0; padding-left: var(--space-4); border-left: 2px solid var(--accent); font-family: var(--font-serif); font-weight: 600; color: var(--text); max-width: 52ch; }
.at-a-glance { position: relative; margin: var(--space-6) 0 var(--space-8); padding: var(--space-6) var(--space-6) var(--space-6); border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); }
.at-a-glance::before { content: ""; position: absolute; inset: 6px; border-radius: calc(var(--radius-card) - 3px); border: var(--stitch-soft); pointer-events: none; }
.at-a-glance .at-a-glance__title { margin: 0 0 var(--space-4); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.at-a-glance ul { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-6); }
.at-a-glance li { position: relative; padding-left: 26px; font-size: var(--fs-sm); font-weight: 500; line-height: 1.45; color: var(--text); }
.at-a-glance li::before { content: ""; position: absolute; left: 2px; top: .32em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.placeholder-note {
  border: 2px dashed var(--accent); border-radius: var(--radius-card); padding: var(--space-6);
  background: color-mix(in srgb, var(--accent) 7%, transparent); font-size: var(--fs-sm); color: var(--text-muted);
  margin: var(--space-6) 0;
}
.section--light .placeholder-note { color: var(--muted-on-light); border-color: var(--leather); background: color-mix(in srgb, var(--leather) 7%, transparent); }
.placeholder-note strong { color: var(--accent); display: block; margin-bottom: var(--space-2); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; }
.section--light .placeholder-note strong { color: var(--leather); }

.process { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-16); }
.process { align-items: start; }
.process__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 5; }
.process__media img { width: 100%; height: 100%; object-fit: cover; }
.process__steps { display: grid; gap: var(--space-4); align-content: center; }
.step { padding: var(--space-6) var(--space-8); border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface); position: relative; }
.step__num { font-size: var(--fs-xs); letter-spacing: .2em; color: var(--accent); font-weight: 700; display: block; margin-bottom: var(--space-3); }
.step h3 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.step p { color: var(--text-muted); margin: 0; }

.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.material { border-radius: var(--radius-card); padding: var(--space-8) var(--space-6); border: 1px solid var(--line-on-light); background: #fff8ec; }
.material__swatch { width: 54px; height: 54px; border-radius: 50%; margin-bottom: var(--space-6); position: relative; }
.material__swatch::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px dashed rgb(255 255 255 / .55); }
.material h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.material p { font-size: var(--fs-sm); color: var(--muted-on-light); margin: 0; }

.timeline { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; margin-top: var(--space-12); }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; border-top: var(--stitch); }
.timeline__item { text-align: center; position: relative; padding: 0 var(--space-2); }
.timeline__dot { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto var(--space-4); display: grid; place-items: center; background: radial-gradient(circle at 32% 28%, #f6d58a, var(--accent) 45%, #9a6d1d 100%); color: var(--accent-ink); position: relative; }
.timeline__dot svg { width: 24px; height: 24px; }
.timeline__year { font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.timeline__what { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.values--4 { grid-template-columns: repeat(4, 1fr); }
.value { padding: var(--space-8); border-top: var(--stitch); }
.value h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.value p { color: var(--text-muted); margin: 0; font-size: var(--fs-sm); }
.section--light .value p { color: var(--muted-on-light); }
.section--light .value { border-top-color: var(--leather); }


.faq { display: grid; gap: var(--space-3); max-width: 900px; }
.faq details { border: 1px solid var(--line-on-light); border-radius: var(--radius-card); background: #fff8ec; }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-6); font-weight: 700; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--leather); transition: transform .3s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--space-6) var(--space-6); margin: 0; color: var(--muted-on-light); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.contact-card {
  border-radius: var(--radius-card); padding: var(--space-8); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--space-4); position: relative; overflow-wrap: anywhere;
}
.contact-card__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card h2 { font-size: var(--fs-lg); }
.contact-card__big { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.01em; text-decoration: none; font-variant-numeric: tabular-nums; display: inline-flex; min-height: 44px; align-items: center; }
.contact-card__big:hover { color: var(--accent); }
.contact-card p { color: var(--text-muted); margin: 0; font-size: var(--fs-sm); }
.contact-card .btn { margin-top: auto; align-self: flex-start; }

.visit { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-12); align-items: stretch; }
.map-card {
  position: relative; border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); text-decoration: none; border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease-out);
}
.map-card:hover { border-color: var(--accent); }
.map-card__img { display: block; position: relative; flex: 1; min-height: 320px; overflow: hidden; }
.map-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1s var(--ease-out); }
.map-card:hover .map-card__img img { transform: scale(1.03); }
.map-card__label { padding: var(--space-4) var(--space-6); display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); }
.map-card__label strong { display: block; }
.map-card__label span { font-size: var(--fs-sm); color: var(--text-muted); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: var(--space-4) 0; border-bottom: 1px dashed var(--line); font-weight: 500; }
.hours td { text-align: right; color: var(--text-muted); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent); font-weight: 700; }
.hours .closed { color: var(--text-muted); opacity: .7; }
.open-state { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--space-6); }
.open-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); }
.open-state.is-open::before { background: #3fbf6b; box-shadow: 0 0 0 4px rgb(63 191 107 / .25); }

.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); counter-reset: s; }
.steps-3 li { padding: var(--space-8); border-radius: var(--radius-card); background: #fff8ec; border: 1px solid var(--line-on-light); counter-increment: s; }
.steps-3 li::before { content: "0" counter(s); display: block; font-size: var(--fs-2xl); font-weight: 800; color: var(--leather); line-height: 1; margin-bottom: var(--space-4); font-variant-numeric: tabular-nums; }
.steps-3 h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.steps-3 p { margin: 0; color: var(--muted-on-light); font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); padding-top: var(--space-12); padding-bottom: var(--space-6); border-top: var(--stitch); }
.footer__top { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1fr; gap: var(--space-8); align-items: start; }
.footer__big { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: var(--space-3); }
.footer__about { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; max-width: 36ch; }
.footer__col h2 { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3); font-weight: 700; }
.footer__col li { margin-bottom: 0; }
.footer__col p { margin: 0; }
.footer__col a, .footer__col p { color: var(--text-muted); text-decoration: none; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.footer__col a { display: inline-flex; align-items: center; min-height: 36px; }
.footer__col a:hover { color: var(--text); }
.footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.social { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease-out), border-color .3s; }
.social:hover { transform: translateY(-2px); border-color: var(--text-muted); }
.social svg { width: 24px; height: 24px; }
.footer__bottom { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- Intro (first page of a visit) ---------- */
html.intro-pending body::before {            /* covers the page until the script takes over */
  content: ""; position: fixed; inset: 0; z-index: 299; background: var(--bg);
  animation: introFailsafe 0s 3.5s forwards;  /* never leave the page covered if JS fails */
}
html.intro-pending .site-header .brand, html.intro-on .site-header .brand { visibility: hidden; }
html.intro-pending .site-header .brand { animation: introShow 0s 3.5s forwards; }   /* same failsafe for the logo */
@keyframes introFailsafe { to { visibility: hidden; } }
@keyframes introShow { to { visibility: visible; } }
html.intro-on { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 300; background: var(--bg); cursor: pointer; }
.intro__lockup { position: fixed; margin: 0; transform-origin: 50% 50%; pointer-events: none; }
.intro__emblem { position: relative; display: block; flex: none; }
.intro__emblem svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro__stitch { fill: none; stroke: var(--accent); stroke-width: 7; stroke-dasharray: 16 11; stroke-linecap: round; }

/* ---------- Reveal initial states (set only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); }
.js .hero__title .line > span { transform: translateY(105%); }

/* ==========================================================================
   Responsive — adapt downward
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__list { gap: var(--space-4); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand { gap: var(--space-2); }
  .brand__emblem { height: 48px; }
  .brand__word { height: 23.5px; }
  .brand__text, .brand__name { gap: 2px; }
  .brand__tag { font-size: 8px; }
  .brand__since { font-size: 8px; letter-spacing: .14em; margin-right: -.14em; }
  .nav__list, .nav__actions .btn { display: none; }      /* replaced by .menu-panel + .mobile-bar */
  .menu-toggle { display: inline-grid; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: calc(var(--mobilebar-h) + env(safe-area-inset-bottom));
    padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg-deep) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 48px; padding: 0 var(--space-4); width: 100%; }
  body { padding-bottom: calc(var(--mobilebar-h) + env(safe-area-inset-bottom)); }

  .hero { min-height: calc(100dvh - var(--mobilebar-h)); align-items: flex-end; padding-bottom: var(--space-8); }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__copy { padding-block: var(--space-8) 0; }
  .hero__media { top: var(--header-h); }
  .hero__frame::after { display: none; }
  .hero__frame img { object-position: 50% 45%; transform-origin: 50% 40%; }
  .hero__media::after {   /* darkening so the text stays readable */
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgb(13 11 10 / .45) 0%, rgb(13 11 10 / .62) 38%, rgb(13 11 10 / .9) 72%, var(--bg) 100%);
  }
  .hero .lede { color: color-mix(in srgb, var(--text) 88%, transparent); }

  .transform__layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .transform__stage .ba { height: auto; min-height: 0; width: 100%; aspect-ratio: 3 / 4; }

  .hgallery__track { gap: var(--space-4); }
  .service-card { height: auto; width: min(78vw, 340px); scroll-snap-align: center; }


  .reviews {
    display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 min(84vw, 360px); scroll-snap-align: start; }
  .review--feature { grid-column: auto; }

  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; grid-template-areas: "a c" "a c" "b b" "d d" "e e" "f f"; }

  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { flex-wrap: wrap; }

  .ba-trio { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .ba-trio figure, .ba-trio figure:has(.ba--wide) { grid-column: auto; }
  .page-hero__grid, .story-intro, .process, .visit { grid-template-columns: 1fr; gap: var(--space-8); }
  .process__media { aspect-ratio: 4 / 3; }
  .materials { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-8); }
  .timeline::before { display: none; }
  .values, .contact-grid, .steps-3 { grid-template-columns: 1fr; }
  .values--4 { grid-template-columns: 1fr 1fr; }
  .videos {   /* phones/tablets: a swipeable row instead of three tall stacked videos */
    display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none;
  }
  .videos::-webkit-scrollbar { display: none; }
  .clip { flex: 0 0 min(72vw, 340px); scroll-snap-align: center; }
  .clip--wide { flex-basis: min(88vw, 560px); }
  .videos--more { width: auto; margin-top: var(--space-6); }
  .map-card__img { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
}

@media (max-width: 560px) {
  .at-a-glance ul { grid-template-columns: 1fr; }
  .values--4 { grid-template-columns: 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
  .footer__col--pages { display: none; }   /* duplicate of header menu, which stays reachable */
  .site-footer { padding-top: var(--space-8); }
  .footer__bottom { margin-top: var(--space-6); flex-direction: column; gap: var(--space-1); }
  .btn { padding: 0 var(--space-6); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .bento { grid-auto-rows: 160px; }
  .materials { grid-template-columns: 1fr; }
  .masonry { columns: 2 140px; column-gap: var(--space-2); }
  .masonry.is-rows { gap: var(--space-2); }
  .tile { margin-bottom: var(--space-2); }
  .tile__cap { padding: var(--space-6) var(--space-3) var(--space-3); }
  .tile__cap strong { font-size: var(--fs-xs); }
  .tile__cap span, .tile__zoom { display: none; }
  .more-line { gap: var(--space-2); }
  .more-line__label { padding: 0 var(--space-4); letter-spacing: .1em; font-size: var(--fs-xs); }
  .lightbox__stage img { left: var(--space-2); right: var(--space-2); width: calc(100% - 2 * var(--space-2)); }
  .lightbox__nav { top: auto; bottom: var(--space-2); transform: none; z-index: 2; }
  .ba__handle { width: 54px; height: 54px; }
}

/* Phones & touch: arrows sit below each carousel instead of in the heading */
@media (max-width: 900px), (hover: none) {
  .hgallery__nav { display: none; }
  .carousel-arrows { display: flex; }
}
@media (min-width: 901px) { .reviews + .carousel-arrows { display: none; } }  /* reviews are a grid on desktop */

/* ---------- Reduced motion: everything static & visible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .hero__title .line > span { transform: none !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
}
