/* AVNCO web v2 · home */

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(720px, 100svh); color: #fff; background: radial-gradient(120% 80% at 70% 60%, #1a2b52 0%, var(--night) 60%); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
@media (max-width: 960px) { .hero-poster img { object-position: 50% 50%; } }
.hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* legibility: a calm navy field behind the copy, a floor fade behind the selector */
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,20,38,.94) 0%, rgba(10,20,38,.82) 28%, rgba(10,20,38,.38) 54%, rgba(10,20,38,0) 72%),
    linear-gradient(0deg, rgba(10,20,38,.75) 0%, rgba(10,20,38,0) 22%),
    linear-gradient(180deg, rgba(10,20,38,.6) 0%, rgba(10,20,38,0) 18%); }
.hero-body { position: relative; min-height: max(720px, 100svh); display: grid; grid-template-rows: 1fr auto; padding-top: var(--nav-h); }
.hero-copy { align-self: center; max-width: 700px; padding-block: 48px 64px; }
.hero .eyebrow { opacity: 0; animation: rise .8s .15s var(--ease) forwards; }
.hero h1 { margin-top: 28px; font-size: clamp(44px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.035em; height: 2.04em; white-space: nowrap; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .16em; margin: 0 -.02em -.16em; }
.hero h1 .w > span { display: inline-block; transform: translateY(110%); animation: word .95s var(--ease) forwards; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero h1.out .w > span { animation: word-out .36s var(--ease-in-out) forwards; animation-delay: 0s !important; }
@keyframes word { to { transform: none; } }
@keyframes word-out { from { transform: none; opacity: 1; } to { transform: translateY(-40%); opacity: 0; } }
.hero .lead { margin-top: 24px; max-width: 560px; color: rgba(255,255,255,.8); height: 4.8em; transition: opacity .36s var(--ease), transform .36s var(--ease); }
.hero .lead.out { transform: translateY(6px); }
.hero .lead.out { opacity: 0; }
.hero .cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: rise .8s 1s var(--ease) forwards; }

/* system selector: replaces the slider; a tablist with an auto-advancing progress line */
.systems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(720px, 100%); border-top: 1px solid rgba(157,184,230,.22); opacity: 0; animation: rise .8s 1.2s var(--ease) forwards; }
.sys { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; padding: 22px 20px 40px 0; color: rgba(255,255,255,.5); transition: color var(--t); }
.sys::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.sys[aria-selected="true"] { color: #fff; }
.sys[aria-selected="true"]::before { animation: progress var(--dwell, 7s) linear forwards; box-shadow: 0 0 14px rgba(242,169,59,.8); }
.paused .sys[aria-selected="true"]::before { animation-play-state: paused; }
.sys:hover { color: rgba(255,255,255,.85); }
.sys .n { display: block; font: 500 12px/1 Outfit; letter-spacing: .18em; color: var(--horizon); }
.sys .t { display: block; margin-top: 12px; font: 600 18px/1.2 Poppins; letter-spacing: -0.01em; }
.sys .d { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.5); }
@keyframes progress { to { transform: scaleX(1); } }


/* ---------- spec strip ---------- */
.specs { background: var(--navy); color: #fff; }
.specs .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec { position: relative; padding: 48px 24px 48px 28px; }
.spec::before { content: ""; position: absolute; left: 0; top: 48px; bottom: 48px; width: 2px; background: linear-gradient(var(--amber), rgba(242,169,59,.12)); }
.spec b { display: block; font: 600 clamp(40px, 4vw, 58px)/1 Poppins; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.spec span { display: block; margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--horizon); }

/* ---------- product bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); gap: var(--gap); }
.tile { --mx: 50%; --my: 50%; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius); background: var(--page); color: var(--navy);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--t); background: radial-gradient(420px circle at var(--mx) var(--my), rgba(242,169,59,.2), transparent 62%); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 32px 64px -32px rgba(10,20,38,.35); }
.tile:hover::after { opacity: 1; }
.tile h3 { margin-top: 22px; font-size: var(--fs-h3); }
.tile p { margin-top: 10px; max-width: 280px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.tile .link { margin-top: auto; padding-top: 24px; }
.tile .prod { position: absolute; right: 16px; bottom: 16px; width: 46%; height: 58%; max-width: 260px; object-fit: contain; object-position: bottom right; z-index: -1; transition: transform .8s var(--ease); }
.tile:hover .prod { transform: translateY(-8px) scale(1.04); }
.tile .prod.narrow { width: 34%; }
.tile.span-6 { grid-column: span 6; } .tile.span-3 { grid-column: span 3; } .tile.span-4 { grid-column: span 4; }
.tile.photo { grid-row: span 2; color: #fff; background: var(--night); }
.tile.photo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.tile.photo:hover img.bg { transform: scale(1.05); }
.tile.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,20,38,.94) 0%, rgba(10,20,38,.4) 55%, rgba(10,20,38,.15) 100%); }
.tile.photo h3 { font-size: clamp(28px, 2.6vw, 40px); margin-top: auto; }
.tile.photo p { color: rgba(255,255,255,.78); max-width: 380px; }
.tile.photo .link { color: var(--amber); margin-top: 0; }

/* ---------- pinned story ---------- */
.story { position: relative; height: calc(100svh + 75vh); background: var(--page); }
.story .pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story .grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: calc(var(--gap) * 4); align-items: center; }
.story h2 { margin-top: 20px; font-size: clamp(30px, 3.1vw, 46px); color: var(--navy); }
.story .intro .lead { margin-top: 20px; max-width: 440px; }
.story .count { margin-top: 40px; font: 600 14px/1 Outfit; letter-spacing: .14em; color: var(--slate); }
.story .count b { color: var(--navy); font-size: 32px; letter-spacing: -0.02em; font-family: Poppins; margin-right: 6px; }
.steps { position: relative; padding-left: 56px; }
.steps .rail { position: absolute; left: 15px; top: 30px; bottom: 30px; width: 2px; background: repeating-linear-gradient(var(--line) 0 14px, transparent 14px 24px); }
.steps .rail i { position: absolute; inset: 0 0 auto; height: 100%; transform: scaleY(var(--p, 0)); transform-origin: top; background: repeating-linear-gradient(var(--amber) 0 14px, transparent 14px 24px); }
.step { position: relative; padding: 24px 0; opacity: .3; transform: translateX(-8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.step.on { opacity: .5; transform: none; }
.step.now { opacity: 1; }
.step h3, .step p { transition: color .5s var(--ease), transform .6s var(--ease); transform-origin: left center; }
.step.now h3 { color: var(--navy); transform: scale(1.06); }
.step.on:not(.now) h3 { color: var(--text-2); }
.step::before { content: ""; position: absolute; left: -24px; right: -24px; top: 8px; bottom: 8px; z-index: -1; border-radius: var(--radius); background: #fff; box-shadow: 0 24px 48px -28px rgba(10,20,38,.25); opacity: 0; transform: scale(.98); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.step.now::before { opacity: 1; transform: none; }
.steps { isolation: isolate; }
.step.now .dot { box-shadow: 0 0 0 8px rgba(242,169,59,.22), 0 0 26px rgba(242,169,59,1); }
.step .dot { position: absolute; left: -48px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); transition: background var(--t), box-shadow var(--t); }
.step.on .dot { background: var(--amber); box-shadow: 0 0 0 6px rgba(242,169,59,.18), 0 0 20px rgba(242,169,59,.9); }
.step small { font: 600 12px/1 Outfit; letter-spacing: .16em; color: var(--beacon); }
.step h3 { margin-top: 10px; font-size: var(--fs-h3); color: var(--navy); }
.step p { margin-top: 8px; max-width: 470px; color: var(--text-2); }

@media (max-width: 960px) {
  .hero-copy { padding-block: 32px 40px; }
  .hero .eyebrow small { display: none; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 52px); }
  .hero .cta { flex-direction: column; align-items: stretch; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,20,38,.97) 0%, rgba(10,20,38,.82) 40%, rgba(10,20,38,.35) 70%, rgba(10,20,38,.55) 100%); }
  .systems { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sys { padding: 18px 8px 24px 0; }
  .sys .t { font-size: 14px; } .sys .d { display: none; }
  .specs .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { padding: 32px 12px 32px 20px; } .spec::before { top: 32px; bottom: 32px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile.span-6, .tile.span-3, .tile.span-4 { grid-column: auto; min-height: 260px; }
  .tile.photo { grid-row: auto; min-height: 420px; }
  .tile:not(.photo) { min-height: 240px; padding-right: calc(38% + 24px); }
  .tile:not(.photo) p { max-width: none; }
  .tile .prod, .tile .prod.narrow { right: 20px; bottom: 50%; width: 36%; height: 72%; max-width: 220px; object-position: center right; transform: translateY(50%); }
  .tile:hover .prod { transform: translateY(50%); }
  .story { height: auto; }
  .story .pin { position: static; height: auto; padding-block: var(--section); }
  .story .grid { grid-template-columns: 1fr; gap: 48px; }
  .story .count { display: none; }
  .step, .step.on { opacity: 1; transform: none; } .step::before { display: none; } .step.now h3 { transform: none; }
  .step .dot { background: var(--amber); }
  .steps .rail i { transform: scaleY(1); }
}

/* ---------- coming soon: the hero alone, with a minimal header ---------- */
.soon-sign { gap: 10px; }
.soon-sign .lamp { flex: none; width: 7px; height: 7px; box-shadow: none; border-radius: 50%; background: var(--night); animation: soon-blink 1.6s ease-in-out infinite; }
@keyframes soon-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.soon .cta .btn svg { width: 17px; height: 17px; }
.soon-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); }
.soon-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-bottom: 40px; font-size: 13px; color: rgba(255,255,255,.5); opacity: 0; animation: rise .8s 1.4s var(--ease) forwards; }
.soon-legal a { color: rgba(255,255,255,.7); transition: color var(--t-fast); }
.soon-legal a:hover { color: var(--amber); }
.page-coming-soon .nav .wrap { grid-template-columns: 1fr auto; }
.page-coming-soon .nav .actions .btn { display: inline-flex; }
@media (max-width: 960px) {
  .soon-foot { flex-direction: column; align-items: stretch; gap: 0; }
  .soon-legal { padding: 4px 0 28px; }
  .page-coming-soon .nav .btn-quote { height: 40px; padding: 0 16px 0 14px; font-size: 14px; }
}
@media (max-width: 520px) { .soon-legal span { flex-basis: 100%; } }
