:root {
	--paper: #f6efe4;
	--paper-raised: #fffaf2;
	--ink: #2a211a;
	--ink-soft: #5b4d40;
	--ink-faint: #8b7d70;
	--accent: #8a4b2a;
	--accent-hover: #733d21;
	--gold: #c49a5a;
	--night: #17120e;
	--night-raised: #231b15;
	--night-text: #f3e9da;
	--night-soft: #c9b9a4;
	--line: #e3d6c3;
	--error: #a3321e;
	--success: #3f6b3a;
	--radius: 16px;
	--display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--body: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 18px;
	line-height: 1.6;
	overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

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

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0 0 16px; }
h1 { font-size: clamp(44px, 7vw, 80px); letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 5vw, 52px); }
h3 { font-size: 26px; }
p { margin: 0 0 16px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
	font-size: 14px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 600;
	margin-bottom: 12px;
}
.lead { font-size: 20px; color: var(--ink-soft); }
.fine { font-size: 15px; color: var(--ink-faint); }
.required { color: var(--ink-faint); font-weight: 400; }

.visually-hidden, .skip-link:not(:focus) {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--paper-raised); padding: 8px 16px; }

/* Buttons */
.button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 12px 28px;
	border: 1px solid var(--accent); border-radius: 999px;
	background: var(--accent); color: #fff8ef;
	font: 600 17px/1.2 var(--body); text-decoration: none; text-align: center;
	cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff8ef; }
.button:disabled { opacity: 0.6; cursor: progress; }
.button-small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.button-ghost { background: transparent; color: var(--night-text); border-color: rgba(243, 233, 218, 0.5); }
.button-ghost:hover { background: rgba(243, 233, 218, 0.12); border-color: var(--night-text); }
.button-block { width: 100%; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 20;
	background: rgba(23, 18, 14, 0.92); backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(243, 233, 218, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark { font-family: var(--display); font-size: 24px; color: var(--night-text); text-decoration: none; margin: 0; }
.wordmark:hover, .site-header a.wordmark { color: var(--night-text); }
.site-nav { display: none; gap: 28px; }
.site-nav a { color: var(--night-soft); text-decoration: none; font-size: 16px; }
.site-nav a:hover { color: var(--night-text); }
@media (min-width: 880px) { .site-nav { display: flex; } }

/* Dark, film-grain sections */
.grain { position: relative; background: var(--night); color: var(--night-text); isolation: isolate; }
.grain::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.08;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain .lead, .grain .fine { color: var(--night-soft); }
.grain .eyebrow { color: var(--gold); }
.grain a:not(.button) { color: var(--gold); }

/* Hero */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(ellipse at 75% 40%, rgba(196, 154, 90, 0.22), transparent 60%);
}
.hero-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.1fr 1fr; } .hero { padding: 96px 0 112px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 480px) { .hero-actions .button { width: 100%; } }

.hero-frame {
	margin: 0; position: relative; aspect-ratio: 16 / 10;
	border-radius: var(--radius); overflow: hidden;
	background: linear-gradient(160deg, #3a2c20, #1d1611);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(243, 233, 218, 0.08);
}
.hero-frame video { width: 100%; height: 100%; object-fit: cover; }
.frame-placeholder { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(3, 1fr); gap: 10px; padding: 18px; }
.strip {
	display: flex; flex-direction: column; justify-content: center; padding: 0 24px;
	border-radius: 10px; background: rgba(243, 233, 218, 0.05);
	border: 1px solid rgba(196, 154, 90, 0.25);
	animation: breathe 9s ease-in-out infinite;
}
.strip:nth-child(2) { animation-delay: 3s; }
.strip:nth-child(3) { animation-delay: 6s; }
.chapter { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.chapter-title { font-family: var(--display); font-size: clamp(22px, 3vw, 32px); font-style: italic; color: var(--night-text); }
@keyframes breathe { 0%, 100% { background: rgba(243, 233, 218, 0.04); } 50% { background: rgba(196, 154, 90, 0.16); } }

/* Sections */
section { padding: 88px 0; }
.origin { background: var(--paper-raised); }
.origin p:not(.eyebrow) { font-size: 20px; color: var(--ink-soft); }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 24px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps p { color: var(--ink-soft); margin: 0; }
.step-number {
	display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
	border-radius: 50%; background: var(--accent); color: #fff8ef; font-weight: 600;
}

/* Free photo */
.free-inner { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .free-inner { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checks li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }

/* Forms */
.card { background: var(--paper-raised); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
@media (min-width: 720px) { .card { padding: 32px; } }
.form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
input[type="text"], input[type="email"], input[type="month"], select, textarea {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1px solid #cdbda7; border-radius: 10px; background: #fff;
	font: 17px/1.4 var(--body); color: var(--ink);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138, 75, 42, 0.18); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }

.dropzone {
	position: relative; display: grid; place-items: center; min-height: 200px; padding: 20px;
	border: 2px dashed #cdbda7; border-radius: var(--radius); background: #fbf5eb;
	text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover, .dropzone.is-dragging { border-color: var(--accent); background: #f8ecdb; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-preview { max-height: 260px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.dropzone.has-photo .dropzone-text { display: none; }
.dropzone-text { color: var(--ink-soft); }

.form-message { margin: 0; min-height: 0; font-size: 16px; }
.form-message:empty { display: none; }
.form-message.is-error { color: var(--error); }
.form-message.is-success { color: var(--success); font-weight: 600; }

/* Features */
.features { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { border-top: 2px solid var(--gold); padding-top: 20px; }
.feature p { color: var(--ink-soft); margin: 0; }
.promise { margin-top: 48px; padding: 24px; border-radius: var(--radius); background: var(--paper-raised); border: 1px solid var(--line); font-family: var(--display); font-size: 24px; font-style: italic; line-height: 1.4; }

/* Pricing */
.pricing { background: var(--paper-raised); }
.founding { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #f3e2c8; color: var(--ink); font-size: 16px; }
.plans { display: grid; gap: 24px; margin: 32px 0 24px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan-featured { background: var(--night); color: var(--night-text); border-color: var(--night); }
.plan-tag { position: absolute; top: -14px; left: 28px; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--night); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.price { font-family: var(--display); font-size: 48px; line-height: 1; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 16px; }
.plan-featured li { border-color: rgba(243, 233, 218, 0.14); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--night); color: var(--night-soft); padding: 48px 0; }
.footer-inner { display: grid; gap: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin: 8px 0; }
.site-footer a { color: var(--night-text); }
.site-footer .fine { color: var(--night-soft); }

/* Photo result page and simple pages */
.page { padding: 64px 0 88px; min-height: 70vh; }
.result-grid { display: grid; gap: 24px; margin: 32px 0; }
@media (min-width: 800px) { .result-grid { grid-template-columns: 1fr 1fr; } }
.result-grid figure { margin: 0; }
.result-grid img, .result-video video { border-radius: var(--radius); width: 100%; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.result-grid figcaption { margin-top: 10px; font-size: 15px; color: var(--night-soft); letter-spacing: 0.1em; text-transform: uppercase; }
.result-video { max-width: 820px; margin: 32px auto; }
.progress { display: flex; align-items: center; gap: 16px; margin: 32px 0; font-size: 20px; }
.spinner { width: 28px; height: 28px; border: 3px solid rgba(243, 233, 218, 0.2); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal h2 { font-size: 30px; margin-top: 40px; }
.legal p, .legal li { color: var(--ink-soft); }

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