/* =====================================================================
   AXN design system tokens (documented in design-system/axn/MASTER.md)
   ===================================================================== */
:root {
  /* Brand palette */
  --obsidian: #0B0B0D;
  --slate: #2E2E2E;
  --stone: #A7A7A7;
  --sand: #D9D3C7;
  --gold: #C9A96B;        /* decorative gold, and text on dark backgrounds only (8.8:1) */
  --gold-ink: #6E5223;    /* gold for text on paper / sand / white (4.9–7.3:1) */
  --paper: #F6F4F0;
  --ink-soft: #55555A;    /* secondary text: 6.7:1 on paper, 5:1 on sand */
  --ink-body: #34343A;    /* long-form body text */
  --line-dark: rgba(255, 255, 255, .12);
  --line-light: rgba(11, 11, 13, .12);
  --line-strong: rgba(11, 11, 13, .24);

  /* Semantic colours */
  --color-bg: var(--paper);
  --color-surface: #FFFFFF;
  --color-fg: var(--obsidian);
  --color-fg-muted: var(--ink-soft);
  --color-accent: var(--gold);
  --color-accent-ink: var(--gold-ink);
  --color-on-dark: var(--paper);
  --color-on-dark-muted: rgba(246, 244, 240, .7);
  --color-danger: #B3261E;
  --color-success: #1D6B3A;
  --color-ring: var(--gold);

  /* Typography: Montserrat, modular scale ~1.25 */
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-2xs: .6875rem;  /* 11px  labels, eyebrows */
  --text-xs: .75rem;     /* 12px  meta */
  --text-sm: .875rem;    /* 14px  secondary */
  --text-base: 1rem;     /* 16px  body */
  --text-md: 1.125rem;   /* 18px  lead, card titles */
  --text-lg: 1.375rem;   /* 22px  sub-headings */
  --text-xl: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);  /* section titles */
  --text-2xl: clamp(2rem, 1.3rem + 3.4vw, 3.5rem);     /* page titles */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-body: 1.65;
  --tracking-label: .2em;
  --tracking-eyebrow: .32em;

  /* Spacing: 4px base, 8px rhythm */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --section-y: clamp(72px, 10vw, 128px);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;

  /* Shape and elevation */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 21px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(11, 11, 13, .06);
  --shadow-2: 0 18px 40px -20px rgba(11, 11, 13, .35);
  --shadow-3: 0 30px 60px -40px rgba(11, 11, 13, .4);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);       /* enter / settle */
  --ease-in: cubic-bezier(.4, 0, 1, 1);      /* leave */
  --dur-fast: 150ms;   /* press, colour */
  --dur-base: 250ms;   /* hover, toggles */
  --dur-slow: 400ms;   /* cards, panels */
  --dur-reveal: 800ms; /* scroll reveals */

  /* Layers */
  --z-header: 50;
  --z-overlay: 100;
  --z-toast: 1000;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button, a, label, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3 { margin: 0; line-height: var(--leading-snug); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--text-2xl); font-weight: 300; line-height: var(--leading-tight); letter-spacing: -.02em; }
h2 { font-size: var(--text-xl); font-weight: 400; line-height: var(--leading-tight); letter-spacing: -.015em; }
h3 { font-size: var(--text-md); font-weight: 600; }
p { margin: 0 0 1rem; text-wrap: pretty; }
::selection { background: var(--gold); color: var(--obsidian); }

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

.eyebrow {
  display: flex; align-items: center; gap: var(--space-3);
  margin: 0 0 var(--space-4);
  font-size: var(--text-2xs);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent-ink);
}
/* short gold rule before section eyebrows gives each section a clear entry point */
.section-head .eyebrow::before, .request-intro .eyebrow::before, .about-text .eyebrow::before {
  content: ""; flex: none; width: 28px; height: 1px; background: currentColor;
}
.section-dark .eyebrow, .hero .eyebrow, .card.featured .eyebrow,
.legal-hero .eyebrow, .products-cta .eyebrow, .auth-side .eyebrow { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px;
  padding: .9rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit; font-size: var(--text-xs); font-weight: 600; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(11, 11, 13, .45); }
}
.btn:active { transform: scale(.98); transition-duration: var(--dur-fast); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { min-height: 40px; padding: .55rem 1.1rem; font-size: var(--text-2xs); }
.btn-light { background: var(--paper); color: var(--obsidian); }
.btn-light:hover { background: #fff; }
.btn-ghost { color: var(--paper); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-dark { background: var(--obsidian); color: var(--paper); }
.btn-dark:hover { background: var(--slate); }
.btn-ghost-dark { color: var(--obsidian); border-color: var(--line-light); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--obsidian); }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-ring); outline-offset: 3px;
}
/* on light backgrounds the pale gold ring is too faint (2:1), so use the deeper gold */
.section-light :focus-visible, .section-sand :focus-visible, .site-footer :focus-visible,
.legal-layout :focus-visible, .products-main :focus-visible { outline-color: var(--gold-ink); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  color: var(--paper);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 11, 13, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand-mark { width: 62px; height: 26px; color: currentColor; }
.brand-sub {
  font-size: .6rem; letter-spacing: .32em; text-transform: uppercase; opacity: .75;
  padding-left: .9rem; border-left: 1px solid currentColor; white-space: nowrap;
}
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a:not(.btn) {
  font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; opacity: .8; transition: opacity .2s;
}
.nav-menu a:not(.btn):hover { opacity: 1; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--paper);
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(167, 167, 167, .16), transparent 60%),
    radial-gradient(800px 500px at 10% 100%, rgba(201, 169, 107, .10), transparent 60%),
    linear-gradient(160deg, #18181B 0%, var(--obsidian) 55%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  /* angled architectural panels, echoing the brand photography */
  content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%;
  background: repeating-linear-gradient(100deg, rgba(255,255,255,.035) 0 2px, transparent 2px 90px);
  transform: skewX(-18deg);
  mask-image: linear-gradient(to left, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent);
}
.hero-waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 70%; color: rgba(217, 211, 199, .14); }
.hero-inner { position: relative; padding-top: 120px; padding-bottom: 80px; }
.hero .eyebrow { color: var(--sand); max-width: 16rem; line-height: 1.9; }
.hero-logo { margin: 1.5rem 0 1.75rem; }
.hero-logo svg { width: min(460px, 100%); height: auto; color: var(--paper); }
.hero-wordmark {
  display: block; margin-top: 1.4rem;
  font-size: clamp(.85rem, 2.2vw, 1.35rem); font-weight: 300;
  letter-spacing: .55em; text-transform: uppercase;
}
.hero-lead { max-width: 34rem; font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 300; color: rgba(246, 244, 240, .78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.25rem 0 3.5rem; }
.tagline {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--sand);
}
.slashes { display: inline-flex; flex-wrap: wrap; gap: .3em .8em; }
.slashes > span + span::before { content: "/"; margin-right: .8em; opacity: .5; }
.footer-tags.slashes { display: flex; }
.rule { display: inline-block; width: 48px; height: 1px; background: currentColor; margin-right: .6rem; }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-light { background: var(--paper); }
.section-dark { background: var(--obsidian); color: var(--paper); }
.section-sand { background: var(--sand); }
.section-head { max-width: 42rem; margin-bottom: clamp(40px, 6vw, 64px); }
.section-lead { margin-top: var(--space-5); max-width: 36rem; font-size: var(--text-md); line-height: 1.6; color: var(--color-fg-muted); }
.section-dark .section-lead { color: rgba(246, 244, 240, .65); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: var(--space-8) 28px 28px;
  background: var(--color-surface); border: 1px solid var(--line-light); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
}
.card:focus-within { border-color: var(--line-strong); }
.card h3 { font-size: var(--text-md); line-height: var(--leading-snug); }
.card p { color: var(--color-fg-muted); font-size: .9375rem; flex: 1; margin-top: var(--space-3); }
.card-num {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-label); color: var(--color-accent-ink); margin-bottom: var(--space-6);
}
.card-num::after { content: ""; flex: 1; height: 1px; background: var(--line-light); }
.card-link {
  display: inline-flex; align-items: center; gap: .4em; align-self: flex-start;
  min-height: 32px; margin-top: var(--space-3);
  font-size: var(--text-2xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
.card-link span { display: inline-block; transition: transform .25s var(--ease); }
.card-link:hover span { transform: translateX(4px); }
.card.featured, .card.first { background: var(--obsidian); color: var(--paper); border-color: var(--obsidian); box-shadow: var(--shadow-2); }
.card.featured p, .card.first p { color: var(--color-on-dark-muted); }
.card.featured .card-num, .card.first .card-num { color: var(--gold); }
.card.featured .card-num::after, .card.first .card-num::after { background: var(--line-dark); }
.card.featured :focus-visible, .card.first :focus-visible { outline-color: var(--gold); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 28px 28px 8px 0; border-top: 1px solid var(--line-dark); position: relative; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--gold);
}
.step-num { display: block; font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3rem); font-weight: 300; color: var(--stone); margin-bottom: var(--space-4); line-height: 1; font-variant-numeric: tabular-nums; }
.step p { color: var(--color-on-dark-muted); font-size: .9375rem; margin-top: var(--space-3); }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-mark { display: grid; place-items: center; aspect-ratio: 1; background: var(--paper); border-radius: calc(var(--radius) * 2); }
.about-mark svg { width: 55%; }
.about-text p { color: var(--ink-body); }
.about-text h2 { margin-bottom: 1.5rem; }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.values li { padding-top: 1rem; border-top: 1px solid rgba(11, 11, 13, .25); }
.values strong { display: block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .3rem; }
.values span { font-size: var(--text-sm); color: var(--ink-soft); }

/* Request form */
.request { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.request-intro { position: sticky; top: 110px; }
.request-intro h2 { margin-bottom: 1.25rem; }
.request-intro p { color: var(--ink-soft); }
.checks { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.checks li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; font-weight: 500; font-size: .95rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(-45deg);
}
.request-form, .form-success {
  background: var(--color-surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-3);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { display: block; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend {
  display: block; margin-bottom: .45rem; padding: 0;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .8rem 1rem;
  font: inherit; font-size: var(--text-base); color: var(--color-fg); /* 16px stops iOS zooming on focus */
  background: var(--paper); border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #75757A; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-light); }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--color-surface); border-color: var(--obsidian); box-shadow: 0 0 0 3px rgba(201, 169, 107, .35); outline: none; }
.field .invalid, .chips.invalid { border-color: var(--color-danger) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid transparent; border-radius: 12px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: .5rem 1rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); font-size: var(--text-sm); font-weight: 500;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.chip:hover span { border-color: var(--obsidian); }
.chip input:checked + span { background: var(--obsidian); color: var(--paper); border-color: var(--obsidian); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: var(--color-danger); font-size: .9rem; font-weight: 500; }
.form-note { margin: .9rem 0 0; text-align: center; font-size: .8rem; color: var(--ink-soft); }
.request-form button[disabled] { opacity: .6; cursor: progress; }
.form-success { text-align: center; padding: 64px 32px; grid-column: 2; }
.form-success svg { width: 120px; height: 50px; margin: 0 auto 1.5rem; color: var(--obsidian); }
.form-success h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: .6rem; }
.form-success p { color: var(--ink-soft); margin-bottom: 1.75rem; }
.form-success .success-account { margin-bottom: 1rem; }
.account-hint { margin-top: 1.75rem; font-size: .9rem; }
.account-hint a, .footer-copy a { font-weight: 600; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line-dark); }
[hidden] { display: none !important; }
.request-form .captcha { margin: 4px 0 16px; min-height: 65px; }
/* Built-in bot check status line */
/* Built-in "I'm not a robot" check box */
.captcha.pow { display: flex; align-items: center; gap: .75rem; min-height: 0; padding: .75rem .95rem; border-radius: 10px; border: 1px solid rgba(11, 11, 13, .14); background: #fff; font-size: .9rem; color: #2A2A2E; }
.pow-box { position: relative; flex: none; width: 24px; height: 24px; padding: 0; border-radius: 6px; border: 2px solid #8A8A8F; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.pow-box:hover:not(:disabled) { border-color: var(--obsidian); }
.pow-label { cursor: pointer; user-select: none; }
.captcha.pow[data-state="busy"] .pow-box { border-color: transparent; border-top-color: var(--obsidian); border-right-color: var(--obsidian); border-radius: 50%; animation: pow-spin .8s linear infinite; cursor: progress; }
.captcha.pow[data-state="busy"] .pow-label { color: #55555A; cursor: progress; }
.captcha.pow[data-state="done"] { background: #EAF6EE; border-color: #B9E2C7; color: #1D6B3A; }
.captcha.pow[data-state="done"] .pow-box { border-color: #1D6B3A; background: #1D6B3A; cursor: default; }
.captcha.pow[data-state="done"] .pow-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.captcha.pow[data-state="done"] .pow-label { cursor: default; }
.captcha.pow[data-state="error"] { color: #8C1D18; background: #FBE4E2; border-color: #F0C3BE; }
@keyframes pow-spin { to { transform: rotate(360deg); } }
.contact-list address { font-style: normal; font-weight: 500; text-align: right; }
.socials { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1rem; }
.contact-list li > span:first-child { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.contact-list a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; text-align: right; }
.contact-list a:hover { color: var(--gold); }

/* Footer */
.site-footer { background: var(--paper); color: var(--obsidian); padding: 48px 0 40px; border-top: 1px solid var(--line-light); }
.footer-inner { display: grid; gap: 1.25rem; }
.footer-tags { margin: 0; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.footer-copy { margin: 0; font-size: .8rem; color: var(--ink-soft); }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
  .request, .about, .contact { grid-template-columns: 1fr; }
  .request-intro { position: static; }
  .form-success { grid-column: auto; }
  .about-mark { max-width: 280px; }
  .site-header .brand-sub { display: none; }
  .nav-menu { gap: 1.5rem; }
}

/* Phone */
@media (max-width: 760px) {
  .brand-sub { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; color: inherit;
  }
  .nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(11, 11, 13, .97);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line-dark); font-size: .8rem; }
  .nav-menu .btn { margin-top: 1.25rem; }
  .site-header.menu-open { background: rgba(11, 11, 13, .97); }

  .hero-wordmark { letter-spacing: .38em; }
  .tagline { letter-spacing: .2em; gap: .5rem; }
  .rule { width: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .services, .steps, .values, .field-row { grid-template-columns: 1fr; }
  .contact-list li { flex-direction: column; gap: .3rem; }
  .contact-list a, .contact-list address { text-align: left; }
  .socials { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Privacy Policy / Terms of Service */
.legal-hero {
  color: var(--paper);
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(167, 167, 167, .14), transparent 60%),
    linear-gradient(160deg, #18181B 0%, var(--obsidian) 60%);
  padding: 28px 0 56px;
}
.legal-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 56px; }
.legal-nav .brand { color: var(--paper); }
.legal-back { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; opacity: .8; }
.legal-back:hover { opacity: 1; }
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300; }
.legal-meta { margin: 1rem 0 0; color: rgba(246, 244, 240, .7); max-width: 40rem; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-top: 56px; padding-bottom: 96px; align-items: start; }
.legal-toc { position: sticky; top: 24px; font-size: .88rem; }
.legal-toc-title { font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .75rem; }
.legal-toc ol { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .1rem; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: block; padding: .35rem .6rem; border-radius: 8px; text-decoration: none; color: var(--slate); }
.legal-toc a::before { content: counter(toc) ". "; color: var(--stone); }
.legal-toc a:hover { background: #fff; color: var(--obsidian); }
.legal-switch { display: inline-block; font-weight: 600; font-size: .85rem; }
.legal-body { max-width: 46rem; }
.legal-body section { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line-light); scroll-margin-top: 24px; }
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 { font-size: 1.35rem; font-weight: 500; margin-bottom: 1rem; }
.legal-body p, .legal-body li { color: var(--ink-body); }
.legal-body ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal-body li { margin-bottom: .4rem; }
.legal-body li::marker { color: var(--gold-ink); }
.legal-body a { font-weight: 500; }
.footer-copy a + a { margin-left: 0; }
.legal-links { font-size: .82rem; color: var(--ink-soft); }
.legal-links a { font-weight: 600; color: inherit; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; padding-top: 32px; }
  .legal-toc { position: static; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 16px; }
  .legal-nav { margin-bottom: 36px; }
  .legal-nav .brand-sub { display: none; }
}

/* =====================================================================
   Animations (all switched off for visitors who prefer reduced motion)
   ===================================================================== */
@keyframes intro-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes track-in { from { opacity: 0; letter-spacing: 1.1em; filter: blur(4px); } to { opacity: 1; filter: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wave-drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@keyframes sheen { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* Hero: the logo draws itself, then the text follows in sequence */
.intro { animation: intro-up .9s var(--ease) var(--d, 0s) both; }
.intro-track { animation: track-in 1.3s var(--ease) var(--d, 0s) both; }
.logo-draw path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.logo-draw .d1 { animation: draw .8s cubic-bezier(.65, 0, .35, 1) .2s forwards; }
.logo-draw .d2 { animation: draw .55s cubic-bezier(.65, 0, .35, 1) .65s forwards; }
.logo-draw .d3 { animation: draw .55s cubic-bezier(.65, 0, .35, 1) .85s forwards; }
.logo-draw .d4 { transform-box: fill-box; animation: intro-up .7s var(--ease) 1s both; }

/* Hero background: drifting waves and a slow light sweep */
.hero-waves path { animation: wave-drift 16s ease-in-out infinite alternate; }
.hero-waves path:nth-child(2n) { animation-duration: 19s; animation-direction: alternate-reverse; }
.hero-waves path:nth-child(3n) { animation-duration: 23s; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .045) 50%, transparent 58%);
  background-size: 250% 100%; animation: sheen 10s ease-in-out infinite;
}

/* Staggered reveals (main.js sets --d per item) */
.js .reveal { transition-delay: var(--d, 0s); }

/* Service cards: soft gold spotlight that follows the mouse */
.card { overflow: hidden; }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 169, 107, .16), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card .card-num::after { transition: background var(--dur-slow) var(--ease); }
.card:hover .card-num::after { background: var(--gold); }

/* Process: the gold line grows in as each step appears */
.js .step.reveal::before { width: 0; transition: width 1s var(--ease) calc(var(--d, 0s) + .3s); }
.js .step.reveal.in::before { width: 40px; }
.step-num { background: linear-gradient(180deg, #F4F2EE, #7A7A7E); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* About: the X spins in, then floats */
.js .about-mark.reveal svg { opacity: 0; transform: rotate(-120deg) scale(.5); transition: transform 1.3s var(--ease) .2s, opacity .8s ease .2s; }
.js .about-mark.reveal.in svg { opacity: 1; transform: none; }
.about-mark.in svg { animation: float 6s ease-in-out 1.7s infinite; }

/* Buttons: a light sweep on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(201, 169, 107, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .75s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

/* Menu links: gold underline grows from the left */
.nav-menu a:not(.btn) { position: relative; }
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-menu a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

/* Small touches */
.chip input:checked + span { animation: pop .3s var(--ease); }
.contact-list li > * { transition: transform var(--dur-base) var(--ease); }
@media (hover: hover) { .contact-list li:hover > * { transform: translateX(6px); } }
.values li { transition: transform var(--dur-base) var(--ease); }
.values li:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .intro, .intro-track, .logo-draw .d4 { opacity: 1 !important; transform: none !important; filter: none !important; }
  .logo-draw path[pathLength] { stroke-dashoffset: 0 !important; }
  .js .step.reveal::before { width: 40px; }
  .js .about-mark.reveal svg { opacity: 1; transform: none; }
  .hero-bg::after { display: none; }
}

/* --- Products ------------------------------------------------------------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease);
}
@media (hover: hover) {
  .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
}
.product-card:focus-within { border-color: var(--line-strong); }
.product-media { display: block; aspect-ratio: 16 / 10; background: var(--obsidian); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--paper);
  background: radial-gradient(120% 90% at 20% 0%, #2E2E2E 0%, var(--obsidian) 60%); }
.product-placeholder svg { width: 34%; opacity: .85; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.product-cat { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .6rem; }
.product-body h3 a { text-decoration: none; }
.product-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-body p { color: var(--ink-soft); font-size: .93rem; margin: .65rem 0 0; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line-light); }
.product-foot .card-link { margin: 0; }
.product-price { font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.product-price.big { font-size: 1.35rem; font-weight: 500; margin: 0 0 1.25rem; }

.filters-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters-bar:empty { display: none; }
.filters-bar.sub { margin-top: -14px; }
.filters-bar.sub .filter-chip { font-size: .78rem; padding: .4rem .85rem; }
.filter-chip {
  display: inline-flex; align-items: center; min-height: 40px;
  font: inherit; font-size: var(--text-sm); font-weight: 500; padding: .5rem 1rem; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--obsidian); text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.filter-chip:hover { border-color: var(--obsidian); }
.filter-chip.active { background: var(--obsidian); color: var(--paper); border-color: var(--obsidian); }
.filter-chip:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.products-more { margin: 36px 0 0; text-align: center; }
.products-more .btn { display: inline-flex; }

.products-main { padding-top: 48px; padding-bottom: 80px; min-height: 40vh; }
.products-intro { max-width: 46rem; color: var(--ink-soft); margin-bottom: 28px; }
.products-empty { color: var(--ink-soft); padding: 48px 0; }
.products-page .legal-meta:empty { display: none; }
.crumbs { font-size: .8rem; color: var(--ink-soft); margin-bottom: 28px; }
.crumbs a { color: inherit; text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--obsidian); text-decoration: underline; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-detail-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--obsidian); }
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-lead { font-size: 1.15rem; line-height: 1.6; margin-bottom: 1.25rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; }
.product-detail-text h2 { font-size: 1.1rem; font-weight: 600; margin-top: .5rem; }
.product-detail-text .checks { margin-top: 1rem; margin-bottom: 2rem; }
.product-description p { color: var(--ink-body); }
.products-cta { background: var(--obsidian); color: var(--paper); padding: 56px 0; }
.products-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.products-cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

@media (max-width: 980px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .products-grid, .product-detail { grid-template-columns: 1fr; }
}

/* The menu has one more link (Products): keep it on one line on tablets */
.nav-menu a { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1080px) {
  .nav { gap: 1.5rem; }
  .brand-mark { flex: none; }
  .site-header .brand-sub { display: none; }
  .nav-menu { gap: 1rem; }
  .nav-menu a:not(.btn) { letter-spacing: .12em; font-size: .68rem; }
}

/* =====================================================================
   Design system: responsive refinements
   Breakpoints: 1080 (small laptop) / 980 (tablet) / 760 (phone) / 400 (small phone)
   ===================================================================== */
.services, .products-grid { gap: clamp(16px, 2vw, 24px); }
.hero-lead { line-height: 1.7; }
.request-intro p, .about-text p { max-width: 38rem; }
.contact-list li { align-items: baseline; }

@media (max-width: 760px) {
  .section-head { margin-bottom: var(--space-10); }
  .card { padding: var(--space-6); }
  .step { padding-right: 0; padding-bottom: var(--space-6); }
  .request-form, .form-success { border-radius: var(--radius); }
  .products-cta .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .hero-inner { padding-top: 104px; padding-bottom: 56px; }
  .hero-actions { margin: var(--space-8) 0 var(--space-10); }
  .eyebrow { letter-spacing: .24em; }
  .tagline { font-size: var(--text-2xs); }
}

/* Wide screens: give the hero and section titles a little more presence */
@media (min-width: 1440px) {
  :root { --max: 1240px; }
}

/* =====================================================================
   AXN assistant: floating 3D robot guide + AI chat on every public page
   (built by js/assistant.js)
   ===================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.axn-guide {
  position: fixed; z-index: var(--z-overlay);
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3);
  pointer-events: none; color: var(--paper);
}
.axn-guide > * { pointer-events: auto; }

/* The robot: a small SVG figure that stands in the corner */
.guide-bot {
  position: relative; width: 96px; height: 120px; padding: 0; cursor: pointer;
  background: none; border: 0; border-radius: 24px;
  /* a light rim so the dark robot also reads on dark sections */
  filter: drop-shadow(0 0 1px rgba(246, 244, 240, .45)) drop-shadow(0 12px 16px rgba(11, 11, 13, .28));
  transition: transform var(--dur-base) var(--ease);
}
.guide-bot:hover { transform: translateY(-3px) scale(1.04); }
.guide-bot:active { transform: scale(.97); }
.guide-bot:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.robot { display: block; width: 100%; height: 100%; overflow: visible; }
.robot * { transform-box: view-box; }
.rb-shadow { fill: rgba(11, 11, 13, .22); transform-origin: 60px 145px; animation: rb-shadow 3.2s ease-in-out infinite; }
.rb-body { animation: rb-bob 3.2s ease-in-out infinite; }
/* Head turns toward the pointer; eyes look at it (variables set by assistant.js) */
.rb-head { transform-origin: 60px 74px; transform: rotate(calc(var(--tilt, 0) * 1deg)); transition: transform .35s var(--ease); }
.rb-face { transform: translate(calc(var(--look-x, 0) * 1px), calc(var(--look-y, 0) * 1px)); transition: transform .25s var(--ease); }
.rb-eye { transform-box: fill-box; transform-origin: center; animation: rb-blink 4.8s infinite; }
.rb-mouth { transform-box: fill-box; transform-origin: center; transition: transform var(--dur-fast) var(--ease); }
.rb-arm-l { transform-origin: 19px 88px; }
.rb-arm-r { transform-origin: 101px 88px; }
.rb-halo { opacity: .35; transform-origin: 60px 9px; }
.rb-waves { opacity: 0; }
.rb-emblem { transform-origin: 60px 103px; }

/* Moods */
.waving .rb-arm-r { animation: rb-wave .9s ease-in-out 2; }
.chatter .rb-mouth, .speaking .rb-mouth { animation: rb-talk .26s ease-in-out infinite alternate; }
.thinking .rb-face { transform: translate(calc(var(--look-x, 0) * .4px + 2px), -3px); }
.thinking .rb-halo { animation: rb-glow 1s ease-in-out infinite; }
.listening .rb-waves { opacity: 1; animation: rb-waves 1.2s ease-in-out infinite; }
.listening .rb-halo, .speaking .rb-halo { opacity: 1; animation: rb-glow .8s ease-in-out infinite; }
.listening .rb-head { transform: rotate(calc(var(--tilt, 0) * 1deg - 6deg)); }
.has-tip .rb-emblem { animation: rb-pulse 1.6s ease-in-out infinite; }
.open .rb-body, .open .rb-shadow { animation-duration: 4.5s; }

@keyframes rb-bob { 50% { transform: translateY(-4px); } }
@keyframes rb-shadow { 50% { transform: scaleX(.85); opacity: .7; } }
@keyframes rb-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes rb-wave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-150deg); } 60% { transform: rotate(-120deg); } 80% { transform: rotate(-150deg); } }
@keyframes rb-talk { from { transform: scaleY(1) scaleX(1); } to { transform: scaleY(2.6) scaleX(.8); } }
@keyframes rb-glow { 50% { opacity: .5; transform: scale(1.3); } }
@keyframes rb-waves { 50% { opacity: .35; } }
@keyframes rb-pulse { 50% { transform: scale(1.15); } }

/* Guide tips: a speech bubble from the robot */
.guide-tip {
  position: relative; width: min(320px, calc(100vw - 40px));
  padding: var(--space-4) var(--space-8) var(--space-4) var(--space-5);
  border-radius: 18px 18px 4px 18px;
  background: var(--obsidian); border: 1px solid rgba(201, 169, 107, .35);
  box-shadow: 0 20px 44px -18px rgba(11, 11, 13, .6);
  animation: tip-in var(--dur-slow) var(--ease) both;
}
.guide-tip[hidden] { display: none; }
.tip-text { margin: 0 0 var(--space-3); font-size: var(--text-sm); line-height: 1.55; color: var(--paper); }
.tip-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tip-action {
  display: inline-flex; align-items: center; min-height: 34px; padding: .35rem .85rem; border-radius: var(--radius-pill);
  font: inherit; font-size: var(--text-xs); font-weight: 600; text-decoration: none; cursor: pointer;
  color: var(--paper); background: transparent; border: 1px solid rgba(246, 244, 240, .3);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.tip-action:first-child { background: var(--paper); color: var(--obsidian); border-color: var(--paper); }
.tip-action:hover { border-color: var(--gold); }
.tip-action:first-child:hover { background: #fff; }
.tip-close {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; cursor: pointer;
  font: inherit; font-size: 1.25rem; line-height: 1; color: rgba(246, 244, 240, .6); background: transparent; border: 0;
}
.tip-close { position: absolute; top: 6px; right: 6px; }
.tip-close:hover { color: var(--paper); background: rgba(255, 255, 255, .08); }
@keyframes tip-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* Chat panel */
.guide-panel {
  display: flex; flex-direction: column; width: min(380px, calc(100vw - 40px)); max-height: min(560px, calc(100vh - 180px));
  border-radius: 20px; overflow: hidden; transform-origin: bottom right;
  background: linear-gradient(170deg, #18181B 0%, var(--obsidian) 55%);
  border: 1px solid rgba(201, 169, 107, .3);
  box-shadow: 0 30px 70px -24px rgba(11, 11, 13, .7);
  animation: tip-in var(--dur-slow) var(--ease) both;
}
.guide-panel[hidden] { display: none; }
.panel-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-bottom: 1px solid var(--line-dark); }
.panel-title { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.panel-title strong { font-size: var(--text-sm); font-weight: 600; }
.panel-title span { font-size: var(--text-xs); color: rgba(246, 244, 240, .6); }
.panel-close:focus-visible, .tip-close:focus-visible, .tip-action:focus-visible, .guide-panel :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.guide-panel .chat-log {
  list-style: none; margin: 0; padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
  flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(246, 244, 240, .2) transparent;
}
.msg {
  max-width: 88%; padding: 9px 13px; border-radius: 16px;
  font-size: .9rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;
  animation: msg-in var(--dur-base) var(--ease) both;
}
.msg.bot { align-self: flex-start; border-bottom-left-radius: 4px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); color: var(--paper); }
.msg.me { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--paper); color: var(--obsidian); }
.msg.error { border-color: rgba(242, 184, 181, .45); color: #F2B8B5; }
.msg.typing { min-width: 64px; min-height: 40px; }
.msg.typing::after {
  content: ""; display: block; width: 6px; height: 6px; margin: 6px 0 0 4px; border-radius: 50%;
  background: var(--gold); box-shadow: 12px 0 0 rgba(201, 169, 107, .6), 24px 0 0 rgba(201, 169, 107, .3);
  animation: typing 1.2s ease-in-out infinite;
}
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes typing { 50% { box-shadow: 12px 0 0 rgba(201, 169, 107, .3), 24px 0 0 rgba(201, 169, 107, .6); opacity: .6; } }

.guide-panel .chat-suggest { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-4) var(--space-3); }
.guide-panel .chat-suggest[hidden] { display: none; }
.chat-suggest button {
  min-height: 34px; padding: .35rem .85rem; border-radius: var(--radius-pill); cursor: pointer;
  font: inherit; font-size: var(--text-xs); color: rgba(246, 244, 240, .75);
  background: transparent; border: 1px solid rgba(246, 244, 240, .2);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chat-suggest button:hover { border-color: var(--gold); color: var(--paper); }
.guide-panel .chat-form {
  display: flex; align-items: flex-end; gap: var(--space-2); margin: 0 var(--space-4) var(--space-3);
  padding: 5px 5px 5px 16px; border-radius: 24px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(246, 244, 240, .18);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.guide-panel .chat-form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 107, .18); }
.chat-form textarea {
  flex: 1; min-width: 0; max-height: 120px; padding: 9px 0; resize: none;
  font: inherit; font-size: var(--text-base); line-height: 1.45; color: var(--paper);
  background: transparent; border: 0; outline: none;
}
.chat-form textarea::placeholder { color: rgba(246, 244, 240, .5); }
.chat-form textarea:focus-visible { outline: none; }
.chat-send {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--paper); color: var(--obsidian); border: 0;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.chat-send:hover:not(:disabled) { transform: translateX(2px); }
.chat-send:disabled { opacity: .4; cursor: progress; }
.chat-send svg { width: 18px; height: 18px; }
.guide-links { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-4) var(--space-3); }
.guide-links .btn { flex: 1 1 auto; }
.chat-note { margin: 0; padding: 0 var(--space-4) var(--space-4); font-size: var(--text-xs); line-height: 1.6; color: rgba(246, 244, 240, .55); }
.guide-tips-toggle {
  padding: 0; font: inherit; color: var(--paper); background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em;
}


/* Voice controls in the chat */
.chat-mic {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  color: var(--paper); background: transparent; border: 1px solid rgba(246, 244, 240, .25);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chat-mic svg { width: 18px; height: 18px; }
.chat-mic:hover:not(:disabled) { border-color: var(--gold); }
.chat-mic[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--obsidian); animation: mic-live 1.2s ease-in-out infinite; }
.chat-mic:disabled { opacity: .4; cursor: progress; }
@keyframes mic-live { 50% { box-shadow: 0 0 0 6px rgba(201, 169, 107, .25); } }
.chat-status { margin: 0 var(--space-4) var(--space-3); font-size: var(--text-xs); color: var(--gold); }
.chat-status[hidden] { display: none; }
.panel-icon {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; cursor: pointer;
  font: inherit; font-size: 1.25rem; line-height: 1; color: rgba(246, 244, 240, .7); background: transparent; border: 0;
}
.panel-icon svg { width: 18px; height: 18px; }
.panel-icon:hover { color: var(--paper); background: rgba(255, 255, 255, .08); }
.panel-icon[aria-pressed="true"] { color: var(--gold); }
/* The small robot in the chat header shares the corner robot's moods */
.panel-avatar { width: 34px; height: 42px; flex: none; }
.panel-avatar .robot { filter: none; }
.panel-avatar .rb-shadow, .panel-avatar .rb-waves { display: none; }

/* Staff assistant (admin panel): same robot, marked as internal */
.staff-badge {
  display: inline-block; margin-left: .35rem; padding: 1px 7px; border-radius: var(--radius-pill); vertical-align: 1px;
  font-size: .625rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--obsidian); background: var(--gold);
}
.staff-panel { width: min(440px, calc(100vw - 40px)); max-height: min(640px, calc(100vh - 170px)); }
/* What the assistant is doing while it looks things up */
.msg.typing[data-step]::before { content: attr(data-step) "…"; display: block; font-size: var(--text-xs); color: rgba(246, 244, 240, .6); }
.action-card { max-width: 100%; width: 100%; border-color: rgba(201, 169, 107, .55); background: rgba(201, 169, 107, .08); white-space: normal; }
.action-card p { margin: 0 0 6px; }
.action-what strong { font-weight: 600; }
.action-detail { font-size: var(--text-xs); color: rgba(246, 244, 240, .7); }
.action-message {
  margin: 0 0 10px; padding: 8px 10px; border-left: 2px solid var(--gold); border-radius: 4px;
  background: rgba(0, 0, 0, .25); white-space: pre-wrap; font-size: .875rem;
}
.action-buttons { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.action-result { margin: 6px 0 0 !important; font-size: var(--text-xs); color: var(--gold); }
.action-result:empty { display: none; }
.action-card.cancelled { opacity: .6; }
/* Inside the assistant, outline buttons stay light-on-dark (the admin panel restyles .btn-ghost for light pages) */
.axn-guide .btn-ghost { color: var(--paper); background: transparent; border-color: rgba(246, 244, 240, .35); }
.axn-guide .btn-ghost:hover { border-color: var(--paper); background: transparent; }

@media (max-width: 760px) {
  .axn-guide { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .guide-bot { width: 68px; height: 85px; }
  .guide-tip { width: min(300px, calc(100vw - 24px)); }
  /* Chat becomes a bottom sheet above the avatar */
  .guide-panel { position: fixed; left: 12px; right: 12px; bottom: 88px; width: auto; max-height: calc(100dvh - 120px); }
}
@media (prefers-reduced-motion: reduce) {
  .guide-tip, .guide-panel, .msg, .msg.typing::after, .chat-mic[aria-pressed="true"],
  .robot *, .waving .rb-arm-r, .chatter .rb-mouth, .speaking .rb-mouth, .has-tip .rb-emblem { animation: none !important; }
  .rb-head, .rb-face { transition: none; }
}
@media print { .axn-guide { display: none; } }

/* =====================================================================
   Language button (js/lang.js) and Sinhala / Tamil text
   ===================================================================== */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .3rem .75rem; cursor: pointer;
  font: inherit; font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; color: inherit;
  background: transparent; border: 1px solid rgba(246, 244, 240, .3); border-radius: var(--radius-pill);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--gold); background: rgba(255, 255, 255, .06); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-overlay); min-width: 160px; margin: 0; padding: 6px; list-style: none;
  background: var(--obsidian); border: 1px solid rgba(201, 169, 107, .35); border-radius: 14px;
  box-shadow: 0 20px 44px -18px rgba(11, 11, 13, .6);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: block; width: 100%; min-height: 40px; padding: .5rem .8rem; border-radius: 10px; text-align: left; cursor: pointer;
  font: inherit; font-size: var(--text-sm); color: var(--paper); background: transparent; border: 0;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
.lang-menu button[aria-checked="true"] { color: var(--gold); font-weight: 600; }
.lang-menu button[aria-checked="true"]::after { content: " ✓"; }
.nav-menu .lang-switch .lang-btn::after, .nav-menu .lang-switch a::after { display: none; }
.legal-nav .lang-switch { margin-left: auto; margin-right: 1rem; }
@media (max-width: 760px) {
  .nav-menu .lang-switch { padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
  .nav-menu .lang-menu { position: static; margin-top: 8px; box-shadow: none; }
  .legal-nav .lang-switch { margin-right: .5rem; }
}

/* While a translated page loads (js/lang-early.js) */
html.lang-pending body > header, html.lang-pending body > main, html.lang-pending body > footer { visibility: hidden; }

/* Sinhala and Tamil: fonts that have the letters, roomier lines, no wide tracking or capitals */
html:lang(si) body, html:lang(si-LK) body {
  font-family: "Montserrat", "Noto Sans Sinhala", "Nirmala UI", "Iskoola Pota", system-ui, sans-serif;
}
html:lang(ta) body, html:lang(ta-LK) body {
  font-family: "Montserrat", "Noto Sans Tamil", "Nirmala UI", "Latha", system-ui, sans-serif;
}
html:is(:lang(si), :lang(ta)) body { line-height: 1.8; }
html:is(:lang(si), :lang(ta)) :is(h1, h2, h3) { line-height: 1.4; }
html:is(:lang(si), :lang(ta)) *:not(.hero-wordmark):not(.brand-sub):not([translate="no"]) { letter-spacing: normal !important; text-transform: none !important; }
