/* ══════════════════════════════════════════
   DESIGN TOKENS  (pulled from Figma spec)
══════════════════════════════════════════ */
:root {
    --color-black:   #000000;
    --color-white:   #ffffff;
    --color-yellow:  #ffcc00;
    --color-gray-bg: rgba(204, 204, 204, 0.2);

    --font: Helvetica, "Helvetica Neue", Arial, sans-serif;

    /* Figma canvas width */
    --page-w: 1440px;

    /* Section heights (exact from Figma) */
    --hero-h:    802px;
    --about-h:   802px;
    --process-h: 802px;
    --footer-h:  537px; /* Figma: 536.437 px, rounded up */
}

/* ══════════════════════════════════════════
   RESET
══════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    background: var(--color-white);
}

/* ══════════════════════════════════════════
   PAGE WRAPPER  — centres 1440 px canvas
   (hero sits outside this wrapper at full width)
══════════════════════════════════════════ */
.page {
    position: relative;
    width: var(--page-w);
    margin: 0 auto;
}

/* ══════════════════════════════════════════
   SECTION 1 — HERO  (full viewport width)
══════════════════════════════════════════ */
#hero {
    position: relative;
    width: 100%;              /* spans full viewport width */
    height: var(--hero-h);
    overflow: hidden;
}

/* Black base + textured overlay at 70 % opacity */
.hero__bg-color {
    position: absolute;
    inset: 0;
    background: var(--color-black);
}
.hero__bg-texture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    pointer-events: none;
}

/* Glitch / scan-line graphic: anchored to the right edge of the viewport */
.hero__glitch {
    position: absolute;
    right: 0;
    top: 0;
    width: 1359px;
    height: var(--hero-h);
    object-fit: fill;
    pointer-events: none;
}

/* Scroll indicator: bouncing chevron centred at bottom of hero */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    animation: hero-bounce 1.6s ease-in-out infinite;
    z-index: 1;
}

@keyframes hero-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0);    opacity: 0.8; }
    50%       { transform: translateX(-50%) translateY(8px);  opacity: 1;   }
}

/* Inner wrapper: centres logo + headline at max 1440 px */
.hero__inner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: var(--page-w);
    margin: 0 auto;
}

/* RM Logo — left 152 px, top 158 px, 73 × 42 px (relative to hero__inner) */
.hero__logo {
    position: absolute;
    left: 152px;
    top: 158px;
    width: 73px;
    height: 42px;
}
.hero__logo img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hero headline: left 150 px, top 270 px, 80 px / 87 px, bold, white */
.hero__headline {
    position: absolute;
    left: 150px;
    top: 270px;
    font-family: var(--font);
    font-weight: 700;
    font-style: normal;
    font-size: 80px;
    line-height: 87px;
    color: var(--color-white);
}

/* ══════════════════════════════════════════
   SECTION 2 — ABOUT ME  (800 → 1602 px)
   (Figma top: 800; as stacked section, offset coords by −800)
══════════════════════════════════════════ */
#about {
    position: relative;
    width: var(--page-w);
    height: var(--about-h);
    overflow: hidden;
}

/* Yellow base + texture at 15 % opacity */
.about__bg-color {
    position: absolute;
    inset: 0;
    background: var(--color-yellow);
}
.about__bg-texture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    pointer-events: none;
}

/* Self-portrait illustration: left 0, Figma top 845 → offset 45 px, 512 × 757 px */
.about__portrait {
    position: absolute;
    left: 0;
    top: 45px;
    width: 512px;
    height: 757px;
}
.about__portrait img {
    display: block;
    width: 100%;
    height: 100%;
}

/* "ABOUT ME" heading — 48 px / 32 px bold (positioned via about__text-col) */
.about__heading {
    width: 656px;
    font-family: var(--font);
    font-weight: 700;
    font-style: normal;
    font-size: 48px;
    line-height: 32px;
    color: var(--color-black);
}

/* Body copy — 24 px / 32 px regular (positioned via about__text-col) */
.about__body {
    width: 656px;
    font-family: var(--font);
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    line-height: 32px;
    color: var(--color-black);
}

/* ── Text column wrapper (desktop: absolute) ── */
.about__text-col {
    position: absolute;
    left: 632px;
    top: 141px;
    width: 656px;
    height: calc(802px - 141px);
}

/* ── Heading inside text col: top 0 (Figma 941-941=0 from col top) ── */
.about__heading {
    position: absolute;
    left: 0;
    top: 0;
}

/* ── Body inside text col: top 81px (1022-941=81) ── */
.about__body {
    position: absolute;
    left: 0;
    top: 81px;
}

/* ── CTA Button wrapper: top 522px (663-141=522 from col top) ────
   Desktop: absolute row using flex + gap to
   match original left-positions closely
──────────────────────────────────────────*/
.about__buttons {
    position: absolute;
    top: 522px;
    left: 0;
    width: 656px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
}

/* ── CTA Button base styles ───────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 10px 14px;
    background: #111111;
    border-radius: 10px 0 10px 0; /* top-left + bottom-right only */
    border: none;
    font-family: var(--font);
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    color: var(--color-white);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

/* Icon-only square buttons (LinkedIn, Behance) */
.btn--icon {
    width: 44px;
    padding: 0;
    flex-shrink: 0;
}
.btn:hover,
.btn:focus-visible {
    background: #888888;
    color: var(--color-white);
    outline: none;
}
.btn:active {
    background: #888888;
    color: var(--color-white);
}
.btn:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 2px;
}

/* ══════════════════════════════════════════
   SECTION 3 — DOUBLE DIAMOND PROCESS
   (Figma top: 1602; offset coords by −1602)
══════════════════════════════════════════ */
#process {
    position: relative;
    width: var(--page-w);
    height: var(--process-h);
    background: var(--color-gray-bg);
}

/* Diagram: left 153, Figma top 1686 → offset 84 px, 1135 × 634 px */
.process__diagram {
    position: absolute;
    left: 153px;
    top: 84px;
    width: 1135px;
    height: 634px;
}
.process__diagram img {
    display: block;
    width: 100%;
    height: 100%;
}

/* ══════════════════════════════════════════
   SECTION 4 — FOOTER
   (Figma top: 2404; offset coords by −2404)
══════════════════════════════════════════ */
#footer {
    position: relative;
    width: var(--page-w);
    height: var(--footer-h);
    overflow: hidden;
}

.footer__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    pointer-events: none;
}

/* RM Logo: left 152, Figma top 2428 → offset 24 px */
.footer__logo {
    position: absolute;
    left: 152px;
    top: 24px;
    width: 73px;
    height: 42px;
}
.footer__logo img {
    display: block;
    width: 100%;
    height: 100%;
}

/* © line: left 152, Figma top 2510 → offset 106 px, 16 px bold white */
.footer__copy {
    position: absolute;
    left: 152px;
    top: 106px;
    font-family: var(--font);
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    line-height: normal;
    color: var(--color-white);
}

/* Tagline: left 152, Figma top 2530 → offset 126 px */
.footer__tagline {
    position: absolute;
    left: 152px;
    top: 126px;
    font-family: var(--font);
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    line-height: normal;
    color: var(--color-white);
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET  (768 px – 1199 px)
══════════════════════════════════════════ */
@media (max-width: 1199px) {

    /* Page wrapper and sections — fluid width */
    .page,
    #about,
    #process,
    #footer {
        width: 100%;
    }

    /* ── HERO (tablet) ── */
    #hero {
        height: auto;
        min-height: 480px;
    }
    /* inner wrapper becomes a flex column with padding */
    .hero__inner {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 48px 48px 64px;
        min-height: 480px;
    }
    .hero__logo {
        position: relative;
        left: auto;
        top: auto;
        width: 73px;
        height: 42px;
        flex-shrink: 0;
    }
    .hero__headline {
        position: relative;
        left: auto;
        top: auto;
        font-size: 54px;
        line-height: 62px;
    }
    /* glitch stays right-anchored, scale back a touch on tablet */
    .hero__glitch {
        width: 65%;
        opacity: 0.6;
    }

    /* ── ABOUT (tablet) — side-by-side, fluid ── */
    #about {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        padding: 0;
        overflow: hidden;
    }
    .about__portrait {
        position: relative;
        left: auto;
        top: auto;
        width: 38%;
        height: auto;
        flex-shrink: 0;
        align-self: flex-end;
    }
    .about__portrait img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        object-position: bottom left;
    }
    .about__heading {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        font-size: 36px;
        line-height: 40px;
        margin-bottom: 20px;
    }
    .about__body {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 32px;
    }
    .about__buttons {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: auto;
        padding-top: 8px;
    }
    /* Text column becomes a flex column filling remaining width */
    .about__text-col {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 48px 48px 48px 40px;
        flex: 1 1 0;
        min-width: 0;
    }
    .btn {
        font-size: 18px;
        padding: 10px 16px;
        height: 40px;
    }

    /* ── PROCESS (tablet) ── */
    #process {
        height: auto;
        padding: 48px 40px;
    }
    .process__diagram {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 1135 / 634;
    }

    /* ── FOOTER (tablet) ── */
    #footer {
        height: auto;
        min-height: 200px;
        padding: 32px 48px 48px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .footer__copy,
    .footer__tagline {
        position: relative;
        left: auto;
        top: auto;
    }
    .footer__logo {
        display: none; /* logo hidden on tablet; copyright + tagline remain */
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE  (< 768 px)
══════════════════════════════════════════ */
@media (max-width: 767px) {

    /* ── HERO (mobile) ── */
    .hero__inner {
        min-height: 100svh;
        padding: 32px 24px 48px;
        gap: 20px;
    }
    .hero__logo {
        width: 56px;
        height: 32px;
    }
    .hero__headline {
        font-size: 36px;
        line-height: 42px;
    }
    .hero__glitch {
        width: 90%;
        opacity: 0.45;
    }

    /* ── ABOUT (mobile) — fully stacked, text first ── */
    #about {
        flex-direction: column;
    }
    .about__text-col {
        order: 1;
        padding: 32px 24px 40px;
    }
    .about__portrait {
        order: 2;
        width: 70%;
        max-width: 320px;
        align-self: flex-start;
    }
    .about__heading {
        font-size: 32px;
        line-height: 36px;
        margin-bottom: 16px;
    }
    .about__body {
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 28px;
    }
    .about__buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
    .btn {
        font-size: 16px;
        padding: 10px 14px;
        height: 40px;
    }

    /* ── PROCESS (mobile) — horizontal scroll ── */
    #process {
        padding: 32px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* smooth momentum scroll on iOS */
    }
    .process__diagram {
        width: 720px;         /* fixed readable width; scrolls on narrow screens */
        height: auto;
        aspect-ratio: 1135 / 634;
        margin: 0 24px;       /* breathing room on either side */
    }

    /* ── FOOTER (mobile) ── */
    #footer {
        padding: 13px 24px 40px;
        gap: 12px;
    }
    .footer__logo {
        display: none; /* logo hidden on mobile; copyright + tagline remain */
    }
    .footer__copy,
    .footer__tagline {
        font-size: 13px;
    }
}
