/* =========================================================
   BArch Creative Studios
   base.css — tokens, reset, typography, shell
   ========================================================= */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
}

/* Brand palette: blueprint blue, stone brown, white. */
:root {
  color-scheme: light;

  --paper: #ffffff;
  --paper-rgb: 255, 255, 255;
  --paper-deep: #eef3f7;
  --card: #ffffff;
  --card-rgb: 255, 255, 255;
  --ink: #102a3c;
  --ink-rgb: 16, 42, 60;
  --ink-2: #2c4a5f;
  --muted: #5b6f7d;
  --line: rgba(16, 42, 60, 0.16);
  --line-strong: rgba(16, 42, 60, 0.34);
  --clay: #7d6753;
  --clay-rgb: 125, 103, 83;
  --clay-deep: #5f4c3a;
  --clay-soft: #d9c9b8;
  --ochre: #c7a87f;
  --ochre-rgb: 199, 168, 127;
  --ochre-deep: #b8976f;
  --sage: #3c6b86;
  --sage-rgb: 60, 107, 134;
  --blue: #1d5a80;
  --blue-deep: #14425c;
  --sand: #d8c7b4;
  --night: #0a2233;
  --night-rgb: 10, 34, 51;
  --panel: #0a2233;
  --panel-rgb: 10, 34, 51;
  --panel-deep: #071b29;
  --on-panel: #f7fafc;
  --on-panel-rgb: 247, 250, 252;
  --on-light: #102a3c;
  --on-light-rgb: 16, 42, 60;
  --shadow-rgb: 10, 34, 51;

  --serif: 'Instrument Serif', 'Noto Serif Ethiopic', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Manrope', 'Noto Sans Ethiopic', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Noto Sans Ethiopic', ui-monospace, 'Cascadia Mono', monospace;
  --pad: clamp(20px, 4.4vw, 72px);
  --max: 1560px;
  --section: clamp(72px, 9.5vw, 144px);
  --header-h: 78px;
  --r: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #071723;
  --paper-rgb: 7, 23, 35;
  --paper-deep: #0b2030;
  --card: #0d2637;
  --card-rgb: 13, 38, 55;
  --ink: #f1f6fa;
  --ink-rgb: 241, 246, 250;
  --ink-2: #cfdce5;
  --muted: #9db1bf;
  --line: rgba(241, 246, 250, 0.16);
  --line-strong: rgba(241, 246, 250, 0.34);
  --clay: #c5ab91;
  --clay-rgb: 197, 171, 145;
  --clay-deep: #dcc7b1;
  --clay-soft: #6b5847;
  --ochre: #dcc09a;
  --ochre-rgb: 220, 192, 154;
  --ochre-deep: #cbb089;
  --sage: #84aec4;
  --sage-rgb: 132, 174, 196;
  --blue: #8cc0e0;
  --blue-deep: #14425c;
  --sand: #d8c7b4;
  --night: #04121c;
  --night-rgb: 4, 18, 28;
  --panel: #0d2b3f;
  --panel-rgb: 13, 43, 63;
  --panel-deep: #071d2c;
  --on-panel: #f7fafc;
  --on-panel-rgb: 247, 250, 252;
  --on-light: #102a3c;
  --on-light-rgb: 16, 42, 60;
  --shadow-rgb: 0, 0, 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;

    --paper: #071723;
    --paper-rgb: 7, 23, 35;
    --paper-deep: #0b2030;
    --card: #0d2637;
    --card-rgb: 13, 38, 55;
    --ink: #f1f6fa;
    --ink-rgb: 241, 246, 250;
    --ink-2: #cfdce5;
    --muted: #9db1bf;
    --line: rgba(241, 246, 250, 0.16);
    --line-strong: rgba(241, 246, 250, 0.34);
    --clay: #c5ab91;
    --clay-rgb: 197, 171, 145;
    --clay-deep: #dcc7b1;
    --clay-soft: #6b5847;
    --ochre: #dcc09a;
    --ochre-rgb: 220, 192, 154;
    --ochre-deep: #cbb089;
    --sage: #84aec4;
    --sage-rgb: 132, 174, 196;
    --blue: #8cc0e0;
    --blue-deep: #14425c;
    --sand: #d8c7b4;
    --night: #04121c;
    --night-rgb: 4, 18, 28;
    --panel: #0d2b3f;
    --panel-rgb: 13, 43, 63;
    --panel-deep: #071d2c;
    --on-panel: #f7fafc;
    --on-panel-rgb: 247, 250, 252;
    --on-light: #102a3c;
    --on-light-rgb: 16, 42, 60;
      --shadow-rgb: 0, 0, 0;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4000;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: multiply;
}

:root[data-theme="dark"] body::after {
  mix-blend-mode: screen;
  opacity: 0.022;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body::after {
    mix-blend-mode: screen;
    opacity: 0.022;
  }
}

::selection { background: var(--clay); color: var(--paper); }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  border-radius: 100px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.022em;
}
.display em, .serif-italic {
  font-style: italic;
  letter-spacing: -0.01em;
}

h1, h2, h3 { font-weight: 400; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5.4vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.section-title em { font-style: italic; color: var(--clay); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
  flex: none;
}
.eyebrow.on-dark { color: var(--paper); }
.eyebrow.on-dark .dot { background: var(--ochre); }

.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}

.muted { color: var(--muted); }
.clay { color: var(--clay-deep); }
.mono { font-family: var(--mono); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container-narrow {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(52px, 6vw, 90px); }

.rule { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.section-head .head-copy { max-width: 46ch; justify-self: end; }
.section-head .head-copy p { color: var(--muted); font-size: 15px; }

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(28px, 4vw, 52px);
}

/* ---------- Buttons & links ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover {
  --btn-bg: var(--clay);
  --btn-fg: var(--paper);
  transform: translateY(-2px);
}
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }

.btn-clay { --btn-bg: var(--clay); --btn-fg: var(--paper); }
.btn-clay:hover { --btn-bg: var(--ink); }
.btn-paper { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn-paper:hover { --btn-bg: var(--ochre); --btn-fg: var(--on-light); }
.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 10px 18px; font-size: 12px; }
.btn-lg { min-height: 56px; padding: 17px 28px; font-size: 14px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-link:hover { color: var(--clay-deep); border-color: var(--clay); }
.text-link .arr { font-size: 14px; transition: transform 0.25s var(--ease); }
.text-link:hover .arr { transform: translate(2px, -2px); }

.round-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.3s var(--ease);
}
.round-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: rotate(45deg);
}

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(var(--paper-rgb), 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-head.is-scrolled {
  background: rgba(var(--paper-rgb), 0.95);
  box-shadow: 0 8px 30px rgba(var(--shadow-rgb), 0.045);
}
.head-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: auto;
  height: 46px;
  display: block;
  flex: none;
  background: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.brand:hover .brand-mark { opacity: 0.8; transform: translateY(-1px); }
.brand-mark.brand-mark-night { display: none; }
:root[data-theme="dark"] .brand-mark.brand-mark-day { display: none; }
:root[data-theme="dark"] .brand-mark.brand-mark-night { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand-mark.brand-mark-day { display: none; }
  :root:not([data-theme]) .brand-mark.brand-mark-night { display: block; }
}
/* The footer panel is dark in both themes, so it always uses the light-stroke mark. */
.site-foot .brand-mark.brand-mark-day { display: none; }
.site-foot .brand-mark.brand-mark-night { display: block; }
.brand-type { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand-type strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand-type small {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--clay);
}
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: 4px;
  padding: 0 3px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 8px;
  vertical-align: 1px;
}

.head-actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* ---------- Language switch ---------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(var(--ink-rgb), 0.04);
  flex: none;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lang-switch > span,
.lang-switch > a {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  border-radius: 100px;
  color: var(--muted);
  line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-switch > a:hover { color: var(--ink); }
.lang-switch > [aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}
.lang-switch.is-wide {
  display: flex;
  width: 100%;
  padding: 4px;
}
.lang-switch.is-wide > span,
.lang-switch.is-wide > a {
  flex: 1;
  height: 36px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}
.mobile-lang {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-lang .label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Theme switch ---------- */

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(var(--ink-rgb), 0.04);
  flex: none;
}
.theme-switch [data-theme-mode] {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.theme-switch [data-theme-mode]:hover { color: var(--ink); }
.theme-switch [data-theme-mode][aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.theme-switch svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-switch.is-wide {
  display: flex;
  width: 100%;
  padding: 4px;
}
.theme-switch.is-wide [data-theme-mode] {
  width: auto;
  flex: 1;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.mobile-theme {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-theme .label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  place-items: center;
  flex: none;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.menu-toggle span + span { margin-top: 5px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 990;
  background: var(--paper);
  padding: 32px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
}
.mobile-menu nav a span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.mobile-menu .mobile-foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu .mobile-foot .btn { align-self: flex-start; }

body.menu-open { overflow: hidden; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.8;
}

/* ---------- Footer ---------- */

.site-foot {
  background: var(--panel);
  color: var(--on-panel);
  padding-top: clamp(64px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}
.foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 0.6fr);
  gap: clamp(32px, 6vw, 100px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.foot-brand .brand-mark {
  height: 60px;
  width: auto;
  background: none;
}
.foot-brand .brand-type small { color: rgba(var(--on-panel-rgb), 0.56); }
.foot-brand p {
  margin-top: 22px;
  max-width: 34ch;
  color: rgba(var(--on-panel-rgb), 0.6);
  font-size: 14px;
  line-height: 1.7;
}
.foot-brand .foot-mail {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  border-bottom: 1px solid rgba(var(--on-panel-rgb), 0.28);
  padding-bottom: 4px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.foot-brand .foot-mail:hover { color: var(--ochre); border-color: var(--ochre); }

.foot-col h3 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--on-panel-rgb), 0.55);
  margin-bottom: 20px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 11px; }
.foot-col a {
  font-size: 14px;
  color: rgba(var(--on-panel-rgb), 0.78);
  transition: color 0.2s var(--ease);
}
.foot-col a:hover { color: var(--ochre); }

.foot-word {
  border-top: 1px solid rgba(var(--on-panel-rgb), 0.12);
  overflow: hidden;
  padding-top: 14px;
}
.foot-word span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(8rem, 21vw, 22rem);
  line-height: 0.72;
  letter-spacing: -0.04em;
  color: rgba(var(--on-panel-rgb), 0.09);
  transform: translateY(5%);
  user-select: none;
  white-space: nowrap;
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 0 30px;
  border-top: 1px solid rgba(var(--on-panel-rgb), 0.12);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--on-panel-rgb), 0.55);
}
.foot-bottom a { transition: color 0.2s var(--ease); }
.foot-bottom a:hover { color: var(--on-panel); }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(var(--on-panel-rgb), 0.7);
}
.to-top span { transition: transform 0.25s var(--ease); }
.to-top:hover span { transform: translateY(-3px); }

/* ---------- Reveal animations ---------- */

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.has-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Small helpers ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(var(--ink-rgb), 0.03);
  white-space: nowrap;
}
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  flex: none;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  70%, 100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Responsive shell ---------- */

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .head-actions .btn { display: none; }
  .head-actions > .theme-switch { display: none; }
  .head-actions > .lang-switch { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 22px; }
  .section-head .head-copy { justify-self: start; }
  .foot-main { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --header-h: 66px; }
  .brand-mark { width: auto; height: 38px; }
  .foot-brand .brand-mark { height: 54px; padding: 6px; }
  .brand-type strong { font-size: 17px; }
  .brand-type small { font-size: 6.5px; }
  .head-inner { gap: 12px; }
  .foot-main { grid-template-columns: 1fr; gap: 36px; }
  .foot-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .head-row { align-items: flex-start; flex-direction: column; }
}

@media print {
  .site-head, .site-foot, .menu-toggle, .mobile-menu { display: none !important; }
  body { background: #fff; }
  body::after { display: none; }
}
