/* Auto-generated split from styles.css — Peak Essence */
/* =========================================================
   PEAK ESSENCE — Design System (Architectural Edition)
   White + warm orange. Blueprint motifs. Lifecycle narrative.
   ========================================================= */

:root {
    --bg:           #FAF7F2;
    --surface:      #FFFFFF;
    --surface-2:    #F3EDE3;
    --ink:          #1A1612;
    --ink-2:        #3A312A;
    --muted:        #7A6B5C;
    --line:         #E8DFD2;

    --orange:       #E07A2B;
    --orange-deep:  #B65A14;
    --orange-soft:  #F4C18B;
    --cream:        #F8E9D2;

    --night:        #14110D;
    --night-2:      #1F1810;

    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --container:    1280px;
    --gutter:       clamp(20px, 4vw, 56px);
    --radius:       14px;
    --radius-lg:    22px;

    --ease:         cubic-bezier(.2,.7,.2,1);
    --ease-arch:    cubic-bezier(.65,.05,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--orange); color: #fff; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--ink); background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--dark  { background: var(--night); color: #EFE6D8; }
.section--cream { background: var(--surface-2); }

/* Blueprint grid background overlay */
.bg-grid { position: relative; isolation: isolate; }
.bg-grid::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(26,22,18,.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26,22,18,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
    pointer-events: none; z-index: -1;
}
.section--dark.bg-grid::before {
    background-image:
        linear-gradient(to right, rgba(255,246,229,.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,246,229,.05) 1px, transparent 1px);
}

/* ===== Typography ===== */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; line-height: 1.1; color: var(--ink); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #FFF6E5; }
h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 400; }
h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 400; }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); }
p  { color: var(--ink-2); font-size: 17px; }
.section--dark p { color: #D9CCB6; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); max-width: 62ch; }
.section--dark .lead { color: #D9CCB6; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
    color: var(--orange-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--orange); }
.section--dark .eyebrow { color: var(--orange-soft); }

.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.gradient-text {
    background: linear-gradient(120deg, var(--orange) 0%, var(--orange-deep) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: var(--font-mono); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px;
    font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
    transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .35s var(--ease);
    will-change: transform;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(182,90,20,.55); }
.btn--accent { background: var(--orange); color: #fff; }
.btn--accent:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(182,90,20,.55); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.section--dark .btn--ghost { color: #FFF6E5; border-color: rgba(255,246,229,.25); }
.section--dark .btn--ghost:hover { border-color: var(--orange-soft); color: var(--orange-soft); }
.splitdiag .btn--ghost,
.cta-band .btn--ghost { color: #FFF6E5; border-color: rgba(255,246,229,.28); }
.splitdiag .btn--ghost:hover,
.cta-band .btn--ghost:hover { border-color: var(--orange-soft); color: var(--orange-soft); }
.btn .arrow { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Navigation ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .35s var(--ease), backdrop-filter .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
    padding: 18px 0;
}
.nav--scrolled {
    background: rgba(250, 247, 242, 0.86);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    box-shadow: 0 1px 0 rgba(26,18,9,.06);
    padding: 10px 0;
}
.nav--scrolled .nav__brand-name,
.nav--scrolled .nav__brand-sub,
.nav--scrolled .nav__link { color: var(--ink); }
.nav--scrolled .nav__brand-sub { color: var(--muted); }
.nav--scrolled .nav__link:hover { color: var(--ink); background: rgba(26,18,9,.04); }
.nav--scrolled .nav__link.is-active { color: var(--orange-deep); }
.nav--scrolled .nav__brand-logo { background: transparent; }
/* nav--on-dark text overrides (toggle only — text handled universally above) */
.nav--on-dark:not(.nav--scrolled) .nav__toggle { background: #FFF6E5; color: var(--ink); }
.nav--on-dark:not(.nav--scrolled) .nav__toggle span,
.nav--on-dark:not(.nav--scrolled) .nav__toggle span::before,
.nav--on-dark:not(.nav--scrolled) .nav__toggle span::after { background: var(--ink); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav__panel { display: flex; align-items: center; gap: 18px; }
.nav__brand { display: flex; align-items: center; gap: 12px; color: #FFF6E5; }
.nav__brand-logo {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    background: #FFF6E5;
    border-radius: 50%;
    box-shadow: none;
    transition: transform .35s var(--ease), background .35s var(--ease);
}
.nav__brand:hover .nav__brand-logo { transform: rotate(-6deg) scale(1.05); box-shadow: 0 6px 18px -4px rgba(182,90,20,.35), inset 0 0 0 1px rgba(224,122,43,.4); }
.nav__brand-logo img { width: 32px; height: 32px; object-fit: contain; }
.nav__brand img { height: 38px; width: auto; transition: filter .3s; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: .04em; }
.nav__brand-sub  { font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: .28em; color: rgba(255,246,229,.65); margin-top: 4px; text-transform: uppercase; }
.nav__menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__link {
    position: relative; padding: 10px 16px;
    font-size: 14.5px; font-weight: 500; color: #FFF6E5;
    border-radius: 999px;
    transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__link:hover { color: var(--orange-soft); background: rgba(255,246,229,.06); }
.nav__link.is-active { color: var(--orange-soft); }
.nav__link.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: 4px; width: 6px; height: 6px;
    background: var(--orange); border-radius: 50%; transform: translateX(-50%);
}
.nav__cta { margin-left: 4px; flex-shrink: 0; white-space: nowrap; }
.nav__toggle {
    display: none; width: 44px; height: 44px;
    border-radius: 999px; background: var(--ink); color: #fff;
    align-items: center; justify-content: center;
    transition: background .25s, color .25s;
}
.nav__toggle span { display: block; width: 18px; height: 2px; background: #fff; position: relative; transition: transform .3s var(--ease), background .3s; }
.nav__toggle span::before, .nav__toggle span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff;
    transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top:  6px; }
.nav--open .nav__toggle span { background: transparent; }
.nav--open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav--open .nav__toggle span::after  { top: 0; transform: rotate(-45deg); }
@media (max-width: 960px) {
    /*
     * Mobile nav panel
     * ----------------------------------------------------------------
     * Always rendered as a fixed full-screen layer so the browser
     * never has to do a fresh layout on open (no flash, no jank).
     *
     * OPEN motion = a single coordinated gesture:
     *   1. Panel reveals via circular clip-path expanding from the
     *      hamburger position (top-right). Feels like the button is
     *      "spilling" the menu open — premium, intentional, on-brand.
     *   2. Backdrop fades in underneath.
     *   3. Menu items rise up from below with a staggered cascade,
     *      respecting the existing diagonal staircase indent.
     *
     * CLOSE motion = the reverse: clip-path contracts back into the
     * button, items hold still (no jittery exit animation).
     */
    .nav__panel {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        z-index: 90;
        background: var(--bg);
        padding: 96px 28px 40px;
        overflow-y: auto;
        overscroll-behavior: contain;

        /* Closed state: clipped to a zero-radius circle at top-right
           (the hamburger button). Invisible + non-interactive. */
        clip-path: circle(0% at calc(100% - 46px) 46px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            clip-path  .55s cubic-bezier(.7, 0, .3, 1),
            opacity    .35s ease,
            visibility  0s  .55s;
        will-change: clip-path, opacity;
    }

    /* Column layout is always active so there's no layout flip on close. */
    .nav__panel .nav__menu  { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
    .nav__panel .nav__cta   { display: inline-flex; align-self: flex-start; margin: 24px 0 0; }
    .nav__panel .nav__link  { display: block; padding: 18px 8px; font-size: 22px; font-family: var(--font-display); border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
    .nav__panel .nav__link.is-active::after { display: none; }
    .nav__toggle { display: inline-flex; }

    /* OPEN state: clip-path expands past the diagonal, fully revealing. */
    .nav--open .nav__panel {
        clip-path: circle(160% at calc(100% - 46px) 46px);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition:
            clip-path  .6s  cubic-bezier(.7, 0, .3, 1),
            opacity    .25s ease,
            visibility  0s   0s;
    }

    /* Item cascade: each item rises from below as the wave passes over it.
       Delays line up roughly with when the clip-path reaches that item. */
    .nav--open .nav__menu li,
    .nav--open .nav__cta {
        animation: navItemRise .5s cubic-bezier(.2, .8, .2, 1) backwards;
    }
    .nav--open .nav__menu li:nth-child(1) { animation-delay: .18s; }
    .nav--open .nav__menu li:nth-child(2) { animation-delay: .24s; }
    .nav--open .nav__menu li:nth-child(3) { animation-delay: .30s; }
    .nav--open .nav__menu li:nth-child(4) { animation-delay: .36s; }
    .nav--open .nav__menu li:nth-child(5) { animation-delay: .42s; }
    .nav--open .nav__cta                  { animation-delay: .48s; }
}
@keyframes navItemRise {
    from { opacity: 0; transform: translateY(22px); filter: blur(4px); }
    to   { opacity: 1; transform: none;             filter: blur(0);   }
}
/* Respect reduced motion: instant reveal, no rise/blur. */
@media (prefers-reduced-motion: reduce) {
    .nav__panel,
    .nav--open .nav__panel { transition: opacity .15s ease, visibility 0s; clip-path: none !important; }
    .nav--open .nav__menu li,
    .nav--open .nav__cta { animation: none; }
}

/* =========================================================
   LIFECYCLE HERO SLIDER
   ========================================================= */
.lifecycle {
    position: relative;
    height: 100vh; min-height: 720px;
    background: var(--night); color: #FFF6E5;
    overflow: hidden; isolation: isolate;
}
.lifecycle::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(244, 193, 139, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(244, 193, 139, 0.06) 1px, transparent 1px),
        linear-gradient(to right, rgba(244, 193, 139, 0.10) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(244, 193, 139, 0.10) 1px, transparent 1px);
    background-size: 32px 32px, 32px 32px, 160px 160px, 160px 160px;
    mask-image: radial-gradient(ellipse 90% 70% at center, black 30%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at center, black 30%, transparent 95%);
    z-index: 0;
}
.lifecycle::after {
    content: "";
    position: absolute; width: 720px; height: 720px;
    right: -200px; bottom: -300px;
    background: radial-gradient(circle, rgba(224,122,43,.28) 0%, transparent 60%);
    filter: blur(40px); z-index: 0;
    animation: glowFloat 14s ease-in-out infinite alternate;
}
@keyframes glowFloat { from { transform: translate(0,0); } to { transform: translate(-120px,-80px); } }

.lifecycle__inner {
    position: relative; z-index: 2; height: 100%;
    display: grid; grid-template-columns: 80px 1fr; gap: 0;
    padding: 0 var(--gutter); max-width: 1480px; margin: 0 auto;
}

.lifecycle__rail {
    align-self: center;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    position: relative; padding: 24px 0;
}
.lifecycle__rail::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 1px; background: rgba(255,246,229,.15); transform: translateX(-50%);
}
.lifecycle__dot {
    position: relative;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    color: rgba(255,246,229,.5);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
    background: var(--night);
    border: 1px solid rgba(255,246,229,.18);
    border-radius: 50%;
    transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
    cursor: pointer;
}
.lifecycle__dot:hover { color: #FFF6E5; border-color: var(--orange-soft); }
.lifecycle__dot.is-active {
    color: #FFF6E5; border-color: var(--orange);
    transform: scale(1.18); background: var(--orange-deep);
    box-shadow: 0 0 0 4px rgba(224,122,43,.18);
}

.lifecycle__stage-wrap { position: relative; height: 100%; overflow: hidden; }
.lifecycle__stage {
    position: absolute; inset: 0;
    display: grid; grid-template-columns: 1.05fr 1fr;
    gap: clamp(24px, 5vw, 80px);
    align-items: center;
    padding: 120px 0 110px;
    opacity: 0; visibility: hidden; transform: translateY(40px);
    transition: opacity .8s var(--ease-arch), transform .9s var(--ease-arch), visibility 0s linear .8s;
}
.lifecycle__stage.is-active {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .9s var(--ease-arch), transform .9s var(--ease-arch), visibility 0s;
}
.lifecycle__content { position: relative; max-width: 560px; }
.lifecycle__phase {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: var(--font-mono);
    font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
    color: var(--orange-soft); margin-bottom: 22px;
}
.lifecycle__phase::before { content: ""; width: 36px; height: 1px; background: var(--orange); }
.lifecycle__title {
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(48px, 7vw, 92px); line-height: .98; letter-spacing: -0.02em;
    color: #FFF6E5;
}
.lifecycle__title em { font-style: italic; color: var(--orange-soft); font-weight: 400; }
.lifecycle__copy { margin-top: 24px; font-size: clamp(15px, 1.3vw, 18px); color: rgba(255,246,229,.78); max-width: 50ch; }
.lifecycle__meta {
    margin-top: 32px;
    display: flex; flex-wrap: wrap; gap: 28px;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(255,246,229,.55);
}
.lifecycle__meta strong {
    display: block; font-family: var(--font-display);
    font-weight: 400; font-size: 22px; color: var(--orange-soft);
    letter-spacing: 0; text-transform: none; margin-top: 4px;
}

.lifecycle__visual { position: relative; height: 100%; display: grid; place-items: center; }
.lifecycle__visual svg {
    width: 100%; max-width: 540px; height: auto; max-height: 70vh;
    overflow: visible;
}
.lifecycle__stage.is-active .draw   { animation: drawIn 1.2s var(--ease-arch) forwards; }
.lifecycle__stage.is-active .draw-2 { animation-delay: .15s; }
.lifecycle__stage.is-active .draw-3 { animation-delay: .30s; }
.lifecycle__stage.is-active .draw-4 { animation-delay: .45s; }
.lifecycle__stage.is-active .draw-5 { animation-delay: .60s; }
.lifecycle__stage.is-active .draw-6 { animation-delay: .75s; }
.lifecycle__stage.is-active .fade-in { animation: fadeIn .9s var(--ease) forwards; }
.lifecycle__stage.is-active .fade-2 { animation-delay: .35s; }
.lifecycle__stage.is-active .fade-3 { animation-delay: .55s; }
.lifecycle__stage.is-active .fade-4 { animation-delay: .75s; }
.lifecycle__stage.is-active .pop-in { animation: popIn 1s var(--ease-arch) forwards; }
.lifecycle__stage.is-active .pop-2 { animation-delay: .2s; }
.lifecycle__stage.is-active .pop-3 { animation-delay: .4s; }
.lifecycle__stage.is-active .pop-4 { animation-delay: .6s; }
.lifecycle__stage.is-active .float-y { animation: floatY 4s ease-in-out infinite; }

.draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; opacity: 0; }
.fade-in { opacity: 0; }
.pop-in { transform-origin: center bottom; transform: translateY(20px) scale(.96); opacity: 0; }

@keyframes drawIn { 0% { stroke-dashoffset: 1200; opacity: 0; } 20% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes popIn  { to { opacity: 1; transform: none; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.lifecycle__controls {
    position: absolute; left: 0; right: 0; bottom: 36px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 calc(var(--gutter) + 80px) 0 calc(var(--gutter) + 80px);
    z-index: 3; pointer-events: none;
}
.lifecycle__controls > * { pointer-events: auto; }
.lifecycle__hint {
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
    color: rgba(255,246,229,.5);
    display: inline-flex; align-items: center; gap: 12px;
}
.lifecycle__hint::before { content: ""; width: 24px; height: 1px; background: rgba(255,246,229,.35); }
.lifecycle__nav { display: flex; gap: 10px; }
.lifecycle__btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,246,229,.08);
    border: 1px solid rgba(255,246,229,.18);
    color: #FFF6E5; display: grid; place-items: center;
    transition: background .25s, border-color .25s, transform .25s;
}
.lifecycle__btn:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }

.lifecycle__progress {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: rgba(255,246,229,.08); z-index: 4;
}
.lifecycle__progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--orange), var(--orange-soft));
    transition: width .25s linear;
}

@media (max-width: 900px) {
    .lifecycle { min-height: 680px; }
    .lifecycle__inner { grid-template-columns: 56px 1fr; }
    .lifecycle__stage { grid-template-columns: 1fr; padding: 100px 0 110px; }
    .lifecycle__visual { display: none; }
    .lifecycle__controls { padding: 0 var(--gutter); }
}
