/* ============================================================
   Core Pulse Digital — Stylesheet
   Dark Theme · Laptop CTA · Scroll Zoom · Responsive
   ============================================================ */

:root {
    --color-bg:           #0a0e17;
    --color-bg-alt:       #0f1623;
    --color-surface:      #151c2c;
    --color-surface-hover:#1a2338;
    --color-border:       #1e293b;
    --color-border-light: #5a6f8a;

    --color-accent:       #2fb98d;
    --color-accent-hover: #289d78;
    --color-accent-glow:  rgba(47, 185, 141, 0.15);
    --color-accent-soft:  rgba(47, 185, 141, 0.08);

    --color-text:         #f1f5f9;
    --color-text-muted:   #94a3b8;
    --color-text-dim:     #8390a6;

    --font-family:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --section-py:         clamp(4rem, 8vw, 7rem);
    --container-px:       clamp(1.25rem, 4vw, 2rem);
    --container-max:      1100px;

    --radius-sm:          8px;
    --radius-md:          12px;
    --radius-lg:          16px;

    --transition:         0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------- Reset & Base -------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-accent-hover); }

ul { list-style: none; }

/* -------------------- Utility -------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

.text-accent { color: var(--color-accent); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition),
                color var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-accent);
    color: #0a0e17;
    border-color: var(--color-accent);
}
.btn--primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #0a0e17;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 185, 141, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border-light);
}
.btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn--lg { padding: 0.85rem 2rem; font-size: 0.9375rem; }

/* Scroll/focus targets: focusable for the skip link, but no visible ring */
[tabindex="-1"]:focus { outline: none; }

/* Keyboard focus — visible on every interactive element */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}
.btn--primary:focus-visible { outline-color: var(--color-text); }

.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 50%;
    transform: translate(-50%, -150%);
    z-index: 1100;
    padding: 0.6rem 1.25rem;
    background: var(--color-accent);
    color: #0a0e17;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: transform var(--transition);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Visually hidden, still read by screen readers */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* -------------------- Section -------------------- */
.section {
    padding-block: var(--section-py);
    position: relative;
    scroll-margin-top: 5rem; /* fixed navbar clearance for #anchor loads */
}
.section--alt { background-color: var(--color-bg-alt); }

.section__header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: 3rem;
}

.section__tagline {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    padding: 0.35rem 1rem;
    border: 1px solid var(--color-accent);
    border-radius: 100px;
    background: var(--color-accent-soft);
}

.section__title {
    text-wrap: balance;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.js .reveal-up,
.js .reveal-left,
.js .reveal-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal-up    { transform: translateY(50px); }
.js .reveal-left  { transform: translateX(-60px); }
.js .reveal-right { transform: translateX(40px); }

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: padding var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}
.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity var(--transition);
}
.navbar.scrolled {
    border-bottom-color: var(--color-border);
    padding: 0.65rem 0;
}
.navbar.scrolled::before { opacity: 1; }
html:not(.js) .navbar::before { opacity: 1; }

.navbar__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar__logo {
    position: relative;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.navbar__logo img {
    height: 50px;
    width: auto;
    transition: height var(--transition);
}
.navbar.scrolled .navbar__logo img { height: 42px; }

/* Push nav + CTA to the right as one compact group */
.navbar__nav {
    margin-left: auto;
}

.navbar__list { display: flex; align-items: center; gap: 0.25rem; }
.navbar__menu-cta { display: none; } /* desktop uses .navbar__cta outside the menu */

.navbar__link {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}
.navbar__link:hover, .navbar__link.active { color: var(--color-text); }
.navbar__link.active { color: var(--color-accent); }

/* Subtle separator between links and CTA */
.navbar__cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
    margin-left: 0.75rem;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}
.navbar__toggle-bar {
    width: 24px; height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO — Laptop with CTA on screen + scroll zoom
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
}
/* Scroll zone = height - 100vh; .about's negative margin matches it. Both are
   gated on .js: without scripts the hero stays one screen tall and About
   simply follows it. */
.js .hero { height: 145vh; }

.hero__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5.25rem;    /* fixed navbar */
    padding-bottom: 6.75rem; /* scroll hint (2rem bottom + ~68px tall) */
}

.hero__bg-pulse {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(47, 185, 141, 0.09) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 80% 20%, rgba(30, 58, 138, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

/* -------------------- Laptop frame -------------------- */
.hero__laptop {
    position: relative;
    z-index: 5;
    will-change: transform;
    filter: drop-shadow(0 24px 45px rgba(0, 0, 0, calc(0.85 * var(--frame-fade, 1))));
}

.laptop__bezel {
    position: relative;
    background: #161d2e;
    border: 3px solid #2a3a52;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 18px 18px 14px;
    will-change: opacity;
}

.laptop__camera {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b4a63;
}

/* Screen — large enough to hold CTA text */
.laptop__screen {
    position: relative;
    /* last term keeps bezel + base + navbar + hint inside short windows */
    width: min(80vw, 920px, max(34rem, calc((100vh - 16.5rem) * 1.6)));
    aspect-ratio: 16 / 10;
    background: var(--color-bg-alt);
    border-radius: 4px;
    overflow: hidden;
}

/* Outline + glow live on a pseudo-element so JS can fade them with the frame */
.laptop__screen::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 140px rgba(47, 185, 141, 0.12);
    opacity: var(--frame-fade, 1);
}

/* --- Window titlebar with macOS dots --- */
.laptop__titlebar {
    position: relative;
    z-index: 3;
    will-change: opacity;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #0b111c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.laptop__window-dots {
    display: flex;
    gap: 6px;
}

.laptop__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.laptop__dot--close    { background: #ff5f57; }
.laptop__dot--minimize { background: #febc2e; }
.laptop__dot--maximize { background: #28c840; }

.laptop__titlebar-text {
    flex: 1;
    text-align: center;
    font-size: 10px;
    color: var(--color-text-dim);
    letter-spacing: 0.03em;
    padding-right: 40px; /* offset for dots so text looks centered */
}

/* Subtle glow at top of screen */
.laptop__screen-glow {
    position: absolute;
    top: 0;
    z-index: 4;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 185, 141, 0.4), transparent);
}

.laptop__base {
    height: 14px;
    background: linear-gradient(to bottom, #1f2a40, #151c2c);
    border: 3px solid #2a3a52;
    border-top: 1px solid #3b4a63;
    border-radius: 0 0 8px 8px;
    position: relative;
    will-change: opacity;
}

.laptop__notch {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: #2a3a52;
    border-radius: 0 0 4px 4px;
}

/* -------------------- CTA content on screen -------------------- */
.hero__cta {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    z-index: 2;
    will-change: opacity;
}

.hero__tagline {
    display: inline-block;
    font-size: clamp(0.625rem, 1.2vw, 0.8125rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    padding: 0.3rem 1rem;
    border: 1px solid rgba(47, 185, 141, 0.3);
    border-radius: 100px;
    background: var(--color-accent-soft);
}

.hero__title {
    font-size: clamp(1.25rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: clamp(0.75rem, 1.4vw, 1.0625rem);
    color: var(--color-text-muted);
    max-width: 480px;
    margin-inline: auto;
    margin-bottom: clamp(1rem, 2.5vw, 2rem);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 769px) and (max-height: 760px) {
    .hero__cta { padding: 1.25rem; }
    .hero__tagline { margin-bottom: 0.6rem; }
    .hero__title { font-size: clamp(1.25rem, 2.6vw, 2rem); margin-bottom: 0.6rem; }
    .hero__subtitle { font-size: 0.875rem; line-height: 1.5; margin-bottom: 1rem; }
}

/* Scroll indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-dim);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 10;
    will-change: opacity;
}

.hero__scroll-indicator.is-hidden { visibility: hidden; }

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50%       { opacity: 1;   transform: scaleY(1); }
}

/* ============================================================
   PULSE LINE — traveling animation (About section)
   ============================================================ */
/* About rides up over the hero as the laptop zooms. The overlap equals the
   hero's scroll zone (145vh - 100vh, 142vh - 100vh on phones): the largest
   value that still keeps About below the fold at rest. The copy's fade is
   driven by the clearance to this edge — see updateHeroScroll (main.js). */
.js .about { margin-top: -45vh; }

.about {
    padding-top: 0;
    z-index: 1;
    overflow-x: clip; /* .reveal-right cards start off to the right */
}
@supports not (overflow-x: clip) {
    .about { overflow-x: hidden; } /* iOS Safari < 16 */
}

.pulse-line {
    margin-bottom: 0.25rem;
    position: relative;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.pulse-line.animate {
    opacity: 1;
}
.pulse-line svg {
    width: 100%;
    height: 36px;
}

.pulse-line__path {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 280 1200;
    animation: pulse-travel 2.3s linear infinite;
    animation-play-state: paused;
}

.pulse-line__glow {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 280 1200;
    opacity: 0.2;
    filter: blur(8px);
    animation: pulse-travel 2.3s linear infinite;
    animation-play-state: paused;
}

.pulse-line.animate .pulse-line__path,
.pulse-line.animate .pulse-line__glow {
    animation-play-state: running;
}

@keyframes pulse-travel {
    from { stroke-dashoffset: 1480; }
    to   { stroke-dashoffset: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.about__text h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about__text p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about__cta {
    margin-top: 0.5rem;
    white-space: normal; /* long brand label must wrap, not widen the grid column */
    text-align: center;
    max-width: 100%;
}

.about__value-card:nth-child(2) { transition-delay: 0.15s; }
.about__value-card:nth-child(3) { transition-delay: 0.3s; }
.about__value-card.revealed:hover,
.about__value-card.revealed:focus-within { transition-delay: 0s; }

.about__values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about__value-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}
.about__value-card:hover {
    border-color: var(--color-accent);
    background: var(--color-surface-hover);
    transform: translateX(6px);
}

.about__value-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border: 1px solid rgba(47, 185, 141, 0.15);
}

.about__value-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.about__value-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__cta {
    display: flex;
    justify-content: center;
    margin: -1rem 0 2.5rem;
}

.contact__info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (min-width: 1025px) {
    .contact__info-card--wide {
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.contact__info-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}
.contact__info-card:hover {
    border-color: var(--color-accent);
    background: var(--color-surface-hover);
    transform: translateY(-3px);
}

.contact__info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border: 1px solid rgba(47, 185, 141, 0.15);
}

.contact__info-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.contact__info-card p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; }
.contact__info-card a {
    display: inline-block;
    padding-block: 0.35rem;
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 3.5rem 0 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
}
.footer__logo { width: 160px; height: auto; margin-bottom: 1rem; }
.footer__text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 280px;
}
.footer__heading {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer__links li { margin-bottom: 0.15rem; }
.footer__links a { display: inline-block; padding-block: 0.4rem; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__links a,
.footer__links li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-accent); }

.footer__bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.footer__bottom p { font-size: 0.875rem; color: var(--color-text-dim); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .about__content { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .about__text { max-width: 65ch; }
    .contact__info { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar__nav, .navbar__cta { display: none; }
    .navbar__toggle { display: flex; }

    .navbar__nav.open {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .navbar__nav.open .navbar__list {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .navbar__nav.open .navbar__link {
        display: block;
        font-size: 1.5rem;
        padding: 0.75rem 2rem;
    }
    .navbar__menu-cta { display: none; margin-top: 1rem; }
    .navbar__nav.open .navbar__menu-cta { display: block; }
    .navbar__menu-cta .btn { padding: 0.85rem 2rem; font-size: 1rem; }

    .navbar__toggle { margin-left: auto; min-width: 44px; min-height: 44px; align-items: center; }

    .navbar__toggle.open .navbar__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .navbar__toggle.open .navbar__toggle-bar:nth-child(2) { opacity: 0; }
    .navbar__toggle.open .navbar__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .js .hero { height: 142vh; }
    .js .about { margin-top: -42vh; } /* == the scroll zone */
    .hero__sticky { padding-top: 5.25rem; padding-bottom: 2.5rem; }
    .hero__scroll-indicator { display: none; }

    /* 16:10 is only a floor here — the screen grows if the CTA needs more room */
    .laptop__screen {
        width: 90vw;
        aspect-ratio: auto;
        min-height: calc(90vw * 10 / 16);
        display: flex;
        flex-direction: column;
    }
    .hero__cta {
        position: relative;
        inset: auto;
        flex: 1;
        padding: 1.5rem 1rem 1.75rem;
    }
    .laptop__bezel { padding: 12px 12px 10px; border-radius: 12px 12px 0 0; }

    .laptop__titlebar { padding: 6px 10px; }
    .laptop__dot { width: 8px; height: 8px; }
    .laptop__titlebar-text { font-size: 8px; padding-right: 30px; }

    .hero__tagline { font-size: 0.75rem; padding: 0.3rem 0.85rem; margin-bottom: 0.85rem; }
    .hero__title { font-size: clamp(1.375rem, 6.5vw, 2.25rem); }
    .hero__subtitle { font-size: 0.9375rem; margin-bottom: 1.25rem; }
    .hero__actions .btn { padding: 0.7rem 1.25rem; font-size: 0.9375rem; min-height: 44px; }

    .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) and (min-height: 401px) {
    .hero__actions { flex-direction: column; width: 100%; }
    .hero__actions .btn { width: 100%; }
}

@media (max-width: 480px) {

    .hero__actions .btn, .contact__cta .btn { white-space: normal; }
    .laptop__screen { width: 94vw; min-height: calc(94vw * 10 / 16); }
    .about__cta { width: 100%; }
    .laptop__bezel { padding: 10px 10px 8px; border-radius: 10px 10px 0 0; }
    .laptop__dot { width: 7px; height: 7px; }
    .laptop__window-dots { gap: 5px; }
    .laptop__titlebar-text { display: none; }
}

/* ============================================================
   SHORT VIEWPORTS — landscape phones and small laptop windows
   ============================================================ */
@media (max-height: 620px) {
    .hero__sticky { padding-top: 5.25rem; padding-bottom: 1.5rem; }
    .hero__scroll-indicator { display: none; }

    /* let the CTA set the height instead of a fixed 16:10 box */
    .laptop__screen {
        width: min(92vw, 760px);
        aspect-ratio: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .hero__cta {
        position: relative;
        inset: auto;
        flex: 1;
        padding: 1.1rem 1.25rem 1.35rem;
    }
    .hero__tagline { font-size: 0.625rem; padding: 0.2rem 0.7rem; margin-bottom: 0.5rem; }
    .hero__title { font-size: clamp(1.125rem, 3.4vw, 1.625rem); margin-bottom: 0.5rem; }
    .hero__subtitle {
        font-size: 0.8125rem;
        line-height: 1.5;
        margin-bottom: 0.9rem;
        max-width: 440px;
    }
    .hero__actions .btn { padding: 0.55rem 1.1rem; font-size: 0.8125rem; min-height: 44px; }
    .laptop__bezel { padding: 10px 10px 8px; border-radius: 12px 12px 0 0; }
    .laptop__titlebar { padding: 5px 10px; }
}

/* Very short — phones held sideways */
@media (max-height: 450px) {
    .navbar { padding: 0.5rem 0; }
    .navbar__logo img { height: 36px; }
    .navbar.scrolled .navbar__logo img { height: 32px; }
    .hero__sticky { padding-top: 3.75rem; padding-bottom: 1rem; }
    .laptop__titlebar { display: none; }
    .laptop__bezel { padding: 8px 8px 6px; }
    .hero__cta { padding: 0.85rem 1.25rem 1rem; }
    .hero__tagline { margin-bottom: 0.35rem; }
    .hero__title { margin-bottom: 0.4rem; }
    .hero__subtitle { margin-bottom: 0.65rem; line-height: 1.45; }
    .hero__actions .btn { min-height: 44px; padding: 0.45rem 1rem; }
}

/* Narrow portrait phones that are also short (e.g. 320x568) */
@media (max-width: 480px) and (max-height: 620px) {
    .laptop__screen { width: 94vw; }
    .hero__title { font-size: clamp(1.125rem, 5.5vw, 1.5rem); }
    .hero__subtitle { font-size: 0.8125rem; }
    .hero__actions { gap: 0.5rem; }
}

/* ============================================================
   REDUCED MOTION — honour the OS setting
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* no scroll-zoom: the hero is a single static screen */
    .js .hero { height: 100vh; }
    .hero__laptop { transform: none !important; }
    .hero__cta { opacity: 1 !important; }
    .js .about { margin-top: 0; }
    .about { padding-top: var(--section-py); }
    .hero__scroll-indicator { display: none; }

    .js .reveal-up,
    .js .reveal-left,
    .js .reveal-right { opacity: 1; transform: none; }

    .pulse-line { opacity: 1; }
    .pulse-line__path,
    .pulse-line__glow { animation: none !important; stroke-dasharray: none; }
}
