/* ===== tokens.css ===== */
/* tokens.css — filled from toolkit/tokens.template.css with Direction 1 (Beniamin).
   Palette from 2-brand-directions.md §0 (contrast computed there and re-checked by the builder).
   Brand names first, toolkit role names mapped onto them. No gradients, no gold. */
:root {
  color-scheme: light;

  /* ---- brand palette (2-brand-directions.md §0) ---- */
  --char: #2A1F1A;        /* charred wood: ink, text, marks          12.98:1 on lavash */
  --lavash: #F3E6CC;      /* lavash cream: page paper                                   */
  --salt: #FBF8F2;        /* salt white: cards, fields                                  */
  --ember: #C4532A;       /* tonir ember: large display (>=24px) and the leaf only       */
  --ember-deep: #A8421E;  /* links, button fill (salt on it 5.72:1)                      */
  --ember-press: #8F3618; /* pressed/hover state of --ember-deep (salt on it 7.31:1)     */
  --ash: #6B5B4E;         /* secondary text, 5.26:1 on lavash, 6.13:1 on salt            */
  --wine: #7E2433;        /* ONE element only: the toast card (salt on it 9.06:1)        */
  --lavash-dim: #C8B79A;  /* secondary text on --char, 8.17:1                            */

  /* ---- toolkit roles ---- */
  --bg: var(--lavash);
  --fg: var(--char);
  --fg-2: var(--ash);
  --accent: var(--ember-deep);
  --ok: var(--char);
  --rule: #D5C3A2;        /* hairlines only, never text */
  --surface: var(--salt);
  --fg-rgb: 42 31 26;

  /* ---- type (2-brand-directions.md §0: Noto Serif Armenian + Noto Serif; Noto Sans for UI) ---- */
  --font-display: "Noto Serif", "Noto Serif Armenian", Georgia, "Times New Roman", serif;
  --font-body: "Noto Serif", "Noto Serif Armenian", Georgia, "Times New Roman", serif;
  --font-ui: "Noto Sans", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Noto Sans", "Noto Sans Armenian", system-ui, sans-serif;
  --text: 1.0625rem;
  --leading: 1.6;
  --measure: 36em;
  --display-opsz: 48;

  /* ---- space (8-px grid) ---- */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px; --s-6: 48px; --s-8: 64px; --s-12: 96px; --s-16: 128px;
  --gutter: 16px;
  --container: 1200px;

  /* ---- radius: one value, everywhere ---- */
  --radius: 2px;

  /* ---- motion (toolkit) ---- */
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-split: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --rise-distance: 24px;
  --rise-duration: 1.3s;
  --rise-delay-lead: 600ms;
  --rise-delay-actions: 700ms;
  --reveal-distance: 8px;
  --reveal-duration: 600ms;
  --reveal-step: 70ms;
  --split-step: 40ms;
  --split-duration: 0.9s;
  --scribble-duration: 1.5s;
  --scribble-width: 14;
  --parallax-travel: 24px;
  --motion-min-width: 760px;

  --object-size: 420px;
  --halo-alpha-1: 0.04;
  --halo-alpha-2: 0.025;
  --halo-alpha-3: 0.015;

  --bar-h: 64px;   /* mobile sticky action bar */
  --head-h: 64px;  /* desktop sticky header */
}
@media (min-width: 760px) { :root { --gutter: 32px; --text: 1.125rem; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* ===== site.css ===== */
/* site.css — Beniamin pre-opening site. Reads tokens.css only.
   Identity = the linocut prints, laid on lavash paper like proofs on a table.
   Breaks the Kentron cell's conventions (1a §B): no photo slider, no gold on black,
   no italic-accent "premium" headings, no About/Menu/Gallery/Contact nav, no card grid. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (min-width: 760px) { html { scroll-padding-top: calc(var(--head-h) + 12px); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text);
  line-height: var(--leading);
  font-kerning: normal;
  overflow-x: hidden;
}
body:lang(hy) { line-height: 1.72; }
/* no body padding for the bar: the bar hides itself while the footer is on screen (site.js) */

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ember-press); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
[lang="hy"] { font-feature-settings: "kern" 1; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--char); color: var(--salt); font-family: var(--font-ui); border-radius: var(--radius); }
.skip:focus { top: 8px; color: var(--salt); }

/* ---------- symbols ---------- */
.ico-leaf { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- header ---------- */
.head { background: var(--bg); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
@media (min-width: 760px) { .head { position: sticky; top: 0; } }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 56px; }
@media (min-width: 760px) { .head-row { min-height: var(--head-h); } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--fg); }
.brand img { width: 34px; height: 34px; display: block; }
.brand-words { display: grid; line-height: 1; }
.wm { font-family: "Noto Serif Armenian", var(--font-display); font-weight: 800; font-stretch: 87.5%; font-size: 1.375rem; letter-spacing: 0.005em; }
.wm-lat { font-family: var(--font-ui); font-size: 0.625rem; letter-spacing: 0.32em; text-transform: uppercase; margin-top: 4px; color: var(--fg-2); }
.chapters { display: none; }
@media (min-width: 1180px) {
  .chapters { display: flex; gap: 2px; font-family: var(--font-ui); font-size: 0.8125rem; }
  .chapters a { color: var(--fg-2); text-decoration: none; padding: 8px 10px; border-radius: var(--radius); }
  .chapters a:hover, .chapters a[aria-current="true"] { color: var(--fg); background: rgb(var(--fg-rgb) / 0.06); }
}
.lang { display: flex; align-items: center; font-family: var(--font-ui); font-size: 0.875rem; }
.lang a { color: var(--fg-2); text-decoration: none; padding: 10px 6px; min-width: 32px; text-align: center; }
.lang a[aria-current="page"] { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--ember); }
.lang span { color: var(--rule); }
.head .btn { display: none; }
@media (min-width: 760px) { .head .btn { display: inline-flex; min-height: 40px; padding: 8px 16px; font-size: 0.875rem; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 22px;
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem; line-height: 1.25; text-align: center;
  text-decoration: none; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ember-deep); color: var(--salt); }
.btn-primary:hover { background: var(--ember-press); color: var(--salt); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--salt); }
.dark .btn-ghost { color: var(--lavash); border-color: var(--lavash); }
.dark .btn-ghost:hover { background: var(--lavash); color: var(--char); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { font-family: var(--font-ui); font-weight: 600; font-size: 0.9375rem; display: inline-flex; gap: 8px; align-items: center; padding: 10px 0; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }
.dark .link-arrow { color: var(--lavash); }

/* ---------- section scaffolding ---------- */
.sec { padding-block: 64px; position: relative; }
@media (min-width: 760px) { .sec { padding-block: 112px; } }
.dark { background: var(--char); color: var(--lavash); }
.dark a:not(.btn) { color: var(--lavash); }
.salt { background: var(--salt); }
.kicker { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.kicker:lang(hy) { text-transform: none; letter-spacing: 0.04em; font-size: 0.875rem; }
.kicker .num { font-family: var(--font-display); font-weight: 800; font-stretch: 87.5%; font-size: 1.75rem; letter-spacing: 0; color: var(--ember); line-height: 1; }
.dark .kicker { color: var(--lavash-dim); }
.h2 { font-weight: 800; font-stretch: 87.5%; font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.012em; margin-bottom: 24px; max-width: 18em; }
.h2:lang(hy) { line-height: 1.16; letter-spacing: 0; }
.prose { max-width: var(--measure); }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--fg-2); }
.dark .muted { color: var(--lavash-dim); }
.small { font-size: 0.9375rem; }
.ui { font-family: var(--font-ui); }

/* ---------- prints (the illustrations) ---------- */
.print { margin: 0; }
.print picture, .print img { display: block; width: 100%; height: auto; }
.print img { background: var(--lavash); box-shadow: 0 1px 2px rgb(var(--fg-rgb) / .14), 0 22px 44px -26px rgb(var(--fg-rgb) / .55); }
.dark .print img { box-shadow: 0 2px 0 rgb(0 0 0 / .25), 0 26px 50px -24px rgb(0 0 0 / .8); }
.print figcaption { margin-top: 12px; font-family: var(--font-ui); font-size: 0.8125rem; color: var(--fg-2); display: flex; gap: 10px; align-items: baseline; }
.print figcaption::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; transform: translateY(-4px); }
.dark .print figcaption { color: var(--lavash-dim); }
@media (min-width: 900px) {
  .tilt-l img { transform: rotate(-1.4deg); }
  .tilt-r img { transform: rotate(1.1deg); }
}

/* ---------- hero ---------- */
.hero { padding-top: 22px; padding-bottom: 56px; }
.hero-grid { display: grid; grid-template-areas: "eyebrow" "h1" "print" "side"; row-gap: 14px; }
.hero .eyebrow { grid-area: eyebrow; margin: 0; font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.hero .eyebrow:lang(hy) { text-transform: none; letter-spacing: 0.04em; font-size: 0.875rem; }
.hero h1 { grid-area: h1; font-weight: 800; font-stretch: 87.5%; font-size: clamp(2.3rem, 10.4vw, 6.6rem); line-height: 1.0; letter-spacing: -0.02em; }
.hero h1:lang(hy) { font-size: clamp(1.8rem, 8.2vw, 6rem); line-height: 1.12; letter-spacing: -0.005em; }
.hero h1:lang(ru) { font-size: clamp(1.8rem, 8.1vw, 6rem); }
.hero h1 .ln { display: block; }
.hero h1 .n { color: var(--ember); }
.hero-print { grid-area: print; margin-inline: calc(var(--gutter) * -1); margin-block: 6px 6px; }
.hero-print img { box-shadow: none; }
.hero-side { grid-area: side; }
.hero .lead { font-size: 1.0625rem; line-height: 1.5; margin-bottom: 10px; max-width: 34em; }
.hero .lead:lang(hy) { line-height: 1.6; }
.hero .stage { font-family: var(--font-ui); font-size: 0.875rem; line-height: 1.5; color: var(--fg-2); margin-bottom: 16px; padding-left: 12px; border-left: 2px solid var(--ember); }
.actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 760px) {
  .hero { padding-top: 48px; padding-bottom: 96px; }
  .hero h1 { font-size: clamp(2.6rem, 8.4vw, 5.4rem); }
  .hero h1:lang(hy) { font-size: clamp(2.3rem, 7.3vw, 4.7rem); }
  .hero h1:lang(ru) { font-size: clamp(2.3rem, 7.4vw, 4.8rem); }
  .hero-grid { grid-template-areas: "eyebrow" "h1" "side" "print"; row-gap: 24px; }
  .hero .lead { font-size: 1.1875rem; }
  .hero-print { margin-inline: 0; margin-top: 16px; }
  .hero-print img { box-shadow: 0 1px 2px rgb(var(--fg-rgb) / .14), 0 30px 60px -34px rgb(var(--fg-rgb) / .6); }
}
@media (min-width: 1100px) {
  .hero { padding-top: 56px; }
  .hero h1 { font-size: clamp(2.6rem, 5.5vw, 5.4rem); }
  .hero h1:lang(hy) { font-size: clamp(2.3rem, 4.75vw, 4.7rem); }
  .hero h1:lang(ru) { font-size: clamp(2.3rem, 4.9vw, 4.8rem); }
  .hero-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-areas: "eyebrow eyebrow" "h1 side" "print print"; column-gap: 48px; row-gap: 24px; align-items: end; }
  .hero h1 { padding-bottom: 4px; }
  .hero-side { padding-bottom: 8px; }
  .hero-print { margin-top: 28px; }
  .actions { display: grid; }
}
@media (min-width: 1300px) { .actions { display: flex; } }

/* ---------- chapter: story ---------- */
.story-grid { display: grid; gap: 40px; }
.story-text p { font-size: 1.1875rem; line-height: 1.6; }
.story-text p:lang(hy) { line-height: 1.75; }
.story-text .closing { font-family: var(--font-display); font-weight: 700; font-stretch: 87.5%; font-size: 1.6rem; line-height: 1.2; margin-top: 28px; }
.story-text .quiet-link { font-family: var(--font-ui); font-size: 0.9375rem; color: var(--fg-2); margin-top: 28px; }
.story-text .quiet-link a { color: var(--fg-2); }
.story-prints { display: grid; gap: 40px; }
.story-prints .print:nth-child(2) { width: 62%; }
.story-share .share { margin-top: 8px; }
@media (min-width: 900px) { .story-share .share { margin-top: 40px; } }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "text prints" "share prints"; grid-template-rows: auto 1fr; column-gap: 64px; align-items: start; }
  .story-text { grid-area: text; } .story-prints { grid-area: prints; } .story-share { grid-area: share; }
  .story-prints { padding-top: 64px; }
  .story-prints { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 32px; }
  .story-prints .print:nth-child(1) { grid-column: 1 / -1; }
  .story-prints .print:nth-child(2) { width: 100%; }
  .story-prints .print:nth-child(3) { width: 100%; margin-top: 96px; }
}

/* ---------- share ---------- */
.share { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); }
.share h3, .share-title { font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 600; margin: 0 0 12px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row a, .share-row button { font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--fg); border-radius: var(--radius); background: transparent; color: var(--fg); text-decoration: none; cursor: pointer; }
.share-row a:hover, .share-row button:hover { background: var(--fg); color: var(--salt); }
.share-row [data-native][hidden] { display: none; }
.share-status { font-family: var(--font-ui); font-size: 0.875rem; color: var(--fg-2); min-height: 1.5em; margin: 8px 0 0; }

/* ---------- chapter: the Gerdastan Table (dark) ---------- */
.table-grid { display: grid; gap: 40px; }
.table-grid .meaning { font-style: italic; color: var(--lavash-dim); margin-bottom: 20px; }
.table-grid .meaning:lang(hy) { font-style: normal; }
.table-grid .offer { font-size: 1.25rem; line-height: 1.5; }
.rites { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 0; }
.rites li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid rgb(243 230 204 / .18); }
.rites li:last-child { border-bottom: 1px solid rgb(243 230 204 / .18); }
.rites .ico-leaf { color: var(--ember); width: 20px; height: 20px; margin-top: 5px; }
.toast-card { background: var(--wine); color: var(--salt); padding: 28px 26px 26px; border-radius: var(--radius); margin: 32px 0; max-width: 30em; box-shadow: 0 24px 40px -24px rgb(0 0 0 / .7); position: relative; }
.toast-card .mark { width: 34px; height: 34px; fill: var(--salt); display: block; margin-bottom: 16px; }
.toast-card .label { font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: .85; margin-bottom: 10px; }
.toast-card .label:lang(hy) { text-transform: none; letter-spacing: 0.04em; font-size: 0.8125rem; }
.toast-card .hy-toast { font-family: "Noto Serif Armenian", var(--font-display); font-weight: 700; font-stretch: 87.5%; font-size: 1.6rem; line-height: 1.3; margin: 0; }
.toast-card .tr { margin: 10px 0 0; font-style: italic; opacity: .9; }
.food { margin: 8px 0 28px; padding: 22px 22px 18px; border: 1px solid rgb(243 230 204 / .35); border-radius: var(--radius); max-width: 34em; }
.food h3 { font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lavash-dim); margin: 0 0 12px; }
.food h3:lang(hy) { text-transform: none; letter-spacing: 0.04em; font-size: 0.875rem; }
.food ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.food li { font-family: var(--font-display); font-weight: 700; font-stretch: 87.5%; font-size: 1.1875rem; line-height: 1.3; padding: 6px 12px; border: 1px solid rgb(243 230 204 / .3); border-radius: var(--radius); }
.food .prices { margin: 0; }
.ask-q { font-family: var(--font-ui); font-size: 0.9375rem; color: var(--fg-2); }
.prices { font-family: var(--font-ui); font-size: 0.9375rem; color: var(--lavash-dim); border-left: 2px solid var(--ember); padding-left: 14px; max-width: 32em; }
.table-prints { max-width: 480px; }
@media (min-width: 900px) {
  .table-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: 72px; align-items: start; }
  .table-prints { margin-left: auto; width: 88%; }
  .toast-card { transform: rotate(-1deg); }
}

/* ---------- chapter: the Wall ---------- */
.wall-grid { display: grid; gap: 40px; }
.wall-board { background: var(--salt); border: 1px solid var(--char); border-radius: var(--radius); padding: 22px 18px; position: relative; }
.wall-board::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); pointer-events: none; }
.wall-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; position: relative; }
.wall-head h3 { font-family: var(--font-ui); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--fg-2); margin: 0; }
.wall-head h3:lang(hy) { text-transform: none; letter-spacing: 0.04em; font-size: 0.875rem; }
.wall-count { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; margin: 0; }
.leaves { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; position: relative; }
.leaf { display: grid; grid-template-rows: auto auto; justify-items: start; gap: 8px; padding: 14px 12px 12px; background: var(--lavash); border-radius: var(--radius); min-height: 150px; }
.leaf .ico-leaf { width: 40px; height: 40px; color: var(--ember); transform: rotate(-18deg); }
.leaf .sn { font-family: var(--font-display); font-weight: 800; font-stretch: 87.5%; font-size: 1.25rem; line-height: 1.15; display: block; overflow-wrap: anywhere; }
.leaf .pl { font-family: var(--font-ui); font-size: 0.875rem; color: var(--fg-2); display: block; }
.leaf .tag { font-family: var(--font-ui); font-size: 0.75rem; color: var(--fg-2); border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 2px; width: 100%; }
.leaf.is-session { background: var(--salt); outline: 1.5px solid var(--char); }
.leaf.is-session .ico-leaf { color: var(--char); }
.leaf.is-empty { background: transparent; border: 1.5px dashed var(--ash); color: var(--fg-2); text-decoration: none; align-content: center; justify-items: center; text-align: center; font-family: var(--font-ui); font-size: 0.9375rem; }
.leaf.is-empty .ico-leaf { color: var(--ash); opacity: .55; }
.leaf.is-empty:hover { border-color: var(--ember-deep); color: var(--ember-deep); }
.wall-text .print { max-width: min(360px, 72%); margin-top: 32px; }
@media (min-width: 900px) {
  .wall-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .wall-board { padding: 30px 28px; }
}

/* ---------- forms (toolkit form.js contract) ---------- */
.form-card { background: var(--salt); border: 1px solid var(--char); border-radius: var(--radius); padding: 22px 18px 24px; margin-top: 24px; }
@media (min-width: 760px) { .form-card { padding: 32px 30px; } }
.form-card h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 87.5%; font-size: 1.5rem; line-height: 1.2; margin: 0 0 6px; }
.commit { font-family: var(--font-ui); font-size: 0.875rem; color: var(--fg-2); margin-bottom: 18px; }
.fields { display: grid; gap: 16px; }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--font-ui); font-size: 0.875rem; font-weight: 600; color: var(--fg); padding: 0; }
.field .opt { font-weight: 400; color: var(--fg-2); }
.field input[type="text"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; font: inherit; font-family: var(--font-ui); font-size: 1rem; color: var(--fg);
  background: #fff; border: 1.5px solid var(--ash); border-radius: var(--radius); appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%), linear-gradient(135deg, var(--fg) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ember); outline-offset: 1px; border-color: var(--char); }
.field [aria-invalid="true"] { border-color: var(--ember-deep); border-width: 2px; }
.field-error { margin: 0; font-family: var(--font-ui); font-size: 0.875rem; color: var(--ember-press); font-weight: 600; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chips label { position: relative; display: inline-flex; font-weight: 500; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--ash); border-radius: var(--radius); background: #fff; font-family: var(--font-ui); font-size: 0.9375rem; }
.chips input:checked + span { background: var(--char); color: var(--salt); border-color: var(--char); }
.chips input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-family: var(--font-ui); font-size: 0.9375rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--char); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: grid; gap: 12px; margin-top: 20px; }
.form-foot .btn { width: 100%; }
@media (min-width: 640px) { .form-foot .btn { width: auto; justify-self: start; } }
.form-status { font-family: var(--font-ui); font-size: 0.9375rem; margin: 0; min-height: 1.4em; }
.form-status[data-state="error"] { color: var(--ember-press); font-weight: 600; }
.fine { font-family: var(--font-ui); font-size: 0.8125rem; color: var(--fg-2); margin: 0; }
.success { background: var(--salt); border: 1.5px solid var(--char); border-radius: var(--radius); padding: 24px 20px; margin-top: 24px; }
.success:focus { outline: none; }
.success:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
.form-card > .success { border: 0; padding: 0; margin-top: 0; background: transparent; }
.success .share-title { font-family: var(--font-ui); font-weight: 600; font-size: 0.9375rem; display: block; margin: 0 0 12px; }
.success h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 87.5%; font-size: 1.5rem; margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.success h3 .ico-leaf { color: var(--ember); width: 26px; height: 26px; }
.success .share { margin-top: 20px; }

/* ---------- chapter: ways to gather (a bill of fare, not a card grid) ---------- */
.ways-head { display: grid; gap: 8px; margin-bottom: 24px; }
.way { display: grid; grid-template-columns: minmax(0, 1fr) 38%; grid-template-areas: "name pic" "text text"; column-gap: 16px; row-gap: 10px; padding: 32px 0; border-top: 1.5px solid var(--char); }
.way:last-of-type { border-bottom: 1.5px solid var(--char); }
.way-name { grid-area: name; }
.way-name h3 { font-weight: 800; font-stretch: 87.5%; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.1; }
.way-name .line { font-style: italic; color: var(--fg-2); margin: 8px 0 0; }
.way-name .line:lang(hy) { font-style: normal; }
.way-text { grid-area: text; }
.way-text p { margin-bottom: 6px; }
.way-pic { grid-area: pic; align-self: start; }
.way--wide { grid-template-columns: 1fr; grid-template-areas: "name" "text" "pic"; }
.way--wide .way-pic { margin-top: 12px; }
.way--plain { grid-template-columns: 1fr; grid-template-areas: "name" "text"; }
.way-num { font-family: var(--font-display); font-weight: 800; font-stretch: 87.5%; color: var(--ember); font-size: 5rem; line-height: .8; display: none; }
@media (min-width: 900px) {
  .way { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); grid-template-areas: "name text pic"; column-gap: 48px; padding: 44px 0; }
  .way--wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "name pic" "text pic"; grid-template-rows: auto 1fr; align-items: start; }
  .way--wide .way-pic { margin-top: 0; }
  .way--plain { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); grid-template-areas: "name text num"; }
  .way-num { display: block; grid-area: num; justify-self: center; align-self: center; }
}

/* ---------- chapter: who we are (dark) ---------- */
.eleven-grid { display: grid; gap: 40px; }
.names { list-style: none; margin: 8px 0 36px; padding: 0; columns: 2; column-gap: 24px; font-family: var(--font-display); font-weight: 700; font-stretch: 87.5%; font-size: clamp(1.5rem, 4.2vw, 2.4rem); line-height: 1.3; }
.names li { break-inside: avoid; }
.names li:nth-child(odd) { color: var(--lavash); }
.names li:nth-child(even) { color: var(--lavash-dim); }
.voice { font-size: 1.375rem; line-height: 1.5; max-width: 26em; margin-bottom: 8px; }
.sign { font-style: italic; color: var(--lavash-dim); }
.sign:lang(hy) { font-style: normal; }
@media (min-width: 900px) {
  .eleven-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; align-items: center; }
  .names { columns: 3; }
}

/* ---------- chapter: reserve ---------- */
.reserve .sticky-head .prose { margin-top: 8px; }
.reserve .form-card { margin-top: 0; }
@media (max-width: 759px) { .reserve .form-card { margin-top: 8px; } }

/* ---------- footer ---------- */
.foot { background: var(--char); color: var(--lavash); padding: 56px 0 40px; font-family: var(--font-ui); font-size: 0.9375rem; }
.foot a { color: var(--lavash); }
.foot-grid { display: grid; gap: 28px; }
.foot-brand { display: flex; gap: 16px; align-items: center; }
.foot-brand svg { width: 56px; height: 56px; fill: var(--lavash); flex: none; }
.foot-brand .wm { font-size: 2rem; display: block; }
.foot-brand .sign { font-family: var(--font-display); font-size: 1rem; display: block; margin-top: 4px; }
.foot p { margin: 0 0 6px; }
.foot .placeholder { color: var(--lavash-dim); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; padding: 0; margin: 0; }
.foot-links a { display: inline-block; padding: 8px 0; }
.foot .lang a { color: var(--lavash-dim); }
.foot .lang a[aria-current="page"] { color: var(--lavash); }
.foot .lang span { color: rgb(243 230 204 / .3); }
.foot .fine { color: var(--lavash-dim); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 5fr 4fr 3fr; column-gap: 48px; } }

/* ---------- mobile action bar (1c 1.11) ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--char); box-shadow: 0 -8px 24px -12px rgb(0 0 0 / .5); transition: transform .3s var(--ease-out-cubic); }
.bar .btn { flex: 1 1 0; min-height: 48px; padding: 10px 12px; font-size: 0.9375rem; }
.bar .btn-ghost { color: var(--lavash); border-color: var(--lavash); }
.js .bar[data-hidden="true"] { transform: translateY(115%); }
@media (min-width: 760px) { .bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }

/* ---------- single-column pages: quiet, privacy ---------- */
.page { padding: 40px 0 88px; }
@media (min-width: 760px) { .page { padding: 72px 0 120px; } }
.page .col { max-width: 40rem; margin-inline: auto; }
.page h1 { font-weight: 600; font-stretch: 87.5%; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; margin: 16px 0 28px; }
.page h2 { font-weight: 700; font-size: 1.25rem; margin: 36px 0 10px; }
.back { font-family: var(--font-ui); font-size: 0.9375rem; color: var(--fg-2); text-decoration: none; display: inline-flex; gap: 8px; padding: 8px 0; }
.back::before { content: "←"; }
.quiet .print { max-width: 420px; margin: 0 0 36px; }
.quiet .print img { box-shadow: 0 1px 2px rgb(var(--fg-rgb) / .1); }
.quiet p { font-size: 1.125rem; }
.quiet .once { font-style: italic; }
.quiet .once:lang(hy) { font-style: normal; }
.quiet .btn-quiet { background: transparent; color: var(--fg); border: 1.5px solid var(--fg); }
.quiet .btn-quiet:hover { background: var(--fg); color: var(--salt); }
.quiet .form-card { border-color: var(--rule); }
.quiet .fine { font-size: 0.8125rem; }
.quiet .fine a { color: var(--fg-2); }

/* ===== motion.css ===== */
/* motion.css — one-shot, gated motion for a static launch page.
   Reads tokens from tokens.css. Requires motion.js (adds .js to <html>,
   runs the observer). Rules:
   - every hidden initial state sits behind `.js`, so the page is complete with JS off;
   - only transform / opacity / stroke-dashoffset animate;
   - nothing loops; every effect is one-shot;
   - `prefers-reduced-motion: reduce` removes all of it;
   - decorative motion (rise, scribble, parallax) is off below --motion-min-width.
   Ported techniques (source: optifly-src/TEARDOWN.md §9, files cited inline):
   1 hero load choreography  2 scroll reveal + stagger  3 scribble ring
   7 scroll-driven micro-parallax  8 retracting underline  10 word-split heading */

/* ---------- 1. Hero load choreography (Hero.astro:83-105) ----------
   Mark the hero's elements in order:  .rise  .rise.rise-lead  .rise.rise-actions
   (or set --rise-delay inline). Delays 0 / 600 / 700 ms, backwards fill. */
@keyframes tk-rise {
  from { opacity: 0; transform: translateY(var(--rise-distance, 24px)); }
}
@media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
  .js .rise {
    animation: tk-rise var(--rise-duration, 1.3s) var(--ease-out-cubic) var(--rise-delay, 0ms) backwards;
  }
  .js .rise-lead    { --rise-delay: var(--rise-delay-lead, 600ms); }
  .js .rise-actions { --rise-delay: var(--rise-delay-actions, 700ms); }
}

/* ---------- 2. One-shot scroll reveal with sibling stagger (global.css:405-417, index.astro:61-81) ----------
   Add .reveal to any element. For staggered siblings set style="--i: n" on each;
   delay = --i × --reveal-step. motion.js adds .is-visible once at 88% of viewport. */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance, 8px));
  transition:
    opacity var(--reveal-duration, 600ms) var(--ease-out-cubic),
    transform var(--reveal-duration, 600ms) var(--ease-out-cubic);
  transition-delay: var(--reveal-delay, calc(var(--i, 0) * var(--reveal-step, 70ms)));
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 3. Scribble ring around one word (System.astro:69-80, 118-152) ----------
   <em class="scribble">once<svg viewBox="0 0 800 350" preserveAspectRatio="none" aria-hidden="true">
     <path pathLength="1" d="…"/></svg></em>
   Put data-reveal on an ancestor (motion.js marks it .is-visible); the ring draws then.
   Default path (a loose hand-drawn loop) is in the README. */
.scribble { position: relative; padding: 0 0.04em; font-style: inherit; }
.scribble svg {
  position: absolute; top: 4%; left: -10%; z-index: -1;
  width: 120%; height: 100%; max-width: none; overflow: visible;
  pointer-events: none;
}
.scribble path {
  fill: none;
  stroke: var(--accent);
  stroke-width: var(--scribble-width, 14);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
@media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-visible) .scribble path { stroke-dashoffset: 1; }
  .js [data-reveal].is-visible .scribble path {
    transition: stroke-dashoffset var(--scribble-duration, 1.5s) var(--ease-draw);
    transition-delay: var(--scribble-delay, 0ms);
  }
}

/* ---------- 7. Scroll-driven micro-parallax (global.css:372-403) ----------
   Wrapper gets .parallax-host (the timeline), the moving child gets .parallax.
   Longhands + a separate animation-timeline rule so minifiers do not merge it away.
   Zero JS; only where the browser supports view(). One element per page. */
@keyframes tk-parallax {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(var(--parallax-travel, 24px) * -1)); }
}
@supports (animation-timeline: view()) {
  @media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
    .parallax-host { view-timeline-name: --tk-view; }
    .parallax {
      animation-name: tk-parallax;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-duration: 1ms; /* ignored by a scroll timeline; keeps validators quiet */
    }
    .parallax-host .parallax { animation-timeline: --tk-view; }
  }
}

/* ---------- 8. Retracting hairline underline (Footer.astro:102-118) ----------
   Add .ul to a link. The 1px rule retracts to the right on hover, redraws from the left. */
.ul {
  position: relative;
  text-decoration: none;
}
.ul::after {
  content: "";
  position: absolute; right: 0; bottom: -1px; left: 0; height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.15, 0.75, 0.5, 1);
}
.ul:hover::after, .ul:focus-visible::after {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.23, 0.46, 0.4, 1);
}

/* ---------- 10. Word-split heading reveal (SectionIntro.astro:26-51, global.css:419-443) ----------
   <h2 data-split data-reveal="bottom">The deal, in full</h2>
   motion.js wraps each word in .split-word > .split-word-inner with --i.
   The .1em padding guard keeps descenders from clipping. */
.split-word {
  display: inline-block;
  margin-bottom: -0.1em;
  padding-bottom: 0.1em;
  overflow: hidden;
  vertical-align: top;
}
.split-word-inner { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal="bottom"]:not(.is-visible) .split-word-inner {
    opacity: 0;
    transform: translateY(1.1em);
  }
  .js [data-reveal="bottom"].is-visible .split-word-inner {
    transition:
      opacity var(--split-duration, 0.9s) var(--ease-split),
      transform var(--split-duration, 0.9s) var(--ease-split);
    transition-delay: calc(var(--i, 0) * var(--split-step, 40ms));
  }
}

/* ---------- reduced motion: everything static ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .rise { animation: none; }
  .scribble path { stroke-dashoffset: 0 !important; transition: none !important; }
  .split-word-inner { opacity: 1 !important; transform: none !important; transition: none !important; }
  .parallax { animation: none !important; }
  .ul::after { transition: none; }
}

/* ===== layout.css ===== */
/* layout.css — sticky heading beside a scrolling list.
   Source: optifly-src Difference.astro:181-191, Contact.astro:222-227 (36.07% / 1fr). */

/* ---------- 6. Sticky heading + scrolling list ----------
   <section class="sticky-grid">
     <div class="sticky-head"><h2>…</h2><p>…</p></div>
     <ol class="sticky-list">…</ol>
   </section>
   Below 760px it is a single column. --sticky-top is the offset below any fixed bar. */
.sticky-grid { display: grid; gap: 24px; }
.sticky-head { align-self: start; }
@media (min-width: 760px) {
  .sticky-grid { grid-template-columns: 36% minmax(0, 1fr); gap: 48px; }
  .sticky-head { position: sticky; top: var(--sticky-top, 24px); }
}
