/* ==========================================================================
   2D Art 3D Models, site styles
   Palette: terracotta on slate (pulled from the paintings), one accent only.
   Shape system: interactive = full pill, image/card shells = 28px outer / 22px inner,
   form inputs = 14px. Scripture is the only text set in serif (Newsreader italic).
   Glass effects are a web approximation of Apple materials, not an Apple package.
   Z-index scale: 1 content, 35 menu, 40 nav, 50 lightbox, 60 grain.
   ========================================================================== */

:root {
  --bg: #ECEEEF;
  --bg-2: #E2E5E7;
  --surface: #F7F8F8;
  --shell: rgba(21, 24, 27, 0.045);
  --ring: rgba(21, 24, 27, 0.08);
  --ink: #15181B;
  --ink-2: #3A4046;
  --muted: #5B636A;
  --accent: #A5461F;
  --accent-hover: #8F3B18;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(165, 70, 31, 0.09);
  --glass: rgba(247, 248, 248, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --highlight: rgba(255, 255, 255, 0.65);
  --shadow: 0 30px 60px -30px rgba(38, 44, 50, 0.28);
  --scrim: rgba(12, 14, 16, 0.86);
  --error: #A3261D;
  --ok: #2F6B45;

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI Variable', sans-serif;
  --scripture: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --r-shell: 28px;
  --r-core: 22px;
  --r-input: 14px;
  --wrap: 1240px;
  --gutter: 24px;
  --section: clamp(88px, 11vw, 152px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1012;
    --bg-2: #14171A;
    --surface: #181B1F;
    --shell: rgba(255, 255, 255, 0.04);
    --ring: rgba(255, 255, 255, 0.09);
    --ink: #EEF0F1;
    --ink-2: #C4C9CD;
    --muted: #949BA1;
    --accent: #E27B50;
    --accent-hover: #EC9068;
    --accent-ink: #1A0D06;
    --accent-soft: rgba(226, 123, 80, 0.12);
    --glass: rgba(24, 27, 31, 0.66);
    --glass-edge: rgba(255, 255, 255, 0.1);
    --highlight: rgba(255, 255, 255, 0.07);
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
    --error: #F08A80;
    --ok: #8BCB9F;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; overflow-x: clip; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }   /* component display rules (e.g. .bezel) must not un-hide elements */
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 70; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 16px; }

/* Film grain on a fixed, non-interactive layer (never on scrolling content) */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background: url(../img/grain.png) 0 0 / 128px 128px;   /* pre-rendered tile: cheaper than a live SVG filter */
}
@media (prefers-color-scheme: dark) { body::after { opacity: 0.05; } }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 767px) { :root { --gutter: 16px; } }
section { padding-block: var(--section); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--sans); color: var(--ink); text-wrap: balance; }
.display {
  font-size: clamp(2.5rem, 5.7vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.038em;
}
.h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.032em;
}
.h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--shell);
  box-shadow: 0 0 0 1px var(--ring);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.verse {
  font-family: var(--scripture);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding-bottom: 0.1em;
}
.verse-ref { display: block; margin-top: 14px; font: 500 0.78rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* ---------- Buttons: pill with nested icon "knob" ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px;
  padding: 6px 6px 6px 24px;
  border-radius: 999px;
  border: 0;
  font-size: 0.98rem; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.btn .knob {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  transition: transform 500ms var(--ease);
}
.btn:active { transform: scale(0.98); transition-duration: 120ms; }
@media (hover: hover) { .btn:hover .knob { transform: translate(3px, -1px) scale(1.06); } }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary .knob { background: rgba(255, 255, 255, 0.16); }
@media (prefers-color-scheme: dark) { .btn-primary .knob { background: rgba(0, 0, 0, 0.12); } }
@media (hover: hover) { .btn-primary:hover { background: var(--accent-hover); } }
.btn-quiet { background: var(--shell); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ring); }
.btn-quiet .knob { background: var(--surface); box-shadow: 0 0 0 1px var(--ring); }
@media (hover: hover) { .btn-quiet:hover { background: var(--bg-2); } }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: none; color: var(--ink);
}
.text-link i { transition: transform 500ms var(--ease); }
@media (hover: hover) { .text-link:hover i { transform: translateX(4px); } .text-link:hover { color: var(--accent); } }

/* ---------- Double-bezel: outer shell + inner core ---------- */
.bezel {
  display: block;
  padding: 6px;
  border-radius: var(--r-shell);
  background: var(--shell);
  box-shadow: 0 0 0 1px var(--ring);
}
.core {
  display: block;
  border-radius: var(--r-core);
  background: var(--surface);
  box-shadow: inset 0 1px 1px var(--highlight);
  overflow: hidden;
  height: 100%;
}
.art {
  all: unset;
  display: block;
  cursor: zoom-in;
  border-radius: var(--r-shell);
  transition: transform 700ms var(--ease);
  touch-action: manipulation;
}
.art:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.art:active { transform: scale(0.985); transition-duration: 140ms; }
@media (hover: hover) { .art:hover img { transform: scale(1.03); } }

/* ---------- Floating island nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--ring), 0 10px 30px -18px rgba(20, 24, 28, 0.35);
  transition: box-shadow 500ms var(--ease);
}
.nav.scrolled { box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--ring), 0 18px 40px -20px rgba(20, 24, 28, 0.5); }
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
}
.mono {                                     /* TP signature logo (img/tp-logo.png) */
  flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: block; object-fit: cover;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.93rem; font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
@media (hover: hover) { .nav-links a:hover { background: var(--shell); color: var(--ink); } }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--shell); }
.nav .btn { min-height: 44px; padding: 4px 4px 4px 18px; font-size: 0.92rem; }
.nav .btn .knob { width: 36px; height: 36px; font-size: 16px; }
.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--shell);
  cursor: pointer;
}
.burger span {
  position: absolute; left: 13px; width: 18px; height: 1.6px; border-radius: 2px;
  background: var(--ink);
  transition: transform 600ms var(--ease), top 600ms var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 859px) {
  .nav { left: 12px; right: 12px; transform: none; width: auto; justify-content: space-between; }
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
}

.menu {
  position: fixed; inset: 0; z-index: 35;   /* under the nav, so the burger's X stays tappable */
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 24px 40px;
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease); }
.menu ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.menu li { overflow: hidden; }
.menu a:not(.btn) {
  display: block; padding: 6px 0;
  font-size: clamp(2.2rem, 10vw, 3rem); font-weight: 600; letter-spacing: -0.035em;
  text-decoration: none; color: var(--ink);
  transform: translateY(48px); opacity: 0;
  transition: transform 700ms var(--ease), opacity 500ms var(--ease);
}
.menu .btn { margin-top: 28px; align-self: flex-start; transform: translateY(24px); opacity: 0; transition: transform 700ms var(--ease) 320ms, opacity 500ms var(--ease) 320ms; }
.menu-open .menu a:not(.btn), .menu-open .menu .btn { transform: none; opacity: 1; }
.menu-open .menu li:nth-child(1) a { transition-delay: 100ms; }
.menu-open .menu li:nth-child(2) a { transition-delay: 150ms; }
.menu-open .menu li:nth-child(3) a { transition-delay: 200ms; }
.menu-open .menu li:nth-child(4) a { transition-delay: 250ms; }
.menu-open .menu li:nth-child(5) a { transition-delay: 300ms; }
@media (min-width: 860px) { .menu { display: none; } }

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(120px, 14vw, 150px); padding-bottom: clamp(64px, 8vw, 110px); position: relative; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto; height: 90%;
  background: radial-gradient(40% 50% at 78% 38%, var(--accent-soft), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero .display { margin-top: 22px; max-width: 17ch; }
@media (min-width: 1024px) { .hero .display { max-width: none; } }
.hero-sub {                                 /* subtitle under the "Verse and a Painting" title */
  margin-top: 14px;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 500; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--ink-2);
  text-wrap: balance;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 28px; align-items: start; }
.hero-copy .btn-row { margin-top: 32px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 5fr 7fr; gap: 48px; } }

/* Z-axis cascade of three paintings */
.cascade { position: relative; }
.cascade .art { width: 100%; }
.cascade .bezel { box-shadow: 0 0 0 1px var(--ring), var(--shadow); }
.cascade .core { aspect-ratio: 5 / 4; }
.cascade .f-back-l, .cascade .f-back-r { display: none; }
@media (min-width: 900px) {
  .cascade { height: clamp(380px, 36vw, 470px); }
  .cascade .art { position: absolute; }
  .cascade .f-back-l, .cascade .f-back-r { display: block; }
  .cascade .f-back-l { width: 52%; left: 0; top: 30px; rotate: -5deg; z-index: 1; }
  .cascade .f-back-r { width: 50%; right: 0; top: 0; rotate: 4deg; z-index: 2; }
  .cascade .f-front { width: 62%; left: 20%; top: 70px; rotate: -1deg; z-index: 3; }
}
@supports (animation-timeline: scroll()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .cascade .f-back-l { animation: drift-l linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .cascade .f-back-r { animation: drift-r linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .cascade .f-front  { animation: drift-f linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
@keyframes drift-l { to { translate: -28px 36px; rotate: -8deg; } }
@keyframes drift-r { to { translate: 28px 18px; rotate: 7deg; } }
@keyframes drift-f { to { translate: 0 -24px; rotate: 0deg; } }

/* ---------- Home: selected work bento (exactly 3 cells) ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.bento { display: grid; grid-template-columns: 1fr; gap: 14px; }
.bento .core { aspect-ratio: var(--ar, 4 / 5); }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-template-rows: 300px 300px; }
  .bento .core { aspect-ratio: auto; }
  .bento .b1 { grid-column: 1 / 6; grid-row: 1 / 3; }
  .bento .b2 { grid-column: 6 / 13; grid-row: 1; }
  .bento .b3 { grid-column: 6 / 13; grid-row: 2; }
  .bento .art, .bento .bezel { height: 100%; }
}

/* ---------- Home: services (editorial split, sticky left) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 64px; }
  .split .sticky { position: sticky; top: 120px; align-self: start; }
}
.split .sticky .body { margin-top: 18px; }
.split .sticky .text-link { margin-top: 28px; }
.offer-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.offer .core { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 28px; }
@media (min-width: 600px) { .offer .core { grid-template-columns: auto 1fr; gap: 24px; } }
.offer-icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 28px;
}
.offer p { margin-top: 8px; color: var(--ink-2); }
.offer .text-link { margin-top: 16px; font-size: 0.95rem; }

/* ---------- Home: mission manifesto ---------- */
.manifesto { text-align: center; position: relative; overflow: clip; }
.manifesto::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(45% 55% at 50% 50%, var(--accent-soft), transparent 70%);
  pointer-events: none; z-index: -1;
}
.manifesto .display { max-width: 14ch; margin-inline: auto; }
.manifesto .body { margin: 24px auto 0; }
.manifesto blockquote { margin: 44px auto 0; max-width: 30ch; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--ink); }
.manifesto .btn-row { justify-content: center; margin-top: 40px; }

/* ---------- Sign-up / forms ---------- */
.signup .core { display: grid; grid-template-columns: 1fr; gap: 32px; padding: clamp(28px, 5vw, 56px); }
@media (min-width: 900px) { .signup .core { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.signup .body { margin-top: 14px; }
/* Wallpaper preview: two phones + a desktop screen, bottoms aligned like devices on a desk */
.signup-art { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 28px 0 0; }
.signup-art .device { display: block; flex: none; padding: 3px; background: #1b1714; box-shadow: 0 0 0 1px var(--ring), 0 14px 30px -18px rgba(20, 12, 6, 0.55); }
.signup-art .device img { display: block; width: 100%; height: 100%; object-fit: cover; }
.signup-art .phone { width: 78px; height: 139px; border-radius: 14px; }
.signup-art .phone.tall { width: 72px; height: 152px; }
.signup-art .phone img { border-radius: 11px; }
.signup-art .desk { width: 176px; height: 99px; border-radius: 8px; }
.signup-art .desk img { border-radius: 5px; }
.signup-art figcaption { flex-basis: 100%; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 520px) {                 /* keep all three devices on one row on phones */
  .signup-art { gap: 8px; }
  .signup-art .phone { width: 56px; height: 100px; border-radius: 11px; }
  .signup-art .phone.tall { width: 52px; height: 110px; }
  .signup-art .phone img { border-radius: 8px; }
  .signup-art .desk { width: 132px; height: 74px; }
}

.field { display: grid; gap: 8px; }
.field + .field { margin-top: 18px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--r-input);
  border: 0;
  background: var(--bg);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ring);
  font: inherit; font-size: 1rem;
  transition: box-shadow 300ms var(--ease), background-color 300ms var(--ease);
}
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); background: var(--surface); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--error); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.error { font-size: 0.86rem; color: var(--error); min-height: 0; }
.error:empty { display: none; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 0.92rem; color: var(--muted); }
.form-status[data-state="error"] { color: var(--error); }
.form-done { display: none; }
.form.is-done .form-fields { display: none; }
.form.is-done .form-done { display: block; }
.form-done .icon-ok {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 26px;
  margin-bottom: 18px;
}
.hp { position: absolute; left: -9999px; }
.form-done .dl-btn { margin-top: 20px; }
.fix-btn {                                  /* "Did you mean gmail.com?" one-tap fixes */
  all: unset; cursor: pointer;
  font-weight: 600; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
}
.fix-btn.subtle { font-weight: 500; color: var(--muted); margin-left: 6px; }
.fix-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Footer ---------- */
.footer { padding-top: 0; padding-bottom: 40px; }
.footer .core { padding: clamp(28px, 5vw, 64px); }
.footer-cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 48px; margin-bottom: 40px; box-shadow: 0 1px 0 var(--ring); }
.footer-cta .h2 { max-width: 16ch; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 900px) { .footer-cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-cols h3 { font-size: 0.82rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 14px; }
.footer-cols ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-cols a { text-decoration: none; color: var(--ink-2); }
@media (hover: hover) { .footer-cols a:hover { color: var(--accent); } }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-about { grid-column: auto; } }
.footer-about p { color: var(--ink-2); max-width: 34ch; margin-top: 14px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Inner page headers ---------- */
.page-head { padding-top: clamp(130px, 15vw, 170px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head .display { margin-top: 20px; max-width: 16ch; }
.page-head .lede { margin-top: 22px; }

/* ---------- Work: masonry ---------- */
.masonry { columns: 1; column-gap: 14px; padding-top: 0; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry .art { break-inside: avoid; margin-bottom: 14px; width: 100%; }
.masonry figcaption { padding: 12px 10px 6px; font-size: 0.9rem; color: var(--muted); }

/* ---------- Work: "full collection" panel (Drive gallery) ----------
   Collapsed: two rows of uniform tiles under a soft fade + "Show all" button.
   Expanded: remaining tiles fade up in a short stagger. Small tiles use a 20/15 radius pair. */
.collection > .core {                       /* direct child only: tile cores inside must stay unpadded */
  padding: clamp(20px, 4vw, 44px);
  background: linear-gradient(180deg, var(--accent-soft), transparent 260px), var(--surface);
}
.collection-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 28px; margin-bottom: 28px; }
.collection-head .body { margin-top: 10px; }

.dg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .dg-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.dg-grid .art { border-radius: 20px; min-width: 0; align-self: start; }   /* buttons centre content when stretched */
.dg-grid .bezel { padding: 5px; border-radius: 20px; }
.dg-grid .core { aspect-ratio: 4 / 3; border-radius: 15px; background: var(--shell); }
.dg-grid .art img { width: 100%; height: 100%; object-fit: cover; }
.dg-cap { display: block; padding: 10px 6px 2px; font-size: 0.88rem; color: var(--muted); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Collapsed = first two rows only (4 tiles on phones, 6 from 760px). Hidden tiles don't load. */
.dg-grid.is-collapsed .art:nth-child(n+5) { display: none; }
@media (min-width: 760px) {
  .dg-grid.is-collapsed .art:nth-child(n+5) { display: block; }
  .dg-grid.is-collapsed .art:nth-child(n+7) { display: none; }
}
.dg-clip { position: relative; }
.drive-gallery.is-collapsed.has-more .dg-clip::after {
  content: ""; position: absolute; left: -6px; right: -6px; bottom: -2px; height: 46%;
  background: linear-gradient(to bottom, transparent, var(--surface) 88%);
  pointer-events: none;
}
.dg-toggle { position: relative; display: flex; justify-content: center; margin-top: 24px; }
.drive-gallery.is-collapsed .dg-toggle { margin-top: -30px; }
.dg-toggle .btn { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ring), 0 12px 30px -18px rgba(20, 24, 28, 0.45); }
.dg-toggle .knob i { transition: transform 500ms var(--ease); }
.dg-toggle [aria-expanded="true"] .knob i { transform: rotate(180deg); }

.dg-grid .art.dg-reveal { animation: dg-in 700ms var(--ease) both; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes dg-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }

.dg-skel {
  display: block; aspect-ratio: 4 / 3; border-radius: 20px;
  background: var(--shell); box-shadow: 0 0 0 1px var(--ring);
  animation: dg-pulse 1.6s var(--ease) infinite alternate;
}
.dg-loading .dg-skel:nth-child(n+5) { display: none; }
@media (min-width: 760px) { .dg-loading .dg-skel:nth-child(n+5) { display: block; } }
@keyframes dg-pulse { from { opacity: 1; } to { opacity: 0.45; } }
.dg-status:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  .dg-skel, .dg-grid .art.dg-reveal { animation: none; }
  .dg-toggle .knob i { transition: none; }
}


.cta-band .core { display: grid; grid-template-columns: 1fr; gap: 28px; padding: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .cta-band .core { grid-template-columns: 1fr auto; } }
.cta-band .body { margin-top: 12px; }

/* ---------- Services page ---------- */
.svc-bento { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) {
  .svc-bento { grid-template-columns: repeat(12, 1fr); }
  .svc-bento .s1 { grid-column: 1 / 8; grid-row: 1 / 3; }
  .svc-bento .s2 { grid-column: 8 / 13; }
  .svc-bento .s3 { grid-column: 8 / 13; }
}
.svc .core { display: flex; flex-direction: column; }
.svc .svc-img { aspect-ratio: 16 / 10; overflow: hidden; }
.svc .svc-img img { width: 100%; height: 100%; object-fit: cover; }
.s1 .svc-img { aspect-ratio: auto; flex: 1; min-height: 280px; }
.svc .svc-body { padding: 26px 28px 30px; }
.svc .svc-body p { margin-top: 10px; color: var(--ink-2); }
.svc .text-link { margin-top: 16px; }
.svc.tint .core { background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface); justify-content: flex-end; min-height: 280px; }
.svc.tint .offer-icon { margin: 28px 28px 0; }

.steps { display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 48px; list-style: none; padding: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.steps li { padding-top: 22px; box-shadow: 0 -1px 0 var(--ring); }
.step-top { display: flex; align-items: center; gap: 12px; }
.step-num {
  display: inline-grid; place-items: center;
  min-width: 64px; height: 30px; padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
}
.steps i { font-size: 30px; color: var(--accent); }
.deposit { margin-top: 56px; }
.deposit .core { display: grid; grid-template-columns: 1fr; gap: 18px; padding: clamp(24px, 4vw, 40px); }
@media (min-width: 700px) { .deposit .core { grid-template-columns: auto 1fr; gap: 24px; align-items: start; } }
.deposit p { color: var(--ink-2); max-width: 70ch; font-size: 1.05rem; line-height: 1.65; }
.deposit-text p + p { margin-top: 12px; }
.deposit strong { color: var(--ink); font-weight: 650; }
.deposit-sign { margin-top: 18px !important; font-weight: 500; color: var(--ink) !important; }
.steps h3 { margin-top: 16px; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; }

/* ---------- Mission page ---------- */
.mission-hero { padding-top: clamp(130px, 15vw, 170px); }
.mission-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 900px) { .mission-grid { grid-template-columns: 6fr 5fr; gap: 64px; } }
.mission-grid .display { margin-top: 20px; }
.mission-grid .lede { margin-top: 22px; }
.mission-grid blockquote { margin-top: 36px; font-size: clamp(1.4rem, 2.3vw, 1.85rem); max-width: 26ch; }
.mission-grid .core { aspect-ratio: 4 / 5; }
.support { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
@media (min-width: 700px) { .support { grid-template-columns: repeat(2, 1fr); } .support > :last-child { grid-column: span 2; } }
@media (min-width: 1024px) { .support { grid-template-columns: 5fr 4fr 3fr; } .support .w-wide { grid-column: span 2; } .support > :last-child { grid-column: auto; } }
.support .core { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 250px; }
.support .core p { color: var(--ink-2); flex: 1; }
.support .img-cell .core { padding: 0; position: relative; }
.support .img-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.support .tint .core { background: linear-gradient(200deg, var(--accent-soft), transparent 65%), var(--surface); }
.support .btn { align-self: flex-start; }
.donate-row { margin-top: 28px; }
.support .coffee { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; padding-top: 18px; box-shadow: 0 -1px 0 var(--ring); }
.support .coffee p { flex: 1 1 200px; margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.contact-grid .form .core { padding: clamp(24px, 4vw, 44px); }
.contact-card { margin-top: 36px; }
.contact-card .core { padding: 24px; }
.contact-card .email { display: block; margin-top: 6px; font-size: 1.12rem; font-weight: 500; text-decoration: none; word-break: break-all; }
.contact-card .btn-row { margin-top: 18px; }
.contact-card .btn { min-height: 46px; padding: 4px 4px 4px 18px; }
.contact-card .btn .knob { width: 38px; height: 38px; }
.contact-card[data-copied] .copy-label::after { content: ""; }

/* ---------- Simple pages (thanks / 404) ---------- */
.simple { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.simple .lede { margin: 20px auto 0; }
.simple .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- Scroll reveal (heavy fade-up, springy curve) ---------- */
.js .rv { opacity: 0; transform: translateY(40px); }
.js .rv:not(:has(img)) { filter: blur(6px); }            /* blur text only; blurring big images is costly */
.js .rv.in {
  opacity: 1; transform: none; filter: none;
  transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease), filter 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

/* ---------- Lightbox (spring-driven in site.js) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; }
.lightbox[hidden] { display: none; }
.lb-scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; }
.lb-img { position: absolute; transform-origin: 50% 50%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; cursor: grab; will-change: transform; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.lb-img:active { cursor: grabbing; }
.lb-close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center; font-size: 20px;
  color: #fff; background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  cursor: pointer; opacity: 0;
  transition: transform 400ms var(--ease);
}
.lb-close:active { transform: scale(0.92); transition-duration: 100ms; }
.lb-caption { position: absolute; left: 16px; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); text-align: center; color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; opacity: 0; pointer-events: none; }

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv.in { opacity: 1; transform: none; filter: none; transition: none; }
  .btn, .btn .knob, .art, .art img, .text-link i, .burger span, .menu a, .menu .btn { transition: none !important; }
  .btn:active, .art:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .menu { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .lb-scrim { background: #0b0c0d; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .lb-close { background: #2a2d30; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body::after { display: none; }
}
@media (prefers-contrast: more) {
  :root { --ring: rgba(21, 24, 27, 0.35); --muted: #40474D; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --ring: rgba(255, 255, 255, 0.35); --muted: #C4C9CD; }   /* dark mode needs light text, not the light-mode override */
}
