/* DR.EPOXY · site C (site-wide base; the opening is css/hero.css since pass 7)
   Paper and film. Phone first. Rules: nothing here is placed by script from the scroll position. Scroll-linked DOM motion is
   CSS scroll-driven (html.sda) on transform/opacity only, with time-based fallbacks (.is-in). */

:root {
  --paper: #EEE8DE;
  --paper-2: #E5DDD0;
  --ink: #141210;
  --ink-2: #4B443C;
  --ink-3: #7A7066;       /* (non-text, large text) */
  --ink-3t: #686056;      /* small text: 5.1:1 on paper (AA) */
  --copper: #9A5B2E;      /* display type, hairlines, focus rings (4.4:1 on paper: large / non-text only) */
  --copper-t: #8A5129;    /* the same copper a step darker for small text: 5.2:1 on paper, 4.7:1 on paper-2 (AA) */
  --copper-l: #D6A26E;
  --film: #0B0A09;
  --pearl: #F4EFE7;
  --display: 'Noto Serif Hebrew', 'Frank Ruhl Libre', 'David', 'Times New Roman', serif;
  --text: 'IBM Plex Sans Hebrew', 'Assistant', 'Arial Hebrew', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --latin: 'Instrument Serif', 'Times New Roman', serif;
  /* (pass 4) the side margin never lets content under a notch / rounded corner (a phone in landscape; viewport-fit=cover) */
  --gut: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --hdr: 58px;
  /* motion (the motion sweep, 2026-10-24: prompts/SITE-C-MOTION-SWEEP.md). One entrance curve for everything; --ease keeps
     its name so every existing var(--ease) follows it. (--visc, the overshooting curve, went with its last user: plan 008) */
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --t-fade: 300ms; --t-rise: 400ms; --t-word: 600ms; --t-move: 700ms; --t-ui: 240ms; --t-press: 160ms; --t-hover: 200ms;
  --stagger: 70ms; --rise: 12px;
  /* the text scale (pass 2, 2026-10-22): text grows with the screen so it holds its own beside the display letters.
     390 / 1440 / 1920 px: xs 13 / 14.9 / 15 · s 14.5 / 17 / 17 · body 16.5 / 20 / 21 · lead 18 / 24.8 / 28 · h4 21 / 30.8 / 36 ·
     btn 15.5 / 17.6 / 18. Every section uses these; no hard-coded px sizes for running text. */
  --fs-xs: clamp(13px, 12px + .2vw, 15px);
  --fs-s: clamp(14.5px, 13px + .3vw, 17px);
  --fs-body: clamp(16.5px, 14.5px + .38vw, 21px);
  --fs-lead: clamp(18px, 14px + .75vw, 28px);
  --fs-h4: clamp(21px, 15px + 1.1vw, 36px);
  --fs-btn: clamp(15.5px, 14px + .25vw, 18px);
  color-scheme: light;
}
@media (min-width: 900px) { :root { --gut: max(clamp(28px, 4.4vw, 72px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); --hdr: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
/* (pass 4) no grey flash on a tap: every control has its own press state (.btn scales, links dim) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.6;
  background: var(--paper) url(../assets/paper.webp) 0 0 / 256px 256px;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
main { position: relative; }
a { color: inherit; }
p, h1, h2, h3, figure, dl, dd, ol { margin: 0; }
/* no one-word last lines in running text (pass 2) */
p, li, dd, figcaption { text-wrap: pretty; }
ol { padding: 0; list-style: none; }
bdi { unicode-bidi: isolate; }
.skip { position: absolute; top: -60px; right: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.dot { color: var(--copper-t); padding: 0 .15em; }

/* ---------- type ---------- */
.kick {
  font: 500 var(--fs-s)/1.2 var(--text); letter-spacing: .14em; color: var(--copper-t);
  display: flex; align-items: center; gap: 10px;
}
.kick::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.kick--light { color: var(--copper-l); }
.ln { display: block; white-space: nowrap; }

/* the display face (Noto Serif Hebrew 900 at 62.5% width, served pinned by Google Fonts) */
.menu__w {
  font-family: var(--display); font-weight: 900; font-stretch: 62.5%; font-synthesis: none;
}

/* ---------- buttons ---------- */
/* (pass 2: sizes from --fs-btn; ≈ 50 / 56 px tall on phones, 56 / 64 px on desktops)
   (pass 4) hovers only where there is a real hover (a mouse or a trackpad): on a phone a tap leaves no stuck hover colour.
   A press answers at once: the button gives (scale .97, 160 ms), its copper dot spreads (1.8 in 120 ms) and relaxes (220 ms).
   touch-action: manipulation: no double-tap zoom wait on the controls. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px; padding: 0 1.4em;
  font: 500 var(--fs-btn)/1.15 var(--text); text-decoration: none; border-radius: 999px; white-space: nowrap;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;   /* (pass 5: a long press selects no label) */
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, box-shadow var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.btn:active { transform: scale(.97); transition-duration: 100ms; }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ink::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--copper-l);
  box-shadow: 0 0 0 0 rgba(214, 162, 110, .5); transition: transform .22s cubic-bezier(.23, 1, .32, 1);
}
.btn--ink:active::after { transform: scale(1.8); transition-duration: .12s; }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: var(--copper-t); box-shadow: inset 0 0 0 1px var(--copper-t); }
  .btn--ink:hover::after { transform: scale(1.35); background: var(--paper); }
  .btn--ink:hover:active::after { transform: scale(1.8); }
}
.btn--big { min-height: 56px; padding: 0 1.75em; }
@media (min-width: 900px) { .btn { min-height: 56px; } .btn--big { min-height: 64px; } }
.lnk {
  font: 500 var(--fs-btn)/1.2 var(--text); text-decoration: none; padding: 8px 2px; touch-action: manipulation;
  background: linear-gradient(var(--copper), var(--copper)) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--t-hover) ease, color var(--t-hover) ease, opacity var(--t-press) var(--ease-out);
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;   /* (pass 6: no long-press select on iOS) */
}
@media (hover: hover) and (pointer: fine) { .lnk:hover { color: var(--copper-t); background-size: 100% 2px; } }
.lnk:active { opacity: .62; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: calc(var(--hdr) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gut) 0; display: flex; align-items: center; justify-content: space-between;
  color: var(--ink); transition: color var(--t-ui) var(--ease-out);
  pointer-events: none;
}
.hdr > * { pointer-events: auto; }
/* a band of paper behind the header: past the dark opening (html.hdr-paper, js/main.js; inner pages have it from <html>), so the
   page's type never runs under the logo. Over the opening's #promise photo the same band is the film's black (html.hdr-film,
   css/hero.css). Solid behind the whole header row (the safe area included), it fades out only in the last 22 px (18 of them
   below the header). A pseudo-element: no layout moves */
.hdr::before {
  content: ""; position: absolute; inset: 0 0 -18px 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity var(--t-ui) var(--ease-out);
  background: linear-gradient(var(--paper) calc(100% - 22px), rgba(238, 232, 222, 0));
}
html.hdr-paper:not(.menu-open) .hdr::before { opacity: 1; }
html.a11y-contrast .hdr::before { bottom: 0; }   /* (high contrast paints the band solid: no overhang onto the eyebrow) */
html.hdr-dark .hdr { color: var(--pearl); }
.logo { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1; gap: 4px; }
.logo__mark { font: 400 21px/1 var(--latin); letter-spacing: .07em; direction: ltr; }
.logo__cap { font: 400 var(--fs-xs)/1 var(--text); opacity: .62; }
.hdr__act { display: flex; align-items: center; gap: 14px; }
.hdr__wa {
  font: 500 var(--fs-s)/1 var(--text); text-decoration: none; padding: 9px 0 7px; touch-action: manipulation;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;   /* (pass 6) */
  background: linear-gradient(var(--copper), var(--copper)) 0 100% / 100% 1px no-repeat;
}
.hdr__wa:active, .burger:active { opacity: .62; }
html.hdr-dark .hdr__wa { background-image: linear-gradient(var(--copper-l), var(--copper-l)); }
.hdr__wa-short { display: none; }
@media (max-width: 359px) { .hdr__wa-long { display: none; } .hdr__wa-short { display: inline; } }
.burger {
  appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 10px 0 10px 4px;
  display: flex; align-items: center; gap: 9px; font: 500 var(--fs-s)/1 var(--text); min-height: 44px; touch-action: manipulation;
}
/* (pass 5) 44 px hit areas for the header's three controls (the WhatsApp link is 32 tall, the logo 28, the burger 26 wide on
   phones): a transparent pseudo-element around each, centred on it; nothing visible moves, and the three never overlap (the
   link and the burger sit 14 px apart, extended by 4 and 9) */
.logo, .hdr__wa, .burger { position: relative; }
.logo::after, .hdr__wa::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 46px; transform: translateY(-50%); }   /* (46: WebKit rounded 44 down to 43) */
.burger::after { content: ""; position: absolute; top: 0; bottom: 0; left: -14px; right: -9px; min-height: 44px; }   /* (pass 7, QA-19: 14 px toward the screen edge, so 44+ wide on phones) */
.burger__i { display: grid; gap: 5px; width: 22px; }
.burger__i i { display: block; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.burger__i i:last-child { width: 14px; justify-self: start; }
@media (max-width: 420px) { .burger__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- full-screen menu: paper, huge type, every word a window ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--paper) url(../assets/paper.webp) 0 0 / 256px 256px; color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui);
}
html.menu-open .menu { opacity: 1; visibility: visible; transition: opacity var(--t-ui) var(--ease-out), visibility 0s; }
html.menu-open { overflow: hidden; }
html.menu-open .hdr { color: var(--ink); z-index: 70; }
html.menu-open .burger__i i:first-child { transform: translateY(3.25px) rotate(45deg); }
html.menu-open .burger__i i:last-child { width: 22px; transform: translateY(-3.25px) rotate(-45deg); }
.menu__in { position: relative; min-height: 100%; padding: calc(var(--hdr) + env(safe-area-inset-top) + 18px) var(--gut) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.menu__k { font: 500 var(--fs-s)/1 var(--text); letter-spacing: .06em; color: var(--ink-3t); margin-bottom: 10px; }
.menu__list { display: grid; gap: 0; }
.menu__list a:focus-visible { outline: none; }
.menu__list a:focus-visible .menu__n { color: var(--ink); }
.menu__list a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; padding: 1px 0; }
.menu__n { display: none; }   /* (pass 2: numbering only in the process steps) */
.menu__w {
  font-size: clamp(50px, 15vw, 104px); line-height: 1.02; color: var(--ink);
  transform-origin: 50% 0; transition: color .3s;
}
/* (pass 7) the words are plain ink, the one you point at turns copper: they were windows into the film, the giant-letter
   language the owner retired */
.menu__list a:focus-visible .menu__w { color: var(--copper-t); }
@media (hover: hover) and (pointer: fine) { .menu__list a:hover .menu__w { color: var(--copper-t); } }
html.menu-open .menu__list li { animation: menuIn 420ms var(--ease-out) both; }
html.menu-open .menu__list li:nth-child(2) { animation-delay: 35ms; } html.menu-open .menu__list li:nth-child(3) { animation-delay: 70ms; }
html.menu-open .menu__list li:nth-child(4) { animation-delay: 105ms; } html.menu-open .menu__list li:nth-child(5) { animation-delay: 140ms; }
html.menu-open .menu__list li:nth-child(6) { animation-delay: 175ms; } html.menu-open .menu__list li:nth-child(7) { animation-delay: 210ms; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px) scaleY(1.2); } to { opacity: 1; transform: none; } }
.menu__list li { transform-origin: 50% 0; }
.menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 18px; }
.menu__guide { font: 500 var(--fs-body)/1.3 var(--text); color: var(--ink-2); }
.menu__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
@media (min-width: 900px) {
  .menu__list { grid-template-columns: 1fr 1fr; column-gap: 6vw; }
  .menu__w { font-size: clamp(56px, 6.8vw, 112px); }
}

/* (the opening is css/hero.css since pass 7; v8's "From sample to floor" is in archive/opening-v8/, the letters flight that
   stood here in archive/flight-c-2026-10-23/) */

/* ---------- the reveal (motion sweep): ONE system for the whole page ----------
   Time-based on every device: js/motion.js adds .is-in once, when an element's top passes 90 % of the screen height (an
   IntersectionObserver, root: document, rootMargin 0 0 -10% 0); common.js does the same if the module never loads. Hidden only
   where scripts run (html.js), so no text stays hidden without them.
     data-in            a block rises: opacity 300 ms + a 12 px rise 400 ms, cubic-bezier(.23,1,.32,1)
     data-in="group"    the same for each direct child, 70 ms apart (the 2nd..6th child: --i 1..5)
     data-in="drop"     a display headline pours in: each line (a direct span) drops 600 ms, 70 ms apart
   A standalone block can wait for the one beside it with --i (n × 70 ms). Never nest one reveal inside another. */
html.js [data-in]:not([data-in="group"]):not([data-in="drop"]),
html.js [data-in="group"] > * {
  opacity: 0; transform: translateY(var(--rise));
  transition: opacity var(--t-fade) var(--ease-out), transform var(--t-rise) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
html.js [data-in].is-in:not([data-in="group"]):not([data-in="drop"]),
html.js [data-in="group"].is-in > * { opacity: 1; transform: none; }
[data-in="group"] > :nth-child(2) { --i: 1; } [data-in="group"] > :nth-child(3) { --i: 2; } [data-in="group"] > :nth-child(4) { --i: 3; }
[data-in="group"] > :nth-child(5) { --i: 4; } [data-in="group"] > :nth-child(n+6) { --i: 5; }
html.js [data-in="drop"] > span:not(.vh) { opacity: 0; transform-origin: 50% 0; }
html.js [data-in="drop"].is-in > span:not(.vh) {
  animation: pourDrop var(--t-word) both; animation-delay: calc(var(--i, 0) * var(--stagger));
}
[data-in="drop"] > :nth-child(2) { --i: 1; } [data-in="drop"] > :nth-child(3) { --i: 2; } [data-in="drop"] > :nth-child(4) { --i: 3; }
/* the brand's one flourish (kept from the "viscous" drop): a line arrives a little stretched and settles; never past rest */
@keyframes pourDrop {
  0% { opacity: 0; transform: translateY(-.2em) scaleY(1.4); animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
  60% { opacity: 1; transform: translateY(0) scaleY(.97); animation-timing-function: cubic-bezier(.77, 0, .175, 1); }
  100% { opacity: 1; transform: none; }
}




/* ---------- reduced motion: calm, still, everything visible ---------- */
/* (transition: none, not a .01ms duration: with transition-property's initial value "all", a tiny duration still makes every
   style change start from the old value for one frame, and the display fitting would measure the old sizes) */
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition: none !important; }
html.rm [data-in], html.rm [data-in] > * { opacity: 1 !important; transform: none !important; }
