/* ==========================================================================
   ACI RD — Design tokens (Concept 1, v2 — supervision/coordination positioning)
   ========================================================================== */

:root{
  --navy: #0E2340;
  --navy-deep: #081527;
  --navy-mid: #163256;
  --paper: #F6F4EE;
  --paper-dim: #EDE9DE;
  --red: #D6293A;
  --red-deep: #AE1E2C;
  --teal: #17877A;
  --sand: #E7DCC0;
  --ink: #10151C;
  --muted: #5B6472;
  --muted-on-dark: #9FB0C6;
  --line: rgba(16,21,28,0.12);
  --line-on-dark: rgba(246,244,238,0.14);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1240px;
  --radius: 4px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; line-height:1.05; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family:inherit; }

.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 32px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important; }
}
:focus-visible{ outline: 2px solid var(--red); outline-offset: 3px; }

.tag{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal);
}
.tag::before{ content:""; width:7px; height:7px; background: var(--red); display:inline-block; }
.tag.on-dark{ color: var(--sand); }

.barcode{
  height: 14px; width:100%;
  background-image: repeating-linear-gradient(90deg, var(--navy) 0px, var(--navy) 2px, transparent 2px, transparent 5px, var(--navy) 5px, var(--navy) 6px, transparent 6px, transparent 12px, var(--navy) 12px, var(--navy) 15px, transparent 15px, transparent 19px);
  opacity: 0.9;
}

/* ==========================================================================
   Header + dropdown nav
   ========================================================================== */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(14,35,64,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-on-dark);
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; height: 76px; }
.brand{ display:flex; align-items:center; gap:10px; font-family: var(--font-display); color: var(--paper); font-weight:700; font-size: 19px; letter-spacing: -0.01em; flex-shrink:0; white-space:nowrap; }
.brand .brand-mark{ width:34px; height:34px; background: var(--red); display:flex; align-items:center; justify-content:center; color:#fff; font-size:13px; font-weight:700; font-family: var(--font-mono); flex-shrink:0; }
.brand small{ display:block; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted-on-dark); font-weight:400; letter-spacing: 0.07em; white-space:nowrap; }

.main-nav{ display:flex; align-items:center; flex-shrink:0; }
.main-nav > ul{ display:flex; gap:19px; }
.main-nav > ul > li{ position:relative; }
.main-nav > ul > li > a, .main-nav > ul > li > .nav-parent{
  color: var(--muted-on-dark); font-size: 12.5px; font-weight:500; letter-spacing:0.01em;
  transition: color .15s ease; position:relative;
  display:flex; align-items:center; gap:5px; padding: 27px 0; cursor:pointer;
  white-space:nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > .nav-parent:hover,
.main-nav > ul > li:hover > .nav-parent{ color: var(--paper); }
.main-nav a.current{ color: var(--paper); }
.main-nav a.current::after{ content:""; position:absolute; left:0; right:0; bottom:22px; height:2px; background: var(--red); }
.nav-parent .caret{ font-size:9px; opacity:0.7; transition: transform .15s ease; }
.main-nav > ul > li:hover .caret{ transform: rotate(180deg); }

.submenu{
  position:absolute; top:100%; left:50%; transform: translateX(-50%);
  background: var(--navy-deep); border: 1px solid var(--line-on-dark);
  min-width: 260px; padding: 8px; box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
  opacity:0; visibility:hidden; transform: translateX(-50%) translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.main-nav > ul > li:hover .submenu,
.main-nav > ul > li.open .submenu{ opacity:1; visibility:visible; transform: translateX(-50%) translateY(0); }
.submenu a{ display:block; padding: 10px 14px; font-size: 13px; color: var(--muted-on-dark); }
.submenu a:hover{ background: var(--navy-mid); color: var(--paper); }

.header-actions{ display:flex; align-items:center; gap:14px; }
.lang-switch{ display:flex; border:1px solid var(--line-on-dark); overflow:hidden; font-family: var(--font-mono); font-size: 12px; }
.lang-switch a{ padding:7px 12px; color: var(--muted-on-dark); }
.lang-switch a.active{ background: var(--red); color:#fff; }
.lang-switch a:not(.active):hover{ color: var(--paper); }

.btn{ display:inline-flex; align-items:center; gap:8px; padding: 12px 22px; font-size: 13.5px; font-weight:600; letter-spacing: 0.01em; border: 1px solid transparent; cursor:pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn-primary{ background: var(--red); color:#fff; }
.btn-primary:hover{ background: var(--red-deep); transform: translateY(-1px); }
.btn-ghost{ border-color: var(--line-on-dark); color: var(--paper); }
.btn-ghost:hover{ border-color: var(--paper); }
.btn-outline-dark{ border-color: var(--line); color: var(--ink); }
.btn-outline-dark:hover{ border-color: var(--ink); }

.nav-toggle{ display:none; background:transparent; border: 1px solid var(--line-on-dark); color: var(--paper); width:40px; height:40px; align-items:center; justify-content:center; font-size:16px; cursor:pointer; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{ background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--paper); position: relative; overflow:hidden; }
.hero .wrap{ display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items:start; padding-top: 36px; padding-bottom: 56px; }
.hero-copy{ padding-top:0; }
.hero-copy .tag{ margin-bottom:22px; }
.hero-copy h1{ font-size: clamp(32px, 4vw, 50px); font-weight:700; margin-bottom: 22px; }
.hero-copy .lede{ font-size: 17px; color: var(--muted-on-dark); max-width: 48ch; margin-bottom:14px; }
.hero-closer{ font-family: var(--font-display); font-size: 16.5px; color: var(--sand); margin: 22px 0 30px; font-weight:500; max-width:48ch; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

.hero-visual{ position:relative; }
.hero-frame{ position:relative; border: 1px solid var(--line-on-dark); padding: 10px; }
.hero-frame img{ width:100%; height: 420px; object-fit:cover; }
.hero-frame .barcode{ margin-top:10px; }
.hero-chips{ position:absolute; left: -18px; bottom: -22px; display:flex; gap:10px; flex-wrap:wrap; max-width: 92%; }
.chip{ background: var(--paper); color: var(--navy); font-family: var(--font-mono); font-size: 11px; letter-spacing:0.04em; padding: 9px 12px; display:flex; align-items:center; gap:7px; box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.chip::before{ content:"✓"; color: var(--teal); font-weight:700; }

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker{ background: var(--ink); color: var(--sand); overflow:hidden; border-top: 1px solid var(--line-on-dark); border-bottom: 1px solid var(--line-on-dark); }
.ticker-track{ display:flex; width: max-content; animation: ticker-scroll 34s linear infinite; padding: 13px 0; }
.ticker-track span{ font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; padding: 0 30px; display:flex; align-items:center; gap:10px; white-space:nowrap; }
.ticker-track span em{ color:var(--red); font-style:normal; }
.ticker-track span::before{ content:"✈"; opacity:0.6; }
@keyframes ticker-scroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
section{ padding: 100px 0; }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head .tag{ margin-bottom:18px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); margin-bottom:16px; }
.section-head p{ color: var(--muted); font-size:16.5px; }

.about .wrap{ display:grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items:start; }
.about-media{ position:relative; }
.about-media img{ width:100%; height:460px; object-fit:cover; }
.about-copy p{ color: var(--muted); margin-bottom:16px; font-size:16px; }
.about-copy h2{ font-size: clamp(26px,3vw,36px); margin-bottom:20px; }
.about-copy .tag{ margin-bottom:18px; }
.mini-audience{ margin-top: 28px; display:flex; flex-wrap:wrap; gap: 10px; }
.mini-audience span{ font-family: var(--font-mono); font-size: 11.5px; border: 1px solid var(--line); padding: 7px 12px; color: var(--navy); }

.services{ background: var(--paper-dim); }
.service-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card{ background: var(--paper-dim); padding: 34px 30px; transition: background .15s ease; }
.service-card:hover{ background: var(--paper); }
.service-card .num{ font-family: var(--font-mono); font-size:12px; color: var(--red); display:block; margin-bottom:16px; }
.service-card h3{ font-size: 19px; margin-bottom:10px; }
.service-card p{ color: var(--muted); font-size:14.5px; }
.service-card a.more{ display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-size:13px; font-weight:600; color: var(--navy); }
.service-card a.more::after{ content:"→"; transition: transform .15s ease; }
.service-card:hover a.more::after{ transform: translateX(3px); }

.spotlight{ background: var(--navy); color: var(--paper); position:relative; overflow:hidden; }
.spotlight .wrap{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items:start; }
.spotlight-media{ position:relative; }
.spotlight-media img{ width:100%; height: 440px; object-fit:cover; }
.spotlight-media .reading{ position:absolute; top:18px; left:18px; background: rgba(8,21,39,0.85); border: 1px solid var(--line-on-dark); font-family: var(--font-mono); font-size: 12px; padding: 10px 14px; display:flex; flex-direction:column; gap:2px; }
.spotlight-media .reading b{ color: var(--teal); font-size:18px; }
.spotlight-copy .tag{ color: var(--sand); margin-bottom:18px; }
.spotlight-copy h2{ font-size: clamp(26px,3vw,36px); margin-bottom:18px; }
.spotlight-copy p{ color: var(--muted-on-dark); margin-bottom:22px; }
.tag-list{ display:flex; flex-wrap:wrap; gap:10px; }
.tag-list span{ font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line-on-dark); padding: 8px 13px; color: var(--sand); }

.why .wrap{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
.checklist{ display:grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.checklist li{ display:flex; gap:14px; padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.checklist li:nth-child(odd){ border-right: 1px solid var(--line); padding-left:0; padding-right:18px;}
.checklist li:nth-child(even){ padding-left:18px; }
.checklist .mark{ font-family: var(--font-mono); color: var(--teal); font-weight:700; flex-shrink:0; }

.audiences .wrap{ display:grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.audience-card{ background: var(--paper); padding: 40px; }
.audience-card .tag{ margin-bottom:16px; }
.audience-card h3{ font-size:22px; margin-bottom:12px; }
.audience-card p{ color:var(--muted); margin-bottom:18px; font-size:15px; }

.cta-banner{ background: var(--red); color:#fff; text-align:center; }
.cta-banner h2{ font-size: clamp(26px,3.6vw,42px); margin-bottom:18px; }
.cta-banner p{ color: rgba(255,255,255,0.85); max-width:56ch; margin: 0 auto 30px; font-size:16.5px; }
.cta-banner .btn-ghost{ border-color: rgba(255,255,255,0.5); color:#fff; }
.cta-banner .btn-ghost:hover{ border-color:#fff; background: rgba(255,255,255,0.12); }
.cta-banner .btn-primary{ background: var(--navy); }
.cta-banner .btn-primary:hover{ background: var(--navy-deep); }

.site-footer{ background: var(--navy-deep); color: var(--muted-on-dark); padding-top:70px; }
.footer-top{ display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand .brand{ margin-bottom:14px; }
.footer-brand p{ font-size:14px; max-width:32ch; }
.footer-col h4{ font-family: var(--font-mono); font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color: var(--sand); margin-bottom:16px; font-weight:500; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col a{ font-size:14px; color: var(--muted-on-dark); }
.footer-col a:hover{ color: var(--paper); }
.footer-bottom{ border-top: 1px solid var(--line-on-dark); padding: 22px 0 30px; display:flex; justify-content:space-between; align-items:center; font-size: 12.5px; }
.footer-bottom .lang-switch a{ padding:6px 10px; }

/* ==========================================================================
   Interior pages
   ========================================================================== */
.page-hero{ background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--paper); padding: 60px 0 56px; }
.crumbs{ font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-on-dark); display:flex; align-items:center; gap:8px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.06em; }
.crumbs a{ color: var(--sand); }
.crumbs a:hover{ color: var(--paper); }
.crumbs span{ opacity:0.5; }
.page-hero h1{ font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; max-width: 22ch; }
.page-hero p{ color: var(--muted-on-dark); max-width: 62ch; font-size: 16.5px; }

.split .wrap{ display:grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items:start; }
.split-media{ position:relative; }
.split-media img{ width:100%; height: 420px; object-fit:cover; }
.split.reverse .split-media{ order:2; }
.split-copy .tag{ margin-bottom:18px; }
.split-copy h2{ font-size: clamp(24px,2.8vw,32px); margin-bottom:18px; }
.split-copy p{ color: var(--muted); margin-bottom:16px; font-size:15.5px; }
.split-list{ margin-top:22px; display:grid; gap:11px; }
.split-list + p{ margin-top:18px; }
.split-list li{ display:flex; gap:10px; font-size:14px; align-items:flex-start; }
.split-list li .mark{ font-family: var(--font-mono); color: var(--teal); font-weight:700; flex-shrink:0; }
.split.on-dark{ background: var(--navy); color: var(--paper); }
.split.on-dark .split-copy p{ color: var(--muted-on-dark); }
.split .reading{ position:absolute; top:18px; left:18px; background: rgba(8,21,39,0.85); border: 1px solid var(--line-on-dark); font-family: var(--font-mono); font-size: 12px; padding: 10px 14px; display:flex; flex-direction:column; gap:2px; color: var(--paper); }
.split .reading b{ color: var(--teal); font-size:18px; }
.alt-bg{ background: var(--paper-dim); }
.disclaimer{ font-size:13px; color: var(--muted); font-style:italic; margin-top:18px; border-top: 1px solid var(--line); padding-top:16px; }
.split.on-dark .disclaimer{ color: var(--muted-on-dark); border-top-color: var(--line-on-dark); }

.service-jumpgrid{ display:grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 90px; }
.service-jumpgrid a{ background: var(--paper); padding: 20px 16px; font-size: 12.5px; font-weight:600; display:flex; align-items:center; justify-content:space-between; gap:8px; transition: background .15s ease; }
.service-jumpgrid a:hover{ background: var(--paper-dim); }
.service-jumpgrid a::after{ content:"→"; color: var(--red); flex-shrink:0; }

.form-section .wrap{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items:start; }
.form-side .tag{ margin-bottom:18px; }
.form-side h2{ font-size: clamp(25px,3vw,32px); margin-bottom:16px; }
.form-side p{ color: var(--muted); margin-bottom:22px; font-size:15.5px; }
.form-side .split-list{ margin-top:0; }
.form-card{ background: var(--paper-dim); border: 1px solid var(--line); padding: 40px; }
.field-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing:0.05em; text-transform:uppercase; color: var(--navy); }
.field input, .field select, .field textarea{ font-family: var(--font-body); font-size: 14.5px; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: var(--radius); }
.field input:focus, .field select:focus, .field textarea:focus{ outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.field textarea{ resize: vertical; min-height: 110px; }
.form-note{ font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.contact-cards{ display:grid; grid-template-columns: repeat(3,1fr); gap:1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 70px; }
.contact-card{ background: var(--paper); padding: 30px; }
.contact-card .tag{ margin-bottom:14px; }
.contact-card p{ font-size:15px; color:var(--muted); }
.contact-card a{ color: var(--navy); font-weight:600; }

@media (max-width: 980px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .hero .wrap{ grid-template-columns: 1fr; padding-top:32px; }
  .hero-visual{ order:-1; }
  .about .wrap, .spotlight .wrap, .why .wrap{ grid-template-columns: 1fr; }
  .service-grid{ grid-template-columns: repeat(2,1fr); }
  .audiences .wrap{ grid-template-columns: 1fr; }
  .checklist{ grid-template-columns: 1fr; }
  .checklist li:nth-child(odd){ border-right:none; padding-right:0; }
  .checklist li:nth-child(even){ padding-left:0; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .split .wrap{ grid-template-columns: 1fr; }
  .split.reverse .split-media{ order:0; }
  .service-jumpgrid{ grid-template-columns: repeat(2,1fr); }
  .form-section .wrap{ grid-template-columns: 1fr; }
  .contact-cards{ grid-template-columns: 1fr; }

  /* mobile dropdown menu (JS-toggled) */
  .site-header{ position: sticky; }
  .mobile-panel{ display:none; flex-direction:column; background: var(--navy-deep); border-top: 1px solid var(--line-on-dark); padding: 10px 0 20px; }
  .mobile-panel.open{ display:flex; }
  .mobile-panel > a, .mobile-panel > details > summary{ padding: 14px 32px; color: var(--paper); font-size:14px; font-weight:600; list-style:none; cursor:pointer; }
  .mobile-panel details ul{ padding: 0 32px 10px 44px; display:flex; flex-direction:column; gap:4px; }
  .mobile-panel details a{ padding: 8px 0; color: var(--muted-on-dark); font-size:13.5px; }
}
@media (min-width: 981px){ .mobile-panel{ display:none !important; } }
@media (max-width: 620px){
  .wrap{ padding: 0 20px; }
  section{ padding: 70px 0; }
  .service-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; }
  .hero-chips{ position:static; margin-top:16px; }
  .hero-frame img{ height:280px; }
  .service-jumpgrid{ grid-template-columns: 1fr; }
  .field-grid{ grid-template-columns: 1fr; }
  .form-card{ padding: 26px; }
}
