/* Home sections */

/* Network hosts (canvas + static fallback) */
.net-host { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.net-canvas, .net-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.net-live .net-fallback { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 104px 0 32px; isolation: isolate; }
.hero-net { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.22) 28%, rgba(0,0,0,.22) 78%, #000 100%); mask-image: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.22) 28%, rgba(0,0,0,.22) 78%, #000 100%); }
.hero-grid { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 28px; }
.hero-portrait { display: flex; align-items: center; gap: 16px; }
.hero-photo { position: relative; flex: none; width: 104px; aspect-ratio: 1; border-radius: 50%; padding: 4px; box-shadow: 0 0 0 2px var(--tiffany); }
.hero-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.hero-photo::after { content: ""; position: absolute; right: 2px; bottom: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--tiffany); box-shadow: 0 0 0 4px var(--black); }
.hero-portrait figcaption { display: flex; flex-direction: column; font-size: .9375rem; line-height: 1.35; color: var(--paper-soft); max-width: 24ch; }
.hero-portrait figcaption strong { color: var(--white); font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; margin-bottom: 4px; }
.hero-eyebrow { color: var(--paper-soft); }
.hero-h { font-size: clamp(1.8rem, 8.4vw, 2.6rem); line-height: 1.06; }
.hero-h .ln { display: inline-block; }
.hero-lead { max-width: 52ch; color: var(--paper-soft); }
.js .hero-h .ln, .js .hero-lead, .js .hero .cta-row, .js .hero .cta-note, .js .hero-portrait, .js .proof li { animation: rise 1.1s var(--ease) both; }
.js .hero-h .ln:nth-child(2) { animation-delay: .08s; }
.js .hero-h .ln:nth-child(3) { animation-delay: .16s; }
.js .hero-h .ln:nth-child(4) { animation-delay: .24s; }
.js .hero-lead { animation-delay: .34s; }
.js .hero .cta-row { animation-delay: .44s; }
.js .hero .cta-note { animation-delay: .5s; }
.js .proof li:nth-child(1) { animation-delay: .55s; } .js .proof li:nth-child(2) { animation-delay: .62s; }
.js .proof li:nth-child(3) { animation-delay: .69s; } .js .proof li:nth-child(4) { animation-delay: .76s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.proof { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.proof li { display: flex; flex-direction: column; }
.proof b { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--tiffany); line-height: 1.1; }
.proof span { color: var(--paper-soft); font-size: .9375rem; line-height: 1.4; margin-top: 4px; }
@media (min-width: 980px) {
  .hero { padding-top: 120px; }
  .hero-net { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.2) 40%, #000 62%); mask-image: linear-gradient(90deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.2) 40%, #000 62%); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); align-items: center; gap: 48px; }
  .hero-portrait { order: 2; flex-direction: column; align-items: center; gap: 0; position: relative; }
  .hero-photo { width: min(100%, 460px); padding: 12px; box-shadow: 0 0 0 1.5px var(--tiffany); }
  .hero-photo::after { width: 34px; height: 34px; right: 9%; bottom: 9%; box-shadow: 0 0 0 8px var(--black); }
  .hero-portrait figcaption { position: absolute; left: -8%; bottom: 8%; padding: 14px 20px; border-radius: 22px; background: var(--white); color: var(--ink-soft); max-width: 260px; font-size: .875rem; }
  .hero-portrait figcaption strong { color: var(--black); font-size: 1rem; }
  .hero-h { font-size: clamp(2.6rem, 4.2vw, 4.1rem); }
  .proof { grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
}

/* Intro + doors */
.intro { padding-block: clamp(56px, 8vw, 96px) clamp(80px, 12vw, 160px); }
.press { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line-light); }
.press-label { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.press-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 44px; }
.press-logos img { height: 30px; width: auto; filter: grayscale(1) contrast(1.2); }
.press-logos .logo-lrytas { height: 34px; filter: brightness(0); }
.intro-head { max-width: 980px; margin-top: clamp(64px, 9vw, 128px); }
.doors { display: grid; gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.door { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-lg); }
.door-me { box-shadow: inset 0 0 0 1.5px var(--black); }
.door-org { background: var(--black); color: var(--white); }
.door-tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--tiffany); color: var(--black); }
.door-q { display: grid; gap: 10px; padding: 18px 0; border-block: 1px solid var(--line-light); font-weight: 700; font-size: 1.0625rem; line-height: 1.45; }
.door-org .door-q { border-color: var(--line-dark); }
.door-org p:not(.door-tag) { color: var(--paper-soft); }
.door .link-arrow { margin-top: auto; align-self: flex-start; }
.door-org .link-arrow { color: var(--tiffany); }
@media (min-width: 860px) { .doors { grid-template-columns: 1fr 1fr; } }

/* Story (scrollytelling) */
.story { position: relative; }
.story-stage { position: relative; min-height: 100svh; overflow: hidden; display: flex; }
.story-net { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.3) 38%, #000 62%); mask-image: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.3) 38%, #000 62%); }
.story-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 112px; padding-bottom: 72px; }
.story-steps { display: grid; gap: 64px; }
.story-big { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 8vw, 6.4rem); line-height: 1.02; letter-spacing: -.03em; }
.story-txt { margin-top: 18px; max-width: 34ch; font-size: clamp(1.0625rem, 1.5vw, 1.3rem); color: var(--paper-soft); }
.story-src { margin-top: 12px; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-soft); }
.story-bar { display: none; }
.story.is-live { height: 330vh; }
.story.is-live .story-stage { position: sticky; top: 0; height: 100svh; }
.story.is-live .story-steps { gap: 0; }
.story.is-live .story-step { grid-area: 1 / 1; opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.story.is-live .story-step.is-active { opacity: 1; transform: none; }
.story.is-live .story-bar { display: flex; gap: 8px; margin-top: auto; padding-top: 32px; }
.story-bar i { width: 48px; height: 3px; border-radius: 3px; background: var(--line-dark); position: relative; overflow: hidden; }
.story-bar i::after { content: ""; position: absolute; inset: 0; background: var(--tiffany); transform-origin: left; transform: scaleX(clamp(0, calc(var(--p, 0) * 3 - var(--k)), 1)); }
.story-bar i:nth-child(1) { --k: 0; } .story-bar i:nth-child(2) { --k: 1; } .story-bar i:nth-child(3) { --k: 2; }
@media (min-width: 900px) {
  .story-net { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.35) 30%, #000 55%); mask-image: linear-gradient(90deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.35) 30%, #000 55%); }
  .story-copy { justify-content: center; padding-top: 96px; }
  .story-txt { max-width: 30ch; }
  .story.is-live .story-bar { margin-top: 56px; }
}

/* Kelias (service path) */
.kelias { padding-block: clamp(80px, 12vw, 168px); }
.kelias-head { max-width: 900px; }
.aud { margin-top: clamp(36px, 5vw, 64px); }
.aud-switch { display: none; }
.tabs-live > .aud-switch { display: inline-flex; padding: 5px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--black); margin-bottom: 36px; }
.aud-switch [role="tab"] { min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; transition: background-color .3s, color .3s; }
.aud-switch [aria-selected="true"] { background: var(--black); color: var(--white); }
.aud-panel + .aud-panel { margin-top: 56px; }
.tabs-live > .aud-panel + .aud-panel { margin-top: 0; }
.path-nodes { position: relative; display: grid; gap: 10px; }
.path-nodes::before { content: ""; position: absolute; left: 22px; top: 22px; bottom: 22px; width: 2px; background: repeating-linear-gradient(180deg, var(--black) 0 6px, transparent 6px 12px); opacity: .5; }
.path-nodes [role="tab"] { position: relative; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px 10px 0; text-align: left; border-radius: 999px; transition: background-color .3s; }
.pn-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--white); font-family: var(--f-display); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--black); transition: transform .5s var(--ease), background-color .3s, color .3s; }
.pn-name { font-weight: 800; font-size: 1.0625rem; line-height: 1.25; }
.pn-price { font-weight: 700; font-size: .9375rem; white-space: nowrap; }
.path-nodes [aria-selected="true"] { background: var(--black); color: var(--white); padding-left: 0; }
.path-nodes [aria-selected="true"] .pn-dot { background: var(--tiffany); color: var(--black); box-shadow: 0 0 0 4px var(--black); transform: scale(1.06); }
.path-nodes [role="tab"]:hover .pn-dot { transform: scale(1.12); }
.path-panel { margin-top: 18px; padding: clamp(26px, 4vw, 52px); border-radius: var(--r-lg); background: var(--white); }
.path-panel.is-shown { animation: panelIn .6s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } }
.pp-kicker { font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.ticks { display: grid; gap: 12px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--tiffany); box-shadow: 0 0 0 2px var(--black); }
.bg-black .ticks li::before { box-shadow: none; }
.pp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-light); }
.pp-price { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }
.pp-price small { display: block; font: 600 .875rem var(--f-body); margin-top: 6px; }
.pp-price-sm { font-size: 1.05rem; max-width: 26ch; line-height: 1.35; }
.kelias-more { margin-top: 40px; }
@media (min-width: 900px) {
  .path-nodes { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .path-nodes::before { left: 16.66%; right: 16.66%; top: 31px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--black) 0 6px, transparent 6px 12px); }
  .path-nodes::after { content: ""; position: absolute; left: 16.66%; top: 30px; height: 4px; width: 66.66%; border-radius: 4px; background: var(--black); transform-origin: left; transform: scaleX(calc(var(--sel, 0) / 2)); transition: transform .7s var(--ease); }
  .path-nodes [role="tab"], .path-nodes [aria-selected="true"] { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 12px 16px; background: none; color: var(--black); border-radius: 24px; z-index: 1; gap: 10px; }
  .pn-dot { width: 46px; height: 46px; }
  .path-nodes [aria-selected="true"] .pn-dot { transform: scale(1.25); }
  .path-nodes [aria-selected="true"] .pn-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .path-panel { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .path-panel > .pp-kicker, .path-panel > h3 { grid-column: 1; }
  .path-panel > .ticks { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: center; }
  .path-panel > .pp-foot { grid-column: 1 / -1; }
}
