main { position: relative; z-index: 1; }

.hero {
    position: relative;
    min-height: min(100svh, 980px);
    display: flex;
    align-items: center;
    padding: 120px var(--gutter) 100px;
    overflow: hidden;
    isolation: isolate;
}
.hero .scene { z-index: -1; }

.hero-bg { position: absolute; inset: 0; z-index: -2; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: drift 20s var(--ease) infinite alternate;
}
.orb-1 { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; background: radial-gradient(circle, rgba(125, 55, 55, 0.7), rgba(125, 55, 55, 0) 70%); top: -10%; right: -6%; }
.orb-2 { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; background: radial-gradient(circle, rgba(64, 82, 96, 0.7), rgba(64, 82, 96, 0) 70%); bottom: -18%; left: -8%; animation-delay: -7s; }
@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(3vw, 4vw, 0) scale(1.12); }
}

.floor {
    position: absolute;
    left: -25%;
    right: -25%;
    bottom: -30%;
    height: 75%;
    background-image: linear-gradient(rgba(218, 205, 184, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(218, 205, 184, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(600px) rotateX(64deg);
    transform-origin: 50% 0;
    mask-image: linear-gradient(transparent, #000 25%, #000 50%, transparent 95%);
    -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 50%, transparent 95%);
    animation: floor-run 6s linear infinite;
}
@keyframes floor-run { to { background-position: 0 64px; } }

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(transparent, var(--bg));
    z-index: -1;
    pointer-events: none;
}

.hero-inner { width: 100%; max-width: calc(var(--maxw) - var(--gutter) * 2); margin: 0 auto; }
.hero-copy { max-width: 600px; }
.hero .eyebrow { margin-bottom: 30px; }

.title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(46px, 8vw, 112px);
    line-height: 0.96;
    letter-spacing: -0.035em;
    color: var(--text-hi);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.title .line > span { display: block; }
.title .accent { color: var(--accent-soft); font-style: italic; }
.title .line[data-reveal] { opacity: 1; transform: none; }
.title .line > span { transform: translateY(110%) rotateX(-40deg); transform-origin: 50% 100%; transition: transform 1.1s var(--ease); transition-delay: inherit; }
.title .line.in > span { transform: none; }

.lead {
    max-width: 470px;
    margin-top: 30px;
    font-size: clamp(16px, 1.6vw, 18px);
    color: var(--muted);
}

.cta-row { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); padding: 6px; }
.scroll-hint span { display: block; width: 1px; height: 46px; background: linear-gradient(var(--text), transparent); animation: scrollpulse 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollpulse { 0%, 100% { transform: scaleY(0.3); opacity: 0.3; } 50% { transform: scaleY(1); opacity: 1; } }

.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 24px 0;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: marquee 40s linear infinite;
    font-family: var(--serif);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 300;
    color: var(--muted);
    white-space: nowrap;
}
.marquee-track .cube { --s: 14px; flex: none; animation: cube-spin 6s linear infinite; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(84px, 13vh, 150px) var(--gutter); }
.section-head { margin-bottom: 52px; }
.section h2, .cta-band h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(34px, 5.2vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--text-hi);
}

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1400px; }
.product-wrap { display: flex; }
.product {
    --mx: 50%;
    --my: 0%;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 330px;
    padding: 24px 24px 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(165deg, var(--bg-raise), var(--bg-soft) 60%);
    box-shadow: 0 1px 0 rgba(241, 231, 214, 0.06) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    transition: border-color 0.4s, box-shadow 0.4s;
}
.product::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(360px circle at var(--mx) var(--my), rgba(176, 84, 84, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.product:hover { border-color: rgba(176, 84, 84, 0.45); box-shadow: 0 1px 0 rgba(241, 231, 214, 0.08) inset, 0 50px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(176, 84, 84, 0.15); }
.product:hover::before { opacity: 1; }
.p-top { display: flex; justify-content: space-between; align-items: center; }
.badge {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-hi);
    color: var(--faint);
}
.badge.live { color: var(--ok); border-color: rgba(143, 176, 138, 0.35); background: rgba(143, 176, 138, 0.08); }
.p-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-hi);
    color: var(--muted);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.product:hover .p-arrow { background: var(--accent); border-color: var(--accent); color: var(--text-hi); }
.p-icon { height: 92px; display: grid; place-items: center; perspective: 400px; margin: 18px 0 8px; }
.p-icon .cube { --s: 46px; }
.product:hover .p-icon .cube { animation-duration: 3s; }
.product h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.02em; color: var(--text-hi); margin-bottom: 10px; }
.product p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.p-url { margin-top: auto; padding-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--faint); }

.rows { list-style: none; border-top: 1px solid var(--line); }
.row-item {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr 1.3fr;
    gap: 24px;
    align-items: center;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}
.row-item::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 1px;
    width: 0;
    background: var(--accent-soft);
    transition: width 0.8s var(--ease);
}
.row-item:hover::before { width: 100%; }
.r-cube { display: grid; place-items: center; width: 56px; height: 56px; perspective: 300px; }
.r-cube .cube { --s: 26px; transition: transform 0.9s var(--ease); }
.row-item:hover .r-cube .cube { transform: rotateX(-24deg) rotateY(218deg); }
.row-item h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(28px, 3.6vw, 44px);
    letter-spacing: -0.02em;
    color: var(--text-hi);
    transition: transform 0.5s var(--ease);
}
.row-item:hover h3 { transform: translateX(10px); }
.row-item p { color: var(--muted); font-size: 15.5px; max-width: 440px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text h2 { margin-bottom: 22px; }
.split-text p { color: var(--muted); max-width: 460px; margin-bottom: 26px; }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.checks li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text);
}
.checks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-hi); font-weight: 500; border-bottom: 1px solid var(--accent-soft); padding-bottom: 4px; }
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

.split-visual { display: flex; justify-content: center; perspective: 1200px; }
.stage {
    position: relative;
    width: 100%;
    max-width: 440px;
    transform-style: preserve-3d;
    transform: rotateY(-16deg) rotateX(8deg);
    animation: stage-float 8s ease-in-out infinite;
}
@keyframes stage-float {
    0%, 100% { transform: rotateY(-16deg) rotateX(8deg) translateY(0); }
    50% { transform: rotateY(-10deg) rotateX(5deg) translateY(-10px); }
}
.terminal-back {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--accent), #4a2428);
    transform: translateZ(-60px) translate(28px, 26px);
    opacity: 0.7;
}
.terminal {
    position: relative;
    border: 1px solid var(--line-hi);
    border-radius: 16px;
    background: #151b20;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
    font-family: var(--mono);
    font-size: 13.5px;
}
.t-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); border-radius: 16px 16px 0 0; }
.t-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-hi); }
.t-bar i:first-child { background: var(--accent); }
.t-bar span { margin-left: 10px; font-size: 12px; color: var(--faint); }
.t-body { padding: 22px 20px 26px; display: grid; gap: 10px; }
.t-body p { display: flex; gap: 10px; color: var(--text); opacity: 0; transform: translateX(-8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.t-dim { color: var(--accent-soft); }
.t-ok { margin-left: auto; color: var(--ok); }
.t-final { color: var(--text-hi); }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--text-hi); animation: blink 1s steps(1) infinite; align-self: center; }
@keyframes blink { 50% { opacity: 0; } }
.split-visual.in .t-body p { opacity: 1; transform: none; }
.split-visual.in .t-body p:nth-child(1) { transition-delay: 0.3s; }
.split-visual.in .t-body p:nth-child(2) { transition-delay: 0.6s; }
.split-visual.in .t-body p:nth-child(3) { transition-delay: 0.9s; }
.split-visual.in .t-body p:nth-child(4) { transition-delay: 1.2s; }
.split-visual.in .t-body p:nth-child(5) { transition-delay: 1.6s; }
.t-chip {
    position: absolute;
    right: -18px;
    bottom: -18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--line-hi);
    background: var(--bg-raise);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
    font-size: 12.5px;
    color: var(--text-hi);
}

.cta-band {
    position: relative;
    margin: 40px var(--gutter) clamp(80px, 12vh, 140px);
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(140deg, #6e3030, var(--accent) 45%, #4a2428);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 50px 100px -40px rgba(125, 55, 55, 0.6);
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%);
}
.cta-cubes { position: absolute; inset: 0; z-index: -1; perspective: 800px; pointer-events: none; }
.cc { position: absolute; animation: bob 7s ease-in-out infinite; }
.cc-1 { right: 12%; top: 22%; }
.cc-1 .cube { --s: 110px; animation-duration: 22s; }
.cc-2 { right: 30%; top: 58%; animation-delay: -2s; }
.cc-2 .cube { --s: 54px; animation-duration: 16s; animation-direction: reverse; }
.cc-3 { right: 6%; top: 66%; animation-delay: -4s; }
.cc-3 .cube { --s: 36px; animation-duration: 12s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
.cta-band .cube i { border-color: rgba(241, 231, 214, 0.55); }
.cta-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 10vw, 110px) clamp(24px, 6vw, 80px); }
.cta-band .index { color: rgba(241, 231, 214, 0.7); }
.cta-band h2 em { color: var(--text); }
.cta-band p { margin-top: 20px; color: rgba(241, 231, 214, 0.75); max-width: 420px; }
.mail {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
    font-family: var(--serif);
    font-size: clamp(22px, 3.4vw, 40px);
    font-weight: 400;
    color: var(--text-hi);
    border-bottom: 1px solid rgba(241, 231, 214, 0.4);
    padding-bottom: 6px;
    transition: border-color 0.3s;
    word-break: break-all;
}
.mail span { transition: transform 0.4s var(--ease); }
.mail:hover { border-color: var(--text-hi); }
.mail:hover span { transform: translateX(8px); }

.footer { border-top: 1px solid var(--line); }
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 56px var(--gutter) 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.f-brand .muted { margin-top: 14px; max-width: 280px; }
.f-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.f-col a { color: var(--muted); transition: color 0.3s; width: fit-content; }
.f-col a:hover { color: var(--text-hi); }
.f-title { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.footer-base {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 22px var(--gutter) 30px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.footer-base a:hover { color: var(--text-hi); }

.error-page { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); overflow: hidden; isolation: isolate; }
.error-page .scene { z-index: -1; }
.error-page .scene.ready { opacity: 0.35; }
.error-inner .code { font-family: var(--serif); font-weight: 300; font-size: clamp(96px, 20vw, 200px); color: var(--accent-soft); display: block; line-height: 1; letter-spacing: -0.04em; text-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.error-inner .muted { margin: 10px 0 28px; }

@media (max-width: 1040px) {
    .products { grid-template-columns: repeat(2, 1fr); }
    .hero .scene.ready { opacity: 0.38; }
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed;
        inset: 0;
        z-index: -1;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 0 var(--gutter);
        background: rgba(26, 33, 39, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s var(--ease), visibility 0.4s;
    }
    .nav-links a { font-family: var(--serif); font-size: 40px; font-weight: 300; color: var(--text-hi); padding: 6px 0; border-radius: 0; }
    .nav-links a:hover { background: none; color: var(--accent-soft); }
    .nav.open .nav-links { opacity: 1; visibility: visible; }
    .nav.open { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .split { grid-template-columns: 1fr; gap: 56px; }
    .row-item { grid-template-columns: 48px 1fr; gap: 6px 16px; }
    .row-item p { grid-column: 2; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .f-brand { grid-column: 1 / -1; }
    .cc-1 { right: -6%; top: 6%; opacity: 0.5; }
    .cc-2, .cc-3 { display: none; }
    .t-chip { right: 8px; }
}

@media (max-width: 560px) {
    .products { grid-template-columns: 1fr; }
    .product { min-height: 0; }
    .title { font-size: 13vw; }
    .cta-band { border-radius: 20px; }
    .btn { flex: 1 1 auto; justify-content: center; }
    .stage { transform: rotateY(-8deg) rotateX(6deg); animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .title .line > span { transform: none; }
    .t-body p { opacity: 1; transform: none; }
}
