/* Homepage — technical, restrained and built around the existing site identity. */
.home-page {
    --home-line: rgba(255, 255, 255, 0.09);
    --home-muted: #929292;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    align-items: center;
    gap: clamp(28px, 5vw, 66px);
    min-height: 560px;
    padding: 74px 4px 88px;
    border-bottom: 1px solid #2c2c2c;
}

.hero-copy { position: relative; z-index: 1; }
.eyebrow, .section-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #a0a0a0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.17em;
}
.eyebrow-mark, .meta-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(255, 26, 26, 0.55);
}
.eyebrow-divider { color: var(--accent); }
.hero h1 {
    margin: 23px 0 17px;
    color: #f5f5f5;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4.2rem, 8.5vw, 7.1rem);
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 0.84;
}
.hero h1 span { color: var(--accent); }
.hero-description {
    max-width: 430px;
    margin: 25px 0 0;
    color: #b5b5b5;
    font-size: clamp(1.08rem, 1.7vw, 1.25rem);
    line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 46px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: #e51010; }
.button-primary span { font-size: 1rem; }
.button-quiet { border-color: #3a3a3a; color: #dedede; }
.button-quiet:hover { border-color: #7a3535; color: #fff; background: rgba(255,255,255,0.025); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 42px; color: #777; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta-dot { width: 5px; height: 5px; }

.hero-visual {
    position: relative;
    min-height: 370px;
    overflow: hidden;
    border: 1px solid #333;
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(255,255,255,0.035), transparent 48%), #191919;
    box-shadow: 0 24px 70px rgba(0,0,0,0.2);
}
.hero-visual::before, .hero-visual::after { position: absolute; content: ''; pointer-events: none; }
.hero-visual::before { inset: 0; opacity: 0.36; background-image: linear-gradient(var(--home-line) 1px, transparent 1px), linear-gradient(90deg, var(--home-line) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(135deg, black, transparent 85%); }
.hero-visual::after { width: 270px; height: 270px; top: 45px; left: 50%; border-radius: 50%; background: rgba(255, 26, 26, 0.08); filter: blur(70px); transform: translateX(-50%); }
.visual-topline, .visual-bottomline { position: absolute; z-index: 2; right: 17px; left: 17px; display: flex; justify-content: space-between; color: #777; font-size: 0.61rem; font-weight: 700; letter-spacing: 0.13em; }
.visual-topline { top: 16px; }
.visual-bottomline { bottom: 16px; font-size: 0.55rem; }
.visual-index { color: var(--accent-soft); }
.visual-grid { position: absolute; inset: 42px 12px 42px; }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; transform: translate(-50%, -50%) rotate(-28deg); }
.orbit-outer { width: min(74%, 280px); aspect-ratio: 1; }
.orbit-inner { width: min(53%, 200px); aspect-ratio: 1; border-color: rgba(255,26,26,0.4); transform: translate(-50%, -50%) rotate(35deg) scaleY(0.58); }
.orbit-outer::before, .orbit-outer::after { position: absolute; content: ''; background: rgba(255,255,255,0.14); }
.orbit-outer::before { top: 50%; left: -9%; width: 118%; height: 1px; }
.orbit-outer::after { top: -9%; left: 50%; width: 1px; height: 118%; }
.orbit-core { position: absolute; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 105px; height: 105px; border: 1px solid rgba(255,26,26,0.55); border-radius: 50%; background: radial-gradient(circle, rgba(255,26,26,0.12), rgba(20,20,20,0.94) 70%); box-shadow: 0 0 35px rgba(255,26,26,0.11), inset 0 0 20px rgba(255,26,26,0.06); transform: translate(-50%, -50%); }
.core-cross { color: var(--accent); font-size: 1.15rem; line-height: 1; }
.core-label { margin-top: 5px; color: #bcbcbc; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.12em; text-align: center; line-height: 1.35; }
.axis, .visual-coordinate { position: absolute; color: #777; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em; }
.axis-top { top: 8%; left: 50%; transform: translateX(-50%); }
.axis-right { top: 50%; right: 2%; }
.axis-bottom { bottom: 8%; left: 50%; transform: translateX(-50%); }
.coordinate-one { top: 20%; left: 7%; color: #a0a0a0; }
.coordinate-two { right: 7%; bottom: 20%; color: #a0a0a0; }
.visual-node { position: absolute; width: 6px; height: 6px; border: 1px solid var(--accent); border-radius: 50%; background: #171717; box-shadow: 0 0 12px rgba(255,26,26,0.5); }
.node-one { top: 27%; right: 21%; }.node-two { bottom: 25%; left: 19%; }.node-three { top: 50%; left: 9%; }
.scroll-cue { position: absolute; bottom: 21px; left: 4px; display: flex; align-items: center; gap: 11px; color: #777; font-size: 0.61rem; font-weight: 700; letter-spacing: 0.14em; text-decoration: none; }
.scroll-line { width: 25px; height: 1px; background: var(--accent); transition: width 180ms ease; }
.scroll-cue:hover .scroll-line { width: 38px; }

.home-section { padding: 76px 4px 26px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2, .contact-cta h2 { margin: 6px 0 0; color: #f4f4f4; font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.3rem, 4.2vw, 3.2rem); font-weight: 400; letter-spacing: 0.045em; line-height: 0.98; }
.section-heading > p { max-width: 285px; margin: 0 0 3px; color: var(--home-muted); font-size: 0.98rem; line-height: 1.45; }
.feature-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 15px; }
.feature-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #343434; border-radius: 7px; background: #1b1b1b; color: inherit; text-decoration: none; transition: border-color 180ms ease, transform 180ms ease, background 180ms ease; }
.feature-card:hover { transform: translateY(-3px); border-color: #713030; background: #202020; }
.feature-card-top { display: flex; justify-content: space-between; padding: 16px 17px 0; color: #858585; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; }
.feature-arrow { color: var(--accent-soft); font-size: 1rem; }
.feature-graphic { position: relative; display: grid; place-items: center; min-height: 205px; margin: 12px 14px 0; overflow: hidden; border: 1px solid rgba(255,255,255,0.055); border-radius: 4px; background-color: #171717; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 24px 24px; }
.server-rack { display: flex; flex-direction: column; gap: 8px; width: 145px; padding: 12px; border: 1px solid #494949; border-radius: 5px; background: linear-gradient(110deg, #303030, #1d1d1d); box-shadow: 0 18px 35px rgba(0,0,0,0.45); transform: perspective(400px) rotateY(-12deg) rotateX(4deg); }
.server-unit { position: relative; display: flex; align-items: center; gap: 6px; height: 29px; padding: 0 8px; border: 1px solid #494949; border-radius: 3px; background: linear-gradient(90deg, #292929, #202020); }
.server-unit i { width: 4px; height: 4px; border-radius: 50%; background: #777; }.server-unit i:first-child { background: var(--accent); box-shadow: 0 0 7px rgba(255,26,26,0.8); }.server-unit b { width: 23px; height: 3px; margin-left: auto; border-radius: 2px; background: #555; }
.graphic-label { position: absolute; color: #777; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1.5; }.label-left { top: 22px; left: 18px; }.label-right { right: 18px; bottom: 18px; color: var(--accent-soft); }
.code-graphic { min-height: 205px; }
.code-window { width: min(84%, 310px); overflow: hidden; border: 1px solid #414141; border-radius: 5px; background: #121212; box-shadow: 0 18px 35px rgba(0,0,0,0.35); transform: perspective(500px) rotateY(7deg) rotateX(2deg); }
.code-window-bar { display: flex; align-items: center; gap: 5px; height: 29px; padding: 0 10px; border-bottom: 1px solid #303030; background: #202020; }.code-window-bar > span { width: 6px; height: 6px; border-radius: 50%; background: #555; }.code-window-bar > span:first-child { background: #b94a4a; }.code-window-bar small { margin-left: auto; color: #777; font-size: 0.58rem; }
.code-lines { display: flex; flex-direction: column; gap: 9px; padding: 17px 13px 20px; color: #bcbcbc; font-family: Consolas, monospace; font-size: clamp(0.55rem, 1vw, 0.7rem); white-space: nowrap; }.code-lines span { display: block; }.code-lines i { display: inline-block; width: 25px; color: #555; font-style: normal; }.code-lines b { font-weight: 400; }.code-red { color: #ff5555; }.code-white { color: #ddd; }.code-cursor { display: inline-block; width: 6px; height: 12px; vertical-align: middle; background: var(--accent); opacity: 0.8; }
.code-label { right: 17px; bottom: 17px; color: #a0a0a0; }
.feature-card-copy { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 19px 18px 20px; }.feature-card-copy h3 { margin: 0 0 5px; color: #f4f4f4; font-size: 1.08rem; font-weight: 700; letter-spacing: 0.055em; }.feature-card-copy p { max-width: 330px; margin: 0; color: #999; font-size: 0.91rem; line-height: 1.4; }.feature-tag { flex: 0 0 auto; color: #ff6868; font-size: 0.57rem; font-weight: 700; letter-spacing: 0.1em; text-align: right; }
.projects-footer { display: flex; justify-content: space-between; gap: 16px; padding: 17px 2px 0; color: #777; font-size: 0.63rem; font-weight: 700; letter-spacing: 0.12em; }.projects-footer a, .text-link { color: #ff6262; text-decoration: none; transition: color 160ms ease; }.projects-footer a:hover, .text-link:hover { color: #fff; }.projects-footer a span, .text-link span { padding-left: 7px; }

.about-strip { position: relative; display: grid; grid-template-columns: 0.75fr 1.6fr 0.45fr; align-items: start; gap: 22px; margin: 86px 0 0; padding: 34px 30px 37px; overflow: hidden; border: 1px solid #333; border-radius: 7px; background: linear-gradient(110deg, rgba(255,26,26,0.055), transparent 48%), #1b1b1b; }
.about-strip-number { color: #ff6262; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; }.about-strip-number span { color: #777; }
.about-strip-copy { position: relative; z-index: 1; }.about-strip-copy h2 { margin: 0; color: #f4f4f4; font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.3rem, 4.5vw, 3.7rem); font-weight: 400; letter-spacing: 0.04em; line-height: 0.95; }.about-strip-copy h2 span { color: var(--accent); }.about-strip-copy p { max-width: 490px; margin: 17px 0 18px; color: #aaa; font-size: 1rem; line-height: 1.55; }.text-link { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; }
.about-strip-mark { align-self: center; justify-self: end; color: rgba(255,255,255,0.045); font-family: 'Bebas Neue', sans-serif; font-size: clamp(5rem, 10vw, 9rem); line-height: 1; }.about-strip-mark span { color: rgba(255,26,26,0.22); }
.contact-cta { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 76px 4px 63px; }.contact-cta h2 { margin-top: 10px; font-size: clamp(2.8rem, 5vw, 4.3rem); }.contact-cta .button { margin-bottom: 4px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 0; padding: 18px 4px 4px; border-top: 1px solid #2c2c2c; color: #777; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; }.site-footer b { color: var(--accent); font-size: 0.5rem; }.site-footer a { color: #999; text-decoration: none; transition: color 160ms ease; }.site-footer a:hover { color: var(--accent-soft); }

/* Gentle reveal: content remains visible if JavaScript is unavailable. */
.js-reveal .reveal { opacity: 0; transform: translateY(13px); transition: opacity 600ms ease, transform 600ms ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-visual.reveal.is-visible .orbit-inner { animation: orbit-settle 1.1s ease-out both; }
@keyframes orbit-settle { from { opacity: 0.35; transform: translate(-50%, -50%) rotate(12deg) scaleY(0.58); } to { opacity: 1; transform: translate(-50%, -50%) rotate(35deg) scaleY(0.58); } }

@media (max-width: 760px) {
    .hero { grid-template-columns: 1fr; gap: 38px; min-height: auto; padding: 64px 4px 75px; }
    .hero-visual { min-height: 330px; }
    .hero h1 { font-size: clamp(4.4rem, 15vw, 6.5rem); }
    .scroll-cue { bottom: 22px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-card-copy { align-items: start; flex-direction: column; }
    .feature-tag { text-align: left; }
    .about-strip { grid-template-columns: 1fr 2fr; padding: 27px 22px 30px; }
    .about-strip-mark { display: none; }
}
@media (max-width: 520px) {
    .hero { padding-top: 48px; gap: 28px; }
    .eyebrow { flex-wrap: wrap; font-size: 0.61rem; }
    .hero h1 { font-size: clamp(3.9rem, 17vw, 5.4rem); }
    .hero-description { font-size: 1.05rem; }
    .hero-meta { gap: 13px; margin-top: 30px; font-size: 0.58rem; }
    .hero-visual { min-height: 290px; }
    .home-section { padding-top: 58px; }
    .section-heading { align-items: start; flex-direction: column; gap: 10px; }
    .section-heading > p { max-width: 340px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-graphic { min-height: 190px; }
    .feature-card-copy { align-items: end; flex-direction: row; }
    .feature-tag { text-align: right; }
    .projects-footer { flex-direction: column; }
    .about-strip { grid-template-columns: 1fr; gap: 17px; margin-top: 62px; padding: 25px 20px 28px; }
    .about-strip-copy h2 { font-size: 2.8rem; }
    .contact-cta { align-items: start; flex-direction: column; padding: 60px 4px 48px; }
    .contact-cta h2 { font-size: 3.2rem; }
    .site-footer { flex-wrap: wrap; font-size: 0.58rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js-reveal .reveal { opacity: 1; transform: none; }
}
