/* ============================================================
   FJD Constructions - style
   Architectural-editorial. Warm ivory, charcoal, one red line.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  /* colour - warm-tinted neutrals, one signal red */
  --ivory:        oklch(0.966 0.009 85);
  --ivory-deep:   oklch(0.936 0.013 84);
  --paper:        oklch(0.985 0.005 85);
  --ink:          oklch(0.245 0.007 70);
  --ink-deep:     oklch(0.205 0.007 70);
  --charcoal:     oklch(0.32 0.007 70);
  --text:         oklch(0.31 0.007 70);
  --text-muted:   oklch(0.47 0.010 72);
  --text-on-dark: oklch(0.93 0.010 85);
  --muted-on-dark:oklch(0.72 0.012 82);
  --line:         oklch(0.865 0.014 82);
  --line-on-dark: oklch(0.36 0.008 70);
  --red:          oklch(0.55 0.21 28);
  --red-deep:     oklch(0.48 0.19 28);
  --red-on-dark:  oklch(0.64 0.19 28);

  /* type */
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono-label: "Michroma", "Eurostile", sans-serif;

  --t-hero:    clamp(2.7rem, 7vw + 0.8rem, 5.6rem);
  --t-display: clamp(2.1rem, 3.6vw + 0.9rem, 3.7rem);
  --t-title:   clamp(1.7rem, 2vw + 1rem, 2.6rem);
  --t-lead:    clamp(1.15rem, 0.5vw + 1rem, 1.35rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-label:   0.72rem;

  /* space - 4pt scale */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-section: clamp(4.5rem, 10vw, 8.5rem);

  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* dark "liquid glass" header - translucent tint + backdrop blur.
     The gradient keeps the top edge slightly lighter so the bar reads as a
     pane catching light rather than a flat scrim. */
  --glass-tint: linear-gradient(
    to bottom,
    oklch(0.255 0.008 70 / 0.84),
    oklch(0.170 0.006 70 / 0.92)
  );
  --glass-blur: blur(22px) saturate(185%);
  --glass-tint-solid: oklch(0.215 0.007 70 / 0.94); /* no-backdrop-filter fallback */
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

::selection { background: var(--red); color: white; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink-deep);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-wrap: balance;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--font-mono-label);
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow-light {
  color: oklch(0.94 0.010 85);
  text-shadow: 0 1px 14px oklch(0.17 0.008 70 / 0.6);
}

/* ---------- section furniture: the level line ---------- */
.section { padding-block: var(--space-section); }

.section-mark {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.level-line {
  width: 2.5rem;
  height: 2px;
  background: var(--red);
  flex: none;
}
.section-num {
  font-family: var(--font-mono-label);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  color: var(--red);
}
.section-label {
  font-family: var(--font-mono-label);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-mark-dark .section-label { color: var(--muted-on-dark); }
.section-mark-dark .section-num { color: var(--red-on-dark); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
}
/* The glass pane lives on a pseudo-element so it can fade in/out — a gradient
   background can't be transitioned directly. Sits under .header-inner (z-index 2). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.12),   /* specular top edge */
    0 1px 0 oklch(1 0 0 / 0.07),         /* hairline where glass meets content */
    0 12px 32px -12px oklch(0 0 0 / 0.55);
  transition: opacity 0.35s var(--ease-out);
}
.site-header.is-scrolled::before,
.site-header.is-solid::before { opacity: 1; }

/* browsers without backdrop-filter: fall back to an opaque dark bar */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before { background: var(--glass-tint-solid); }
}
.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-md) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.brand img {
  width: clamp(108px, 12vw, 150px);
  height: auto;
  transition: width 0.35s var(--ease-out);
}
.site-header.is-scrolled .brand img { width: 104px; }

/* keep the brand + toggle above the full-screen overlay panel */
.header-inner { position: relative; z-index: 2; }
.brand { position: relative; z-index: 2; }

/* ---------- hamburger toggle (menu closed → three bars, open → X) ---------- */
.nav-toggle {
  display: none; /* the overlay is JS-driven; toggle appears only once nav-js is set */
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: -0.6rem; /* optical: nudge the icon to the gutter edge */
  padding: 0;
  border: 0;
  background: none;
  color: oklch(0.96 0.008 85);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* keep thin white bars legible over bright hero video frames */
  filter: drop-shadow(0 1px 1.5px oklch(0 0 0 / 0.55));
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.2s var(--ease-out), width 0.4s var(--ease-out);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; left: 0; top: -7px; }
.nav-toggle-bars::after  { position: absolute; left: 0; top: 7px; width: 17px; } /* shorter bottom bar — an editorial asymmetry */

.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); width: 26px; }

.site-nav a { text-decoration: none; }

/* ---------- overlay menu (every breakpoint — the hamburger is the only nav) ---------- */
html.nav-js .nav-toggle { display: inline-flex; }

html.nav-js .site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* .nav-inner's auto margins centre it; avoids the
                                  flex-centring overflow clip on short screens */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(16vh, 116px) var(--gutter) clamp(2rem, 6vh, 4rem);
  background: oklch(0.165 0.006 70 / 0.99);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  /* closed */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease-out), transform 0.55s var(--ease-out), visibility 0s linear 0.4s;
}
html.nav-js .site-header.nav-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out);
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: auto; /* centres when it fits, scrolls cleanly when it doesn't */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vh, 2.75rem);
}

.nav-links { display: flex; flex-direction: column; width: 100%; }

/* top-level items — the display-type list */
html.nav-js .site-nav .nav-links > a,
html.nav-js .site-nav .nav-item-row > a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: oklch(0.96 0.008 85);
  padding-block: clamp(0.3rem, 1.2vh, 0.6rem);
  width: fit-content;
  position: relative;
  transition: color 0.3s var(--ease-out);
}
/* red rule wipes in from the left on hover / current page */
html.nav-js .site-nav .nav-links > a::before,
html.nav-js .site-nav .nav-item-row > a::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0.12em;
  width: 100%; max-width: 0;
  height: 2px;
  background: var(--red-on-dark);
  transition: max-width 0.4s var(--ease-out);
}
html.nav-js .site-nav .nav-links > a:hover,
html.nav-js .site-nav .nav-links > a:focus-visible,
html.nav-js .site-nav .nav-item-row > a:hover,
html.nav-js .site-nav .nav-item-row > a:focus-visible { color: #fff; }
html.nav-js .site-nav .nav-links > a:hover::before,
html.nav-js .site-nav .nav-links > a:focus-visible::before,
html.nav-js .site-nav .nav-item-row > a:hover::before,
html.nav-js .site-nav .nav-item-row > a:focus-visible::before,
html.nav-js .site-nav .nav-links a[aria-current="page"]::before { max-width: 100%; }
html.nav-js .site-nav .nav-links a[aria-current="page"] { color: #fff; }
html.nav-js .site-nav .nav-item.is-current > .nav-item-row > a { color: #fff; }

/* ---------- Projects dropdown ---------- */
.nav-item { width: 100%; }
.nav-item-row { display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw, 1rem); }

.nav-sub-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid oklch(1 0 0 / 0.28);
  border-radius: 50%;
  background: none;
  color: oklch(0.82 0.010 82);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.nav-sub-toggle:hover,
.nav-sub-toggle:focus-visible { border-color: var(--red-on-dark); color: #fff; }
.nav-sub-toggle svg { transition: transform 0.4s var(--ease-out); }
.nav-item.is-open .nav-sub-toggle { border-color: var(--red-on-dark); color: #fff; }
.nav-item.is-open .nav-sub-toggle svg { transform: rotate(180deg); }

.nav-sub {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav-item.is-open .nav-sub { grid-template-rows: 1fr; opacity: 1; }

.nav-sub-list {
  overflow: hidden;
  min-height: 0;
  visibility: hidden; /* keeps collapsed links out of the tab order */
  transition: visibility 0s linear 0.45s;
  margin: 0;
  padding: 0 0 clamp(0.6rem, 1.8vh, 1.3rem);
  list-style: none;
  display: grid;
  gap: 0.15rem;
}
.nav-item.is-open .nav-sub-list { visibility: visible; transition-delay: 0s; }

html.nav-js .site-nav .nav-sub a {
  display: inline-block;
  position: relative;
  width: fit-content;
  margin-top: 0.55rem;
  padding: 0.25rem 0 0.25rem 2.1rem;
  font-size: clamp(1rem, 1.1vw + 0.75rem, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: oklch(0.78 0.010 82);
  transition: color 0.25s var(--ease-out), padding-left 0.3s var(--ease-out);
}
html.nav-js .site-nav .nav-sub a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 1.35rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transition: width 0.3s var(--ease-out), background-color 0.25s, opacity 0.25s;
}
html.nav-js .site-nav .nav-sub a:hover,
html.nav-js .site-nav .nav-sub a:focus-visible { color: #fff; padding-left: 2.5rem; }
html.nav-js .site-nav .nav-sub a:hover::before,
html.nav-js .site-nav .nav-sub a:focus-visible::before,
html.nav-js .site-nav .nav-sub a[aria-current="page"]::before {
  width: 1.8rem; background: var(--red-on-dark); opacity: 1;
}
html.nav-js .site-nav .nav-sub a[aria-current="page"] { color: #fff; }
.nav-sub-all { color: oklch(0.68 0.010 82) !important; font-size: var(--t-small) !important; }

@media (min-width: 861px) {
  .nav-sub-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 640px; /* keep the pair of columns reading as one block */
  }
}

/* CTA + credentials footer */
.nav-cta {
  align-self: flex-start;
  border: 1px solid oklch(1 0 0 / 0.5);
  color: oklch(0.96 0.008 85);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.4rem;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}
.nav-cta:hover, .nav-cta:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.nav-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: var(--t-small);
  color: oklch(0.72 0.008 80);
}
.nav-meta a { color: inherit; transition: color 0.25s; }
.nav-meta a:hover, .nav-meta a:focus-visible { color: oklch(0.96 0.008 85); }

/* Instagram — sits between the CTA and the fine print, glyph optically flush
   with the left edge of the menu type */
.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-left: -0.7rem;
  color: oklch(0.78 0.008 80);
  transition: color 0.25s var(--ease-out);
}
.nav-social svg { width: 30px; height: 30px; }
.nav-social:hover, .nav-social:focus-visible { color: #fff; }

/* stagger the links in as the overlay opens */
html.nav-js .site-nav .nav-inner > * { opacity: 0; transform: translateY(12px); }
html.nav-js .site-header.nav-open .site-nav .nav-inner > * {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
html.nav-js .site-header.nav-open .site-nav .nav-links a { animation: none; }
html.nav-js .site-header.nav-open .nav-inner > *:nth-child(1) { transition-delay: 0.08s; }
html.nav-js .site-header.nav-open .nav-inner > *:nth-child(2) { transition-delay: 0.15s; }
html.nav-js .site-header.nav-open .nav-inner > *:nth-child(3) { transition-delay: 0.22s; }
html.nav-js .site-header.nav-open .nav-inner > *:nth-child(4) { transition-delay: 0.29s; }

/* header stays clean while the menu is open — the overlay provides its own scrim */
html.nav-js .site-header.nav-open::before,
html.nav-js .site-header.nav-open.is-scrolled::before,
html.nav-js .site-header.nav-open.is-solid::before { opacity: 0; }

/* lock scroll while the menu is open (mirrors the lightbox lock) */
html.nav-lock, html.nav-lock body { overflow: hidden; }

/* no-JS: inline nav wraps below the logo, no toggle, submenu always shown */
html:not(.nav-js) .site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(0.75rem, 2.5vw, 1.5rem); }
html:not(.nav-js) .nav-inner,
html:not(.nav-js) .nav-links,
html:not(.nav-js) .nav-item,
html:not(.nav-js) .nav-item-row { display: contents; }
html:not(.nav-js) .nav-meta,
html:not(.nav-js) .nav-sub-toggle,
html:not(.nav-js) .nav-sub-all { display: none; }
html:not(.nav-js) .nav-sub { display: contents; }
html:not(.nav-js) .nav-sub-list {
  display: flex; flex-wrap: wrap; visibility: visible; overflow: visible;
  gap: clamp(0.6rem, 2vw, 1.25rem); list-style: none; margin: 0; padding: 0;
}
html:not(.nav-js) .site-nav a:not(.nav-cta) { font-size: var(--t-small); font-weight: 600; letter-spacing: 0.04em; color: oklch(0.95 0.008 85); }
html:not(.nav-js) .nav-sub a { color: oklch(0.8 0.008 82); }
html:not(.nav-js) .nav-cta { border: 1px solid oklch(1 0 0 / 0.6); color: oklch(0.95 0.008 85); font-size: var(--t-small); font-weight: 600; letter-spacing: 0.04em; padding: 0.5rem 1rem; }
html:not(.nav-js) .nav-social { width: 34px; height: 34px; margin-left: 0; }
html:not(.nav-js) .nav-social svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
  html.nav-js .site-nav,
  html.nav-js .site-nav .nav-inner > * { transition: none; }
  html.nav-js .site-header.nav-open .site-nav .nav-inner > * { transition: none; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; }
  .nav-sub, .nav-sub-toggle svg { transition: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink-deep);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%; /* keeps the neighbouring trade van (far frame-left) out of view */
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, oklch(0.17 0.008 70 / 0.82) 0%, oklch(0.17 0.008 70 / 0.25) 38%, transparent 62%),
    linear-gradient(to bottom, oklch(0.17 0.008 70 / 0.6) 0%, oklch(0.17 0.008 70 / 0.5) 12%, transparent 32%);
}
@media (max-width: 720px) {
  .hero-scrim {
    background:
      linear-gradient(to top, oklch(0.17 0.008 70 / 0.88) 0%, oklch(0.17 0.008 70 / 0.42) 48%, oklch(0.17 0.008 70 / 0.1) 72%),
      linear-gradient(to bottom, oklch(0.17 0.008 70 / 0.6) 0%, oklch(0.17 0.008 70 / 0.5) 12%, transparent 32%);
  }
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(4rem, 9vh, 6.5rem);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-hero);
  line-height: 1.04;
  color: oklch(0.975 0.006 85);
  margin-top: var(--space-lg);
  max-width: 14ch;
  text-shadow: 0 2px 28px oklch(0.17 0.008 70 / 0.45);
}
.hero-sub {
  margin-top: var(--space-lg);
  max-width: 44ch;
  font-size: var(--t-lead);
  line-height: 1.6;
  color: oklch(0.90 0.012 85 / 0.95);
}
.hero-actions {
  margin-top: var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
@media (max-width: 480px) {
  .hero-actions { display: grid; gap: var(--space-sm); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--t-small);
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-solid {
  background: oklch(0.975 0.006 85);
  color: var(--ink-deep);
}
.btn-solid:hover, .btn-solid:focus-visible { background: var(--red); color: white; }
.btn-ghost {
  border: 1px solid oklch(1 0 0 / 0.5);
  color: oklch(0.975 0.006 85);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--red); background: oklch(0.17 0.008 70 / 0.4); }

.hero-scroll {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 0;
  display: block;
  width: 2px;
  height: clamp(3.5rem, 8vh, 5.5rem);
  overflow: hidden;
}

.hero-pause {
  position: absolute;
  right: calc(clamp(1.25rem, 4vw, 3rem) - 21px);
  bottom: calc(clamp(3.5rem, 8vh, 5.5rem) + 1.25rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid oklch(1 0 0 / 0.4);
  background: oklch(0.17 0.008 70 / 0.35);
  color: oklch(0.97 0.005 85);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.25s, border-color 0.25s, background-color 0.25s;
}
.hero-pause:hover, .hero-pause:focus-visible { opacity: 1; border-color: oklch(1 0 0 / 0.8); }
.hero-pause .ic-play { display: none; margin-left: 2px; }
.hero-pause.is-paused .ic-play { display: block; }
.hero-pause.is-paused .ic-pause { display: none; }

@media (max-width: 720px) {
  .hero-scroll { display: none; } /* decorative; frees the corner for the pause control */
  .hero-pause { right: var(--gutter); bottom: 0.85rem; }
}
.hero-scroll-line {
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: scroll-drip 2.2s var(--ease-out) infinite;
}
@keyframes scroll-drip {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- 01 belief ---------- */
.belief-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.belief-copy {
  display: grid;
  gap: var(--space-lg);
  padding-top: 0.4em; /* optical: align first line with display cap height */
}
.belief-copy p:not(.lead) { color: var(--text-muted); }

.belief-cred {
  margin-top: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-2xl);
}
.belief-cred li { display: grid; gap: var(--space-2xs); }

@media (max-width: 860px) {
  .belief-grid { grid-template-columns: 1fr; }
  .belief-copy { padding-top: 0; }
}

/* ---------- 02 projects ---------- */
.section-projects { background: var(--paper); }

.project { margin-bottom: clamp(4.5rem, 10vw, 7.5rem); }
.project:last-of-type { margin-bottom: 0; }

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
}
.project-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-title);
  line-height: 1.15;
  color: var(--ink);
}
.project-place {
  font-family: var(--font-mono-label);
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.project-blurb {
  margin-top: var(--space-md);
  max-width: 62ch;
  color: var(--text-muted);
}

/* film player */
.film {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  background: var(--ink-deep);
  aspect-ratio: 1920 / 816;
  overflow: hidden;
}
.film.film-oran { aspect-ratio: 16 / 9; }
.film-video { width: 100%; height: 100%; object-fit: cover; }

.film-play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: linear-gradient(to top, oklch(0.17 0.008 70 / 0.78), oklch(0.17 0.008 70 / 0.62) 96px, transparent 50%);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  transition: background-color 0.3s;
}
.film-play:hover .film-play-disc,
.film-play:focus-visible .film-play-disc { background: var(--red); border-color: var(--red); transform: scale(1.06); }

.film-play-disc {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid oklch(1 0 0 / 0.7);
  display: grid;
  place-items: center;
  color: white;
  margin: 0 var(--space-lg) var(--space-lg) clamp(1rem, 3vw, 2rem);
  transition: background-color 0.25s, border-color 0.25s, transform 0.3s var(--ease-out);
  flex: none;
}
.film-play-disc svg { margin-left: 3px; } /* optical centre for play triangle */
.film-play-label {
  color: white;
  font-weight: 600;
  font-size: var(--t-small);
  letter-spacing: 0.04em;
  text-align: left;
  margin-bottom: calc(var(--space-lg) + 10px);
  display: grid;
  gap: 2px;
}
.film-play-label em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.8rem;
  color: oklch(0.97 0.005 85);
  letter-spacing: 0.08em;
}
.film-play-label { text-shadow: 0 1px 12px oklch(0.17 0.008 70 / 0.5); }
.film.is-playing .film-play { display: none; }

/* facts strip */
.project-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-block: 1px solid var(--line);
  margin-top: var(--space-xl);
}
.project-facts li {
  padding: var(--space-md) var(--space-lg) var(--space-md) 0;
  display: grid;
  gap: var(--space-2xs);
}
.project-facts li + li { padding-left: var(--space-lg); border-left: 1px solid var(--line); }
.fact-k {
  font-family: var(--font-mono-label);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fact-v { font-weight: 600; color: var(--ink); font-size: var(--t-small); }

@media (max-width: 680px) {
  .project-facts { grid-template-columns: 1fr 1fr; }
  .project-facts li { border-left: 0 !important; padding-left: 0 !important; }
  .project-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* stills */
.stills {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  margin-top: clamp(0.75rem, 1.6vw, 1.25rem);
}
.stills-moorefields { grid-template-columns: repeat(3, 1fr); }
.stills-moorefields .wide { grid-column: 1 / -1; }
.stills-oran { grid-template-columns: 5fr 7fr; align-items: stretch; }
.still { overflow: hidden; background: var(--ivory-deep); }
.still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.still:hover img { transform: scale(1.03); }
.stills-moorefields .still:not(.wide) { aspect-ratio: 4 / 3; }
.stills-moorefields .wide { aspect-ratio: 1920 / 700; }
.stills-oran .still { height: clamp(300px, 34vw, 460px); }
.stills-oran .still img { height: 100%; }

@media (max-width: 680px) {
  .film { aspect-ratio: 16 / 10; }
  .film-play-disc { width: 48px; height: 48px; margin: 0 var(--space-md) var(--space-md) 1rem; }
  .film-play-label { margin-bottom: calc(var(--space-md) + 6px); }
  .stills-moorefields { grid-template-columns: 1fr 1fr; }
  .stills-moorefields .still:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .stills-moorefields .wide { aspect-ratio: 16 / 9; }
  .stills-oran { grid-template-columns: 1fr; }
}

.projects-more {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--t-small);
}

/* ---------- 03 capabilities ---------- */
.section-capabilities {
  background: var(--ink-deep);
  color: var(--text-on-dark);
}
.cap-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.cap-intro .display { color: oklch(0.965 0.008 85); }
.cap-intro p { color: var(--muted-on-dark); line-height: 1.65; max-width: 44ch; }

.cap-list { border-top: 1px solid var(--line-on-dark); }
.cap-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--space-lg) clamp(1.5rem, 4vw, 3.5rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line-on-dark);
  transition: background-color 0.3s;
}
.cap-row:hover { background: oklch(0.24 0.008 70 / 0.5); }
.cap-num {
  font-family: var(--font-mono-label);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  color: var(--red-on-dark);
}
.cap-row h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem);
  color: oklch(0.965 0.008 85);
}
.cap-row p { color: var(--muted-on-dark); line-height: 1.65; }

@media (max-width: 780px) {
  .cap-intro { grid-template-columns: 1fr; }
  .cap-row { grid-template-columns: 1fr; gap: var(--space-xs); }
}

/* ---------- 04 approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.approach-img { overflow: hidden; }
.approach-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.approach-quote {
  padding-inline: clamp(0rem, 3vw, 2.5rem);
}
.approach-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.3vw + 1rem, 1.9rem);
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
}
.approach-quote .quote-label {
  display: inline-block;
  margin-top: var(--space-lg);
  font-style: normal;
  font-family: var(--font-mono-label);
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.approach-quote .quote-label::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 1.5rem;
  height: 2px;
  background: var(--red);
  margin-right: var(--space-sm);
}
@media (max-width: 780px) {
  .approach-grid { grid-template-columns: 1fr; }
  .approach-grid .approach-quote:nth-child(3) { order: 4; }
  .approach-grid .approach-img:nth-child(4) { order: 3; }
}

/* ---------- 05 contact ---------- */
.section-contact {
  background: var(--ink-deep);
  color: var(--text-on-dark);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.contact-heading { color: oklch(0.965 0.008 85); }
.contact-mail {
  display: inline-block;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 2rem);
  letter-spacing: 0.01em;
  color: oklch(0.965 0.008 85);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.3rem;
  transition: color 0.25s, border-color 0.25s;
  overflow-wrap: anywhere;
}
.contact-mail:hover, .contact-mail:focus-visible { color: var(--red-on-dark); }
.contact-meta {
  margin-top: var(--space-xl);
  font-family: var(--font-mono-label);
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* ---------- 05 contact: the enquiry form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 7vw, 5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr minmax(400px, 0.85fr); gap: clamp(3rem, 6vw, 6rem); }
}

/* the free-consultation offer, sitting under the heading */
.contact-offer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 46ch;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--text-on-dark);
}
.offer-badge {
  flex: none;
  margin-top: 0.25em;
  padding: 0.3rem 0.65rem;
  background: var(--red);
  color: white;
  font-family: var(--font-mono-label);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-intro .contact-mail { margin-top: clamp(1.75rem, 4vw, 2.75rem); }

.contact-form {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: oklch(0.255 0.007 70);
  border: 1px solid var(--line-on-dark);
}
.form-title {
  margin: 0 0 var(--space-xl);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-title);
  line-height: 1.15;
  color: oklch(0.965 0.008 85);
}

.field { margin-bottom: var(--space-lg); }
.field label {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-mono-label);
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.field input,
.field select {
  width: 100%;
  padding: 0.8rem 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  color: oklch(0.965 0.008 85);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-on-dark);
  border-radius: 0; /* iOS rounds inputs by default */
  transition: border-color 0.25s;
  appearance: none;
}
.field input:hover,
.field select:hover { border-bottom-color: var(--muted-on-dark); }
.field input:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--red);
}
.field input:focus-visible,
.field select:focus-visible { outline: none; } /* the red underline is the focus cue */
.field input::placeholder { color: oklch(0.55 0.01 75); }

/* the select needs its own chevron once the native one is stripped */
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.4rem;
  border-right: 1.5px solid var(--muted-on-dark);
  border-bottom: 1.5px solid var(--muted-on-dark);
  transform: rotate(45deg);
  pointer-events: none;
}
.field select { padding-right: 1.75rem; cursor: pointer; }
.field select option { color: var(--ink); background: var(--paper); } /* Windows renders these light */

.field.has-error input,
.field.has-error select { border-bottom-color: var(--red-on-dark); }
.field-err {
  margin-top: var(--space-xs);
  font-size: var(--t-small);
  color: var(--red-on-dark);
}

/* ---------- consultation modal (subpage CTAs open this) ---------- */
.consult-modal {
  width: min(30rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: var(--text-on-dark);
}
.consult-modal::backdrop {
  background: oklch(0.14 0.006 70 / 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.consult-modal .contact-form {
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  /* the off-screen honeypot would otherwise open up a sideways scroll here */
  overflow-x: hidden;
  overscroll-behavior: contain;
  border-color: oklch(0.42 0.008 70);
  box-shadow: 0 24px 60px -20px oklch(0 0 0 / 0.7);
}
.consult-modal .form-title { margin-bottom: var(--space-lg); }

.consult-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md);
  font-size: var(--t-small);
  color: var(--text-on-dark);
}

.consult-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-on-dark);
  cursor: pointer;
  transition: color 0.25s;
}
.consult-close:hover, .consult-close:focus-visible { color: oklch(0.965 0.008 85); }
/* a modal <dialog> is position:fixed per the UA stylesheet, so it already
   anchors the close button - no extra positioning needed here */

@media (prefers-reduced-motion: no-preference) {
  .consult-modal[open] { animation: consult-in 0.3s var(--ease-out); }
  .consult-modal[open]::backdrop { animation: consult-fade 0.3s var(--ease-out); }
}
@keyframes consult-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes consult-fade { from { opacity: 0; } to { opacity: 1; } }

/* honeypot: off-screen rather than display:none, which some bots skip */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-md);
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.form-submit[disabled] { opacity: 0.55; cursor: progress; }

.form-status {
  margin-top: var(--space-md);
  font-size: var(--t-small);
  line-height: 1.5;
}
.form-status:empty { margin-top: 0; }
.form-status.is-ok { color: oklch(0.82 0.13 150); }
.form-status.is-error { color: var(--red-on-dark); }

.form-fineprint {
  margin-top: var(--space-md);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted-on-dark);
}
.form-fineprint a { color: inherit; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--line-on-dark);
  padding-block: var(--space-xl);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.footer-logo { width: 104px; height: auto; }
.site-footer p {
  color: var(--muted-on-dark);
  font-size: 0.85rem;
}
.nowrap { white-space: nowrap; }
.footer-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-right: -0.6rem;
  color: var(--muted-on-dark);
  transition: color 0.3s var(--ease-out);
}
.footer-social svg { width: 29px; height: 29px; }
.footer-social:hover, .footer-social:focus-visible { color: var(--red-on-dark); }
@media (max-width: 720px) {
  .site-footer .sep { display: none; }
  .site-footer .nowrap { display: block; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .footer-meta { flex-direction: column-reverse; align-items: flex-start; gap: var(--space-xs); }
  .footer-social { margin-right: 0; margin-left: -0.6rem; }
}

/* ---------- reveal motion (gated on html.js so content is never lost without JS) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* no-JS fallbacks: header scrolls away instead of floating invisibly; film buttons hide (native controls show) */
html:not(.js) .site-header { position: absolute; background: oklch(0.205 0.007 70 / 0.94); }
html:not(.js) .film-play { display: none; }
html:not(.js) .hero-pause { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll-line { animation: none; transform: none; }
  .still img, .brand img { transition: none; }
}

/* ============================================================
   Multi-page additions: project pages + collection
   ============================================================ */

/* Subpages (no video hero behind it): the glass pane is on from the top */
.site-header.is-solid {
  position: sticky;
}
.site-header.is-solid .brand img { width: 104px; }

/* ---------- page head ---------- */
.page-head { padding: calc(var(--space-section) * 0.55) 0 clamp(2rem, 5vw, 3.5rem); }
.page-head .section-mark { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: 1.06;
  color: var(--ink);
  text-wrap: balance;
}
.page-lede {
  margin-top: var(--space-lg);
  max-width: 58ch;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- project detail page ---------- */
.project-hero { position: relative; overflow: hidden; background: var(--ivory-deep); }
.project-hero img { width: 100%; aspect-ratio: 21 / 10; object-fit: cover; }
@media (max-width: 680px) { .project-hero img { aspect-ratio: 16 / 10; } }

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
  align-items: start;
}
.project-desc { display: grid; gap: var(--space-lg); max-width: 68ch; }
.project-desc p { color: var(--text); }
.project-aside { display: grid; gap: var(--space-xl); }
.aside-facts { border-top: 1px solid var(--line); }
.aside-facts li {
  display: grid;
  gap: var(--space-2xs);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--line);
}
.feature-list { display: grid; gap: var(--space-sm); }
.feature-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-muted);
  font-size: var(--t-small);
  line-height: 1.55;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.75rem;
  height: 2px;
  background: var(--red);
}
@media (max-width: 860px) { .project-body { grid-template-columns: 1fr; } }

/* gallery: editorial rhythm - wide row, pair, wide row… */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.gallery figure { overflow: hidden; background: var(--ivory-deep); margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery .g-wide { grid-column: 1 / -1; }
.gallery .g-wide img { aspect-ratio: 1920 / 900; }
.gallery figure:not(.g-wide) img { aspect-ratio: 4 / 3; }
@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:not(.g-wide) img, .gallery .g-wide img { aspect-ratio: 16 / 11; }
}

.render-note {
  margin-top: var(--space-md);
  font-family: var(--font-mono-label);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* prev / next pager */
.pager {
  margin-top: var(--space-section);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pager a {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-xl) var(--space-md);
  text-decoration: none;
  transition: background-color 0.3s;
}
.pager a:hover { background: var(--ivory-deep); }
.pager .pager-next { text-align: right; border-left: 1px solid var(--line); }
.pager .pager-k {
  font-family: var(--font-mono-label);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pager .pager-v { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }

/* ---------- collection (projects index) ---------- */
.collection-group { padding-block: clamp(2rem, 5vw, 3.5rem); }
.collection-group + .collection-group { border-top: 1px solid var(--line); }

.card-grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; } }

.pcard { display: block; text-decoration: none; }
.card-media { position: relative; overflow: hidden; background: var(--ivory-deep); }
.card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.pcard:hover .card-media img, .pcard:focus-visible .card-media img { transform: scale(1.04); }
.pcard-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.pcard h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--ink);
}
.pcard .pcard-loc {
  font-family: var(--font-mono-label);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.pcard p { margin-top: var(--space-xs); color: var(--text-muted); font-size: var(--t-small); max-width: 52ch; }
.pcard:hover h3 { color: var(--red-deep); }

/* transparent COMING SOON watermark */
.card-media.is-coming::before,
.project-hero.is-coming::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: oklch(0.22 0.008 70 / 0.34);
  pointer-events: none; /* let clicks reach the lightbox trigger beneath */
}
.card-media.is-coming::after,
.project-hero.is-coming::after {
  content: "LIVE IN CONSTRUCTION";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  transform: rotate(-9deg);
  font-family: var(--font-mono-label);
  font-size: clamp(1rem, 3.2vw, 1rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: oklch(1 0 0 / 0.72);
  text-shadow: 0 1px 18px oklch(0.17 0.008 70 / 0.55);
  pointer-events: none;
}
.project-hero.is-coming::after { font-size: clamp(1.3rem, 4vw, 2.4rem); }

/* status chip on coming-soon detail pages */
.status-line {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-family: var(--font-mono-label);
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.status-line::before { content: ""; width: 1.5rem; height: 2px; background: var(--red); }

/* contact band reused on subpages */
.cta-band {
  background: var(--ink-deep);
  color: var(--text-on-dark);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  margin-top: var(--space-section);
}
.cta-band .display { color: oklch(0.965 0.008 85); }
.cta-band .contact-mail { font-size: clamp(1.05rem, 2vw, 1.5rem); }

/* home teaser row */
.home-teaser { margin-top: clamp(3rem, 7vw, 5rem); }
.more-link {
  display: inline-block;
  margin-left: var(--space-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.1rem;
  transition: color 0.25s;
}
.more-link:hover, .more-link:focus-visible { color: var(--red-deep); }

/* review-pass refinements */
.card-grid.cols-1 { grid-template-columns: minmax(0, 560px); }
.pcard-title-row { flex-wrap: wrap; }
.project-aside h2.section-label { margin-bottom: var(--space-md); }
html:not(.js) .site-header.is-solid { position: sticky; }

/* ---------- lightbox ---------- */
.lb-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: oklch(0.185 0.008 70);
  color: oklch(0.97 0.005 85);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox:focus { outline: none; }
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: transparent; }

.lightbox figure {
  margin: 0;
  max-width: min(92vw, 1500px);
  max-height: 86dvh;
  display: grid;
  gap: var(--space-md);
  justify-items: center;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(86dvh - 3.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px oklch(0 0 0 / 0.5);
}
.lightbox figcaption {
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
  max-width: 80ch;
}
.lb-count {
  font-family: var(--font-mono-label);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--red-on-dark);
  white-space: nowrap;
}
.lb-cap { font-size: var(--t-small); color: oklch(0.85 0.01 85); }

.lightbox .lb-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid oklch(1 0 0 / 0.4);
  background: oklch(0.17 0.008 70 / 0.5);
  color: oklch(0.97 0.005 85);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.lightbox .lb-btn:hover, .lightbox .lb-btn:focus-visible { border-color: var(--red-on-dark); background: oklch(0.24 0.01 70 / 0.7); }
.lb-close { top: clamp(0.75rem, 2vw, 1.5rem); right: clamp(0.75rem, 2vw, 1.5rem); }
.lb-prev { left: clamp(0.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox.lb-single .lb-prev,
.lightbox.lb-single .lb-next,
.lightbox.lb-single .lb-count { display: none; }

@media (max-width: 680px) {
  .lightbox figure { max-width: 100vw; padding-inline: var(--space-md); }
  .lb-prev { left: 0.5rem; top: auto; bottom: 1rem; transform: none; }
  .lb-next { right: 0.5rem; top: auto; bottom: 1rem; transform: none; }
  .lightbox figcaption { flex-direction: column; gap: var(--space-2xs); align-items: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] img { animation: lb-in 0.35s var(--ease-out); }
  @keyframes lb-in {
    from { opacity: 0; transform: scale(0.985); }
    to { opacity: 1; transform: none; }
  }
}

html.lb-lock, html.lb-lock body { overflow: hidden; }

/* visually hidden (screen-reader announcer) */
.lb-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ============================================================
   Improvement pass: wayfinding, feature card, polish
   ============================================================ */

/* (active nav state is handled in the overlay menu - see .nav-links a[aria-current]) */

/* section-label as a breadcrumb link on project pages */
a.section-label { text-decoration: none; transition: color 0.25s; }
a.section-label:hover, a.section-label:focus-visible { color: var(--red-deep); }

/* collection group count */
.group-count {
  font-family: var(--font-mono-label);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-left: auto;
}

/* 3-slot pager: prev | all projects | next */
.pager { grid-template-columns: 1fr auto 1fr; }
.pager .pager-all {
  text-align: center;
  border-left: 1px solid var(--line);
}
.pager .pager-next { border-left: 1px solid var(--line); }
.pager .pager-cat {
  font-family: var(--font-mono-label);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-2xs);
}
.pager .pager-next .pager-cat { text-align: right; }
@media (max-width: 620px) {
  .pager { grid-template-columns: 1fr; }
  .pager .pager-all { display: none; }
  .pager .pager-next { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .pager .pager-next .pager-cat { text-align: left; }
}

/* feature card (solo groups: Commercial) - image left, copy right */
.card-grid.feature-grid { grid-template-columns: 1fr; }
.pcard-feature {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}
.pcard-feature .card-media img { aspect-ratio: 16 / 11; }
.pcard-feature .pcard-title-row { margin-top: 0; }
.pcard-feature h3 { font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.2rem); }
.pcard-feature p { max-width: 46ch; }
.pcard-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-lg);
  font-weight: 600;
  font-size: var(--t-small);
  color: var(--ink);
}
.pcard-cta::after {
  content: "";
  width: 1.5rem; height: 2px;
  background: var(--red);
  transition: width 0.3s var(--ease-out);
}
.pcard-feature:hover .pcard-cta::after, .pcard-feature:focus-visible .pcard-cta::after { width: 2.25rem; }
.pcard-feature:hover h3 { color: var(--red-deep); }
@media (max-width: 680px) { .pcard-feature { grid-template-columns: 1fr; gap: var(--space-md); } }


/* CTA band: quiet credentials on the right */
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2xl);
  align-items: end;
}
.cta-aside {
  text-align: right;
  font-family: var(--font-mono-label);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 2.1;
  color: var(--muted-on-dark);
  margin: 0;
}
.cta-aside span { color: var(--red-on-dark); }
@media (max-width: 700px) {
  .cta-inner { grid-template-columns: 1fr; gap: var(--space-xl); }
  .cta-aside { text-align: left; }
}

/* the free-consultation offer + button, shared by every subpage band */
.cta-offer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 46ch;
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--text-on-dark);
}
.cta-actions { margin-top: var(--space-lg); }
.cta-band .contact-mail { margin-top: clamp(1.5rem, 3vw, 2rem); }
@media (max-width: 480px) {
  .cta-offer { align-items: flex-start; }
  .cta-actions .btn { display: flex; width: 100%; }
}

/* home capability rows become links to their project group */
a.cap-row { text-decoration: none; color: inherit; }
a.cap-row .cap-num { transition: color 0.25s; }
a.cap-row:hover h3, a.cap-row:focus-visible h3 { color: oklch(0.965 0.008 85); }

/* home teaser: keep the location on its own line so the three headers align */
.home-teaser .pcard-title-row { flex-direction: column; align-items: flex-start; gap: var(--space-2xs); }

/* lightbox trigger + touch affordance */
.lb-trigger { position: relative; }
.lb-trigger picture { display: block; }
@media (hover: none) {
  .gallery .lb-trigger::after,
  .stills .lb-trigger::after,
  .project-hero .lb-trigger::after {
    content: "";
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background: oklch(0.17 0.008 70 / 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H5v4M15 4h4v4M15 20h4v-4M9 20H5v-4'/%3E%3C/svg%3E") center / 16px no-repeat;
    pointer-events: none;
  }
}
.project-more-link { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.notfound-links { display: flex; flex-wrap: wrap; gap: var(--space-lg) var(--space-2xl); margin-top: var(--space-2xl); }

/* category pages: switcher between collections + link from each index group */
.cat-switch { display: flex; flex-wrap: wrap; gap: var(--space-lg) var(--space-2xl); margin-top: var(--space-lg); }
.cat-switch .more-link,
.group-more .more-link { margin-left: 0; }
.group-more { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
