/* =========================================================
   AdriaTest — V1 "Fusion"
   ========================================================= */
:root {
  --bg: var(--charcoal, #292626);
  --bg-2: #221f1f;
  --fg: #fff;
  --muted: rgba(255, 255, 255, .66);
  --faint: rgba(255, 255, 255, .42);
  --line: rgba(255, 255, 255, .14);
  --accent: var(--citrus, #b8e073);
  --gutter: clamp(20px, 4.4vw, 64px);
  --maxw: 1440px;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.intro { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
address { font-style: normal; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px;
}
.skip:focus { top: 16px; }

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

.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 400;
  letter-spacing: -0.048em;
  line-height: 1.02;
}
.accent { color: var(--accent); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); flex: none; }

.br-d { display: none; }
@media (min-width: 900px) { .br-d { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--bg); font-weight: 500; }
.btn--primary:hover { background: #c9ea8f; }
.btn--ghost { color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }

/* =========================================================
   LOADER
   ========================================================= */
.loader { display: none; }
html.intro .loader {
  display: block;
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
}
.ld-door {
  position: absolute; inset: 0;
  background: var(--bg);
  will-change: transform;
}
.ld-door--l { clip-path: inset(0 50% 0 0); }
.ld-door--r { clip-path: inset(0 0 0 50%); }
.ld-edge {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--accent);
  opacity: 0;
}
.ld-door--l .ld-edge { left: calc(50% - 1px); }
.ld-door--r .ld-edge { left: 50%; }

.ld-stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(36px, 5vh, 56px);
}
.ld-row {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 2.6vw, 44px);
}
.ld-main { flex: none; }
.ld-at { height: clamp(52px, 6.4vw, 96px); width: auto; overflow: visible; }
.ld-side { overflow: hidden; flex: none; }
.ld-mate { height: clamp(40px, 4.7vw, 70px); width: auto; opacity: .92; }
.ld-div { width: 1px; height: clamp(30px, 3.4vw, 50px); background: rgba(255,255,255,.22); flex: none; }
.ld-bar {
  position: relative;
  width: min(420px, 62vw); height: 1px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.ld-fill {
  position: absolute; inset: 0;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* Pre-JS initial loader state (matches GSAP "from" values, prevents a flash) */
html.intro .ld-p, html.intro .ld-word, html.intro .ld-div, html.intro .ld-mate, html.intro .ld-bar { opacity: 0; }

@media (max-width: 640px) {
  .ld-row { flex-direction: column; gap: 22px; }
  .ld-at { height: 64px; }
  .ld-mate { height: 46px; }
  .ld-div { width: 40px; height: 1px; }
  .ld-bar { width: 200px; }
  .ld-stage { gap: 40px; }
}

/* Hidden-until-intro-done chrome */
html.intro .nav, html.intro .chip { opacity: 0; visibility: hidden; }
html.intro .hero__eyebrow, html.intro .hero__foot, html.intro .hero__title { opacity: 0; }
html.js .hero__title { opacity: 0; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: opacity .9s var(--ease), visibility .9s, transform .6s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: #262323;
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .5s var(--ease);
}
.nav.is-solid::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 34px; margin-left: auto; }
.nav__links a {
  position: relative; font-size: 14px; color: rgba(255,255,255,.82);
  padding: 6px 0; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { height: 40px; padding: 0 20px; font-size: 14px; }
.nav__burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer;
  position: relative; z-index: 2;
}
.nav__burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff;
  transition: transform .5s var(--ease);
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__logo img { height: 26px; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-stretch: 125%; letter-spacing: -0.048em;
  font-size: clamp(28px, 8vw, 44px); line-height: 1.1;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu__n { font-family: var(--font-body); font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.menu__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.menu__mail { color: var(--muted); font-size: 15px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  background: #1c1a1a;
}
.hero__media { position: absolute; inset: 0; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  will-change: transform;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28,26,26,.55) 0%, rgba(28,26,26,0) 22%),
    linear-gradient(0deg, rgba(28,26,26,.88) 0%, rgba(28,26,26,.35) 42%, rgba(28,26,26,.12) 70%),
    linear-gradient(90deg, rgba(28,26,26,.45) 0%, rgba(28,26,26,0) 60%);
}
.hero__content {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(32px, 6vh, 64px);
}
.hero__eyebrow { margin-bottom: 22px; color: rgba(255,255,255,.7); }
.hero__title {
  font-size: clamp(42px, 7.4vw, 124px);
  font-weight: 400;
  max-width: 13ch;
  line-height: .98;
}
.hero__foot {
  margin-top: clamp(28px, 5vh, 52px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.hero__sub { color: rgba(255,255,255,.78); font-size: 15px; max-width: 46ch; }
.hero__scroll {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7);
  flex: none;
}
.hero__scroll-line { width: 1px; height: 28px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--accent); }

@media (max-width: 640px) {
  .hero__title { font-size: clamp(38px, 11.4vw, 56px); }
  .hero__sub { font-size: 14px; }
  .hero__foot { align-items: flex-end; }
  .hero__content { padding-bottom: 68px; }
  .hero__scroll span:last-child { display: none; }
}

/* SplitText line masks */
.split-line { padding-bottom: .06em; margin-bottom: -.06em; }

/* =========================================================
   STATEMENT
   ========================================================= */
.statement {
  position: relative;
  padding: clamp(120px, 20vh, 220px) 0 clamp(110px, 18vh, 200px);
  overflow: hidden;
}
.statement__nodes { position: absolute; inset: 0; pointer-events: none; }
.node { position: absolute; height: auto; opacity: .09; will-change: transform; }
.node--a { width: min(780px, 70vw); right: -14%; top: 4%; }
.node--b { width: min(380px, 40vw); left: -6%; bottom: 6%; opacity: .07; transform: rotate(-18deg); }
.node--c { width: min(220px, 26vw); left: 46%; top: 62%; opacity: .06; transform: rotate(12deg); }
.statement__inner { position: relative; }
.statement__text {
  margin-top: 36px;
  font-size: clamp(36px, 6.1vw, 100px);
  line-height: 1.02;
  max-width: 15ch;
}
.statement__body {
  margin-top: clamp(36px, 6vh, 64px);
  margin-left: auto;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
}
@media (min-width: 900px) {
  .statement__body { margin-right: 6%; }
}

/* =========================================================
   SEGMENTS
   ========================================================= */
.segments { padding: 0 0 clamp(100px, 16vh, 180px); }
.seg-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: clamp(32px, 5vh, 56px);
  flex-wrap: wrap;
}
.seg-head__title { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.04; }
.seg-head .eyebrow { order: 2; }

.panels {
  display: flex; gap: 14px;
  height: clamp(520px, 76vh, 780px);
}
.panel {
  position: relative;
  flex: 1 1 0; min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: #1e1c1c;
  transition: flex-grow 1s var(--ease);
}
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: 4;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--accent);
  opacity: 0; transition: opacity .6s var(--ease);
  pointer-events: none;
}
.panel__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; clip-path: inset(0 round var(--radius)); }
.panel__media img {
  position: absolute; top: 0; left: 50%;
  height: 100%; width: 50vw; min-width: 100%; max-width: none;
  object-fit: cover;
  transform: translateX(-50%) scale(1.001);
  transition: transform 1.4s var(--ease);
  will-change: transform;
}
.panel:nth-child(1) .panel__media img { object-position: 46% 50%; }
.panel:nth-child(2) .panel__media img { object-position: 60% 50%; }
.panel:nth-child(3) .panel__media img { object-position: 58% 50%; }
.panel__shade {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: linear-gradient(0deg, rgba(24,22,22,.92) 0%, rgba(24,22,22,.5) 38%, rgba(24,22,22,.22) 65%, rgba(24,22,22,.4) 100%);
  transition: opacity .8s var(--ease);
}
.panel__shade::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(24,22,22,.62);
  opacity: 0; transition: opacity .8s var(--ease);
}
.panel__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding: 26px 28px;
}
.panel__tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.panel__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 28px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.panel__logo { height: 54px; width: auto; margin: 0 0 6px -10px; }
.panel__logo--am { height: 52px; margin-left: -8px; }
.panel__name { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.08; margin-bottom: 14px; }
.panel__promise {
  font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.84);
  max-width: 36ch; min-height: 4.5em;
}
.panel__link {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: .02em; color: #fff;
  padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.3);
  transition: color .4s var(--ease), border-color .4s var(--ease), gap .5s var(--ease);
}
.panel__link svg { width: 18px; height: 12px; transition: transform .5s var(--ease); }

/* Active state — driven by JS (hover / focus) on desktop */
.panels.has-active .panel.is-active { flex-grow: 1.8; }
.panel.is-active::after { opacity: 1; }
.panel.is-active .panel__media img { transform: translateX(-50%) scale(1.045); }
.panel.is-active .panel__shade { opacity: .78; }
.panels.has-active .panel:not(.is-active) .panel__shade::after { opacity: 1; }
.panel.is-active .panel__link { color: var(--accent); border-color: var(--accent); }
.panel.is-active .panel__link svg { transform: translateX(4px); }
.panel:focus-visible { outline-offset: 4px; border-radius: var(--radius); }

@media (max-width: 959px) {
  .panels { flex-direction: column; height: auto; gap: 14px; }
  .panel { flex: none; aspect-ratio: 4 / 4.6; max-height: 620px; width: 100%; }
  .panel__media img { width: 100%; left: 0; transform: none; }
  .panel.is-active .panel__media img { transform: none; }
  .panel__top { padding: 22px; }
  .panel__body { padding: 22px; }
  .panel__logo { height: 48px; }
  .panel__logo--am { height: 46px; }
  .panel__promise { min-height: 0; font-size: 15px; }
  .panel:nth-child(2) .panel__media img { object-position: 64% 50%; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .panel { aspect-ratio: 16 / 11; }
}

/* =========================================================
   PROOF
   ========================================================= */
.proof { padding: 0 0 clamp(100px, 16vh, 170px); }
.stats {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 40px 28px 8px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  display: flex; align-items: baseline; gap: .18em;
  color: var(--accent);
  font-size: clamp(44px, 5.4vw, 88px);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__unit { font-size: .34em; color: #fff; letter-spacing: -0.02em; font-weight: 400; }
.stat__pre { font-size: .3em; color: #fff; letter-spacing: -0.02em; font-weight: 400; align-self: flex-start; margin-top: .25em; }
.stat__label { margin-top: 18px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 30px 18px 30px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat__num { font-size: clamp(34px, 10vw, 64px); }
  .stat__label { font-size: 13px; margin-top: 12px; }
}

.partner {
  margin-top: clamp(56px, 8vh, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.partner__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.partner__logo { height: 42px; width: auto; filter: brightness(0) invert(1); opacity: .78; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  overflow: hidden;
  padding: 120px 0;
}
.cta__media { position: absolute; inset: -8% 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; will-change: transform; }
.cta__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(41,38,38,1) 0%, rgba(41,38,38,0) 26%),
    linear-gradient(180deg, rgba(41,38,38,1) 0%, rgba(41,38,38,0) 22%),
    linear-gradient(90deg, rgba(41,38,38,.9) 0%, rgba(41,38,38,.66) 42%, rgba(41,38,38,.2) 80%);
}
.cta__inner { position: relative; }
.cta__title { margin-top: 28px; font-size: clamp(40px, 6.4vw, 108px); max-width: 12ch; }
.cta__body { margin-top: 28px; max-width: 42ch; color: rgba(255,255,255,.8); font-size: clamp(16px, 1.2vw, 18px); }
.cta__actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .cta { min-height: 0; padding: 120px 0 100px; }
  .cta__shade {
    background:
      linear-gradient(180deg, rgba(41,38,38,1) 0%, rgba(41,38,38,0) 20%),
      linear-gradient(0deg, rgba(41,38,38,.96) 0%, rgba(41,38,38,.74) 55%, rgba(41,38,38,.45) 100%);
  }
  .cta__media img { object-position: 70% 50%; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 80px 0 96px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer__brand img { height: 34px; width: auto; margin-bottom: 28px; }
.footer__brand address { color: var(--muted); font-size: 14px; line-height: 1.8; }
.footer__brand a:hover { color: var(--accent); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col a { color: rgba(255,255,255,.82); transition: color .3s; width: fit-content; }
.footer__col a:hover { color: var(--accent); }
.footer__h { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.footer__base {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--faint);
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* =========================================================
   SHOWCASE CHIP
   ========================================================= */
.chip {
  position: fixed; left: 14px; bottom: 14px; z-index: 80;
  font-size: 11px; letter-spacing: .04em; line-height: 1;
  color: rgba(255,255,255,.55);
  background: rgba(30,28,28,.72);
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px 11px; border-radius: 999px;
  transition: opacity .8s var(--ease), color .3s, border-color .3s;
}
.chip span { color: rgba(255,255,255,.8); margin-left: 6px; }
.chip:hover { color: #fff; border-color: rgba(184,224,115,.5); }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .panel { transition: none; }
}
