/* ==========================================================================
   GODZLY FREELANCING — EDITORIAL LAYER
   --------------------------------------------------------------------------
   Loaded after style.css. style.css remains the structural/prototype layer
   (layout primitives, modal behaviour, app shells); this file is the art
   direction that ships to visitors:

     • a warm paper foundation with ink-black type and forest/emerald accents
     • Fraunces for display, Inter for interface, monospace for metadata
     • hairlines, numbered chapters and generous editorial whitespace
     • deliberately squared controls — pills are reserved for small statuses
     • one motion vocabulary, and no decorative element that competes with
       content or with the symbiote buttons

   Nothing here changes a URL, an id, a form field, a click handler or a
   Firebase call. Every rule below styles markup that already existed.
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
    /* Editorial palette. The emerald is Godzly's own hue, deepened for paper. */
    --ed-paper: #F7F7F2;
    --ed-paper-warm: #F2F2EA;
    --ed-paper-deep: #EAECE2;
    --ed-white: #FFFEFB;
    --ed-ink: #141A17;
    --ed-ink-soft: #2C3732;
    --ed-muted: #5F6A63;
    --ed-muted-soft: #838C85;
    --ed-line: rgba(20, 26, 23, 0.14);
    --ed-line-soft: rgba(20, 26, 23, 0.075);
    --ed-line-strong: rgba(20, 26, 23, 0.30);
    --ed-forest: #064E3B;
    --ed-forest-deep: #04382A;
    --ed-emerald: #087D59;
    --ed-emerald-deep: #056246;
    --ed-emerald-bright: #0B9C70;
    --ed-sage: #E1ECE5;
    --ed-sage-soft: rgba(225, 236, 229, 0.55);
    --ed-sage-line: rgba(225, 236, 229, 0.22);
    --ed-danger: #A3261B;
    --ed-warning: #7A5200;

    /* Type */
    --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;

    /* Geometry — restrained radii; this is a printed-matter language. */
    --r-xs: 2px;
    --r-sm: 5px;
    --r-md: 8px;
    --r-lg: 12px;

    /* Legacy tokens remapped so every existing component inherits the new
       palette without being rewritten. */
    --bg: var(--ed-paper);
    --bg-deep: var(--ed-paper);
    --bg-alt: var(--ed-paper-warm);
    --surface: var(--ed-white);
    --surface-strong: var(--ed-white);
    --surface-soft: rgba(255, 254, 251, 0.66);
    --surface-hover: var(--ed-paper-warm);
    --border: var(--ed-line);
    --border-subtle: var(--ed-line-soft);
    --text-main: var(--ed-ink);
    --text-light: var(--ed-ink);
    --text-muted: var(--ed-muted);
    --accent: var(--ed-emerald);
    --accent-hover: var(--ed-emerald-deep);
    --accent-ink: var(--ed-emerald-deep);
    --accent-soft: rgba(8, 125, 89, 0.09);
    --accent-edge: rgba(8, 125, 89, 0.24);
    --accent-secondary: var(--ed-muted-soft);
    --success: var(--ed-emerald-deep);
    --danger: var(--ed-danger);
    --warning: var(--ed-warning);
    --radius-sm: var(--r-sm);
    --radius-md: var(--r-md);
    --radius-lg: var(--r-lg);
    --font-heading: var(--font-display);
    --font-body: var(--font-sans);
    --shadow-sm: 0 1px 2px rgba(20, 26, 23, 0.04);
    --shadow-md: 0 10px 30px -20px rgba(20, 26, 23, 0.35);
    --shadow-lg: 0 30px 70px -40px rgba(20, 26, 23, 0.45);
    --shadow-glow: none;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fast: 160ms;
    --smooth: 280ms;
    --transition-fast: var(--fast) var(--ease);
    --transition-smooth: var(--smooth) var(--ease);
    --neon-cyan: var(--ed-emerald-deep);
    --neon-purple: var(--ed-emerald-deep);
    --neon-white: var(--ed-ink);
    --glass-bg: var(--ed-white);
    --glass-border: var(--ed-line);
    --glass-hover: var(--ed-paper-warm);
    --section-y: clamp(5.5rem, 9vw, 8.5rem);
    --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ==========================================================================
   2. FOUNDATION
   ========================================================================== */
html {
    background: var(--ed-paper);
    scroll-padding-top: 7rem;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(1100px 620px at 86% -12%, rgba(8, 125, 89, 0.055), transparent 62%),
        radial-gradient(900px 520px at -8% 8%, rgba(6, 78, 59, 0.035), transparent 60%),
        linear-gradient(180deg, #F9F9F4 0%, var(--ed-paper) 34%, #F5F5EE 100%);
    color: var(--ed-ink);
    line-height: 1.65;
    overflow-x: hidden;
}

/* The old fixed glass atmosphere belongs to the previous art direction. */
.atmosphere {
    display: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 430;
    letter-spacing: -0.022em;
    line-height: 1.08;
    color: inherit;
    font-optical-sizing: auto;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a {
    color: inherit;
}

::selection {
    background: var(--ed-sage);
    color: var(--ed-forest);
}

:focus-visible {
    outline: 2px solid var(--ed-emerald-deep);
    outline-offset: 3px;
    border-radius: 1px;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Legacy emphasis spans become editorial italic accents. */
.neon-text,
.neon-text-cyan,
.neon-text-purple {
    color: var(--ed-emerald-deep);
    font-style: italic;
    font-weight: 360;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 2.9rem;
    padding: 0.78rem 1.4rem;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 560;
    letter-spacing: 0.005em;
    line-height: 1;
    white-space: nowrap;
    transition:
        background-color var(--smooth) var(--ease),
        border-color var(--smooth) var(--ease),
        color var(--smooth) var(--ease),
        transform var(--smooth) var(--ease);
}

.btn i {
    font-size: 1em;
    transition: transform var(--smooth) var(--ease);
}

.btn:hover i.ph-arrow-right,
.btn:hover i.ph-arrow-up-right {
    transform: translate(2px, -2px);
}

.btn-primary {
    background: var(--ed-emerald);
    border-color: var(--ed-emerald);
    color: #FFFFFF;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--ed-emerald-deep);
    border-color: var(--ed-emerald-deep);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: none;
    filter: none;
}

.btn-primary:active {
    background: var(--ed-forest);
    transform: translateY(0);
}

.btn-secondary,
.glass-btn {
    background: transparent;
    border-color: var(--ed-line-strong);
    color: var(--ed-ink);
    box-shadow: none;
}

.btn-secondary:hover,
.glass-btn:hover {
    background: var(--ed-ink);
    border-color: var(--ed-ink);
    color: var(--ed-white);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-nav {
    min-height: 2.5rem;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
}

.btn-sm {
    min-height: 2.25rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.76rem;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-height: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    color: var(--ed-muted);
}

.btn-icon:hover {
    background: var(--ed-sage-soft);
    border-color: var(--ed-line-soft);
    color: var(--ed-ink);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn:focus-visible {
    outline-offset: 3px;
}

/* The symbiote host creates a small stacking context so the decorative SVG
   can sit behind the button surface without intercepting the click target. */
.symbiote-host {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    z-index: 0;
    isolation: isolate;
}

.symbiote-host > .btn {
    position: relative;
    z-index: 2;
    touch-action: manipulation;
}

.symbiote-host > .symbiote-tendrils {
    z-index: 1;
}

/* The symbiote material. Idle keeps the editorial emerald and warm-white
   buttons exactly as they were. On hover:
     • Hire Me (primary): develops a glossy near-black symbiote depth with
       subtle emerald radial undertone, preserving its emerald CTA identity.
     • View Work (secondary): preserves its light button identity with a crisp,
       warm-white surface and refined shadow while sleek dark tendrils emerge. */
.symbiote-host > .btn-symbiote {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.symbiote-host > .btn-primary.btn-symbiote::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(110% 120% at 50% 138%, rgba(8, 125, 89, 0.42), rgba(8, 125, 89, 0) 64%),
        radial-gradient(120% 160% at 16% -34%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 48%),
        linear-gradient(180deg, #1b2420 0%, #0a100d 54%, #030706 100%);
    transition: opacity 0.4s var(--ease);
}

.btn-primary.btn-symbiote:focus-visible::before {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary.btn-symbiote:hover::before {
        opacity: 1;
    }

    .btn-symbiote.btn-primary:hover {
        color: #F2F7F3;
        border-color: rgba(8, 125, 89, 0.65);
        transform: translateY(-1px);
        box-shadow:
            0 16px 34px -20px rgba(3, 10, 7, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    .btn-symbiote.btn-secondary:hover {
        color: #101814;
        background: #FFFFFF;
        border-color: rgba(16, 24, 20, 0.22);
        transform: translateY(-1px);
        box-shadow:
            0 14px 30px -18px rgba(16, 24, 20, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}

.btn-symbiote.btn-primary:focus-visible {
    color: #F2F7F3;
    border-color: rgba(8, 125, 89, 0.65);
}

.btn-symbiote.btn-secondary:focus-visible {
    color: #101814;
    background: #FFFFFF;
    border-color: rgba(16, 24, 20, 0.3);
}

.btn-symbiote.is-symbiote-pressed {
    transform: translateY(1px) scale(0.995);
}

@media (prefers-reduced-motion: reduce) {
    .symbiote-host > .btn-symbiote::before {
        transition: none;
    }
}

/* ==========================================================================
   4. MASTHEAD / NAVIGATION
   ========================================================================== */
.glass-nav {
    position: fixed;
    inset: 0 0 auto 0;
    left: 0;
    transform: none;
    width: 100%;
    z-index: 1000;
    padding: 0.9rem var(--gutter);
    transition: background-color var(--smooth) var(--ease), padding var(--smooth) var(--ease);
}

.nav-container,
.glass-nav .nav-container {
    max-width: 1240px;
    margin-inline: auto;
    padding: 0.55rem 0.35rem 0.55rem 0.15rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition:
        background-color var(--smooth) var(--ease),
        border-color var(--smooth) var(--ease),
        padding var(--smooth) var(--ease);
}

.glass-nav.scrolled {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    background: rgba(247, 247, 242, 0.88);
    border-bottom: 1px solid var(--ed-line-soft);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.glass-nav.scrolled .nav-container,
.glass-nav.scrolled .nav-container {
    background: transparent;
    border-color: transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 480;
    letter-spacing: -0.03em;
    color: var(--ed-ink);
    line-height: 1;
}

.logo::before {
    content: '';
    align-self: center;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ed-emerald);
    flex: 0 0 auto;
}

.logo .neon-text {
    font-style: normal;
    color: var(--ed-ink);
    font-weight: 560;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin-left: auto;
}

.nav-links a:not(.btn):not(.auth-link),
.nav-links button:not(.btn) {
    position: relative;
    padding: 0.55rem 0.72rem;
    border-radius: 0;
    font-size: 0.79rem;
    font-weight: 450;
    letter-spacing: 0.015em;
    color: var(--ed-muted);
    background: transparent;
    transition: color var(--fast) var(--ease);
}

.nav-links a:not(.btn):not(.auth-link)::after {
    content: '';
    position: absolute;
    left: 0.72rem;
    right: 0.72rem;
    bottom: 0.3rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--smooth) var(--ease);
}

.nav-links a:not(.btn):not(.auth-link):hover {
    background: transparent;
    color: var(--ed-ink);
}

.nav-links a:not(.btn):not(.auth-link):hover::after,
.nav-links a.nav-link-active::after {
    transform: scaleX(1);
}

.nav-links a.nav-link-active {
    color: var(--ed-ink);
}

.nav-links .btn-nav {
    margin-left: 0.75rem;
    color: #FFFFFF;
    background: var(--ed-ink);
    border-color: var(--ed-ink);
}

.nav-links .btn-nav:hover {
    background: var(--ed-emerald);
    border-color: var(--ed-emerald);
    transform: none;
}

.nav-links #nav-login-btn {
    min-height: 2.5rem;
    padding-inline: 0.9rem;
    border: 1px solid transparent;
    color: var(--ed-muted);
    font-size: 0.79rem;
}

.nav-links #nav-login-btn:hover {
    background: transparent;
    border-color: var(--ed-line);
    color: var(--ed-ink);
    transform: none;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: 0.65rem;
    padding-left: 0.9rem;
    border-left: 1px solid var(--ed-line);
}

.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--ed-line);
    background: var(--ed-sage);
    object-fit: cover;
}

.nav-username {
    max-width: 11ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ed-ink);
}

.mobile-menu-btn {
    display: none;
    margin-left: auto;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border: 1px solid var(--ed-line);
    border-radius: var(--r-sm);
    color: var(--ed-ink);
    font-size: 1.1rem;
    background: transparent;
}

.mobile-nav {
    position: fixed;
    top: 5.1rem;
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
    max-height: calc(100svh - 6rem);
    overflow-y: auto;
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: 0.1rem;
    padding: 1rem;
    background: var(--ed-white);
    border: 1px solid var(--ed-line);
    border-radius: var(--r-md);
    box-shadow: 0 30px 60px -35px rgba(20, 26, 23, 0.45);
}

.mobile-nav.active {
    display: flex;
    animation: ed-menu-in 220ms var(--ease);
}

@keyframes ed-menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link,
.mobile-btn {
    padding: 0.85rem 0.65rem;
    border-radius: 0;
    border-bottom: 1px solid var(--ed-line-soft);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 420;
    text-align: left;
    color: var(--ed-ink);
    background: transparent;
}

.mobile-link:last-of-type {
    border-bottom: 0;
}

.mobile-link:hover,
.mobile-btn:hover {
    background: transparent;
    color: var(--ed-emerald-deep);
}

.mobile-btn.btn-nav {
    justify-content: center;
    margin-top: 0.7rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--ed-emerald);
    border-radius: var(--r-sm);
    color: var(--ed-paper);
    background: var(--ed-emerald);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
}

.mobile-btn.btn-nav:hover {
    color: var(--ed-paper);
    background: var(--ed-emerald-deep);
}

/* ==========================================================================
   5. CHAPTER SCAFFOLDING
   ========================================================================== */
section {
    scroll-margin-top: 6.5rem;
}

.services-section,
.portfolio-section,
.why-me-section,
.numbers-band,
.vouches-section,
.perks-section,
.faq-section,
.contact-section {
    padding-block: var(--section-y);
    border-top: 1px solid var(--ed-line-soft);
}

.section-header {
    display: grid;
    /* The legacy layer capped this block at 52rem, which forced display-size
       headings into four and five ragged lines. The header owns the full
       container measure; the heading gets the wide column it needs and the
       supporting paragraph keeps a readable 40ch measure. */
    max-width: none;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    column-gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
    text-align: left;
    margin-bottom: clamp(2.75rem, 5vw, 4.25rem);
}

.section-kicker {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-top: 0.85rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 1px solid var(--ed-ink);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

.section-kicker .kicker-index {
    color: var(--ed-emerald-deep);
}

.section-kicker .kicker-rule {
    flex: 1;
    height: 1px;
    background: var(--ed-line-soft);
}

.section-title {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.35rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.032em;
    color: var(--ed-ink);
}

.section-subtitle {
    max-width: 40ch;
    margin: 0;
    padding-bottom: 0.3rem;
    color: var(--ed-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.section-label {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ed-emerald-deep);
}

/* Legacy glass becomes a flat paper sheet with a hairline, nowhere blurred. */
.glass-panel {
    background: var(--ed-white);
    border: 1px solid var(--ed-line);
    border-radius: var(--r-md);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero-section {
    position: relative;
    display: block;
    min-height: 0;
    padding: clamp(8rem, 13vh, 10.5rem) 0 0;
    /* The tendrils intentionally paint outside the buttons. Clip only the
       horizontal bleed at the viewport edge so they can never create a
       sideways scroll on a phone. */
    overflow-x: clip;
    overflow-y: visible;
}

.hero-section::before,
.hero-section::after {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: end;
}

.hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding-bottom: 1rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

.availability-dot {
    width: 6px;
    height: 6px;
    background: var(--ed-emerald);
    box-shadow: 0 0 0 3px rgba(8, 125, 89, 0.12);
    animation: ed-pulse 2.8s ease-in-out infinite;
}

@keyframes ed-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(8, 125, 89, 0.12); }
    50% { box-shadow: 0 0 0 6px rgba(8, 125, 89, 0.04); }
}

.hero-title {
    margin: 0;
    font-size: clamp(3.15rem, 6.6vw, 6.05rem);
    font-weight: 380;
    line-height: 0.94;
    letter-spacing: -0.04em;
    color: var(--ed-ink);
}

.hero-line {
    display: block;
}

.hero-title em {
    font-style: italic;
    font-weight: 330;
    color: var(--ed-emerald);
}

.hero-subtitle {
    max-width: 44ch;
    margin: clamp(1.35rem, 2.4vw, 1.9rem) 0 0;
    color: var(--ed-muted);
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: clamp(2rem, 3.5vw, 2.75rem) 0 0;
    justify-content: flex-start;
}

.hero-buttons .btn {
    min-height: 3.45rem;
    padding: 1rem 1.65rem;
    font-size: 0.92rem;
    border-radius: var(--r-sm);
}

.hero-buttons .btn-secondary {
    border-color: var(--ed-line-strong);
    background: transparent;
}

/* The hero rule above is more specific than the shared `.btn-secondary:hover`,
   so the hover surface has to be restated here; without it the label turned
   white on a transparent background and disappeared. */
.hero-buttons .btn-secondary:hover {
    background: var(--ed-ink);
    border-color: var(--ed-ink);
    color: var(--ed-white);
}

.hero-buttons .btn-primary i {
    font-size: 0.95rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    margin-top: clamp(2.2rem, 4vw, 3.25rem);
    padding-top: 1rem;
    border-top: 1px solid var(--ed-line-soft);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-meta i {
    color: var(--ed-emerald);
    font-size: 0.85rem;
}

/* ── Hero visual ────────────────────────────────────────────────────────── */
.hero-visual {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hero-figure {
    position: relative;
    margin: 0;
    padding: 0;
}

.hero-figure-frame {
    position: relative;
    padding: 0.65rem;
    background: var(--ed-sage);
    border: 1px solid var(--ed-line-soft);
}

.hero-figure-frame::after {
    content: '';
    position: absolute;
    right: -1.15rem;
    bottom: -1.15rem;
    width: 62%;
    height: 58%;
    z-index: -1;
    background: var(--ed-forest);
}

.hero-figure img {
    width: 100%;
    aspect-ratio: 4 / 3.35;
    object-fit: cover;
    object-position: top center;
    filter: saturate(0.94) contrast(0.98);
}

.hero-figure figcaption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--ed-line-soft);
    margin-top: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.61rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

.hero-figure figcaption strong {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 550;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ed-ink);
}

/* ── Hero statistics — a ledger, not a card ─────────────────────────────── */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 1.5rem;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--ed-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-stats::before,
.hero-stats::after {
    display: none;
}

.hero-stats .stat-item {
    display: block;
    padding: 0 1.15rem;
    border-left: 1px solid var(--ed-line-soft);
    text-align: left;
}

.hero-stats .stat-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero-stats .stat-icon {
    display: none;
}

.hero-stats .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.6vw, 2.25rem);
    font-weight: 420;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ed-ink);
}

.hero-stats .stat-label {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

.hero-stats .stat-divider {
    display: none;
}

/* ── Service index — the old orbit, editorialised ───────────────────────── */
.hero-index {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: clamp(3.25rem, 6vw, 5rem);
    /* padding-block, not the shorthand: .hero-index is itself a .container, and
       `padding: … 0 …` would cancel the gutter and pull the index out of
       alignment with the copy above it. */
    padding-block: 1.35rem clamp(1.5rem, 3vw, 2.25rem);
    border-top: 1px solid var(--ed-line);
}

.hero-index-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ed-muted);
    padding-top: 0.55rem;
}

.service-orbit {
    min-width: 0;
}

.orbit-stage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 2rem;
    counter-reset: orbit;
}

.orbit-card {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    padding: 0.5rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ed-ink-soft);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 450;
    text-align: left;
    transition: color var(--fast) var(--ease);
    box-shadow: none;
    backdrop-filter: none;
}

.orbit-card::before {
    counter-increment: orbit;
    content: counter(orbit, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    color: var(--ed-muted-soft);
    flex: 0 0 auto;
}

.orbit-card i {
    display: none;
}

.orbit-card:hover,
.orbit-card:focus-visible {
    color: var(--ed-emerald-deep);
}

.orbit-card:hover::before {
    color: var(--ed-emerald);
}

/* The inherited scroll mouse is redundant beside the service index. */
.hero-section .scroll-indicator {
    display: none !important;
}

/* ==========================================================================
   7. SERVICES
   ========================================================================== */
.services-section {
    border-top: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 4.5rem);
    row-gap: 0;
}

.service-card {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    padding: 1.7rem 1rem 1.7rem 0;
    border: 0;
    border-top: 1px solid var(--ed-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: background-color var(--smooth) var(--ease), padding var(--smooth) var(--ease);
}

.services-grid .service-card:nth-child(-n + 2) {
    border-top-color: var(--ed-ink);
}

.service-card:hover {
    background: rgba(225, 236, 229, 0.34);
    box-shadow: none;
    transform: none;
    padding-left: 1rem;
}

.service-num {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--ed-muted-soft);
    padding-top: 0.35rem;
}

.service-card:hover .service-num {
    color: var(--ed-emerald);
}

.service-body {
    min-width: 0;
}

.service-card h3 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.12rem, 1.6vw, 1.32rem);
    font-weight: 460;
    letter-spacing: -0.02em;
    color: var(--ed-ink);
}

.service-card p {
    max-width: 42ch;
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.62;
    color: var(--ed-muted);
}

.service-glyph {
    align-self: center;
    font-size: 1.05rem;
    color: var(--ed-muted-soft);
    transition: color var(--smooth) var(--ease), transform var(--smooth) var(--ease);
}

.service-card:hover .service-glyph {
    color: var(--ed-emerald);
    transform: translateX(2px);
}

/* Retired icon chip styles — kept inert so no old rule leaks through. */
.service-icon,
.icon-cyan,
.icon-purple,
.icon-white {
    display: none;
}

/* ==========================================================================
   8. PORTFOLIO
   ========================================================================== */
.portfolio-filters {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 0 0 clamp(2rem, 3vw, 2.75rem);
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--ed-line-soft);
}

.filter-btn {
    position: relative;
    padding: 0 0 0.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ed-muted);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--fast) var(--ease);
    box-shadow: none;
    transform: none;
}

.filter-btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.92rem;
    height: 1px;
    background: var(--ed-ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--smooth) var(--ease);
}

.filter-btn:hover {
    background: transparent;
    color: var(--ed-ink);
}

.filter-btn.active {
    background: transparent;
    border: 0;
    color: var(--ed-emerald-deep);
    box-shadow: none;
    transform: none;
}

.filter-btn.active::after {
    background: var(--ed-emerald);
    transform: scaleX(1);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(2.25rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.portfolio-card {
    grid-column: span 6;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.portfolio-card:nth-child(1) { grid-column: span 7; }
.portfolio-card:nth-child(2) { grid-column: span 5; }
.portfolio-card:nth-child(3) { grid-column: span 5; }
.portfolio-card:nth-child(4) { grid-column: span 7; }

.portfolio-card::before {
    display: none;
}

.portfolio-card:hover {
    transform: none;
    box-shadow: none;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xs);
    background: var(--ed-sage);
    border: 1px solid var(--ed-line-soft);
}

.portfolio-image img,
.portfolio-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.001);
    transition: transform 900ms var(--ease), filter 900ms var(--ease);
    filter: saturate(0.93);
}

.portfolio-card:nth-child(1) .portfolio-image img,
.portfolio-card:nth-child(4) .portfolio-image img {
    aspect-ratio: 16 / 11;
}

.portfolio-card:hover .portfolio-image img,
.portfolio-card:hover .portfolio-placeholder {
    transform: scale(1.035);
    filter: saturate(1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(4, 22, 16, 0.74) 0%, rgba(4, 22, 16, 0.08) 58%, transparent 100%);
    opacity: 0;
    transition: opacity var(--smooth) var(--ease);
}

.portfolio-card:hover .portfolio-overlay,
.portfolio-card:focus-within .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    margin: 0 0 0.45rem;
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 420;
}

.portfolio-overlay .tech-tag {
    margin-bottom: 0.65rem;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
}

.portfolio-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.portfolio-cta i {
    font-size: 0.85rem;
    transition: transform var(--smooth) var(--ease);
}

.portfolio-card:hover .portfolio-cta i {
    transform: translate(2px, -2px);
}

.portfolio-open {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.3rem 0;
    border: 0;
    border-bottom: 1px solid var(--ed-line);
    border-radius: 0;
    background: transparent;
    color: var(--ed-ink);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.portfolio-open:hover {
    color: var(--ed-emerald-deep);
    border-bottom-color: var(--ed-emerald);
}

.portfolio-open i {
    font-size: 0.75rem;
}

.portfolio-info {
    position: relative;
    padding: 1.2rem 0 0;
    border-top: 1px solid var(--ed-line-soft);
    margin-top: 1rem;
}

.portfolio-index {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--ed-muted-soft);
}

.portfolio-info h3 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.1vw, 1.7rem);
    font-weight: 440;
    letter-spacing: -0.025em;
    color: var(--ed-ink);
}

.portfolio-info p {
    max-width: 48ch;
    margin: 0 0 0.75rem;
    font-size: 0.86rem;
    line-height: 1.62;
    color: var(--ed-muted);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tag {
    display: inline-flex;
    padding: 0.16rem 0.42rem;
    border: 1px solid var(--ed-line);
    border-radius: var(--r-xs);
    background: transparent;
    color: var(--ed-muted);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portfolio-tag-success,
.portfolio-tag-info {
    background: transparent;
    border-color: var(--ed-line);
    color: var(--ed-muted);
}

/* ==========================================================================
   9. WHY ME
   ========================================================================== */
.why-me-section {
    padding-block: var(--section-y);
    background: transparent;
}

.why-me-section .large-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 5.5rem);
    border: 0;
    border-radius: var(--r-lg);
    background: var(--ed-forest);
    color: var(--ed-paper);
    box-shadow: none;
}

.why-me-section .large-panel::before {
    content: '✳';
    position: absolute;
    right: -0.06em;
    top: -0.24em;
    font-family: var(--font-display);
    font-size: clamp(16rem, 30vw, 30rem);
    line-height: 1;
    color: rgba(225, 236, 229, 0.045);
    pointer-events: none;
}

.why-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    column-gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.why-content .section-title {
    grid-column: 1;
    color: var(--ed-paper);
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
}

.why-content .section-kicker {
    grid-column: 1;
    margin-bottom: 1.5rem;
    padding-top: 0;
    border-top: 0;
    color: rgba(247, 247, 242, 0.52);
}

.why-content .section-kicker .kicker-index {
    color: var(--ed-sage);
}

.why-content .section-kicker .kicker-rule {
    background: rgba(225, 236, 229, 0.24);
}

.why-content .section-title span {
    color: var(--ed-sage);
}

.why-content .section-subtitle {
    grid-column: 1;
    max-width: 32ch;
    margin-top: 1.4rem;
    padding: 0;
    color: rgba(247, 247, 242, 0.66);
    font-size: 0.94rem;
}

.why-content .features-list {
    grid-column: 2;
    grid-row: 1 / span 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.25rem;
    row-gap: 0;
}

.feature-item {
    display: block;
    padding: 1.5rem 0;
    border-top: 1px solid var(--ed-sage-line);
}

.feature-item:nth-child(1),
.feature-item:nth-child(2) {
    border-top-color: rgba(225, 236, 229, 0.5);
}

.feature-icon {
    display: none;
}

.feature-text h4 {
    margin: 0 0 0.45rem;
    color: var(--ed-paper);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 560;
    letter-spacing: 0.01em;
}

.feature-text p {
    margin: 0;
    color: rgba(247, 247, 242, 0.62);
    font-size: 0.84rem;
    line-height: 1.62;
}

/* ==========================================================================
   10. NUMBERS BAND
   ========================================================================== */
.numbers-band {
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
    background: var(--ed-paper-warm);
}

.numbers-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.numbers-intro .section-kicker {
    margin-bottom: 1.35rem;
    padding-top: 0;
    border-top: 0;
}

.numbers-intro h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: 400;
    line-height: 1.02;
    color: var(--ed-ink);
}

.numbers-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border-left: 1px solid var(--ed-line);
}

.numbers-list > div {
    padding: 0 1.5rem;
    border-right: 1px solid var(--ed-line);
}

.numbers-list dt {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

.numbers-list dd {
    margin: 0.5rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 380;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ed-ink);
}

.numbers-list dd span {
    font-size: 0.4em;
    color: var(--ed-muted);
    letter-spacing: 0;
}

/* ==========================================================================
   11. VOUCHES
   ========================================================================== */
.vouch-dashboard {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 0 2rem;
    margin-bottom: 2rem;
    border: 0;
    border-bottom: 1px solid var(--ed-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.vouch-stats {
    display: flex;
    align-items: flex-end;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.stat-box {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
    transition: none;
}

.stat-box .stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 4.6vw, 4rem);
    font-weight: 380;
    line-height: 0.9;
    letter-spacing: -0.045em;
    color: var(--ed-ink);
}

.stat-box .stat-stars {
    display: inline-block;
    margin-left: 0.35rem;
    color: var(--ed-emerald);
    font-size: 0.8rem;
}

.stat-box .stat-label {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

.vouch-action .btn {
    min-height: 2.8rem;
}

.vouch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
}

.vouch-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.6rem 0 0;
    border: 0;
    border-top: 1px solid var(--ed-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: border-color var(--smooth) var(--ease);
}

.vouch-card:hover {
    background: transparent;
    border-top-color: var(--ed-emerald);
    transform: none;
    box-shadow: none;
}

.vouch-card-enter {
    animation: ed-vouch-in 500ms var(--ease) both;
}

@keyframes ed-vouch-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.vouch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vouch-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vouch-avatar {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--ed-line);
    border-radius: 50%;
    background: var(--ed-sage);
    color: var(--ed-forest);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
}

.vouch-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.vouch-username {
    font-size: 0.8rem;
    font-weight: 560;
    color: var(--ed-ink);
}

.vouch-date {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    color: var(--ed-muted-soft);
}

.vouch-service-tag-wrapper {
    margin: 0;
}

.vouch-service-tag {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ed-muted);
    border: 1px solid var(--ed-line-soft);
    padding: 0.12rem 0.4rem;
}

.vouch-rating {
    color: var(--ed-emerald);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.vouch-feedback {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 380;
    line-height: 1.5;
    color: var(--ed-ink-soft);
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 2.25rem;
    border: 1px dashed var(--ed-line);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ed-muted);
}

.empty-state i {
    font-size: 1.3rem;
    color: var(--ed-muted-soft);
}

.empty-state p {
    margin: 0;
    font-size: 0.88rem;
}

/* ==========================================================================
   12. PERKS
   ========================================================================== */
.perks-section .section-header .section-label {
    margin-bottom: 0;
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 1.6vw, 1.5rem);
    align-items: stretch;
}

.perk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border: 1px solid var(--ed-line);
    border-radius: var(--r-sm);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: border-color var(--smooth) var(--ease), background-color var(--smooth) var(--ease);
}

.perk-card:hover {
    transform: none;
    border-color: var(--ed-line-strong);
    box-shadow: none;
    background: rgba(255, 254, 251, 0.55);
}

.perk-card.most-popular {
    border: 1px solid var(--ed-forest);
    background: var(--ed-forest);
    color: var(--ed-paper);
    box-shadow: none;
    backdrop-filter: none;
}

.perk-card.most-popular:hover {
    background: var(--ed-forest-deep);
    border-color: var(--ed-forest-deep);
    box-shadow: none;
}

.popular-badge {
    position: static;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.4rem;
    padding: 0.22rem 0.55rem;
    border: 1px solid rgba(225, 236, 229, 0.32);
    border-radius: var(--r-xs);
    background: transparent;
    color: var(--ed-sage);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transform: none;
}

.perk-icon {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    margin: 0;
    border: 1px solid var(--ed-line);
    border-radius: 50%;
    font-size: 1rem;
    color: var(--ed-emerald-deep);
}

.most-popular .perk-icon {
    border-color: rgba(225, 236, 229, 0.3);
    color: var(--ed-sage);
}

.perk-card h3 {
    margin: 0.35rem 0 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 420;
    letter-spacing: -0.02em;
    color: var(--ed-ink);
}

.most-popular h3 {
    color: var(--ed-paper);
}

.perk-price {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ed-muted);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ed-line-soft);
}

.most-popular .perk-price {
    color: rgba(247, 247, 242, 0.7);
    border-bottom-color: var(--ed-sage-line);
}

.perk-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 1.35rem;
    padding: 0;
    list-style: none;
    flex-grow: 1;
}

.perk-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--ed-line-soft);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ed-ink-soft);
}

.most-popular .perk-features li {
    border-bottom-color: var(--ed-sage-line);
    color: rgba(247, 247, 242, 0.8);
}

.perk-features li i {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--ed-emerald);
    flex: 0 0 auto;
}

.most-popular .perk-features li i {
    color: var(--ed-sage);
}

.perk-card .btn {
    width: 100%;
    min-height: 2.75rem;
    border-radius: var(--r-sm);
}

.most-popular .btn-primary {
    background: var(--ed-paper);
    border-color: var(--ed-paper);
    color: var(--ed-forest);
}

.most-popular .btn-primary:hover {
    background: var(--ed-sage);
    border-color: var(--ed-sage);
    color: var(--ed-forest-deep);
}

.perks-footer {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.65rem;
    margin-top: 1.75rem;
    padding: 1.1rem 0 0;
    border: 0;
    border-top: 1px solid var(--ed-line-soft);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--ed-muted);
}

.perks-footer i {
    margin-top: 0.1rem;
    color: var(--ed-emerald);
}

.how-to-buy-section {
    margin-top: clamp(3rem, 5vw, 4.5rem);
    padding-top: clamp(2rem, 3vw, 2.5rem);
    border-top: 1px solid var(--ed-line);
}

.how-to-buy-section .section-header {
    display: block;
    margin-bottom: 2rem;
}

.how-to-buy-section .section-header h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    font-weight: 420;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
}

.step-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    align-items: start;
    max-width: none;
    padding: 0 1.75rem 0 0;
    border-right: 1px solid var(--ed-line-soft);
    text-align: left;
}

.step-arrow {
    display: none;
}

.step-item:last-child {
    border-right: 0;
}

.step-icon {
    grid-row: 1 / span 2;
    position: relative;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--ed-line);
    border-radius: 50%;
    background: transparent;
    color: var(--ed-emerald-deep);
    font-size: 0.9rem;
}

.step-num {
    position: absolute;
    top: -0.9rem;
    left: 0;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--ed-muted-soft);
    font-family: var(--font-mono);
    font-size: 0.52rem;
    font-weight: 500;
}

.step-item h4 {
    margin: 0 0 0.3rem;
    font-family: var(--font-sans);
    font-size: 0.81rem;
    font-weight: 560;
    color: var(--ed-ink);
}

.step-item p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--ed-muted);
}

/* ==========================================================================
   13. FAQ
   ========================================================================== */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.faq-layout .section-header {
    display: block;
    margin: 0;
    position: sticky;
    top: 7rem;
}

.faq-layout .section-kicker {
    margin-bottom: 1.5rem;
}

/* Stacked header: the display face's tight line-height leaves the supporting
   line sitting on the descenders without an explicit gap. */
.faq-layout .section-title + .section-subtitle {
    margin-top: 1.4rem;
}

.faq-accordion {
    border-top: 1px solid var(--ed-ink);
}

.faq-item {
    border: 0;
    border-bottom: 1px solid var(--ed-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.faq-question {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 1.4rem 0;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.35vw, 1.13rem);
    font-weight: 420;
    line-height: 1.35;
    color: var(--ed-ink);
    transition: color var(--fast) var(--ease);
}

.faq-question:hover {
    color: var(--ed-emerald-deep);
}

.faq-question i {
    position: relative;
    flex: 0 0 auto;
    width: 0.85rem;
    height: 0.85rem;
    margin-top: 0.15rem;
    font-size: 0;
    transform: none;
}

.faq-question i::before,
.faq-question i::after {
    content: '';
    position: absolute;
    inset: 50% 0 auto;
    height: 1px;
    background: currentColor;
    transition: transform var(--smooth) var(--ease), opacity var(--smooth) var(--ease);
}

.faq-question i::after {
    transform: rotate(90deg);
}

.faq-item.active .faq-question i::after {
    transform: rotate(0deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 420ms var(--ease);
}

.faq-item.active .faq-answer {
    max-height: 22rem;
}

.faq-answer p {
    max-width: 62ch;
    margin: 0;
    padding: 0 2.5rem 1.4rem 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--ed-muted);
}

/* ==========================================================================
   14. CONTACT
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    padding: 0 clamp(0rem, 2vw, 2.5rem) 0 0;
    border-right: 1px solid var(--ed-line);
}

.contact-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ed-emerald-deep);
}

.contact-info h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--ed-ink);
}

.contact-info > p {
    max-width: 34ch;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--ed-muted);
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
}

.info-block {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--ed-line-soft);
}

.info-block i {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--ed-line);
    border-radius: 50%;
    font-size: 0.85rem;
    color: var(--ed-emerald-deep);
}

.info-block .label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ed-muted-soft);
}

.info-block .value {
    display: block;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ed-ink);
}

.contact-info .helper-text {
    margin: auto 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--ed-line-soft);
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--ed-muted);
}

.glass-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: clamp(1.35rem, 3vw, 2.5rem);
    border: 1px solid var(--ed-line);
    border-radius: var(--r-sm);
    background: var(--ed-white);
    box-shadow: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.75rem;
}

label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

.glass-form input,
.glass-form select,
.glass-form textarea,
.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 0.62rem 0;
    border: 0;
    border-bottom: 1px solid var(--ed-line);
    border-radius: 0;
    background: transparent;
    color: var(--ed-ink);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    line-height: 1.5;
    outline: none;
    transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.glass-form input:focus,
.glass-form select:focus,
.glass-form textarea:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-bottom-color: var(--ed-emerald);
    box-shadow: none;
    outline: none;
}

.glass-form input::placeholder,
.glass-form textarea::placeholder,
.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: #9AA29C;
}

.glass-form select,
.modal-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 1.4rem;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ed-muted) 50%),
        linear-gradient(135deg, var(--ed-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 9px) calc(50% + 1px),
        calc(100% - 4px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.glass-form textarea,
.modal-form textarea {
    min-height: 110px;
    resize: vertical;
}

.glass-form input[readonly] {
    color: var(--ed-muted);
    cursor: default;
}

.input-glow {
    display: none;
}

.helper-text {
    margin: 0;
    font-size: 0.73rem;
    line-height: 1.5;
    color: var(--ed-muted-soft);
}

.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.captcha-container {
    min-height: 65px;
    padding: 0.25rem 0;
}

.glass-form > .btn[type="submit"] {
    min-height: 3.1rem;
    margin-top: 0.35rem;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
}

.form-status {
    margin: 0;
    padding: 0;
    border-radius: 0;
    font-size: 0.84rem;
    line-height: 1.6;
}

.form-status:not(:empty) {
    padding: 0.85rem 1rem;
    border-left: 2px solid var(--ed-line-strong);
    background: var(--ed-paper-warm);
}

.form-status.status-success:not(:empty) {
    border-left-color: var(--ed-emerald);
    background: rgba(8, 125, 89, 0.07);
    color: var(--ed-emerald-deep);
}

.form-status.status-error:not(:empty) {
    border-left-color: var(--ed-danger);
    background: rgba(163, 38, 27, 0.06);
    color: var(--ed-danger);
}

/* Contact authentication gate / signed-in strip */
.contact-auth-gate {
    padding: 1.1rem;
    border: 1px solid var(--ed-line);
    border-radius: var(--r-sm);
    background: var(--ed-paper);
}

.contact-auth-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-auth-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border: 1px solid var(--ed-line);
    border-radius: 50%;
    color: var(--ed-emerald-deep);
}

.contact-auth-copy h4 {
    margin: 0 0 0.2rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 440;
}

.contact-auth-copy p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--ed-muted);
}

.contact-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.contact-auth-actions .btn {
    min-height: 2.5rem;
    font-size: 0.78rem;
}

.contact-auth-status {
    margin: 0.65rem 0 0;
    font-size: 0.76rem;
    color: var(--ed-muted);
}

.contact-auth-status:empty {
    display: none;
}

.contact-auth-account {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--ed-line);
    border-radius: var(--r-sm);
    background: var(--ed-paper);
}

.contact-auth-account > i {
    color: var(--ed-emerald);
    font-size: 1rem;
}

.contact-auth-account-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    line-height: 1.35;
}

.contact-auth-account-text .label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ed-muted-soft);
}

.contact-auth-account-text .value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    color: var(--ed-ink);
}

.contact-auth-account .btn {
    min-height: 2.25rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.glass-footer {
    margin-top: 0;
    border-top: 0;
    background: var(--ed-forest);
    color: var(--ed-paper);
}

.footer-container {
    padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) 1.75rem;
}

.footer-lead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-kicker {
    margin: 0 0 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(247, 247, 242, 0.55);
}

.footer-kicker .footer-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 0.6rem;
    border-radius: 50%;
    background: var(--ed-sage);
    vertical-align: middle;
}

.footer-wordmark {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.9rem, 7.2vw, 6rem);
    font-weight: 360;
    line-height: 0.9;
    letter-spacing: -0.045em;
    color: var(--ed-paper);
    text-decoration: none;
}

.footer-wordmark em {
    font-style: italic;
    color: var(--ed-sage);
}

.footer-wordmark:hover {
    color: #FFFFFF;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.social-btn {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(247, 247, 242, 0.25);
    border-radius: 50%;
    background: transparent;
    color: var(--ed-paper);
    font-size: 1rem;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.social-btn:hover {
    background: var(--ed-paper);
    border-color: var(--ed-paper);
    color: var(--ed-forest);
}

.tooltip-container {
    position: relative;
}

.tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.55rem;
    border-radius: var(--r-xs);
    background: var(--ed-paper);
    color: var(--ed-forest);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--fast);
}

.tooltip-container:hover .tooltip,
.tooltip-container:focus-visible .tooltip {
    opacity: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-top: 1px solid var(--ed-sage-line);
    border-bottom: 1px solid var(--ed-sage-line);
}

.footer-grid h4 {
    margin: 0 0 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(247, 247, 242, 0.48);
}

.footer-grid nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.footer-grid a,
.footer-grid button {
    padding: 0.18rem 0;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(247, 247, 242, 0.78);
    text-align: left;
    background: transparent;
    transition: color var(--fast) var(--ease);
}

.footer-grid a:hover,
.footer-grid button:hover {
    color: #FFFFFF;
}

.footer-contact-note {
    margin: 0.9rem 0 0;
    max-width: 30ch;
    font-size: 0.76rem;
    line-height: 1.65;
    color: rgba(247, 247, 242, 0.5);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.4rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--ed-sage-line);
}

.footer-legal a,
.footer-legal-btn {
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    color: rgba(247, 247, 242, 0.55);
    background: transparent;
    transition: color var(--fast) var(--ease);
}

.footer-legal a:hover,
.footer-legal-btn:hover {
    color: var(--ed-paper);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    color: rgba(247, 247, 242, 0.42);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .trust-text {
    color: rgba(247, 247, 242, 0.6);
}

/* ==========================================================================
   16. DIALOGS
   ========================================================================== */
.modal-overlay {
    background: rgba(9, 17, 13, 0.58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    max-width: 520px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--ed-line);
    border-radius: var(--r-md);
    background: var(--ed-white);
    box-shadow: 0 50px 90px -40px rgba(4, 22, 16, 0.55);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--ed-line);
    border-radius: 50%;
    background: transparent;
    color: var(--ed-muted);
    font-size: 1rem;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.modal-close-btn:hover {
    background: var(--ed-paper-warm);
    color: var(--ed-ink);
    transform: rotate(6deg);
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-right: 2.5rem;
}

.modal-header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 1.95rem);
    font-weight: 420;
    letter-spacing: -0.03em;
}

.modal-header p {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--ed-muted);
}

.modal-form,
.login-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-panel {
    max-width: 430px;
}

.login-hint {
    margin: 0;
    font-size: 0.76rem;
    color: var(--ed-muted);
}

.star-rating-input {
    display: flex;
    gap: 0.35rem;
    color: var(--ed-line-strong);
    font-size: 1.35rem;
    cursor: pointer;
}

.star-btn {
    transition: color var(--fast), transform var(--fast);
}

.star-btn.active,
.star-btn.hover {
    color: var(--ed-emerald);
    transform: scale(1.08);
}

/* Portfolio case-study dialog */
.portfolio-modal {
    background: rgba(9, 17, 13, 0.62);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.portfolio-modal-content {
    border: 1px solid var(--ed-line);
    border-radius: var(--r-md);
    background: var(--ed-white);
    box-shadow: 0 60px 100px -45px rgba(4, 22, 16, 0.6);
}

.portfolio-modal-gallery {
    background: var(--ed-sage);
}

.portfolio-modal-gallery img {
    object-position: top center;
}

.portfolio-modal-body {
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.portfolio-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.portfolio-modal-body h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 420;
    letter-spacing: -0.03em;
}

.portfolio-modal-summary {
    margin: 0 0 0.65rem;
    color: var(--ed-emerald-deep);
    font-size: 0.88rem;
    font-weight: 500;
}

.portfolio-modal-body > p:not(.portfolio-modal-summary) {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--ed-muted);
}

.portfolio-modal-section {
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ed-line-soft);
}

.portfolio-modal-section h4 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

.portfolio-modal-section h4 i {
    color: var(--ed-emerald);
    font-size: 0.85rem;
}

.portfolio-modal-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.portfolio-modal-list li {
    position: relative;
    padding: 0.28rem 0 0.28rem 1rem;
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--ed-ink-soft);
}

.portfolio-modal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.78rem;
    width: 4px;
    height: 1px;
    background: var(--ed-emerald);
}

.portfolio-modal-nav {
    border-top: 1px solid var(--ed-line);
}

.portfolio-modal-nav-btn {
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ed-muted);
    background: transparent;
    transition: color var(--fast), background-color var(--fast);
}

.portfolio-modal-nav-btn:hover {
    color: var(--ed-ink);
    background: var(--ed-paper-warm);
}

.portfolio-modal-close {
    border: 1px solid var(--ed-line);
    background: rgba(255, 254, 251, 0.92);
    color: var(--ed-ink);
}

/* Payment dialog — the inline legacy dark tints are reset to paper. */
.payment-modal-container {
    background: var(--ed-white);
}

.payment-sidebar {
    border-right: 1px solid var(--ed-line);
    background: var(--ed-paper);
}

.payment-sidebar h3 {
    border-bottom: 1px solid var(--ed-line) !important;
    font-family: var(--font-display);
    font-size: 1.2rem !important;
    font-weight: 440;
}

.payment-content {
    background: var(--ed-white);
}

.payment-tab {
    border-bottom: 1px solid var(--ed-line-soft);
    color: var(--ed-ink);
}

.payment-tab.active {
    background: var(--ed-sage-soft);
}

.payment-tab strong {
    font-family: var(--font-sans);
}

.qr-container img {
    border-radius: var(--r-xs) !important;
    border-color: var(--ed-line) !important;
}

/* ==========================================================================
   17. PRIVACY PANELS ON THE PUBLIC PAGE
   ========================================================================== */
.privacy-notice {
    left: auto;
    right: var(--gutter);
    bottom: 1.25rem;
    width: min(400px, calc(100% - 2rem));
    padding: 1.1rem 1.15rem;
    transform: translateY(14px);
}

.privacy-notice.is-visible {
    transform: translateY(0);
}

.privacy-notice,
.privacy-choices-panel {
    background: var(--ed-white);
    border: 1px solid var(--ed-line);
    border-radius: var(--r-sm);
    box-shadow: 0 40px 80px -40px rgba(4, 22, 16, 0.55);
    color: var(--ed-ink);
}

.privacy-notice p {
    font-size: 0.8rem;
    line-height: 1.65;
}

.privacy-notice-actions {
    gap: 0.45rem;
}

.privacy-notice-actions .btn {
    flex: 1 1 130px;
    min-height: 2.6rem;
    font-size: 0.78rem;
}

.privacy-notice-title {
    font-family: var(--font-display);
    font-weight: 420;
    letter-spacing: -0.02em;
}

.privacy-notice p,
.privacy-choices-header p,
.privacy-choice-group p {
    color: var(--ed-muted);
}

.privacy-notice a,
.privacy-choice-note a {
    color: var(--ed-emerald-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-choices-header h2 {
    font-family: var(--font-display);
    font-weight: 420;
}

.privacy-choice-group {
    border-color: var(--ed-line);
}

.privacy-choice-head h3 {
    font-family: var(--font-sans);
    font-weight: 560;
}

/* ==========================================================================
   18. MOTION
   ========================================================================== */
html.anim-armed .fade-up:not(.visible) {
    opacity: 0;
    transform: translateY(14px);
}

html.no-anim .fade-up {
    opacity: 1;
    transform: none;
}

@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;
    }

    .availability-dot {
        animation: none;
    }

    .hero-figure-frame::after {
        opacity: 0.9;
    }
}

/* ==========================================================================
   19. RESPONSIVE
   ========================================================================== */
@media (max-width: 1120px) {
    .nav-links a:not(.btn):not(.auth-link) {
        padding-inline: 0.55rem;
        font-size: 0.75rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
        gap: 2.5rem;
    }

    .hero-title {
        font-size: clamp(3rem, 6.4vw, 4.7rem);
    }

    .hero-figure img {
        aspect-ratio: 4 / 3.6;
    }

    .footer-lead {
        align-items: flex-start;
    }
}

@media (max-width: 1000px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: grid;
    }

    .glass-nav {
        padding: 0.7rem var(--gutter);
    }

    .glass-nav.scrolled {
        padding-block: 0.5rem;
    }

    .hero-section {
        padding-top: 7.5rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(2.75rem, 6vw, 4rem);
    }

    .hero-copy {
        padding-bottom: 0;
    }

    .hero-title {
        font-size: clamp(3.1rem, 8.4vw, 5.6rem);
    }

    .hero-visual {
        max-width: 620px;
    }

    .hero-index {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.9rem;
        margin-top: 3rem;
    }

    .orbit-stage {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0 1.5rem;
    }

    .section-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .section-subtitle {
        max-width: 52ch;
    }

    .services-grid {
        column-gap: 2rem;
    }

    .why-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .why-content .features-list {
        grid-column: 1;
        grid-row: auto;
        margin-top: 2rem;
    }

    .numbers-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .faq-layout .section-header {
        position: static;
    }

    .contact-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .contact-info {
        border-right: 0;
        padding-right: 0;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--ed-line);
    }

    .contact-info .helper-text {
        margin-top: 0;
    }

    .dashboard-wrapper {
        padding-top: 5.5rem;
    }
}

@media (max-width: 760px) {
    :root {
        --section-y: 4.25rem;
    }

    .hero-title {
        font-size: clamp(2.85rem, 11vw, 4.4rem);
    }

    .hero-line {
        display: inline;
    }

    .hero-line + .hero-line::before {
        content: ' ';
    }

    .hero-buttons {
        gap: 0.65rem;
    }

    .hero-buttons .btn {
        min-height: 3.1rem;
        padding: 0.9rem 1.25rem;
        font-size: 0.86rem;
    }

    .hero-meta {
        gap: 0.4rem 1.25rem;
        margin-top: 1.75rem;
    }

    .hero-figure-frame {
        padding: 0.45rem;
    }

    .hero-figure-frame::after {
        right: -0.6rem;
        bottom: -0.6rem;
    }

    .hero-stats {
        margin-top: 1.25rem;
    }

    .hero-stats .stat-item {
        padding: 0 0.65rem;
    }

    .hero-stats .stat-number {
        font-size: 1.55rem;
    }

    .hero-stats .stat-label {
        font-size: 0.52rem;
        letter-spacing: 0.07em;
    }

    .orbit-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 1.25rem;
    }

    .orbit-card {
        padding: 0.4rem 0;
        font-size: 0.76rem;
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-grid .service-card:nth-child(2) {
        border-top-color: var(--ed-line);
    }

    .services-grid .service-card:nth-child(-n + 1) {
        border-top-color: var(--ed-ink);
    }

    .service-card {
        padding-block: 1.35rem;
        grid-template-columns: 2.1rem minmax(0, 1fr) auto;
        gap: 0.75rem;
    }

    .service-card:hover {
        padding-left: 0.6rem;
    }

    .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.25rem;
    }

    .portfolio-card,
    .portfolio-card:nth-child(1),
    .portfolio-card:nth-child(2),
    .portfolio-card:nth-child(3),
    .portfolio-card:nth-child(4) {
        grid-column: 1 / -1;
    }

    .portfolio-image img,
    .portfolio-card:nth-child(1) .portfolio-image img,
    .portfolio-card:nth-child(4) .portfolio-image img {
        aspect-ratio: 16 / 11;
    }

    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(4, 22, 16, 0.66) 0%, transparent 46%);
        padding: 0.9rem;
    }

    .portfolio-overlay h3 {
        font-size: 1rem;
    }

    .portfolio-overlay .btn {
        display: none;
    }

    .why-me-section .large-panel {
        border-radius: var(--r-md);
        padding: 2rem 1.4rem;
    }

    .why-content .features-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-item:nth-child(2) {
        border-top-color: var(--ed-sage-line);
    }

    .numbers-list {
        grid-template-columns: minmax(0, 1fr);
        border-left: 0;
    }

    .numbers-list > div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.9rem 0;
        border-right: 0;
        border-top: 1px solid var(--ed-line);
    }

    .numbers-list dd {
        margin: 0;
        font-size: 2.1rem;
    }

    .vouch-dashboard {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .vouch-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .perks-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .steps-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1.5rem;
    }

    .step-item {
        padding-right: 0;
        border-right: 0;
    }

    .contact-info {
        gap: 1.1rem;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-lead {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }

    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding-left: 0;
    }

    .logo {
        font-size: 1.15rem;
    }

    .hero-section {
        padding-top: 6.6rem;
    }

    .hero-title {
        font-size: clamp(2.55rem, 12.4vw, 3.6rem);
    }

    .hero-subtitle {
        font-size: 0.94rem;
    }

    .hero-buttons {
        align-items: stretch;
    }

    .symbiote-host {
        flex: 1 1 100%;
    }

    .symbiote-host .btn {
        width: 100%;
    }

    .hero-meta {
        font-size: 0.56rem;
        letter-spacing: 0.06em;
    }

    .hero-index {
        margin-top: 2.25rem;
    }

    .hero-figure figcaption {
        font-size: 0.54rem;
    }

    .section-title {
        font-size: clamp(2.1rem, 10.5vw, 3rem);
    }

    .section-kicker {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
    }

    .section-subtitle {
        font-size: 0.92rem;
    }

    .service-card {
        grid-template-columns: 1.8rem minmax(0, 1fr);
    }

    .service-glyph {
        display: none;
    }

    .contact-info h3 {
        font-size: 1.8rem;
    }

    .glass-form {
        padding: 1.1rem;
    }

    .contact-auth-head {
        align-items: flex-start;
    }

    .contact-auth-account {
        flex-wrap: wrap;
    }

    .contact-auth-account .btn {
        margin-left: 2.65rem;
    }

    .steps-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .step-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-grid > div:last-child {
        grid-column: auto;
    }

    .footer-legal {
        gap: 0.55rem 1rem;
    }

    .footer-wordmark {
        font-size: 2.65rem;
    }
}

/* A focus ring inside the dark footer needs a light ring to be visible. */
.glass-footer :focus-visible {
    outline-color: var(--ed-sage);
}
