/* ============================================================================
   Jonnes Photography — public site theme
   Layout, type and components from the Brivon design system (html.design, MIT),
   painted in the Jonnes Photography logo palette:
     gallery-wall cool white (#F9FAFC), deep lens navy (#04194E / #020F2E),
     one steel-blue "aperture" accent (#9DB9D3) with a darker steel (#3E5B73) for text on light.
   Display in Boldonse, body in Inter Tight, captions in Geist Mono.
   Dark navy "reverse" sections (.tile-section, footer, featured tier, lightbox)
   re-point the semantic colour tokens, so nested components follow automatically.
   ============================================================================ */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Palette — Skeletons colours, carried into the Brivon layout. */
  --ink-000:        #020F2E;          /* skeleton --ink: deepest navy — dark chips, dark sections, text on gold */
  --ink-deep:       #04194E;          /* skeleton --navy */
  --navy-2:         #0F2F78;          /* skeleton --navy2 — button hover */
  --sky:            #9DB9D3;          /* skeleton --sky */

  --cream:          #F9FAFC;          /* skeleton --bg — page ground */
  --cream-2:        #EEF2F7;          /* skeleton --bg2 */
  --white:          #FFFFFF;          /* skeleton --surface — cards */
  --mist:           #E4EAF1;          /* skeleton --mist — placeholders, hover */
  --line:           #D9E1EA;          /* skeleton --line */
  --text:           #07143A;          /* skeleton --text */
  --muted:          #53627A;          /* skeleton --muted */

  --paper:          #FFFFFF;          /* text on navy */
  --paper-soft:     #CBD8E6;          /* secondary text on navy */
  --paper-mute:     #A9BACD;          /* tertiary text on navy */

  --gold:           #9DB9D3;          /* skeleton --gold — signature accent (fills) */
  --gold-soft:      #BCD1E4;          /* hover */
  --gold-deep:      #4B6981;          /* skeleton --gold2 — borders, focus, pressed */
  --gold-ink:       #3E5B73;          /* skeleton --gold-ink — gold TEXT on light grounds */
  --gold-glow:      rgba(157, 185, 211, 0.30);

  /* Semantic surfaces */
  --bg:             var(--cream);
  --bg-alt:         var(--cream-2);
  --bg-card:        var(--white);
  --bg-elev:        var(--mist);
  --bg-tile:        var(--ink-000);      /* reverse-mode (navy) sections */

  --fg:             var(--text);
  --fg-soft:        var(--muted);
  --fg-mute:        var(--muted);
  --fg-deep:        rgba(91, 101, 121, 0.7);
  --fg-on-tile:     var(--paper);
  --fg-on-tile-mute:var(--paper-mute);

  --rule:           var(--line);
  --rule-strong:    rgba(7, 20, 58, 0.28);
  --rule-gold:      rgba(75, 105, 129, 0.45);

  --accent-text:    var(--gold-ink);     /* gold-coloured TEXT (flips to --gold on navy) */
  --primary:        var(--ink-deep);
  --primary-deep:   var(--navy-2);
  --accent:         var(--gold);

  /* Typography — Boldonse display, Inter Tight body, Geist Mono captions.
     Per memory: Boldonse needs line-height 1.25 minimum, never below 1.15. */
  --font-display:   'Boldonse', 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-body:      'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:      'Geist Mono', 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --text-xs:    0.75rem;
  --text-sm:    0.8125rem;
  --text-base:  clamp(1rem, 0.94rem + 0.28vw, 1.0625rem);
  --text-lg:    clamp(1.125rem, 1rem + 0.45vw, 1.25rem);
  --text-xl:    clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl:   clamp(1.5rem, 1.25rem + 0.95vw, 2rem);
  --text-3xl:   clamp(1.875rem, 1.45rem + 1.7vw, 2.75rem);
  --text-4xl:   clamp(2.5rem, 1.75rem + 2.6vw, 4rem);
  --text-5xl:   clamp(2.8rem, 1.9rem + 3.4vw, 4.75rem);
  --text-mega:  clamp(2.5rem, 1.6rem + 3vw, 4.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4.5rem;
  --space-9:  6.5rem;
  --space-10: 9rem;
  --space-11: 12rem;

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-2xl: 40px;
  --radius-full: 999px;

  --container:        1340px;
  --container-wide:   1480px;
  --container-narrow: 1080px;
  --gutter:           clamp(1.25rem, 1rem + 1.5vw, 2.25rem);

  --shadow-xs:  0 1px 2px rgba(2, 15, 46, 0.08);
  --shadow-sm:  0 4px 12px rgba(2, 15, 46, 0.08);
  --shadow:     0 16px 36px -12px rgba(2, 15, 46, 0.18);
  --shadow-md:  0 24px 56px -18px rgba(2, 15, 46, 0.22);
  --shadow-lg:  0 48px 96px -32px rgba(2, 15, 46, 0.28);
  --shadow-gold: 0 22px 60px -22px rgba(4, 25, 78, 0.40);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   180ms;
  --dur-base:   320ms;
  --dur-slow:   620ms;
  color-scheme: light;
}

/* Navy surfaces: re-point the semantic tokens so every nested component reads correctly */
.tile-section, .site-footer, .tier-card.featured, #lb, .hero {
  --fg:           var(--paper);
  --fg-soft:      var(--paper-soft);
  --fg-mute:      var(--paper-mute);
  --fg-deep:      rgba(255, 255, 255, 0.45);
  --rule:         rgba(255, 255, 255, 0.12);
  --rule-strong:  rgba(255, 255, 255, 0.28);
  --rule-gold:    rgba(157, 185, 211, 0.5);
  --bg-card:      rgba(255, 255, 255, 0.06);
  --bg-elev:      rgba(255, 255, 255, 0.10);
  --accent-text:  var(--gold);
  color: var(--fg);
}
/* ...and white cards that sit inside navy sections go back to the light tokens */
.tile-section .process-card {
  --fg:           var(--text);
  --fg-soft:      var(--muted);
  --fg-mute:      var(--muted);
  --rule:         var(--line);
  --rule-strong:  rgba(7, 20, 58, 0.28);
  --accent-text:  var(--gold-ink);
  color: var(--fg);
}

/* ---------- 2. Reset / base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: var(--ink-000); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink-000);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  z-index: 999;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- 3. Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

section { padding-block: var(--space-9); }
section.compact  { padding-block: var(--space-7); }
section.snug     { padding-block: var(--space-8); }

.grid { display: grid; gap: var(--space-6); }
.flex { display: flex; }
.center-row { display: flex; align-items: center; gap: var(--space-4); }

/* ---------- 4. Typography ----------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
.eyebrow--on-tile { color: var(--fg-on-tile-mute); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  /* Per memory: Boldonse-class display fonts require >= 1.2 line-height. */
  line-height: 1.25;
  text-transform: uppercase;
}
h1 { font-size: var(--text-5xl); line-height: 1.22; }
h2 { font-size: var(--text-4xl); line-height: 1.25; }
h3 { font-size: var(--text-2xl); line-height: 1.3; }
h4 { font-size: var(--text-xl); line-height: 1.32; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 62ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
}
.label--gold { color: var(--accent-text); }

/* ---------- 5. Header / Nav --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 252, 0.84);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--gold);
  display: inline-block;
  position: relative;
  border-radius: 4px;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--ink-000);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}
.nav-links {
  display: flex;
  gap: var(--space-5);
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--fg-soft);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--fg); border-bottom-color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--accent-text); border-bottom-color: var(--gold); }
.nav-cta-row { display: flex; gap: var(--space-3); align-items: center; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--fg);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; right: 0;
  height: 2px; background: var(--fg);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: var(--space-7) var(--gutter);
  display: none;
  flex-direction: column;
  gap: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  text-transform: uppercase;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a { color: var(--fg); }
.mobile-drawer a:hover { color: var(--accent-text); }
.drawer-close {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 6. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink-deep);
  color: var(--paper);
}
.btn--primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { background: var(--ink-000); border-color: var(--ink-000); color: var(--paper); }
.btn--ghost-on-tile {
  background: transparent;
  color: var(--fg-on-tile);
  border-color: var(--rule-strong);
}
.btn--ghost-on-tile:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark {
  background: var(--ink-000);
  color: var(--paper);
}
.btn--dark:hover { background: var(--ink-deep); }
.btn--sm { padding: 8px 14px; font-size: var(--text-xs); }
.btn--lg { padding: 16px 28px; }
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 7. Hero ----------------------------------------------------- */
.hero {
  padding-block: var(--space-8) var(--space-9);
  background:
    radial-gradient(900px 460px at 88% 0%, rgba(157, 185, 211, 0.30), transparent 60%),
    radial-gradient(900px 520px at 0% 100%, rgba(15, 47, 120, 0.60), transparent 60%),
    linear-gradient(135deg, var(--ink-000), var(--ink-deep));
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
/* logo motif: slim diagonal bars in the corners, like the Jonnes card */
.hero::before, .closing-cta::before {
  content: "";
  position: absolute; left: 0; top: 0; width: 120px; height: 120px;
  background:
    linear-gradient(135deg, var(--ink-deep) 0 38%, transparent 38% 52%, var(--sky) 52% 58%, transparent 58%);
  opacity: .9; pointer-events: none; z-index: 0;
}
.closing-cta { position: relative; overflow: hidden; }
.closing-cta > * { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}
.hero-text > * + * { margin-top: var(--space-5); }
.hero-headline {
  font-size: var(--text-mega);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.018em;
}
.hero-headline .gold { color: var(--accent-text); }
.hero-headline .slash { color: var(--fg-mute); font-weight: 400; }
.hero-sub {
  color: var(--fg-soft);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 56ch;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  margin-top: var(--space-6);
}
.hero-meta strong { color: var(--fg); font-weight: 500; }

.hero-media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}
.floating-tag {
  position: absolute;
  background: rgba(249, 250, 252, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow);
}
.floating-tag .pill {
  background: var(--gold);
  color: var(--ink-000);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.ft-top    { top: 16px; left: 16px; }
.ft-bottom { bottom: 16px; right: 16px; }
.ft-mid-r  { top: 50%; right: 16px; transform: translateY(-50%); }

/* ---------- 8. Stat strip ---------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-block: 1px solid var(--rule);
  margin-top: var(--space-7);
}
.stat-cell {
  padding: var(--space-6) var(--space-5);
  border-inline-end: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.stat-cell:last-child { border-inline-end: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.018em;
}
.stat-num .gold { color: var(--accent-text); }
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 9. Section headers ----------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-7);
}
.section-head h2 {
  font-size: var(--text-4xl);
  line-height: 1.22;
  text-transform: uppercase;
  letter-spacing: -0.018em;
}
.section-head .lede { max-width: 48ch; }

/* ---------- 10. Work grid (selected work, archive) --------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}
.work-item {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  isolation: isolate;
}
.work-item .wm {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.work-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.work-item:hover img { transform: scale(1.04); filter: contrast(1.05); }
.work-item .wm-pill {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--ink-000);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work-item .wm-arrow {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 40px; height: 40px;
  background: var(--gold);
  color: var(--ink-000);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.work-item:hover .wm-arrow { transform: translate(2px, -2px); }
.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  font-family: var(--font-mono);
}
.work-meta .wm-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.work-meta .wm-cap {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.work-item--xl  { grid-column: span 8; }
.work-item--lg  { grid-column: span 7; }
.work-item--md  { grid-column: span 5; }
.work-item--sm  { grid-column: span 4; }
.work-item--xl .wm { aspect-ratio: 16 / 11; }
.work-item--lg .wm { aspect-ratio: 4 / 3; }

/* ---------- 11. Reverse-mode tile (paper section) ---------------------- */
.tile-section {
  background: var(--bg-tile);
  color: var(--fg-on-tile);
  position: relative;
}
.tile-section .eyebrow { color: var(--gold); }
.tile-section .eyebrow .dot { background: var(--gold); }
.tile-section .lede { color: var(--fg-soft); }
.tile-section h1,
.tile-section h2,
.tile-section h3,
.tile-section h4 { color: var(--paper); }
.tile-section .label { color: var(--fg-on-tile-mute); }
.tile-section .mono  { color: var(--fg-soft); }
.tile-section .btn--ghost { color: var(--paper); border-color: var(--rule-strong); }
.tile-section .btn--ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.tile-section .btn--primary,
.tile-section .btn--dark { background: var(--gold); color: var(--ink-000); }
.tile-section .btn--primary:hover,
.tile-section .btn--dark:hover { background: var(--gold-soft); }
.tile-section hr { border: 0; border-top: 1px solid var(--rule); }

/* ---------- 12. Chapter opener ----------------------------------------- */
.chapter {
  padding-block: var(--space-9);
}
.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--space-8);
  align-items: start;
}
.chapter-grid .label { margin-bottom: var(--space-4); }
.chapter-body p {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 60ch;
}
.tile-section .chapter-body p { color: var(--fg-soft); }
.pull-quote {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-block: var(--space-6);
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--gold);
  max-width: 22ch;
}
.tile-section .pull-quote { color: var(--paper); border-color: var(--gold); }
.pull-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: var(--space-3);
  font-style: normal;
}

/* ---------- 13. Capability bento --------------------------------------- */
.cap-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
}
.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.cap-card:hover { border-color: var(--rule-gold); background: var(--bg-elev); }
.cap-card .label { color: var(--fg-mute); }
.cap-card h3 {
  font-size: var(--text-xl);
  line-height: 1.3;
  text-transform: uppercase;
}
.cap-card p { color: var(--fg-soft); }
.cap-card .cap-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.cap-card--wide { grid-column: span 6; }
.cap-card--std  { grid-column: span 3; }
.cap-card--tall { grid-column: span 4; grid-row: span 2; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; }
.cap-card--tall img { width: 100%; height: 100%; object-fit: cover; }
.cap-card--tall .cap-tall-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5);
  background: linear-gradient(180deg, transparent, rgba(2,15,46,0.85));
  color: var(--paper);
}
.cap-card--tall { position: relative; }

/* ---------- 14. Process / numbered steps ------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}
.process-card {
  padding: var(--space-6);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.process-card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  color: var(--accent-text);
}
.process-card h3 { font-size: var(--text-lg); text-transform: uppercase; }
.process-card p { color: var(--fg-soft); font-size: var(--text-base); }

/* ---------- 15. Split-image chapter ------------------------------------ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-9);
}
.split--reverse .split-text { order: 2; }
.split-text { display: flex; flex-direction: column; gap: var(--space-5); }
.split-text h2 { font-size: var(--text-3xl); line-height: 1.22; text-transform: uppercase; }
.split-text p { color: var(--fg-soft); font-size: var(--text-base); line-height: 1.6; }
.tile-section .split-text p { color: var(--fg-soft); }
.split-fact-list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--rule);
}
.tile-section .split-fact-list { border-top-color: var(--rule); }
.split-fact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-sm);
}
.tile-section .split-fact-list li { border-bottom-color: var(--rule); }
.split-fact-list li b {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.tile-section .split-fact-list li b { color: var(--fg-on-tile-mute); }
.split-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-md);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img .ft-corner {
  position: absolute;
  bottom: 14px; left: 14px;
  background: var(--gold);
  color: var(--ink-000);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 16. Press / logo strip ------------------------------------- */
.press-strip {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-7);
  align-items: center;
  padding-block: var(--space-7);
  border-block: 1px solid var(--rule);
}
.press-strip .label { font-size: var(--text-xs); }
.press-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  align-items: center;
  color: var(--fg-mute);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.press-row span { white-space: nowrap; transition: color var(--dur-fast) var(--ease-out); }
.press-row span:hover { color: var(--fg); }

/* ---------- 17. Pricing / service tiers --------------------------------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.tier-card.featured {
  background: var(--ink-000);
  color: var(--paper);
  border-color: var(--ink-000);
  box-shadow: var(--shadow-gold);
}
.tier-card.featured .label,
.tier-card.featured .tier-meta,
.tier-card.featured .tier-list li,
.tier-card.featured p { color: var(--fg-soft); }
.tier-card.featured .label { color: var(--fg-mute); }
.tier-card.featured .tier-list li::before { background: var(--gold); }
.tier-card.featured h3 { color: var(--paper); }
.tier-card .label { color: var(--fg-mute); }
.tier-card h3 { font-size: var(--text-2xl); text-transform: uppercase; }
.tier-meta {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg-soft);
}
.tier-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.tier-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--fg-soft);
}
.tier-list li::before {
  content: '';
  width: 6px; height: 6px;
  margin-top: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.tier-card.featured .tier-list li { color: var(--fg-soft); }
.tier-divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-block: var(--space-3);
}
.tier-card.featured .tier-divider { border-top-color: var(--rule); }

/* ---------- 18. Forms --------------------------------------------------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: grid;
  gap: var(--space-5);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.form-row--full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--fg);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  font-family: var(--font-body);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fg-deep); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--gold-deep);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}
.form-actions small {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}

/* ---------- 19. FAQ ----------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
}
.faq-card h3 {
  font-size: var(--text-lg);
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.faq-card p { color: var(--fg-soft); font-size: var(--text-sm); }

/* ---------- 20. Journal / notes grid ----------------------------------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.journal-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-5);
}
.journal-card .j-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.journal-card .j-img img { width: 100%; height: 100%; object-fit: cover; }
.journal-card h3 {
  font-size: var(--text-xl);
  line-height: 1.3;
  text-transform: uppercase;
}
.journal-card .j-meta {
  display: flex;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 21. Awards strip ------------------------------------------- */
.awards-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--rule);
}
.award-cell {
  padding: var(--space-6) var(--space-4);
  border-inline-end: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
}
.award-cell:last-child { border-inline-end: 0; }
.award-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--accent-text);
}
.award-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 22. Team grid ---------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.team-card { display: flex; flex-direction: column; gap: var(--space-3); }
.team-card .t-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
}
.team-card .t-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3); transition: filter var(--dur-base) var(--ease-out); }
.team-card:hover .t-img img { filter: grayscale(0); }
.team-card h3 {
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.team-card .t-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 23. Contact channels bento --------------------------------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.channel-card .label { color: var(--accent-text); }
.channel-card h3 { font-size: var(--text-xl); text-transform: uppercase; }
.channel-card p { color: var(--fg-soft); font-size: var(--text-sm); }
.channel-card .channel-line {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg);
  letter-spacing: 0.04em;
}
.channel-card a.channel-line:hover { color: var(--accent-text); }

/* ---------- 24. Closing CTA -------------------------------------------- */
.closing-cta {
  background:
    radial-gradient(520px 520px at 92% 50%, rgba(255,255,255,.55), transparent 62%),
    linear-gradient(120deg, #8FAFCB 0%, #B7CDE0 55%, #E3ECF5 100%);
  color: var(--ink-000);
  padding-block: var(--space-9);
}
.closing-cta .container { display: grid; gap: var(--space-6); }
.closing-cta h2 {
  font-size: var(--text-mega);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.018em;
  color: var(--ink-000);
  max-width: 22ch;
}
.closing-cta .lede { color: rgba(2,15,46,0.78); max-width: 52ch; }
.closing-cta .cta-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.closing-cta .btn--dark { background: var(--ink-000); color: var(--gold); }
.closing-cta .btn--dark:hover { background: var(--ink-deep); }
.closing-cta .btn--ghost {
  background: transparent;
  border-color: rgba(2,15,46,0.4);
  color: var(--ink-000);
}
.closing-cta .btn--ghost:hover { background: var(--ink-000); color: var(--gold); border-color: var(--ink-000); }

/* ---------- 25. Footer -------------------------------------------------- */
.site-footer {
  background: var(--ink-000);
  padding-block: var(--space-8) var(--space-6);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--rule);
}
.footer-top h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
  font-weight: 400;
}
.footer-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-top ul a { color: var(--fg-soft); font-size: var(--text-sm); }
.footer-top ul a:hover { color: var(--accent-text); }
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.footer-brand .brand { font-size: var(--text-2xl); text-transform: uppercase; }
.footer-brand p { color: var(--fg-soft); font-size: var(--text-sm); max-width: 32ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-bottom .footer-meta-links { display: flex; gap: var(--space-5); }
.footer-bottom a:hover { color: var(--accent-text); }

/* ---------- 26. Misc helpers ------------------------------------------- */
.divider { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.hidden  { display: none; }
.gold-text { color: var(--accent-text); }

/* ---------- 27. Reduced motion ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 28. Responsive --------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero-media { max-width: 100%; aspect-ratio: 4 / 3; justify-self: stretch; }
  .section-head { grid-template-columns: 1fr; gap: var(--space-4); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-inline-end: 0; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .work-grid { grid-template-columns: repeat(6, 1fr); }
  .work-item--xl, .work-item--lg { grid-column: span 6; }
  .work-item--md, .work-item--sm { grid-column: span 3; }
  .cap-bento { grid-template-columns: repeat(6, 1fr); }
  .cap-card--wide, .cap-card--tall { grid-column: span 6; }
  .cap-card--std { grid-column: span 3; }
  .cap-card--tall { grid-row: auto; aspect-ratio: 16 / 10; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split-text { order: initial; }
  .press-strip { grid-template-columns: 1fr; gap: var(--space-4); }
  .tier-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-grid { grid-template-columns: 1fr; }
  .awards-strip { grid-template-columns: repeat(2, 1fr); }
  .award-cell:nth-child(2) { border-inline-end: 0; }
  .award-cell:nth-child(1), .award-cell:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .chapter-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .form-row { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-cell { border-inline-end: 0; border-bottom: 1px solid var(--rule); }
  .stat-cell:last-child { border-bottom: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item--xl, .work-item--lg, .work-item--md, .work-item--sm { grid-column: span 1; }
  .cap-bento { grid-template-columns: 1fr; }
  .cap-card--wide, .cap-card--std, .cap-card--tall { grid-column: span 1; }
  .process-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .awards-strip { grid-template-columns: 1fr; }
  .award-cell { border-inline-end: 0; border-bottom: 1px solid var(--rule); }
  .award-cell:last-child { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-headline { font-size: var(--text-4xl); }
  .closing-cta h2 { font-size: var(--text-4xl); }
}


/* ==========================================================================
   JONNES additions — components Brivon does not ship (live content hooks,
   gallery, lightbox, booking form states, skeletons, floating buttons).
   ========================================================================== */

html { scroll-padding-top: 90px; }
body { overflow-x: clip; }
.brand-mark svg { position: absolute; inset: 4px; width: 20px; height: 20px; color: var(--ink-000); }
.brand-mark::after { display: none; }
.brand small { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.34em; color: var(--fg-mute); margin-top: 3px; }

/* announcement bar (text comes from the dashboard) */
.ann {
  background: var(--ink-000); color: var(--paper);
  text-align: center; padding: 8px var(--gutter);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.ann[hidden] { display: none; }

.container--wide.pad-top { padding-top: 0; }
.hero-headline { overflow-wrap: anywhere; }
.hero--page { padding-block: var(--space-8) var(--space-8); }
.hero--page .hero-grid { align-items: center; }
.hero--page .hero-media { aspect-ratio: 4 / 3; max-width: 560px; }
.hero--page .hero-headline { font-size: var(--text-4xl); }

/* hero slideshow (images come from the dashboard) */
.hero-media .hs { position: absolute; inset: 0; opacity: 0; z-index: 1; overflow: hidden; transition: opacity 1.2s ease; }
.hero-media .hs.on { opacity: 1; z-index: 2; }
.hero-media .hs i {
  position: absolute; inset: -3%; background-size: cover; background-position: center;
  filter: contrast(1.05) saturate(0.9); will-change: transform;
}
.hero-media .hs.on i { animation: kb 9s ease-out both; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1%, -1%); } }
.hero-media .floating-tag { z-index: 5; }

/* stat strip with words instead of numbers */
.stat-num--text { font-size: var(--text-2xl); line-height: 1.25; }

/* ---- service cards ---- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.svc-card:hover { border-color: var(--rule-gold); transform: translateY(-3px); }
.svc-card .wm { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.svc-card .wm img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); filter: contrast(1.05) saturate(0.9); }
.svc-card:hover .wm img { transform: scale(1.05); }
.svc-card .no {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--ink-000); color: var(--paper);
  padding: 4px 10px; border-radius: var(--radius-full);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em;
}
.svc-card .wm-arrow {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; background: var(--gold); color: var(--ink-000);
  border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.svc-card:hover .wm-arrow { transform: translate(2px, -2px); }
.svc-card .in { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.svc-card h3 { font-size: var(--text-xl); line-height: 1.3; }
.svc-card p { color: var(--fg-soft); font-size: var(--text-sm); }
.svc-card .go { margin-top: auto; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }


/* ---- capability cards grids ---- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.cap-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cap-grid .cap-card h3 { font-size: var(--text-lg); }

/* ---- process cards: "04 steps" use 0X from CSS counter ---- */
.tile-section .process-card { background: var(--white); border-color: var(--line); }
.tile-section .process-card h3 { color: var(--ink-000); }
.tile-section .process-card p { color: var(--muted); }
.tile-section .process-card::before { color: var(--ink-000); }

/* ---- FAQ accordion ---- */
.faq { max-width: 920px; display: grid; gap: var(--space-3); }
.faq details { background: var(--bg-card); border: 1px solid var(--rule); border-radius: var(--radius); transition: border-color var(--dur-fast) var(--ease-out); }
.faq details[open] { border-color: var(--rule-gold); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display); font-size: var(--text-base); text-transform: uppercase; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--rule-strong); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent-text);
}
.faq details[open] summary::after { content: "\2212"; background: var(--gold); color: var(--ink-000); border-color: var(--gold); }
.faq details p { padding: 0 var(--space-6) var(--space-5); color: var(--fg-soft); font-size: var(--text-sm); max-width: 70ch; }

/* ---- quick facts list (about / contact) ---- */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { display: grid; grid-template-columns: 150px 1fr; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--rule); font-size: var(--text-sm); }
.facts li b { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); }
.facts a:hover { color: var(--accent-text); }
.tile-section .facts, .tile-section .facts li { border-color: var(--rule); }
.tile-section .facts li b { color: var(--fg-on-tile-mute); }

.card-panel { background: var(--bg-card); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-6); }
.card-panel h3 { margin-bottom: var(--space-4); font-size: var(--text-xl); }
.stack > * + * { margin-top: var(--space-5); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-8); align-items: start; }
.strip { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; background: var(--bg-card); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-7); }
.strip h2 { font-size: var(--text-3xl); }
.strip p { color: var(--fg-soft); margin-top: var(--space-3); }

/* ---- forms ---- */
.form-card .form-field input,
.form-card .form-field select,
.form-card .form-field textarea { width: 100%; }
.form-card .form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form-card .form-field input[type="date"] { color-scheme: light; cursor: pointer; }
.form-card h3 { font-size: var(--text-xl); }
.formmsg { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--fg-mute); min-height: 1.2em; }
.formmsg.bad { color: #b3261e; font-weight: 600; }
.formmsg.ok { color: #17703a; font-weight: 600; }
.fine { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--fg-mute); margin: 0; }
.fine a { text-decoration: underline; text-underline-offset: 3px; }
.fine a:hover { color: var(--accent-text); }
#bk-done { display: grid; gap: var(--space-4); }
#bk-done[hidden], form[hidden] { display: none; }
#bk-done .okic { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink-000); display: grid; place-items: center; }
#bk-done h3 { font-size: var(--text-2xl); }
#bk-done p { color: var(--fg-soft); }
.hp { position: absolute; left: -9999px; }

/* ---- gallery ---- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filters button {
  border: 1px solid var(--rule-strong); border-radius: var(--radius-full); padding: 9px 18px;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-soft);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.filters button:hover { border-color: var(--gold); color: var(--accent-text); }
.filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink-000); }
.gallery { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.gallery::after { content: ""; flex-grow: 600; }
.tile {
  position: relative; display: block; flex-grow: calc(var(--r) * 100); flex-shrink: 1; flex-basis: calc(var(--r) * 240px);
  min-width: 0; margin: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: var(--mist);
  cursor: zoom-in; isolation: isolate; animation: tin .6s var(--ease-out) both; animation-delay: var(--d, 0ms);
}
.tile i { display: block; padding-bottom: calc(100% / var(--r)); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-base) var(--ease-out); filter: contrast(1.05) saturate(0.9); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); filter: contrast(1.08) saturate(1); }
.tile .cap {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: var(--ink-000); color: var(--paper); padding: 6px 12px; border-radius: var(--radius-full);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  max-width: calc(100% - 24px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.tile .cap em { font-style: normal; color: var(--gold); }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; transform: none; }
@media (hover: none) { .tile .cap { opacity: 1; transform: none; } }
@keyframes tin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.note { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--fg-mute); border: 1px dashed var(--rule-strong); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin-top: var(--space-5); }
.note[hidden] { display: none; }

#lb { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(2, 15, 46, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#lb.on { display: flex; }
#lb .ph { width: min(88vw, 960px); aspect-ratio: var(--r, 3/2); max-height: 80vh; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--fg-mute); font-family: var(--font-mono); font-size: var(--text-xs); background-color: rgba(255, 255, 255, 0.08); }
#lb button { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.14); color: var(--paper); font-size: 1.3rem; display: grid; place-items: center; transition: background var(--dur-fast), color var(--dur-fast); }
#lb button:hover { background: var(--white); color: var(--ink-000); border-color: var(--white); }
#lb .ct { position: absolute; top: calc(26px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; color: var(--fg-soft); }
#lb .x { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
#lb .p { left: 14px; top: 50%; transform: translateY(-50%); }
#lb .n { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---- closing CTA & footer additions ---- */
.footer-top ul li { color: var(--fg-soft); font-size: var(--text-sm); }
.footer-top ul li a { text-decoration: none; }
.footer-bottom .made a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- floating buttons ---- */
.wa {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; gap: 10px; background: #1fa855; color: #fff;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  padding: 12px 18px 12px 14px; border-radius: var(--radius-full); box-shadow: var(--shadow);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.wa { border: 0; cursor: pointer; }
.wa:hover { transform: translateY(-3px); background: #1a9449; }
.wa svg { width: 22px; height: 22px; }
.totop {
  position: fixed; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 39;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(249, 250, 252, 0.92); color: var(--ink-000);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 28px rgba(2, 15, 46, 0.2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur-base), transform var(--dur-base), visibility var(--dur-base), background var(--dur-fast), color var(--dur-fast);
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--ink-000); color: var(--paper); }
.totop .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop .ring circle { fill: none; stroke-width: 2; }
.totop .ring circle:first-child { stroke: var(--rule-strong); }
.totop .ring .bar { stroke: var(--gold-deep); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.totop .arr { width: 18px; height: 18px; position: relative; }
.sp { position: fixed; top: 0; left: 0; width: 100%; height: 3px; transform: scaleX(0); transform-origin: 0 50%; background: var(--gold); z-index: 120; pointer-events: none; }

/* ---- scroll reveal ---- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
.rv.done { transition-delay: 0ms; }

/* directional variants: slide from left / right, slide up, fade, zoom */
.rv.rv-l { transform: translateX(-64px); }
.rv.rv-r { transform: translateX(64px); }
.rv.rv-u { transform: translateY(46px); }
.rv.rv-f { transform: none; }
.rv.rv-z { transform: scale(.92); }
.rv.rv-l, .rv.rv-r, .rv.rv-u, .rv.rv-f, .rv.rv-z { transition-duration: .85s; }
.rv.rv-l.in, .rv.rv-r.in, .rv.rv-u.in, .rv.rv-f.in, .rv.rv-z.in { opacity: 1; transform: none; }
.no-js .rv.rv-l, .no-js .rv.rv-r, .no-js .rv.rv-u, .no-js .rv.rv-f, .no-js .rv.rv-z { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .rv.rv-l, .rv.rv-r { transform: translateY(34px); }
  .rv.rv-l.in, .rv.rv-r.in { transform: none; }
}

/* page-load entrance for the hero: text slides in from the left, picture from the right */
@keyframes enterL { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes enterR { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: none; } }
.hero-text > * { animation: enterL .9s var(--ease-out) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5) { animation-delay: .32s; }
.hero-text > :nth-child(n+6) { animation-delay: .4s; }
.hero-media[data-slides] { animation: enterR 1s var(--ease-out) .15s both; }
@media (max-width: 760px) {
  .hero-text > * { animation-name: enterU; }
  .hero-media[data-slides] { animation-name: enterU; }
}
@keyframes enterU { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---- mobile drawer extras ---- */
.mobile-drawer a[aria-current="page"] { color: var(--accent-text); }
.mobile-drawer .drawer-book { margin-top: var(--space-4); }

/* ---- loading skeletons (light) ---- */
@keyframes sk { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.sk-shim, .skt, .skf, .sk-ov,
.sk-pend [data-s], .sk-pend [data-tel], .sk-pend [data-mail], .sk-pend [data-paras] p, .sk-pend [data-sk] > * {
  background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  background-size: 200% 100%; animation: sk 1.4s linear infinite;
}
.skt { position: relative; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 240px); border-radius: var(--radius); background-color: var(--mist); }
.skt i { display: block; padding-bottom: calc(100% / var(--r)); }
.skf { display: inline-block; height: 36px; border-radius: 999px; background-color: var(--mist); }
.sk-ov { position: absolute; inset: 0; z-index: 1; background-color: var(--mist); pointer-events: none; }
.sk-pend [data-s], .sk-pend [data-tel], .sk-pend [data-mail], .sk-pend [data-paras] p { color: transparent !important; border-radius: 6px; background-color: rgba(14, 26, 51, 0.06); }
.sk-pend [data-sk] > * { background-color: var(--mist); }
.sk-wait img { opacity: 0; }
.svc-card .wm img { transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-base) var(--ease-out), opacity .5s ease; }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv.rv-l, .rv.rv-r, .rv.rv-u, .rv.rv-f, .rv.rv-z { opacity: 1; transform: none; transition: none; }
  .hero-text > *, .hero-media[data-slides] { animation: none; }
  .tile { animation: none; }
  .hero-media .hs.on i { animation: none; }
}

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero--page .hero-media { max-width: 100%; aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .svc-grid, .cap-grid, .cap-grid--3 { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
  .strip { padding: var(--space-6); }
  .wa span { display: none; }
  .wa { padding: 14px; }
  .hero--page .hero-headline { font-size: var(--text-3xl); }
  .totop { left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
  section { padding-block: var(--space-8); }
  .stat-num--text { font-size: var(--text-xl); }
}

/* split blocks sit inside their own padded <section>, so drop the template's inner padding */
section .split { padding-block: 0; }
.form-card #mf, .form-card form { display: grid; gap: var(--space-5); }

/* long Boldonse headings must never push the page sideways */
h1, h2, h3, h4 { overflow-wrap: break-word; }
.nav-cta-row { margin-inline-start: 0; }
@media (max-width: 720px) {
  .nav { gap: var(--space-3); }
  .nav-cta-row { margin-inline-start: auto; }
  .nav-cta-row .btn { display: none; }
  .hero-meta { gap: var(--space-3); }
}


/* ---------- Home page hero refresh (index.html only) -------------------- */
.page-home .hero {
  padding-block: clamp(3rem, 6vw, 6.25rem) 2rem;
  background: var(--ink-000);
  color: var(--paper);
  isolation: isolate;
}
.page-home .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 36%;
  background:
    linear-gradient(90deg, var(--ink-000) 0%, rgba(2,15,46,.88) 16%, rgba(2,15,46,.16) 65%, rgba(2,15,46,.08) 100%),
    linear-gradient(0deg, rgba(2,15,46,.58), transparent 40%),
    url("/images/v2/hero.webp") center 46% / cover no-repeat;
  opacity: .82;
  pointer-events: none;
}
.page-home .hero-grid {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}
.page-home .hero-text { position: relative; z-index: 2; padding-block: 1.25rem; }
.page-home .hero-text .eyebrow {
  color: var(--gold);
  letter-spacing: .14em;
  line-height: 1.8;
}
.page-home .hero-headline {
  max-width: 11ch;
  margin-top: 1.35rem;
  font-size: clamp(2.35rem, 4.2vw, 4.35rem);
  line-height: 1.13;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.page-home .hero-headline .gold { color: var(--gold); }
.page-home .hero-sub {
  margin-top: 1.5rem;
  max-width: 43ch;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.7;
}
.page-home .hero-cta-row { margin-top: 2rem; gap: .8rem; }
.page-home .hero-cta-row .btn--primary {
  background: var(--gold);
  color: var(--ink-000);
  border-color: var(--gold);
  font-weight: 600;
}
.page-home .hero-cta-row .btn--primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.page-home .hero-cta-row .btn--ghost {
  color: var(--paper);
  border-color: rgba(255,255,255,.42);
  background: rgba(2,15,46,.24);
}
.page-home .hero-cta-row .btn--ghost:hover {
  color: var(--ink-000);
  background: var(--paper);
  border-color: var(--paper);
}
.page-home .hero-meta {
  margin-top: 2.2rem;
  padding-top: 1.15rem;
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.58);
  gap: .65rem 1rem;
}
.page-home .hero-meta strong { color: rgba(255,255,255,.92); }
.page-home .hero-media {
  justify-self: stretch;
  max-width: none;
  aspect-ratio: 4 / 4.35;
  border-radius: 3px;
  box-shadow: 0 32px 90px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.2);
  transform: rotate(1.2deg);
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
}
.page-home .hero-media:hover { transform: rotate(0) scale(1.008); }
.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(2,15,46,.58));
  pointer-events: none;
}
.page-home .hero-media img {
  filter: contrast(1.06) saturate(.92);
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.page-home .hero-media:hover img { transform: scale(1.035); }
.page-home .floating-tag {
  z-index: 2;
  color: var(--ink-000);
  background: rgba(249,250,252,.95);
  border: 0;
  border-radius: 3px;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  letter-spacing: .06em;
}
.page-home .ft-top { top: 1.25rem; left: -1rem; }
.page-home .ft-bottom {
  bottom: 1.25rem; right: -1rem;
  min-width: 4.1rem; min-height: 3.2rem;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink-000);
}
.page-home .stat-strip {
  margin-top: clamp(3rem, 5vw, 5rem);
  border-color: rgba(255,255,255,.18);
}
.page-home .stat-cell { padding: 1.4rem clamp(.65rem, 2vw, 1.5rem); border-color: rgba(255,255,255,.16); }
.page-home .stat-num { color: var(--paper); font-size: clamp(1.15rem, 1.65vw, 1.7rem); line-height: 1.35; }
.page-home .stat-num .gold { color: var(--gold); }
.page-home .stat-label { color: rgba(255,255,255,.58); letter-spacing: .08em; line-height: 1.6; }

@media (min-width: 1500px) {
  .page-home .hero-grid { gap: 6rem; }
  .page-home .hero-media { max-height: 720px; }
}
@media (max-width: 900px) {
  .page-home .hero { padding-block: 3.5rem 1.5rem; }
  .page-home .hero::before {
    inset: 0;
    background:
      linear-gradient(90deg, rgba(2,15,46,.94), rgba(2,15,46,.66)),
      linear-gradient(0deg, rgba(2,15,46,.75), rgba(2,15,46,.2)),
      url("/images/v2/hero.webp") center / cover no-repeat;
    opacity: 1;
  }
  .page-home .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-home .hero-text { padding-block: 0; }
  .page-home .hero-headline { max-width: 12ch; font-size: clamp(2.2rem, 7vw, 3.6rem); }
  .page-home .hero-media { width: min(100% - 1rem, 680px); justify-self: center; aspect-ratio: 16 / 10; transform: none; }
  .page-home .ft-top { left: .75rem; }
  .page-home .ft-bottom { right: .75rem; }
  .page-home .stat-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-home .stat-cell:nth-child(2) { border-inline-end: 0; }
  .page-home .stat-cell:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
}
@media (max-width: 520px) {
  .page-home .hero { padding-top: 2.4rem; }
  .page-home .hero-headline { font-size: clamp(2.65rem, 12vw, 3.7rem); }
  .page-home .hero-text .eyebrow { font-size: .67rem; }
  .page-home .hero-cta-row { align-items: stretch; }
  .page-home .hero-cta-row .btn { flex: 1 1 auto; justify-content: center; padding-inline: 1rem; font-size: .7rem; }
  .page-home .hero-media { aspect-ratio: 4 / 3; }
  .page-home .floating-tag { padding: .55rem .7rem; font-size: .62rem; }
  .page-home .stat-num { font-size: 1.05rem; }
  .page-home .stat-label { font-size: .65rem; }
  .page-home .stat-cell { padding: 1rem .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-media, .page-home .hero-media img { transition: none; }
}

/* ---------- Editorial photography artistry (homepage only) ---------------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  background-color: #020F2E;
}
.page-home .hero::after {
  content: "J / P";
  position: absolute;
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  color: rgba(255,255,255,.28);
  font: 500 .65rem/1 var(--font-mono, monospace);
  letter-spacing: .38em;
  pointer-events: none;
}
.page-home .hero-text::before {
  content: "THE ART OF SEEING";
  display: block;
  width: fit-content;
  margin-bottom: 1.35rem;
  padding: .55rem .8rem;
  border: 1px solid rgba(157,185,211,.45);
  color: rgba(255,255,255,.74);
  font: 500 .62rem/1.2 var(--font-mono, monospace);
  letter-spacing: .2em;
}
.page-home .hero-headline { font-family: var(--font-display, Georgia, serif); font-weight: 500; }
.page-home .hero-headline .gold { font-style: italic; }
.page-home .hero-media {
  overflow: visible;
  isolation: isolate;
  outline: 1px solid rgba(157,185,211,.58);
  outline-offset: 9px;
}
.page-home .hero-media::before {
  content: "";
  position: absolute;
  inset: -15px 15px 15px -15px;
  border: 1px solid rgba(157,185,211,.38);
  z-index: -1;
  pointer-events: none;
}
.page-home .hero-media::after {
  content: "JONNES / FRAME 001";
  inset: auto 1rem 1rem auto;
  padding: .55rem .7rem;
  color: rgba(255,255,255,.92);
  background: rgba(2,15,46,.62);
  border: 1px solid rgba(255,255,255,.25);
  font: 500 .58rem/1.2 var(--font-mono, monospace);
  letter-spacing: .14em;
  backdrop-filter: blur(8px);
}
.page-home .ft-top { left: -1.25rem; top: 2.5rem; }
.page-home .ft-bottom { right: -1.25rem; bottom: 2.5rem; }
.page-home .ft-bottom::after {
  content: " / 06";
  color: #7E97B0;
  font: 500 .58rem/1 var(--font-mono, monospace);
  margin-left: .15rem;
}
.page-home .stat-strip { position: relative; }
.page-home .stat-cell { transition: background .25s ease; }
.page-home .stat-cell:hover { background: rgba(255,255,255,.035); }
.page-home .tile-section {
  /* gallery-wall section: light ground, so re-point the navy-section tokens back to dark-on-light */
  --fg: var(--text); --fg-soft: #33415C; --fg-mute: var(--muted); --fg-on-tile-mute: var(--muted);
  --rule: var(--line); --rule-strong: rgba(7,20,58,.28); --rule-gold: rgba(75,105,129,.45);
  --bg-card: var(--white); --bg-elev: var(--mist); --accent-text: var(--gold-ink);
  --paper: var(--text);
  background: linear-gradient(180deg, #EEF2F7, #F9FAFC);
  color: var(--text);
}
.page-home .tile-section :is(h1,h2,h3,h4) { color: var(--ink-deep); }
.page-home .tile-section p, .page-home .tile-section li { color: #33415C; }
.page-home .tile-section a:not(.btn) { color: var(--gold-ink); }
.page-home .tile-section .eyebrow { color: var(--gold-ink); }
.page-home .tile-section .eyebrow .dot { background: var(--gold-deep); }
.page-home .tile-section .btn--primary, .page-home .tile-section .btn--dark { background: var(--ink-deep); color: #fff; }
.page-home .tile-section .btn--primary:hover, .page-home .tile-section .btn--dark:hover { background: var(--navy-2); }
.page-home .tile-section .btn--ghost { color: var(--ink-deep); border-color: var(--rule-strong); }
.page-home .tile-section .btn--ghost:hover { border-color: var(--ink-deep); color: var(--ink-deep); }
.page-home .split-img { position: relative; }
.page-home .split-img img { filter: saturate(.86) contrast(1.04); }
.page-home .split-img::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.62);
  pointer-events: none;
}
.page-home .split-img .ft-corner { z-index: 2; letter-spacing: .1em; text-transform: uppercase; font-size: .62rem; }
.page-home .svc-card { border-radius: 2px; }
.page-home .svc-card .wm { overflow: hidden; }
.page-home .svc-card .wm img { filter: saturate(.84); transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.page-home .svc-card:hover .wm img { transform: scale(1.055); filter: saturate(1.08); }
.page-home .svc-card .no { font-family: var(--font-mono, monospace); letter-spacing: .12em; }
.page-home section .section-head h2 { letter-spacing: -.04em; }
@media (max-width: 900px) {
  .page-home .hero::after { display: none; }
  .page-home .hero-media { outline-offset: 5px; }
  .page-home .hero-media::before { inset: -9px 9px 9px -9px; }
  .page-home .ft-top { left: .25rem; }
  .page-home .ft-bottom { right: .25rem; }
}
@media (max-width: 600px) {
  .page-home .hero-text::before { margin-bottom: .8rem; font-size: .55rem; }
  .page-home .hero-media::before { inset: -6px 6px 6px -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .svc-card .wm img { transition: none; }
}


/* ==========================================================================
   GLOBAL READABILITY + PHOTOGRAPHIC EDITORIAL FINISH
   Applied to every public page. Keep text legible over imagery and surfaces.
   ========================================================================== */
:root {
  --text: #07143A;
  --muted: #46566F;
  --paper-soft: #D3DFEC;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { color: #07143A; background: #F9FAFC; }
p, li, dd, dt, label, legend, small, figcaption {
  text-rendering: optimizeLegibility;
}
p, li, label, input, textarea, select, button {
  overflow-wrap: anywhere;
}
p, li { line-height: 1.7; }
a { text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #4B6981 !important;
  outline-offset: 3px !important;
}
::placeholder { color: #59657A !important; opacity: 1 !important; }
input, textarea, select {
  color: #07143A;
  background-color: #FFFFFF;
}
label, .form-label { color: #172541; }
button, .btn, a.btn { text-shadow: none; }
button:disabled, .btn:disabled { opacity: .72; }
.site-header { color: #07143A; }
.site-header a { text-decoration: none; }
footer, .site-footer, .tile-section, .dark-section, .featured-tier {
  color: #FFFFFF;
}
footer p, footer li, footer small, .site-footer p, .site-footer li,
.tile-section p, .tile-section li, .dark-section p, .dark-section li {
  color: #E3E9F5;
}
footer a, .site-footer a, .tile-section a, .dark-section a {
  color: #BCD1E4;
}
footer a:hover, .site-footer a:hover, .tile-section a:hover,
.dark-section a:hover { color: #FFFFFF; }
h1, h2, h3, h4, h5, h6 { color: inherit; line-height: 1.16; }
.muted, .text-muted, .eyebrow + p { color: #3A4963; }
.hero, .home-hero, .page-hero, .gallery-hero, .contact-hero {
  isolation: isolate;
}
.hero :is(h1,h2,p,a,span), .home-hero :is(h1,h2,p,a,span),
.page-hero :is(h1,h2,p,a,span), .gallery-hero :is(h1,h2,p,a,span),
.contact-hero :is(h1,h2,p,a,span) {
  text-shadow: 0 1px 14px rgba(0,0,0,.28);
}
.hero p, .home-hero p, .page-hero p, .gallery-hero p, .contact-hero p {
  color: #F5F7FC;
}
.card, .service-card, .gallery-card, .contact-card, .form-card {
  color: #07143A;
}
.card p, .service-card p, .gallery-card p, .contact-card p, .form-card p {
  color: #3A4963;
}
img { max-width: 100%; }
@media (max-width: 760px) {
  body { font-size: 16px; }
  p, li { line-height: 1.65; }
  h1 { overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Site-wide editorial photography + readability pass ---------- */
:root {
  --editorial-ink: #07143A;
  --editorial-cream: #F9FAFC;
  --editorial-gold: #9DB9D3;
}

/* Clear, consistent reading contrast on every public page */
body { color: var(--editorial-ink); }
main p, main li, main .muted, main .text-muted {
  color: #2C3B57;
  line-height: 1.72;
}
main h1, main h2, main h3, main h4 { line-height: 1.12; letter-spacing: -.025em; }
main a:not(.btn):not([class*="social"]) { text-underline-offset: .2em; }
main :is(.eyebrow, .kicker, .section-kicker) {
  color: #3E5B73;
  font-weight: 700;
  letter-spacing: .16em;
}
main :is(.card, .service-card, .gallery-card, .contact-card, .form-card) {
  background-color: #FFFFFF;
  border-color: rgba(4,25,78,.12);
}
main :is(.card, .service-card, .gallery-card, .contact-card, .form-card) p { color: #33415C; }

/* Give editorial photographs the same framed, graded character as the homepage hero.
   Excludes tiny interface icons, logos, and avatars. */
main img:not([width="1"]):not(.icon):not(.logo):not([class*="icon"]):not([class*="logo"]):not([class*="avatar"]) {
  filter: saturate(.88) contrast(1.045);
  transition: filter .45s ease, transform .75s cubic-bezier(.2,.8,.2,1);
}
main :is(.gallery-grid, .gallery, .mosaic, .gallery-card, .service-card, .svc-card,
         .split-img, .image-wrap, .photo-wrap, .portfolio-item, .work-card, figure) {
  position: relative;
  isolation: isolate;
}
main :is(.gallery-grid, .gallery, .mosaic, .gallery-card, .service-card, .svc-card,
         .split-img, .image-wrap, .photo-wrap, .portfolio-item, .work-card, figure) img {
  display: block;
  max-width: 100%;
}
main :is(.gallery-card, .service-card, .svc-card, .split-img, .image-wrap,
         .photo-wrap, .portfolio-item, .work-card, figure) {
  overflow: hidden;
  border-radius: 2px;
}
main :is(.gallery-card, .service-card, .svc-card, .split-img, .image-wrap,
         .photo-wrap, .portfolio-item, .work-card, figure)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(157,185,211,.55);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.06);
  z-index: 2;
}
main :is(.gallery-card, .service-card, .svc-card, .split-img, .image-wrap,
         .photo-wrap, .portfolio-item, .work-card, figure):hover img {
  filter: saturate(1.02) contrast(1.06);
}
main :is(.gallery-grid, .gallery, .mosaic) img { object-fit: cover; }

/* Keep text over photography legible regardless of image brightness */
main :is(.hero, .page-hero, .gallery-hero, .contact-hero, .home-hero) {
  color: #fff;
}
main :is(.hero, .page-hero, .gallery-hero, .contact-hero, .home-hero) p {
  color: #f4f5f8;
  max-width: 65ch;
}
main :is(.hero, .page-hero, .gallery-hero, .contact-hero, .home-hero) :is(h1,h2,p,a,span) {
  text-shadow: 0 2px 16px rgba(0,0,0,.42);
}
main :is(input, textarea, select) {
  color: #07143A;
  background: #fff;
  border-color: #A9B8CA;
}
main :is(input, textarea, select)::placeholder { color: #566680; opacity: 1; }
main :is(input, textarea, select):focus-visible,
main a:focus-visible, main button:focus-visible {
  outline: 3px solid #4B6981;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  main p, main li { font-size: 1rem; line-height: 1.7; }
  main :is(h1,h2) { overflow-wrap: anywhere; }
  main :is(.gallery-card, .service-card, .svc-card, .split-img, .image-wrap,
           .photo-wrap, .portfolio-item, .work-card, figure)::after { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  main img:not(.icon):not(.logo) { transition: none; }
}


/* Gallery polish: balanced editorial grid and visible captions */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(10px, 1.4vw, 18px); align-items: stretch; }
.gallery::after { content: none; }
.tile { grid-column: span 4; width: 100%; min-height: 230px; flex: initial; }
.tile:nth-child(6n + 1), .tile:nth-child(6n + 5) { grid-column: span 5; }
.tile:nth-child(6n + 2), .tile:nth-child(6n + 4) { grid-column: span 3; }
.tile:nth-child(6n + 3), .tile:nth-child(6n + 6) { grid-column: span 4; }
.tile .cap { opacity: 1; transform: none; background: linear-gradient(90deg, rgba(2,15,46,.94), rgba(2,15,46,.76)); color: #fff; border: 1px solid rgba(255,255,255,.18); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } .tile, .tile:nth-child(n) { grid-column: span 1; min-height: 190px; } .tile:nth-child(5n + 1) { grid-column: span 2; } }
@media (max-width: 420px) { .tile, .tile:nth-child(n) { min-height: 160px; } .tile .cap { left: 7px; bottom: 7px; padding: 5px 8px; font-size: 10px; gap: 5px; max-width: calc(100% - 14px); } }

/* Homepage featured-gallery captions: consistent placement and readable contrast */
.page-home #feat.mosaic > a::after {
  top: auto;
  right: auto;
  bottom: 1.15rem;
  left: 1.15rem;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 2.3rem);
  width: max-content;
  padding: .58rem .82rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 3px;
  background: rgba(2, 15, 46, .80);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: clamp(.62rem, .72vw, .74rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: none;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 640px) {
  .page-home #feat.mosaic > a::after {
    bottom: .7rem;
    left: .7rem;
    max-width: calc(100% - 1.4rem);
    padding: .45rem .62rem;
    font-size: .58rem;
    letter-spacing: .1em;
  }
}

/* Phones: the hero photo carries only the "Nairobi · Honest light · Real moments" tag and the slide counter */
.page-home .ft-bottom::after { content: none; }              /* stray "/ 06" next to the real slide count */
@media (max-width: 760px) {
  .page-home .hero-media::after { content: none; display: none; }   /* "JONNES / FRAME 001" caption */
  .page-home .hero::after { content: none; display: none; }         /* vertical "J / P" mark */
  .page-home .hero-media .floating-tag { z-index: 6; }
  .page-home .ft-top { top: .75rem; left: .75rem; max-width: calc(100% - 1.5rem); }
  .page-home .ft-bottom { bottom: .75rem; right: .75rem; }
}

/* home hero keeps its own full-bleed photo layer (the corner-bar motif is for the inner-page heroes) */
.page-home .hero::before { width: auto; height: auto; }

/* image labels on inner-page heroes: solid light chip + navy text, so they read on bright or dark photos */
body:not(.page-home) .hero .floating-tag {
  background: rgba(249, 250, 252, 0.94);
  color: var(--ink-000);
  text-shadow: none;
  border-color: rgba(4, 25, 78, 0.12);
}
body:not(.page-home) .hero .floating-tag * { text-shadow: none; }
body:not(.page-home) .hero .floating-tag .pill { background: var(--sky); color: var(--ink-000); }

/* =====================================================================
   Photos: always centred and fully visible (never cropped)
   Frames match the photos' natural 4:3 shape, and every image uses
   object-fit: contain so even other-shaped uploads show in full.
   ===================================================================== */
:root { --photo-bg: #E4EAF1; }

.split-img,
.hero-media,
.page-home .hero-media,
.hero--page .hero-media,
.cap-card--tall,
.work-item .wm,
.journal-card .j-img,
.team-card .t-img,
.svc-card .wm {
  aspect-ratio: 4 / 3;
  max-height: none;
  background-color: var(--photo-bg);
}
.page-home .hero-media { background-color: #061633; }

.split-img img,
.hero-media img,
.cap-card--tall img,
.work-item img,
.journal-card .j-img img,
.team-card .t-img img,
.svc-card .wm img,
.page-home .svc-card .wm img,
.mosaic img,
.page-home .mosaic > a img,
.tile img,
main :is(.gallery-grid, .gallery, .mosaic) img {
  object-fit: contain;
  object-position: center;
}

/* hero slideshow: no edge-bleed or zoom, so nothing is cut off */
.hero-media .hs i {
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-media .hs.on i { animation: none; }

/* no hover zoom that would crop the edges */
.split-img:hover img,
.svc-card:hover .wm img,
.page-home .svc-card:hover .wm img,
.mosaic a:hover img,
.page-home .mosaic > a:hover img,
.tile:hover img, .tile:focus-visible img,
.page-home .hero-media:hover img,
.work-item:hover img { transform: none; }
.page-home .hero-media:hover { transform: rotate(0); }

/* "recent work" mosaic: uniform 4:3 tiles so each photo fits exactly */
.mosaic, .page-home .mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; align-items: stretch; }
.mosaic a:nth-child(n), .page-home .mosaic > a:nth-child(n) {
  grid-column: span 1; grid-row: span 1; min-height: 0; aspect-ratio: 4 / 3;
}
@media (max-width: 720px) {
  .mosaic, .page-home .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .mosaic a:nth-child(n), .page-home .mosaic > a:nth-child(n) { grid-column: span 1; grid-row: span 1; min-height: 0; }
}

/* lightbox: whole photo, centred, within the screen */
#lb .ph { max-height: 80vh; max-width: 88vw; }

/* gallery: even 4:3 tiles so every photo is shown whole and centred */
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile, .tile:nth-child(n) { grid-column: span 1; min-height: 0; aspect-ratio: 4 / 3; }
.tile i { display: none; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile:nth-child(n) { grid-column: span 1; min-height: 0; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

/* portrait photos in 4:3 frames: whole photo centred, soft blurred fill behind it */
.pf::before {
  content: ""; position: absolute; inset: -24px; z-index: -1;
  background: var(--pf) center / cover no-repeat;
  filter: blur(26px) saturate(1.1); transform: scale(1.1);
}
.pf { background-color: #0b1f44; }

/* landscape (3:2) hero photos: frame matches the photo exactly, so no side or top bars */
.hero--page .hero-media.pf,
.hero-media.pf { aspect-ratio: 3 / 2; }
.hero--page .hero-media.pf::before { display: none; }

/* =====================================================================
   Gallery: artistic editorial collage
   Staggered 12-column layout, photos at their natural shape (never cut),
   offset colour blocks, slight tilts and large outlined numerals.
   ===================================================================== */
.gallery {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row;
  align-items: start;
  gap: clamp(28px, 4.5vw, 72px) clamp(16px, 2.6vw, 40px);
  counter-reset: pic;
  padding: clamp(14px, 2vw, 28px) 0 clamp(24px, 4vw, 56px);
}
.tile, .tile:nth-child(n) {
  grid-column: auto; min-height: 0; width: 100%;
  aspect-ratio: var(--r, 1.5);
  overflow: visible; background: transparent; border-radius: 3px;
  counter-increment: pic;
  box-shadow: 14px 14px 0 -2px #D5E1EC;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.tile img { border-radius: 3px; background: var(--photo-bg, #E4EAF1); object-fit: cover; }
.tile:hover, .tile:focus-visible { transform: translateY(-8px); box-shadow: 20px 20px 0 -2px #9DB9D3; }

/* large outlined numeral overlapping the photo's top edge */
.tile::before {
  content: counter(pic, decimal-leading-zero);
  position: absolute; z-index: 3; top: -.62em; left: 14px;
  font: 400 clamp(2.6rem, 5vw, 4.4rem)/1 var(--font-display, "Boldonse", sans-serif);
  color: transparent; -webkit-text-stroke: 1.5px var(--ink-deep, #04194E);
  background: linear-gradient(#F9FAFC, #F9FAFC) center / 100% 46% no-repeat; /* knocks the line behind the numeral out */
  pointer-events: none; letter-spacing: .02em;
}

/* the rhythm: sizes, positions and drops repeat every nine photos */
.tile:nth-child(9n+1) { grid-column: 1 / span 7; rotate: -.6deg; }
.tile:nth-child(9n+2) { grid-column: 8 / span 5; margin-top: clamp(40px, 7vw, 110px); rotate: .8deg; box-shadow: -14px 14px 0 -2px #C3D3E3; }
.tile:nth-child(9n+3) { grid-column: 1 / span 4; margin-top: clamp(0px, 1vw, 18px); rotate: .5deg; }
.tile:nth-child(9n+4) { grid-column: 5 / span 4; margin-top: clamp(30px, 6vw, 90px); rotate: -.9deg; box-shadow: 14px 14px 0 -2px #9DB9D3; }
.tile:nth-child(9n+5) { grid-column: 9 / span 4; margin-top: clamp(0px, 2vw, 30px); rotate: .6deg; }
.tile:nth-child(9n+6) { grid-column: 2 / span 7; rotate: .4deg; box-shadow: -14px 14px 0 -2px #D5E1EC; }
.tile:nth-child(9n+7) { grid-column: 9 / span 4; margin-top: clamp(30px, 5vw, 80px); rotate: -.7deg; }
.tile:nth-child(9n+8) { grid-column: 1 / span 5; rotate: -.4deg; }
.tile:nth-child(9n+9) { grid-column: 6 / span 7; margin-top: clamp(24px, 4vw, 64px); rotate: .5deg; box-shadow: 14px 14px 0 -2px #9DB9D3; }
.tile:hover, .tile:focus-visible { rotate: 0deg; }

/* captions sit like gallery labels under the corner of each photo */
.tile .cap { left: -10px; bottom: -14px; border-radius: 2px; }
.tile img { transition: filter var(--dur-base) var(--ease-out); }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; }
  .tile, .tile:nth-child(n) { grid-column: auto; margin-top: 0; box-shadow: 8px 8px 0 -2px #D5E1EC; }
  .tile:nth-child(odd) { rotate: -.7deg; }
  .tile:nth-child(even) { rotate: .7deg; margin-top: 28px; }
  .tile:nth-child(3n+1) { grid-column: 1 / -1; margin-top: 0; }
  .tile::before { font-size: 2.2rem; left: 8px; }
  .tile .cap { left: -4px; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile:nth-child(n) { grid-column: auto; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .tile, .tile:hover { transition: none; transform: none; } }


/* ===== smoother scrolling on phones and touch screens ===== */
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(7, 19, 41, 0.35); }
@media (max-width: 820px), (hover: none) {
  html { scroll-behavior: auto; }
  /* live blur behind moving content is the biggest cost on phones: use solid backgrounds instead */
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .site-header { background: rgba(249, 250, 252, 0.98); }
  /* colour filters force every photo to be re-composited while it moves */
  .svc-card .wm img, .mosaic img, .tile img, .hero-media img, .hero-media .hs i, .split-img img, .cap-card--tall img, .work-item img { filter: none !important; will-change: auto; }
  /* lighter reveal: short rise instead of long sideways slides, and almost no stagger delay */
  .rv.rv-l, .rv.rv-r, .rv.rv-u, .rv.rv-z, .rv { transform: translateY(20px); }
  .rv.rv-f { transform: none; }
  .rv.in, .rv.rv-l.in, .rv.rv-r.in, .rv.rv-u.in, .rv.rv-z.in, .rv.rv-f.in { transform: none; }
  .rv, .rv.rv-l, .rv.rv-r, .rv.rv-u, .rv.rv-f, .rv.rv-z { transition-duration: .45s; }
  .rv:not(.done) { transition-delay: min(var(--d, 0ms), 80ms); }
}

/* ---------- Home: hero + stat strip fit one desktop screen ---------------- */
@media (min-width: 901px) {
  .page-home .hero {
    min-height: calc(100vh - var(--hdr, 74px));
    min-height: calc(100svh - var(--hdr, 74px));
    padding-block: clamp(.75rem, 3vh, 3rem) 0;
    display: flex;
    flex-direction: column;
  }
  .page-home .hero > .container { flex: 1; display: flex; flex-direction: column; width: 100%; }
  .page-home .hero-grid { flex: 1; min-height: 0; }
  .page-home .hero-text { padding-block: 0; }
  .page-home .hero-text > * + * { margin-top: clamp(.6rem, 2vh, 1.25rem); }
  .page-home .hero-headline {
    margin-top: clamp(.6rem, 2vh, 1.35rem);
    font-size: clamp(2.2rem, min(4.2vw, 8.2vh), 4.35rem);
  }
  .page-home .hero-sub { margin-top: clamp(.6rem, 2vh, 1.5rem); font-size: clamp(.95rem, min(1.3vw, 2.4vh), 1.25rem); line-height: 1.55; }
  .page-home .hero-cta-row { margin-top: clamp(.8rem, 2.6vh, 2rem); }
  .page-home .hero-meta { margin-top: clamp(.8rem, 2.8vh, 2.2rem); padding-top: clamp(.5rem, 1.6vh, 1.15rem); }
  /* picture height follows the screen so the strip below is always visible */
  /* keep the frame 4:3 (photos are shown whole); the screen height only limits how big it can get */
  .page-home .hero-media {
    --hh: clamp(260px, calc(100svh - var(--hdr, 74px) - 15rem), 720px);
    aspect-ratio: 4 / 3;
    height: auto;
    width: 100%;
    max-width: calc(var(--hh) * 4 / 3);
    justify-self: end;
    align-self: center;
  }
  .page-home .stat-strip { margin-top: clamp(.75rem, 3vh, 2.5rem); margin-bottom: clamp(.5rem, 2vh, 1.5rem); flex: none; }
  .page-home .stat-cell { padding-block: clamp(.7rem, 2.2vh, 1.4rem); }
}

/* shorter laptop screens: tighten further so the strip still shows without scrolling */
@media (min-width: 901px) and (max-height: 820px) {
  .page-home .hero-meta { display: none; }
  .page-home .hero-headline { font-size: clamp(2rem, min(4.2vw, 7vh), 3.4rem); line-height: 1.08; }
  .page-home .hero-sub { font-size: clamp(.9rem, 2.2vh, 1.05rem); line-height: 1.5; }
  .page-home .hero-cta-row .btn--lg { padding-block: .6rem; }
  .page-home .stat-num { font-size: clamp(1rem, 1.5vw, 1.4rem); line-height: 1.25; }
  .page-home .stat-cell { padding-block: .6rem; gap: .35rem; }
  .page-home .hero-media { --hh: clamp(220px, calc(100svh - var(--hdr, 74px) - 10rem), 720px); }
}

/* =====================================================================
   Home hero: stacked photo cards (featured photos)
   The top card sits flat; the next cards peek out behind it, each tilted
   and offset so the overlap shows. When the top card leaves it uses a
   different exit each time (see .x1 to .x8), then slides to the back.
   ===================================================================== */
.page-home .hero-media.stacked {
  overflow: visible; outline: none; border: 0; box-shadow: none;
  background: transparent; transform: none; perspective: 1400px;
  cursor: pointer;
}
.page-home .hero-media.stacked::before,
.page-home .hero-media.stacked::after { content: none; display: none; }
.page-home .hero-media.stacked > img { display: none; }

.hero-media.stacked .hs {
  inset: 4% 9% 9% 4%;
  border: 9px solid #F9FAFC; border-radius: 3px;
  background: #061633;
  overflow: hidden; opacity: 1;
  box-shadow: 0 22px 50px rgba(0,0,0,.42), 0 2px 6px rgba(0,0,0,.25);
  transition: transform .95s cubic-bezier(.22,.8,.2,1), opacity .8s ease;
  transform-origin: 50% 60%;
  backface-visibility: hidden;
}
.hero-media.stacked .hs.on { opacity: 1; }
.hero-media.stacked .hs[data-p="0"] { transform: none; z-index: 4; }
.hero-media.stacked .hs[data-p="1"] { transform: translate(7%, 3%) rotate(4.5deg) scale(.96); z-index: 3; }
.hero-media.stacked .hs[data-p="2"] { transform: translate(-3%, 7%) rotate(-5deg) scale(.93); z-index: 2; }
.hero-media.stacked .hs[data-p="3"] { transform: translate(5%, 9%) rotate(8deg) scale(.9); z-index: 1; }
.hero-media.stacked .hs[data-p="h"] { transform: translate(5%, 9%) rotate(8deg) scale(.9); z-index: 0; opacity: 0; }
.hero-media.stacked .hs[data-p="1"],
.hero-media.stacked .hs[data-p="2"],
.hero-media.stacked .hs[data-p="3"] { filter: brightness(.82); }
.hero-media.stacked .hs[data-p="0"] { filter: none; }
.hero-media.stacked .hs.nt { transition: none; }
.hero-media.stacked .hs[data-p="e"] { transition: none; transform: none; z-index: 6; filter: none; }
.hero-media.stacked .hs i { inset: 0; background-size: cover; background-position: center; }

/* eight different exits */
.hero-media.stacked .hs[class*=" x"] { animation-duration: 1s; animation-fill-mode: forwards; animation-timing-function: cubic-bezier(.55,0,.25,1); }
.hs.x1 { animation-name: ex1; }  /* fling left */
.hs.x2 { animation-name: ex2; }  /* fling right */
.hs.x3 { animation-name: ex3; }  /* float up */
.hs.x4 { animation-name: ex4; }  /* drop down */
.hs.x5 { animation-name: ex5; transform-origin: 0 50% !important; } /* page-turn flip */
.hs.x6 { animation-name: ex6; }  /* zoom toward viewer */
.hs.x7 { animation-name: ex7; }  /* spin away */
.hs.x8 { animation-name: ex8; transform-origin: 50% 0 !important; } /* fold forward */
@keyframes ex1 { to { transform: translate(-62%, -6%) rotate(-24deg); opacity: 0; } }
@keyframes ex2 { to { transform: translate(62%, -8%) rotate(26deg); opacity: 0; } }
@keyframes ex3 { 40% { transform: translateY(-14%) rotate(-2deg) scale(1.03); opacity: 1; } to { transform: translateY(-75%) rotate(4deg) scale(1.05); opacity: 0; } }
@keyframes ex4 { 30% { transform: translateY(-4%) rotate(1deg); opacity: 1; } to { transform: translateY(80%) rotate(-14deg); opacity: 0; } }
@keyframes ex5 { to { transform: perspective(1400px) rotateY(-100deg); opacity: 0; } }
@keyframes ex6 { to { transform: scale(1.4); opacity: 0; filter: blur(6px); } }
@keyframes ex7 { to { transform: translate(30%, -35%) rotate(50deg) scale(.45); opacity: 0; } }
@keyframes ex8 { to { transform: perspective(1400px) rotateX(85deg) translateY(-8%); opacity: 0; } }

@media (max-width: 900px) {
  .hero-media.stacked .hs { inset: 3% 7% 8% 3%; border-width: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media.stacked .hs { transition: none; }
  .hs[class*=" x"] { animation: none !important; }
}
.page-home .hero-media.stacked .floating-tag { z-index: 8; }


/* ==========================================================================
   RECENT WORK (home): viewfinder frames. Photos stay rectangular and fill a
   tight bento grid with flush edges: one large lead, two stacked beside it,
   then a row of three. Each frame carries viewfinder corner marks, a light
   lens vignette and a focus point that locks on hover. Titles sit on the photo.
   ========================================================================== */
.rw { --u: clamp(2.6rem, 5.6vw, 5.4rem); --g: clamp(.6rem, 1.2vw, 1.1rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: var(--u); gap: var(--g); }
.rw-item { position: relative; display: block; min-width: 0; color: #fff; text-decoration: none; background: var(--ink-000); border-radius: 3px; overflow: hidden; isolation: isolate; }
.rw-item .rw-ph { position: absolute; inset: 0; display: block; background: var(--mist); }
.rw-item .rw-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform 1.1s var(--ease-out); }
/* lens vignette + soft reading shade under the caption */
.rw-item .rw-ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(2,15,46,.78) 0%, rgba(2,15,46,0) 38%), radial-gradient(120% 100% at 50% 40%, rgba(2,15,46,0) 60%, rgba(2,15,46,.28) 100%); }
/* viewfinder corner marks */
.rw-item::before { content: ""; position: absolute; inset: clamp(8px, 1vw, 14px); z-index: 3; pointer-events: none; --m: rgba(255,255,255,.9); --l: clamp(14px, 1.6vw, 22px);
  background:
    linear-gradient(var(--m),var(--m)) top left / var(--l) 2px no-repeat, linear-gradient(var(--m),var(--m)) top left / 2px var(--l) no-repeat,
    linear-gradient(var(--m),var(--m)) top right / var(--l) 2px no-repeat, linear-gradient(var(--m),var(--m)) top right / 2px var(--l) no-repeat,
    linear-gradient(var(--m),var(--m)) bottom left / var(--l) 2px no-repeat, linear-gradient(var(--m),var(--m)) bottom left / 2px var(--l) no-repeat,
    linear-gradient(var(--m),var(--m)) bottom right / var(--l) 2px no-repeat, linear-gradient(var(--m),var(--m)) bottom right / 2px var(--l) no-repeat;
  filter: drop-shadow(0 0 2px rgba(2,15,46,.55)); transition: inset .45s var(--ease-out), opacity .3s ease; }
/* focus point: appears on hover and settles in the middle */
.rw-item::after { content: ""; position: absolute; left: 50%; top: 45%; width: clamp(34px, 4vw, 54px); aspect-ratio: 1; z-index: 3; pointer-events: none; border: 2px solid var(--sky); border-radius: 3px; transform: translate(-50%, -50%) scale(1.5); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s ease; }
.rw-item:hover::before, .rw-item:focus-visible::before { inset: clamp(14px, 1.5vw, 22px); }
.rw-item:hover::after, .rw-item:focus-visible::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rw-item:hover .rw-ph img, .rw-item:focus-visible .rw-ph img { transform: scale(1.05); }
.rw-item:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.rw-item .rw-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: clamp(1rem, 1.6vw, 1.6rem); padding-bottom: clamp(1.1rem, 1.9vw, 1.9rem); }
.rw-item .rw-cap b { font-weight: 600; font-size: var(--text-base); letter-spacing: -.005em; text-shadow: 0 1px 10px rgba(2,15,46,.5); }
.rw-item .rw-cap small { font-size: var(--text-sm); color: var(--paper-soft); white-space: nowrap; }
.rw-1 .rw-cap b { font-size: var(--text-xl); }
.link-more { display: inline-flex; align-items: center; gap: .6rem; margin-top: var(--space-5); font-weight: 600; font-size: var(--text-base); color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color .25s ease; }
.link-more svg { transition: transform .3s ease; }
.link-more:hover { text-decoration-color: var(--text); }
.link-more:hover svg { transform: translateX(4px); }

/* placement (12 cols x 10 rows): lead 7x5, two 5x... stacked beside it, then 4 / 5 / 3 */
.rw-1 { grid-column: 1 / span 7; grid-row: 1 / span 6; }
.rw-2 { grid-column: 8 / span 5; grid-row: 1 / span 3; }
.rw-3 { grid-column: 8 / span 5; grid-row: 4 / span 3; }
.rw-4 { grid-column: 1 / span 4; grid-row: 7 / span 4; }
.rw-5 { grid-column: 5 / span 5; grid-row: 7 / span 4; }
.rw-6 { grid-column: 10 / span 3; grid-row: 7 / span 4; }

@media (max-width: 800px) {
  .rw { --u: auto; grid-auto-rows: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-item { grid-column: span 1 !important; grid-row: auto !important; aspect-ratio: 4 / 5; }
  .rw-1 { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3; }
  .rw-6 { grid-column: 1 / -1 !important; aspect-ratio: 16 / 10; }
  .rw-item .rw-cap { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .rw-item .rw-ph img, .rw-item::before, .rw-item::after, .link-more svg { transition: none; }
}


/* ==========================================================================
   WhatsApp chat popup, in the site's own colours: lens navy header, steel-blue
   accents. "Jonnes Photography" takes name, email and message; "General
   Inquiries" takes a message only.
   ========================================================================== */
.wa { background: var(--ink-deep); color: #fff; box-shadow: 0 16px 36px -12px rgba(2, 15, 46, .45), inset 0 0 0 1px rgba(157, 185, 211, .35); }
.wa:hover, .wa.is-open { background: var(--navy-2); }
.wa svg { color: var(--sky); }
.wa-panel { position: fixed; right: 18px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 41; width: min(390px, calc(100vw - 36px)); background: var(--white); color: var(--text); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -12px rgba(2, 15, 46, .4), 0 2px 8px rgba(2, 15, 46, .14); font-family: var(--font-body); transform-origin: 100% 100%; animation: wa-reveal .55s cubic-bezier(.22,.8,.3,1) backwards, wa-spring .75s cubic-bezier(.34,1.56,.64,1) backwards; }
.wa-panel[hidden] { display: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.wa-head { display: flex; align-items: center; gap: 14px; padding: 18px 16px 18px 20px; background: linear-gradient(135deg, var(--ink-deep), var(--ink-000)); color: #fff; border-bottom: 3px solid var(--sky); }
.wa-head > svg { width: 34px; height: 34px; flex: none; color: var(--sky); }
.wa-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wa-title strong { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.wa-title span { font-size: .9rem; font-weight: 500; color: var(--paper-soft); }
.wa-ctl { flex: none; align-self: flex-start; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; transition: background .2s ease; }
.wa-ctl:hover, .wa-ctl:focus-visible { background: rgba(157, 185, 211, .25); outline: none; }
.wa-ctl:focus-visible { box-shadow: 0 0 0 2px var(--sky); }
.wa-body { padding: 14px 0 16px; background: var(--white); display: grid; gap: 12px; }
.wa-panel.min .wa-body, .wa-panel.min .wa-form { display: none; }
.wa-note { margin: 0; padding: 0 20px; font-size: .9rem; color: var(--muted); }
.wa-agent { width: calc(100% - 26px); margin: 0 14px 0 12px; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; font: inherit; text-align: left; cursor: pointer; color: inherit; background: var(--white); border: 0; border-left: 4px solid var(--ink-deep); border-radius: 4px; box-shadow: 0 1px 6px rgba(2, 15, 46, .12); transition: background .2s ease, box-shadow .2s ease; }
.wa-agent + .wa-agent { border-left-color: var(--gold-deep); }
.wa-agent:hover, .wa-agent:focus-visible { background: var(--cream-2); box-shadow: 0 3px 12px rgba(2, 15, 46, .16); outline: none; }
.wa-agent:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.wa-av { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-deep); color: #fff; font-family: var(--font-display); font-size: 1.15rem; box-shadow: inset 0 0 0 2px var(--sky); }
.wa-av--q { background: var(--sky); color: var(--ink-000); box-shadow: inset 0 0 0 2px var(--ink-deep); }
img.wa-av { object-fit: cover; }
.wa-msg { flex: 1; min-width: 0; display: grid; gap: 3px; }
.wa-msg b { font-size: 1.02rem; font-weight: 600; color: var(--text); }
.wa-msg span { font-size: .92rem; color: var(--muted); }
.wa-go { flex: none; width: 26px; height: 26px; color: var(--gold-ink); }
.wa-go svg { width: 100%; height: 100%; }

.wa-chat { display: none; }
.wa-panel.chat .wa-start { display: none; }
.wa-panel.chat .wa-chat { display: block; }
.wa-head--chat { padding: 12px 16px 12px 8px; gap: 10px; }
.wa-head--chat .wa-back { align-self: center; width: 32px; height: 32px; }
.wa-head--chat .wa-av { width: 44px; height: 44px; font-size: 1.05rem; box-shadow: inset 0 0 0 2px var(--sky); }
.wa-head--chat .wa-av--q { box-shadow: inset 0 0 0 2px #fff; }
.wa-head--chat .wa-title { gap: 4px; }
.wa-head--chat .wa-ctl:not(.wa-back) { margin-top: 2px; }
.wa-slot { display: contents; }
.wa-online { display: inline-flex; align-items: center; gap: 6px; }
.wa-online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(157, 185, 211, .25); }
.wa-form { display: grid; gap: 10px; padding: 16px 16px 18px; background: var(--white); }
.wa-panel.quick .wa-full { display: none; }
.wa-in { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.wa-in::placeholder { color: #8795a8; }
.wa-in:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--gold-glow); }
.wa-in.bad { border-color: #c0392b; }
.wa-ta { position: relative; }
.wa-ta textarea { display: block; min-height: 108px; resize: none; padding-bottom: 40px; }
.wa-panel.quick .wa-ta textarea { min-height: 170px; }
.wa-emo { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s ease, color .2s ease; }
.wa-emo:hover, .wa-emo[aria-expanded="true"] { background: var(--cream-2); color: var(--ink-deep); }
.wa-emo:focus-visible { outline: 2px solid var(--gold-deep); }
.wa-emo-pop { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 2; width: 100%; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 30px -10px rgba(2, 15, 46, .3); }
.wa-emo-pop[hidden] { display: none; }
.wa-e { border: 0; background: transparent; border-radius: 6px; font-size: 1.25rem; line-height: 1; padding: 6px 0; cursor: pointer; }
.wa-e:hover, .wa-e:focus-visible { background: var(--cream-2); outline: none; }
.wa-send { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 16px; border: 0; border-radius: 8px; font: inherit; font-size: 1rem; font-weight: 500; color: #fff; background: var(--ink-deep); cursor: pointer; transition: background .2s ease; }
.wa-send svg { width: 20px; height: 20px; color: var(--sky); }
.wa-send:hover:not(:disabled) { background: var(--navy-2); }
.wa-send:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.wa-send:disabled { background: #9aa8ba; cursor: not-allowed; }
.wa-send:disabled svg { color: #fff; }
@media (max-width: 720px) { .wa-panel { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .wa-panel { animation: none; } }

/* ==========================================================================
   WhatsApp popup motion: the panel unfurls out of the button like a lens
   iris (circular reveal + springy settle), the header catches a sweep of
   light, the icon rings, and the content rises in one piece at a time.
   Closing runs it in reverse and folds back into the button.
   ========================================================================== */
@keyframes wa-reveal {
  from { opacity: 0; clip-path: circle(0% at 100% 100%); }
  35%  { opacity: 1; }
  to   { opacity: 1; clip-path: circle(200% at 100% 100%); }
}
@keyframes wa-spring {
  from { transform: translate(26px, 34px) scale(.3) rotate(5deg); }
  to   { transform: none; }
}
@keyframes wa-out {
  from { opacity: 1; transform: none; clip-path: circle(200% at 100% 100%); }
  to   { opacity: 0; transform: translate(18px, 28px) scale(.35) rotate(4deg); clip-path: circle(0% at 100% 100%); }
}
@keyframes wa-sheen { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@keyframes wa-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-16deg); } 30% { transform: rotate(14deg); }
  45% { transform: rotate(-10deg); } 60% { transform: rotate(7deg); } 75% { transform: rotate(-3deg); }
}
@keyframes wa-rise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes wa-ripple { from { opacity: .85; transform: scale(1); } to { opacity: 0; transform: scale(1.45, 1.8); } }

.wa-panel.closing { animation: wa-out .34s cubic-bezier(.55, 0, .8, .3) forwards; pointer-events: none; }

.wa-head { position: relative; overflow: hidden; }
.wa-head::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(157, 185, 211, .38) 50%, transparent 65%); animation: wa-sheen 1.1s .3s ease-out backwards; }
.wa-head > svg { transform-origin: 50% 15%; animation: wa-ring 1s .35s ease-in-out backwards; }

.wa-note, .wa-agent, .wa-form > * { animation: wa-rise .55s cubic-bezier(.2, .8, .2, 1) backwards; }
.wa-note { animation-delay: .22s; }
.wa-body > :nth-child(2) { animation-delay: .3s; }
.wa-body > :nth-child(3) { animation-delay: .4s; }
.wa-form > :nth-child(1) { animation-delay: .12s; }
.wa-form > :nth-child(2) { animation-delay: .2s; }
.wa-form > :nth-child(3) { animation-delay: .28s; }
.wa-form > :nth-child(4) { animation-delay: .36s; }

.wa::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--sky); opacity: 0; pointer-events: none; }
.wa.is-open::after { animation: wa-ripple .9s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .wa-panel, .wa-panel.closing, .wa-head::after, .wa-head > svg, .wa-note, .wa-agent, .wa-form > *, .wa.is-open::after { animation: none !important; }
}

/* booking form: "Other" shoot type + calendar field */
.form-row[hidden] { display: none; }
#f-o-row:not([hidden]) { animation: wa-rise .4s cubic-bezier(.2, .8, .2, 1); }
.form-card .form-field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .75; }
.form-card .form-field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.form-card .form-field input[type="time"] { color-scheme: light; cursor: pointer; }
.form-card .form-field input[type="time"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .75; }

/* ---- footer social links ---- */
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-1, 0.25rem); }
.footer-social .social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--rule); text-decoration: none;
  transition: color .2s, border-color .2s, background-color .2s, transform .2s;
}
.footer-social .social-link:hover, .footer-social .social-link:focus-visible {
  color: var(--accent-text); border-color: var(--accent-text); transform: translateY(-2px);
}
.footer-social .social-link:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .footer-social .social-link { transition: none; } .footer-social .social-link:hover { transform: none; } }

/* ---------- Blog ---------- */
.post-card .in { gap: var(--space-2); }
.post-meta { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.post-card h3 { font-size: var(--text-xl); line-height: 1.3; overflow-wrap: anywhere; }
.post-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .go { padding-top: var(--space-3); }
.post-card--lead { grid-column: 1 / -1; flex-direction: row; }
.post-card--lead .wm { flex: 1.25; aspect-ratio: auto; min-height: 340px; }
.post-card--lead .in { flex: 1; justify-content: center; padding: var(--space-7); gap: var(--space-3); }
.post-card--lead h3 { font-size: var(--text-3xl); line-height: 1.2; }
.post-card--lead p { font-size: var(--text-base); -webkit-line-clamp: 4; }
.post-sk { display: flex; flex-direction: column; gap: var(--space-3); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); padding-bottom: var(--space-5); }
.post-sk > div { aspect-ratio: 4 / 3; background-color: var(--mist); }
.post-sk > i { display: block; height: 16px; margin-inline: var(--space-5); border-radius: 8px; background-color: var(--mist); }
.post-sk > i + i { width: 60%; }
.blog-empty { max-width: 560px; margin: var(--space-7) auto; text-align: center; display: grid; gap: var(--space-4); justify-items: center; }
.blog-empty p { color: var(--fg-soft); }
.blog-empty .cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* a single post */
.post { padding-block: var(--space-7) var(--space-8); }
.post-back { display: inline-block; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--space-3); text-decoration: none; }
.post-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-head { display: grid; gap: var(--space-4); justify-items: start; margin: 0 auto var(--space-6); max-width: 68ch; }
.post-head h1 { font-size: var(--text-3xl); line-height: 1.25; overflow-wrap: anywhere; }
.post-cover { margin: 0 0 var(--space-7); border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); box-shadow: var(--shadow); }
.post-cover img { width: 100%; max-height: 640px; object-fit: cover; display: block; }
.post-body { font-size: var(--text-lg); line-height: 1.75; color: var(--text); max-width: 68ch; margin-inline: auto; overflow-wrap: anywhere; }
.post-body > * + * { margin-top: 1.25em; }
.post-body h2, .post-body h3 { font-family: var(--font-body); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin-top: 2em; color: var(--ink-deep); }
.post-body h2 { font-size: var(--text-2xl); }
.post-body h3 { font-size: var(--text-xl); }
.post-body a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--ink-deep); }
.post-body ul, .post-body ol { padding-left: 1.4em; display: grid; gap: 0.5em; }
.post-body blockquote { border-left: 4px solid var(--gold); padding: var(--space-2) 0 var(--space-2) var(--space-5); color: var(--ink-deep); font-size: var(--text-xl); line-height: 1.5; }
.post-body blockquote p + p { margin-top: 0.8em; }
.post-body hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.2em; }
.post-body figure { margin-inline: 0; }
.post-body figure img { width: 100%; height: auto; border-radius: var(--radius); background: var(--mist); display: block; }
.post-body figcaption { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--fg-mute); margin-top: var(--space-2); text-align: center; }
.post-share { max-width: 68ch; margin: var(--space-7) auto 0; padding-top: var(--space-5); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.post-share > span { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); margin-right: var(--space-2); }
.share-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule-strong); border-radius: var(--radius-full); padding: 9px 16px; font-size: var(--text-sm); color: var(--text); background: transparent; cursor: pointer; text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--gold-deep); color: var(--gold-ink); }
.post-more[hidden] { display: none; }

@media (max-width: 1100px) {
  .post-card--lead { flex-direction: column; }
  .post-card--lead .wm { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
  .post-card--lead .in { padding: var(--space-5); }
  .post-card--lead h3 { font-size: var(--text-2xl); }
}
@media (max-width: 720px) {
  .post { padding-top: var(--space-5); }
  .post-body { font-size: var(--text-base); }
  .post-body blockquote { font-size: var(--text-lg); padding-left: var(--space-4); }
}
.blog-empty[hidden], .filters[hidden], .svc-grid[hidden], .post-more[hidden] { display: none; }

#latest[hidden] { display: none; }

/* ---- navbar + drawer social links ---- */
.nav-social, .drawer-social { display: flex; gap: var(--space-2); align-items: center; }
.nav-social .social-link, .drawer-social .social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--rule); color: var(--fg-soft); text-decoration: none;
  transition: color .2s, border-color .2s, transform .2s;
}
.nav-social .social-link:hover, .nav-social .social-link:focus-visible,
.drawer-social .social-link:hover, .drawer-social .social-link:focus-visible { color: var(--accent-text); border-color: var(--accent-text); transform: translateY(-2px); }
.nav-social .social-link:focus-visible, .drawer-social .social-link:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.nav-social { margin-inline-end: var(--space-2); }
.drawer-social { margin-top: var(--space-4); }
.drawer-social .social-link { width: 44px; height: 44px; color: var(--fg); }
@media (max-width: 720px) { .nav-social { display: none; } } /* on phones the icons live in the menu drawer */
@media (prefers-reduced-motion: reduce) { .nav-social .social-link, .drawer-social .social-link { transition: none; } .nav-social .social-link:hover, .drawer-social .social-link:hover { transform: none; } }
