/* ==========================================================================
   EA Interactive — styles
   Light, restrained, large type, rounded tiles, one blue accent.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --tile-dark: #1d1d1f;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-on-dark-muted: #a1a1a6;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-link: #0066cc;
  --accent-link-hover: #0077ed;
  --accent-on-dark: #2997ff;

  --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --container: 1024px;
  --radius-tile: 28px;
  --radius-card: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 48px;
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-link); text-decoration: none; }
a:hover { color: var(--accent-link-hover); text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--text); color: #fff; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - 44px); margin: 0 auto; }

/* Type ---------------------------------------------------------------------- */
.h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h2--center { text-align: center; }
.h2--xl { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1.05; }
.lead { font-size: clamp(19px, 1.8vw, 21px); line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }
.lead--muted { color: var(--text-muted); }

.link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 17px; color: var(--accent-link);
}
.link:hover { text-decoration: underline; }
.link--light { color: var(--accent-on-dark); }
.chev {
  width: 8px; height: 8px;
  border-right: 1.8px solid currentColor; border-top: 1.8px solid currentColor;
  transform: rotate(45deg); margin-left: 2px;
}
.chev--left { transform: rotate(-135deg); margin-left: 0; margin-right: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 980px;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 500;
  transition: background 0.2s ease, transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-link-hover); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn--small { padding: 6px 14px; font-size: 12px; }

/* Nav ----------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease;
}
.nav.is-scrolled { background: rgba(255, 255, 255, 0.92); }
.nav__inner {
  width: min(var(--container), 100% - 44px); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.nav__brand:hover { text-decoration: none; color: var(--text); }
.nav__links { display: flex; gap: 36px; }
.nav__links a { font-size: 12px; color: var(--text); opacity: 0.85; transition: opacity 0.2s ease; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; text-decoration: none; color: var(--accent-link); }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; margin-right: -12px; }
.nav__toggle span {
  position: absolute; left: 12px; width: 20px; height: 1.5px; background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* Hero ---------------------------------------------------------------------- */
.hero {
  padding: clamp(72px, 9vw, 128px) 22px 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.hero__copy { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero__eyebrow { font-size: 21px; font-weight: 600; color: var(--text-muted); letter-spacing: -0.01em; }
.hero__title {
  font-size: clamp(48px, 7.5vw, 88px); font-weight: 600; line-height: 1.03; letter-spacing: -0.035em;
  max-width: 980px; text-wrap: balance;
}
.hero__lead { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -0.015em; max-width: 760px; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 36px; margin-top: 8px; }
.hero__actions .link { font-size: clamp(17px, 1.8vw, 21px); }

.hero__visual {
  width: min(1200px, 100%); aspect-ratio: 1200 / 640; margin-top: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-tile);
  background: linear-gradient(180deg, #e9edf5 0%, #f5f5f7 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  will-change: transform;
}
.window {
  width: 80%; height: 87.5%;
  background: #fff; border-radius: 18px 18px 0 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
  display: flex; flex-direction: column; overflow: hidden;
}
.window__bar { height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid #ececee; }
.window__bar span { width: 12px; height: 12px; border-radius: 50%; background: #e5e5ea; }
.window__body { display: grid; grid-template-columns: 21% 1fr; flex: 1; min-height: 0; }
.window__side { border-right: 1px solid #ececee; padding: 24px 18px; display: flex; flex-direction: column; gap: 14px; }
.window__side i { display: block; height: 10px; border-radius: 5px; background: #e5e5ea; width: 55%; }
.window__side i:nth-child(2) { width: 45%; } .window__side i:nth-child(3) { width: 60%; } .window__side i:nth-child(4) { width: 40%; } .window__side i:nth-child(5) { width: 50%; }
.window__side i.is-dark { background: var(--text); width: 65%; }
.window__main { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.window__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat {
  height: 96px; border-radius: 12px; background: var(--bg-alt);
  padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.stat i { display: block; border-radius: 4px; background: #e5e5ea; }
.stat__label { height: 6px; width: 46%; }
.stat__value { height: 14px; width: 72%; background: #d2d2d7; }
.stat__value--short { width: 54%; }
.stat__accent .stat__value { background: var(--accent); opacity: 0.85; }

.window__lower { flex: 1; min-height: 0; display: grid; grid-template-columns: 2.2fr 1fr; gap: 16px; }
.window__chart { min-height: 0; border-radius: 12px; background: var(--bg-alt); padding: 24px; display: flex; align-items: flex-end; }
.window__chart svg { width: 100%; height: 100%; }
.chart__line { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.chart__area { opacity: 0; }
.is-visible .chart__line { animation: draw 1.8s var(--ease) 0.6s forwards; }
.is-visible .chart__area { animation: fade 1s ease 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.window__panel {
  border-radius: 12px; background: var(--bg-alt); padding: 20px;
  display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center;
}
.ring { width: 84px; height: 84px; flex: none; margin-bottom: 4px; }
/* r=38 -> circumference ~238.76; the gap leaves the arc just short of full. */
.ring__arc { stroke-dasharray: 238.76; stroke-dashoffset: 238.76; }
.is-visible .ring__arc { animation: ring 1.6s var(--ease) 0.8s forwards; }
@keyframes ring { to { stroke-dashoffset: 30; } }
.statusrow { display: flex; align-items: center; gap: 8px; width: 100%; }
.statusrow i { display: block; height: 6px; border-radius: 3px; background: #e5e5ea; flex: 1; }
.statusrow i.is-short { flex: 0 0 60%; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot--ok { background: #34c759; }
.dot--live { background: var(--accent); }

/* Security gallery ---------------------------------------------------------- */
.security {
  margin-top: clamp(72px, 9vw, 120px);
  background: var(--bg-dark); color: var(--text-on-dark);
  padding: clamp(72px, 9vw, 120px) 0 clamp(72px, 9vw, 128px);
  display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.security__head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.security .lead--muted { color: var(--text-on-dark-muted); }

/* pan-y lets the page still scroll vertically while horizontal drags reach us. */
.gallery { position: relative; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.gallery.is-dragging { cursor: grabbing; }
.gallery__track {
  display: flex; gap: 24px; width: max-content;
  padding-left: max(22px, calc((100vw - var(--container)) / 2));
  will-change: transform;
}
.gcard {
  position: relative; flex: none;
  width: 400px; height: 520px; border-radius: var(--radius-card); overflow: hidden;
  background: #0b1220;
  transition: transform 0.35s var(--ease);
}
.gcard:hover { transform: scale(1.02); }
.gcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcard__text {
  position: absolute; inset: auto 0 0 0; padding: 32px;
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
}
.gcard__tag { font-size: 14px; font-weight: 600; color: var(--text-on-dark-muted); letter-spacing: 0.02em; text-transform: uppercase; }
.gcard__title { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.gallery__controls { display: flex; justify-content: flex-end; gap: 12px; }
.paddle {
  width: 36px; height: 36px; border-radius: 50%; background: var(--tile-dark); color: var(--text-on-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}
.paddle:hover { background: #2c2c2e; transform: scale(1.05); }
.paddle:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 2px; }

/* Services ------------------------------------------------------------------ */
.services { background: var(--bg-alt); padding: clamp(72px, 9vw, 120px) 0 clamp(72px, 9vw, 128px); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(36px, 5vw, 56px); }

.tiles { display: flex; flex-direction: column; gap: 20px; }
.tiles__row { display: grid; gap: 20px; }
.tiles__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tile {
  position: relative; overflow: hidden;
  background: #fff; border-radius: var(--radius-tile); padding: 36px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }
.tile--large { padding: 44px; min-height: 520px; gap: 12px; }
.tile__title { font-size: 32px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.tile__title--sm { font-size: 24px; letter-spacing: -0.02em; margin-top: 8px; }
.tile__title--xl { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.tile__text { font-size: 17px; color: var(--text-muted); line-height: 1.5; max-width: 380px; text-wrap: pretty; }
.tile--large .tile__text, .tile--feature .tile__text { font-size: 17px; }
.tile:not(.tile--large):not(.tile--feature) .tile__text { font-size: 15px; }
.tile__icon { width: 32px; height: 32px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile__art {
  position: absolute; left: 44px; right: -40px; bottom: -40px; height: 220px; width: auto;
  border-radius: 20px; object-fit: cover; object-position: left center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s var(--ease);
}
.tile:hover .tile__art { transform: translateY(-6px); }

.tile--feature {
  background: var(--tile-dark); color: var(--text-on-dark);
  padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.tile--feature:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
.tile__feature-copy { display: flex; flex-direction: column; gap: 14px; }
.tile__eyebrow { font-size: 14px; font-weight: 600; color: var(--text-on-dark-muted); letter-spacing: 0.02em; text-transform: uppercase; }
.tile--feature .tile__text { color: var(--text-on-dark-muted); max-width: none; }
.tile__feature-media { height: 300px; border-radius: 20px; overflow: hidden; background: #2c2c2e; }
.tile__feature-media img { width: 100%; height: 100%; object-fit: cover; }

/* Approach ------------------------------------------------------------------ */
.approach { padding: clamp(72px, 9vw, 128px) 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: clamp(40px, 5vw, 72px); }
.step { display: flex; flex-direction: column; gap: 14px; }
.step__num { font-size: 64px; font-weight: 600; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.step__title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.step__text { font-size: 17px; color: var(--text-muted); line-height: 1.5; }

/* Testimonials -------------------------------------------------------------- */
.quotes { background: var(--bg-alt); padding: clamp(72px, 9vw, 120px) 0; }
/* Six slots, five cards: the first spans two columns and the grid fills exactly. */
.quotes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.qcard {
  margin: 0; background: #fff; border-radius: var(--radius-tile); padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.qcard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }
.qcard--wide { grid-column: span 2; }
.qcard__tag { font-size: 13px; font-weight: 600; color: var(--accent-link); letter-spacing: 0.01em; }
.qcard__text {
  margin: 0; flex-grow: 1;
  font-size: 19px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.4; text-wrap: pretty;
}
.qcard--wide .qcard__text { font-size: clamp(21px, 2.2vw, 26px); letter-spacing: -0.02em; line-height: 1.3; }
.qcard__by { font-size: 15px; color: var(--text-muted); }

/* Contact ------------------------------------------------------------------- */
.contact { padding: clamp(72px, 9vw, 128px) 0 clamp(48px, 6vw, 96px); }
.contact__inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__copy { display: flex; flex-direction: column; gap: 20px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.field__input {
  width: 100%; font: inherit; color: var(--text);
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-alt);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field__input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); }
.field__input:invalid.was-touched { border-color: #d70015; }
textarea.field__input { resize: vertical; min-height: 120px; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__status { font-size: 15px; color: var(--text-muted); }
.form__status.is-error { color: #d70015; }
.form__status.is-success { color: #1d8a3a; }

/* Footer -------------------------------------------------------------------- */
.footer { padding: 32px 0 48px; }
.footer__inner {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted);
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--text-muted); }

/* Reveal on scroll ---------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }
[data-reveal-delay="4"] { transition-delay: 0.48s; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1068px) {
  .tile--feature { grid-template-columns: 1fr; padding: 44px; }
  .quotes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qcard--wide { grid-column: span 2; }
  .tile__feature-media { height: 240px; }
  .security__head { gap: 32px; }
  .steps { gap: 32px; }
}

@media (max-width: 734px) {
  body { font-size: 16px; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 22px 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav .btn--small { display: none; }
  .nav__toggle { display: block; }

  .hero { padding-top: 56px; }
  /* Taller than the desktop 1200:640, or the chart is squeezed to a sliver. */
  .hero__visual { border-radius: 20px; aspect-ratio: 5 / 4; }
  .window { width: 88%; }
  .window__body { grid-template-columns: 1fr; }
  .window__side { display: none; }
  .window__main { padding: 16px; gap: 10px; }
  .window__stats { gap: 10px; }
  .stat { height: 48px; padding: 10px; gap: 6px; }
  .stat__label { height: 4px; } .stat__value { height: 8px; }
  /* The side panel has no room to read at this width. */
  .window__lower { grid-template-columns: 1fr; }
  .window__panel { display: none; }
  .window__chart { padding: 12px; }

  .security__head { grid-template-columns: 1fr; }
  .gcard { width: 300px; height: 400px; }
  .gcard__text { padding: 24px; }
  .gcard__title { font-size: 22px; }

  .tiles__row--2, .tiles__row--3 { grid-template-columns: 1fr; }
  .quotes__grid { grid-template-columns: 1fr; }
  .qcard--wide { grid-column: span 1; }
  .qcard { padding: 28px; }
  .tile { padding: 28px; }
  .tile--large { padding: 32px; min-height: 380px; }
  .tile--feature { padding: 32px; }
  .tile__title { font-size: 26px; }
  .tile__art { height: 150px; left: 32px; }

  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step__num { font-size: 48px; }

  .contact__inner { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .chart__line { stroke-dashoffset: 0; animation: none !important; }
  .chart__area { opacity: 1; animation: none !important; }
  .ring__arc { stroke-dashoffset: 30; animation: none !important; }
  .tile, .gcard, .qcard, .paddle, .btn, .tile__art { transition: none; }
}
