/* ============================================================
   CRATE 2026 — Design Tokens & Stylesheet

   EDIT PALETTE AND FONTS HERE:
   All colors, fonts, and key sizes are defined as CSS variables
   for easy global updates.
   ============================================================ */

:root {
    /* ---- PALETTE ---- */
    --color-bg-deep:        #0a1628;      /* deepest navy/dark */
    --color-bg-ocean:       #0d2235;      /* hero/primary dark blue */
    --color-bg-mid:         #0f2a3f;      /* mid-tone blue for sections */
    --color-bg-manifesto:   #011729;      /* manifesto section bg */
    --color-text-primary:   #ffffff;       /* headings, nav */
    --color-text-body:      #c8d4de;       /* body copy on dark bg */
    --color-text-muted:     #7a95a8;       /* secondary/muted text */
    --color-accent:         #f04e18;       /* CTA buttons, highlights */
    --color-accent-hover:   #ff6230;       /* accent hover state */
    --color-teal-glow:      rgba(40, 140, 160, 0.15);  /* subtle glow effects */
    --color-divider:        rgba(255, 255, 255, 0.06);  /* section dividers */
    --color-bg-blush:       #f0d5c8;       /* warm blush for Rational section */
    --color-text-dark:      #1a1a1a;       /* dark text on light backgrounds */
    --color-bg-coral:       #e15b54;       /* coral for enables section */

    /* ---- TYPOGRAPHY ---- */
    --font-display:         'Saol Display', Georgia, serif;
    --font-standard:        'Saol Standard', Georgia, serif;
    --font-body:            'Fabriga', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* ---- FONT SIZES (fluid) ---- */
    --size-hero-display:    clamp(3.5rem, 6vw, 5.5rem);
    --size-hero-italic:     clamp(2.8rem, 5vw, 4.5rem);
    --size-h2:              clamp(2rem, 3.5vw, 3.2rem);
    --size-manifesto:       clamp(1.5rem, 2.6vw, 2.1rem);
    --size-body:            clamp(0.95rem, 1.1vw, 1.1rem);
    --size-nav:             0.8rem;
    --size-btn:             0.8rem;
    --size-footer:          0.85rem;

    /* ---- SPACING ---- */
    --space-section:        clamp(5rem, 10vh, 8rem);
    --space-page-x:         clamp(2rem, 5vw, 6rem);
    --max-width-content:    70vw;          /* scales with screen, capped by page padding */
    --max-width-page:       1280px;

    /* ---- MOTION ---- */
    --ease-smooth:          cubic-bezier(0.25, 0.1, 0.25, 1);
    --duration-fade:        0.8s;
    --duration-rotate:      5s;        /* time each headline stays visible */
    --duration-transition:  1.2s;      /* crossfade between headlines */
}


/* ============================================================
   FONTS
   ============================================================ */

@font-face {
    font-family: 'Saol Display';
    src: url('fonts/SaolDisplayRegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Saol Display';
    src: url('fonts/SaolDisplay-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saol Display';
    src: url('fonts/SaolDisplay-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saol Standard';
    src: url('fonts/SaolStandardTrial-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fabriga';
    src: url('fonts/Fabriga-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fabriga';
    src: url('fonts/Fabriga-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fabriga';
    src: url('fonts/Fabriga-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fabriga';
    src: url('fonts/Fabriga-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fabriga';
    src: url('fonts/Fabriga-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text-body);
    background: var(--color-bg-deep);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem var(--space-page-x);
    transition: background var(--duration-fade) var(--ease-smooth),
                backdrop-filter 0.4s ease,
                -webkit-backdrop-filter 0.4s ease;
}

.nav--scrolled {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__logo img {
    height: 28px;
    width: auto;
}

.nav__links {
    display: flex;
    gap: 2.5rem;
    margin-left: auto;
    margin-right: calc(1.5rem + 60px);
}

.nav__link {
    font-family: var(--font-body);
    font-size: var(--size-nav);
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--color-text-primary);
    transition: opacity 0.3s ease;
}

.nav__link:hover {
    opacity: 0.7;
}

.nav__book-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.nav__book-icon:hover {
    opacity: 1;
}

.nav__book-icon--active {
    opacity: 1;
}

.nav__book-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1) drop-shadow(0 0 0.5px white) drop-shadow(0 0 0.5px white);
}

.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}

.nav__mobile-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.nav__mobile-toggle--open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav__mobile-toggle--open span:nth-child(2) {
    opacity: 0;
}
.nav__mobile-toggle--open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile overlay */
.nav__mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    transition: opacity 0.35s var(--ease-smooth);
}

.nav__mobile-overlay--visible {
    display: flex;
    opacity: 1;
}

.nav__mobile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.nav__mobile-close {
    position: absolute;
    top: 1.5rem;
    right: var(--space-page-x);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 200;
}

.nav__mobile-close:hover {
    opacity: 1;
}

.nav__mobile-logo img {
    height: 28px;
    width: auto;
}

.nav__mobile-overlay a {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-text-primary);
    transition: opacity 0.3s ease;
}

.nav__mobile-overlay a:hover {
    opacity: 0.7;
}

.nav__mobile-overlay .nav__book-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-divider);
}

.nav__mobile-overlay .nav__book-link img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1) drop-shadow(0 0 0.5px white) drop-shadow(0 0 0.5px white);
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__book-icon {
        display: none;
    }

    .nav__mobile-toggle {
        display: flex;
    }
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.particles-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width-page);
    margin: 0 auto;
    padding: 0 var(--space-page-x);
    padding-top: 0;
    align-self: flex-end;
    padding-bottom: 12vh;
}

.hero__text {
    max-width: 600px;
}

.hero__headline {
    line-height: 1.05;
}

.hero__solving {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: var(--size-hero-italic);
    color: var(--color-text-primary);
    margin-bottom: 0.1em;
}

.hero__rotating-wrapper {
    position: relative;
    height: calc(var(--size-hero-display) * 1.15);
    margin-bottom: 0.05em;
}

.hero__rotating-line {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    transition: none;
}

.hero__rotating-line.active {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
    transition: clip-path 1.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                opacity 0.3s ease;
}

.hero__rotating-line.exiting {
    opacity: 1;
    clip-path: inset(0 0% 0 100%);
    transition: clip-path 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0s,
                opacity 0.4s ease 0.6s;
}

.hero__bold {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: var(--size-hero-display);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.hero__amp {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: calc(var(--size-hero-display) * 0.75);
    color: var(--color-text-primary);
    margin: 0 0.15em;
    vertical-align: baseline;
}

.hero__puzzles {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: var(--size-hero-italic);
    color: var(--color-text-primary);
    padding-left: 0;
}


/* ============================================================
   MANIFESTO (full-height panels in normal page flow)
   ============================================================ */

.manifesto {
    position: relative;
    background: var(--color-bg-manifesto);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6rem, 15vh, 12rem) var(--space-page-x);
    min-height: 60vh;
}

.manifesto__text {
    max-width: var(--max-width-content);
    font-family: var(--font-standard);
    font-style: normal;
    font-weight: 400;
    font-size: var(--size-manifesto);
    color: var(--color-text-primary);
    line-height: 1.65;
    text-align: center;
}

.manifesto__text p + p {
    margin-top: 1.5em;
}

/* Word-reveal animation */
.manifesto__text .word-wrap {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.25em;
}

.manifesto__text .word-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.215, 0.61, 0.355, 1),
                transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.manifesto__text .word-char.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   LEARN (High Coherence section)
   ============================================================ */

.learn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: var(--color-bg-manifesto);
}

.learn__faces {
    position: relative;
    overflow: hidden;
}

.learn__faces img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
}

.learn__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-section) var(--space-page-x) var(--space-section) 3rem;
}

.learn__heading {
    font-family: var(--font-body);
    font-size: var(--size-h2);
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.learn__heading strong {
    font-weight: 900;
}

.learn__heading-line {
    display: block;
}

.learn__body {
    margin-bottom: 2.5rem;
}

.learn__body p {
    font-size: var(--size-body);
    color: var(--color-text-body);
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.learn__body p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   RATIONAL & RELATIONAL
   ============================================================ */

.rational {
    background: var(--color-bg-blush);
    padding: clamp(4rem, 8vh, 8rem) var(--space-page-x);
}

.rational__inner {
    max-width: var(--max-width-page);
    margin: 0 auto;
}

.rational__heading {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.rational__heading-bold {
    display: block;
    font-family: var(--font-body);
    font-weight: 900;
    font-size: var(--size-h2);
    color: var(--color-text-dark);
    line-height: 1.15;
}

.rational__heading-bold em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
}

.rational__heading-italic {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: var(--size-h2);
    color: var(--color-text-dark);
    line-height: 1.15;
}

.rational__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.rational__image {
    overflow: hidden;
    border-radius: 0;
}

.rational__image img {
    width: 100%;
    height: auto;
    display: block;
}

.rational__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 1rem;
}

.rational__body {
    margin-bottom: 2.5rem;
}

.rational__body p {
    font-family: var(--font-body);
    font-size: var(--size-body);
    color: var(--color-text-dark);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.rational__body p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   CREATIVITY & COMPLEXITY
   ============================================================ */

.creativity {
    padding: 0 var(--space-page-x) clamp(4rem, 8vh, 8rem);
}

.creativity__divider {
    max-width: var(--max-width-page);
    margin: 0 auto clamp(3rem, 6vh, 6rem);
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
}

.creativity__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.creativity__heading {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    font-size: var(--size-h2);
    line-height: 1.2;
}

.creativity__heading-bold {
    font-family: var(--font-body);
    font-weight: 900;
    color: var(--color-text-dark);
}

.creativity__heading-italic {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--color-text-dark);
}

.creativity__body {
    margin-bottom: 0;
}

.creativity__body p {
    font-family: var(--font-body);
    font-size: var(--size-body);
    color: var(--color-text-dark);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.creativity__body p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   CRATE ENABLES
   ============================================================ */

.enables {
    position: relative;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--color-bg-blush) 0%, var(--color-bg-coral) 45%);
}

.enables__inner {
    padding: 0 var(--space-page-x) clamp(3rem, 6vh, 6rem);
    position: relative;
    z-index: 1;
}

/* ---- Interactive CRATE letters ---- */
.enables__letters {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(2rem, 6vw, 8rem);
    margin-bottom: clamp(1.5rem, 3vh, 3rem);
}

.enables__letter {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: clamp(3rem, 8vw, 7rem);
}

.enables__char {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.7);
    text-stroke: 2px rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.enables__letter:hover .enables__char,
.enables__letter.active .enables__char {
    color: var(--color-text-primary);
    -webkit-text-stroke: 0;
    text-stroke: 0;
}

/* Dimension reveal on hover */
.enables__dimension {
    position: absolute;
    top: 100%;
    left: 50%;
    width: clamp(160px, 14vw, 220px);
    padding-top: 1rem;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.enables__letter:hover .enables__dimension,
.enables__letter.active .enables__dimension {
    opacity: 1;
    transform: translate(-50%, 0);
}

.enables__dimension-icon {
    width: clamp(2rem, 4vw, 3.5rem);
    height: auto;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.enables__dimension-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    letter-spacing: 0.15em;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem;
}

.enables__dimension-desc {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
}

.enables__subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--color-text-primary);
    margin-top: clamp(10rem, 20vh, 18rem);
}

/* ---- Stairs section ---- */
.enables__stairs {
    position: relative;
    background: var(--color-bg-coral);
}

.enables__stairs img {
    width: 100%;
    height: auto;
    display: block;
}

.enables__offerings {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.8rem, 2vh, 1.5rem);
    z-index: 1;
}

.enables__offering {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.6rem);
    letter-spacing: 0.15em;
    color: var(--color-text-primary);
}

.enables__offering-plus {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.7);
}

.enables__for {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--color-text-primary);
    margin: 0.5rem 0 0;
}

/* Staggered scroll reveal for offerings */
.enables__offering--reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.enables__offering--reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---- Animated dotted arrow (bridges stairs → coherence) ---- */
.coherence__arrow-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-top: clamp(-320px, -36vh, -200px);
    margin-bottom: clamp(0.5rem, 2vh, 1.5rem);
}

.coherence__arrow-dots {
    width: 0;
    height: clamp(260px, 34vh, 380px);
    border-left: 2px dotted #26b0d8;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.4s ease;
}

.coherence__arrow-dots.visible {
    opacity: 1;
    transform: scaleY(1);
}

.coherence__arrow-tip {
    margin-top: 4px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.5s ease 1s,
                transform 0.5s ease 1s;
}

.coherence__arrow-dots.visible ~ .coherence__arrow-tip {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   COHERENCE / CARDS
   ============================================================ */

.coherence {
    background: #f2f2f2;
    padding: clamp(2rem, 4vh, 4rem) var(--space-page-x) clamp(4rem, 10vh, 8rem);
}

.coherence__inner {
    max-width: var(--max-width-page);
    margin: 0 auto;
}

.coherence__heading {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: clamp(3rem, 6vh, 5rem);
}

.coherence__heading-bold {
    font-family: var(--font-body);
    font-weight: 900;
    color: var(--color-text-dark);
}

.coherence__heading-italic {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--color-text-dark);
}

/* ---- Horizontal scrolling cards ---- */
.coherence__cards-track {
    display: flex;
    gap: clamp(1.2rem, 2vw, 2rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
}

.coherence__cards-track::-webkit-scrollbar {
    display: none;
}

.coherence__card {
    flex: 0 0 clamp(300px, 30vw, 380px);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 20px;
    padding: clamp(2rem, 3vw, 3rem);
    border-left: none;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.coherence__card.visible {
    opacity: 1;
    transform: translateX(0);
}

.coherence__card-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #999;
    margin-bottom: 1.5rem;
}

.coherence__card-badge {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    color: var(--color-text-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.coherence__card-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.2rem;
}

.coherence__card-divider {
    height: 1px;
    background: #e0e0e0;
    margin-bottom: 1.2rem;
}

.coherence__card-intro {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.coherence__card-body {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.coherence__card-link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--color-text-dark);
    padding-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
    align-self: flex-start;
}

.coherence__card-link:hover {
    opacity: 0.6;
}

.coherence__card-link span {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.coherence__card-link:hover span {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .coherence__card {
        flex: 0 0 85vw;
    }
}


/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

.section-heading {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: var(--size-h2);
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.btn {
    display: inline-block;
    width: auto;
    font-family: var(--font-body);
    font-size: var(--size-btn);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn--accent:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--color-text-dark);
    border: 2px solid var(--color-text-dark);
}

.btn--outline:hover {
    background: var(--color-text-dark);
    color: var(--color-bg-blush);
    transform: translateY(-1px);
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    border-top: 1px solid var(--color-divider);
    background: var(--color-bg-deep);
    padding: 3.5rem var(--space-page-x) 2rem;
}

.footer__inner {
    max-width: var(--max-width-page);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 2rem 3rem;
}

.footer__logo {
    height: 22px;
    width: auto;
    opacity: 0.6;
}

.footer__heading {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.footer__link {
    display: block;
    font-size: var(--size-footer);
    font-weight: 300;
    color: var(--color-text-body);
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease;
}

.footer__link:hover {
    opacity: 0.7;
}

.footer__link--small {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.footer__bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    margin-top: 1rem;
    border-top: 1px solid var(--color-divider);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}


/* ============================================================
   SCROLL REVEAL (applied by JS)
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-fade) var(--ease-smooth),
                transform var(--duration-fade) var(--ease-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .learn__content {
        margin-left: 0;
        max-width: none;
        padding: 3rem var(--space-page-x);
    }

    .learn {
        grid-template-columns: 1fr;
    }

    .learn__faces {
        height: 50vh;
    }

    .rational__grid {
        grid-template-columns: 1fr;
    }

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

    .footer__brand {
        grid-column: 1 / -1;
    }

    .hero__rotating-wrapper {
        height: auto;
        min-height: calc(var(--size-hero-display) * 1.15);
    }
}

@media (max-width: 600px) {
    .nav__links {
        display: none;
    }

    .nav__mobile-toggle {
        display: flex;
    }

    .hero__text {
        max-width: 100%;
    }

    .hero__bg img {
        object-position: 80% top;
    }

    .hero__rotating-wrapper {
        height: auto;
        min-height: 0;
    }

    .hero__rotating-line {
        position: relative;
        white-space: normal;
        display: none;
    }

    .hero__rotating-line.active {
        display: block;
    }

    .hero__bold {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero__amp {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .hero__solving {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    .hero__puzzles {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    /* CRATE letters — prevent dimension text clipping on C and E */
    .enables__inner {
        overflow: visible;
    }

    .enables__letters {
        gap: clamp(0.8rem, 4vw, 2rem);
        padding: 0 0.5rem;
    }

    .enables__dimension {
        width: clamp(100px, 28vw, 160px);
    }

    .enables__letter[data-dimension="clarity"] .enables__dimension {
        left: 0 !important;
        transform: translate(0, 8px) !important;
    }

    .enables__letter[data-dimension="clarity"]:hover .enables__dimension,
    .enables__letter[data-dimension="clarity"].active .enables__dimension {
        transform: translate(0, 0) !important;
    }

    .enables__letter[data-dimension="energy"] .enables__dimension {
        left: auto !important;
        right: 0 !important;
        transform: translate(0, 8px) !important;
    }

    .enables__letter[data-dimension="energy"]:hover .enables__dimension,
    .enables__letter[data-dimension="energy"].active .enables__dimension {
        transform: translate(0, 0) !important;
    }

    /* Dotted arrow — shorten so it doesn't overlap offerings text */
    .coherence__arrow-line {
        margin-top: clamp(-180px, -20vh, -120px);
    }

    .coherence__arrow-dots {
        height: clamp(120px, 18vh, 200px);
    }

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

    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
