/* ============================================================
   ASAAS · أساس · architecture education community
   Paper, ink, signal yellow. A drafting hologram lives behind
   the page; the type reads like statements on a studio wall.
   No italics. No filler. Big numerals, hairlines, yellow marks.
   ============================================================ */

:root {
  --paper: #fcfbf7;
  --ink: #26282e;
  --ink-78: rgba(38, 40, 46, 0.78);
  --ink-45: rgba(38, 40, 46, 0.45);
  --hair: rgba(38, 40, 46, 0.14);
  --hair-soft: rgba(38, 40, 46, 0.06);
  --sun: #ffc805;
  --sun-soft: rgba(255, 200, 5, 0.16);
  --max: 1240px;
  --pad: clamp(1.2rem, 4vw, 3rem);
  --disp: "Space Grotesk", "Cairo", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--hair-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair-soft) 1px, transparent 1px);
  background-size: 88px 88px;
  color: var(--ink);
  font-family: "Archivo", "Cairo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sun); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .statement, .ch-num { font-family: var(--disp); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .statement { font-family: "Cairo", sans-serif; line-height: 1.35; }

/* ---------- fixed 3D scene: the one object behind everything ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}
#scene.ready { opacity: 1; }

/* ---------- skip link + keyboard focus ---------- */
.skip-link {
  position: fixed;
  top: 0.6rem;
  inset-inline-start: 0.6rem;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--disp);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  transform: translateY(-260%);
  transition: transform 0.2s ease;
}
.skip-link:focus-visible { transform: none; }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.site-footer :where(a):focus-visible,
.nav-cta:focus-visible,
.btn:not(.ghost):focus-visible,
.c-btn:focus-visible,
.skip-link:focus-visible {
  outline-color: var(--sun);
}
main:focus { outline: none; }

/* ---------- model build bar ---------- */
#buildbar {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  background: var(--sun);
  z-index: 60;
  transition: width 0.25s ease, opacity 0.6s ease 0.35s;
  pointer-events: none;
}
#buildbar.done { opacity: 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.85rem var(--pad);
  transition: background 0.25s, box-shadow 0.25s;
}
.site-header.scrolled {
  background: rgba(252, 251, 247, 0.96);
  box-shadow: 0 1px 0 var(--hair);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.05em;
}
.brand img {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: #fff;
}
.brand .a { color: var(--sun); }
.brand .arabic {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-45);
  margin-inline-start: 0.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-inline-start: auto;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-78);
  padding: 0.25rem 0;
  border-bottom: 3px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--sun); }
.site-nav .nav-cta {
  color: var(--paper);
  background: var(--ink);
  padding: 0.55rem 1.05rem;
  border-bottom: none;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
.site-nav .nav-cta:hover { background: var(--sun); color: var(--ink); }

.lang-switch { display: flex; gap: 0.15rem; }
.lang-switch button {
  appearance: none;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-45);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: var(--ink); border-bottom-color: var(--sun); }

.burger {
  display: none;
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--hair);
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.2s, top 0.2s;
}
.burger span { top: 21px; }
.burger span::before { top: -7px; left: 0; }
.burger span::after { top: 7px; left: 0; }
.burger.open span { background: transparent; }
.burger.open span::before { top: 0; transform: rotate(45deg); }
.burger.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- stage rail ---------- */
.stage-rail {
  position: fixed;
  inset-inline-end: clamp(1rem, 2.4vw, 2.4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  transition: opacity 0.4s ease;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
}
[dir="rtl"] .stage-rail { letter-spacing: 0; }
body.rail-off .stage-rail { opacity: 0; pointer-events: none; }
.stage-rail li { display: flex; align-items: center; gap: 0.55rem; transition: color 0.3s; }
.stage-rail li::before {
  content: "";
  width: 9px; height: 9px;
  border: 1px solid var(--ink-45);
  transition: background 0.3s, border-color 0.3s;
}
.stage-rail li.done { color: var(--ink-78); }
.stage-rail li.done::before { background: var(--ink-78); border-color: var(--ink-78); }
.stage-rail li.now { color: var(--ink); }
.stage-rail li.now::before { background: var(--sun); border-color: var(--ink); }

/* ---------- layout primitives ---------- */
main { position: relative; z-index: 1; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; }

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 20ch;
}
[dir="rtl"] h2 { letter-spacing: 0; }
.lead { color: var(--ink-78); font-size: 1rem; max-width: 50ch; margin-bottom: 1rem; }

.mark {
  background: linear-gradient(transparent 8%, var(--sun) 8%, var(--sun) 88%, transparent 88%);
  padding-inline: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* chapter heading: drawing-set title block */
.ch-head {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--sun);
  margin-bottom: 1.4rem;
  font-family: var(--disp);
}
.sheet-no {
  display: flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: var(--sun);
  border-inline-end: 1px solid var(--ink);
}
.ch-word {
  display: flex;
  align-items: center;
  padding: 0.42rem 0.9rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.sheet-meta {
  display: flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  font-size: 0.72rem;
  color: var(--ink-45);
  border-inline-start: 1px solid var(--hair);
  white-space: nowrap;
}
[dir="rtl"] .ch-word { letter-spacing: 0.02em; }
@media (max-width: 520px) { .sheet-meta { display: none; } }

/* ---------- reveal ---------- */
.reveal, .panel { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease, translate 1.05s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.in, .panel.in { opacity: 1; transform: none; }

/* cards, quotes and contact rows arrive one by one inside their reveal */
.panel .pack, .reveal .member, .reveal .quote, .panel .contact-list li {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.55s ease, translate 0.55s ease;
}
.panel.in .pack, .reveal.in .member, .reveal.in .quote, .panel.in .contact-list li {
  opacity: 1;
  translate: 0 0;
}
.panel.in .pack:nth-child(2), .reveal.in .member:nth-child(2),
.reveal.in .quote:nth-child(2), .panel.in .contact-list li:nth-child(2) { transition-delay: 0.12s; }
.panel.in .pack:nth-child(3), .reveal.in .member:nth-child(3),
.reveal.in .quote:nth-child(3), .panel.in .contact-list li:nth-child(3) { transition-delay: 0.24s; }
.panel.in .pack:nth-child(4), .reveal.in .member:nth-child(4),
.reveal.in .quote:nth-child(4) { transition-delay: 0.36s; }
.reveal.in .member:nth-child(5), .reveal.in .quote:nth-child(5) { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .panel { opacity: 1; transform: none; transition: none; }
  .panel .pack, .reveal .member, .reveal .quote, .panel .contact-list li,
  .step .s-idx, .step .statement, .step .detail {
    opacity: 1; translate: none; transition: none;
  }
}

/* ---------- text opposite the model ----------
   JS measures each block's spare room into --travel and flags the body
   with .model-at-start while the maquette occupies the inline-start half;
   the block then glides across so text and model always swap halves. */
.hero-inner, .ch-col { transition: translate 1.05s cubic-bezier(0.22, 0.61, 0.36, 1); }
body.model-at-start .hero-inner,
body.model-at-start .ch-col,
body.model-at-start .panel { translate: var(--travel, 0px) 0; }
[dir="rtl"] body.model-at-start .hero-inner,
[dir="rtl"] body.model-at-start .ch-col,
[dir="rtl"] body.model-at-start .panel { translate: calc(-1 * var(--travel, 0px)) 0; }
@media (prefers-reduced-motion: reduce) {
  .hero-inner, .ch-col { transition: none; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
}
.hero-inner { max-width: 720px; }
/* empty seat the header brand starts scaled into; JS sets its height to
   the brand's aspect ratio and drives the docking on scroll */
.hero-brand-slot { width: clamp(190px, 21vw, 320px); margin-bottom: 1.1rem; }
.site-header .brand { transform-origin: top left; will-change: transform; }
.hero h1 {
  font-size: clamp(2.5rem, 5.8vw, 4.7rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.25; }
.hero .sub {
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  color: var(--ink-78);
  max-width: 40ch;
  margin-bottom: 2.1rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 1rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn:hover { background: var(--sun); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--sun); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.4rem, 3.5vw, 3rem);
  justify-content: start;
  border-top: 1px solid var(--hair);
  padding-top: 1.5rem;
}
.stats b {
  display: block;
  font-family: var(--disp);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
}
.stats span { font-size: 0.88rem; color: var(--ink-78); max-width: 17ch; display: block; }

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  inset-inline-end: var(--pad);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
}
[dir="rtl"] .scroll-hint { letter-spacing: 0.02em; }
.scroll-hint .tick {
  width: 1px; height: 42px;
  background: var(--ink-45);
  position: relative;
  overflow: hidden;
}
.scroll-hint .tick::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--sun);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop { to { top: 110%; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint .tick::after { animation: none; } }

/* ---------- scrollytelling chapters ---------- */
.chapter { height: calc(var(--steps) * 46vh + 100vh); }
.chapter .pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 94px; /* keep pinned content clear of the fixed header */
  overflow: hidden;
}
/* the wraps sit in flex parents (.hero, .pin) and would shrink-wrap;
   full width keeps the glide distance (--travel) meaningful */
.hero .wrap, .pin .wrap { width: 100%; }
.ch-col {
  width: 620px;
  max-width: 100%;
  position: relative;
  /* a tight, soft halo: just enough paper behind the type; the maquette
     itself fades out before it reaches the text half */
  background: rgba(252, 251, 247, 0.8);
  box-shadow: 0 0 34px 16px rgba(252, 251, 247, 0.8);
}
/* side placement is driven by body.model-at-start (see "text opposite the
   model" above), so columns glide across when the maquette swaps halves */

.ch-sub { color: var(--ink-78); font-weight: 600; margin-bottom: 1.4rem; }

.steps { position: relative; min-height: 46vh; }
.step {
  position: absolute;
  inset-inline: 0;
  top: 0;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.step.on { opacity: 1; transform: none; pointer-events: auto; }

/* inside a step the pieces arrive one by one: number, statement, detail */
.step .s-idx, .step .statement, .step .detail {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.5s ease, translate 0.5s ease;
}
.step.on .s-idx, .step.on .statement, .step.on .detail { opacity: 1; translate: 0 0; }
.step.on .statement { transition-delay: 0.14s; }
.step.on .detail { transition-delay: 0.32s; }

.statement {
  font-family: var(--disp);
  font-size: clamp(1.45rem, 2.7vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
[dir="rtl"] .statement { font-family: "Cairo", sans-serif; letter-spacing: 0; line-height: 1.4; font-weight: 800; max-width: 16em; }
.detail {
  margin-top: 1rem;
  font-size: 0.98rem;
  color: var(--ink-78);
  max-width: 44ch;
}
.step > div { flex: 1; }

.s-idx {
  font-family: var(--disp);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--sun);
  flex: none;
  transform: translateY(-0.3rem);
}

/* stacked floors chapter: rows accumulate, current one lights up */
.ch-title { margin-bottom: 1.4rem; }
.floors-live { border-top: 1px solid var(--hair); }
.floors-live .step {
  position: static;
  opacity: 0.25;
  transform: none;
  transition: opacity 0.4s ease, background 0.3s ease;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--hair);
  pointer-events: auto;
}
.floors-live .step.on { opacity: 0.7; }
.floors-live .step.now { opacity: 1; background: #fff; }
.floors-live .tag {
  align-self: start;
  width: 2.6rem;
  text-align: center;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding-block: 0.28rem;
  transition: background 0.3s;
}
.floors-live .step.now .tag { background: var(--sun); }
.floors-live h3 { font-size: 1rem; font-weight: 700; }
.floors-live p { font-size: 0.9rem; color: var(--ink-78); }
.floors-live .steps, .floors-live { min-height: 0; }
#method .steps { position: static; min-height: 0; }

.callout { max-width: 22ch; }

/* ---------- panels (packs / contact) ---------- */
section#packs, section#team, section#feedback, section#contact {
  padding-block: clamp(4rem, 9vw, 8rem);
}
.panel {
  position: relative;
  background: rgba(252, 251, 247, 0.95);
  border: 1px solid var(--ink-45);
  padding: clamp(1.8rem, 4vw, 3.4rem);
  max-width: 720px;
}
/* text takes one half of the screen, the model takes the other;
   the glide itself comes from body.model-at-start + --travel */
/* drawing-sheet inner frame */
.panel::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--hair);
  pointer-events: none;
}

/* ---------- packs ---------- */
.pack-group { margin-top: 2rem; }
.pack-group + .pack-group { margin-top: 2.6rem; }
.pack-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
}
.pack-group-name { font-family: var(--disp); font-size: 1.45rem; font-weight: 800; }
.pack-group-meta {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-78);
}
[dir="rtl"] .pack-group-meta { letter-spacing: 0.02em; }
.pack-group .packs-grid { margin-top: 1rem; }
.pack-req {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  background: var(--sun);
  border: 1px solid var(--ink);
  color: var(--ink);
}
.pack-req.is-opt { background: transparent; border-style: dashed; color: var(--ink-78); }
[dir="rtl"] .pack-req { letter-spacing: 0.02em; }
.pack-wide { grid-column: 1 / -1; }
.packs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.8rem;
}
.pack {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hair);
  padding: 1.5rem;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.pack::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 14px; height: 14px;
  background: var(--sun);
  border-inline-start: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.pack:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--sun); border-color: var(--ink); }
.pack h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.4rem; }
.pack p { font-size: 0.92rem; color: var(--ink-78); }
.pack-meta {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.pack-days {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-78);
}
[dir="rtl"] .pack-days { letter-spacing: 0.02em; }
.pack-price { font-family: var(--disp); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.pack-price s { font-weight: 600; font-size: 0.9rem; color: var(--ink-45); margin-inline-end: 0.35rem; }
.pack-bundle { background: var(--sun); border-color: var(--ink); }
.pack-bundle::before { background: var(--ink); }
.pack-bundle .pack-meta { border-top-color: rgba(38, 40, 46, 0.3); }
.pack-bundle:hover { box-shadow: 5px 5px 0 var(--ink); }

.beyond {
  margin-top: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1.7rem;
  display: grid;
  gap: 0.5rem;
}
.beyond .tag {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sun);
  padding: 0.28rem 0.6rem;
}
[dir="rtl"] .beyond .tag { letter-spacing: 0.02em; }
.beyond h3 { font-size: 1.4rem; font-weight: 700; }
.beyond p { color: rgba(252, 251, 247, 0.78); font-size: 0.92rem; max-width: 52ch; }

.packs-foot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.packs-foot .note { font-size: 0.92rem; color: var(--ink-78); max-width: 32ch; }

/* ---------- team: floating cards ---------- */
#team .head { max-width: 720px; margin-bottom: 3rem; }
#team .head, #feedback .head {
  background: rgba(252, 251, 247, 0.75);
  box-shadow: 0 0 30px 14px rgba(252, 251, 247, 0.75);
}
.float-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.2rem;
}
.member {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hair);
  padding: 1.7rem 1.3rem 1.4rem;
  text-align: center;
  width: 205px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.member:nth-child(2n) { margin-top: 2.6rem; }
.member:nth-child(4) { margin-top: 1.2rem; }
.member:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: 0 14px 0 -8px var(--sun);
}
.member .pic {
  width: 104px; height: 104px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 2px solid var(--ink);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
}
.member .pic.mono {
  background: var(--sun);
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.6rem;
}
.member .pic img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.05rem; font-weight: 700; }
.member .role {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sun-soft);
  display: inline-block;
  padding: 0.15rem 0.5rem;
  margin-top: 0.45rem;
}
[dir="rtl"] .member .role { letter-spacing: 0.02em; }
.member .subrole { font-size: 0.88rem; color: var(--ink-78); margin: 0.4rem 0 0.8rem; }
.member a {
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--sun);
  padding-bottom: 0.1rem;
  /* IG handles are LTR tokens; keep the @ in front even in Arabic */
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.member a:hover { background: var(--sun-soft); }

/* ---------- feedback carousel ---------- */
#feedback .head { max-width: 720px; margin-bottom: 2.2rem; }
.carousel { position: relative; }
.track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: 0.6rem 1.2rem;
  padding-inline: max(calc((100vw - var(--max)) / 2 + var(--pad)), 1.2rem);
  scrollbar-width: none;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
.track::-webkit-scrollbar { display: none; }
.track.dragging { scroll-snap-type: none; cursor: grabbing; }
.quote {
  flex: none;
  width: min(420px, 78vw);
  scroll-snap-align: center;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--hair);
  padding: 1.7rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.quote:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: 0 14px 0 -8px var(--sun); }
.quote .qmark {
  font-family: Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.55;
  color: var(--sun);
}
.quote .qmark::before { content: "\201C"; }
[dir="rtl"] .quote .qmark::before { content: "\00AB"; } /* « for Arabic */
.quote blockquote { font-size: 1rem; font-weight: 500; flex: 1; }
.quote figcaption {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-78);
  border-top: 1px solid var(--hair);
  padding-top: 0.8rem;
}
[dir="rtl"] .quote figcaption { letter-spacing: 0; }

.c-nav {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  margin-top: 0.4rem;
}
.c-btn {
  appearance: none;
  width: 52px; height: 52px;
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.c-btn:hover { background: var(--sun); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.chev {
  width: 12px; height: 12px;
  border-top: 3px solid var(--paper);
  border-right: 3px solid var(--paper);
  transition: border-color 0.18s;
}
.c-btn:hover .chev { border-color: var(--ink); }
.chev.next { transform: rotate(45deg); }
.chev.prev { transform: rotate(-135deg); }
[dir="rtl"] .chev.next { transform: rotate(-135deg); }
[dir="rtl"] .chev.prev { transform: rotate(45deg); }

/* ---------- questions ---------- */
section#faq { padding-block: clamp(4rem, 9vw, 8rem); }
.faq-list { margin-top: 1.6rem; border-top: 1px solid var(--ink-45); }
.fq { border-bottom: 1px solid var(--hair); }
.fq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0.2rem;
  cursor: pointer;
  list-style: none;
}
.fq summary::-webkit-details-marker { display: none; }
.fq-q {
  flex: 1;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
}
.fq-mark {
  flex: none;
  width: 24px; height: 24px;
  border: 1px solid var(--ink);
  background: var(--paper);
  position: relative;
  transition: background 0.2s;
}
.fq-mark::before, .fq-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.fq-mark::before { left: 5px; right: 5px; top: 10.5px; height: 2px; }
.fq-mark::after { top: 5px; bottom: 5px; left: 10.5px; width: 2px; }
.fq summary:hover .fq-mark { background: var(--sun); }
.fq[open] .fq-mark { background: var(--sun); }
.fq[open] .fq-mark::after { display: none; }
.fq-a {
  padding: 0 0.2rem 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-78);
  max-width: 60ch;
}
.faq-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--sun);
  padding-bottom: 0.1rem;
}
.faq-more:hover { background: var(--sun-soft); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.contact-list { list-style: none; display: grid; gap: 1.3rem; }
.contact-list .k {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-78);
  display: block;
  margin-bottom: 0.25rem;
}
[dir="rtl"] .contact-list .k { letter-spacing: 0.02em; }
.contact-list a { font-size: 1.15rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--sun); }
.contact-list a:hover { background: var(--sun-soft); }
.phone-note { direction: ltr; unicode-bidi: embed; }
.social-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.social-row a {
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--hair);
  background: #fff;
  padding: 0.5rem 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.social-row a:hover { border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--sun); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(252, 251, 247, 0.16);
}
.site-footer .brand { color: var(--paper); margin-bottom: 0.8rem; }
.site-footer .brand .arabic { color: rgba(252, 251, 247, 0.6); }
.site-footer p { font-size: 0.92rem; color: rgba(252, 251, 247, 0.66); max-width: 34ch; }
.site-footer h4 {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 0.9rem;
}
[dir="rtl"] .site-footer h4 { letter-spacing: 0.02em; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.site-footer ul a { text-decoration: none; color: rgba(252, 251, 247, 0.78); }
.site-footer ul a:hover { color: var(--sun); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1.3rem;
  font-size: 0.84rem;
  color: rgba(252, 251, 247, 0.5);
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stage-rail { display: none; }
}

/* nav collapses early enough for the longer Turkish and Arabic labels */
@media (max-width: 1160px) {
  .site-nav {
    position: fixed;
    top: 81px;
    inset-inline: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--pad) 1.4rem;
    gap: 0.4rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.6rem 0; border-bottom: 1px solid var(--hair-soft); }
  .site-nav .nav-cta { text-align: center; margin-top: 0.6rem; }
  .burger { display: block; margin-inline-start: auto; }
  .lang-switch { margin-inline-start: auto; }
}

@media (max-width: 900px) {
  #scene.ready { opacity: 0.55; }
  /* model is centered behind the page here, nothing to swap with */
  .hero-inner, .ch-col, .panel { translate: none !important; }
  .lang-switch { margin-inline-start: 0; }
  .brand .arabic { display: none; }
  .scroll-hint { display: none; }
  .hero { padding-top: 7.5rem; align-items: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .ch-col { width: auto; max-width: none; margin-inline: 0; }
  .steps { min-height: 54vh; }
  .packs-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .member { width: calc(50% - 0.7rem); }
  .member:nth-child(2n) { margin-top: 1.4rem; }
}

@media (max-width: 520px) {
  .stats { gap: 1.1rem; }
  .s-idx { display: none; }

  /* team: compact horizontal cards, photo beside the text */
  #team .head { margin-bottom: 1.8rem; }
  .member,
  .member:nth-child(2n),
  .member:nth-child(4) { width: 100%; margin-top: 0; }
  .member {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 1rem;
    align-items: center;
    text-align: start;
    padding: 0.85rem 1rem;
  }
  .member .pic {
    grid-row: 1 / 5;
    width: 64px; height: 64px;
    margin: 0;
  }
  .member .pic.mono { font-size: 1.15rem; }
  .member h3 { font-size: 1rem; }
  .member .role { justify-self: start; font-size: 0.7rem; margin-top: 0.25rem; }
  .member .subrole { margin: 0.25rem 0 0.35rem; font-size: 0.82rem; }
  .member a { justify-self: start; font-size: 0.8rem; }

  /* footer: brand and sitemap full-width, links flow in rows,
     social and contact share one row; everything tighter */
  .site-footer { padding: 2.2rem 0 1rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 1.2rem;
    padding-bottom: 1.5rem;
  }
  .footer-grid > div:nth-child(1),
  .footer-grid > div:nth-child(2) { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(2) ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.15rem;
  }
  .site-footer h4 { margin-bottom: 0.5rem; }
  .site-footer p { font-size: 0.85rem; }
  .footer-bottom { font-size: 0.78rem; padding-top: 1rem; }
}

/* ============================================================
   cart + packs sub-page
   ============================================================ */

/* buy buttons on pack cards */
.pack-buy {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}
.add-btn {
  font-size: 0.82rem;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
}
.add-btn.added { background: var(--sun); color: var(--ink); }
.pack-bundle .add-btn { background: var(--ink); color: var(--paper); }
.pk-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* floating cart button (main page) */
.cart-fab {
  position: fixed;
  inset-inline-end: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--sun);
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
}
.cart-fab.show { display: inline-flex; }
.cart-fab .cart-count {
  min-width: 1.5em;
  text-align: center;
  background: var(--ink);
  color: var(--sun);
  font-size: 0.85rem;
  padding: 0.1rem 0.35rem;
}

/* packs page frame */
body[data-page="packs"] { background-color: var(--paper); }
.pk-header {
  background: rgba(252, 251, 247, 0.96);
  box-shadow: 0 1px 0 var(--hair);
}
.pk-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-inline-start: auto; }
.pk-nav a { text-decoration: none; color: var(--ink-78); font-weight: 600; font-size: 0.92rem; }
.pk-nav a:hover { color: var(--ink); }
.pk-cart-link { color: var(--ink); }
.pk-cart-count {
  display: inline-block;
  min-width: 1.4em;
  text-align: center;
  background: var(--ink);
  color: var(--sun);
  font-size: 0.8rem;
  padding: 0.05rem 0.3rem;
  margin-inline-start: 0.25rem;
}
.pk-main { padding-top: 5.4rem; }
.pk-hero .wrap, .pk-section .wrap { max-width: var(--max); margin-inline: auto; padding: 2.2rem var(--pad); }
.pk-hero h1 {
  font-family: var(--disp);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  margin: 0.8rem 0 0.4rem;
}
.pk-hero .lead, .pk-section .lead { color: var(--ink-78); max-width: 62ch; }
.pk-steps {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pkstep;
  display: grid;
  gap: 0.55rem;
  max-width: 60ch;
}
.pk-steps li { counter-increment: pkstep; display: flex; gap: 0.7rem; align-items: baseline; }
.pk-steps li::before {
  content: counter(pkstep, decimal-leading-zero);
  font-family: var(--disp);
  font-weight: 700;
  color: var(--ink);
  background: var(--sun);
  padding: 0 0.4rem;
  font-size: 0.85rem;
}
.pk-legend {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-78);
}
.pk-legend-item { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.pk-section { border-top: 1px solid var(--hair); }
.pk-variant-note { font-size: 0.82rem; color: var(--ink-78); margin-top: 0.35rem; }

/* cart + invoice tables */
.pk-empty { color: var(--ink-78); padding: 1rem 0; }
.pk-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hair);
}
.pk-table th, .pk-table td {
  text-align: start;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.pk-table th {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-78);
}
[dir="rtl"] .pk-table th { letter-spacing: 0.02em; }
.pk-num { text-align: end; white-space: nowrap; }
.pk-num s { color: var(--ink-45); font-weight: 600; margin-inline-end: 0.3rem; }
.pk-row-contents { display: block; color: var(--ink-45); font-size: 0.8rem; margin-top: 0.2rem; }
.pk-remove {
  border: 1px solid var(--hair);
  background: none;
  width: 1.7rem; height: 1.7rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink-78);
}
.pk-remove:hover { border-color: var(--ink); color: var(--ink); background: var(--sun); }
.pk-table tfoot td { border-bottom: none; border-top: 1px dashed var(--hair); font-weight: 600; }
.pk-table .pk-disc td { color: var(--ink-78); border-top: none; }
.pk-table .pk-total td {
  border-top: 2px solid var(--ink);
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.15rem;
}
.pk-note { margin-top: 0.9rem; font-size: 0.88rem; color: var(--ink-78); max-width: 62ch; }
.pk-note.ok { color: var(--ink); background: var(--sun-soft); padding: 0.5rem 0.8rem; display: inline-block; }
.pk-cart-actions { margin-top: 1.4rem; }

/* checkout form */
.pk-form { margin-top: 1.6rem; max-width: 46rem; display: grid; gap: 1.3rem; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pk-form label { display: grid; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; }
.pk-form input, .pk-form textarea, .pk-form select {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}
.pk-form input:focus-visible, .pk-form textarea:focus-visible, .pk-form select:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 1px;
  border-color: var(--ink);
}
.f-choice { border: 1px solid var(--hair); padding: 1rem 1.1rem; display: grid; gap: 0.5rem; }
.f-choice legend {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 0.4rem;
}
[dir="rtl"] .f-choice legend { letter-spacing: 0.02em; }
.f-choice label { display: flex; align-items: baseline; gap: 0.55rem; font-weight: 600; }
.f-choice input { accent-color: var(--ink); }
.f-note { font-size: 0.82rem; color: var(--ink-78); margin-inline-start: 1.6rem; }
#pay-cash-label.is-disabled { color: var(--ink-45); }
.f-variant { max-width: 26rem; }
.f-err { color: #b0402f; font-weight: 700; }

/* invoice */
.pk-invoice {
  margin-top: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ink);
  padding: 1.6rem;
  max-width: 46rem;
}
.pk-inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.pk-inv-cust { margin-top: 0.8rem; display: grid; gap: 0.2rem; font-size: 0.95rem; }
.pk-inv-notes { margin-top: 0.8rem; font-size: 0.9rem; color: var(--ink-78); white-space: pre-wrap; }
.pk-inv-actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.pk-inv-actions .btn { font-size: 0.88rem; padding: 0.7rem 1.1rem; cursor: pointer; }

.pk-foot { border-top: 1px solid var(--hair); margin-top: 2rem; }
.pk-foot .wrap { max-width: var(--max); margin-inline: auto; padding: 1.6rem var(--pad); }
.pk-foot a { color: var(--ink); }
.pk-foot .note { font-size: 0.85rem; color: var(--ink-78); margin-top: 0.3rem; }

/* the packs page has no burger: keep its nav a simple inline row at all widths */
@media (max-width: 1160px) {
  .pk-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    background: none;
    border-bottom: none;
    padding: 0;
    gap: 0.5rem 1rem;
  }
  .pk-nav a { border-bottom: none; padding: 0.25rem 0; }
  .pk-nav .nav-cta { margin-top: 0; text-align: start; padding: 0.45rem 0.9rem; }
}
@media (max-width: 720px) {
  /* minimal header: brand + languages on one line, back + cart below */
  .pk-header {
    position: static;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    padding: 0.5rem 1.1rem;
  }
  .pk-header .brand { font-size: 0.95rem; gap: 0.4rem; }
  .pk-header .brand img { width: 30px; height: 30px; }
  .pk-header .brand .arabic { display: none; }
  .pk-header .lang-switch { order: 2; margin-inline-start: auto; }
  .pk-header .lang-switch button { font-size: 0.72rem; padding: 0.25rem 0.35rem; }
  .pk-nav {
    order: 3;
    flex-basis: 100%;
    gap: 0.3rem 0.8rem;
    font-size: 0.78rem;
    justify-content: space-between;
  }
  /* the section links are noise on a page this short */
  .pk-nav a[href="#base"], .pk-nav a[href="#concept"] { display: none; }
  .pk-nav .nav-cta { padding: 0.3rem 0.6rem; }
  .pk-cart-count { font-size: 0.7rem; min-width: 1.2em; }
  .pk-main { padding-top: 0.2rem; }

  /* calmer page: no drafting grid, no decorative sheet chrome */
  body[data-page="packs"] { background-image: none; }
  .pk-hero .ch-head, .pk-legend, .pk-variant-note, .pk-main .sheet-no { display: none; }

  .pk-hero .wrap, .pk-section .wrap { padding: 1.6rem 1.1rem; }
  .pk-hero h1 { font-size: 1.45rem; margin: 0 0 0.35rem; }
  .pk-hero .lead, .pk-section .lead { font-size: 0.86rem; }
  .pk-steps { margin-top: 1rem; gap: 0.5rem; }
  .pk-steps li { font-size: 0.84rem; gap: 0.5rem; }
  .pk-steps li::before { font-size: 0.72rem; }
  .pk-main .ch-head { margin-bottom: 1.1rem; box-shadow: 2px 2px 0 var(--sun); }
  .pk-main .ch-word { font-size: 0.7rem; padding: 0.34rem 0.6rem; letter-spacing: 0.1em; }
  [dir="rtl"] .pk-main .ch-word { letter-spacing: 0.02em; }
  /* keep the dates tag; hide the decorative brand tags */
  .pk-main .sheet-meta { display: flex; font-size: 0.62rem; padding: 0.34rem 0.5rem; }
  .pk-main .sheet-meta:not([data-i18n]) { display: none; }

  .pk-main .packs-grid { margin-top: 0.9rem; gap: 0.9rem; }
  .pk-main .pack { padding: 1.1rem; }
  .pk-main .pack h3 { font-size: 0.94rem; margin-bottom: 0.3rem; }
  .pk-main .pack p { font-size: 0.83rem; }
  .pk-variant-note { font-size: 0.76rem; }
  .pk-main .pack-meta { margin-top: 0.7rem; padding-top: 0.55rem; }
  .pk-main .pack-price { font-size: 1rem; }
  .pk-main .pack-price s { font-size: 0.8rem; }
  .pk-main .pack-req { font-size: 0.6rem; padding: 0.18rem 0.4rem; }
  .pk-main .pack-days { font-size: 0.62rem; }
  .pk-main .pack-buy { margin-top: 0.7rem; gap: 0.5rem 0.8rem; }
  .pk-main .add-btn { font-size: 0.76rem; padding: 0.45rem 0.75rem; }
  .pk-more { font-size: 0.78rem; }

  .pk-table th { font-size: 0.62rem; }
  .pk-table th, .pk-table td { padding: 0.5rem 0.55rem; font-size: 0.85rem; }
  .pk-row-contents { font-size: 0.72rem; }
  .pk-table .pk-total td { font-size: 1rem; }
  .pk-note { font-size: 0.8rem; }
  .pk-empty { font-size: 0.88rem; }
  .pk-cart-actions .btn, .pk-form .btn { font-size: 0.85rem; padding: 0.75rem 1.1rem; }

  .f-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .pk-form { margin-top: 1rem; gap: 0.9rem; }
  .pk-form label { font-size: 0.84rem; }
  .pk-form input, .pk-form textarea, .pk-form select { padding: 0.55rem 0.65rem; font-size: 0.9rem; }
  .f-choice { padding: 0.75rem 0.85rem; }
  .f-choice legend { font-size: 0.68rem; }
  .f-choice label { font-size: 0.84rem; }
  .f-note { font-size: 0.76rem; margin-inline-start: 1.3rem; }

  .pk-invoice { padding: 1rem; }
  .pk-inv-head, .pk-inv-cust { font-size: 0.86rem; }
  .pk-inv-actions { gap: 0.5rem; }
  .pk-inv-actions .btn { font-size: 0.76rem; padding: 0.55rem 0.8rem; }
  .pk-foot .wrap { padding: 1.2rem 1rem; }
  .pk-foot { font-size: 0.85rem; }
}

/* print: only the order summary */
@media print {
  body[data-page="packs"] > .pk-header,
  body[data-page="packs"] .pk-hero,
  body[data-page="packs"] #base,
  body[data-page="packs"] #concept,
  body[data-page="packs"] #cart,
  body[data-page="packs"] #checkout,
  body[data-page="packs"] .pk-foot,
  body[data-page="packs"] .pk-inv-actions { display: none !important; }
  body[data-page="packs"] { background: #fff; }
  body[data-page="packs"] .pk-main { padding-top: 0; }
  .pk-invoice { border-color: #000; max-width: none; }
}

/* ---------- owner dashboard ---------- */
.ad-title { font-family: var(--disp); font-weight: 700; color: var(--ink); }
.ad-small { font-size: 0.8rem; padding: 0.45rem 0.8rem; cursor: pointer; }
.ad-stats { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.2rem 0; }
.ad-card {
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.8rem 1.2rem;
  display: grid;
  min-width: 8.5rem;
}
.ad-card b { font-family: var(--disp); font-size: 1.4rem; }
.ad-card span {
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-78);
}
.ad-filters { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 0.4rem; }
.ad-filters input, .ad-filters select {
  font: inherit; font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.9);
}
.ad-filters input { flex: 1 1 16rem; }
.ad-table td { font-size: 0.9rem; }
.ad-table .ad-status { font: inherit; font-size: 0.85rem; padding: 0.3rem; border: 1px solid var(--hair); background: #fff; }
#ad-table { overflow-x: auto; }
