/* ==========================================================================
   Kodon Systems — main.css
   --------------------------------------------------------------------------
   Shared foundation for every page: fonts, reset, base typography, layout
   primitives, header, footer, buttons, cards, image slots, the flow-diagram
   component, the Kodo widget and global motion rules.
   Page-specific sections live in styles/pages.css.
   All layout uses logical properties so the Arabic (RTL) mode mirrors free.
   ========================================================================== */

/* ---- self-hosted fonts --------------------------------------------------
   Latin: variable fonts, one file each. Arabic: static 400/700, fetched by
   the browser only when Arabic glyphs are on screen (unicode-range).      */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/sora-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibmplexsansarabic-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/ibmplexsansarabic-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---- reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
img, svg, canvas, video { display: block; max-inline-size: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul[class], ol[class],
.site-nav ul, .footer-col ul { list-style: none; padding: 0; }

/* ---- base ---------------------------------------------------------------- */
body {
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-400);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Arabic reads better slightly larger and without tight tracking */
html[lang='ar'] body { line-height: 1.9; letter-spacing: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
html[lang='ar'] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: var(--fs-900); }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-700); }
h4 { font-size: var(--fs-600); }

p { max-inline-size: 65ch; }
a { color: var(--ink); text-decoration-color: var(--gold-line); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--gold); }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--gold); color: var(--navy-900); }

/* Focus: the node motif — a gold ring. Applied everywhere, never removed. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  z-index: 200;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  transition: inset-block-start var(--dur-fast) var(--ease);
}
.skip-link:focus { inset-block-start: 1rem; }

.visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---- layout primitives ---------------------------------------------------- */
.container {
  inline-size: 100%;
  max-inline-size: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--band { background: var(--navy-850); }

/* Section header: eyebrow (gold, with a ring node) + h2 + lead */
.section-head { max-inline-size: 46rem; margin-block-end: clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-block-end: 1rem;
}
html[lang='ar'] .eyebrow { letter-spacing: 0.05em; }
.lead { font-size: var(--fs-500); color: var(--text); margin-block-start: 1rem; }

/* The ring — the logo's node form, reused as a marker everywhere */
.ring {
  inline-size: var(--ring-size);
  block-size: var(--ring-size);
  flex: none;
  border: var(--ring-stroke) solid var(--gold);
  border-radius: 50%;
  display: inline-block;
}
.ring--dim { border-color: var(--navy-600); }

/* Circuit connector: short drawn line + node between page sections,
   so the page reads as one continuous system. Animated by main.js.       */
.circuit-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  block-size: clamp(3.5rem, 8vw, 6rem);
  margin-block: calc(var(--section) * -0.45);
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.circuit-link::before {
  content: '';
  inline-size: 2px;
  flex: 1;
  background: var(--navy-600);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-slow) var(--ease);
}
.circuit-link::after {
  content: '';
  inline-size: var(--ring-size);
  block-size: var(--ring-size);
  border: var(--ring-stroke) solid var(--navy-600);
  border-radius: 50%;
  transition: border-color var(--dur) var(--ease) 300ms;
}
.circuit-link.in-view::before { transform: scaleY(1); }
.circuit-link.in-view::after { border-color: var(--gold); }

/* ---- header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(11, 17, 48, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--faint);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  block-size: 4.5rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { block-size: 2.75rem; inline-size: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: var(--fs-300);
  font-weight: 500;
  padding-block: 0.5rem;
  position: relative;
}
.site-nav a:hover { color: var(--ink); }
/* current page: a gold node beneath the label */
.site-nav a[aria-current='page'] { color: var(--ink); }
.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: -0.3rem;
  translate: -50% 0;
  inline-size: 0.4rem;
  block-size: 0.4rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.nav-cta {
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 0.45rem 1.1rem !important;
  color: var(--gold) !important;
}
.nav-cta:hover { background: var(--gold-wash); border-color: var(--gold); }

.lang-toggle {
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--faint);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.lang-toggle:hover { color: var(--ink); border-color: var(--gold-line); }

/* Mobile menu */
.menu-toggle { display: none; padding: 0.6rem; margin-inline-end: -0.6rem; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block;
  inline-size: 1.35rem;
  block-size: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast);
}
.menu-toggle .bars { position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ''; position: absolute; }
.menu-toggle .bars::before { inset-block-start: -6px; }
.menu-toggle .bars::after { inset-block-start: 6px; }
.nav-open .menu-toggle .bars { transform: rotate(45deg); }
.nav-open .menu-toggle .bars::before { transform: rotate(-90deg) translate(-6px, 0); }
.nav-open .menu-toggle .bars::after { opacity: 0; }

@media (max-width: 47.99rem) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    background: var(--navy-950);
    border-block-end: 1px solid var(--faint);
    display: none;
    padding: 1rem var(--gutter) 1.5rem;
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; font-size: var(--fs-500); padding-block: 0.85rem; }
  .site-nav a[aria-current='page']::after {
    inset-inline-start: auto;
    inset-inline-end: 0.25rem;
    inset-block-end: 50%;
    translate: 0 50%;
  }
  .nav-cta { text-align: center; margin-block-start: 0.75rem; }
}

/* ---- buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-300);
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn:active { background: var(--gold-deep); transform: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--faint);
}
.btn--ghost:hover { background: rgba(255, 252, 237, 0.06); border-color: var(--gold-line); }

/* ---- glow button -----------------------------------------------------------
   A pill-shaped button with a pulsing gold glow, used to draw attention to
   the Packages CTA in the home hero.                                         */
.btn--glow {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  animation: glow-pulse 2.5s var(--ease) infinite;
}
.btn--glow:hover {
  background: var(--gold-wash);
  box-shadow: 0 0 30px var(--gold-wash), 0 0 60px rgba(212, 173, 82, 0.15);
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(212, 173, 82, 0.08); }
  50% { box-shadow: 0 0 20px var(--gold-wash), 0 0 40px rgba(212, 173, 82, 0.12); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--glow { animation: none; box-shadow: 0 0 10px var(--gold-wash); }
}

/* ---- cards ---------------------------------------------------------------- */
.card {
  background: var(--cream);
  color: var(--cream-text);
  border: 1px solid rgba(29, 45, 104, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.card :is(h1, h2, h3, h4, strong) { color: var(--cream-text); }
a.card { display: block; text-decoration: none; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
a.card:hover { border-color: rgba(29, 45, 104, 0.25); transform: translateY(-3px); }

/* ---- flow diagram (nodes + edges) ------------------------------------------
   Message → Intent → Data → Answer, build pipelines, edge maps.
   Pure HTML/CSS so it mirrors correctly in RTL. Steps light in sequence
   when .lit is added by main.js (all lit statically without JS).          */
.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  counter-reset: flow;
}
.flow-step {
  flex: 1;
  min-inline-size: 0;
  position: relative;
  padding-block-start: 2.4rem;
  padding-inline: 0.5rem;
  text-align: center;
}
/* the node */
.flow-step::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  translate: -50% 0;
  inline-size: 1.15rem;
  block-size: 1.15rem;
  border: var(--ring-stroke) solid var(--navy-600);
  border-radius: 50%;
  background: var(--navy-900);
  z-index: 1;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
html[dir='rtl'] .flow-step::before { translate: 50% 0; }
/* the edge to the next node */
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-block-start: calc(0.575rem - 1px);
  inset-inline-start: 50%;
  inline-size: 100%;
  block-size: 2px;
  background: var(--navy-700);
}
.flow-step.lit::before {
  border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-wash);
}
.flow-step h4, .flow-step .flow-title {
  font-family: var(--font-display);
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.flow-step.lit :is(h4, .flow-title) { color: var(--ink); }
.flow-step p { font-size: var(--fs-300); color: var(--muted); margin-block-start: 0.35rem; margin-inline: auto; max-inline-size: 14rem; }

@media (max-width: 39.99rem) {
  /* vertical circuit on small screens */
  .flow { flex-direction: column; }
  .flow-step {
    text-align: start;
    padding-block: 0 1.75rem;
    padding-inline-start: 2.4rem;
    padding-inline-end: 0;
  }
  .flow-step::before { inset-inline-start: 0; translate: 0 0; }
  html[dir='rtl'] .flow-step::before { translate: 0 0; }
  .flow-step:not(:last-child)::after {
    inset-block-start: 0.575rem;
    inset-inline-start: calc(0.575rem - 1px);
    inline-size: 2px;
    block-size: 100%;
  }
  .flow-step p { margin-inline: 0; max-inline-size: 30rem; }
}

/* ---- image slots -------------------------------------------------------------
   Real <img> markup pointing at final filenames in /assets/img/. Until the
   file exists, main.js adds .pending and the slot renders as a labelled,
   deliberate placeholder. Dropping the file in is the only remaining step. */
.media { margin: 0; }
.img-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 30%, var(--gold-wash), transparent 40%),
    var(--navy-800);
  border: 1px solid var(--faint);
}
.img-slot img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.img-slot.pending img { display: none; }
.img-slot.pending::before {
  content: '';
  position: absolute;
  inset-block-start: calc(50% - 1.4rem);
  inset-inline-start: calc(50% - 0.55rem);
  inline-size: 1.1rem;
  block-size: 1.1rem;
  border: var(--ring-stroke) solid var(--gold-line);
  border-radius: 50%;
}
.img-slot.pending::after {
  content: attr(data-placeholder);
  position: absolute;
  inset-block-start: 50%;
  inset-inline: 1.5rem;
  text-align: center;
  font-size: var(--fs-200);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.media figcaption {
  font-size: var(--fs-300);
  color: var(--muted);
  margin-block-start: 0.75rem;
}

/* ---- reveals -------------------------------------------------------------------
   Elements with [data-reveal] rise in when scrolled into view (main.js adds
   .in-view). Without JS or with reduced motion they are simply visible.    */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  }
  .js [data-reveal].in-view { opacity: 1; transform: none; }
}

/* ---- footer ---------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); border-block-start: 1px solid var(--faint); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
@media (max-width: 63.99rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 39.99rem) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand img { block-size: 3.5rem; inline-size: auto; }
.footer-brand p { font-size: var(--fs-300); color: var(--muted); margin-block-start: 1.25rem; max-inline-size: 22rem; }

.footer-col h4 {
  font-size: var(--fs-200);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-block-end: 1rem;
}
html[lang='ar'] .footer-col h4 { letter-spacing: 0.05em; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: var(--fs-300); color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--gold-bright); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-block-start: 1px solid var(--faint);
  font-size: var(--fs-300);
  color: var(--muted);
}

/* Status strip: small, unglamorous, real. */
.status-strip {
  background: var(--navy-950);
  border-block-start: 1px solid var(--faint);
  font-size: var(--fs-200);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.status-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  padding-block: 0.7rem;
}
.status-item { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.status-dot {
  inline-size: 0.45rem;
  block-size: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}
@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: pulse 3s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.35; } }
}

/* ---- Kodo (chat assistant) ---------------------------------------------------- */
.kodo-launcher {
  position: fixed;
  inset-inline-end: 1.25rem;
  inset-block-end: 1.25rem;
  z-index: 150;
  inline-size: 3.5rem;
  block-size: 3.5rem;
  border-radius: 50%;
  background: var(--navy-800);
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast);
}
.kodo-launcher:hover { transform: translateY(-2px); background: var(--navy-700); }
.kodo-launcher img { inline-size: 1.75rem; block-size: auto; }

.kodo-panel {
  position: fixed;
  inset-inline-end: 1.25rem;
  inset-block-end: 5.5rem;
  z-index: 151;
  inline-size: min(24rem, calc(100vw - 2.5rem));
  block-size: min(34rem, calc(100dvh - 8rem));
  display: none;
  flex-direction: column;
  background: var(--navy-850);
  border: 1px solid var(--faint);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.kodo-panel.open { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .kodo-panel.open { animation: kodo-in var(--dur) var(--ease); }
  @keyframes kodo-in { from { opacity: 0; transform: translateY(10px); } }
}

.kodo-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-block-end: 1px solid var(--faint);
}
.kodo-head img { inline-size: 1.6rem; }
.kodo-head .kodo-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.kodo-head .kodo-tag { font-size: var(--fs-200); color: var(--muted); }
.kodo-close { margin-inline-start: auto; color: var(--muted); font-size: 1.4rem; line-height: 1; padding: 0.25rem 0.5rem; }
.kodo-close:hover { color: var(--ink); }

.kodo-log {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.kodo-msg {
  max-inline-size: 85%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: var(--fs-300);
  line-height: 1.6;
}
.kodo-msg--bot { background: var(--navy-800); border: 1px solid var(--faint); align-self: flex-start; }
.kodo-msg--user { background: var(--gold); color: var(--navy-900); align-self: flex-end; }
.kodo-msg a { color: inherit; }
.kodo-msg--bot a { color: var(--gold-bright); }

.kodo-typing { display: inline-flex; gap: 0.3rem; padding: 0.85rem 1rem; }
.kodo-typing i {
  inline-size: 0.4rem;
  block-size: 0.4rem;
  border-radius: 50%;
  background: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  .kodo-typing i { animation: blink 1s infinite; }
  .kodo-typing i:nth-child(2) { animation-delay: 0.15s; }
  .kodo-typing i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes blink { 50% { opacity: 0.25; } }
}

.kodo-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.25rem 0.75rem; }
.kodo-chip {
  font-size: var(--fs-200);
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  transition: background var(--dur-fast);
}
.kodo-chip:hover { background: var(--gold-wash); }

.kodo-form { display: flex; gap: 0.5rem; padding: 0.9rem 1.25rem; border-block-start: 1px solid var(--faint); }
.kodo-form input {
  flex: 1;
  min-inline-size: 0;
  background: var(--navy-900);
  border: 1px solid var(--faint);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: var(--fs-300);
  color: var(--text);
}
.kodo-form input::placeholder { color: var(--muted); }
.kodo-form input:focus { outline: none; border-color: var(--gold); }
.kodo-send {
  background: var(--gold);
  color: var(--navy-900);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: var(--fs-300);
}
.kodo-send:hover { background: var(--gold-bright); }
.kodo-note {
  font-size: var(--fs-200);
  color: var(--muted);
  text-align: center;
  padding: 0 1.25rem 0.9rem;
}

/* ---- forms (contact) ---------------------------------------------------------- */
.field { display: grid; gap: 0.45rem; }
.field label { font-size: var(--fs-300); font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  background: var(--navy-800);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: var(--text);
  transition: border-color var(--dur-fast);
}
.field :is(input, textarea)::placeholder { color: var(--muted); }
.field :is(input, textarea):focus { outline: none; border-color: var(--gold); }
.field-hint { font-size: var(--fs-200); color: var(--muted); }

.choice-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  border: 1px solid var(--faint);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: var(--fs-300);
  color: var(--text);
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.choice input:checked + span { border-color: var(--gold); background: var(--gold-wash); color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- global motion discipline -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
