/* TALISMAN — THE EDIT. Homepage only. */
:root {
  --ground: #050505;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-2: #a3a3a3;
  --text-3: #8a8a8a;
  --red: #ff2d20;        /* words, ticks, accents on black (5.6:1) */
  --red-fill: #d7261b;   /* button fills, white text (5.0:1) */
  --display: "Anton", "Arial Narrow", sans-serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--text);
  font: 500 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.red { color: var(--red); }

/* Film grain over everything, like the edits it borrows from. */
body::after {
  content: "";
  position: fixed;
  inset: -100%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  17% { transform: translate(-3%, 2%); }
  33% { transform: translate(2%, -4%); }
  50% { transform: translate(-1%, 3%); }
  67% { transform: translate(4%, 1%); }
  83% { transform: translate(-2%, -2%); }
  100% { transform: translate(1%, 4%); }
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  background: var(--red-fill); color: #fff;
  font: 800 15px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 10px 30px -12px rgba(215, 38, 27, 0.7);
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}
.btn:hover { background: #e52b1f; box-shadow: 0 14px 36px -12px rgba(229, 43, 31, 0.8); }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 13px; border-radius: 12px; box-shadow: none; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 10; margin-bottom: -80px;
  background: rgba(5,5,5,0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
}
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.mark span { font: 400 22px/1 var(--display); letter-spacing: 0.08em; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 96px var(--gutter) 64px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; filter: contrast(1.15); transform: scale(1.06); animation: push 24s var(--ease) both; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 20% 50%, rgba(5,5,5,0.55) 0%, transparent 45%, rgba(5,5,5,0.7) 85%), linear-gradient(to bottom, rgba(5,5,5,0.4), transparent 30%, transparent 60%, var(--ground)); }
@keyframes push { from { transform: scale(1.0); } to { transform: scale(1.08); } }

.hero-in { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 {
  font: 400 clamp(3.4rem, 8.4vw, 6rem)/0.92 var(--display);
  text-transform: uppercase; letter-spacing: 0.005em;
  text-wrap: balance;
}
.lede { margin-top: 28px; max-width: 34ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); }
.cta { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.fine { font-size: 13px; color: var(--text-3); letter-spacing: 0.02em; }

/* ---------- The edit card (signature moment) ---------- */
.edit {
  position: relative; justify-self: center;
  width: min(100%, 360px); aspect-ratio: 9 / 16;
  border-radius: 28px; overflow: hidden;
  background: #000;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9), 0 0 0 1px var(--line);
}
.edit-frames img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: contrast(1.12) brightness(0.92);
}
.edit-frames img.on { opacity: 1; animation: push 6s linear both; }
.edit::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 22%, transparent 45%, rgba(0,0,0,0.88) 82%); }
.edit-ticks { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; gap: 4px; }
.edit-ticks i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.28); overflow: hidden; position: relative; }
.edit-ticks i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: left; }
.edit-head { position: absolute; z-index: 2; top: 28px; left: 16px; right: 16px; display: flex; justify-content: space-between;
  font: 700 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.edit-cap {
  position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 72px;
  min-height: 3.6em;
  font: 800 26px/1.18 var(--sans); text-align: center; letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  text-wrap: balance;
}
.edit-cap .w { display: inline-block; color: rgba(255,255,255,0.22); transition: color 0.12s linear; }
.edit-cap .w.said { color: #fff; }
.edit-cap .w.now { animation: pop 0.18s var(--ease); }
.edit-cap .w.em.said { color: var(--red); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.1); } 100% { transform: scale(1); } }
.edit-toggle {
  position: absolute; z-index: 3; right: 14px; bottom: 16px;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.45); color: #fff; display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.edit-toggle .i-play { display: none; }
.edit-toggle[aria-pressed="true"] .i-play { display: block; }
.edit-toggle[aria-pressed="true"] .i-pause { display: none; }

/* ---------- Sections ---------- */
main > section:not(.hero) { padding: clamp(80px, 12vw, 160px) var(--gutter); }
.h2 {
  font: 400 clamp(2.6rem, 6vw, 4.6rem)/0.95 var(--display); text-transform: uppercase;
  max-width: 1180px; margin: 0 auto clamp(36px, 5vw, 64px);
  text-wrap: balance;
}

.thesis { max-width: 1180px; margin: 0 auto; border-top: 1px solid var(--line); }
.thesis .big { font: 400 clamp(2.8rem, 7.4vw, 6rem)/0.95 var(--display); text-transform: uppercase; color: var(--text-3); text-wrap: balance; }
.thesis .red-line { color: var(--text); margin-top: 0.15em; }
.thesis .sub { margin-top: 40px; max-width: 52ch; color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); }

.panels { list-style: none; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.panel { position: relative; aspect-ratio: 3 / 4.2; border-radius: 22px; overflow: hidden; background: var(--surface); isolation: isolate; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) brightness(0.8); transition: transform 1.2s var(--ease); z-index: -1; }
.panel:hover img { transform: scale(1.05); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.92) 85%); }
.panel-in { position: absolute; left: 22px; right: 22px; bottom: 24px; }
.panel h3 { font: 400 clamp(1.8rem, 2.8vw, 2.4rem)/0.98 var(--display); text-transform: uppercase; }
.panel p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: #d2d2d2; }

.area-list { list-style: none; max-width: 1180px; margin: 0 auto; border-top: 1px solid var(--line); }
.area-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(16px, 2.4vw, 26px) 0; border-bottom: 1px solid var(--line); }
.area { font: 400 clamp(2rem, 5vw, 3.6rem)/1 var(--display); text-transform: uppercase; transition: color 0.3s; }
.area-list li:hover .area { color: var(--red); }
.eg { font: 700 clamp(15px, 1.4vw, 18px)/1.3 var(--sans); color: var(--text-2); }
.areas .note { max-width: 1180px; margin: 32px auto 0; color: var(--text-2); }
.areas .note { max-width: min(1180px, 60ch); margin-left: max(0px, calc((100% - 1180px) / 2)); }

.lines { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(40px, 7vw, 120px); align-items: center; max-width: 1180px; margin: 0 auto; }
.lines .h2 { margin: 0 0 24px; }
.lines-copy > p { color: var(--text-2); max-width: 46ch; }
.aff { list-style: none; margin: 36px 0 18px; }
.aff li { font: 800 clamp(22px, 2.6vw, 30px)/1.2 var(--sans); padding: 14px 0; border-top: 1px solid var(--line); letter-spacing: -0.01em; }
.aff b { color: var(--red); font-weight: 800; }
.lock {
  justify-self: center; width: min(100%, 320px); aspect-ratio: 9 / 17; border-radius: 40px; position: relative; overflow: hidden;
  background: url("/img/edit02.webp") center / cover;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9), 0 0 0 1px var(--line);
  padding: 64px 18px 0; text-align: center;
}
.lock::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.lock > * { position: relative; }
.lock-time { font: 400 78px/1 var(--display); letter-spacing: 0.02em; }
.lock-date { font: 600 15px/1 var(--sans); color: rgba(255,255,255,0.85); margin-top: 8px; }
.widget { margin-top: 28px; text-align: left; padding: 14px 16px; border-radius: 22px; background: rgba(20,20,20,0.62); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.12); }
.w-label { display: block; font: 700 10px/1 var(--sans); letter-spacing: 0.18em; color: rgba(255,255,255,0.7); }
.w-line { display: block; margin-top: 8px; font: 800 17px/1.25 var(--sans); }
.w-line b { color: var(--red); }

.facts { list-style: none; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.facts li { padding: 24px 0; border-top: 1px solid var(--line); color: var(--text-2); max-width: 54ch; }
.facts b { display: block; color: var(--text); font-weight: 800; font-size: 19px; margin-bottom: 6px; }

.plans { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.plan-best { border-color: var(--red); background: linear-gradient(to bottom, rgba(255,45,32,0.12), var(--surface) 70%); }
.p-name { font: 800 13px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.plan-best .p-name { color: var(--red); }
.p-amt { font: 400 clamp(2.6rem, 4vw, 3.4rem)/1 var(--display); }
.p-amt small { font: 600 15px/1 var(--sans); color: var(--text-2); margin-left: 6px; }
.p-note { font-size: 14px; color: var(--text); }
.price-cta { max-width: 1180px; margin: 28px auto 0; }
.price .fine { max-width: 1180px; margin: 24px auto 0; line-height: 1.6; }
.price .fine { max-width: min(1180px, 80ch); margin-left: max(0px, calc((100% - 1180px) / 2)); }

.faq details { max-width: 1180px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font: 800 clamp(18px, 2vw, 22px)/1.3 var(--sans); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg) translateY(-4px); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq details p { padding: 0 0 26px; max-width: 64ch; color: var(--text-2); }

.close { position: relative; min-height: 88svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 36px; isolation: isolate; overflow: hidden; }
.close-bg { position: absolute; inset: 0; z-index: -1; }
.close-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0.5; filter: contrast(1.15); }
.close-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ground), transparent 30%, transparent 60%, var(--ground)); }
.close h2 { font: 400 clamp(3.4rem, 10vw, 7.2rem)/0.92 var(--display); text-transform: uppercase; }

.foot { padding: 48px var(--gutter) 56px; border-top: 1px solid var(--line); text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font: 700 13px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot p { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 92px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .edit { order: -1; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; border-radius: 22px; justify-self: stretch; }
  .edit-cap { bottom: 64px; }
  .hero-in { gap: 28px; }
  .hero { min-height: auto; }
  .panels { grid-template-columns: 1fr; }
  .panel { aspect-ratio: 4 / 3.4; }
  .lines { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .mark span { font-size: 19px; }
  .hero h1 { font-size: 2.9rem; }
  .lede { font-size: 16px; margin-top: 16px; }
  .lede-more { display: none; }
  .cta { margin-top: 22px; }
  .btn:not(.btn-sm) { width: 100%; }
  .cta { align-items: stretch; }
  .edit-cap { font-size: 23px; left: 18px; right: 18px; }
  .area-list li { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .hero-bg img, .edit-frames img.on { animation: none; transform: none; }
  .edit-cap .w.now { animation: none; }
  .panel img, .btn { transition: none; }
}

/* Word-by-word reveal for the two lines that carry the thesis. Text is visible by default. */
[data-reveal].armed .w { color: rgba(255,255,255,0.18); transition: color 0.14s linear; }
[data-reveal].armed .w.said { color: inherit; }
[data-reveal] .red .w.said, [data-reveal].armed .red .w.said { color: var(--red); }
