/* ————————————————————————————————
   Saving Faces — cinematic family archives
   ———————————————————————————————— */

:root {
  --paper:      #F4EEE3;
  --paper-2:    #EBE3D5;
  --paper-3:    #E1D7C6;
  --ink:        #1B1917;
  --ink-soft:   #4A4540;
  --muted:      #857C71;
  --line:       rgba(27,25,23,.14);
  --green:      #23514A;
  --green-deep: #173B36;
  --ochre:      #C79A4B;
  --ochre-soft: #E7C98A;
  --night:      #12110F;
  --night-2:    #1E1B18;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--ochre-soft); color: var(--ink); }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  animation: page-in .9s var(--ease) both;
}
@keyframes page-in { from { opacity: 0 } to { opacity: 1 } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

/* ————— film grain ————— */
.grain-defs { position: absolute; width: 0; height: 0; }
.grain {
  position: fixed; inset: -120px;
  filter: url(#grain);
  opacity: .05;
  pointer-events: none;
  z-index: 60;
  animation: grain-shift 1s steps(3) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0,0) } 33% { transform: translate(-28px,18px) }
  66% { transform: translate(22px,-30px) } 100% { transform: translate(0,0) }
}

/* ————— type ————— */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.05;
  font-variation-settings: "opsz" 72;
}
h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -.025em; }
h2 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.02em; }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
em, .it { font-style: italic; font-variation-settings: "opsz" 72; }
h1 em, h2 em { color: var(--green); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 24;
}
p + p { margin-top: 1.1em; }
.prose p { max-width: 62ch; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ochre); }
.prose a:hover { color: var(--green); }

/* ————— layout ————— */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section-tight { padding-block: clamp(48px, 7vw, 96px); }
.grid { display: grid; gap: clamp(28px, 4vw, 64px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-split { grid-template-columns: 5fr 7fr; align-items: start; }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-split { grid-template-columns: 1fr; } }
.rule { height: 1px; background: var(--line); }

/* ————— nav ————— */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; color: var(--green); }
.brand-word {
  font-family: var(--serif); font-size: 24px; letter-spacing: -.02em;
  font-variation-settings: "opsz" 48;
}
.brand-word em { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--ink-soft);
  position: relative; padding-block: 6px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .btn { color: var(--paper); }
.nav-links .btn::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .nav-toggle { display: grid; place-items: center; }
}

/* ————— buttons ————— */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--green); border-color: var(--green); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--green); border-color: var(--green); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--ochre-soft); border-color: var(--ochre-soft); color: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ————— viewfinder frame ————— */
.frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 6px;
  background:
    radial-gradient(120% 90% at 20% 20%, #E9D9BD 0%, transparent 55%),
    radial-gradient(90% 80% at 85% 80%, #3F6A61 0%, transparent 60%),
    linear-gradient(160deg, #2A2622 0%, #14120F 100%);
  overflow: hidden; isolation: isolate;
  box-shadow: 0 40px 80px -30px rgba(27,25,23,.45), 0 1px 0 rgba(255,255,255,.4) inset;
}
.frame-light {
  position: absolute; inset: -30%;
  background:
    radial-gradient(40% 40% at 30% 35%, rgba(231,201,138,.55), transparent 70%),
    radial-gradient(35% 35% at 70% 65%, rgba(63,106,97,.6), transparent 70%);
  filter: blur(40px);
  animation: light-drift 22s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes light-drift {
  0% { transform: translate(0,0) rotate(0deg) scale(1) }
  100% { transform: translate(8%,-6%) rotate(8deg) scale(1.15) }
}
.frame-corners { position: absolute; inset: 22px; pointer-events: none; }
.frame-corners i {
  position: absolute; width: 22px; height: 22px;
  border: 1.5px solid rgba(244,238,227,.75);
}
.frame-corners i:nth-child(1) { top:0; left:0; border-right:0; border-bottom:0; }
.frame-corners i:nth-child(2) { top:0; right:0; border-left:0; border-bottom:0; }
.frame-corners i:nth-child(3) { bottom:0; left:0; border-right:0; border-top:0; }
.frame-corners i:nth-child(4) { bottom:0; right:0; border-left:0; border-top:0; }
.frame-hud {
  position: absolute; left: 34px; right: 34px; bottom: 30px;
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244,238,227,.8); font-variant-numeric: tabular-nums;
}
.frame-hud .tc { font-size: 13px; letter-spacing: .12em; }
.frame-rec { position: absolute; top: 32px; right: 34px; display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .18em; color: rgba(244,238,227,.85); }
.frame-rec::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: #E4573D;
  box-shadow: 0 0 12px #E4573D; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15 } }
.frame-center {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 40px; color: var(--paper);
}
.frame-center .serif { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.1; max-width: 16ch; }
.frame-center .eyebrow { color: var(--ochre-soft); margin-bottom: 18px; }
.frame-center .eyebrow::before { display: none; }
.frame-center p { font-size: 14px; color: rgba(244,238,227,.7); margin-top: 16px; max-width: 42ch; }

/* ————— hero ————— */
.hero { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 22px 0 26px; max-width: 12ch; }
.hero .lead { max-width: 30ch; margin-bottom: 36px; }
.hero-meta { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-meta div { font-size: 13px; color: var(--muted); }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink); font-weight: 400; margin-bottom: 2px; }

/* ————— feature cards ————— */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--paper); padding: clamp(28px, 3vw, 44px); position: relative; transition: background .4s var(--ease); }
.card:hover { background: var(--paper-2); }
.card .num { font-family: var(--serif); font-style: italic; color: var(--ochre); font-size: 20px; margin-bottom: 26px; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* ————— steps ————— */
.step { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--green); font-variation-settings: "opsz" 72; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 600px) { .step { grid-template-columns: 1fr; gap: 8px; } }

/* ————— quote block ————— */
.quote {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); line-height: 1.12; letter-spacing: -.015em;
  max-width: 24ch; font-variation-settings: "opsz" 72;
}
.quote em { color: var(--green); }

/* ————— dark band ————— */
.dark { background: var(--night); color: var(--paper); }
.dark .eyebrow { color: var(--ochre-soft); }
.dark h2 em, .dark .quote em { color: var(--ochre-soft); }
.dark p { color: rgba(244,238,227,.72); }
.dark .rule { background: rgba(244,238,227,.14); }
.dark .btn-ghost { color: var(--paper); border-color: rgba(244,238,227,.3); }
.dark .btn-ghost:hover { color: var(--ochre-soft); border-color: var(--ochre-soft); }

/* ————— pricing ————— */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  border: 1px solid var(--line); border-radius: 12px; padding: clamp(28px, 3vw, 40px);
  background: var(--paper); display: flex; flex-direction: column; gap: 22px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tier:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(27,25,23,.35); }
.tier-featured { background: var(--night); color: var(--paper); border-color: var(--night); }
.tier-featured .tier-price, .tier-featured h3 { color: var(--paper); }
.tier-featured .tier-num { color: var(--ochre-soft); }
.tier.tier-featured li { color: rgba(244,238,227,.8); }
.tier.tier-featured li::before { background: var(--ochre-soft); }
.tier-featured .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tier-featured .btn:hover { background: var(--ochre-soft); border-color: var(--ochre-soft); }
.tier-featured .tier-tag { color: var(--ochre-soft); }
.tier-head { display: flex; justify-content: space-between; align-items: baseline; }
.tier-num { font-family: var(--serif); font-style: italic; color: var(--ochre); font-size: 18px; }
.tier-tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--green); }
.tier h3 { font-size: 30px; }
.tier-price { font-family: var(--serif); font-size: 44px; letter-spacing: -.02em; line-height: 1; font-variation-settings: "opsz" 72; }
.tier-price small { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; font-weight: 600; }
.tier-featured .tier-price small { color: rgba(244,238,227,.6); }
.tier-desc { color: var(--ink-soft); font-size: 15.5px; }
.tier-featured .tier-desc { color: rgba(244,238,227,.75); }
.tier ul { list-style: none; display: grid; gap: 12px; flex: 1; }
.tier li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.tier li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 1.5px; background: var(--green); }
.tier .btn { align-self: flex-start; margin-top: 8px; }

.note {
  border-left: 2px solid var(--ochre); padding: 4px 0 4px 22px; color: var(--ink-soft); font-size: 15.5px; max-width: 70ch;
}

/* ————— FAQ ————— */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); font-variation-settings: "opsz" 40;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 22px; color: var(--green); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--ink-soft); max-width: 66ch; }

/* ————— form ————— */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 0; outline: none; border-radius: 0;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--green); }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { font-size: 15px; color: var(--ink-soft); min-height: 1.5em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #A13D2C; }
.contact-aside { display: grid; gap: 28px; align-content: start; }
.contact-aside .k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-aside .v { font-family: var(--serif); font-size: 24px; font-variation-settings: "opsz" 40; }
.contact-aside .v a:hover { color: var(--green); }

/* ————— CTA band ————— */
.cta { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }
.cta h2 { max-width: 16ch; }

/* ————— footer ————— */
.footer { background: var(--night); color: rgba(244,238,227,.7); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand-word { color: var(--paper); }
.footer .brand-word em { color: var(--ochre-soft); }
.footer .brand-mark { color: var(--ochre-soft); }
.footer p { font-size: 14px; max-width: 34ch; margin-top: 16px; }
.footer h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,238,227,.45); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer li a { font-size: 15px; color: rgba(244,238,227,.8); }
.footer li a:hover { color: var(--ochre-soft); }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(244,238,227,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(244,238,227,.45); }

/* ————— page header ————— */
.page-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-head h1 { margin: 20px 0 22px; max-width: 14ch; }
.page-head .lead { max-width: 52ch; }

/* ————— reveal ————— */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s } .reveal-d2 { transition-delay: .24s } .reveal-d3 { transition-delay: .36s }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
