/* Size display type against its column, including the split desktop layout. */
.tunet-hero-copy {
    container-type: inline-size;
}

.tunet-hero-title {
    font-size: clamp(2rem, 8vw, 6rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.hero-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--brand-paper);
}
.hero-secondary-link:hover { color: var(--brand-accent); }
.hero-secondary-link span { color: var(--brand-accent); }

/* The landing page is the expressive brand surface; product details live within pillars. */
.tunet-landing-hero { isolation: isolate; }
.hero-radiance {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 75% 45%, rgba(245, 181, 68, 0.14), transparent 45%),
        radial-gradient(ellipse at 96% 60%, rgba(139, 92, 246, 0.11), transparent 38%),
        radial-gradient(ellipse at 5% 25%, rgba(245, 181, 68, 0.045), transparent 45%);
}
.tunet-hero-title .hero-headline-accent { color: var(--brand-accent); }
@supports (background-clip: text) {
    .tunet-hero-title .hero-headline-accent {
        background: linear-gradient(110deg, #fff0c4 0%, #f5b544 42%, #f0a333 76%, #ffdc87 100%);
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}
.home-section-accent { color: var(--brand-accent); }
.tunet-landing-hero .tunet-hero-title::before {
    width: 5rem;
    box-shadow: 0 0 22px rgba(245, 181, 68, 0.45);
}
/* A dimensional core builds, releases signals, and reconnects the five pillars. */
.tunet-hero-diagram { --core-ink: #f5b544; perspective: 900px; }
.hero-system-toolbar { z-index: 5; position: absolute; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; }
.hero-system-label { display: flex; align-items: center; gap: .5rem; color: #dfc48e; font: .5625rem/1.5 'JetBrains Mono',monospace; letter-spacing: .1em; }
.hero-system-label span { width: .375rem; height: .375rem; background: #f5b544; box-shadow: 0 0 12px #f5b54488; }
.hero-motion-toggle { min-height: 44px; padding: .5rem .25rem; color: #a1a1aa; font: .5625rem/1.5 'JetBrains Mono',monospace; white-space: nowrap; }
.hero-motion-toggle:hover, .hero-motion-toggle:focus-visible { color: var(--brand-accent); }
.hero-motion-toggle[hidden] { display: none; }
.tunet-hero-diagram #quantum-grid { position: relative; width: 100%; height: 100%; min-height: 460px; isolation: isolate; }
.hero-constellation::before { content: ''; position: absolute; inset: 10% 5%; background-image: radial-gradient(#f5b54433 .7px,transparent .7px); background-size: 22px 22px; mask-image: radial-gradient(ellipse,#000,transparent 70%); pointer-events: none; }
.hero-circuit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.circuit-track { fill: none; stroke: var(--route-color,#f5b544); stroke-width: 1; opacity: .35; }
.circuit-port { fill: var(--route-color,#f5b544); opacity: .8; }
.circuit-signal { fill: none; stroke: #fff0c4; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 9 109; stroke-dashoffset: 9; opacity: 0; filter: drop-shadow(0 0 5px #f5b544); }
.circuit-arc, .circuit-echo { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.circuit-arc { stroke: #fff0c4; stroke-width: 1; filter: drop-shadow(0 0 3px #f5b544); }
.circuit-echo { stroke: var(--route-color); stroke-width: 1.6; filter: drop-shadow(0 0 5px var(--route-color)); }
.circuit-arrival { fill: #fff0c4; opacity: 0; filter: drop-shadow(0 0 5px var(--route-color)); }
.is-connected .circuit-track { opacity: 1; stroke-width: 1.5; filter: drop-shadow(0 0 5px var(--route-color)); }
.is-connected .circuit-port { fill: #fff0ca; opacity: 1; }
.hero-core { position: absolute; left: 50%; top: 50%; width: 190px; height: 228px; transform: translate(-50%,-50%); pointer-events: none; color: var(--core-ink); }
.hero-core-art { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 16px 25px #0008); transform: rotateX(var(--core-rx,0deg)) rotateY(var(--core-ry,0deg)); transition: transform .3s ease-out; }
.core-layer { transform: translateY(var(--spread)); }
.core-charge-edge { fill: none; stroke: #fff0c4; stroke-width: 1.3; stroke-dasharray: 18 82; stroke-dashoffset: 100; opacity: 0; filter: drop-shadow(0 0 3px #f5b544); }
.core-hot-seam { fill: none; stroke: #fff3d1; stroke-width: 1.8; opacity: 0; filter: drop-shadow(0 0 5px #f5b544); }
.core-pressure-wave { fill: none; stroke: #ffd078; stroke-width: .7; opacity: 0; transform-origin: 100px 115px; }
.hero-core-halo { position: absolute; width: 200%; height: 160%; left: -50%; top: -30%; background: radial-gradient(ellipse,color-mix(in srgb,var(--core-ink) 26%,transparent),transparent 64%); transition: background .4s; }
.hero-core-wordmark { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); color: #e9c786; font: 600 .65rem/1.4 'JetBrains Mono',monospace; letter-spacing: .35em; }
#quantum-grid .quantum-block { position: absolute; width: 34%; max-width: 166px; height: 88px; transform: translate(-50%,-50%); opacity: 1; z-index: 2; }
#quantum-grid [data-node="ventures"] { left: 23%; top: 22%; }
#quantum-grid [data-node="micro"] { left: 77%; top: 22%; }
#quantum-grid [data-node="sprint"] { left: 16%; top: 54%; width: 28%; }
#quantum-grid [data-node="cognition"] { left: 84%; top: 54%; width: 28%; }
#quantum-grid [data-node="engineering"] { left: 50%; top: 83%; width: 38%; max-width: 190px; }
.hero-node-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 1rem .75rem; border: 1px solid color-mix(in srgb,var(--color) 28%,#242424); border-radius: 10px; background: linear-gradient(135deg,color-mix(in srgb,var(--color) 9%,#131311),#101010ee); box-shadow: 0 14px 28px -16px #000; overflow: hidden; transition: border-color .3s,background .3s; }
.hero-node-number { position: absolute; right: .5rem; top: .4rem; color: var(--color); opacity: .7; font: .5rem/1 'JetBrains Mono',monospace; }
#quantum-grid .hero-node-face > svg { position: absolute; right: .65rem; bottom: .65rem; width: 14px; height: 14px; margin: 0; opacity: .7; color: var(--color); }
#quantum-grid .hero-grid-title { color: color-mix(in srgb,var(--color) 35%,white); font: 600 .8125rem/1.4 'JetBrains Mono',monospace; letter-spacing: -.02em; }
#quantum-grid .hero-grid-description { margin-top: .4rem; max-width: 95%; color: #a1a1aa; font: .6875rem/1.4 'JetBrains Mono',monospace; }
.hero-system-caption { position: absolute; bottom: -1rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; align-items: center; color: #a1a1aa; font: .6875rem/1.5 'JetBrains Mono',monospace; }
.hero-system-caption a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; }
.hero-system-caption a:hover { color: var(--brand-accent); }
.hero-system-caption span { color: var(--brand-accent); }
#quantum-grid .quantum-block:hover .hero-node-face, #quantum-grid .quantum-block:focus-visible .hero-node-face { border-color: var(--color); background: color-mix(in srgb,var(--color) 16%,#121212); }
.quantum-block:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 4px; border-radius: 10px; }
/* A single nine-second sequence: gather, release, arrive, settle. */
@keyframes core-assemble { 0%,100% { transform: translateY(var(--spread)); } 27%,48% { transform: translateY(var(--packed)); } 72%,85% { transform: translateY(var(--spread)); } }
@keyframes core-bloom { 0%,100% { opacity: .5; transform: scale(.8); } 27% { opacity: 1; transform: scale(1); } 46% { opacity: .7; transform: scale(1.2); } 72% { opacity: .5; transform: scale(.9); } }
@keyframes circuit-transmit { 0% { stroke-dashoffset: 9; opacity: 0; } 2% { opacity: 1; } 12% { stroke-dashoffset: -100; opacity: 1; } 16%,100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes filament-release { 0% { stroke-dashoffset: 100; opacity: 0; } 3% { opacity: .9; } 12% { stroke-dashoffset: 0; opacity: .75; } 23%,100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes filament-echo { 0%,4% { stroke-dashoffset: 100; opacity: 0; } 9% { opacity: .5; } 16% { stroke-dashoffset: 0; opacity: .35; } 25%,100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes port-arrival { 0%,10%,24%,100% { opacity: 0; } 12%,15% { opacity: .85; } }
@keyframes node-receive { 0%,18%,100% { box-shadow: 0 14px 28px -16px #000; } 2% { box-shadow: 0 0 28px -10px var(--color),inset 0 0 24px -12px var(--color); border-color: color-mix(in srgb,var(--color) 75%,white); } }
@keyframes core-charge { 0%,8% { opacity: 0; stroke-dashoffset: 100; } 22% { opacity: .8; } 28% { opacity: 1; stroke-dashoffset: 0; } 40%,100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes core-seam { 0%,22%,48%,100% { opacity: 0; } 28%,33% { opacity: .9; } }
@keyframes core-pressure { 0%,26% { opacity: 0; transform: scale(.85); } 29% { opacity: .6; } 49%,100% { opacity: 0; transform: scale(1.9); } }
@media (prefers-reduced-motion: no-preference) {
    .is-ready .core-layer { animation: core-assemble 9s cubic-bezier(.45,0,.2,1) infinite; }
    .is-ready .hero-core-halo { animation: core-bloom 9s ease-in-out infinite; }
    .is-ready .circuit-signal { animation: circuit-transmit 9s linear infinite; animation-delay: var(--signal-delay); }
    .is-ready .circuit-arc { animation: filament-release 9s linear infinite; animation-delay: var(--signal-delay); }
    .is-ready .circuit-echo { animation: filament-echo 9s linear infinite; animation-delay: var(--signal-delay); }
    .is-ready .circuit-arrival { animation: port-arrival 9s ease-out infinite; animation-delay: var(--signal-delay); }
    .is-ready .hero-node-face { animation: node-receive 9s ease-out infinite; animation-delay: var(--delay); }
    .is-ready .core-charge-edge { animation: core-charge 9s linear infinite; }
    .is-ready .core-hot-seam { animation: core-seam 9s ease-in-out infinite; }
    .is-ready .core-pressure-wave { animation: core-pressure 9s ease-out infinite; }
}
.tunet-hero-diagram.is-paused *, .tunet-hero-diagram.is-offscreen * { animation-play-state: paused !important; }
/* The guide makes every route visible and explains when to choose it. */
.home-pillar-guide { padding: clamp(3.5rem,6vw,6rem) 1.5rem; background: #0b0b0a; border-block: 1px solid #f7f4ec10; }
.pillar-guide-inner { max-width: 80rem; margin-inline: auto; }
.pillar-guide-heading { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.pillar-guide-heading h2 { color: var(--brand-paper); font-size: clamp(2rem,4vw,3.5rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
.pillar-guide-heading > p { color: #a1a1aa; line-height: 1.7; max-width: 25rem; }
.pillar-carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pillar-carousel-status { color: #a1a1aa; font: .75rem/1.5 'JetBrains Mono',monospace; font-variant-numeric: tabular-nums; }
.pillar-carousel-controls > div { display: flex; gap: .5rem; }
.pillar-carousel-controls button { width: 44px; height: 44px; border: 1px solid #f7f4ec26; border-radius: 50%; color: var(--brand-paper); transition: background .2s; }
.pillar-carousel-controls button:hover:not(:disabled) { background: var(--brand-accent); color: var(--brand-ink); }
.pillar-carousel-controls button:disabled { opacity: .3; cursor: default; }
.pillar-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem)/3); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #75664c #111; padding: .25rem .25rem 1rem; }
.pillar-carousel-card { display: flex; flex-direction: column; gap: 2.5rem; min-height: 340px; padding: 1.75rem; border: 1px solid color-mix(in srgb,var(--color) 25%,#242424); border-radius: 1.25rem; background: linear-gradient(145deg,color-mix(in srgb,var(--color) 8%,#101011),#101011 70%); scroll-snap-align: start; transition: border-color .2s,background .2s; }
.pillar-carousel-card:hover { border-color: var(--color); background: linear-gradient(145deg,color-mix(in srgb,var(--color) 14%,#101011),#101011 70%); }
.pillar-card-heading { display: flex; align-items: center; gap: .625rem; color: color-mix(in srgb,var(--color) 50%,white); font: .875rem/1.5 'JetBrains Mono',monospace; }
.pillar-card-index { font-size: .625rem; opacity: .65; }
.pillar-card-heading svg { margin-left: auto; width: 24px; height: 24px; color: var(--color); }
.pillar-card-content { display: flex; flex-direction: column; gap: 1rem; }
.pillar-card-need { color: var(--brand-paper); font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.pillar-card-description { color: #a1a1aa; font-size: .9375rem; line-height: 1.7; }
.pillar-card-action { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--brand-paper); font-size: .8125rem; }
.pillar-card-action > span { color: var(--color); font-size: 1.5rem; }
.home-philosophy { padding: clamp(4rem,7vw,7rem) 1.5rem; background: #080808; }
.home-philosophy-inner { max-width: 80rem; margin-inline: auto; display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(3rem,7vw,7rem); }
.philosophy-intro h2 { color: var(--brand-paper); font-size: clamp(2.5rem,5vw,4.5rem); line-height: .95; font-weight: 700; letter-spacing: -.05em; margin-bottom: 1.5rem; }
.philosophy-intro > p:not(.brand-eyebrow) { color: #a1a1aa; line-height: 1.8; }
.philosophy-intro .hero-secondary-link { padding-left: 0; margin-top: 1rem; }
.philosophy-principles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2.5rem; }
.philosophy-principles article { border-top: 1px solid #f5b54433; padding-top: 1.25rem; }
.philosophy-principles .brand-eyebrow { display: block; font-size: .625rem; }
.philosophy-principles h3 { color: var(--brand-paper); font-size: 1.25rem; line-height: 1.35; margin-bottom: .75rem; letter-spacing: -.025em; font-weight: 500; }
.philosophy-principles p { color: #a1a1aa; font-size: .9375rem; line-height: 1.75; }
@media (max-width: 1023px) { .pillar-carousel-track { grid-auto-columns: calc((100% - 1.5rem)/2); } .home-philosophy-inner { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .pillar-carousel-track { grid-auto-columns: calc(100% - 2rem); gap: 1rem; } .pillar-carousel-card { min-height: 300px; padding: 1.5rem; gap: 2rem; } .philosophy-principles { grid-template-columns: 1fr; gap: 1.5rem; } .home-philosophy { padding-inline: 1rem; } }
.pillar-guide-help { margin-top: 1.5rem; color: #a1a1aa; font-size: .875rem; line-height: 1.6; }
.pillar-guide-help a { display: inline-flex; align-items: center; min-height: 44px; gap: .5rem; margin-left: .5rem; color: var(--brand-paper); }
.pillar-guide-help a:hover { color: var(--brand-accent); }
@media (max-width: 1023px) {
}
@media (min-width: 640px) and (max-width: 1279px) {
    .hero-core { width: 165px; height: 198px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .tunet-hero-copy .tunet-hero-title { font-size: clamp(3rem,9cqi,5rem); }
    .tunet-landing-hero .hero-main-content { padding-block: 1rem; }
    .tunet-landing-hero .hero-layout { gap: 1.5rem; }
    .hero-core { width: 150px; height: 180px; }
}
@media (max-width: 639px) {
    .tunet-landing-hero { min-height: auto; padding-top: 2rem; padding-bottom: 1.5rem; }
    .tunet-landing-hero .hero-main-content { padding-top: 0; padding-bottom: .5rem; }
    .tunet-landing-hero .hero-layout { gap: 1rem; }
    .tunet-hero-title { margin-bottom: 1rem; }
    .tunet-hero-copy .hero-intro { font-size: .9375rem; line-height: 1.6; margin-bottom: 1.25rem; }
    .tunet-hero-copy .hero-actions { gap: .25rem; }
    .hero-actions .hero-secondary-link { min-height: 44px; padding-block: .5rem; }
    .tunet-landing-hero .tunet-hero-diagram { margin-top: 0; height: 360px; }
    .tunet-hero-diagram #quantum-grid { min-height: 0; }
    .hero-core { width: clamp(96px,30vw,120px); height: auto; aspect-ratio: 5 / 6; top: 49%; }
    #quantum-grid .quantum-block { height: 72px; width: 43%; }
    #quantum-grid [data-node="ventures"] { left: 23%; top: 23%; }
    #quantum-grid [data-node="micro"] { left: 77%; top: 23%; }
    #quantum-grid [data-node="sprint"] { left: 16%; top: 55%; width: 31%; }
    #quantum-grid [data-node="cognition"] { left: 84%; top: 55%; width: 31%; }
    #quantum-grid [data-node="engineering"] { left: 50%; top: 80%; width: 46%; }
    .hero-node-face { padding: .625rem .5rem; }
    #quantum-grid .hero-grid-title { font-size: .75rem; }
    #quantum-grid .hero-grid-description { max-width: 100%; font-size: .625rem; }
    #quantum-grid .hero-node-face > svg { display: none; }
    .hero-core-wordmark { display: none; }
    .hero-system-caption { bottom: -.5rem; }
    .hero-system-caption a { min-height: 44px; }
    .home-pillar-guide { padding-inline: 1rem; }
    .pillar-guide-heading { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
    .pillar-guide-help a { margin-left: 0; }
}

.home-roadmap-link {
    max-width: 90rem;
    margin-inline: auto;
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    border-block: 1px solid rgba(245, 181, 68, 0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.home-roadmap-link h2 { color: var(--brand-paper); font-size: clamp(1.75rem, 3vw, 3rem); letter-spacing: -0.04em; font-weight: 600; }
@media (max-width: 639px) {
    .home-roadmap-link { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
    .home-roadmap-link .hero-secondary-link { padding-left: 0; }
}
@supports (font-size: 1cqi) { .tunet-hero-title { font-size: clamp(2rem,12.5cqi,7rem); } }
