/* inareej, site styles
   hand-written, no framework. tokens first, then base, then components.
   the public page follows the datasheet direction: white paper, navy type,
   hairline rules, and motion that reads like a printed spec sheet coming
   together. the team pages (admin.html, cms.html) load this file too, for the
   tokens, base, buttons, and fields, so page rules stay scoped to the public
   page's own classes.
   all comments lowercase, no emojis, no em dashes (house rules). */

/* ---------- tokens ---------- */
:root {
  /* palette taken from the logo: navy, teal, gold on white paper.
     change these to rebrand, nothing below hard-codes a colour of its own. */
  --navy: #152547;            /* logo navy */
  --teal: #169a9c;            /* logo teal, graphics only, too light for text on white */
  --gold: #bf9648;            /* logo gold */

  --ink: var(--navy);         /* text and solid buttons, 15:1 on white */
  --ink-deep: #0f1b35;        /* cta band, footer */
  --ink-raised: #22386a;      /* hover on dark buttons */
  --ink-soft: #4c5870;        /* secondary text, 7.1:1 on white */
  --paper: #ffffff;
  --paper-2: #f3f5f8;         /* alternating band */
  --line: #e1e6ed;
  --line-strong: #c3cbd6;     /* decorative rules only */
  --line-control: #7a8597;    /* borders that mark a control, 3.7:1 on white */
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: var(--gold);      /* fills only, always with navy text on it (5.5:1) */
  --accent-hover: #cca55b;
  --accent-tint: rgba(191, 150, 72, 0.14);
  --link: #0f7173;            /* teal deepened for text on light, 5.8:1 on white */
  --link-tint: rgba(22, 154, 156, 0.13);
  --ok: #1f7a4a;
  --error: #b0413e;
  /* the drafting paper behind the hero */
  --paper-grid: rgba(21, 37, 71, 0.055);
  --paper-grid-major: rgba(21, 37, 71, 0.09);

  /* type */
  --font-display: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  /* motion. strong custom curves, the built-in keywords are too soft.
     ease-out for anything entering or answering a press, ease-in-out for
     things that morph in place. interface motion stays at or under 200ms;
     only the one-off page entrances and scroll-linked explanation run longer. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 160ms;
  --dur-ui: 200ms;
  --dur-exit: 150ms;
  --dur-enter: 600ms;

  /* rhythm */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 72px;
  --radius: 4px;
}

/* ---------- reset-ish base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* anchor jumps land below the sticky header, not under it */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }

/* the hidden attribute must always win, even over display on .btn etc. */
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

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

/* focus rings appear instantly, never animated */
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--accent); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

/* keyboard-only, so it appears instantly. no transition on purpose. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 3px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- shared type helpers ---------- */
.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

.label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.on-dark .eyebrow, .on-dark .label { color: rgba(255, 255, 255, 0.66); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.text-link__arrow {
  display: inline-block;
  transition: transform var(--dur-ui) var(--ease-out);
}

/* ---------- buttons ----------
   press is a scale(0.97). no shimmer sweep: the research flagged it as a
   template tell. */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.95rem 1.6rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-ui) ease,
    border-color var(--dur-ui) ease,
    color var(--dur-ui) ease;
}
/* press feedback: a small scale, never from or to nothing */
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn__arrow { display: inline-block; transition: transform var(--dur-ui) var(--ease-out); }

.btn--accent { background: var(--accent); color: var(--ink); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--ghost { border-color: var(--line-control); color: var(--ink); background: transparent; }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: transparent; }

/* hover only where a real pointer exists, so taps do not leave sticky states */
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: var(--accent-hover); }
  .btn--solid:hover { background: var(--ink-raised); }
  .btn--ghost:hover { border-color: var(--ink); }
  .btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
  .btn:hover .btn__arrow { transform: translateX(3px); }
  .text-link:hover .text-link__arrow { transform: translateX(3px); }
}

/* the fill: a disc behind the label grows out from the arrow on hover and
   floods the face; the label changes colour with it. transform only on the disc. */
.btn--fill { --flood: var(--ink); --flood-text: #fff; }
.on-dark .btn--fill { --flood: #fff; --flood-text: var(--ink); }
.btn__flood {
  position: absolute;
  right: 1.35rem;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--flood);
  z-index: -1;
  transform: scale(0);
  transition: transform 200ms var(--ease-out);
}
.btn__text, .btn--fill .btn__arrow { transition: color var(--dur-ui) ease, transform var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--fill:hover { background: var(--accent); }
  .btn--fill:hover .btn__flood { transform: scale(26); }
  .btn--fill:hover .btn__text, .btn--fill:hover .btn__arrow { color: var(--flood-text); }
}

/* ---------- brand ----------
   the public header and footer use the outlined lockups in assets/logo*.svg.
   the admin header pairs the mark on its own with live text, styled below.
   the logo keeps its own navy, teal, and gold; the site tokens do not touch it. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__logo { display: block; height: 44px; width: auto; }
.site-footer .brand__logo { height: 52px; }
.brand__mark { height: 34px; width: auto; flex: none; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  font-stretch: 112%;
  letter-spacing: 0.05em;
}
.brand__sub {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-top: 0.32rem;
}

/* ---------- notice bar ----------
   a single line above the header, set from the website editor, for things
   like a holiday closure. it scrolls away; the header stays. */
.site-notice {
  background: var(--accent-tint);
  border-bottom: 1px solid rgba(191, 150, 72, 0.4);
}
.site-notice p {
  margin: 0;
  padding-block: 0.65rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(15, 27, 53, 0.35); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.site-nav { position: relative; display: flex; align-items: center; }
.nav-list {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.nav-list a:not(.nav-cta) {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  border-radius: 3px;
}
.nav-list .nav-cta { margin-left: 0.75rem; padding: 0.62rem 1.1rem; font-size: 0.86rem; }

/* a single tinted pill glides to whichever link is under the pointer. it is
   100px wide and scaled to the link, so it moves with transform only. */
.nav-pill {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100px;
  height: 2.2rem;
  margin-top: -1.1rem;
  border-radius: 3px;
  background: var(--paper-2);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-ui) var(--ease-in-out), opacity var(--dur-exit) ease;
}
.nav-pill.is-on { opacity: 1; }
.nav-pill.is-jump { transition: opacity var(--dur-exit) ease; }
/* the gold bar under the link for the section in view */
.spy-bar {
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 1px;
  height: 2px;
  background: var(--gold);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-ui) var(--ease-in-out), opacity var(--dur-ui) ease;
}
.spy-bar.is-on { opacity: 1; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-control);
  border-radius: 3px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-press) var(--ease-out);
}
.nav-toggle:active { transform: scale(0.95); }
/* two bars that morph into a close mark, so the button shows its state */
.nav-toggle__bar {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur-ui) var(--ease-in-out);
}
.nav-toggle__bar:first-child { top: 17px; }
.nav-toggle__bar:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-3px) rotate(-45deg); }

/* the page meter sits on the header's foot. native scroll timeline where the
   browser has one; otherwise js/main.js drives the same transform. */
.scroll-meter {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  z-index: 1;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-meter { animation: meter linear both; animation-timeline: scroll(root); }
  }
}
@keyframes meter { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 4.5rem); }
/* drafting paper: a fine grid with a heavier line every fifth square, fading
   out from the top right. it sits behind the title block, the way a drawing
   sheet carries its grid. */
.hero__paper {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--paper-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid-major) 1px, transparent 1px),
    linear-gradient(var(--paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 85% at 85% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 85% at 85% 20%, #000 20%, transparent 75%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero__title {
  font-size: clamp(2.5rem, 1.1rem + 3.6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 17ch;
  color: var(--ink);
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .w > span { display: inline-block; }
.hero__rule { display: block; width: 96px; height: 3px; background: var(--gold); margin: 1.75rem 0 1.6rem; transform-origin: left; }
.hero__lead { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); max-width: 46ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* the title block: an engineering drawing's corner panel, real facts only */
.titleblock {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.titleblock__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.25rem 1rem; }
.titleblock__head .label { margin: 0; }
.titleblock__mark { width: 74px; height: auto; overflow: visible; }
.mk-tower { transform-box: fill-box; transform-origin: 50% 100%; }
.mk-swoosh { transform-box: fill-box; transform-origin: 0 50%; }
.titleblock__rows { margin: 0; }
.tb-row { position: relative; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; padding: 0.8rem 1.25rem; }
.tb-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); transform-origin: left; }
.tb-row dt { margin: 0; }
.tb-row dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.35; }

/* range links under the hero. hidden if the editor ever publishes no range. */
.hero__range:not(:has(li)) { display: none; }
.hero__range { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.hero__range a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--dur-ui) ease, background-color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out);
}
.hero__range a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .hero__range a:hover { border-color: var(--ink); background: var(--paper-2); }
}

/* entrance. one sheet assembling, about a second and a half end to end,
   seen once per visit. reduced motion keeps a plain fade. */
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow { animation: rise 600ms var(--ease-out) 80ms both; }
  .hero__title .w > span { animation: word-up 800ms var(--ease-out) both; }
  .hero__title .w:nth-child(1) > span { animation-delay: 140ms; }
  .hero__title .w:nth-child(2) > span { animation-delay: 190ms; }
  .hero__title .w:nth-child(3) > span { animation-delay: 240ms; }
  .hero__title .w:nth-child(4) > span { animation-delay: 290ms; }
  .hero__title .w:nth-child(5) > span { animation-delay: 340ms; }
  .hero__title .w:nth-child(6) > span { animation-delay: 390ms; }
  .hero__title .w:nth-child(7) > span { animation-delay: 440ms; }
  .hero__title .w:nth-child(8) > span { animation-delay: 490ms; }
  .hero__rule { animation: grow-x 700ms var(--ease-in-out) 700ms both; }
  .hero__lead { animation: rise 700ms var(--ease-out) 600ms both; }
  .hero__actions { animation: rise 700ms var(--ease-out) 700ms both; }

  .titleblock { animation: fade 400ms ease 250ms both; }
  .mk-t1 { animation: tower 650ms var(--ease-out) 450ms both; }
  .mk-t2 { animation: tower 650ms var(--ease-out) 520ms both; }
  .mk-t3 { animation: tower 650ms var(--ease-out) 590ms both; }
  .mk-s1 { animation: sweep 700ms var(--ease-in-out) 760ms both; }
  .mk-s2 { animation: sweep 700ms var(--ease-in-out) 860ms both; }
  .tb-row::before { animation: grow-x 600ms var(--ease-in-out) both; }
  .tb-row > * { animation: rise 500ms var(--ease-out) both; }
  .tb-row:nth-child(1)::before { animation-delay: 500ms; } .tb-row:nth-child(1) > * { animation-delay: 650ms; }
  .tb-row:nth-child(2)::before { animation-delay: 590ms; } .tb-row:nth-child(2) > * { animation-delay: 740ms; }
  .tb-row:nth-child(3)::before { animation-delay: 680ms; } .tb-row:nth-child(3) > * { animation-delay: 830ms; }
  .tb-row:nth-child(4)::before { animation-delay: 770ms; } .tb-row:nth-child(4) > * { animation-delay: 920ms; }

  .hero__range { animation: fade 500ms ease 950ms both; }
  .hero__range li { animation: rise 500ms var(--ease-out) both; }
  .hero__range li:nth-child(1) { animation-delay: 1000ms; }
  .hero__range li:nth-child(2) { animation-delay: 1040ms; }
  .hero__range li:nth-child(3) { animation-delay: 1080ms; }
  .hero__range li:nth-child(4) { animation-delay: 1120ms; }
  .hero__range li:nth-child(5) { animation-delay: 1160ms; }
  .hero__range li:nth-child(6) { animation-delay: 1200ms; }
  .hero__range li:nth-child(n+7) { animation-delay: 1240ms; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__copy, .titleblock, .hero__range { animation: fade 400ms ease both; }
}
@keyframes word-up { from { transform: translateY(108%); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes tower { from { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } }
@keyframes sweep { from { opacity: 0; transform: translateX(-8px) scaleX(0.6); } }

/* ---------- not found page ---------- */
/* light, so it stands apart from the navy footer, and tall enough that the
   footer never rides up into the middle of the screen */
.notfound__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: min(56vh, 520px);
}
.notfound .eyebrow { margin-bottom: 1.2rem; }
.notfound h1 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 1.2rem;
}
.notfound__lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 2rem;
}
.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
}

/* ---------- sections ---------- */
/* the public page sits above the footer, which is uncovered from underneath */
.site-main { position: relative; z-index: 1; background: var(--paper); }
.section { padding-block: var(--section-y); }
.section-head { max-width: 700px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head h2, .ordering__head h2, .about-copy h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); letter-spacing: -0.02em; }
.section-intro { font-size: 1.1rem; color: var(--ink-soft); margin-top: 1rem; max-width: 52ch; }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; }
.section-head--split .section-intro { margin-top: 0; }

/* ---------- products: ruled list with a sticky drawing panel ---------- */
.products { border-top: 1px solid var(--line); }
.range { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.range__rail { position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.range__fill { position: absolute; left: -0.5px; top: 0; width: 2px; height: 100%; background: var(--gold); transform-origin: center top; }
.range__list { list-style: none; margin: 0; padding: 0; }
.range__item { position: relative; padding: 2rem 0 2rem 2.6rem; border-bottom: 1px solid var(--line); }
.range__item:first-child { padding-top: 0.5rem; }
.range__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.55rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.range__item:first-child::before { top: 1.05rem; }
.range__item h3 { font-size: clamp(1.35rem, 1rem + 1.1vw, 1.8rem); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 0.45rem; }
.range__item p { color: var(--ink-soft); margin: 0; max-width: 46ch; }
/* the icon in each item is only the source for the drawing panel */
.range__icon { display: none; }
/* the items out of focus step back, but stay readable: headings at 0.7
   (about 4.8:1) and body at 0.85 (about 5:1), both on white, so both pass
   aa at any size */
.range__item h3, .range__item p { transition: opacity var(--dur-ui) ease; }
.range.is-armed .range__item:not(.is-active) h3 { opacity: 0.7; }
.range.is-armed .range__item:not(.is-active) p { opacity: 0.85; }
.range__item.is-active::before, .range__item.is-past::before { background: var(--gold); border-color: var(--gold); }

.range__panel { position: sticky; top: calc(var(--header-h) + 2.5rem); display: none; }
.range.is-armed .range__panel { display: block; }
.range__frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); background-color: var(--paper-2); }
.range__art {
  position: absolute;
  inset: 20% 28%;
  width: 44%;
  height: 60%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity var(--dur-ui) ease, transform var(--dur-ui) var(--ease-out);
}
.range__art.is-on { opacity: 1; transform: none; }
.range__caption { margin: 0.9rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.range__caption span { display: inline-block; transition: opacity 120ms ease; }
.range__caption span.is-swapping { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .range__art { transform: none; }
}

.sourcing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  border-radius: var(--radius);
}
.sourcing p { margin: 0; }
.sourcing strong { font-family: var(--font-display); font-weight: 600; }

.brands { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.brands .label { margin: 0 0 1rem; }
.brand-slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}
.brand-slot { height: 76px; border-radius: 3px; }
/* a real brand, set from the website editor: its logo, or its name if there is none */
.brand-slot:not(.placeholder) {
  display: grid;
  place-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
}
.brand-slot img { width: auto; max-width: 100%; max-height: 44px; object-fit: contain; }
.brand-slot--name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
}

/* ---------- ordering: sheets that stack ---------- */
.ordering { background: var(--paper-2); }
.ordering-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ordering__head { position: sticky; top: calc(var(--header-h) + 3rem); }
.sheets { list-style: none; margin: 0; padding: 0; display: grid; gap: 26vh; }
.sheet { position: sticky; top: calc(var(--header-h) + 3rem); }
.sheet:nth-child(2) { top: calc(var(--header-h) + 4.1rem); }
.sheet:nth-child(3) { top: calc(var(--header-h) + 5.2rem); }
.sheet__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14rem;
  gap: 2rem;
  align-items: center;
  min-height: 17rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(15, 27, 53, 0.04), 0 28px 50px -36px rgba(15, 27, 53, 0.35);
  transform-origin: center top;
}
/* as the next sheet slides over, this one settles back and a light shade
   falls on it. js writes the scale and the shade's opacity, on the shade
   itself, so nothing else restyles. */
.sheet__shade { position: absolute; inset: 0; border-radius: inherit; background: var(--ink-deep); opacity: 0; pointer-events: none; }
.sheet h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.6rem; }
.sheet p { color: var(--ink-soft); margin: 0; }

/* the small document on each sheet: a list, then a quote, then a
   confirmation. the items are marked as an example; prices are bars, never
   figures, so nothing here reads as a real quote. */
.doc { position: relative; display: grid; align-content: center; gap: 0.5rem; padding: 1.1rem 0.95rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; font-size: 0.72rem; line-height: 1.3; color: var(--ink); }
.doc__tag { justify-self: start; font-family: var(--font-display); font-size: 0.6rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.2rem; }
.doc__line { position: relative; display: block; padding-right: 2.2rem; white-space: nowrap; }
.doc__line b { font-family: var(--font-display); font-weight: 600; display: inline-block; min-width: 2.6rem; }
.doc--quote .doc__line::after,
.doc--done .doc__line::after { content: ""; position: absolute; right: 0; top: 50%; width: 1.6rem; height: 5px; margin-top: -2.5px; border-radius: 2px; background: var(--gold); transform-origin: right center; }
.doc--done .doc__line { color: var(--ink-soft); }
.doc__tick { position: absolute; right: -0.7rem; bottom: -0.7rem; width: 2.4rem; height: 2.4rem; fill: var(--paper); stroke: var(--ok); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sheets.is-armed .sheet:not(.is-drawn) .doc__line { opacity: 0; transform: translateX(-6px); }
.sheets.is-armed .sheet:not(.is-drawn) .doc__line::after { transform: scaleX(0); }
.sheets.is-armed .sheet:not(.is-drawn) .doc__tick { opacity: 0; transform: scale(0.8); }
.sheets.is-armed .doc__line { transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.sheets.is-armed .doc__line::after { transition: transform 400ms var(--ease-out) 420ms; }
.sheets.is-armed .doc__line:nth-of-type(3) { transition-delay: 70ms; }
.sheets.is-armed .doc__line:nth-of-type(4) { transition-delay: 140ms; }
.sheets.is-armed .doc__line:nth-of-type(5) { transition-delay: 210ms; }
.sheets.is-armed .doc__line:nth-of-type(3)::after { transition-delay: 490ms; }
.sheets.is-armed .doc__line:nth-of-type(4)::after { transition-delay: 560ms; }
.sheets.is-armed .doc__line:nth-of-type(5)::after { transition-delay: 630ms; }
.sheets.is-armed .doc__tick { transition: opacity 250ms ease 760ms, transform 350ms var(--ease-out) 760ms; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy .lead { max-width: 40ch; }
.audience-title { margin: 2rem 0 0.75rem; }
/* a plain ruled list, like a spec sheet */
.audience { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 30rem; }
.audience li { padding-block: 0.6rem; border-bottom: 1px solid var(--line); }
.about-visual { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius); overflow: hidden; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
/* the photo slot opens from a narrow band as it scrolls in */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .about-visual { animation: slot-open linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes slot-open { from { clip-path: inset(44% 16% 44% 16%); } to { clip-path: inset(0); } }

/* ---------- cta band ---------- */
.cta-band { background: var(--ink-deep); color: #fff; }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; padding-block: clamp(4rem, 8vw, 6rem); }
.cta-band__rule { position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 2px; background: var(--gold); }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.4rem); letter-spacing: -0.02em; max-width: 18ch; }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin: 0.8rem 0 0; font-size: 1.1rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-block { padding-block: 1.2rem; border-top: 1px solid var(--line); }
.contact-block:first-child { padding-top: 0; border-top: 0; }
.contact-block .label { margin: 0 0 0.45rem; }
.contact-block p { margin: 0; }
.contact-block address { font-style: normal; font-size: 1.05rem; line-height: 1.55; }
.contact-block a:not(.text-link) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(15, 113, 115, 0.35);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.contact-block .text-link { margin-top: 0.6rem; font-size: 0.92rem; }

/* form */
.contact-form {
  display: grid;
  gap: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field label { font-family: var(--font-display); font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field .hint { font-size: 0.88rem; color: var(--ink-soft); margin: -0.2rem 0 0.1rem; }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;              /* 16px, so ios does not zoom on focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-control);
  border-radius: 3px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 8rem; }
/* focus is mostly keyboard driven, so the ring appears instantly */
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--link-tint);
}
/* only flag errors after the visitor has interacted, never on first load */
.field input:user-invalid, .field textarea:user-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(176, 65, 62, 0.14);
}
.form-note { font-size: 0.9rem; color: var(--ink-soft); min-height: 1.2em; margin: 0; }
.form-note.is-error { color: var(--error); }
.form-note.is-ok { color: var(--ok); }
.contact-form .btn { justify-self: start; }

/* the stateful send button, used while saving to the team inbox: a spinner,
   then a tick wipes in. the label slides aside with a transform, so nothing
   reflows. */
.btn--state { min-width: 11.5rem; }
.btn__label { display: inline-block; transition: opacity 120ms ease, transform var(--dur-ui) var(--ease-out); }
.btn.is-swapping .btn__label { opacity: 0; }
.btn__spinner, .btn__tick { position: absolute; left: 1.1rem; top: 50%; width: 16px; height: 16px; margin-top: -8px; opacity: 0; transition: opacity var(--dur-ui) ease; }
.btn__spinner { border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; }
.btn__tick { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; clip-path: inset(0 100% 0 0); }
.btn--state.is-busy .btn__label, .btn--state.is-done .btn__label { transform: translateX(0.75rem); }
.btn--state.is-busy .btn__spinner { opacity: 1; }
.btn--state.is-done { background: var(--ok); }
.btn--state.is-done .btn__tick { opacity: 1; clip-path: inset(0); transition: opacity 100ms ease, clip-path 320ms var(--ease-out) 80ms; }
@media (prefers-reduced-motion: no-preference) {
  .btn--state.is-busy .btn__spinner { animation: spin 700ms linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--state.is-busy .btn__label, .btn--state.is-done .btn__label { transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* honeypot, kept off-screen rather than display:none so bots still see it */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- blanks to fill in later ----------
   two kinds, both easy to find: grep for class="fill" and "placeholder". */

/* inline text that still needs a real value (phone, hours, terms) */
.fill {
  background: var(--link-tint);
  color: inherit;
  border-bottom: 1px dashed var(--link);
  border-radius: 2px;
  padding: 0 0.25em;
}
.on-dark .fill { background: rgba(22, 154, 156, 0.2); border-bottom-color: #7fd3d4; }

/* a whole image or logo slot */
.placeholder {
  position: relative;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    45deg,
    transparent, transparent 11px,
    rgba(21, 37, 71, 0.05) 11px, rgba(21, 37, 71, 0.05) 22px
  );
  border: 1px dashed var(--line-strong);
}
.placeholder::after {
  content: "placeholder, " attr(data-placeholder);
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  max-width: calc(100% - 1.2rem);
  pointer-events: none;
}
.range__frame.placeholder { background-color: var(--paper-2); }

/* ---------- footer ----------
   on the public page it sits underneath main and is uncovered as the last
   section scrolls away. */
.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-block: clamp(3.5rem, 7vw, 5rem) 1.6rem;
}
.site-main + .site-footer { position: sticky; bottom: 0; z-index: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-legal { margin: 1.2rem 0 0.3rem; color: rgba(255, 255, 255, 0.66); font-size: 0.95rem; }
.footer-ar { font-family: var(--font-ar); font-size: 1rem; color: rgba(255, 255, 255, 0.66); margin: 0; width: fit-content; }
.footer-nav { display: flex; flex-direction: column; gap: 0.7rem; align-items: start; }
.footer-nav a, .footer-meta a { font-family: var(--font-display); font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.footer-meta p { margin: 0 0 0.5rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.66); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.56);
}
.footer-base a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover, .footer-meta a:hover, .footer-base a:hover { color: #fff; }
  .contact-block a:not(.text-link):hover { text-decoration-color: currentColor; }
}

/* ---------- scroll reveal ----------
   js/main.js adds .is-pending only to elements that start below the fold, and
   only once it is running. with js off, or if it fails, nothing is hidden.
   the value of data-reveal picks the entrance. .is-revealing carries the
   transition for the one reveal, then js removes it so the element's own
   transitions are never overridden. */
.is-pending { opacity: 0; transform: translateY(16px); }
.is-pending[data-reveal="fade"] { transform: none; }
.is-pending[data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
.is-revealing {
  transition:
    opacity var(--dur-enter) var(--ease-out),
    transform var(--dur-enter) var(--ease-out),
    clip-path 900ms var(--ease-in-out);
}
/* split headings: each word rides up out of its own mask */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-w > span { display: inline-block; }
.is-split-pending .split-w > span { transform: translateY(110%); }
.is-split-run .split-w > span { transition: transform 800ms var(--ease-out); }
/* reduced motion keeps the fades and drops the travel */
@media (prefers-reduced-motion: reduce) {
  .is-pending { transform: none !important; clip-path: none !important; }
  .is-split-pending .split-w > span { transform: none; }
}
@media print {
  .is-pending { opacity: 1; transform: none; clip-path: none; }
  .scroll-meter { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .titleblock { max-width: 30rem; }
  .section-head--split { grid-template-columns: 1fr; }
  .range { grid-template-columns: 1fr; }
  .range.is-armed .range__panel { display: none; }
  .brand-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ordering-grid { grid-template-columns: 1fr; }
  .ordering__head { position: static; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: 16 / 10; }
  .cta-band__inner { flex-direction: column; align-items: start; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-pill, .spy-bar { display: none; }
  .nav-list {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(320px, calc(100vw - 2 * var(--gutter)));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 40px -28px rgba(15, 27, 53, 0.45);
    padding: 0.5rem 1.2rem 1.2rem;
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96) translateY(-6px);
    /* closing is quicker than opening; visibility flips after the fade */
    transition:
      opacity var(--dur-exit) ease-out,
      transform var(--dur-exit) var(--ease-out),
      visibility 0s linear var(--dur-exit);
  }
  .nav-list.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity var(--dur-ui) var(--ease-out),
      transform var(--dur-ui) var(--ease-out),
      visibility 0s;
  }
  .nav-list li { border-top: 1px solid var(--line); }
  .nav-list li:first-child { border-top: 0; }
  .nav-list li:last-child { border-top: 0; padding-top: 0.8rem; }
  .nav-list a:not(.nav-cta) { display: block; padding: 0.85rem 0; }
  .nav-list .nav-cta { width: 100%; margin: 0; }
  .sheets { gap: 1.25rem; }
  .sheet, .sheet:nth-child(2), .sheet:nth-child(3) { position: static; }
  .sheet__inner { grid-template-columns: 1fr; }
  .doc { max-width: 15rem; }
  .site-main + .site-footer { position: static; }
}
/* without js the toggle cannot work, so the links simply wrap under the brand */
@media (max-width: 820px) and (scripting: none) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: wrap; padding-block: 0.8rem; }
  .nav-list { position: static; width: auto; flex-direction: row; flex-wrap: wrap; gap: 0.2rem 1.2rem; padding: 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-list li { border: 0; }
  .nav-list li:last-child { padding-top: 0; }
  .nav-list a:not(.nav-cta) { padding: 0.3rem 0; }
  .nav-list .nav-cta { width: auto; }
}
@media (max-width: 640px) {
  .brand-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tb-row { grid-template-columns: 5.5rem minmax(0, 1fr); }
}
