/* Personal Video, Golden hour kit (design/identity/kit/README.md). */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face { font-family: 'Bricolage Fallback'; src: local('Arial'); size-adjust: 103%; ascent-override: 92%; }

:root {
  --night: #121212;
  --smoke: #1c1c1c;
  --panel: #232323;
  --line: #2a2a2a;
  --paper: #f4f1ea;
  --dim: #b3aea4; /* 8.9:1 on night */
  --amber: #ffb443;
  --font: 'Bricolage Grotesque', 'Bricolage Fallback', system-ui, sans-serif;
  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 17px/1.6 var(--font); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--amber); color: var(--night); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header and footer */
.hdr { border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--dim); }
.nav a:hover, .nav a[aria-current='page'] { color: var(--paper); }
.btn { display: inline-block; font: 700 15px/1 var(--font); text-decoration: none; padding: 14px 20px; border-radius: 99px; background: var(--amber); color: var(--night); border: 0; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px #4a4a4a; }
.btn.small { padding: 10px 15px; font-size: 14px; }
@media (max-width: 760px) { .nav a.hide-sm { display: none; } .nav { gap: 14px; } }

.ftr { border-top: 1px solid var(--line); margin-top: 96px; padding: 48px 0 40px; color: var(--dim); font-size: 15px; }
.ftr .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.ftr h2 { font-size: 15px; color: var(--paper); margin: 0 0 10px; font-weight: 700; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--paper); text-decoration: underline; }
.ftr .fine { margin-top: 36px; font-size: 13px; }
@media (max-width: 760px) { .ftr .cols { grid-template-columns: 1fr 1fr; } }

/* Type */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 82px); }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--dim); max-width: 34em; }
.prose { max-width: 40em; }
.prose p, .prose ul { margin: 0 0 1em; color: var(--dim); }
.prose h2 { font-size: 28px; margin: 2em 0 0.6em; }
.prose strong { color: var(--paper); }
section { padding-top: 96px; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 46em; }

/* Hero: a small cinema screen playing the product */
.hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: clamp(40px, 7vw, 88px); }
.hero h1 { margin-bottom: 22px; }
.hero h1 .glow { color: var(--amber); }
.hero h1 .line { display: block; }
.hero .lede { margin-bottom: 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--dim); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

.screen { margin: 0; }
.screen .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -36px rgba(255, 180, 67, 0.45); }
.screen .shot { position: absolute; inset: 0; opacity: 0; animation: shot 24s infinite; }
.screen .shot img { width: 100%; height: 100%; object-fit: cover; animation: drift 24s infinite; transform-origin: var(--fx, 50%) var(--fy, 40%); }
.screen .shot:nth-child(2), .screen .shot:nth-child(2) img { animation-delay: 6s; }
.screen .shot:nth-child(3), .screen .shot:nth-child(3) img { animation-delay: 12s; }
.screen .shot:nth-child(4), .screen .shot:nth-child(4) img { animation-delay: 18s; }
.screen .cap { position: absolute; left: 6%; right: 6%; bottom: 7%; text-align: center; font-size: clamp(13px, 1.25vw, 16px); line-height: 1.4;
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(0, 0, 0, 0.8); }
@keyframes shot { 0% { opacity: 0; } 3% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
/* the first photo is visible from the first frame; its jump back at the loop is hidden under the fourth photo */
.screen .shot:first-child { animation-name: shot-first; }
@keyframes shot-first { 0% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
@keyframes drift { 0% { transform: scale(1.02); } 29% { transform: scale(1.12); } 100% { transform: scale(1.12); } }
.screen figcaption { margin-top: 12px; font-size: 14px; color: var(--dim); }
@media (prefers-reduced-motion: reduce) {
  /* calm mode: the same story, slower and with less movement, never frozen */
  .screen .shot { animation-duration: 48s; }
  .screen .shot img { animation-name: drift-calm; animation-duration: 48s; }
  .screen .shot:nth-child(2), .screen .shot:nth-child(2) img { animation-delay: 12s; }
  .screen .shot:nth-child(3), .screen .shot:nth-child(3) img { animation-delay: 24s; }
  .screen .shot:nth-child(4), .screen .shot:nth-child(4) img { animation-delay: 36s; }
}
@keyframes drift-calm { 0% { transform: scale(1.02); } 29% { transform: scale(1.04); } 100% { transform: scale(1.04); } }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 40px; line-height: 1; color: var(--amber); margin-bottom: 14px; }
.steps p { color: var(--dim); margin-top: 8px; font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Occasions: a plain list, the first one leads */
.occasions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.occasions li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.occasions .name { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.occasions .line { color: var(--dim); }
.occasions a { text-decoration-color: var(--amber); text-underline-offset: 4px; }
@media (max-width: 700px) { .occasions li { grid-template-columns: 1fr; gap: 4px; } }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.example video, .example img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #000; box-shadow: 0 0 0 1px var(--line); }
.example h3 { margin-top: 16px; }
.example p { color: var(--dim); font-size: 15px; margin-top: 4px; }
@media (max-width: 760px) { .examples { grid-template-columns: 1fr; } }

/* Never list */
.never { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.never div { border-left: 2px solid var(--amber); padding-left: 16px; }
.never p { color: var(--dim); font-size: 16px; margin-top: 8px; }
@media (max-width: 900px) { .never { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .never { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 46em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 400; color: var(--amber); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--dim); padding: 0 0 20px; max-width: 40em; }

/* Prices */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--smoke); }
.tier.lead { border-color: var(--amber); }
.tier .price { font-weight: 800; font-size: 48px; letter-spacing: -0.03em; margin: 10px 0 4px; }
.tier .meta { color: var(--dim); font-size: 15px; }
.tier ul { margin: 18px 0 0; padding-left: 18px; color: var(--dim); font-size: 15px; display: grid; gap: 6px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.banner { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 14px 18px; color: var(--dim); font-size: 15px; margin-bottom: 32px; max-width: 46em; }

/* Closing call */
.closing { margin-top: 96px; padding: clamp(32px, 6vw, 64px); border-radius: 20px; background: var(--smoke); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 18px; justify-items: start; }
.closing p { color: var(--dim); max-width: 34em; }

.page-head { padding-top: clamp(40px, 7vw, 80px); display: grid; gap: 18px; }
.page-head h1 { font-size: clamp(38px, 5vw, 64px); max-width: 16em; }
.draft { display: inline-block; font-size: 14px; color: var(--night); background: var(--amber); border-radius: 6px; padding: 3px 9px; font-weight: 700; }

/* Order flow */
.wrap.narrow { max-width: 760px; }
.form { display: grid; gap: 10px; max-width: 520px; margin-top: 28px; }
.form label { font-weight: 600; margin-top: 10px; }
.form .opt { font-weight: 400; color: var(--dim); }
.form input[type='email'], .form input[type='text'], .form input:not([type]), .form input[type='date'] {
  font: 400 17px var(--font); color: var(--paper); background: var(--smoke); border: 1.5px solid #3a3a3a; border-radius: 10px; padding: 12px 14px; color-scheme: dark; }
.form input:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.form legend { font-weight: 600; margin-bottom: 6px; }
.form .choice { font-weight: 400; margin: 0; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.form .choice:has(input:checked) { border-color: var(--amber); }
.form input[type='radio'] { accent-color: var(--amber); width: 18px; height: 18px; }
.form .btn { justify-self: start; margin-top: 14px; }
.form-error { background: #3a1f1f; border: 1px solid #6b3434; border-radius: 10px; padding: 12px 14px; }
.notice { margin-top: 28px; background: var(--smoke); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; max-width: 520px; color: var(--dim); }
.notice strong { color: var(--paper); }
.form-title { font-size: 28px; margin-top: 48px; }
.projects { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.projects li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.projects span { color: var(--dim); }
.signout { margin-top: 40px; }
button.link { background: none; border: 0; color: var(--dim); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.steps-list { margin: 32px 0 0; padding-left: 22px; display: grid; gap: 14px; color: var(--dim); }
.steps-list .now { color: var(--paper); }
.steps-list span { display: block; color: var(--dim); font-size: 15px; }
.dropzone { border: 2px dashed #3a3a3a; border-radius: 16px; padding: 28px; display: grid; gap: 8px; justify-items: start; background: var(--smoke); }
.dropzone .dim, .dim { color: var(--dim); }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; }
.photo-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.tile { min-width: 0; background: var(--smoke); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tile.error { border-color: #6b3434; }
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #000; cursor: crosshair; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .heic { color: var(--dim); display: grid; place-items: center; height: 100%; }
.thumb .focus { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid var(--amber); box-shadow: 0 0 0 2px rgba(0,0,0,.6); }
.thumb .badge { position: absolute; left: 8px; bottom: 8px; font-size: 13px; background: rgba(0,0,0,.7); padding: 3px 8px; border-radius: 6px; }
.tile.uploading .thumb img { opacity: .55; }
.tile-fields { display: grid; gap: 8px; padding: 10px; }
.tile-fields input { width: 100%; min-width: 0; box-sizing: border-box; font: 400 15px var(--font); color: var(--paper); background: var(--night); border: 1px solid #3a3a3a; border-radius: 8px; padding: 8px 10px; }
.tile-fields input:focus { outline: 2px solid var(--amber); border-color: transparent; }
.tile-actions { display: flex; gap: 8px; align-items: center; }
.tile-actions button:not(.link) { font: 700 15px var(--font); background: var(--panel); color: var(--paper); border: 1px solid #3a3a3a; border-radius: 8px; padding: 4px 12px; cursor: pointer; }
.tile-actions button:disabled { opacity: .35; cursor: default; }
.tile-actions .link { margin-left: auto; }
.tile-error { padding: 10px; font-size: 14px; color: #f0b4b4; }
.form textarea { font: 400 17px/1.5 var(--font); color: var(--paper); background: var(--smoke); border: 1.5px solid #3a3a3a; border-radius: 10px; padding: 12px 14px; min-height: 110px; resize: vertical; }
.form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.form .hint { color: var(--dim); font-weight: 400; font-size: 15px; margin-top: -4px; }
.steps-list .done { color: var(--paper); }
.steps-list .done > a strong::after { content: " ✓"; color: var(--amber); }
.steps-list a { color: inherit; }
@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile-fields { padding: 8px; }
  .tile-actions { gap: 6px; }
  .tile-actions button:not(.link) { padding: 4px 8px; }
  .tile-actions .link { font-size: 14px; }
}
.script-wait { display: flex; gap: 18px; align-items: center; margin-top: 28px; padding: 24px; background: var(--smoke); border: 1px solid var(--line); border-radius: 16px; max-width: 640px; }
.script-wait .sun { flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, var(--amber) 0 55%, transparent 56%); animation: pv-rise 2.4s ease-in-out infinite alternate; }
@keyframes pv-rise { from { transform: translateY(6px); opacity: .55; } to { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .script-wait .sun { animation: none; } }
.script-start { margin-top: 28px; display: grid; gap: 12px; max-width: 640px; }
.script { margin-top: 24px; display: grid; gap: 20px; }
.script .notice, .script .confirm { background: var(--smoke); border: 1px solid var(--amber); border-radius: 10px; padding: 12px 14px; }
.script-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.script-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.script-lines li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px; background: var(--smoke); border: 1px solid var(--line); border-radius: 12px; }
.script-lines li.new { border-color: var(--amber); }
.script-thumb { aspect-ratio: 4 / 3; background: #000; border-radius: 8px; overflow: hidden; display: grid; place-items: center; color: var(--dim); }
.script-thumb img { width: 100%; height: 100%; object-fit: contain; }
.script-text { display: grid; gap: 6px; align-content: start; }
.script-text textarea { font: 400 18px/1.5 var(--font); color: var(--paper); background: var(--night); border: 1px solid #3a3a3a; border-radius: 10px; padding: 10px 12px; resize: vertical; min-height: 96px; }
.script-text textarea:focus { outline: 2px solid var(--amber); border-color: transparent; }
.script-text .check { font-size: 14px; color: var(--amber); }
.script-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.script-actions .link { margin-left: auto; }
.btn.small { padding: 6px 14px; font-size: 15px; }
@media (max-width: 640px) {
  .script-head { grid-template-columns: 1fr; }
  .script-lines li { grid-template-columns: 1fr; }
  .script-thumb { aspect-ratio: 16 / 9; }
}
.script .script-head { margin-top: 0; max-width: none; }
.script-head label { display: grid; gap: 6px; }
.script-head input { width: 100%; box-sizing: border-box; }
.script-text textarea { field-sizing: content; }
.script, .script-start, .script-wait { padding-top: 0; }
.photos-step { padding-top: 28px; }
.preview-step { padding-top: 0; margin-top: 24px; display: grid; gap: 16px; max-width: 960px; }
.preview-step .notice { background: var(--smoke); border: 1px solid var(--amber); border-radius: 10px; padding: 12px 14px; }
.preview-video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--paper); border: 1.5px solid #4a4a4a; }
.choice-row { display: grid; gap: 8px; }
.choice-row audio { width: calc(100% - 14px); max-width: 360px; height: 36px; margin-left: 14px; }
.more-music { display: grid; gap: 10px; margin: 4px 0; }
.more-music summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.more-music[open] summary { margin-bottom: 4px; }
.more-music > div { display: grid; gap: 10px; margin-bottom: 8px; }
.more-music .hint { margin: 6px 0 0; }
.form legend { font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.form .choices + .choices { margin-top: 18px; }
.danger { margin-top: 56px; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.danger h2 { font-size: 20px; }
.danger .confirm { background: var(--smoke); border: 1px solid #6b3434; border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; }
.btn.danger-btn { background: #e06c6c; color: var(--night); }
.keep-note { margin-top: 20px; font-size: 15px; }
.notice { background: var(--smoke); border: 1px solid var(--amber); border-radius: 10px; padding: 12px 14px; margin-top: 16px; }
.order-step { padding-top: 0; margin-top: 8px; display: grid; gap: 16px; }
.plans .choice { align-items: flex-start; }
.plans .choice.unavailable { opacity: .55; cursor: default; }
.plan-text { display: grid; gap: 2px; }
.plan-text .price { font-weight: 700; color: var(--amber); }
.plan-problem { color: var(--dim); font-size: 14px; }
.notice.test-mode { border-color: #4a6b9a; }
.delivered { display: grid; gap: 14px; margin-top: 8px; }
.keepsake { min-height: 100vh; max-width: 1040px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) 20px 40px; display: grid; gap: 24px; align-content: start; }
.keepsake-head { text-align: center; display: grid; gap: 8px; }
.keepsake-head h1 { font-size: clamp(34px, 5vw, 56px); }
.keepsake-sub { color: var(--dim); font-size: 20px; }
.keepsake-video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; }
.keepsake-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.keepsake-foot { text-align: center; color: var(--dim); font-size: 14px; margin-top: 16px; }
.keepsake-foot a { color: inherit; }
.keepsake.memorial .btn:not(.ghost) { background: var(--paper); }
.form.plans { border: 0; padding: 0; margin: 0; }
.page-switch { font-size: 15px; }
.table-wrap { overflow-x: auto; margin-top: 24px; }
table.orders { width: 100%; border-collapse: collapse; font-size: 15px; }
table.orders th, table.orders td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.orders th { color: var(--dim); font-weight: 600; }
.price .soon { font-size: 15px; font-weight: 600; color: var(--dim); }
