/* =========================================================
   Duke — In Loving Memory  ·  styles
   A warm, reverent, cinematic memorial + awareness site.
   ========================================================= */

:root {
  /* palette — drawn from Duke himself: brindle caramel, forest harness, cream */
  --ink:        #16130f;
  --ink-soft:   #2a241d;
  --cream:      #f7f2e8;
  --paper:      #fbf8f1;
  --paper-2:    #f1ead9;
  --brindle:    #b9762e;
  --brindle-deep:#8a521c;
  --gold:       #d8a24a;
  --forest:     #51604a;
  --forest-deep:#3a4636;
  --line:       rgba(22,19,15,.12);
  --muted:      #6f6557;
  --danger:     #b23a2e;
  --danger-bg:  #fbeae6;

  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 10px 30px -12px rgba(22,19,15,.30);
  --shadow-lift: 0 28px 60px -24px rgba(22,19,15,.55);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* stop iOS inflating text in landscape */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;            /* safety net against any horizontal spill */
  -webkit-tap-highlight-color: transparent; /* no grey flash on tap */
}
img, svg, video { max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; }
p { margin: 0 0 1rem; }
a { color: var(--brindle-deep); }

.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--brindle-deep);
  margin: 0 0 1rem;
}
.center { text-align: center; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem clamp(1.2rem, 4vw, 2.4rem);
  background: rgba(251,248,241,.82);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav__brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .01em; display: flex; align-items: center; gap: .55rem; }
.nav__brand .paw { color: var(--brindle); font-size: 1rem; }
.nav__links { display: flex; gap: clamp(.8rem, 2.5vw, 1.8rem); }
.nav__links a {
  text-decoration: none; color: var(--ink-soft); font-size: .9rem; font-weight: 500;
  padding: .3rem 0; position: relative; white-space: nowrap;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brindle); transition: width .35s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
@media (max-width: 680px){
  .nav { padding: .7rem .9rem; }
  .nav__brand { font-size: 1.1rem; flex: 0 0 auto; }
  .nav__links { gap: .8rem; }
  .nav__links a { font-size: .76rem; }
  /* keep three essentials on one line; the rest are reachable by scrolling */
  .nav__links a:nth-child(2),  /* His Story */
  .nav__links a:nth-child(4),  /* What To Do */
  .nav__links a:nth-child(6) { /* Remember */ display: none; }
}
@media (max-width: 380px){
  .nav__links a:nth-child(5) { display: none; } /* drop Protect on the tiniest screens */
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(216,162,74,.18), transparent 70%),
    radial-gradient(50% 60% at 80% 30%, rgba(81,96,74,.10), transparent 70%);
  pointer-events: none;
}
.hero__name {
  font-size: clamp(4rem, 18vw, 11rem);
  letter-spacing: -.02em;
  line-height: .9;
  background: linear-gradient(180deg, var(--ink) 0%, var(--brindle-deep) 140%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__dates {
  margin-top: 1.1rem; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem); color: var(--muted);
}
.hero__dates .star { color: var(--brindle); font-style: normal; }
.hero__lead {
  max-width: 40rem; margin: 1.6rem auto 0; font-size: 1.12rem; color: var(--ink-soft);
}
.hero__scroll {
  margin-top: 2.4rem; display: inline-flex; flex-direction: column; align-items: center;
  gap: .4rem; color: var(--muted); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
}
.hero__scroll .chev { width: 18px; height: 18px; border-right: 2px solid var(--brindle); border-bottom: 2px solid var(--brindle); transform: rotate(45deg); animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: rotate(45deg) translate(0,0);} 50%{ transform: rotate(45deg) translate(3px,3px);} }

/* =========================================================
   THE GALLERY — the heart of the site
   ========================================================= */
.gallery { padding: clamp(2rem,5vw,3.5rem) 0 clamp(3rem,7vw,5rem); }
.gallery__head { text-align: center; margin-bottom: 2rem; }
.gallery__title { font-size: clamp(2rem, 5vw, 3rem); }
.gallery__sub { color: var(--muted); margin-top: .5rem; }

.reel {
  position: relative;
  width: min(100% - 2rem, 1080px);
  margin-inline: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0c0a08;
  box-shadow: var(--shadow-lift);
  cursor: grab;
  isolation: isolate;
  touch-action: pan-y;
}
.reel.is-dragging { cursor: grabbing; }
.reel:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 720px){ .reel { aspect-ratio: 4 / 5; } }

/* slides */
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease);
  z-index: 1;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
/* ambient blurred backdrop fills letterbox elegantly (Apple-TV style) */
.slide__bg {
  position: absolute; inset: -8%;
  background-size: cover; background-position: center;
  filter: blur(34px) brightness(.5) saturate(1.15);
  transform: scale(1.1);
}
.slide__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  z-index: 1;
  will-change: transform;
}
/* ken burns only on the active slide, only when motion allowed */
.slide.is-active .slide__img { animation: kenburns 7s var(--ease-out) both; }
@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.09); }
}
.slide::after { /* whisper-soft edge grounding only — no captions to cover */
  content: ""; position: absolute; inset: auto 0 0 0; height: 22%;
  background: linear-gradient(to top, rgba(8,6,4,.35), transparent);
  z-index: 2; pointer-events: none;
}

/* caption */
.reel__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 1.4rem clamp(1.2rem, 4vw, 2.4rem) 1.5rem;
  color: #fdf8ee; pointer-events: none;
}
.reel__caption .cap-index { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.reel__caption .cap-text {
  font-family: var(--serif); font-size: clamp(1.05rem, 2.6vw, 1.5rem); font-style: italic;
  margin-top: .25rem; max-width: 38rem;
  opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease) .15s, transform .6s var(--ease) .15s;
}
.reel__caption.show .cap-text { opacity: 1; transform: none; }

/* arrows */
.reel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 7;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(16,12,8,.4); backdrop-filter: blur(6px);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .25s var(--ease), transform .25s var(--ease), opacity .25s;
  opacity: 0;
}
.reel:hover .reel__nav, .reel:focus-within .reel__nav { opacity: 1; }
.reel__nav:hover { background: var(--brindle); transform: translateY(-50%) scale(1.08); }
.reel__nav--prev { left: 14px; }
.reel__nav--next { right: 14px; }
.reel__nav svg { width: 20px; height: 20px; }
@media (max-width: 720px){ .reel__nav { opacity: 1; width: 42px; height: 42px; } }

/* HUD: play/pause + progress ring + counter */
.reel__hud {
  position: absolute; top: 14px; right: 14px; z-index: 7;
  display: flex; align-items: center; gap: .6rem;
}
.reel__count {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  color: #fff; background: rgba(16,12,8,.45); backdrop-filter: blur(6px);
  padding: .3rem .6rem; border-radius: 999px;
}
.playbtn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: rgba(16,12,8,.45); backdrop-filter: blur(6px);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .25s var(--ease);
}
.playbtn:hover { background: var(--brindle); }
.playbtn svg { width: 18px; height: 18px; }
.playbtn .ring {
  position: absolute; inset: -3px; transform: rotate(-90deg); pointer-events: none;
}
.playbtn .ring circle { fill: none; stroke-width: 2.5; }
.playbtn .ring .track { stroke: rgba(255,255,255,.22); }
.playbtn .ring .bar { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .12s linear; }

/* filmstrip */
.filmstrip {
  width: min(100% - 2rem, 1080px); margin: 1.1rem auto 0;
  display: flex; gap: .6rem; overflow-x: auto; padding: .4rem; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--brindle) transparent;
}
.filmstrip::-webkit-scrollbar { height: 7px; }
.filmstrip::-webkit-scrollbar-thumb { background: var(--brindle); border-radius: 999px; }
.thumb {
  flex: 0 0 auto; width: 92px; height: 70px; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: #0c0a08;
  opacity: .55; transition: opacity .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { opacity: .9; transform: translateY(-2px); }
.thumb.is-active { opacity: 1; border-color: var(--brindle); }
.gallery__hint { text-align: center; color: var(--muted); font-size: .82rem; margin-top: .9rem; }
.gallery__hint kbd {
  font-family: var(--sans); font-size: .72rem; background: var(--paper-2);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .05rem .35rem;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(8,6,4,.94); backdrop-filter: blur(4px);
  place-items: center; padding: 4vmin;
}
.lightbox.open { display: grid; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lift); object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08);
  color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: background .25s;
}
.lightbox__close { top: 4vmin; right: 4vmin; width: 48px; height: 48px; font-size: 1.4rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }
.lightbox__nav--prev { left: 3vmin; } .lightbox__nav--next { right: 3vmin; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--brindle); }
.lightbox__cap { position: absolute; bottom: 3vmin; left: 0; right: 0; text-align: center; color: #f3ead9; font-family: var(--serif); font-style: italic; }

/* =========================================================
   CONTENT SECTIONS
   ========================================================= */
.section, .gallery, [id] { scroll-margin-top: 76px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h2 { color: var(--cream); }
.section--ink .eyebrow { color: var(--gold); }

.story { max-width: 46rem; margin-inline: auto; }
.story h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 1.2rem; }
.story p { font-size: 1.12rem; color: var(--ink-soft); }
.story .pull {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem,3vw,1.8rem);
  color: var(--brindle-deep); border-left: 3px solid var(--brindle); padding-left: 1.2rem; margin: 1.8rem 0;
}
.placeholder {
  border: 1px dashed var(--brindle); background: rgba(185,118,46,.06);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; color: var(--muted); font-size: .95rem;
}

/* warning */
.warnhead { text-align: center; max-width: 48rem; margin: 0 auto clamp(2rem,4vw,3rem); }
.warnhead h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.bignum {
  font-family: var(--serif); font-size: clamp(3.5rem, 10vw, 6rem); line-height: 1;
  color: var(--gold); display: block;
}
.timeline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem;
  max-width: 980px; margin: 0 auto;
}
.tl-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.3rem 1.2rem;
}
.tl-card .t { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); margin-bottom: .35rem; }
.tl-card p { font-size: .96rem; color: #e7ddca; margin: 0; }
.tl-card--duke { border-color: rgba(216,162,74,.55); background: rgba(216,162,74,.08); }

/* conviction callout — the family's case, stated plainly */
.conviction {
  max-width: 860px; margin: 2.8rem auto 0; text-align: center;
  border-left: 3px solid var(--gold); border-right: 3px solid var(--gold);
  padding: 1.6rem 1.8rem;
}
.conviction p.lead {
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
  font-weight: 600; color: var(--gold); margin: 0 0 .8rem;
}
.conviction h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 3vw, 1.7rem); color: #fff; line-height: 1.4;
}

.symptoms {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1rem;
  max-width: 980px; margin: 2.2rem auto 0;
}
.sympt {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--danger-bg); border: 1px solid rgba(178,58,46,.25);
  border-radius: var(--radius); padding: 1rem 1.1rem;
}
.sympt .dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--danger); margin-top: .45rem; }
.sympt strong { display: block; color: var(--danger); }
.sympt span { font-size: .92rem; color: var(--ink-soft); }

/* demand list — clean cards on the dark section */
.demand { max-width: 900px; margin: 2.4rem auto 0; padding: 0; display: grid; gap: .7rem; }
.demand li {
  list-style: none; display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.35rem;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.demand li:hover { background: rgba(255,255,255,.075); border-color: rgba(216,162,74,.40); }
.demand li .check {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--forest);
  color: #fff; display: grid; place-items: center; font-size: .8rem; margin-top: .1rem;
  box-shadow: 0 0 0 4px rgba(81,96,74,.18);
}
.demand li > span:last-child { color: #d8cdb8; font-size: .97rem; line-height: 1.55; }
.demand li b { display: block; color: #fff; font-weight: 600; font-size: 1.02rem; margin-bottom: .18rem; letter-spacing: .01em; }

/* the one-thing takeaway band */
.takeaway {
  max-width: 760px; margin: 3.2rem auto 0; text-align: center;
  border: 1px solid rgba(216,162,74,.45); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(216,162,74,.10), rgba(216,162,74,.03));
  padding: 2rem 1.8rem;
}
.takeaway .lead {
  text-transform: uppercase; letter-spacing: .25em; font-size: .72rem;
  font-weight: 600; color: var(--gold); margin: 0 0 .6rem;
}
.takeaway h3 { font-size: clamp(1.3rem, 3.4vw, 1.9rem); color: #fff; line-height: 1.25; }

/* steps / decon */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.1rem; margin-top: 1rem; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-soft); }
.step .n { font-family: var(--serif); font-size: 1.6rem; color: var(--brindle); }
.step h3 { font-size: 1.15rem; margin: .3rem 0 .4rem; }
.step p { font-size: .94rem; color: var(--muted); margin: 0; }

.recipe {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: stretch;
  margin-top: 2rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
}
@media (max-width: 760px){ .recipe { grid-template-columns: 1fr; } }
.recipe__body { padding: 1.6rem 1.8rem; }
.recipe__body h3 { font-size: 1.4rem; margin-bottom: .8rem; }
.recipe ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.recipe li { margin: .3rem 0; }
.recipe__warn { background: var(--forest-deep); color: #eef0e8; padding: 1.6rem 1.8rem; font-size: .95rem; }
.recipe__warn h4 { font-family: var(--serif); color: #fff; margin: 0 0 .6rem; font-size: 1.1rem; }
.recipe__warn .no { color: #ffd9d2; }

/* memory */
.memory { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; max-width: 980px; margin-inline: auto; }
@media (max-width: 760px){ .memory { grid-template-columns: 1fr; text-align: center; } }
.memory__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.memory__photo img { width: 100%; display: block; }
.memory h2 { font-size: clamp(2rem,5vw,2.8rem); margin-bottom: 1rem; }
.memory p { color: var(--ink-soft); }

/* footer */
.foot { background: var(--ink); color: #c9bdaa; padding: clamp(2.5rem,5vw,3.5rem) 0; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.foot a { color: var(--gold); }
.foot h4 { font-family: var(--serif); color: var(--cream); margin: 0 0 .6rem; font-weight: 500; }
.foot small { color: #8d8270; font-size: .8rem; line-height: 1.6; display: block; }
.sources { font-size: .82rem; }
.sources li { margin: .25rem 0; }

/* ---------- "Why the system failed him" ---------- */
.why { max-width: 780px; }
.why h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
.why__lead { max-width: 46rem; margin: 1rem auto 0; color: var(--ink-soft); font-size: 1.12rem; }
.why__block {
  margin: 2.6rem 0 0; padding: 1.8rem clamp(1.3rem, 4vw, 2.2rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.why__block h3 {
  font-size: clamp(1.35rem, 3.4vw, 1.75rem); margin-bottom: .9rem; color: var(--ink);
  display: flex; align-items: baseline; gap: .6rem;
}
.why__n { font-family: var(--serif); color: var(--brindle); font-size: 1.4em; line-height: 1; }
.why__block p { font-size: 1.04rem; color: var(--ink-soft); }
.why__block a { color: var(--brindle-deep); text-underline-offset: 2px; }
.why__pull {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  color: var(--brindle-deep); border-left: 3px solid var(--brindle);
  padding-left: 1.1rem; margin: 1.4rem 0 0;
}
.why__cta {
  margin: 2.6rem auto 0; max-width: 42rem; padding: 1.6rem 1.4rem;
  border: 1px solid rgba(185,118,46,.35); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(185,118,46,.07), transparent);
}
.why__cta p { font-size: 1.1rem; color: var(--ink); margin: 0; }

/* ---------- "The workup he deserved" checklist ---------- */
.workup { max-width: 860px; margin: 2.4rem auto 0; padding: 0; list-style: none; display: grid; gap: .7rem; counter-reset: none; }
.workup li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.35rem;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius); transition: background .25s var(--ease), border-color .25s var(--ease);
}
.workup li:hover { background: rgba(255,255,255,.075); border-color: rgba(216,162,74,.4); }
.workup__n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #231a0c; font-weight: 700; font-size: .95rem;
  display: grid; place-items: center; margin-top: .1rem;
}
.workup li div { color: #d8cdb8; font-size: .98rem; line-height: 1.55; }
.workup li b { color: #fff; }
.workup li em { color: #efe6d3; font-style: italic; }
.workup__star { color: var(--gold); font-weight: 600; }

.workup__key {
  max-width: 760px; margin: 2.4rem auto 0; text-align: center;
  border: 1px solid rgba(216,162,74,.5); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(216,162,74,.12), rgba(216,162,74,.03));
  padding: 1.8rem 1.6rem;
}
.workup__key .lead { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 600; color: var(--gold); margin: 0 0 .6rem; }
.workup__key h3 { font-family: var(--serif); font-size: clamp(1.3rem, 3.4vw, 1.9rem); color: #fff; margin: 0 0 .7rem; }
.workup__key p { color: #e7ddca; margin: 0; }

.workup__close { max-width: 44rem; margin: 2.4rem auto 0; color: #d9cfbc; font-size: 1.08rem; line-height: 1.6; }
.workup__close strong { color: #fff; }
.workup__forduke { display: inline-block; margin-top: .6rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold); }
.workup__src { max-width: 44rem; margin: 1.4rem auto 0; font-size: .8rem; color: #9a8f7c; }
.workup__src a { color: var(--gold); }

/* ---------- $DUKE coin section (auto-activates at launch) ---------- */
.nav__coin { color: var(--brindle-deep) !important; font-weight: 700 !important; }
.coin { background: var(--ink); color: var(--cream); }
.coin .eyebrow { color: var(--gold); }
.coin__title { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.coin__tagline { max-width: 42rem; margin: .8rem auto 0; color: #d9cfbc; }

.coin__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; max-width: 720px; margin: 2rem auto 0; }
.coin-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1rem .8rem; text-align: center; }
.coin-stat__k { display: block; font-size: .70rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: .35rem; }
.coin-stat__v { font-family: var(--serif); font-size: clamp(1.1rem, 3.5vw, 1.5rem); color: #fff; }
.coin-stat__v.up { color: #7fd28c; } .coin-stat__v.down { color: #e8897c; }
@media (max-width: 560px) { .coin__stats { grid-template-columns: repeat(2, 1fr); } }

.coin__ca { display: flex; align-items: center; gap: .6rem; justify-content: center; flex-wrap: wrap; margin: 1.6rem auto 0; }
.coin__ca-label { font-size: .70rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.coin__ca code { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: .4rem .6rem; font-size: .8rem; color: #e7ddca; word-break: break-all; }
.coin__copy { background: var(--brindle); color: #fff; border: none; border-radius: 8px; padding: .45rem .85rem; font-weight: 600; cursor: pointer; font-size: .8rem; }
.coin__copy:hover { background: var(--brindle-deep); }

.coin__cta { margin: 1.6rem 0 0; }
.coin__buy { display: inline-block; background: linear-gradient(180deg, var(--gold), var(--brindle)); color: #231a0c; font-weight: 700; text-decoration: none; padding: .85rem 2.2rem; border-radius: 999px; font-size: 1.05rem; box-shadow: var(--shadow-soft); transition: transform .2s var(--ease); }
.coin__buy:hover { transform: translateY(-2px); }

.coin__state { color: #d9cfbc; margin-top: 1.4rem; font-style: italic; }
.coin__chart { max-width: 900px; margin: 1.8rem auto 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); background: #0c0a08; }
.coin__chart:empty { display: none; }
.coin__chart iframe { width: 100%; height: 520px; border: 0; display: block; }
@media (max-width: 560px) { .coin__chart iframe { height: 420px; } }

.coin__disc { max-width: 40rem; margin: 1.6rem auto 0; font-size: .8rem; color: #9a8f7c; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.is-active .slide__img { animation: none; }
  .hero__scroll .chev { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- mobile polish ---------- */
@media (max-width: 560px) {
  .wrap { width: min(100% - 2rem, var(--maxw)); }
  .section { padding: clamp(2.4rem, 8vw, 3.4rem) 0; }
  .hero { padding-top: clamp(2.6rem, 12vw, 4rem); }
  .hero__lead { font-size: 1.05rem; }
  .story p { font-size: 1.05rem; }
  .story .pull { padding-left: 1rem; }
  .bignum { margin-top: .4rem; }

  /* comfortable 44px+ tap targets */
  .reel__nav { width: 46px; height: 46px; opacity: 1; }
  .playbtn { width: 46px; height: 46px; }
  .thumb { width: 84px; height: 64px; }
  .nav__links a { padding: .5rem 0; }
  .demand li { padding: 1rem 1.1rem; }

  /* force single column everywhere (belt-and-suspenders with auto-fit) */
  .timeline, .symptoms, .steps { grid-template-columns: 1fr; }
  .recipe { grid-template-columns: 1fr; }
  .memory { grid-template-columns: 1fr; text-align: center; }

  /* keep the reel from eating the whole screen on tall phones */
  .reel { aspect-ratio: 3 / 4; }
}

/* =========================================================
   AESTHETIC LAYER — warm cinematic film
   ========================================================= */

/* film grain — whisper-soft, over everything except the lightbox */
.fx-grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .05; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  animation: grain-shift 5s steps(4) infinite;
}
@keyframes grain-shift {
  0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)}
  50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-2%)} 100%{transform:translate(0,0)}
}

/* warm light-leak — soft amber/gold glow drifting at the edges */
.fx-leak {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  mix-blend-mode: soft-light; opacity: .8;
  background:
    radial-gradient(40% 55% at 12% 8%, rgba(216,162,74,.55), transparent 70%),
    radial-gradient(45% 55% at 90% 92%, rgba(185,118,46,.45), transparent 72%),
    radial-gradient(35% 40% at 85% 12%, rgba(247,242,232,.30), transparent 70%);
  animation: leak-breathe 14s ease-in-out infinite alternate;
}
@keyframes leak-breathe { from{opacity:.55; transform:scale(1)} to{opacity:.9; transform:scale(1.06)} }

/* hero dust-motes canvas */
.fx-motes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .7; }
.hero .wrap { position: relative; z-index: 1; }

/* ---- gallery: cinematic film-frame ---- */
.reel {
  box-shadow:
    var(--shadow-lift),
    inset 0 0 0 1px rgba(216,162,74,.28),
    inset 0 0 90px rgba(0,0,0,.55);
}
.reel::after { /* soft inner vignette + top sheen, above slides, below controls */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(6,4,3,.45) 100%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 25%);
}
.reel__stage {
  position: absolute; inset: 0;
  transform: perspective(1500px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg));
  transition: transform .5s var(--ease-out);
  transform-style: preserve-3d;
}

/* ---- gallery: smooth blur-and-scale cross-dissolve ---- */
.slide {
  opacity: 0; transform: scale(1.055); filter: blur(9px);
  transition: opacity 1.15s var(--ease), transform 1.25s var(--ease-out),
              filter 1.15s var(--ease), visibility 0s linear 1.25s;
}
.slide.is-active {
  opacity: 1; transform: scale(1); filter: blur(0);
  transition: opacity 1.15s var(--ease), transform 1.25s var(--ease-out),
              filter 1.15s var(--ease), visibility 0s;
}
/* slightly longer, gentler ken burns to match the slower dissolve */
.slide.is-active .slide__img { animation: kenburns 9s var(--ease-out) both; }

/* ---- gallery: slim bottom progress bar ---- */
.reel__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 6;
  background: rgba(255,255,255,.12); pointer-events: none;
}
.reel__progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--brindle));
  box-shadow: 0 0 10px rgba(216,162,74,.6);
  transition: width .12s linear;
}

/* ---- story drop cap + type polish ---- */
.story__open::first-letter {
  font-family: var(--serif); font-weight: 500; float: left;
  font-size: 3.6rem; line-height: .82; padding: .05em .12em 0 0;
  color: var(--brindle-deep);
}
.hero__name { letter-spacing: -.03em; }
.gallery__title, .story h2, .memory h2, .warnhead h2, .coin__title { letter-spacing: -.015em; }
.story p { letter-spacing: .002em; }

/* ---- feathered section transitions (soft, not hard edges) ---- */
.section--ink, .coin { position: relative; }
.section--ink::before, .coin::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 90px;
  background: linear-gradient(180deg, var(--paper-2), transparent);
  opacity: .5; pointer-events: none;
}

/* respect reduced motion for all of the above */
@media (prefers-reduced-motion: reduce) {
  .fx-grain, .fx-leak { animation: none; }
  .fx-motes { display: none; }
  .reel__stage { transform: none; transition: none; }
  .slide { transition: opacity .5s linear, visibility 0s linear .5s; transform: none; filter: none; }
  .slide.is-active { transform: none; filter: none; }
}
