/* ============================================================
   RIVET & WELD — THE STORY PAGE
   story.css
   ============================================================ */

.rw-story-page {
    background: var(--rw-black);
}

.rw-story-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 48px;
    padding-right: 48px;
}

.rw-story-section {
    padding: 96px 0;
}

/* ── Hero ────────────────────────────────────────────────── */
.rw-story-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--rw-charcoal);
}

.rw-story-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 20% 60%, rgba(196,80,26,0.1) 0%, transparent 65%),
        repeating-linear-gradient(
            -50deg,
            transparent,
            transparent 40px,
            rgba(240,228,196,0.018) 40px,
            rgba(240,228,196,0.018) 41px
        );
}

.rw-story-hero__content {
    position: relative;
    z-index: 2;
    padding: 80px 48px 64px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rw-story-hero__title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(80px, 14vw, 180px) !important;
    line-height: 0.88 !important;
    letter-spacing: 0.02em !important;
    color: var(--rw-cream) !important;
    margin: 12px 0 0 !important;
}

.rw-story-hero__title span {
    color: var(--rw-rust);
    display: block;
}

.rw-story-hero__stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rw-rust), var(--rw-brass), var(--rw-rust));
    background-size: 200%;
    animation: gradShift 4s ease infinite;
    z-index: 3;
}

@keyframes gradShift {
    0%, 100% { background-position: 0%; }
    50%       { background-position: 100%; }
}

/* ── Opening ─────────────────────────────────────────────── */
.rw-story-opening {
    background: var(--rw-black);
    padding: 80px 0;
}

.rw-story-opening__inner {
    max-width: 720px;
    position: relative;
}

.rw-story-stamp {
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rw-rust);
    border: 1px solid var(--rw-rust);
    padding: 4px 14px;
    display: inline-block;
    margin-bottom: 32px;
    opacity: 0.8;
    transform: rotate(-1.5deg);
}

.rw-story-opening__text {
    font-family: 'Crimson Pro', serif !important;
    font-size: clamp(19px, 2.2vw, 24px) !important;
    line-height: 1.7 !important;
    color: var(--rw-cream-dim) !important;
    margin-bottom: 1.2em !important;
}

.rw-story-opening__text:first-of-type {
    color: var(--rw-cream) !important;
}

/* ── Pull Quote ──────────────────────────────────────────── */
.rw-story-pullquote {
    background: var(--rw-rust);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.rw-story-pullquote::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: 40px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 320px;
    color: rgba(0,0,0,0.12);
    line-height: 1;
    pointer-events: none;
}

.rw-story-pullquote__text {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(36px, 5.5vw, 72px) !important;
    letter-spacing: 0.03em !important;
    line-height: 1.05 !important;
    color: var(--rw-cream) !important;
    text-transform: uppercase !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
    margin: 0 !important;
    font-style: normal !important;
}

/* Alt pull quote */
.rw-story-pullquote--alt {
    background: var(--rw-charcoal);
    border-top: 1px solid var(--rw-rule);
    border-bottom: 1px solid var(--rw-rule);
}

.rw-story-pullquote--alt::before { display: none; }

.rw-story-pullquote__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.rw-story-pullquote__rule {
    width: 60px;
    height: 1px;
    background: var(--rw-rust);
}

.rw-story-pullquote__text--sm {
    font-family: 'Crimson Pro', serif !important;
    font-size: clamp(20px, 2.5vw, 30px) !important;
    font-style: italic !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--rw-cream-dim) !important;
    max-width: 720px;
    line-height: 1.65 !important;
}

/* ── Split Section ───────────────────────────────────────── */
.rw-story-split__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.rw-story-split__text .rw-eyebrow {
    margin-bottom: 12px;
}

.rw-story-split__title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(48px, 6vw, 80px) !important;
    line-height: 0.95 !important;
    letter-spacing: 0.03em !important;
    color: var(--rw-cream) !important;
    margin: 0 0 28px !important;
}

.rw-story-split__text p {
    font-family: 'Crimson Pro', serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--rw-cream-dim);
    margin-bottom: 1em;
}

.rw-story-split__text p:last-child {
    color: var(--rw-cream);
    font-style: italic;
    margin-bottom: 0;
}

.rw-story-split__img-frame {
    position: relative;
}

.rw-story-split__img-frame img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.rw-story-split__img-placeholder {
    aspect-ratio: 3 / 4;
    background: var(--rw-charcoal);
    border: 1px solid var(--rw-rule);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 24px,
        rgba(240,228,196,0.025) 24px,
        rgba(240,228,196,0.025) 25px
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.rw-story-split__img-label {
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rw-leather);
    text-align: center;
    line-height: 1.8;
}

.rw-story-split__img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(14,12,10,0.8), transparent);
    padding: 24px 16px 12px;
}

.rw-story-split__img-caption span {
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rw-leather);
}

/* ── Pillars ─────────────────────────────────────────────── */
.rw-story-pillars {
    background: var(--rw-charcoal);
}

.rw-story-pillars__header {
    margin-bottom: 56px;
}

.rw-story-pillars__header h2 {
    margin-top: 8px;
}

.rw-story-pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.rw-story-pillar {
    background: var(--rw-charcoal-lt);
    border: 1px solid var(--rw-rule);
    padding: 36px 32px 40px;
    transition: border-color 0.2s;
}

.rw-story-pillar:hover {
    border-color: var(--rw-rust);
}

.rw-story-pillar__num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px;
    color: var(--rw-rust);
    line-height: 1;
    opacity: 0.5;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.rw-story-pillar__title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--rw-cream) !important;
    margin-bottom: 16px !important;
    line-height: 1.2 !important;
}

.rw-story-pillar__text {
    font-family: 'Crimson Pro', serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--rw-cream-dim);
    margin: 0;
}

/* ── Influences ──────────────────────────────────────────── */
.rw-story-influences {
    background: var(--rw-black);
}

.rw-story-influences__title {
    margin: 8px 0 48px !important;
}

.rw-story-influences__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--rw-rule);
    border-left: 1px solid var(--rw-rule);
}

.rw-story-influence {
    padding: 32px 28px;
    border-right: 1px solid var(--rw-rule);
    border-bottom: 1px solid var(--rw-rule);
    transition: background 0.2s;
}

.rw-story-influence:hover {
    background: var(--rw-charcoal);
}

.rw-story-influence__icon {
    color: var(--rw-rust);
    font-size: 10px;
    display: block;
    margin-bottom: 12px;
}

.rw-story-influence__label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rw-cream);
    display: block;
    margin-bottom: 10px;
}

.rw-story-influence p {
    font-family: 'Crimson Pro', serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--rw-cream-dim);
    margin: 0;
}

/* ── Closing ─────────────────────────────────────────────── */
.rw-story-closing {
    background: var(--rw-charcoal);
    border-top: 3px solid var(--rw-rust);
    padding: 100px 0;
}

.rw-story-closing__inner {
    max-width: 720px;
}

.rw-story-closing__title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(52px, 7vw, 96px) !important;
    line-height: 0.95 !important;
    letter-spacing: 0.03em !important;
    color: var(--rw-cream) !important;
    margin: 10px 0 28px !important;
}

.rw-story-closing__text {
    font-family: 'Crimson Pro', serif;
    font-size: 19px;
    line-height: 1.7;
    color: var(--rw-cream-dim);
    max-width: 600px;
    margin-bottom: 1em;
}

.rw-story-closing__text:last-of-type {
    font-style: italic;
    color: var(--rw-cream);
    font-size: 21px;
    margin-bottom: 40px;
}

.rw-story-closing__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .rw-story-pillars__grid       { grid-template-columns: repeat(2, 1fr); }
    .rw-story-influences__list    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .rw-story-container { padding-left: 24px; padding-right: 24px; }
    .rw-story-section   { padding: 64px 0; }

    .rw-story-hero__content { padding: 60px 24px 48px; }

    .rw-story-split__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rw-story-split__text { order: 1; }
    .rw-story-split__image { order: 2; }

    .rw-story-pillars__grid    { grid-template-columns: 1fr; }
    .rw-story-influences__list { grid-template-columns: 1fr; }

    .rw-story-closing__ctas { flex-direction: column; }
}
