/* Ayattih Tech — site styles. Values come from the Ayattih Tech design system (tokens.json). */

@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-variable.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* brand */
  --brand-red: #ed1c24;
  --brand-crimson: #be1e2d;
  --brand-maroon: #871e2d;
  --brand-black: #000000;
  /* surfaces and text */
  --surface: #ffffff;
  --surface-subtle: #f5f5f5;
  --surface-inverse: #0b0b0c;
  --ink: #111111;
  --ink-muted: #5a5a5e;
  --ink-inverse: #f4f4f5;
  --ink-inverse-muted: #a1a1a8;
  --border: #e2e2e4;
  --border-control: #8c8c92;
  --action: var(--brand-crimson);
  --action-hover: var(--brand-maroon);
  --on-action: #ffffff;
  --accent-text: var(--brand-crimson);
  --accent-text-on-dark: #ff5c63;
  --focus-ring: var(--brand-crimson);
  /* type */
  --font-display: "Sora", "Montserrat", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  /* space */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  /* shape */
  --radius-sm: 2px; --radius-md: 6px; --radius-lg: 12px;
  --content-max: 1200px;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.dark :focus-visible { outline-color: var(--accent-text-on-dark); }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: 64px; line-height: 68px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 22px; line-height: 28px; font-weight: 600; }
p { margin: 0; }
.lede { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 56ch; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-8); }
.section { padding: var(--space-24) 0; }
.section-subtle { background: var(--surface-subtle); }
.dark { background: var(--surface-inverse); color: var(--ink-inverse); }
.dark h2, .dark h3 { color: var(--ink-inverse); }
.dark .lede { color: var(--ink-inverse-muted); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--surface); padding: var(--space-2) var(--space-4); z-index: 10; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-control); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.dark .btn-primary:focus-visible { outline-color: var(--accent-text-on-dark); }
.text-link { font-weight: 600; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-top: var(--space-3); padding-bottom: var(--space-3); }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav ul { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent-text); text-decoration: underline; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero h1 { color: var(--ink-inverse); max-width: 13ch; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: var(--space-8); padding-top: var(--space-16); padding-bottom: var(--space-24); }
.hero .lede { margin-top: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
.dark .btn-secondary { color: var(--ink-inverse); border-color: #5a5a60; }
.dark .btn-secondary:hover { color: #fff; border-color: #fff; }
.hero-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 90% at 70% 45%, #000 20%, transparent 75%); }
.hero-grid::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px;
  background: linear-gradient(180deg, transparent, rgba(237,28,36,.16) 85%, rgba(237,28,36,.5) 100%);
  border-bottom: 1px solid rgba(255,92,99,.55); transform: translateY(-160px); animation: scan 9s linear infinite; }
@keyframes scan { 0% { transform: translateY(-160px); } 70%, 100% { transform: translateY(640px); } }
.hero-stage { perspective: 900px; justify-self: end; width: 100%; max-width: 560px; }
.hero-art { width: 100%; transition: transform .25s ease-out; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transform-style: preserve-3d; }
.hero-art .node rect { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.22); }
.hero-art .ring { transform-box: fill-box; transform-origin: center; }
.hero-art .ring-a { animation: spin 70s linear infinite; }
.hero-art .ring-b { animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-art .core { transform-box: fill-box; transform-origin: center; animation: breathe 5s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(237,28,36,.55)); }
@keyframes breathe { 50% { transform: scale(1.04); } }
.hero-art .px { opacity: 0; animation: drift 4.2s ease-in infinite; animation-delay: var(--d, 0s); }
@keyframes drift { 0% { opacity: 0; transform: translate(10px, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-46px, 12px); } }

/* ODC spotlight */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); align-items: start; }
.split .lede { margin-top: var(--space-4); }
.split .text-link { display: inline-block; margin-top: var(--space-6); }
.roles { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.roles > div { padding: var(--space-8); }
.roles > div + div { border-left: 1px solid var(--border); background: var(--surface-subtle); }
.roles h3 { font-size: 18px; line-height: 24px; margin-bottom: var(--space-4); }
.roles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.roles li { position: relative; padding-left: var(--space-6); }
.roles li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: var(--radius-sm); background: var(--brand-red); }
.roles > div + div li::before { background: var(--ink); }

/* Other services */
.section-head { max-width: 640px; margin-bottom: var(--space-12); }
.section-head .lede { margin-top: var(--space-4); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.service { padding-top: var(--space-6); border-top: 3px solid var(--ink); }
.service p { margin-top: var(--space-3); color: var(--ink-muted); }
.service a { display: inline-block; margin-top: var(--space-4); }

/* Why */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12) var(--space-16); }
.reason { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); }
.reason svg { width: 32px; height: 28px; margin-top: 2px; }
.reason p { margin-top: var(--space-2); color: var(--ink-muted); max-width: 46ch; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: var(--space-6);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--on-action); background: var(--brand-black); border-radius: var(--radius-md);
}
.steps li:last-child::before { background: var(--action); color: var(--on-action); }
.steps p { margin-top: var(--space-2); color: var(--ink-muted); }

/* Clocks */
.clocks-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: end; margin-bottom: var(--space-12); }
.clocks-head .lede { margin-top: var(--space-4); }
.clocks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #2a2a2e; }
.clock { padding: var(--space-6) var(--space-4) 0 0; }
.clock + .clock { padding-left: var(--space-4); border-left: 1px solid #2a2a2e; }
.clock-city { font-weight: 600; }
.clock-time { white-space: nowrap; font-family: var(--font-display); font-size: 40px; line-height: 48px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: var(--space-2); }
.clock-day { color: var(--ink-inverse); font-size: 14px; line-height: 22px; }
.clock-meta { color: var(--ink-inverse-muted); font-size: 14px; line-height: 22px; }
.clock-home .clock-time { color: var(--accent-text-on-dark); }

/* About teaser */
.about-teaser { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-16); align-items: center; }
.about-teaser blockquote { margin: 0; font-family: var(--font-display); font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.about-teaser p { color: var(--ink-muted); }
.about-teaser .text-link { display: inline-block; margin-top: var(--space-4); }

/* CTA */
.cta { position: relative; overflow: hidden; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8); }
.cta .lede { margin-top: var(--space-4); }

/* Footer */
.site-footer { padding: var(--space-16) 0 var(--space-8); border-top: 1px solid #2a2a2e; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.site-footer .footer-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 28px; color: var(--ink-inverse); margin-bottom: var(--space-2); }
.site-footer p, .site-footer li { color: var(--ink-inverse-muted); font-size: 14px; line-height: 22px; }
.site-footer h3 { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-inverse); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--ink-inverse); text-decoration: none; }
.site-footer a:hover { color: var(--accent-text-on-dark); text-decoration: underline; }
.legal { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid #2a2a2e; font-size: 12px !important; line-height: 18px !important; }

/* Responsive */
@media (max-width: 960px) {
  h1 { font-size: 48px; line-height: 52px; }
  h2 { font-size: 32px; line-height: 38px; }
  .hero .wrap, .split, .about-teaser { grid-template-columns: 1fr; }
  .hero-stage { justify-self: start; max-width: 460px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clocks { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-6); }
  .clock:nth-child(4) { border-left: 0; padding-left: 0; }
  .clocks-head { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 var(--space-4); }
  .section { padding: var(--space-16) 0; }
  h1 { font-size: 40px; line-height: 44px; }
  h2 { font-size: 28px; line-height: 34px; }
  .brand img { width: 140px; }
  .nav-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); background: none; border: 1px solid var(--border-control); border-radius: var(--radius-md); font: 600 15px/20px var(--font-sans); color: var(--ink); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--space-4); flex-direction: column; align-items: stretch; gap: var(--space-4); z-index: 5; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: var(--space-3); }
  .site-header { position: relative; }
  .services, .reasons, .steps, .roles { grid-template-columns: 1fr; }
  .roles > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clock:nth-child(n) { border-left: 0; padding-left: 0; }
  .clock:nth-child(even) { padding-left: var(--space-4); border-left: 1px solid #2a2a2e; }
  .clock-time { font-size: 26px; line-height: 34px; }
  .hero .wrap { padding-top: var(--space-12); padding-bottom: var(--space-16); }
  .footer-grid { grid-template-columns: 1fr; }
  .about-teaser blockquote { font-size: 26px; line-height: 34px; }
}
/* Inner pages */
.nav a[aria-current="page"] { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; }
.page-hero { border-bottom: 1px solid var(--border); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-8); align-items: center; padding-top: var(--space-12); padding-bottom: var(--space-16); }
.page-hero h1 { font-size: 56px; line-height: 60px; max-width: 16ch; }
.page-hero .lede { margin-top: var(--space-6); }
.page-hero-art { justify-self: end; width: 100%; max-width: 320px; }
.crumb { font-size: 14px; line-height: 22px; color: var(--ink-muted); margin-bottom: var(--space-4); }
.crumb a { color: var(--ink-muted); }
.aside-note { margin-top: var(--space-6); color: var(--ink-muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.checklist li { position: relative; padding-left: var(--space-8); color: var(--ink-muted); }
.checklist li strong { display: block; color: var(--ink); font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 14px solid var(--brand-red); }
.service p a { display: inline; margin: 0; }
.services:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.duty-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.duty-table th, .duty-table td { text-align: left; vertical-align: top; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--border); }
.duty-table thead th { font-family: var(--font-display); font-size: 15px; font-weight: 600; background: var(--surface-subtle); }
.duty-table tbody th { font-weight: 600; width: 22%; }
.duty-table tbody tr:last-child th, .duty-table tbody tr:last-child td { border-bottom: 0; }
.duty-table td:last-child { color: var(--ink); }
.duty-table td:nth-child(2):not(:last-child) { color: var(--ink-muted); }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-6); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-16); align-items: start; }
.faq { border-top: 1px solid var(--border-control); }
.faq details { border-bottom: 1px solid var(--border-control); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) 0; font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-sans); font-weight: 400; font-size: 24px; line-height: 24px; color: var(--accent-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 var(--space-6); color: var(--ink-muted); max-width: var(--measure); }
@media (max-width: 960px) {
  .page-hero-grid, .faq-wrap { grid-template-columns: 1fr; }
  .page-hero-art { display: none; }
  .page-hero h1 { font-size: 44px; line-height: 48px; }
  .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap { gap: var(--space-8); }
}
@media (max-width: 720px) {
  .page-hero h1 { font-size: 36px; line-height: 40px; }
  .services:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
  .table-wrap { overflow: visible; }
  .duty-table { min-width: 0; }
  .duty-table thead { display: none; }
  .duty-table tr { display: block; padding: var(--space-4) var(--space-4); border-bottom: 1px solid var(--border); }
  .duty-table tbody tr:last-child { border-bottom: 0; }
  .duty-table th, .duty-table td { display: block; padding: 0; border: 0; width: auto; }
  .duty-table tbody th { font-family: var(--font-display); font-size: 17px; margin-bottom: var(--space-2); width: auto; }
  .duty-table td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-2); margin-top: var(--space-2); }
  .duty-table td::before { content: attr(data-label); font-weight: 600; color: var(--ink); font-size: 14px; line-height: 22px; }
  .steps-5 { grid-template-columns: 1fr; }
}

/* How we work, About, Contact, legal */
.steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-12); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: var(--space-8); }
.person-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface); margin-bottom: var(--space-4); }
.person p { color: var(--ink-muted); margin-top: var(--space-1); }
.person .person-role { color: var(--ink); font-weight: 600; }
.person .person-role + p { margin-top: var(--space-3); }
.facts-table tbody th { width: 28%; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-16); align-items: start; }
.contact-form-wrap h2 { margin-bottom: var(--space-8); }
.contact-form { display: grid; gap: var(--space-6); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 600; font-size: 15px; line-height: 20px; }
.field input, .field select, .field textarea {
  font: 16px/24px var(--font-sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--border-control); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); width: 100%; min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--focus-ring); }
.field [aria-invalid="true"] { border-color: var(--danger, #b42318); }
.form-error { color: #b42318; font-weight: 600; }
.form-note { color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.contact-form[hidden], .form-done[hidden] { display: none; }
.field.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-done { border-left: 4px solid var(--brand-crimson); background: var(--surface-subtle); padding: var(--space-6); border-radius: 4px; }
.form-done h3 { margin: 0 0 var(--space-2); }
.form-done p { margin: 0; }
.form-done:focus { outline: none; }
.form-done:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.contact-form .btn { justify-self: start; }
.contact-aside { background: var(--surface-subtle); border-radius: var(--radius-lg); padding: var(--space-8); }
.contact-aside h2 { font-size: 18px; line-height: 24px; margin-bottom: var(--space-2); }
.contact-aside p + h2 { margin-top: var(--space-6); }
.contact-aside p { color: var(--ink-muted); }
.contact-email { font-weight: 600; font-size: 18px; }
.page-hero-legal { padding: var(--space-12) 0 var(--space-12); max-width: 760px; }
.page-hero-legal h1 { font-size: 48px; line-height: 52px; }
.legal-date { margin-top: var(--space-4); color: var(--ink-muted); font-size: 14px; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 24px; line-height: 30px; margin: var(--space-12) 0 var(--space-3); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { color: var(--ink); margin: 0 0 var(--space-4); }
.prose ul { padding-left: var(--space-6); }
.prose li + li { margin-top: var(--space-2); }
.notfound .page-hero-grid { padding-top: var(--space-24); padding-bottom: var(--space-24); }
@media (max-width: 960px) {
  .steps-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-12); }
}
@media (max-width: 720px) {
  .steps-6 { grid-template-columns: 1fr; }
  .people { grid-template-columns: minmax(0, 360px); gap: var(--space-8); }
  .field-row { grid-template-columns: 1fr; }
  .page-hero-legal h1 { font-size: 36px; line-height: 40px; }
  .facts-table td { display: block; padding-left: 0 !important; }
  .facts-table td::before { content: none; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .hero-grid::after { display: none; } .hero-art .px { opacity: .7; } }


/* Faint tints and patterns, so the light areas are not flat white */
:root { --tint-rose: #fbf0f1; --tint-mist: #eef1f6; --tint-line: rgba(17,24,48,.045); }
.site-header { position: relative; background: linear-gradient(100deg, #ffffff 0%, #fcf1f2 50%, #eef1f7 100%); border-bottom: 0; box-shadow: 0 1px 0 rgba(190,30,45,.22); }
.site-header::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(17,24,48,.09) 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
.site-header .wrap { position: relative; }
.section { position: relative; }
.section > .wrap { position: relative; z-index: 1; }
.section:not(.dark):not(.section-subtle) { background:
  radial-gradient(ellipse 55% 70% at 100% 0%, rgba(190,30,45,.065), transparent 65%),
  radial-gradient(ellipse 50% 70% at 0% 100%, rgba(52,80,150,.07), transparent 65%), #ffffff; }
.section-subtle { background:
  radial-gradient(ellipse 60% 80% at 0% 0%, rgba(190,30,45,.07), transparent 60%),
  linear-gradient(180deg, #f2f4f8, #e9edf4); }
.section:not(.dark)::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--tint-line) 1px, transparent 1px), linear-gradient(90deg, var(--tint-line) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000, transparent 70%); }
.page-hero { position: relative; overflow: hidden; background:
  radial-gradient(ellipse 50% 90% at 100% 0%, rgba(190,30,45,.09), transparent 65%),
  linear-gradient(100deg, #ffffff, #eef1f7); border-bottom: 1px solid rgba(190,30,45,.18); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--tint-line) 1px, transparent 1px), linear-gradient(90deg, var(--tint-line) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 60% 100% at 80% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 100% at 80% 30%, #000, transparent 75%); }
.page-hero > .wrap { position: relative; }
.service, .reason, .steps li { background: linear-gradient(180deg, #ffffff, #f4f6fa); border: 1px solid #e1e5ee; border-radius: var(--radius-lg); padding: var(--space-6); transition: border-color .2s, box-shadow .2s, transform .2s; }
.service { border-top: 3px solid var(--ink); }
.service:hover, .reason:hover, .steps li:hover { border-color: rgba(190,30,45,.45); box-shadow: 0 14px 34px -16px rgba(190,30,45,.35); transform: translateY(-2px); }
.service:hover { border-top-color: var(--brand-crimson); }
.roles { background: linear-gradient(180deg, #ffffff, #f4f6fa); }
@media (prefers-reduced-motion: reduce) { .service:hover, .reason:hover, .steps li:hover { transform: none; } }


/* About page: centered layout */
.page-hero-center .wrap { text-align: center; padding-top: var(--space-16); padding-bottom: var(--space-16); }
.page-hero-center h1 { margin: var(--space-4) auto 0; max-width: 20ch; }
.page-hero-center .lede, .center-block .lede, .center-head .lede { margin-left: auto; margin-right: auto; }
.page-hero-center .lede { margin-top: var(--space-6); max-width: 62ch; }
.center-block { text-align: center; max-width: 820px; }
.name-quote { margin: 0 0 var(--space-6); font-family: var(--font-display); font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.name-quote::before { content: ""; display: block; width: 28px; height: 25px; margin: 0 auto var(--space-6); background: linear-gradient(180deg, var(--brand-red), var(--brand-maroon)); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.center-head { text-align: center; margin-left: auto; margin-right: auto; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.principle { text-align: center; padding: var(--space-8) var(--space-6); background: linear-gradient(180deg, #ffffff, #f4f6fa); border: 1px solid #e1e5ee; border-radius: var(--radius-lg); transition: border-color .2s, box-shadow .2s, transform .2s; }
.principle:hover { border-color: rgba(190,30,45,.45); box-shadow: 0 14px 34px -16px rgba(190,30,45,.35); transform: translateY(-2px); }
.principle::before { content: ""; display: block; width: 22px; height: 20px; margin: 0 auto var(--space-4); background: linear-gradient(180deg, var(--brand-red), var(--brand-maroon)); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.principle p { margin-top: var(--space-3); color: var(--ink-muted); }
.people { justify-content: center; grid-template-columns: repeat(2, minmax(0, 340px)); gap: var(--space-8); }
.person { text-align: center; overflow: hidden; background: linear-gradient(180deg, #ffffff, #f4f6fa); border: 1px solid #e1e5ee; border-radius: var(--radius-lg); box-shadow: 0 18px 40px -26px rgba(17,24,48,.45); }
.person .person-photo { border-radius: 0; margin: 0; }
.person-body { padding: var(--space-6); }
.person-body .person-role { color: var(--accent-text); font-weight: 600; }
.person-body .person-role + p { margin-top: var(--space-3); }
.facts-wrap { max-width: 860px; margin-left: auto; margin-right: auto; }
.cta-center .wrap { flex-direction: column; text-align: center; justify-content: center; }
.cta-center .lede { margin-left: auto; margin-right: auto; margin-top: 0; }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .principles { grid-template-columns: 1fr; }
  .people { grid-template-columns: minmax(0, 360px); }
  .name-quote { font-size: 30px; line-height: 38px; }
  .page-hero-center .wrap { padding-top: var(--space-12); padding-bottom: var(--space-12); }
}
@media (prefers-reduced-motion: reduce) { .principle:hover { transform: none; } }

/* Polish: inner pages */
/* page hero art: same glow and drifting pixels as the homepage hero */
.page-hero-art { overflow: visible; filter: drop-shadow(0 0 26px rgba(237,28,36,.35)); }
.page-hero-art polygon { transform-box: fill-box; transform-origin: center; animation: breathe 5s ease-in-out infinite; }
.page-hero-art rect[fill="#ed1c24"], .page-hero-art rect[fill="#be1e2d"], .page-hero-art rect[fill="#871e2d"] { animation: drift 4.6s ease-in infinite; }
.page-hero-art rect:nth-of-type(3n) { animation-delay: -1.2s !important; }
.page-hero-art rect:nth-of-type(3n+1) { animation-delay: -2.5s !important; }
.page-hero-art rect:nth-of-type(3n+2) { animation-delay: -3.6s !important; }
/* dark bands: grid and a red glow, like the hero */
.section.dark { overflow: hidden; }
.section.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px), radial-gradient(ellipse 45% 90% at 100% 0%, rgba(237,28,36,.22), transparent 70%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(237,28,36,.7), transparent); }
/* contact */
.contact-aside { background: linear-gradient(180deg, #ffffff, #f1f4f9); border: 1px solid #e1e5ee; border-top: 3px solid var(--brand-crimson); border-radius: var(--radius-lg); box-shadow: 0 18px 40px -26px rgba(17,24,48,.45); }
.field input, .field select, .field textarea { background: #ffffff; border-color: #b9bec9; box-shadow: inset 0 1px 2px rgba(17,24,48,.06); transition: border-color .15s, box-shadow .15s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--brand-crimson); box-shadow: 0 0 0 3px rgba(190,30,45,.2); }
/* tables and FAQ */
.duty-table thead th { background: linear-gradient(180deg, #f4f6fa, #e9edf4); }
.table-wrap { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 18px 40px -28px rgba(17,24,48,.4); }
.duty-table tbody tr { transition: background .15s; }
.duty-table tbody tr:hover { background: #fbf3f4; }
.faq details { transition: background .15s; }
.faq details[open] { background: linear-gradient(90deg, rgba(190,30,45,.05), transparent 70%); }
.faq summary:hover { color: var(--accent-text); }
@media (prefers-reduced-motion: reduce) { .page-hero-art polygon, .page-hero-art rect { animation: none !important; } }


/* Header: live status bar and Services menu */
.topbar { background: #0b0b0c; color: #c9cbd2; font-size: 13px; line-height: 20px; border-bottom: 1px solid rgba(237,28,36,.45); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: 7px; padding-bottom: 7px; }
.topbar p, .topbar ul { margin: 0; }
.topbar-status { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #ff5c63; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #ff5c63; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.topbar-links { display: flex; gap: var(--space-6); list-style: none; padding: 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #ff8a90; text-decoration: underline; }
.menu-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.menu-btn::after { content: ""; width: 8px; height: 7px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .2s; }
.menu-btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.menu-btn:hover, .menu-btn[aria-expanded="true"], .menu-btn.is-current { color: var(--accent-text); }
.mega-item[aria-current="page"] .mega-title { color: #ff8a90; }
.mega-kicker { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; color: #fff; margin: 0 0 var(--space-3); }
.mega-intro p { color: #aeb1ba; margin: 0; }
.mega-more { display: inline-block; margin-top: var(--space-4); color: #fff; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--brand-red); }
.mega-more:hover { color: #ff8a90; }
.mega-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 24px; color: #fff; }
.mega-desc { display: block; margin-top: 4px; color: #aeb1ba; font-size: 14px; line-height: 20px; }
@media (min-width: 721px) {
  .has-menu { position: static; }
  .site-header .nav > ul > li { display: flex; align-items: center; }
  .mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #0b0b0c; border-top: 1px solid rgba(237,28,36,.6); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px), radial-gradient(ellipse 40% 120% at 100% 0%, rgba(237,28,36,.25), transparent 70%);
    background-size: 56px 56px, 56px 56px, 100% 100%;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
  .has-menu.open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
  .mega-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-12); padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .mega-item { position: relative; display: block; padding: var(--space-4) var(--space-6); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); background: rgba(255,255,255,.04); text-decoration: none; transition: border-color .15s, background .15s, box-shadow .15s; }
  .mega-item::after { content: ""; position: absolute; right: 18px; top: 22px; width: 10px; height: 9px; background: var(--brand-red); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: rotate(-90deg); opacity: .6; transition: transform .2s, opacity .2s; }
  .mega-item:hover, .mega-item:focus-visible { border-color: rgba(255,92,99,.7); background: rgba(237,28,36,.1); box-shadow: 0 0 30px -8px rgba(237,28,36,.55); }
  .mega-item:hover::after, .mega-item:focus-visible::after { opacity: 1; transform: rotate(-90deg) translateY(4px); }
  .nav a.mega-item:hover { text-decoration: none; }
}
@media (max-width: 720px) {
  .topbar-links li:first-child { display: none; }
  .has-menu .menu-btn { font-weight: 600; }
  .mega { display: none; }
  .has-menu.open .mega { display: block; margin-top: var(--space-3); background: #0b0b0c; border-radius: var(--radius-lg); padding: var(--space-4); }
  .mega-inner { padding: 0 !important; }
  .mega-intro { display: none; }
  .mega-item { display: block; padding: var(--space-3) var(--space-2); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .mega-grid .mega-item:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } .mega, .menu-btn::after { transition: none; } }
.site-header > .wrap { position: static; }
.nav .mega a, .nav .mega a:not(.btn) { color: #fff; text-decoration: none; }
.nav .mega a:not(.btn):hover { color: #fff; text-decoration: none; }
.nav .mega a.mega-more { border-bottom: 2px solid var(--brand-red); }
.nav .mega a.mega-more:hover { color: #ff8a90; }
.nav .mega-item[aria-current="page"] .mega-title { color: #ff8a90; }


/* Homepage: dark, animated cards */
.spot { position: relative; --mx: 50%; --my: 0%; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(237,28,36,.26), transparent 70%); }
.spot:hover::after { opacity: 1; }
.ico { width: 44px; height: 44px; margin-bottom: var(--space-4); filter: drop-shadow(0 0 8px rgba(237,28,36,.5)); }
.ico .dr { stroke-dasharray: 1; stroke-dashoffset: 0; }
.roles-dark { background: linear-gradient(160deg, #16161a, #0b0b0c); border-color: rgba(255,255,255,.12); box-shadow: 0 30px 60px -30px rgba(17,24,48,.7); }
.roles-dark > div + div { background: rgba(255,255,255,.04); border-left-color: rgba(255,255,255,.1); }
.roles-dark h3 { color: #fff; }
.roles-dark li { color: #c9cbd2; }
.roles-dark > div + div li::before { background: #fff; }
.services-band .service, .section .reasons .reason { background: linear-gradient(160deg, #17171b, #0b0b0c); border: 1px solid rgba(255,255,255,.12); color: #fff; overflow: hidden; }
.services-band .service { border-top: 3px solid var(--brand-red); }
.services-band .service h3, .reason h3 { color: #fff; }
.services-band .service p, .reason p { color: #aeb1ba; }
.services-band .service .text-link { color: #ff8a90; }
.services-band .service:hover, .reasons .reason:hover { border-color: rgba(255,92,99,.6); box-shadow: 0 0 36px -10px rgba(237,28,36,.55); transform: translateY(-3px); }
.services-band .service:hover { border-top-color: var(--brand-red); }
.reasons { gap: var(--space-6); }
.reason { grid-template-columns: 52px 1fr; padding: var(--space-8); }
.reason .ico { margin: 0; width: 44px; height: 44px; }
.steps-dark { position: relative; padding-top: 64px; }
.steps-dark::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: rgba(17,24,48,.18); }
.steps-dark::after { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: linear-gradient(90deg, var(--brand-maroon), var(--brand-red)); box-shadow: 0 0 14px rgba(237,28,36,.7); transform-origin: left; }
.steps-dark li { position: relative; background: linear-gradient(160deg, #17171b, #0b0b0c); border: 1px solid rgba(255,255,255,.12); color: #fff; padding: var(--space-8) var(--space-6) var(--space-6); }
.steps-dark li h3 { color: #fff; }
.steps-dark li p { color: #aeb1ba; }
.steps-dark li::before { position: absolute; top: -64px; left: 0; width: 44px; height: 44px; margin: 0; display: grid; place-items: center; border-radius: 50%; background: #0b0b0c; color: #fff; border: 2px solid var(--brand-red); font-family: var(--font-display); font-weight: 700; box-shadow: 0 0 0 6px #fff, 0 0 20px rgba(237,28,36,.5); }
.steps-dark li:last-child::before { background: var(--brand-red); color: #fff; }
.steps-dark li:hover { border-color: rgba(255,92,99,.6); box-shadow: 0 0 36px -10px rgba(237,28,36,.55); }
@media (max-width: 960px) { .steps-dark { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 88px; } .steps-dark::before, .steps-dark::after { display: none; } .steps-dark li::before { box-shadow: 0 0 0 6px #fff; } }
@media (max-width: 720px) { .reasons { grid-template-columns: 1fr; } .reason { padding: var(--space-6); } .steps-dark { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .dr { stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.4,0,.2,1) .15s; }
  .js [data-reveal].in .dr { stroke-dashoffset: 0; }
  .js .steps-dark::after { transform: scaleX(0); transition: transform 2.2s cubic-bezier(.4,0,.2,1) .2s; }
  .js .steps-dark.in::after { transform: scaleX(1); }
  .js .steps-dark li::before { border-color: rgba(17,24,48,.25); box-shadow: 0 0 0 6px #fff; transition: border-color .4s, box-shadow .4s; }
  .js .steps-dark.in li::before { border-color: var(--brand-red); box-shadow: 0 0 0 6px #fff, 0 0 20px rgba(237,28,36,.5); }
  .js .steps-dark.in li:nth-child(1)::before { transition-delay: .2s; } .js .steps-dark.in li:nth-child(2)::before { transition-delay: .8s; } .js .steps-dark.in li:nth-child(3)::before { transition-delay: 1.5s; } .js .steps-dark.in li:nth-child(4)::before { transition-delay: 2.1s; }
  .ico { animation: floaty 6s ease-in-out infinite; }
  @keyframes floaty { 50% { transform: translateY(-3px); } }
}
@media (prefers-reduced-motion: reduce) { .services-band .service:hover, .reasons .reason:hover { transform: none; } }

.cta-center .fine { margin: var(--space-6) auto 0; max-width: 56ch; font-size: 14px; line-height: 22px; color: var(--ink-inverse-muted); }
.center-block h2 + .lede { margin-top: var(--space-4); }
