/* =========================================================
   Wolfeboro Media — site styles
   Black & white to match the WOLF monogram, one warm brass accent.
   ========================================================= */

:root {
  /* Color tokens */
  --paper: #f5f3ef;
  --paper-2: #ebe8e2;
  --ink: #0e0e0f;
  --ink-soft: #2a2927;
  --muted: #5f5b55;          /* 6.3:1 on paper */
  --line: #d9d5ce;
  --night: #0b0b0c;
  --night-2: #151516;
  --on-night: #f2f0ec;
  --on-night-muted: #a9a49b; /* 7.9:1 on night */
  --night-line: #2c2b29;
  --accent: #a8844c;         /* decorative: rules, dots, focus */
  --accent-text: #85652f;    /* 4.8:1 on paper — for small accent text */
  --accent-on-night: #cfae74;

  /* Type */
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (8pt) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 72px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 700ms;

  --z-header: 40;
  --z-menu: 50;
  --z-lightbox: 100;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

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

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

.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: var(--s2); }

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

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
h1 em, h2 em { font-style: italic; font-weight: 400; }

p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 38ch; line-height: 1.55; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s3);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--ink); border-radius: 0;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--ink-soft); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.on-night .btn--solid { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.on-night .btn--solid:hover { background: #fff; }
.on-night .btn--ghost { color: var(--on-night); border-color: var(--on-night); }
.on-night .btn--ghost:hover { background: var(--on-night); color: var(--night); }

.text-link {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--dur) var(--ease-out);
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.01em; line-height: 1; }

.nav-list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: 10px 0;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  position: relative;
  transition: color var(--dur-fast) ease;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav-list a:hover, .nav-list a[aria-current] { color: var(--ink); }
.nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); }

/* "Portfolio" with a dropdown of the five sections (desktop): opens on hover, keyboard focus, or the arrow button */
.has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle { width: 28px; height: 36px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease-out); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: -18px; min-width: 210px; z-index: 5;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(14, 14, 15, .08);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease, visibility 0s linear var(--dur-fast); }
.nav-sub a { display: block; padding: 10px 18px; }
.nav-sub a::after { display: none; }
.nav-sub a:hover, .nav-sub a[aria-current] { background: var(--paper-2); }
@media (min-width: 901px) {
  /* :focus-visible = keyboard focus only, so a mouse click on the arrow can still close it */
  .has-sub:hover .nav-sub, .has-sub:has(:focus-visible) .nav-sub, .sub-toggle[aria-expanded="true"] + .nav-sub {
    opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease; }
}
.nav-list .nav-cta a {
  color: var(--paper); background: var(--ink); padding: 10px 18px;
}
.nav-list .nav-cta a::after { display: none; }
.nav-list .nav-cta a:hover { background: var(--ink-soft); color: var(--paper); }

.menu-toggle {
  display: none;
  width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 24px; height: 1.5px; background: var(--ink); position: relative;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Phone/tablet menu (below 900px): full-screen list; the portfolio sections show indented under "Portfolio" */
@media (max-width: 900px) {
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle, .brand { position: relative; z-index: calc(var(--z-menu) + 1); }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0; z-index: var(--z-menu);
    background: var(--paper);
    padding: calc(var(--header-h) + var(--s4)) var(--gutter) var(--s5);
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) ease, visibility 0s linear var(--dur);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur) ease; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-list a {
    font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 0; text-transform: none;
    color: var(--ink); padding: 6px 0;
  }
  .nav-list a::after { bottom: 6px; }
  .nav-list .nav-cta { margin-top: var(--s3); }
  .nav-list .nav-cta a { font-family: var(--font-body); font-size: 0.9rem; letter-spacing: .1em; text-transform: uppercase; padding: 14px 24px; }
  .has-sub { flex-direction: column; align-items: flex-start; gap: 0; }
  .sub-toggle { display: none; }
  .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; transition: none;
    background: none; border: 0; box-shadow: none; min-width: 0; padding: 0 0 8px 4px; }
  .nav-sub a { font-family: var(--font-body); font-size: 1.05rem; letter-spacing: .02em; color: var(--muted); padding: 8px 0 8px 18px;
    border-left: 1px solid var(--line); }
  .nav-sub a:hover, .nav-sub a[aria-current] { background: none; color: var(--ink); border-left-color: var(--ink); }
  .site-nav { overflow-y: auto; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */

.hero { padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 128px); }
.hero .container {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero-copy h1 { margin-bottom: var(--s4); }
/* Homepage headline: large main line + smaller italic tagline beneath it */
.hero-copy h1 .h1-main { display: block; font-size: 1.12em; line-height: 1.02; }
.hero-copy h1 .h1-sub { display: block; font-size: .7em; line-height: 1.2; margin-top: .45em; color: var(--ink-soft); }
.hero-copy .lede { margin-bottom: var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4);
  margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted); list-style: none; padding-left: 0;
}
.hero-meta li { display: flex; align-items: center; gap: 10px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.hero-media { position: relative; padding: 0 0 12% 14%; }
.hero-media .frame-main { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.hero-media .frame-main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-media .frame-inset {
  position: absolute; left: 0; bottom: 0; width: 42%;
  aspect-ratio: 3 / 4; overflow: hidden;
  border: 8px solid var(--paper); background: var(--paper-2);
}
.hero-media .frame-inset img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption {
  position: absolute; right: 0; bottom: calc(12% - 34px);
  font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 560px; }
  .hero-media figcaption { display: none; }
  .hero-meta { margin-top: var(--s5); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 144px); }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: var(--s4); flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head p { max-width: 42ch; color: var(--muted); margin: 0; }

.on-night { background: var(--night); color: var(--on-night); }
.on-night .eyebrow { color: var(--accent-on-night); }
.on-night .lede, .on-night .section-head p, .on-night .muted { color: var(--on-night-muted); }
.on-night ::selection { background: var(--on-night); color: var(--night); }

/* Portfolio index cards */
/* Layout: Headshots, Portraits + Events as vertical frames on top (3 across),
   Video + Personal Work as horizontal frames below (2 across) */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 28px); }
.work-card { text-decoration: none; display: flex; flex-direction: column; grid-column: span 3; }
.work-card .media { overflow: hidden; background: var(--night-2); aspect-ratio: 3 / 2; }
.work-card:nth-child(-n+3) { grid-column: span 2; }
.work-card:nth-child(-n+3) .media { aspect-ratio: 4 / 5; }
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) ease;
}
.work-card:hover img { transform: scale(1.035); }
.work-card .meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2);
  padding-top: var(--s2);
}
.work-card .num { font-size: 0.8rem; letter-spacing: .14em; color: var(--on-night-muted); }
.work-card h3 { transition: color var(--dur-fast) ease; }
.work-card p { font-size: 0.95rem; margin: 6px 0 0; color: var(--on-night-muted); }
.work-card .arrow {
  width: 22px; height: 22px; flex: none; align-self: center;
  transition: transform var(--dur) var(--ease-out);
}
.work-card:hover .arrow { transform: translate(4px, -4px); }
.work-card:hover h3 { color: var(--accent-on-night); }

@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card, .work-card:nth-child(-n+3) { grid-column: auto; }
}

/* Feature image band */
.feature-band { position: relative; }
.feature-band img { width: 100%; height: clamp(360px, 62vw, 780px); object-fit: cover; }
.feature-band blockquote {
  margin: 0; position: absolute; left: var(--gutter); bottom: clamp(24px, 5vw, 64px);
  max-width: min(640px, calc(100% - 2 * var(--gutter)));
  color: #fff; font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem); line-height: 1.25;
  text-shadow: 0 1px 24px rgba(0,0,0,.45);
}
.feature-band blockquote cite {
  display: block; margin-top: var(--s2);
  font-family: var(--font-body); font-style: normal; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
}
.feature-band::after {
  content: ""; position: absolute; inset: 40% 0 0 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.feature-band blockquote { z-index: 1; }

/* Showreel (homepage): silent looping video under the hero.
   The reel's picture area is 2:1 (thin black bars are built into the file), so the box is 2:1 and "cover" trims the bars. */
.reel { position: relative; overflow: hidden; background: var(--night); aspect-ratio: 2 / 1; max-height: 92vh; width: 100%; }
.reel__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8,8,9,.55) 0%, rgba(8,8,9,0) 30%); }
.reel__label { position: absolute; z-index: 1; left: var(--gutter); bottom: clamp(16px, 3vw, 36px); margin: 0;
  display: inline-flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85);
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.reel__label::before { content: ""; width: 28px; height: 1px; background: var(--accent-on-night); }
.reel__controls { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(12px, 3vw, 30px); display: flex; gap: 10px; }
.reel__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(8,8,9,.35);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.reel__btn:hover { background: rgba(8,8,9,.65); border-color: #fff; }
.reel__btn svg { width: 18px; height: 18px; }
.reel__play .i-play, .reel__play[aria-pressed="true"] .i-pause { display: none; }
.reel__play[aria-pressed="true"] .i-play { display: block; }
@media (max-width: 760px) { .reel { aspect-ratio: 16 / 10; } }

/* Services + testimonials (homepage): reviews card on the left, services on the right.
   If the reviews are hidden, the services use the full width. On phones, services come first. */
[hidden] { display: none !important; }
.services-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.services-layout > .testimonials[hidden] + .services-main,
.services-layout > .services-main:only-child { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-layout > .services-main { order: -1; }
}

/* Testimonials card: one quote at a time; all slides share one grid cell so the height never jumps */
/* On desktop the card stretches to the full height of the services column (symmetrical):
   heading at the top, quote centered in the middle, controls along the bottom. */
.testimonials { background: var(--paper-2); position: relative; }
.t-card { padding: clamp(32px, 3.4vw, 52px); display: flex; flex-direction: column; height: 100%; }
.t-card > .eyebrow, .t-card > h2, .t-card > .t-controls, .t-card > .t-more { flex: none; }
/* Desktop: the card's contents sit inside the card instead of setting its height, so the card always matches the
   services column. A review that's too long scrolls inside the card (mouse wheel, trackpad, touch, or arrow keys). */
@media (min-width: 901px) {
  .t-card { position: absolute; inset: 0; }
}
.t-viewport { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.t-slide { min-height: 0; overflow-y: auto; display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior: auto; }
.t-slide-inner { margin-block: auto; padding-right: 6px; }   /* centered when short; scrolls from the top when long */
.t-slide.is-scrollable:not(.at-end) {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
}
.t-slide:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.testimonials h2 { font-size: clamp(1.8rem, 2.7vw, 2.5rem); margin-bottom: clamp(22px, 2.8vw, 36px); }
.t-viewport { display: grid; }
.t-slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), visibility 0s linear 700ms; }
.t-slide.is-active { opacity: 1; visibility: visible; transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), visibility 0s; }
.t-stars { display: inline-flex; gap: 4px; margin-bottom: var(--s3); color: var(--accent); }
.t-stars svg { width: 16px; height: 16px; fill: currentColor; }
.t-quote { margin: 0; }
.t-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.4; color: var(--ink); margin: 0 0 var(--s3); text-wrap: pretty; }
.t-cite { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.t-name { font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.t-detail { font-size: .9rem; color: var(--muted); }
.t-controls { display: flex; align-items: center; gap: var(--s1); margin: clamp(24px, 3vw, 36px) 0 0 -10px; }
.t-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease; }
.t-btn:hover { border-color: var(--ink); background: var(--paper); }
.t-btn svg { width: 18px; height: 18px; }
.t-pause .i-play, .t-pause[aria-pressed="true"] .i-pause { display: none; }
.t-pause[aria-pressed="true"] .i-play { display: block; }
.t-dots { display: flex; gap: 2px; }
.t-dot { width: 28px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.t-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--line); transition: background-color var(--dur) ease, transform var(--dur) var(--ease-out); }
.t-dot[aria-current="true"]::after { background: var(--accent); transform: scale(1.25); }
.t-more { margin: var(--s4) 0 0; }
@media (prefers-reduced-motion: reduce) { .t-slide, .t-slide.is-active { transition: none; transform: none; } }

/* Selected clients (homepage): a slim band of client names under Services */
.clients { padding-block: 0 clamp(56px, 7vw, 96px); }
.clients-inner { display: flex; align-items: baseline; gap: var(--s3) clamp(24px, 4vw, 56px); flex-wrap: wrap;
  padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.clients-label { font-family: var(--font-body); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-text); margin: 0; flex: none; display: inline-flex; align-items: center; gap: 12px; }
.clients-label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.clients-inner { flex-direction: column; align-items: center; }
.clients-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(28px, 3vw, 40px) clamp(48px, 8vw, 128px); }
.client { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; max-width: 260px; }
.client-logo { height: clamp(72px, 7.5vw, 110px); display: flex; align-items: center; justify-content: center; }
.client-logo img { max-height: 100%; width: auto; max-width: 260px; opacity: .8; transition: opacity var(--dur) ease; }
.client:hover .client-logo img { opacity: 1; }
.client-name { font-family: var(--font-display); font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.3; color: var(--ink-soft); }
@media (max-width: 760px) {
  .clients-list { justify-content: center; }
  .clients-label { align-self: center; }
}

/* Split intro / about teaser */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 112px); align-items: center; }
.split--reverse { grid-template-columns: 7fr 5fr; }
.split .media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: var(--s4); }
.split .body p { color: var(--ink-soft); max-width: 58ch; }
@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split .media { max-width: 520px; }
}

/* Services list */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li {
  display: grid; grid-template-columns: 64px 1fr 1.4fr; gap: var(--s3); align-items: baseline;
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
.services .num { font-size: .8rem; letter-spacing: .14em; color: var(--accent-text); }
.services p { margin: 0; color: var(--muted); }
@media (max-width: 760px) {
  .services li { grid-template-columns: 40px 1fr; }
  .services li p { grid-column: 2; }
}

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 16ch; margin: 0 auto var(--s4); }
.cta-band .lede { margin: 0 auto var(--s5); }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding-block: clamp(48px, 8vw, 112px) clamp(32px, 5vw, 64px); }
.page-head h1 { margin-bottom: var(--s3); }
.page-head .lede { max-width: 52ch; }

.subnav {
  display: flex; flex-wrap: wrap; gap: var(--s1);
  list-style: none; padding: 0; margin: var(--s5) 0 0;
}
.subnav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; text-decoration: none; color: var(--muted);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.subnav a:hover { border-color: var(--ink); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Gallery (masonry via columns) ---------- */

.gallery { columns: 3 320px; column-gap: clamp(12px, 1.6vw, 24px); padding-bottom: clamp(72px, 10vw, 144px); }
.gallery figure { margin: 0 0 clamp(12px, 1.6vw, 24px); break-inside: avoid; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2);
  cursor: zoom-in; overflow: hidden; position: relative;
}
.gallery img { width: 100%; transition: transform var(--dur-slow) var(--ease-out), filter var(--dur) ease; }
.gallery button:hover img { transform: scale(1.025); }
.gallery figcaption { font-size: .85rem; color: var(--muted); padding-top: 10px; }

/* Photos locked together in one column (stackWithPrevious in tools/build.js) */
.gallery-stack { break-inside: avoid; }

/* Small groups (4 photos or fewer): an even row instead of masonry columns, so no column sits empty */
.gallery--row {
  columns: auto; display: grid; align-items: start;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
.gallery--row figure { margin: 0; }
.gallery--row .gallery-stack { display: grid; gap: clamp(12px, 1.6vw, 24px); }
@media (max-width: 760px) { .gallery--row { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); } }
@media (max-width: 480px) { .gallery--row { grid-template-columns: 1fr; } }

/* Headshot shoots: one titled group per team */
.shoot { scroll-margin-top: calc(var(--header-h) + 16px); }
.shoot-head {
  display: flex; justify-content: space-between; align-items: end; gap: var(--s3); flex-wrap: wrap;
  padding-top: var(--s4); margin-bottom: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.shoot-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.shoot-meta {
  margin: 0 0 10px; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text);
}
.shoot-count { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.shoot-index { margin-top: var(--s2); }

/* "Jump to" links for groups on a page, styled differently from the page-section pills above them */
.jump-index {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s4);
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.jump-label {
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.jump-index ul { display: flex; flex-wrap: wrap; gap: 0 var(--s4); list-style: none; margin: 0; padding: 0; }
.jump-index a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); text-decoration: none;
}
.jump-index a span {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.jump-index a:hover span { background-size: 100% 1px; }
.jump-index svg { width: 15px; height: 15px; flex: none; color: var(--accent); transition: transform var(--dur) var(--ease-out); }
.jump-index a:hover svg { transform: translateY(3px); }
@media (prefers-reduced-motion: reduce) { .jump-index a:hover svg { transform: none; } }
.shoot .gallery { padding-bottom: clamp(48px, 7vw, 104px); }

/* ---------- Video ---------- */

/* --video-cols (set by tools/build.js) = how many smaller videos sit side by side under the featured one */
.video-grid { display: grid; grid-template-columns: repeat(var(--video-cols, 3), minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); padding-bottom: clamp(72px, 10vw, 144px); }
.video-card--feature { grid-column: 1 / -1; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--night); overflow: hidden; }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: var(--night); }
.video-card .meta { display: flex; justify-content: space-between; gap: var(--s2); align-items: baseline; padding-top: var(--s2); flex-wrap: wrap; }
.video-card .tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.video-card p { color: var(--muted); margin: 6px 0 0; max-width: 60ch; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- About page ---------- */

.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 112px); align-items: start; padding-bottom: clamp(72px, 10vw, 144px); }
.about-grid .portrait { position: sticky; top: calc(var(--header-h) + 32px); }
.about-grid .portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--night); }
.about-grid .portrait figcaption { font-size: .85rem; color: var(--muted); padding-top: 10px; }
.about-body p { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.about-body p:first-of-type { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.45; color: var(--ink); }
.about-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: var(--s6) 0 var(--s3); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.facts dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.facts dd { margin: 0; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .portrait { position: static; max-width: 480px; }
}

/* ---------- Contact page ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a {
  display: grid; grid-template-columns: 140px 1fr auto; gap: var(--s3); align-items: center;
  padding: clamp(20px, 3vw, 36px) 0; text-decoration: none;
}
.contact-list .label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list .value {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2.6rem); line-height: 1.15;
  overflow-wrap: anywhere; transition: color var(--dur-fast) ease;
}
.contact-list svg { width: 26px; height: 26px; transition: transform var(--dur) var(--ease-out); }
.contact-list a:hover .value { color: var(--accent-text); }
.contact-list a:hover svg { transform: translate(4px, -4px); }
@media (max-width: 640px) {
  .contact-list a { grid-template-columns: 1fr auto; gap: 6px var(--s2); }
  .contact-list .label { grid-column: 1 / -1; }
}
/* Contact page: Cal.com booking calendar */
.booking { padding-top: clamp(56px, 7vw, 96px); }
.booking--page { padding-top: 0; padding-bottom: clamp(72px, 10vw, 144px); }
.booking-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s3) var(--s5); flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 32px); }
.booking-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.booking-head p { max-width: 46ch; color: var(--muted); margin: 0; }
.booking-embed { min-height: 620px; border: 1px solid var(--line); background: #fff; overflow: auto; position: relative; }
.booking-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--muted); font-size: .95rem; }
.booking-embed.is-loaded .booking-loading { display: none; }
.booking-fallback { margin: var(--s2) 0 0; font-size: .9rem; color: var(--muted); }
.booking-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 6px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--ink); font: 500 .85rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.booking-back svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.booking-back:hover svg { transform: translateX(-3px); }
.booking-back[hidden] { display: none !important; }
@media (max-width: 760px) { .booking-embed { min-height: 760px; } }

.contact-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s5); padding-block: var(--s6) clamp(72px, 10vw, 144px); }
.contact-aside h2 { font-size: 1.4rem; margin-bottom: var(--s2); }
.contact-aside p, .contact-aside li { color: var(--muted); }
.contact-aside ul { padding-left: 1.1em; margin: 0; }

/* ---------- Footer ---------- */

.site-footer { padding-block: var(--s7) var(--s4); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s5); padding-bottom: var(--s6); border-bottom: 1px solid var(--night-line); }
.footer-brand img { width: 72px; height: 72px; margin-bottom: var(--s3); }
.footer-brand p { color: var(--on-night-muted); max-width: 32ch; }
.site-footer h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-muted); margin-bottom: var(--s2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-top > * { min-width: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; text-decoration: none; overflow-wrap: anywhere; }
.site-footer li a:hover { color: var(--accent-on-night); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s4); font-size: .85rem; color: var(--on-night-muted); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 8, 9, .96); color: var(--on-night);
}
.lightbox::backdrop { background: rgba(8, 8, 9, .96); }
.lightbox[open] { display: grid; grid-template-rows: 64px 1fr auto; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--s2) 0 var(--gutter); }
.lightbox-count { font-size: .85rem; letter-spacing: .12em; color: var(--on-night-muted); font-variant-numeric: tabular-nums; }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(8px, 7vw, 96px); }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox-stage img { animation: lb-in 380ms var(--ease-out); }
}
@keyframes lb-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lightbox-caption { text-align: center; padding: var(--s2) var(--gutter) var(--s3); color: var(--on-night-muted); font-size: .9rem; min-height: 56px; }
.lb-btn {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 50%; cursor: pointer; color: var(--on-night);
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.lb-btn:hover { border-color: var(--night-line); background: var(--night-2); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: clamp(4px, 2vw, 32px); }
.lb-next { right: clamp(4px, 2vw, 32px); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: -56px; transform: none; }
  .lightbox-caption { padding-inline: 72px; }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
