/* ATLAS International — one coherent design system. */

/* Self-hosted faces. No runtime CDN. */
@font-face {
  font-family: "Zilla Slab"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/zilla-400.woff2") format("woff2");
}
@font-face {
  font-family: "Zilla Slab"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/zilla-500.woff2") format("woff2");
}
@font-face {
  font-family: "Zilla Slab"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/zilla-600.woff2") format("woff2");
}
@font-face {
  font-family: "Rethink Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/static/fonts/rethink-400-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/static/fonts/inter-800.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --ink: #0D1F33;
  --body: #3D4C5D;
  --muted: #5E6A7A;
  --blue: #014AA0;
  --navy: #003578;
  --accent: #6799CC;
  --line: rgba(13, 31, 51, .14);
  --wash: #EEF3F9;

  --display: "Zilla Slab", Georgia, serif;
  --sans: "Rethink Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --fast: 160ms;
  --slow: 240ms;

  --maxw: 1280px;
  --gutter: 24px;
  --nav-h: 76px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #081626;
  --surface: #0E2138;
  --ink: #E8F0FB;
  --body: #B9CBE2;
  --muted: #8BA8CB;
  --blue: #6FA8F0;
  --navy: #CDE0F2;
  --accent: #6799CC;
  --line: rgba(139, 168, 203, .22);
  --wash: #132C49;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--accent) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  caret-color: var(--blue);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--slow) ease, color var(--slow) ease;
}
::selection { background: var(--wash); color: var(--ink); }
h1, h2, h3, h4 {
  margin: 0 0 .45em;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.65rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1rem; max-width: 66ch; text-wrap: pretty; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img, video, svg { display: block; max-width: 100%; }
input, textarea, select { font: inherit; caret-color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Skip link — first tab stop, hidden until focused. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 16px; background: var(--navy); color: #fff; font-weight: 600;
}
.skip-link:focus { left: var(--gutter); top: 8px; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

.section { padding-block: 96px; }
.section-sm { padding-block: 64px; }
.section-xs { padding-block: 40px; }
.hairline { border-top: 1px solid var(--line); }
.preserve-lines { white-space: pre-line; }

.eyebrow, .index, .mono, .stat-label {
  font-family: var(--mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0;
}

/* Buttons — one pair, one shape, press feedback. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border: 1px solid transparent; border-radius: 2px;
  font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: transform var(--fast) var(--ease), background-color var(--fast) ease,
              color var(--fast) ease, border-color var(--fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--wash); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-on-dark { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-on-dark:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
  padding: 24px; transition: border-color var(--fast) ease, transform var(--slow) var(--ease);
}
.card:hover { border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); }
  .tile:hover img, .card:hover img { transform: scale(1.02); }
}
.tile img, .card img { transition: transform var(--slow) var(--ease); }

/* Navigation */
.site-nav {
  position: sticky; top: 0; z-index: 20; background: var(--surface);
  border-bottom: 1px solid var(--line); min-height: var(--nav-h);
}
.nav-inner { display: flex; align-items: center; gap: var(--gutter); min-height: var(--nav-h); }
.wordmark { display: flex; align-items: center; color: var(--ink); font-weight: 600; }
.brand-logo { height: 50px; width: auto; max-width: 150px; display: block; }
[data-theme="dark"] .brand-logo { background: #fff; padding: 3px 5px; border-radius: 2px; }
.nav-links { display: flex; gap: 28px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { color: var(--body); font-size: .9375rem; font-weight: 500; }
.nav-links a:hover { color: var(--blue); }
.nav-toggle {
  display: none; min-height: 44px; padding: 8px 14px; background: transparent;
  color: var(--ink); border: 1px solid var(--line); border-radius: 2px;
  font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--blue); color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 14px; background: transparent; color: var(--body);
  border: 1px solid var(--line); border-radius: 2px; font: inherit; font-size: .8125rem;
  cursor: pointer; transition: border-color var(--fast) ease, color var(--fast) ease;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle[aria-pressed="true"] { border-color: var(--blue); }
.theme-toggle-icon { font-size: 1rem; }

/* Hero — real film, high-contrast copy, one authored moment. */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .72;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 20, 53, .95) 0%, rgba(2, 20, 53, .82) 42%,
              rgba(2, 20, 53, .38) 78%, rgba(2, 20, 53, .2) 100%);
}
.hero .container { position: relative; z-index: 1; padding-block: 96px 64px; }
.hero h1 { max-width: 18ch; color: #fff; letter-spacing: -.04em; }
.hero-lede { max-width: 54ch; color: #D8E6F8; font-size: 1.0625rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  margin-top: 56px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .26);
  color: #C8DDF6; font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.hero-play {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 32px;
  color: #fff; font-weight: 600;
}
.hero-play .disc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7);
}
.hero-play small { display: block; color: #C8DDF6; font-weight: 400; }

/* Stat rail */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 32px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-value {
  display: block; margin-bottom: 8px; font-family: var(--display); font-size: 2.75rem;
  font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; font-size: .625rem; }

/* Sector / service / project grids */
.sector-card img, .project-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 18px; }
.sector-card .index, .service-card .index { color: var(--blue); margin-bottom: 10px; }
.sector-card h3, .service-card h3 { margin-bottom: .4em; }
.sector-card p, .service-card p { font-size: .9375rem; }
.service-card { display: flex; flex-direction: column; }
.service-card .btn { align-self: flex-start; margin-top: auto; }
.project-grid { gap: 16px; }
.project-tile { overflow: hidden; }
.project-tile img { aspect-ratio: 4 / 3; margin: 0; }

.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.about-copy p { max-width: 60ch; }
.about-signature { margin-block: 20px; color: var(--ink); font-weight: 600; }

/* Client news line */
.client-strip { margin-top: 40px; }
.ticker-wrap { overflow: hidden; max-width: 100%; border-block: 1px solid var(--line); }
.ticker-track { display: flex; align-items: center; width: max-content; animation: ticker 42s linear infinite; }
.ticker-track[data-paused="true"] { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  min-width: 190px; height: 88px; padding: 0 28px; border-right: 1px solid var(--line);
  background: #fff;
}
.ticker-item img { max-height: 44px; max-width: 140px; width: auto; height: auto; object-fit: contain; }
.ticker-pause {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 8px 18px; margin-top: 16px; background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px; font: inherit; font-size: .8125rem; cursor: pointer;
}
.ticker-pause:hover { border-color: var(--blue); color: var(--blue); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.cert-card { margin: 0; }
.cert-card a { display: block; }
.cert-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 2px; }

/* Closing band + footer */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .container { padding-block: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { gap: 40px; padding-block: 64px 40px; }
.footer-title { margin-bottom: 14px; font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.footer-text { font-size: .9375rem; color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--body); font-size: .9375rem; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted);
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* RFQ form */
.rfq-form { padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form-field { display: flex; flex-direction: column; min-width: 0; }
.form-field label { margin-bottom: 8px; color: var(--ink); font-size: .875rem; font-weight: 600; }
.form-control {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: .9375rem;
  transition: border-color var(--fast) ease;
}
.form-control::placeholder { color: var(--muted); }
.form-control:hover { border-color: var(--accent); }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-hint { margin: 8px 0 0; font-size: .8125rem; color: var(--muted); }
.form-actions { grid-column: 1 / -1; padding-top: 8px; }
#rfq-result:empty { display: none; }
.rfq-errors, .rfq-success {
  margin-top: 20px; padding: 16px 20px; border: 1px solid var(--blue);
  border-radius: 2px; background: var(--surface); color: var(--ink);
}
.rfq-errors p { margin: 0 0 8px; font-weight: 600; }
.rfq-errors ul { margin: 0; padding-left: 20px; }
.rfq-success p { margin: 0; font-weight: 600; }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms; animation-iteration-count: 1; transition-duration: .01ms; }
  .enter-soft { opacity: 1; transform: none; transition: opacity 200ms ease; }
  @starting-style { .enter-soft { opacity: 0; } }
  .ticker-track { animation: none; overflow-x: auto; }
}

/* Responsive */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: var(--nav-h);
    left: 0; right: 0; margin: 0; padding: 12px var(--gutter) 20px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open a { display: block; padding: 10px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .section { padding-block: 64px; }
  .section-sm { padding-block: 48px; }
  .col-3, .col-4, .col-6 { grid-column: span 12; }
  .hero .container { padding-block: 72px 48px; }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 3.25rem); }
  .hero-meta { margin-top: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .rfq-form { padding: 20px; }
}
@media (max-width: 479px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  .brand-logo { height: 40px; max-width: 120px; }
  .theme-toggle-label { display: none; }
  .theme-toggle { min-width: 44px; justify-content: center; padding: 8px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { white-space: nowrap; padding: 8px 10px; font-size: .8125rem; }
  .btn { min-height: 44px; }
  .hero .container { padding-block: 56px 40px; }
  .stats-rail { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 24px 16px; }
  .stat:first-child { border-top: 0; }
  .ticker-item { min-width: 150px; padding: 0 20px; }
  .cert-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
