/* Sukkar — site styles
   The Sukkar identity (Brand Guidelines 09-2026): burgundy and beige, Alexandria throughout, the calligraphic
   logo with its sugar cubes, and the arch. Palette and type live in brand.css. */

:root {
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --display-lh: 1.05;
  --display-track: -0.03em;
}

/* Tracking follows size: Latin display type tightens as it grows; Arabic is joined script and is never tracked. */
:root:lang(ar) {
  --display-lh: 1.4;
  --display-track: 0;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-weight: var(--w-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
:lang(ar) body, body:lang(ar) { line-height: 1.9; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
p { text-wrap: pretty; }

h1, h2 {
  font-family: var(--display);
  font-weight: var(--w-display);
  line-height: var(--display-lh);
  letter-spacing: var(--display-track);
}
h3 { font-weight: var(--w-sub); line-height: 1.3; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .about :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 10;
  background: var(--burgundy); color: #fff; padding: 0.6rem 1rem; border-radius: 999px;
}
.skip:focus { top: 1rem; }

/* ---------- header ---------- */

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
}
/* the logo is 120px wide; phones shrink it (see the max-width: 36rem block below) so the whole header fits */
.brand { display: block; flex: none; padding-block: 0.25rem; }
.brand img { width: 7.5rem; height: auto; }
.top-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); font-size: 0.98rem; font-weight: 400; }
.top-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; white-space: nowrap; transition: opacity 120ms ease-out; }
.top-nav a:active { opacity: 0.55; }
.top-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; text-decoration-color: var(--accent); }
.top-nav .nav-lang {
  padding-inline: 1.1rem; border: 1px solid var(--rose); border-radius: 999px;
  transition: opacity 120ms ease-out, background-color 150ms ease;
}
.top-nav .nav-lang:hover { background: var(--tint); text-decoration: none; }
/* Join us is the one filled button in the header */
.top-nav .nav-join {
  padding-inline: 1.15rem; background: var(--burgundy); color: #fff; border-radius: 999px; font-weight: 500;
  transition: opacity 120ms ease-out, background-color 150ms ease;
}
.top-nav .nav-join:hover { background: var(--wine); text-decoration: none; }
.top-nav .nav-join[aria-current="page"] { background: var(--wine); }

/* ---------- hero ---------- */

/* A full-width band of burgundy under the white header. The content keeps the same 84rem measure as the rest of the page. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(42vw, 31rem);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  background: var(--burgundy); color: #fff;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem);
  padding-inline: max(var(--gutter), calc((100% - 84rem) / 2 + var(--gutter)));
}
.hero-text { max-width: 38rem; }
/* the slogan, in the Arabic display face; on the English page it sits at the start of the line, on the left */
.hero-slogan {
  font-family: var(--display); font-weight: var(--w-display); color: var(--sand);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.4; margin-block-end: 1.25rem;
}
:root:lang(en) .hero-slogan { text-align: left; }
.hero h1 { font-size: clamp(2.5rem, 5.3vw, 4.5rem); text-wrap: balance; }
.hero-p { margin-block-start: 1.4rem; color: var(--sand); font-size: 1.2rem; font-weight: 400; max-width: 32rem; }

.hero-branches { margin-block: 2rem 0; border-block-end: 1px solid var(--rose); }
.hero-branches a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; flex-wrap: wrap;
  padding-block: 0.85rem; border-block-start: 1px solid var(--rose); text-decoration: none;
  transition: background-color 120ms ease-out;
}
.hb-name { font-weight: var(--w-sub); font-size: 1.25rem; line-height: 1.4; }
.hb-status { color: var(--sand); font-size: 0.98rem; font-weight: 400; }
.hero-branches a:active { background: rgba(255, 255, 255, 0.08); }
.hero-branches a:hover .hb-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: var(--sand); }

.is-open { color: var(--ink); }
.hero .is-open { color: #fff; }
.hero .is-open::before { background: var(--sand); }
.is-open::before {
  content: ""; display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%;
  background: var(--accent); margin-inline-end: 0.55em; transform: translateY(-0.08em);
}

.btn {
  display: inline-block; background: var(--burgundy); color: #fff;
  padding: 0.9rem 2.1rem; border-radius: 999px; text-decoration: none; font-weight: 500;
  transition: background-color 0.15s ease, transform 100ms ease-out;
}
.btn:hover { background: var(--wine); }
.btn:active { transform: scale(0.97); }
.hero .btn { background: var(--beige); color: var(--burgundy); }
.hero .btn:hover { background: var(--tint-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 2rem; }
.btn-line { background: transparent; color: var(--burgundy); border: 1px solid var(--rose); }
.btn-line:hover { background: var(--tint); }
.hero .btn.btn-line { background: transparent; color: #fff; border: 1px solid var(--sand); }
.hero .btn.btn-line:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.hero-where { margin-block-start: 0.75rem; }

/* The arch, with a thin ring around it, set off from the picture by the padding. */
.hero-photo, .about-art {
  position: relative; isolation: isolate;
  padding: clamp(0.55rem, 1.2vw, 0.9rem);
  border-radius: 999px 999px 0 0;
}
.hero-photo::before, .about-art::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  border: 1px solid var(--rose); border-block-end: 0;
}
.hero-photo picture {
  display: block; border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--wine);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }

/* ---------- photo strip ---------- */

.strip { background: var(--tint); padding-block: clamp(1.25rem, 3vw, 2.25rem); }
.strip ul {
  display: flex; gap: 0.75rem; overflow-x: auto; padding: 0 var(--gutter) 0.75rem;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--rose) transparent;
}
.strip li { flex: none; scroll-snap-align: center; }
.strip img { height: clamp(13rem, 30vw, 22rem); width: auto; max-width: none; }

/* ---------- menu ---------- */

.menu { padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); }
.menu-card {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 4rem);
  max-width: 78rem; margin-inline: auto;
}
.menu-head {
  grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding-block-end: 1.5rem; margin-block-end: 2.5rem; border-block-end: 1px solid var(--rule);
}
.menu-head h2 { font-size: clamp(2.8rem, 6vw, 5rem); }
.menu-head p { color: var(--ink-soft); }

.menu-index ul { position: sticky; top: 1.5rem; display: grid; gap: 0.1rem; }
.menu-index a {
  display: block; padding: 0.3rem 0; padding-inline-start: 0.9rem; border-inline-start: 2px solid transparent;
  color: var(--ink-soft); text-decoration: none;
}
.menu-index a:hover { color: var(--ink); }
.menu-index a:active { opacity: 0.55; }
.menu-index a[aria-current] { color: var(--ink); font-weight: 500; border-inline-start-color: var(--accent); }

.cat { scroll-margin-top: 1.5rem; }
.cat + .cat { margin-block-start: 3rem; }
.cat h3 { font-size: 1.75rem; color: var(--accent); margin-block-end: 0.75rem; }

.items { columns: 2 17rem; column-gap: clamp(2rem, 4vw, 3.5rem); }
.items li { break-inside: avoid; padding-block: 0.42rem; }
.i-row { display: flex; align-items: baseline; gap: 0.6rem; }
.i-name { font-weight: 500; }
.i-dots { flex: 1; min-width: 1.5rem; border-block-end: 1px dotted var(--rose); transform: translateY(-0.28em); }
.i-price { font-variant-numeric: tabular-nums; font-weight: 500; direction: ltr; }
.i-note { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; max-width: 34rem; margin-block-start: 0.15rem; }

/* ---------- about: on burgundy, the logo standing in an arch ---------- */

.about {
  background: var(--burgundy); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6rem);
  align-items: end; padding: clamp(3.5rem, 8vw, 7rem) var(--gutter) 0;
}
.about-copy { padding-block-end: clamp(3rem, 7vw, 6rem); }
.about h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); text-wrap: balance; max-width: 22ch; }
.about-text p { margin-block-start: 1.25rem; color: var(--sand); font-size: 1.15rem; max-width: 27rem; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; max-width: 28rem; margin-block-start: clamp(2rem, 4vw, 3rem); }
.about-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.about-art { width: min(100%, 30rem); justify-self: center; padding-block-end: 0; }
.about-arch {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--beige);
}
.about-arch img { width: 74%; height: auto; flex: none; }

/* ---------- branches ---------- */

.branches { padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); }
.branches h2 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); max-width: 84rem; margin-inline: auto; margin-block-end: clamp(2rem, 4vw, 3.5rem); text-wrap: balance; }
.branch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3rem; max-width: 84rem; margin-inline: auto; }
.branch-grid[data-count="1"] { grid-template-columns: minmax(0, 28rem); }
.branch-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.branch { padding-inline: clamp(1.25rem, 3vw, 2.75rem); border-inline-start: 1px solid var(--rule); scroll-margin-top: 2rem; }
.branch:nth-child(3n + 1) { padding-inline-start: 0; border-inline-start: 0; }
.branch-grid[data-count="2"] .branch:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
.branch-grid[data-count="2"] .branch:nth-child(even) { padding-inline-start: clamp(1.25rem, 3vw, 2.75rem); border-inline-start: 1px solid var(--rule); }
.branch h3 { font-size: 1.9rem; }
.b-address { color: var(--ink-soft); margin-block-start: 0.3rem; }
.b-live { margin-block-start: 1.1rem; font-weight: 500; }
.b-live.is-closed { color: var(--ink-soft); }
.branch dl { margin-block-start: 1.1rem; }
.branch dt { color: var(--accent); font-weight: 500; font-size: 0.95rem; }
:root:lang(en) .branch dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.b-actions { display: grid; justify-items: start; margin-block-start: 1rem; }
.b-actions a {
  padding-block: 0.55rem; /* a full-height tap target; the link text stays inline */
  color: var(--accent); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: rgba(122, 26, 44, 0.45);
}
.b-actions a:hover { text-decoration-color: currentColor; }
.b-actions a:active { opacity: 0.55; }

/* ---------- footer: burgundy, with the white logo (provisional in the guidelines) ---------- */

.foot { background: var(--burgundy); color: #fff; padding: clamp(2rem, 4vw, 3.25rem) var(--gutter) 1.25rem; }
.foot :focus-visible { outline-color: #fff; }
.foot-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem 1rem; flex-wrap: wrap;
  max-width: 84rem; margin-inline: auto; padding-block-end: clamp(1.25rem, 3vw, 2rem);
}
/* The logo and the Instagram link are one column at the end; the contact block is at the start. */
.foot-brand { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; gap: 1rem; margin-inline-start: auto; } /* logo at the top, Instagram at the bottom, next to the last number */
.foot-brand img { width: clamp(5.5rem, 14vw, 7rem); height: auto; }
.foot-contact { flex: 1 1 0; min-width: 11rem; }
.foot-contact h2 { font-family: inherit; font-size: 0.85rem; font-weight: 500; line-height: 1.4; color: var(--sand); margin-block-end: 0.35rem; }
:root:lang(en) .foot-contact h2 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.foot-contact ul { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; }
.foot-contact li { display: grid; justify-items: start; }
.foot-contact li span { color: var(--sand); font-size: 0.85rem; }
.foot-contact a {
  padding-block: 0.35rem; /* a full-height tap target; the number stays inline */
  font-size: 1.1rem; font-weight: 400; color: #fff;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: var(--sand);
}
.foot-contact a:hover { text-decoration-color: #fff; }
.foot-contact a:active { opacity: 0.6; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; flex-wrap: wrap;
  max-width: 84rem; margin-inline: auto; padding-block-start: 1.1rem; border-block-start: 1px solid var(--rose);
  color: var(--sand); font-size: 0.9rem;
}
.foot-ig {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; padding-block: 0.4rem; padding-inline: 0.9rem 1rem;
  border: 1px solid var(--sand); border-radius: 999px; color: #fff; text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, opacity 120ms ease-out;
}
.foot-ig svg { flex: none; }
.foot-ig:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.foot-ig:active { opacity: 0.6; }

/* ---------- footer on a computer: logo at the start, contact at the end, the Instagram line under a rule ---------- */

.foot-ig-bottom { display: none; }
@media (min-width: 56.01rem) {
  .foot { padding: clamp(3rem, 6vw, 5rem) var(--gutter) 1.25rem; }
  .foot-top { align-items: center; gap: 2rem 3rem; padding-block-end: clamp(2rem, 4vw, 3rem); }
  .foot-brand { order: -1; align-items: flex-start; align-self: auto; margin-inline-start: 0; }
  .foot-brand img { width: 9rem; }
  .foot-ig-brand { display: none; }
  .foot-ig-bottom { display: inline-flex; }
  .foot-contact { flex: none; min-width: 0; }
  .foot-contact h2 { font-size: 0.95rem; margin-block-end: 0.35rem; }
  :root:lang(en) .foot-contact h2 { font-size: 0.75rem; }
  .foot-contact li span { font-size: 0.95rem; }
  .foot-contact a { padding-block: 0.35rem; font-size: 1.5rem; font-weight: 500; }
  .foot-bottom { padding-block-start: 1.1rem; font-size: 0.95rem; }
}

/* ---------- small screens ---------- */

@media (max-width: 56rem) {
  .foot-contact a[data-kind="email"] { font-size: 1rem; overflow-wrap: anywhere; }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2rem 3rem; }
  .hero-photo { order: -1; width: min(82%, 24rem); justify-self: center; }
  .hero-photo picture { aspect-ratio: 5 / 6; }
  .hero-text { max-width: none; }

  .menu { padding-inline: 0; }
  .menu-card { display: block; padding-inline: var(--gutter); }
  .menu-head { margin-block-end: 0; border-block-end: 0; padding-block-end: 0.75rem; }
  .menu-index {
    position: sticky; top: 0; z-index: 5;
    background: rgba(246, 240, 231, 0.9); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    margin-inline: calc(-1 * var(--gutter)); margin-block-end: 1.75rem; border-block-end: 1px solid var(--rule);
  }
  .menu-index ul {
    position: relative; top: auto; display: flex; gap: 0.25rem; overflow-x: auto; padding: 0.3rem var(--gutter);
    scrollbar-width: none;
  }
  .menu-index ul::-webkit-scrollbar { display: none; }
  .menu-index a { display: flex; align-items: center; min-height: 2.75rem; white-space: nowrap; padding: 0 0.95rem; border: 0; border-radius: 999px; }
  .menu-index a[aria-current] { background: var(--burgundy); color: #fff; font-weight: 500; }
  .cat { scroll-margin-top: 4.5rem; }
  .cat h3 { font-size: 1.6rem; }

  .about { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .about-copy { padding-block-end: 2.5rem; }
  .about-art { width: min(86%, 26rem); }

  .branch-grid, .branch-grid[data-count] { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .branch-grid .branch:nth-child(n) { padding: 1.75rem 0; border-inline-start: 0; border-block-start: 1px solid var(--rule); }
  .branch-grid .branch:first-child { padding-block-start: 0; border-block-start: 0; }

  .foot-contact ul { gap: 0.5rem 1.5rem; }
}

@media (min-width: 56.01rem) {
  .brand img { width: 9rem; }
}

/* ---------- Join us ---------- */

/* the same burgundy band as the home page's first screen, then the form on white */
.join-hero, .join-body { padding-inline: max(var(--gutter), calc((100% - 84rem) / 2 + var(--gutter))); }
.join-hero { background: var(--burgundy); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); }
.join-hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); text-wrap: balance; }
.join-hero p { margin-block-start: 1.1rem; max-width: 34rem; color: var(--sand); font-size: 1.15rem; font-weight: 400; }
.join-body { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(3.5rem, 8vw, 6rem); }
.join-form, .join-thanks { max-width: 36rem; }

.join-fields { display: grid; gap: 1.35rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.join-fields:disabled { opacity: 0.65; }
.jf { display: grid; gap: 0.4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.jf-label { padding: 0; font-weight: 500; font-size: 0.98rem; }
.jf-hint { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }
.join-form input[type="text"], .join-form input[type="tel"], .join-form input[type="email"], .join-form select, .join-form textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 1rem;
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid var(--rose); border-radius: 0.75rem;
  transition: border-color 150ms ease;
}
.join-form textarea { resize: vertical; line-height: 1.6; }
.join-form input::placeholder { color: var(--ink-soft); opacity: 0.6; }
.join-form input[dir="ltr"] { text-align: left; }
.join-form :is(input, select, textarea):hover { border-color: var(--burgundy); }
.join-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.join-form [aria-invalid="true"] { border-color: var(--danger); }
.jf-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; }

/* three choices, one tap each */
.jf-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jf-pills label { position: relative; }
.jf-pills input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.jf-pills span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 1.15rem;
  border: 1px solid var(--rose); border-radius: 999px;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.jf-pills label:hover span { border-color: var(--burgundy); }
.jf-pills input:checked + span { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.jf-pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.join-error { color: var(--danger); font-weight: 500; }
.join-error:empty { display: none; }
.join-send { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.join-send .btn { border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.join-privacy { color: var(--ink-soft); font-size: 0.9rem; }

/* a field only programs fill in: out of sight and out of the way */
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.join-thanks { outline: none; }
.join-thanks h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.join-thanks p { margin-block: 1rem 1.75rem; font-size: 1.15rem; }

/* On a phone the logo is smaller so every item in the header fits: Menu, Branches (when there are any), Join us and the
   language. They share one line with the logo as long as there is room; on a narrower screen, or with larger text, the
   links drop to a second line under the logo instead of being cut off or hidden. */
@media (max-width: 36rem) {
  .top { flex-wrap: wrap; gap: 0 0.5rem; padding-block: 0.6rem; }
  .brand img { width: 4.75rem; }
  .top-nav { gap: 0.1rem; font-size: 0.84rem; margin-inline-start: auto; }
  .top-nav .nav-menu, .top-nav .nav-branches { padding-inline: 0.4rem; }
  .top-nav .nav-join, .top-nav .nav-lang { padding-inline: 0.65rem; }
}
@media (max-width: 25.25rem) {
  .top-nav { font-size: 0.8rem; }
  .top-nav .nav-menu, .top-nav .nav-branches { padding-inline: 0.3rem; }
  .top-nav .nav-join, .top-nav .nav-lang { padding-inline: 0.5rem; }
}
@media (max-width: 23rem) {
  .top { gap: 0 0.35rem; }
  .brand img { width: 4.25rem; }
  .top-nav { font-size: 0.78rem; }
  .top-nav .nav-menu, .top-nav .nav-branches { padding-inline: 0.25rem; }
  .top-nav .nav-join, .top-nav .nav-lang { padding-inline: 0.42rem; }
}

/* ---------- motion ----------
   One orchestrated moment when the page opens: the arch rises, then the slogan, headline and branches follow.
   Below the fold, a few things ease in as they arrive (browsers that cannot do scroll-driven animation just show them).
   The logo never moves. Nothing here runs for people who ask for less. */

@media (prefers-reduced-motion: no-preference) {
  @keyframes arch-rise {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0 0 0 0); }
  }
  @keyframes arch-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
  @keyframes ease-up { from { opacity: 0; transform: translateY(1.1rem); } to { opacity: 1; transform: none; } }

  .hero-photo { animation: arch-rise 1000ms cubic-bezier(0.22, 0.8, 0.2, 1) both; }
  .hero-photo img { animation: arch-settle 1400ms cubic-bezier(0.22, 0.8, 0.2, 1) both; }
  .hero-text > * { animation: ease-up 750ms cubic-bezier(0.22, 0.8, 0.2, 1) both; }
  .hero-text > :nth-child(1) { animation-delay: 250ms; }
  .hero-text > :nth-child(2) { animation-delay: 360ms; }
  .hero-text > :nth-child(3) { animation-delay: 470ms; }
  .hero-text > :nth-child(4) { animation-delay: 560ms; }
  .hero-text > :nth-child(5) { animation-delay: 650ms; }
  .hero-text > :nth-child(6) { animation-delay: 740ms; }

  @supports (animation-timeline: view()) {
    .menu-head, .cat h3, .about-text, .branch {
      animation: ease-up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
  }
}

/* ---------- people who ask for less ---------- */

@media (prefers-reduced-motion: reduce) {
  .btn, .top-nav a, .hero-branches a, .jf-pills span { transition: none; }
  .btn:active { transform: none; opacity: 0.8; }
}
@media (prefers-reduced-transparency: reduce) {
  .menu-index { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --rule: rgba(61, 3, 13, 0.55); --ink-soft: var(--burgundy); }
  .hero-photo::before, .about-art::before { border-color: var(--sand); }
  .about-text p, .foot-bottom, .foot-contact h2, .foot-contact li span, .hero-p, .hb-status { color: #fff; }
  .menu-index a { color: var(--ink); }
}
