/* AdriaTest — V4 "Nodes" */
:root {
  --gut: clamp(20px, 5vw, 80px);
  --muted: rgba(255, 255, 255, .64);
  --dim: rgba(255, 255, 255, .5);
  --hair: rgba(255, 255, 255, .13);
  --ease: cubic-bezier(.22, .7, .18, 1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, address { margin: 0; padding: 0; font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; color: var(--citrus); }
::selection { background: var(--citrus); color: var(--charcoal); }
:focus-visible { outline: 1px solid var(--citrus); outline-offset: 4px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 300; padding: 10px 14px; background: var(--citrus); color: var(--charcoal); border-radius: 999px; font-size: 14px; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 var(--gut); }

.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  letter-spacing: -0.048em;
  font-weight: 400;
  line-height: 1;
}
.label {
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  outline: 1px solid transparent; outline-offset: 0;
  transition: outline-offset .5s var(--ease), outline-color .5s var(--ease), background-color .4s;
}
.btn-citrus { background: var(--citrus); color: var(--charcoal); }
.btn-citrus:hover, .btn-citrus:focus-visible { outline-color: var(--citrus); outline-offset: 5px; border-radius: 999px; }
.btn-lg { height: 58px; padding: 0 34px; font-size: 15px; }

.link-line, .explore {
  position: relative; display: inline-flex; align-items: center; gap: .55em;
  padding-bottom: 7px; font-weight: 500; font-size: 15px;
}
.link-line::after, .explore::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--citrus); transform: scaleX(.22); transform-origin: left;
  transition: transform .8s var(--ease);
}
.link-line span, .explore span { transition: transform .6s var(--ease); color: var(--citrus); }
.link-line:hover::after, .explore:hover::after, .seg:hover .explore::after,
.link-line:focus-visible::after, .explore:focus-visible::after { transform: scaleX(1); }
.link-line:hover span, .explore:hover span, .seg:hover .explore span { transform: translateX(5px); }

/* ---------- Intro loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: none; align-items: center; justify-content: center;
  background: var(--charcoal);
}
html.intro .loader { display: flex; }
html.intro, html.intro body { overflow: hidden; }

.ld-stage { display: flex; flex-direction: column; align-items: center; gap: clamp(30px, 5vh, 56px); will-change: transform, opacity; }
.ld-row { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 24px); }
.ld-at { width: clamp(250px, 34vw, 540px); height: auto; overflow: visible; }
.ld-side { height: auto; }
.ld-dm { width: clamp(124px, 15vw, 250px); }
.ld-am { width: clamp(140px, 17.2vw, 288px); }

.ld-line { position: relative; flex: none; width: clamp(36px, 6.5vw, 116px); height: 1px; }
.ld-trk, .ld-bar { position: absolute; inset: 0; transform: scaleX(0); }
.ld-trk { background: rgba(255, 255, 255, .2); }
.ld-bar { background: var(--citrus); }
.ld-line--a .ld-trk, .ld-line--a .ld-bar { transform-origin: 100% 50%; }
.ld-line--b .ld-trk, .ld-line--b .ld-bar { transform-origin: 0 50%; }

.ld-cap {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim);
  opacity: 0;
}
.ld-cap span { color: var(--citrus); padding: 0 .4em; }

/* initial (pre-animation) states */
.ld-stroke > * { stroke-dasharray: 1 1; stroke-dashoffset: 1.001; }
.ld-fill > * { opacity: 0; }
.ld-wm { opacity: 0; transform: translateX(-16px); }
.ld-side { opacity: 0; }
.ld-dm { transform: translateX(14px); }
.ld-am { transform: translateX(-14px); }

/* reduced motion: static logo, simple fade */
html.rm .ld-stroke { display: none; }
html.rm .ld-fill > *, html.rm .ld-wm, html.rm .ld-side, html.rm .ld-cap { opacity: 1; transform: none; }
html.rm .ld-trk { transform: none; }

.iris-ring { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 210; pointer-events: none; display: none; overflow: visible; }
.iris-ring circle { fill: none; stroke: var(--citrus); stroke-width: 1; }
html.intro .iris-ring { display: block; }

/* ---------- Background nodes ---------- */
.nodes { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; color: var(--citrus); }
.node { position: absolute; will-change: transform; }
.node svg { width: 100%; height: auto; opacity: .09; animation: drift 120s ease-in-out infinite alternate; will-change: transform; }
.n1 { width: 150vw; left: -62vw; top: 62vh; }
.n2 { width: 120vw; left: 52vw; top: 150vh; }
.n2 svg { animation-name: drift2; animation-duration: 140s; transform: rotate(180deg); }
.n3 { width: 140vw; left: -40vw; top: 252vh; }
.n3 svg { animation-duration: 160s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(5vw, -4vh, 0) rotate(5deg); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0) rotate(180deg); } to { transform: translate3d(-6vw, 3vh, 0) rotate(174deg); } }

main { position: relative; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .6s var(--ease), border-color .6s var(--ease);
}
html.intro .nav, html.intro .chip { opacity: 0; }
.nav.scrolled { background: rgba(41, 38, 38, .93); border-color: rgba(255, 255, 255, .07); }
.nav-in { display: flex; align-items: center; height: 76px; max-width: 1560px; margin: 0 auto; padding: 0 var(--gut); }
.nav-logo img { height: 40px; width: auto; margin-left: -7px; }
.nav-links { margin-left: auto; display: flex; gap: clamp(22px, 2.4vw, 38px); }
.nav-links a { position: relative; font-size: 14px; color: rgba(255, 255, 255, .84); padding: 6px 0; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--citrus); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: clamp(24px, 2.6vw, 40px); height: 40px; padding: 0 20px; }
.burger { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; margin-right: -10px; }
.burger-l { position: absolute; left: 11px; right: 11px; height: 1px; background: #fff; transition: transform .5s var(--ease); }
.burger-l:nth-child(1) { top: 18px; }
.burger-l:nth-child(2) { top: 25px; }
.menu-open .burger-l:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger-l:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--charcoal);
  display: flex; flex-direction: column; justify-content: center; padding: 90px var(--gut) 40px;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.menu-in { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.menu-in a:not(.btn) {
  font-family: var(--font-display); font-stretch: 125%; letter-spacing: -0.048em; font-weight: 300;
  font-size: clamp(2rem, 9vw, 3rem); line-height: 1.15;
  opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.menu-in .btn { margin-top: 28px; opacity: 0; transition: opacity .6s var(--ease) .3s; }
.menu-open .menu-in a { opacity: 1; transform: none; }
.menu-open .menu-in a:nth-child(2) { transition-delay: .05s; }
.menu-open .menu-in a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu-in a:nth-child(4) { transition-delay: .15s; }
.menu-foot { position: absolute; left: var(--gut); bottom: 32px; font-size: 13px; color: var(--dim); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 540px;
  display: flex; align-items: flex-end; overflow: hidden; background: #1c1a1a;
}
html.intro .hero { z-index: 200; clip-path: circle(0px at 50% 50%); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(41,38,38,.62) 0%, rgba(41,38,38,.12) 26%, rgba(41,38,38,.18) 52%, rgba(41,38,38,.9) 100%),
    linear-gradient(90deg, rgba(41,38,38,.45) 0%, rgba(41,38,38,0) 60%);
}
.hero-in { position: relative; padding-bottom: clamp(84px, 13vh, 150px); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--citrus); }
.hero-title { margin-top: 26px; font-size: clamp(2.7rem, 7.6vw, 8.8rem); line-height: .98; max-width: 11.5em; }
.scroll-hint {
  position: absolute; right: var(--gut); bottom: clamp(28px, 5vh, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.scroll-hint span { writing-mode: vertical-rl; }
.scroll-hint i { display: block; width: 1px; height: 64px; background: linear-gradient(var(--citrus), rgba(184,224,115,0)); transform-origin: top; }

/* ---------- Statement ---------- */
.statement { position: relative; padding-top: clamp(130px, 19vw, 280px); padding-bottom: clamp(110px, 15vw, 220px); }
.statement-text { margin-top: clamp(28px, 3vw, 48px); font-size: clamp(2.35rem, 6.9vw, 7.8rem); font-weight: 300; line-height: 1.02; max-width: 13.5em; }
.statement-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(24px, 4vw, 72px);
  align-items: center; margin-top: clamp(56px, 8vw, 128px);
}
.hair { display: block; height: 1px; background: rgba(184, 224, 115, .55); transform-origin: left; }
.statement-foot p { color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.65; }

/* ---------- Segments ---------- */
.segments { position: relative; padding-bottom: clamp(100px, 12vw, 190px); }
.seg-head { margin-bottom: clamp(70px, 10vw, 160px); }
.seg-h { margin-top: 26px; font-size: clamp(1.9rem, 4.2vw, 4.6rem); font-weight: 300; line-height: 1.04; max-width: 13em; }

.seg { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; }
.seg + .seg { margin-top: clamp(110px, 13vw, 210px); }
.seg--l .seg-media { grid-column: 1 / 8; }
.seg--l .seg-text  { grid-column: 9 / 13; }
.seg--r .seg-media { grid-column: 7 / 12; grid-row: 1; }
.seg--r .seg-text  { grid-column: 2 / 6; grid-row: 1; }

.seg-media { position: relative; display: block; }
.seg-photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #1f1d1d; isolation: isolate; }
.ar-land { aspect-ratio: 7 / 5; }
.ar-port { aspect-ratio: 4 / 5; }
.seg-zoom { position: absolute; inset: 0; transition: transform 1.6s var(--ease); }
.seg-zoom img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.seg:hover .seg-zoom { transform: scale(1.035); }

.seg-frame {
  position: absolute; inset: 0; z-index: -1; border: 1px solid var(--citrus); border-radius: var(--radius);
  opacity: 0; transform: translate3d(0, 0, 0);
  transition: transform 1s var(--ease), opacity .7s var(--ease);
}
.seg--l:hover .seg-frame, .seg--l:focus-within .seg-frame { opacity: 1; transform: translate3d(18px, 18px, 0); }
.seg--r:hover .seg-frame, .seg--r:focus-within .seg-frame { opacity: 1; transform: translate3d(-18px, 18px, 0); }
.seg-media { z-index: 0; }

.seg-inset {
  position: absolute; right: -10%; bottom: -16%; width: 27%; aspect-ratio: 4 / 5;
  border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .4);
  outline: 1px solid rgba(255,255,255,.08); outline-offset: -1px;
}
.seg-inset img { width: 100%; height: 100%; object-fit: cover; }

.seg-idx { display: flex; gap: 14px; align-items: baseline; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.seg-idx span { color: var(--citrus); letter-spacing: .06em; }
.seg-title { margin-top: clamp(24px, 2.4vw, 36px); }
.seg-logo { --lh: clamp(40px, 3.6vw, 56px); height: var(--lh); width: auto; margin-left: calc(var(--lh) * -.321); margin-top: calc(var(--lh) * -.2); margin-bottom: calc(var(--lh) * -.2); }
.seg-logo--am { margin-left: calc(var(--lh) * -.21); }
.seg-title--txt { font-size: clamp(1.45rem, 2vw, 2.1rem); font-weight: 500; line-height: 1.05; }
.seg-promise { margin-top: clamp(22px, 2.2vw, 34px); font-size: clamp(1.5rem, 2.3vw, 2.45rem); font-weight: 300; line-height: 1.1; }
.seg-detail { margin-top: 20px; color: var(--muted); line-height: 1.65; max-width: 30em; }
.explore { margin-top: 34px; }

/* ---------- Proof ---------- */
.proof { position: relative; padding-top: clamp(80px, 10vw, 160px); padding-bottom: clamp(70px, 8vw, 130px); }
.proof-h { margin-top: 26px; font-size: clamp(1.9rem, 4.2vw, 4.6rem); font-weight: 300; line-height: 1.04; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(60px, 8vw, 120px); }
.stat-line { display: block; height: 1px; background: rgba(184, 224, 115, .6); transform-origin: left; }
.stat-num {
  position: relative; display: flex; align-items: baseline; gap: .1em;
  margin-top: clamp(40px, 4.4vw, 64px);
  font-size: clamp(2.7rem, 5.6vw, 6.6rem); font-weight: 300; line-height: 1;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.unit { font-size: .3em; color: var(--citrus); letter-spacing: -.01em; font-weight: 400; }
.unit--pre { position: absolute; left: .08em; top: -1.25em; }
.stat-lbl { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 15em; }

.partner {
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); flex-wrap: wrap;
  margin-top: clamp(70px, 9vw, 130px); padding-top: 30px; border-top: 1px solid var(--hair);
}
.partner-txt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.partner img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .8; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(110px, 13vw, 200px) 0 clamp(140px, 16vw, 250px); }
.cta-node {
  position: absolute; left: 50%; top: 50%; width: min(1240px, 128vw); height: auto;
  transform: translate(-50%, -50%); fill: none; stroke: var(--citrus); stroke-width: 1.1; opacity: .2;
  pointer-events: none; overflow: visible;
}
.cta-in { position: relative; }
.cta-in .label { display: inline-block; }
.cta-h { margin: 28px auto 0; font-size: clamp(2.5rem, 7vw, 7.8rem); line-height: 1; max-width: 10.5em; }
.cta-sub { margin: 30px auto 0; max-width: 32em; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.12rem); }
.cta-actions { display: flex; justify-content: center; align-items: center; gap: 22px 36px; flex-wrap: wrap; margin-top: 46px; }

/* ---------- Footer ---------- */
.foot { position: relative; border-top: 1px solid var(--hair); padding: clamp(64px, 7vw, 100px) 0 36px; font-size: 14px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.foot-logo img { height: 50px; width: auto; margin-left: -9px; }
.foot-tag { font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 300; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 6vw, 88px); }
.foot-cols a, .foot-cols address { display: block; color: var(--muted); line-height: 1.9; transition: color .3s; }
.foot-cols a:hover { color: #fff; }
.foot-cols address { line-height: 1.6; margin-bottom: 8px; }
.foot-h { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(56px, 6vw, 88px); padding-top: 24px; border-top: 1px solid var(--hair); color: var(--dim); font-size: 13px; }
.foot-legal { display: flex; gap: 24px; }
.foot-legal a:hover { color: #fff; }

/* ---------- Showcase chip ---------- */
.chip {
  position: fixed; left: 12px; bottom: 12px; z-index: 90;
  padding: 6px 11px; border-radius: 999px; font-size: 11px; line-height: 1.2;
  color: rgba(255,255,255,.42); background: rgba(41,38,38,.72); border: 1px solid rgba(255,255,255,.09);
  transition: color .3s;
}
.chip span { color: rgba(255,255,255,.66); margin-left: 6px; }
.chip:hover { color: rgba(255,255,255,.8); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .seg--l .seg-media { grid-column: 1 / 8; }
  .seg--l .seg-text { grid-column: 8 / 13; }
  .seg--r .seg-media { grid-column: 7 / 13; }
  .seg--r .seg-text { grid-column: 1 / 6; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav-in { height: 64px; }
  .nav-logo img { height: 34px; }

  .seg { display: block; }
  .seg + .seg { margin-top: clamp(96px, 18vw, 140px); }
  .seg-text { margin-top: 34px; }
  .seg-frame { opacity: .55; transform: translate3d(8px, 8px, 0); }
  .seg--r .seg-frame { transform: translate3d(-8px, 8px, 0); }
  .seg--r .seg-media { margin-left: 8px; }
  .seg--l .seg-media { margin-right: 8px; }
  .seg-inset { display: none; }
  .ar-port { aspect-ratio: 5 / 6; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .statement-foot { grid-template-columns: 1fr; gap: 28px; }
  .statement-foot .hair { width: 72px; }
}

@media (max-width: 760px) {
  /* stacked intro */
  .ld-row { flex-direction: column; gap: 16px; }
  .ld-at { width: min(76vw, 330px); }
  .ld-dm { width: min(44vw, 190px); transform: translateY(12px); }
  .ld-am { width: min(50vw, 214px); transform: translateY(-12px); }
  .ld-line { width: 1px; height: clamp(26px, 5.5vh, 52px); }
  .ld-trk, .ld-bar { transform: scaleY(0); }
  .ld-line--a .ld-trk, .ld-line--a .ld-bar { transform-origin: 50% 100%; }
  .ld-line--b .ld-trk, .ld-line--b .ld-bar { transform-origin: 50% 0; }
  html.rm .ld-trk { transform: none; }
  .ld-cap { font-size: 10px; letter-spacing: .22em; }

  .n1 { width: 260vw; left: -150vw; top: 70vh; }
  .n2 { width: 230vw; left: 10vw; top: 170vh; }
  .n3 { width: 250vw; left: -120vw; top: 300vh; }

  .hero-title { margin-top: 20px; }
  .scroll-hint { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
  .cta-actions { flex-direction: column; gap: 26px; }
  .partner img { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .node svg { animation: none; }
  .seg-zoom, .seg-frame, .btn, .explore::after, .link-line::after { transition-duration: .01s; }
}
