/* =========================================================
   Forever Photos — site styles (Viewfinder theme: see the block at the end)
   All colors and fonts are tokens on :root. Change them here.
   ========================================================= */

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #efede8;
  --text: #1c1b19;
  --muted: #5f5c56;
  --border: #dedad2;
  --accent: #1c1b19;          /* EDIT: brand color. Forever Photos is black and white */
  --accent-hover: #3d3b37;
  --on-accent: #ffffff;
  --focus: #2563eb;
  --success: #2f7d4f;
  --overlay: rgb(10 10 10 / .94);
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 10px 30px rgb(0 0 0 / .07);
  --radius: 12px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  /* EDIT: the text tiled over event previews. Keep it URL-encoded (spaces as %20). */
  /* Brand watermark: the "mark + words" tile from the brand kit, white at 20%. */
  --watermark: url("../images/brand/watermark-tile.png");
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121211;
  --surface: #1b1b1a;
  --surface-2: #252523;
  --text: #f1efea;
  --muted: #aaa69e;
  --border: #353431;
  --accent: #f1efea;
  --accent-hover: #d6d2ca;
  --on-accent: #121211;
  --focus: #7ea6ff;
  --success: #6cc493;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px rgb(0 0 0 / .35);
  color-scheme: dark;
}

/* Used only when JavaScript is off (the head script normally sets data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121211;
    --surface: #1b1b1a;
    --surface-2: #252523;
    --text: #f1efea;
    --muted: #aaa69e;
    --border: #353431;
    --accent: #f1efea;
    --accent-hover: #d6d2ca;
    --on-accent: #121211;
    --focus: #7ea6ff;
    --success: #6cc493;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.narrow { max-width: 760px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--bg); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 650;
  color: var(--muted); margin-bottom: .75rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent);
  font: 600 .95rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--surface-2); color: var(--text); }
.btn-light { background: #fff; color: #161616; }
.btn-light:hover { background: #ece9e3; color: #161616; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .6); }
.btn-ghost-light:hover { background: rgb(255 255 255 / .12); color: #fff; }
.btn-small { padding: .45rem .9rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border); border-radius: 999px; background: transparent;
  color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 66px; }
.brand {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--text);
  text-decoration: none; margin-right: auto; white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand { display: inline-flex; align-items: center; }
.brand .logo { height: auto; width: 160px; margin-block: 6px; }
.brand .logo-white, :root[data-theme="dark"] .brand .logo-black { display: none; }
:root[data-theme="dark"] .brand .logo-white { display: block; }
.footer-name { margin: 0 0 1rem; }
.footer-name img { width: 180px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.site-nav a {
  display: block; padding: .5rem .7rem; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: .95rem;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav a.btn { color: var(--on-accent); padding: .5rem 1rem; margin-left: .35rem; }
.site-nav a.btn:hover { background: var(--accent-hover); }
.site-nav a.btn[aria-current="page"] { color: var(--on-accent); }
.nav-toggle { display: none; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-grid; order: 3; }
  .theme-toggle { order: 2; }
  .site-nav {
    display: none; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem; gap: .1rem; }
  .site-nav a { padding: .8rem .5rem; font-size: 1.05rem; }
  .site-nav a.btn { margin: .5rem 0 0; padding: .8rem 1rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .5rem 0 0; color: var(--muted); max-width: 40rem; }
.page-header { padding-block: clamp(40px, 7vw, 84px) clamp(24px, 4vw, 40px); }
.page-header h1 { margin-bottom: .35em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 860px); display: grid; align-items: end; color: #fff;
  background: #3f3b35;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(0 0 0 / .72), rgb(0 0 0 / .18) 55%, rgb(0 0 0 / .28));
}
.hero-content { padding-block: clamp(56px, 12vh, 128px); }
.hero .eyebrow { color: rgb(255 255 255 / .85); }
.hero h1 { max-width: 16ch; }
.hero .lead { color: rgb(255 255 255 / .9); margin-bottom: 1.75rem; }

/* ---------- Highlights mosaic (home) ---------- */
.mosaic {
  display: grid; gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 17vw, 230px);
}
.mosaic a { display: block; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic a:hover img { transform: scale(1.035); }
.mosaic .big { grid-column: span 2; grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
}

/* ---------- Gallery cards ---------- */
.card-grid {
  display: grid; gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
}
/* Five galleries: the first card is wide, the rest fill two rows. */
.card-grid.featured { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 26vw, 330px); }
.card-grid.featured .gallery-card { aspect-ratio: auto; }
.card-grid.featured .gallery-card:first-child { grid-column: span 2; }
@media (max-width: 640px) {
  .card-grid.featured { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(180px, 48vw, 260px); }
}
.gallery-card {
  position: relative; isolation: isolate; display: flex; align-items: end;
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  color: #fff; text-decoration: none; background: #555;
}
.gallery-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .6s ease;
}
.gallery-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(0 0 0 / .7), rgb(0 0 0 / 0) 60%);
}
.gallery-card:hover { color: #fff; }
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card-body { padding: 1.1rem 1.2rem; }
.gallery-card h3 { margin: 0 0 .15em; color: #fff; }
.gallery-card p { margin: 0; font-size: .9rem; color: rgb(255 255 255 / .85); }

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid; gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  margin-bottom: 1rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); }
.feature .text-link, .feature .btn-row { margin-top: auto; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: .8rem;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.steps h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 38rem; margin: 0 auto 1.5rem; color: var(--muted); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid; gap: clamp(8px, 1.2vw, 14px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.gallery-item { margin: 0; }
.gallery-item a {
  display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 2;
  background: var(--surface-2); cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item a:hover img { transform: scale(1.03); }

.license-callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); margin-top: clamp(32px, 5vw, 56px);
}
.license-callout h2 { font-size: 1.5rem; margin-bottom: .25em; }
.license-callout p { margin: 0; color: var(--muted); }
.gallery-pager {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 2rem clamp(48px, 7vw, 88px);
}
.gallery-pager a { text-decoration: none; font-weight: 600; }

/* ---------- Image protection (deterrents only; see docs/BACKEND-PLAN.md) ---------- */
[data-protect] img, .lightbox[data-protect] .lb-img {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.wm { position: relative; }
.wm::after {
  content: ""; position: absolute; inset: 0; pointer-events: auto;
  background-image: var(--watermark); background-size: 360px 240px; background-repeat: repeat;
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--overlay); color: #fff;
}
.lightbox::backdrop { background: rgb(0 0 0 / .6); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; align-items: center; gap: .75rem; padding: 12px 16px; }
.lb-counter { font: 500 .9rem var(--font-sans); color: rgb(255 255 255 / .75); margin-right: auto; }
.lb-actions:empty { display: none; }
.lb-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgb(255 255 255 / .2); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lb-figure { position: relative; margin: 0; line-height: 0; }
.lb-img {
  max-width: calc(100vw - 144px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
  width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .25s ease;
}
.lb-img.is-loaded { opacity: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-caption { margin: 0; padding: 12px 16px 20px; text-align: center; color: rgb(255 255 255 / .85); font-size: .95rem; min-height: 1.5em; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px; }
  .lb-img { max-width: calc(100vw - 16px); }
  .lb-prev, .lb-next { background: rgb(0 0 0 / .45); }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
}

/* ---------- Event store (proofs + cart) ---------- */
.event-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; color: var(--muted); margin-bottom: 1rem; }
.notice {
  border-left: 3px solid var(--accent); background: var(--surface-2);
  padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin-bottom: 1.5rem;
}
.notice p:last-child { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: 500 .9rem var(--font-sans); cursor: pointer;
}
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.proof-grid {
  display: grid; gap: clamp(10px, 1.4vw, 16px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.proof {
  margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.proof.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.proof-open {
  display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 3 / 2;
  background: var(--surface-2); cursor: zoom-in; overflow: hidden;
}
.proof-open img { width: 100%; height: 100%; object-fit: cover; }
.proof figcaption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .6rem .55rem .8rem; }
.proof-id { font: 600 .85rem var(--font-mono); color: var(--muted); }
.select-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: 600 .85rem var(--font-sans); cursor: pointer;
}
.select-btn:hover { border-color: var(--accent); }
.select-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lightbox .select-btn { background: #fff; color: #161616; border-color: #fff; padding: .55rem 1.1rem; font-size: .95rem; }
.lightbox .select-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cart-bar {
  position: sticky; bottom: 0; z-index: 40; margin-top: 2rem;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgb(0 0 0 / .08);
}
.cart-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; padding-block: .85rem; }
.cart-summary { display: flex; flex-direction: column; line-height: 1.35; }
.cart-summary strong { font-size: 1.05rem; }
.cart-hint { font-size: .88rem; color: var(--muted); }
.cart-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 560px) {
  .cart-bar-inner { padding-block: .6rem; gap: .5rem; }
  .cart-actions { width: 100%; flex-wrap: nowrap; }
  .cart-actions [data-checkout] { flex: 1; }
  .cart-hint { font-size: .8rem; }
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.price-card.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.badge {
  position: absolute; top: -12px; left: 1.5rem; padding: .2rem .7rem; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}
.price { font: 500 2.4rem/1.1 var(--font-display); margin: .25rem 0 .5rem; }
.price small { font: 400 .95rem var(--font-sans); color: var(--muted); }
.price-card > p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .85rem; height: .45rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; }
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

.faq { display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: .9rem; }
.faq details p { color: var(--muted); }

/* ---------- Split layouts, forms ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1.15fr 1fr; align-items: start; }
.split.reverse { grid-template-columns: 1fr 1.15fr; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } }
.portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.card + .card { margin-top: 1rem; }
.card h2 { font-size: 1.4rem; }
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 1rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 600; color: var(--success); }
.form-status.is-error { color: #c0392b; }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .9rem; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- Stock links ---------- */
.stock-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.stock-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.stock-card h3 { margin-bottom: .35em; }
.stock-card p { color: var(--muted); font-size: .97rem; }
.stock-card .btn { margin-top: auto; }

/* ---------- Download list ---------- */
.download-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.download-list li {
  display: flex; align-items: center; gap: 1rem; padding: .75rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.download-list img { width: 96px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; flex: none; }
.download-list .grow { flex: 1; min-width: 0; }
.download-list small { color: var(--muted); }
@media (max-width: 520px) { .download-list li { flex-wrap: wrap; } .download-list .btn { width: 100%; } }

/* ---------- Modal, toast ---------- */
.modal {
  width: min(520px, calc(100vw - 32px)); padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.modal::backdrop { background: rgb(0 0 0 / .55); }
.modal h2 { font-size: 1.5rem; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 16px);
  max-width: calc(100vw - 32px); width: max-content;
  background: var(--text); color: var(--bg); padding: .8rem 1.1rem; border-radius: 10px;
  box-shadow: var(--shadow); font-size: .95rem; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 52px 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr repeat(3, 1fr); }
.footer-grid h2 { font: 650 .8rem var(--font-sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); max-width: 30ch; }
.footer-brand .brand { display: inline-block; margin-bottom: .6rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .85rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-content: center; text-align: center; }
.not-found .btn-row { justify-content: center; }

/* Four-up feature cards (privacy promises) and link chips (pricing jump links) */
.feature-grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
a.chip { display: inline-block; text-decoration: none; }
a.chip:hover { color: var(--text); }
.feature-grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }
[hidden] { display: none !important; }


/* =========================================================
   VIEWFINDER THEME
   Dark camera look to match the home page. This block overrides
   the tokens above; the site is dark-only, so the light/dark
   toggle is hidden. EDIT: --accent is the amber highlight color.
   ========================================================= */
:root, :root[data-theme="light"], :root[data-theme="dark"], :root:not([data-theme]) {
  /* Brand colours (Brand guidelines 1.0): Ink #161813, Paper #F5EEDE, White */
  --bg: #161813;
  --surface: #1f211b;
  --surface-2: #1b1d17;
  --text: #f5eede;
  --muted: #b3ad9f;
  --border: #34362e;
  --accent: #f5eede;
  --accent-hover: #ffffff;
  --on-accent: #161813;
  --focus: #f5eede;
  --success: #5dff8f;
  --shadow: 0 1px 2px rgb(0 0 0 / .5), 0 10px 30px rgb(0 0 0 / .45);
  --radius: 3px;
  --font-sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "Jost", "Avenir Next", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-label: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.price { font-weight: 600; letter-spacing: -.02em; }
.eyebrow { font: 500 .74rem/1.4 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.theme-toggle { display: none !important; }
.site-header { background: rgb(22 24 19 / .9); }
.site-nav a { font: 500 .76rem/1.3 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-radius: 3px; }
.site-nav a:hover { background: transparent; color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a.btn, .site-nav a.btn:hover, .site-nav a.btn[aria-current="page"] { color: var(--on-accent); }
.btn, .chip, .select-btn { border-radius: 3px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .14em; font-weight: 500; font-size: .78rem; }
.btn { padding: .9rem 1.25rem; }
.btn-small { padding: .5rem .8rem; font-size: .72rem; }
.btn-outline { color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.text-link { font: 500 .76rem/1.4 var(--font-label); letter-spacing: .14em; text-transform: uppercase; }
.badge { border-radius: 3px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.feature-icon { border-radius: 3px; }
.mosaic a, .gallery-item a, .gallery-card, .proof, .faq details, .notice, .download-list li, input, select, textarea { border-radius: 3px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.site-footer h2 { font: 500 .74rem/1.4 var(--font-label); letter-spacing: .16em; text-transform: uppercase; text-transform: uppercase; color: var(--accent); }

/* Headshots gallery: portrait tiles so faces aren't cropped; "wide" marks landscape photos */
.gallery-grid.portraits .gallery-item a { aspect-ratio: 4 / 5; }
.gallery-grid.portraits .gallery-item img { object-position: 50% 22%; }
.gallery-grid.portraits .gallery-item.wide a { aspect-ratio: 3 / 2; }
.gallery-grid.portraits .gallery-item.wide img { object-position: 50% 40%; }
@media (min-width: 621px) {
  .gallery-grid.portraits .gallery-item.wide { grid-column: span 2; }
  .gallery-grid.portraits .gallery-item.wide a { aspect-ratio: 8 / 4.93; }
}
