/* ==========================================================================
   MEGANFOX® — prescribing information
   Paper, ink, one fox and one blue pill.
   ========================================================================== */

:root {
  --paper: #f1e9da;
  --paper-2: #e8dcc6;
  --card: #fbf7ef;
  --ink: #1d1813;
  --ink-2: #5d5247;
  --ink-3: #8f8273;
  --fox: #e0621c;
  --fox-2: #b4460f;
  --pill: #2b4fd8;
  --pill-ink: #2337a8;
  --red: #c8321e;
  --mint: #e2ece4;
  --rule: rgba(29, 24, 19, 0.85);
  --hair: rgba(29, 24, 19, 0.18);

  --cond: "Archivo", "Arial Narrow", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --hand: "Caveat", "Bradley Hand", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* paper tooth */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
sup { font-size: .55em; vertical-align: super; line-height: 0; }
::selection { background: var(--fox); color: var(--card); }

/* ---------- Safety band ---------- */
.safety { background: var(--red); color: #fbe9dc; overflow: hidden; border-bottom: 2px solid var(--ink); }
.safety-track {
  display: flex; gap: 22px; width: max-content; padding: 8px 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  animation: crawl 60s linear infinite;
}
.safety b { color: var(--ink); font-weight: 600; }
@keyframes crawl { to { transform: translateX(-50%); } }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(241, 233, 218, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 3px 0 -2px var(--paper), 0 4px 0 -2px var(--rule);
}
.mark { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-decoration: none; }
.mark-rx {
  grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 50%;
  font-family: var(--serif); font-size: 24px; color: var(--fox); transform: rotate(-8deg);
}
.mark-name { font-family: var(--cond); font-weight: 850; font-stretch: 78%; font-size: 22px; letter-spacing: .02em; line-height: 1; }
.mark-sub { font-family: var(--mono); font-size: 10px; color: var(--ink-2); letter-spacing: .06em; }
.index { display: flex; gap: 22px; }
.index a { font-family: var(--cond); font-stretch: 85%; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.index a:hover { color: var(--ink); border-color: var(--fox); }
.index i { font-family: var(--serif); font-style: italic; text-transform: none; color: var(--fox); letter-spacing: 0; margin-right: 2px; }
.rx-btn {
  position: relative; padding: 10px 18px 10px 22px;
  background: var(--fox); color: var(--card); text-decoration: none;
  font-family: var(--cond); font-weight: 800; font-stretch: 80%; font-size: 14px; text-transform: uppercase; letter-spacing: .08em;
  border-radius: 3px;
  /* perforated left edge */
  -webkit-mask: radial-gradient(circle at 0 6px, transparent 3px, #000 3.5px) 0 0 / 100% 12px repeat-y;
          mask: radial-gradient(circle at 0 6px, transparent 3px, #000 3.5px) 0 0 / 100% 12px repeat-y;
  transition: background .2s;
}
.rx-btn:hover { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 56px) clamp(60px, 8vw, 110px);
}
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 26px; }
.kicker-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fox); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--fox); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

h1 { line-height: .9; margin-bottom: 28px; }
h1 span { display: block; }
.h1-a { font-family: var(--cond); font-weight: 900; font-stretch: 68%; text-transform: uppercase; font-size: clamp(3rem, 8.4vw, 7.4rem); letter-spacing: -.01em; }
.h1-b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(3.6rem, 10.5vw, 9.6rem); letter-spacing: -.035em; margin: -.04em 0 -.02em .6em; }
.h1-b em { color: var(--fox); position: relative; }
.h1-b em::after { /* hand-drawn underline */
  content: ""; position: absolute; left: -2%; right: -4%; bottom: .06em; height: .16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 60 4, 120 8, 180 9 S 270 4, 297 10' fill='none' stroke='%232b4fd8' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.h1-c { font-family: var(--cond); font-weight: 300; font-stretch: 120%; font-size: clamp(1.9rem, 4.4vw, 3.9rem); letter-spacing: -.02em; text-transform: lowercase; }

.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); max-width: 34ch; color: var(--ink-2); margin-bottom: 30px; }
.hero-lede strong { color: var(--ink); font-weight: 600; }
.asterisk { margin-top: 18px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* NDC / contract address with printed barcode */
.ndc {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  max-width: 600px; padding: 10px 10px 10px 14px;
  background: var(--card); border: 1px solid var(--ink); border-radius: 2px;
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
}
.ndc::before { /* barcode */
  content: ""; position: absolute; left: 14px; right: 110px; top: -14px; height: 10px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px);
  opacity: .85;
}
.ndc-label { font-family: var(--mono); font-size: 9.5px; line-height: 1.2; text-transform: uppercase; color: var(--ink-2); border-right: 1px solid var(--hair); padding-right: 12px; }
.ndc-code { font-family: var(--mono); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndc-copy {
  font-family: var(--cond); font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .08em; font-size: 13px;
  padding: 9px 14px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; border-radius: 2px;
  transition: background .15s, color .15s, transform .1s;
}
.ndc-copy:hover { background: var(--ink); color: var(--card); }
.ndc-copy:active { transform: translateY(1px); }
.ndc-copy.done { background: var(--pill); border-color: var(--pill); color: var(--card); }

/* prescription-label buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.label-btn {
  position: relative; display: grid; padding: 10px 18px 11px 26px; min-width: 150px;
  background: var(--card); border: 1px solid var(--ink); text-decoration: none;
  box-shadow: 0 1px 0 var(--ink), 0 10px 18px -12px rgba(29,24,19,.5);
  transform: rotate(-1.2deg); transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .25s;
}
.label-btn:nth-child(2) { transform: rotate(.9deg); }
.label-btn:nth-child(3) { transform: rotate(-.4deg); }
.label-btn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--pill); }
.label-btn--fox { background: var(--fox); color: var(--card); }
.label-btn--fox::before { background: var(--ink); }
.label-btn small { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; opacity: .75; }
.label-btn span { font-family: var(--cond); font-weight: 800; font-stretch: 82%; font-size: 19px; text-transform: uppercase; letter-spacing: .02em; }
.label-btn:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 1px 0 var(--ink), 0 18px 24px -14px rgba(29,24,19,.6); }

/* ---------- 3D carton ---------- */
.carton-stage { position: relative; height: 560px; max-width: 100%; overflow: clip; overflow-clip-margin: 40px; display: grid; place-items: center; perspective: 1400px; touch-action: pan-y; cursor: grab; }
.carton-stage:active { cursor: grabbing; }
.carton {
  --w: 300px; --h: 430px; --d: 140px;
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, -8deg)) rotateY(var(--ry, -32deg));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -10px; } }
.face { position: absolute; left: 0; top: 0; backface-visibility: hidden; overflow: hidden; }
.front, .back { width: var(--w); height: var(--h); }
.front { transform: translateZ(calc(var(--d) / 2)); }
.back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: var(--card); }
.side, .left { width: var(--d); height: var(--h); left: calc((var(--w) - var(--d)) / 2); }
.side { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.top, .bottom { width: var(--w); height: var(--d); top: calc((var(--h) - var(--d)) / 2); }
.top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: #d9ccb4; }

.front {
  background: var(--card);
  display: flex; flex-direction: column; padding: 16px 18px 0;
  box-shadow: inset 0 0 0 1px rgba(29,24,19,.25), inset -20px 0 40px -30px rgba(0,0,0,.4);
}
.front-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.front-top span:first-child { background: var(--ink); color: var(--card); padding: 0 5px; }
.front-brand { margin-top: 10px; font-family: var(--cond); font-weight: 900; font-stretch: 70%; font-size: 52px; line-height: .9; letter-spacing: -.01em; color: var(--ink); }
.front-brand sup { font-size: 16px; color: var(--fox); }
.front-generic { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.front-window { position: relative; height: 178px; border-radius: 0 60px 0 0; overflow: hidden; border: 1.5px solid var(--ink); }
.front-window img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 22%; }
.front-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.35), transparent 40%); }
.front-strength {
  position: absolute; right: 16px; top: 196px; width: 74px; height: 74px; border-radius: 50%;
  background: var(--pill); color: var(--card); display: grid; place-content: center; text-align: center;
  box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--pill); transform: rotate(10deg);
}
.front-strength b { font-family: var(--cond); font-weight: 900; font-stretch: 75%; font-size: 30px; line-height: .85; }
.front-strength span { font-family: var(--mono); font-size: 10px; }
.front-claim { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--fox-2); }
.front-stripes { position: absolute; left: 0; right: 0; bottom: 26px; height: 34px; display: flex; transform: skewY(-6deg); transform-origin: left; }
.front-stripes i { flex: 1; }
.front-stripes i:nth-child(1) { background: var(--fox); flex: 2.2; }
.front-stripes i:nth-child(2) { background: var(--pill); }
.front-stripes i:nth-child(3) { background: var(--ink); flex: .4; }
.front-net { position: absolute; left: 18px; bottom: 7px; font-family: var(--mono); font-size: 8.5px; color: var(--ink-2); }

.side { background: var(--card); padding: 12px 10px; box-shadow: inset 30px 0 40px -30px rgba(0,0,0,.35); }
.facts { border: 1.5px solid var(--ink); height: 100%; padding: 6px; font-family: var(--cond); font-stretch: 85%; font-size: 9px; line-height: 1.25; }
.facts-title { font-weight: 900; font-size: 17px; font-stretch: 70%; border-bottom: 5px solid var(--ink); margin-bottom: 4px; }
.facts-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--ink); padding: 2px 0; }
.facts-h { font-weight: 800; margin-top: 6px; border-top: 2px solid var(--ink); padding-top: 3px; }
.top { background: linear-gradient(90deg, var(--fox), var(--fox-2)); display: grid; place-items: center; }
.top span { font-family: var(--mono); font-size: 11px; color: var(--card); border: 1px dashed var(--card); padding: 4px 10px; }
.left { background: var(--fox); display: grid; place-items: center; }
.left span { writing-mode: vertical-rl; font-family: var(--cond); font-weight: 900; font-stretch: 70%; font-size: 30px; color: var(--card); }
.carton-shadow { position: absolute; bottom: 30px; left: 50%; width: 320px; height: 40px; translate: -50% 0; background: radial-gradient(closest-side, rgba(29,24,19,.35), transparent); filter: blur(4px); animation: shadow 6s ease-in-out infinite; }
@keyframes shadow { 50% { scale: .88; opacity: .7; } }
.carton-note { position: absolute; right: 6%; bottom: 6px; font-family: var(--hand); font-size: 22px; color: var(--pill-ink); transform: rotate(-4deg); }

/* ---------- Section heads ---------- */
section:not(.hero) { max-width: 1240px; margin: 0 auto; padding: clamp(70px, 9vw, 130px) clamp(16px, 4vw, 56px); }
.sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 18px; margin-bottom: 44px; }
.sec-num { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: .8; color: var(--fox); }
.sec-head h2 { font-family: var(--cond); font-weight: 850; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: .95; letter-spacing: .005em; }
.sec-rule { height: 7px; margin-top: 10px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }

/* ---------- §1 History ---------- */
.history-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.typed-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 16px; }
.chart-notes blockquote { border-left: 3px solid var(--fox); padding-left: clamp(16px, 2.5vw, 28px); margin-bottom: 36px; }
.chart-notes blockquote p { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.32; margin-bottom: .7em; }
.chart-notes blockquote p:nth-child(2) { font-family: var(--cond); font-weight: 850; font-stretch: 70%; text-transform: uppercase; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; color: var(--ink); }
.chart-notes u { text-decoration: underline wavy var(--fox); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.assessment { font-family: var(--hand); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--pill-ink); line-height: 1.1; transform: rotate(-1.5deg); transform-origin: left; }

.pad { position: relative; transform: rotate(2deg); margin-top: 10px; }
.pad-binding { height: 22px; background: var(--ink); border-radius: 4px 4px 0 0; position: relative; }
.pad-binding::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: radial-gradient(circle at 5px 0, transparent 2.5px, var(--mint) 3px) 0 0 / 10px 5px repeat-x; }
.pad-sheet {
  background:
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(43,79,216,.16) 35px 36px),
    repeating-linear-gradient(45deg, rgba(43,79,216,.035) 0 2px, transparent 2px 6px),
    var(--mint);
  padding: 22px 26px 26px; min-height: 520px;
  box-shadow: 0 1px 0 #d4ddd6, 0 2px 0 #c7d1c9, 0 3px 0 #d4ddd6, 0 4px 0 #bec8c0, 0 26px 40px -18px rgba(29,24,19,.45);
}
.pad-head { text-align: center; border-bottom: 2px solid var(--pill-ink); padding-bottom: 10px; margin-bottom: 14px; color: var(--pill-ink); }
.pad-clinic { font-family: var(--cond); font-weight: 850; font-stretch: 75%; text-transform: uppercase; font-size: 22px; letter-spacing: .06em; }
.pad-addr { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.pad-fields p { display: flex; gap: 10px; align-items: baseline; border-bottom: 1px solid rgba(35,55,168,.4); padding: 4px 0; }
.pad-fields span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--pill-ink); width: 56px; flex-shrink: 0; }
.hand { font-family: var(--hand); font-style: normal; font-weight: 500; font-size: 27px; color: var(--pill-ink); line-height: 1.3; }
.pad-body { position: relative; padding: 18px 0 8px 64px; }
.pad-rx { position: absolute; left: 0; top: 6px; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--pill-ink); }
.hand-lg { font-size: 46px; font-weight: 700; line-height: 1; transform: rotate(-2deg); transform-origin: left; margin-bottom: 4px; }
.inf { font-size: 40px; vertical-align: -4px; }
.pad-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 18px; }
.daw { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; color: var(--pill-ink); text-transform: uppercase; }
.daw .box { width: 18px; height: 18px; border: 1px solid var(--pill-ink); display: grid; place-items: center; font-family: var(--hand); font-size: 22px; line-height: 0; }
.sig { text-align: center; }
.sig svg { width: 180px; height: 58px; display: block; }
.sig-path { fill: none; stroke: var(--pill-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.4s ease .3s; }
.in .sig-path { stroke-dashoffset: 0; }
.sig span { display: block; border-top: 1px solid var(--pill-ink); font-family: var(--mono); font-size: 9px; color: var(--pill-ink); padding-top: 3px; }
.stamp-approved {
  position: absolute; right: -14px; top: 120px; padding: 8px 14px; border: 4px double var(--red); border-radius: 6px;
  font-family: var(--cond); font-weight: 900; font-stretch: 75%; font-size: 30px; line-height: .9; text-align: center; color: var(--red);
  transform: rotate(-16deg) scale(2); opacity: 0; mix-blend-mode: multiply;
  transition: transform .4s cubic-bezier(.3,1.8,.5,1) 1.6s, opacity .2s 1.6s;
}
.stamp-approved small { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .1em; }
.in .stamp-approved { transform: rotate(-16deg) scale(1); opacity: .88; }

/* ---------- §2 Trial ---------- */
.trial-meta { font-size: 1.05rem; color: var(--ink-2); max-width: 62ch; margin: -18px 0 40px; font-style: italic; }
.graph { background: var(--card); border: 1px solid var(--ink); padding: 26px clamp(14px, 3vw, 34px) 20px; box-shadow: 6px 6px 0 var(--ink); margin-bottom: 56px; }
.graph figcaption { font-family: var(--cond); font-weight: 700; font-stretch: 85%; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 26px; }
.graph figcaption em { color: var(--fox); font-family: var(--serif); text-transform: none; font-size: 1.15em; }
.graph-body { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding-top: 90px; }
.graph-y { height: 340px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: right; transform: translateY(-.6em); }
.graph-plot {
  position: relative; height: 340px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 2vw, 28px); align-items: end;
  border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 0 clamp(8px, 2vw, 24px);
  background:
    repeating-linear-gradient(0deg, transparent 0 84px, var(--hair) 84px 85px),
    repeating-linear-gradient(0deg, transparent 0 16px, rgba(43,79,216,.06) 16px 17px),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(43,79,216,.06) 16px 17px);
}
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bar-fill {
  display: block; flex-shrink: 0; height: 0; border: 1.5px solid var(--ink); border-bottom: 0;
  background: repeating-linear-gradient(-45deg, var(--paper-2) 0 4px, var(--card) 4px 8px);
  transition: height 1.4s cubic-bezier(.2,.8,.2,1);
}
.in .bar-fill { height: calc(var(--v) * 1%); }
.bar:nth-child(2) .bar-fill { transition-delay: .1s; }
.bar:nth-child(3) .bar-fill { transition-delay: .2s; }
.bar:nth-child(4) .bar-fill { transition-delay: .3s; }
.bar--fox .bar-fill { background: linear-gradient(180deg, var(--fox), var(--fox-2)); transition-delay: .7s; transition-duration: 1.8s; box-shadow: 0 -10px 30px -6px rgba(224,98,28,.5); }
.bar-val { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * 1% + 6px); text-align: center; font-family: var(--mono); font-size: 12px; opacity: 0; transition: opacity .4s 1.2s; }
.in .bar-val { opacity: 1; }
.bar--fox .bar-val { bottom: auto; top: -118px; font-family: var(--hand); font-size: 26px; color: var(--fox-2); transition-delay: 2.2s; white-space: nowrap; }
.bar-name { position: absolute; top: calc(100% + 10px); left: -10px; right: -10px; text-align: center; font-family: var(--cond); font-weight: 700; font-stretch: 85%; font-size: 15px; line-height: 1.1; }
.bar-tag { position: absolute; top: calc(100% + 30px); left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; }
.bar--fox .bar-name { color: var(--fox-2); font-weight: 900; }
.bar--fox .bar-tag { color: var(--fox); }
.graph-plot { margin-bottom: 56px; }
.scribble { position: absolute; right: -1%; top: -150px; width: 26%; max-width: 220px; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--pill); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset 1.1s ease 2.4s; }
.in .scribble path { stroke-dashoffset: 0; }
.scribble-note { position: absolute; right: 24%; top: -110px; font-family: var(--hand); font-size: 24px; line-height: 1; color: var(--pill-ink); text-align: right; transform: rotate(-6deg); opacity: 0; transition: opacity .4s 3.2s; }
.in .scribble-note { opacity: 1; }

.adverse { width: 100%; border-collapse: collapse; font-size: 16px; }
.adverse caption { text-align: left; font-family: var(--cond); font-weight: 700; font-stretch: 85%; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 12px; }
.adverse thead th { font-family: var(--cond); font-weight: 800; font-stretch: 85%; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; text-align: left; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 10px; }
.adverse td { padding: 10px; border-bottom: 1px solid var(--hair); }
.adverse td:not(:first-child), .adverse th:not(:first-child) { text-align: right; font-family: var(--mono); }
.adverse tbody tr:nth-child(odd) { background: rgba(251,247,239,.6); }
.adverse tbody tr:last-child td { border-bottom: 3px solid var(--ink); }
.adverse tbody tr:last-child td:nth-child(2) { color: var(--fox-2); font-weight: 600; }

/* ---------- §3 Insert ---------- */
.insert {
  position: relative; background: #fdfbf6; padding: clamp(22px, 4vw, 48px);
  transform: rotate(-.5deg);
  box-shadow: 0 30px 60px -30px rgba(29,24,19,.5), 0 2px 6px rgba(29,24,19,.12);
}
/* fold creases */
.insert::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(33.33% - 14px), rgba(0,0,0,.05) calc(33.33% - 1px), rgba(255,255,255,.9) 33.33%, rgba(0,0,0,.02) calc(33.33% + 14px), transparent calc(33.33% + 15px)),
    linear-gradient(90deg, transparent calc(66.66% - 14px), rgba(0,0,0,.05) calc(66.66% - 1px), rgba(255,255,255,.9) 66.66%, rgba(0,0,0,.02) calc(66.66% + 14px), transparent calc(66.66% + 15px)),
    linear-gradient(0deg, transparent calc(50% - 12px), rgba(0,0,0,.045) calc(50% - 1px), rgba(255,255,255,.8) 50%, transparent calc(50% + 12px));
}
.insert-title { font-family: var(--cond); font-weight: 900; font-stretch: 80%; font-size: 15px; letter-spacing: .08em; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 12px; }
.insert-box { border: 1px solid var(--ink); padding: 10px 12px; font-size: 13.5px; line-height: 1.4; margin-bottom: 22px; }
.insert-cols { columns: 3 240px; column-gap: 34px; column-rule: 1px solid var(--hair); font-size: 13.5px; line-height: 1.45; hyphens: auto; text-align: justify; }
.insert-cols h3 { font-family: var(--cond); font-weight: 850; font-stretch: 80%; font-size: 12.5px; letter-spacing: .06em; margin: 16px 0 6px; break-after: avoid; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.insert-cols h3:first-child { margin-top: 0; }
.insert-cols p { margin-bottom: 7px; }
.insert-cols a { color: var(--pill); }
.supplied { display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid var(--ink); margin: 6px 0 10px; break-inside: avoid; text-align: left; }
.supplied dt, .supplied dd { padding: 4px 8px; border-bottom: 1px solid var(--hair); }
.supplied dt { font-family: var(--cond); font-weight: 700; font-stretch: 85%; font-size: 12px; text-transform: uppercase; border-right: 1px solid var(--hair); }
.supplied dd { font-family: var(--mono); font-size: 12px; }
.supplied-ca { word-break: break-all; }
.insert-rev { margin-top: 22px; padding-top: 8px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

/* ---------- §4 Blister pack ---------- */
.pack-hint { font-family: var(--hand); font-size: 28px; color: var(--pill-ink); margin: -24px 0 22px; transform: rotate(-1deg); }
.blister-card {
  position: relative; padding: 22px clamp(14px, 3vw, 34px) 18px; border-radius: 18px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(160deg, #f6efe2, #e9dcc4);
  border: 1px solid rgba(29,24,19,.35);
  box-shadow: 0 2px 0 #d8c9ad, 0 40px 70px -35px rgba(29,24,19,.6);
}
.blister-card::before { /* printed pattern */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='40'%3E%3Ctext x='0' y='26' font-family='Arial Narrow,Arial' font-weight='900' font-size='18' fill='%23e0621c'%3EMEGANFOX 100mg%3C/text%3E%3C/svg%3E");
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--fox); padding-bottom: 8px; margin-bottom: 22px; }
.card-brand { font-family: var(--cond); font-weight: 900; font-stretch: 70%; font-size: 30px; color: var(--fox-2); }
.card-brand span { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--ink-2); margin-left: 8px; }
.card-start { font-family: var(--mono); font-size: 12px; color: var(--fox-2); letter-spacing: .1em; }
.blisters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px) clamp(10px, 1.6vw, 20px); }
.blister { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; -webkit-tap-highlight-color: transparent; }
.blister:focus-visible .dome { outline: 3px solid var(--pill); outline-offset: 4px; }
.day { font-family: var(--mono); font-size: 11px; color: var(--fox-2); letter-spacing: .1em; }
.dome {
  position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 30%;
  padding: 7px;
  background: linear-gradient(145deg, rgba(255,255,255,.85), rgba(255,255,255,.25) 45%, rgba(190,175,150,.35));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.9),
    inset 0 -6px 12px rgba(120,100,70,.25),
    0 0 0 1px rgba(29,24,19,.22),
    0 10px 16px -8px rgba(29,24,19,.45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dome img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 26%; transition: filter .3s, opacity .3s; }
.dome::after { /* plastic gloss */
  content: ""; position: absolute; inset: 7px; border-radius: 26%; pointer-events: none;
  background:
    radial-gradient(60% 40% at 30% 18%, rgba(255,255,255,.75), transparent 70%),
    linear-gradient(200deg, transparent 55%, rgba(255,255,255,.25) 70%, transparent 80%);
  mix-blend-mode: screen;
}
.blister:hover .dome { transform: translateY(-3px); }
.blister:active .dome, .blister.pressing .dome { transform: scale(.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), inset 0 6px 14px rgba(120,100,70,.4), 0 0 0 1px rgba(29,24,19,.22), 0 2px 4px -2px rgba(29,24,19,.45); }
.blister.popped .dome img { opacity: .35; filter: grayscale(1); }
.blister.popped .dome::before { /* torn foil */
  content: "TAKEN"; position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  font-family: var(--cond); font-weight: 900; font-stretch: 70%; font-size: clamp(14px, 2vw, 22px); color: var(--red); letter-spacing: .1em;
  transform: rotate(-14deg);
}
.foil-cap { font-family: var(--cond); font-weight: 700; font-stretch: 85%; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); text-align: center; }
.card-foot { margin-top: 22px; padding-top: 8px; border-top: 1px dashed rgba(29,24,19,.35); font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); text-align: center; }

/* viewer */
.viewer { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(29,24,19,.88); cursor: zoom-out; animation: fade .25s; }
.viewer[hidden] { display: none; }
.viewer figure { background: var(--card); padding: 12px 12px 0; max-width: min(92vw, 780px); box-shadow: 0 40px 100px rgba(0,0,0,.6); transform: rotate(-1deg); animation: drop .45s cubic-bezier(.3,1.5,.5,1); }
.viewer img { max-height: 76vh; width: auto; margin: 0 auto; }
.viewer figcaption { font-family: var(--hand); font-size: 28px; color: var(--pill-ink); padding: 8px 6px 12px; text-align: center; }
.viewer-close { position: absolute; top: 16px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--card); background: transparent; color: var(--card); font-size: 26px; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { transform: rotate(-6deg) translateY(30px) scale(.9); opacity: 0; } }

/* ---------- §5 Labs ---------- */
.lab-sheet { background: var(--card); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.lab-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
.lab-head p { padding: 10px 14px; font-family: var(--mono); font-size: 14px; font-weight: 600; border-right: 1px solid var(--hair); }
.lab-head p:last-child { border-right: 0; color: #1b8a4b; }
.lab-head span { display: block; font-weight: 400; font-size: 10px; text-transform: uppercase; color: var(--ink-3); letter-spacing: .08em; }
.lab-frame { height: clamp(420px, 58vw, 620px); }
.lab-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lab-foot { border-top: 1px solid var(--ink); padding: 8px 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ---------- Footer ---------- */
.fineprint { background: var(--ink); color: var(--paper); padding: clamp(70px, 10vw, 130px) clamp(16px, 4vw, 56px) 0; overflow: hidden; position: relative; }
.final { max-width: 1100px; margin: 0 auto; text-align: center; }
.final-small { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: var(--ink-3); }
.final-cta {
  display: inline-block; margin: 6px 0 40px; text-decoration: none;
  font-family: var(--cond); font-weight: 900; font-stretch: 68%; text-transform: uppercase;
  font-size: clamp(3rem, 10vw, 8.6rem); line-height: .9; color: var(--fox);
  background: linear-gradient(var(--fox), var(--fox)) 0 100% / 0 6px no-repeat; transition: background-size .5s cubic-bezier(.2,.8,.2,1);
}
.final-cta span { display: inline-block; font-family: var(--serif); font-weight: 400; transition: transform .3s; }
.final-cta:hover { background-size: 100% 6px; }
.final-cta:hover span { transform: translateX(14px); }
.ndc--center { margin: 0 auto; text-align: left; color: var(--ink); box-shadow: 4px 4px 0 var(--fox); }
.x-link { display: inline-block; margin-top: 26px; font-family: var(--mono); font-size: 14px; color: var(--paper); text-underline-offset: 4px; }
.x-link:hover { color: var(--fox); }
.speed-read {
  max-width: 1100px; margin: 70px auto 0; padding-top: 18px; border-top: 1px solid rgba(241,233,218,.25);
  font-family: var(--cond); font-stretch: 62%; font-weight: 500; font-size: 13px; line-height: 1.35; letter-spacing: .02em; text-transform: uppercase; text-align: justify; color: rgba(241,233,218,.6);
}
.big-mark {
  margin: 40px -2vw -0.16em; text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--cond); font-weight: 900; font-stretch: 62%; font-size: clamp(5rem, 24vw, 22rem); line-height: .8; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(241,233,218,.22);
}
.big-mark sup { -webkit-text-stroke: 0; color: var(--fox); font-size: .2em; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 160; translate: -50% 20px; opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 12px 20px; font-family: var(--hand); font-size: 24px; border-radius: 3px; box-shadow: 4px 4px 0 var(--fox); transition: opacity .25s, translate .25s; }
.toast.show { opacity: 1; translate: -50% 0; }

/* reveal */
.reveal { opacity: 0; translate: 0 30px; transition: opacity .9s ease, translate .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; translate: 0 0; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .index { display: none; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .carton-stage { height: 520px; }
  .history-grid { grid-template-columns: minmax(0, 1fr); }
  .pad { max-width: 480px; margin: 0 auto; }
  .blisters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lab-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-head p:nth-child(2) { border-right: 0; }
  .lab-head p:nth-child(-n+2) { border-bottom: 1px solid var(--hair); }
  .insert::before { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .masthead { gap: 10px; }
  .mark-sub { display: none; }
  .mark-name { font-size: 19px; }
  .rx-btn { padding: 9px 12px 9px 16px; font-size: 12px; }
  .h1-b { margin-left: .2em; }
  .ndc { grid-template-columns: minmax(0, 1fr) auto; }
  .ndc-label { display: none; }
  .ndc-code { font-size: 11.5px; }
  .label-btn { min-width: 0; flex: 1 1 140px; }
  .carton-stage { height: 440px; }
  .carton { scale: .78; }
  .carton-note { right: 0; }
  .blisters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .graph-plot { gap: 6px; padding: 0 4px; }
  .bar-name { font-size: 10.5px; left: -2px; right: -2px; letter-spacing: 0; }
  .bar--fox .bar-val { left: auto; right: 0; text-align: right; font-size: 20px; }
  .scribble { display: none; }
  .bar-tag { display: none; }
  .scribble-note { right: 30%; top: -96px; font-size: 20px; }
  .adverse { font-size: 14px; }
  .adverse td, .adverse th { padding: 8px 6px; }
  .stamp-approved { right: 0; font-size: 24px; }
  .pad-sheet { padding: 18px 16px 20px; }
  .hand { font-size: 24px; }
  .hand-lg { font-size: 38px; }
}
