/* ================================================
   HOME-ONLY STYLES
   ================================================ */

/* ================================================
   PARALLAX BACKGROUND GEOMETRY
   ================================================ */
.parallax-geo {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.darkveil-canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.35;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 1080px;
}

.hero-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    opacity: 0;
}

.hero-label-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--text-muted);
    box-shadow: 0 0 calc(8px + (18px * var(--hero-velocity-glow))) rgba(105, 213, 255, calc(0.08 + (0.22 * var(--hero-velocity-glow))));
}

.hero-label-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(4rem, 11vw, 9rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.hero-name-line {
    display: block;
    color: rgba(59, 166, 245, 1);
}

.hero-roles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--text-secondary);
}

.hero-role {
    opacity: 0;
    transform: translateY(10px);
}

.hero-role-divider {
    opacity: 0;
    color: var(--accent-1);
}

.hero-description {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(15px);
}

.hero-metrics {
    margin: 1.4rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    max-width: 760px;
    opacity: 0;
    transform: translateY(10px);
}

.hero-metric {
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.hero-metric strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: #9fe6ff;
}

.hero-metric span {
    font-size: 0.76rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(10px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0;
}

.hero-scroll-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
    display: inline-flex;
    gap: 0.01em;
    font-family: var(--font-display);
    font-size: clamp(8rem, 25vw, 20rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    will-change: transform;
    filter: drop-shadow(0 0 calc(10px + (28px * var(--hero-velocity-glow))) rgba(105, 213, 255, calc(0.04 + (0.12 * var(--hero-velocity-glow)))));
}

.hero-bg-letter {
    display: inline-block;
}

/* ================================================
   APPS SECTION
   ================================================ */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    max-width: 960px;
    margin: 0 auto;
    gap: var(--space-md);
}

a.app-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.app-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: background var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth), clip-path 0.5s var(--ease-out-quart);
    opacity: 0;
    transform: translateY(25px) scale(0.97);
    clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px,
            100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px));
}

.app-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    clip-path: polygon(0 22px, 22px 0, calc(100% - 22px) 0, 100% 22px,
            100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px));
}

.app-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.app-card-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(105, 213, 255, 0.5);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #d4f3ff;
    background: rgba(4, 15, 26, 0.78);
    text-transform: uppercase;
}

.app-card-image-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth);
}

.app-card-status--live {
    border-color: rgba(74, 222, 128, 0.5);
    color: #bbf7d0;
    background: rgba(4, 26, 15, 0.78);
}

.app-card-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.app-card:hover .app-card-image-placeholder {
    transform: scale(1.05);
}

.app-card-content {
    padding: var(--space-md);
}

.app-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.app-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.app-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9de3ff;
    border: 1px solid rgba(105, 213, 255, 0.25);
    border-radius: 100px;
    transition: border-color var(--transition-micro), background var(--transition-micro);
}

.app-card:hover .tag {
    border-color: rgba(105, 213, 255, 0.45);
    background: rgba(105, 213, 255, 0.11);
}

.app-card--disabled {
    cursor: default;
}

.app-card--disabled:hover {
    background: var(--bg-card);
    border-color: var(--border-subtle);
    transform: translateY(0);
    box-shadow: none;
}

.app-card--disabled:hover .app-card-image-placeholder {
    transform: none;
}

.app-card--disabled:hover .tag {
    border-color: rgba(105, 213, 255, 0.25);
    background: transparent;
}

/* ================================================
   WEBSITES SECTION
   ================================================ */
.websites {
    padding-bottom: var(--space-lg);
}

.websites-gallery-wrapper {
    overflow: hidden;
    width: 100%;
}

.websites-gallery {
    display: flex;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    width: max-content;
}

.websites-pricing-link-wrap {
    margin-top: var(--space-md);
    display: flex;
    justify-content: center;
}

.websites-pricing-link {
    min-width: min(320px, 100%);
}

.website-card {
    display: block;
    flex-shrink: 0;
    width: min(500px, 80vw);
}

.website-card-browser {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), clip-path 0.5s var(--ease-out-quart);
    clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px,
            100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px));
}

.website-card:hover .website-card-browser {
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 35px var(--glow-cyan);
    clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px,
            100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
}

.browser-dots {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.browser-dots span:first-child {
    background: rgba(255, 99, 99, 0.4);
}

.browser-dots span:nth-child(2) {
    background: rgba(255, 199, 0, 0.4);
}

.browser-dots span:last-child {
    background: rgba(0, 199, 99, 0.4);
}

.website-card-screen {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform var(--transition-smooth);
}

.website-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

.website-card:hover .website-card-screen {
    transform: scale(1.02);
}

.website-card-info {
    padding: var(--space-sm) 0;
}

.website-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.website-card-result {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    line-height: 1.55;
}

.website-card-actions {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.7rem;
    flex-wrap: wrap;
}

.website-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.52rem 0.82rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1px solid var(--border-subtle);
}

.website-card-link--primary {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #06101a;
}

.website-card-link--secondary {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

/* ================================================
   WRITING SECTION
   ================================================ */
.writing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.writing-topics {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.writing-topic {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.writing-topic-header {
    max-width: 760px;
    opacity: 0;
    transform: translateY(12px);
}

.writing-topic-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.writing-topic-sub {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.writing-card {
    display: block;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: var(--space-md);
    cursor: pointer;
    overflow: hidden;
    transition: background var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth);
    opacity: 0;
    transform: translateY(25px) scale(0.97);
}

.writing-card--featured {
    grid-column: span 2;
    padding: var(--space-lg);
}

.writing-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.writing-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #88ddff;
    margin-bottom: var(--space-sm);
}

.writing-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.writing-card--featured .writing-card-title {
    font-size: 2rem;
}

.writing-card:hover .writing-card-title {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.writing-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.writing-card-meta {
    display: flex;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.writing-card-reveal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.writing-card-reveal span {
    font-weight: 600;
    color: #95e2ff;
    font-size: 0.9rem;
}

.writing-card:hover .writing-card-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   STARTUP TEASER SECTION
   ================================================ */
.startup-teaser-header {
    margin-bottom: var(--space-md);
}

.startup-teaser-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: var(--space-md);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.startup-teaser-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.startup-teaser-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.startup-cta {
    margin-top: var(--space-sm);
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* ================================================
   STORY SECTION
   ================================================ */
.story-player {
    max-width: 780px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.story-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: var(--space-md);
    padding: 14px 20px;
    border-radius: 60px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
}

.story-play-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.story-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 24px var(--glow-cyan);
}

.story-play-btn svg {
    width: 22px;
    height: 22px;
}

.story-icon-pause {
    display: none;
}

.story-player.is-playing .story-icon-play {
    display: none;
}

.story-player.is-playing .story-icon-pause {
    display: block;
}

.story-progress-wrap {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.story-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.25s linear;
}

.story-time {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.story-waveform {
    width: 100%;
    height: 48px;
    margin-top: var(--space-md);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.story-player.is-playing .story-waveform {
    opacity: 0.5;
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact {
    text-align: center;
    padding-bottom: var(--space-lg);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-md);
}

.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.contact-heading .section-title-line {
    display: block;
}

.contact-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(15px);
}

.contact-email {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    margin-bottom: var(--space-lg);
    transition: background var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
    opacity: 0;
    transform: translateY(15px);
}

.contact-email:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #05101a;
    transform: scale(1.04);
    box-shadow: 0 12px 35px var(--glow-cyan);
}

.contact-schedule-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1.15rem;
    border: 1px solid var(--border-hover);
    border-radius: 999px;
    margin-left: 0.7rem;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color var(--transition-micro), border-color var(--transition-micro), transform var(--transition-micro);
    opacity: 0;
    transform: translateY(15px);
}

.contact-schedule-btn:hover {
    color: var(--accent-1);
    border-color: rgba(105, 213, 255, 0.5);
    transform: translateY(-2px);
}

.logo-loop-wrap {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(15px);
    --loop-gap: 48px;
    --loop-icon: 22px;
}

.logo-loop-wrap::before,
.logo-loop-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 2;
}

.logo-loop-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.logo-loop-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.logo-loop {
    overflow: hidden;
}

.logo-loop__track {
    display: flex;
    width: max-content;
    will-change: transform;
    user-select: none;
    animation: logoloop-scroll 14s linear infinite;
}

.logo-loop__track:hover {
    animation-play-state: paused;
}

@keyframes logoloop-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.logo-loop__list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.logo-loop__item {
    flex: 0 0 auto;
    margin-right: var(--loop-gap);
}

.logo-loop__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        transform 0.35s var(--ease-spring),
        box-shadow var(--transition-fast);
}

.logo-loop__link svg {
    width: var(--loop-icon);
    height: var(--loop-icon);
    flex-shrink: 0;
}

.logo-loop__link:hover {
    color: var(--text-primary);
    border-color: var(--accent-1);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 6px 20px var(--glow-cyan);
}

/* ================================================
   RANGE SECTION
   ================================================ */
.range {
    position: relative;
}

.range-intro {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.range-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.range-subheadline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.range-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: var(--space-md);
}

.range-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.range-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(105, 213, 255, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.range-card:hover {
    transform: translateY(-8px);
    border-color: rgba(105, 213, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.range-card:hover::before {
    opacity: 1;
}

.range-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.range-card-icon svg {
    width: 48px;
    height: 48px;
    overflow: visible;
}

.range-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.range-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ================================================
   HOME CARD EFFECTS
   ================================================ */
.app-card,
.writing-card {
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    background: rgba(255, 255, 255, 0.04);
}

.website-card-browser {
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    background: rgba(255, 255, 255, 0.04);
}

@property --beam-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.app-card,
.writing-card,
.website-card-browser {
    --beam-angle: 0deg;
}

.app-card::before,
.writing-card::before,
.website-card-browser::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--beam-angle),
            transparent 0%,
            transparent 30%,
            rgba(105, 213, 255, 0.6) 38%,
            rgba(59, 166, 245, 0.8) 42%,
            rgba(105, 213, 255, 0.6) 46%,
            transparent 54%,
            transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-quart);
}

.app-card:hover::before,
.writing-card:hover::before,
.website-card:hover .website-card-browser::before {
    opacity: 1;
    animation: beamRotate 2.5s linear infinite;
}

.app-card--disabled:hover::before {
    opacity: 0;
    animation: none;
}

@keyframes beamRotate {
    to {
        --beam-angle: 360deg;
    }
}

.chromatic-target {
    --chroma-shift: 0px;
    --chroma-opacity: 0;
    position: relative;
}

.chromatic-target::before,
.chromatic-target::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: var(--chroma-opacity);
    will-change: opacity, transform;
}

.chromatic-target::before {
    box-shadow: var(--chroma-shift) 0 8px rgba(255, 0, 0, 0.35);
    transform: translateX(calc(var(--chroma-shift) * 0.5));
}

.chromatic-target::after {
    box-shadow: calc(var(--chroma-shift) * -1) 0 8px rgba(0, 200, 255, 0.35);
    transform: translateX(calc(var(--chroma-shift) * -0.5));
}

/* ================================================
   CURVED LOOP TICKER
   ================================================ */
.curved-loop-wrap {
    position: relative;
    z-index: 10;
    overflow: hidden;
    width: 100%;
    padding: 0.5rem 0;
    cursor: grab;
}

.curved-loop-wrap:active {
    cursor: grabbing;
}

.curved-loop-svg {
    display: block;
    width: 100%;
    aspect-ratio: 100 / 8;
    overflow: visible;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.curved-loop-svg text {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    fill: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ================================================
   TERMINAL EASTER EGG
   ================================================ */
.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 8, 14, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out-expo);
}

.terminal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.terminal-window {
    width: 90%;
    max-width: 700px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(105, 213, 255, 0.1);
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s var(--ease-out-expo);
}

.terminal-overlay.is-active .terminal-window {
    transform: translateY(0) scale(1);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #161b22;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-btn.close {
    background: #ff5f56;
}

.terminal-btn.minimize {
    background: #ffbd2e;
}

.terminal-btn.maximize {
    background: #27c93f;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.8rem;
    color: #8b949e;
    user-select: none;
}

.terminal-body {
    padding: 1.5rem;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    color: #c9d1d9;
    height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.terminal-line {
    margin-bottom: 0.2rem;
    line-height: 1.5;
    word-break: break-word;
}

.terminal-input-wrap {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.terminal-prompt {
    color: #7ee787;
    margin-right: 0.6rem;
    white-space: nowrap;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #c9d1d9;
    font-family: inherit;
    font-size: inherit;
    flex: 1;
    outline: none;
    caret-color: #c9d1d9;
}

@media (max-width: 768px) {
    .curved-loop-svg text {
        font-size: 1.4rem;
    }

    .curved-loop-svg {
        aspect-ratio: 100 / 10;
    }

    /* ── Range Cards — better mobile spacing ── */
    .range-intro {
        margin-bottom: var(--space-lg);
    }

    .range-card {
        padding: var(--space-md) var(--space-sm);
    }

    .range-card-title {
        font-size: 1.1rem;
    }

    .range-card-desc {
        font-size: 0.88rem;
    }

    /* ── Hero polish ── */
    .hero-label {
        margin-bottom: var(--space-md);
    }

    .hero-label-text {
        font-size: 0.65rem;
    }

    .hero-label-line {
        width: 28px;
    }

    .hero-scroll-indicator {
        bottom: var(--space-sm);
    }

    .hero-scroll-line {
        height: 40px;
    }

    .hero-bg-text {
        font-size: clamp(5rem, 22vw, 12rem);
    }

    /* ── Story player ── */
    .story-player {
        padding: 0 0.25rem;
    }

    .story-play-btn {
        width: 42px;
        height: 42px;
    }

    .story-play-btn svg {
        width: 18px;
        height: 18px;
    }

    /* ── Contact refinements ── */
    .contact-content {
        padding: var(--space-xl) var(--space-sm);
    }

    .contact-sub {
        margin-bottom: var(--space-md);
    }

    .logo-loop-wrap {
        --loop-gap: 32px;
        --loop-icon: 18px;
    }

    .logo-loop__link {
        font-size: 0.78rem;
        padding: 6px 14px;
    }

    /* ── Writing grid — single column on mobile ── */
    .writing-grid {
        grid-template-columns: 1fr;
    }

    .writing-card--featured {
        grid-column: span 1;
    }

    /* ── Writing section spacing ── */
    .writing-topic-title {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }

    .writing-topic-sub {
        font-size: 0.9rem;
    }

    .writing-card-category {
        font-size: 0.65rem;
    }

    .writing-card-meta {
        font-size: 0.75rem;
    }

    /* ── Startup teaser ── */
    .startup-teaser-card {
        padding: var(--space-sm);
        border-radius: 16px;
    }

    .startup-teaser-card p {
        font-size: 0.9rem;
    }

    /* ── App card image height ── */
    .app-card-image {
        height: 220px;
    }

    /* ── Website card info polish ── */
    .website-card-info {
        padding: 0.75rem 0;
    }

    .browser-dots {
        padding: 8px 12px;
    }

    .browser-dots span {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .curved-loop-svg text {
        font-size: 1.1rem;
    }

    .curved-loop-svg {
        aspect-ratio: 100 / 12;
    }

    .range-headline {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }

    .range-subheadline {
        font-size: 0.95rem;
    }

    .hero-name {
        margin-bottom: var(--space-sm);
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        max-width: 280px;
    }

    .hero-metric {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.55rem 0.75rem;
    }

    .app-card-image {
        height: 190px;
    }

    .app-card-title {
        font-size: 1.1rem;
    }

    .contact-heading {
        margin-bottom: var(--space-sm);
    }
}

/* ================================================
   VIEWPORT GLOW FRAMING
   Subtle inner vignette that simulates a display
   screen / immersive interface boundary.
   ================================================ */
.viewport-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    box-shadow:
        inset 0  60px 80px -40px rgba(105, 213, 255, 0.03),
        inset 0 -60px 80px -40px rgba(105, 213, 255, 0.02),
        inset  60px 0 80px -40px rgba(105, 213, 255, 0.015),
        inset -60px 0 80px -40px rgba(105, 213, 255, 0.015);
}

.viewport-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(105, 213, 255, 0.04);
    border-radius: 0;
    pointer-events: none;
}

/* Slightly stronger glow on corners */
.viewport-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120px 120px at 0% 0%, rgba(105, 213, 255, 0.04), transparent),
        radial-gradient(ellipse 120px 120px at 100% 0%, rgba(105, 213, 255, 0.04), transparent),
        radial-gradient(ellipse 120px 120px at 0% 100%, rgba(105, 213, 255, 0.03), transparent),
        radial-gradient(ellipse 120px 120px at 100% 100%, rgba(105, 213, 255, 0.03), transparent);
    pointer-events: none;
}

/* ================================================
   HUD-STYLE SECTION LABELING (bottom brackets)
   Top brackets are in styles.css (site-wide).
   Bottom bracket corners via .hud-label wrapper.
   ================================================ */
.hud-label {
    position: relative;
    display: inline-block;
}

.hud-label::before,
.hud-label::after {
    position: absolute;
    font-family: var(--font-body);
    font-weight: 400;
    color: rgba(105, 213, 255, 0.35);
    font-size: 0.85em;
}

.hud-label::before {
    content: '\2514';
    left: 0;
    bottom: -0.15em;
}

.hud-label::after {
    content: '\2518';
    right: 0;
    bottom: -0.15em;
}

/* ================================================
   CONTACT SECTION BACKGROUND WATERMARK
   Oversized, low-opacity branding text behind the
   contact/footer area.
   ================================================ */
.contact {
    position: relative;
    overflow: hidden;
}

.contact-watermark {
    position: absolute;
    bottom: -0.12em;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(6rem, 18vw, 16rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.018);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    letter-spacing: 0.04em;
    line-height: 1;
}

.contact-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .contact-watermark {
        font-size: clamp(4rem, 14vw, 8rem);
    }

    .viewport-glow {
        box-shadow:
            inset 0  40px 60px -30px rgba(105, 213, 255, 0.02),
            inset 0 -40px 60px -30px rgba(105, 213, 255, 0.015);
    }
}
