/* ──────────────────────────────────────────────────────────────
   Bunood — Atelier v3  ·  bold modern engineering
   ──────────────────────────────────────────────────────────────
   Loaded AFTER tokens.css and component CSS.

   v3 changes:
     · Tajawal (was IBM Plex Sans Arabic)
     · Geist Mono (was JetBrains Mono — less typewriter)
     · NEW: rich-paper background system — corner registration marks,
       giant typographic watermark, coordinate scale, drafting title
       block, multi-zone radial gradients. Banishes the flat-beige problem.
   ────────────────────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════
   RICH PAPER BACKGROUND  ·  the "blueprint sheet" effect
   ═══════════════════════════════════════════════════════════
   Apply `.atelier-bg-rich` to <body> and drop a
   `<div class="paper-deco">…</div>` right after <body> to get
   the full effect: multi-zone gradients + corner registration
   marks + watermark + coordinate scale + drafting title block.
   Designed for the auth utility pages. */

body.atelier-bg-rich,
.atelier-bg-rich {
    background:
        /* Warm ochre glow upper-right corner */
        radial-gradient(ellipse 900px 700px at 95% -5%, rgba(200, 146, 60, 0.15), transparent 55%),
        /* Cool brand glow lower-left */
        radial-gradient(ellipse 800px 600px at -5% 105%, rgba(31, 81, 69, 0.13), transparent 60%),
        /* Soft warm center wash */
        radial-gradient(circle at 35% 40%, rgba(200, 146, 60, 0.05), transparent 45%),
        /* Subtle blueprint dots */
        radial-gradient(circle at 24px 24px, rgba(11, 31, 26, 0.06) 1.2px, transparent 1.6px),
        /* Big grid */
        linear-gradient(90deg, rgba(11, 31, 26, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(11, 31, 26, 0.045) 1px, transparent 1px),
        /* Base sand */
        #E5E5DC;
    background-size: auto, auto, auto, 48px 48px, 120px 120px, 120px 120px, auto;
    background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, fixed;
}

/* Decorative layer — drops behind everything, pinned to the viewport */
.paper-deco {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* ── Corner registration marks (drafting style L-corners) ── */
.reg-mark {
    position: absolute;
    width: 36px;
    height: 36px;
    color: rgba(11, 31, 26, 0.35);
    display: block;
}
.reg-mark.tl { top: 24px; inset-inline-start: 24px; }
.reg-mark.tr { top: 24px; inset-inline-end: 24px; }
.reg-mark.bl { bottom: 24px; inset-inline-start: 24px; }
.reg-mark.br { bottom: 24px; inset-inline-end: 24px; }
.reg-mark .ink { stroke: var(--ink); stroke-width: 2.5; fill: none; opacity: 0.45; }
.reg-mark .ochre { stroke: var(--ochre); stroke-width: 2.5; fill: none; }

/* ── Giant typographic watermark — "ب" peeking from the corner ── */
.watermark {
    position: absolute;
    bottom: -100px;
    inset-inline-end: -60px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 560px;
    font-weight: 900;
    color: rgba(11, 31, 26, 0.045);
    line-height: 0.8;
    letter-spacing: -30px;
    user-select: none;
    transform: rotate(-6deg);
    pointer-events: none;
}
@media (max-width: 720px) {
    .watermark { font-size: 360px; bottom: -60px; inset-inline-end: -40px; }
}

/* ── Coordinate scale strip (X1, X2, X3... like a blueprint ruler) ── */
.coord-scale {
    position: absolute;
    top: 80px;
    bottom: 80px;
    inset-inline-end: 32px;
    width: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    color: rgba(11, 31, 26, 0.4);
    letter-spacing: 0.12em;
    font-weight: 600;
}
.coord-scale .tick {
    display: flex;
    align-items: center;
    gap: 6px;
}
.coord-scale .tick::before {
    content: "";
    width: 8px;
    height: 1px;
    background: rgba(11, 31, 26, 0.3);
}
@media (max-width: 720px) { .coord-scale { display: none; } }

/* ── Drafting title block (architectural drawing metadata) ── */
.title-block {
    position: absolute;
    bottom: 28px;
    inset-inline-start: 28px;
    background: rgba(255, 255, 255, 0.55);
    border: 1.5px solid rgba(11, 31, 26, 0.35);
    padding: 8px 12px;
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    color: rgba(11, 31, 26, 0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    min-width: 180px;
    box-shadow: -3px 3px 0 rgba(200, 146, 60, 0.35);
}
.title-block .tb-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 0;
    border-bottom: 1px dashed rgba(11, 31, 26, 0.2);
    line-height: 1.5;
}
.title-block .tb-row:last-child { border-bottom: none; }
.title-block .tb-row strong {
    color: rgba(11, 31, 26, 0.9);
    font-weight: 700;
    letter-spacing: 0.04em;
}
@media (max-width: 720px) { .title-block { display: none; } }

/* ── Diagonal accent stripe (unexpected drama) ── */
.deco-stripe {
    position: absolute;
    top: 30%;
    inset-inline-start: -120px;
    width: 240px;
    height: 4px;
    /* Brand Sadu weave (brass / deep-green / mint) instead of a generic 2-tone
       dash — de-AI the marketing/auth accent stripe. Colour-only; geometry kept. */
    background-image: repeating-linear-gradient(
        135deg,
        #C8923C 0 6px,
        #0F2A24 6px 9px,
        #9BE0CB 9px 15px,
        #0F2A24 15px 18px
    );
    opacity: 0.45;
    transform: rotate(-25deg);
    pointer-events: none;
}
.deco-stripe.alt {
    top: auto;
    bottom: 25%;
    inset-inline-start: auto;
    inset-inline-end: -120px;
    transform: rotate(155deg);
}

/* ── Floating dust particles (slow drift) ── */
.deco-dust {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
}
.deco-dust.d1 { top: 14%; inset-inline-start: 22%; background: var(--ochre); opacity: .5; animation: dust-a 9s ease-in-out infinite; }
.deco-dust.d2 { top: 22%; inset-inline-end: 18%; background: var(--brand); opacity: .55; animation: dust-b 11s ease-in-out infinite; width: 8px; height: 8px; }
.deco-dust.d3 { bottom: 28%; inset-inline-start: 26%; background: var(--ink); opacity: .35; animation: dust-a 13s ease-in-out infinite reverse; }
.deco-dust.d4 { bottom: 18%; inset-inline-end: 30%; background: var(--ochre); opacity: .45; animation: dust-b 10s ease-in-out infinite reverse; width: 5px; height: 5px; }
.deco-dust.d5 { top: 50%; inset-inline-start: 6%; background: var(--brand); opacity: .3; animation: dust-b 14s ease-in-out infinite; width: 4px; height: 4px; }
@keyframes dust-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px) translateX(10px); } }
@keyframes dust-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px) translateX(-14px); } }
@media (prefers-reduced-motion: reduce) {
    .deco-dust { animation: none; }
}


/* ──────────────────────────────────────────────────────────────
   END rich paper background system
   ────────────────────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════
   PAGE BASELINE
   ═══════════════════════════════════════════════════════════ */
.atelier {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    line-height: var(--lh-normal);
    font-weight: var(--fw-medium);
}

.atelier-dark {
    background: var(--brand-deep);
    color: var(--brand-on-dark);
}


/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY  ·  bolder, more architectural
   ═══════════════════════════════════════════════════════════ */
.display-1 {
    font-size: clamp(56px, 9vw, var(--fs-7xl));
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tightest);
    color: var(--ink);
    margin: 0;
}
.display-2 {
    font-size: clamp(44px, 7vw, var(--fs-6xl));
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tightest);
    color: var(--ink);
    margin: 0;
}
.display-3 {
    font-size: clamp(36px, 5vw, var(--fs-5xl));
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--ink);
    margin: 0;
}
.headline {
    font-size: clamp(28px, 3.5vw, var(--fs-4xl));
    font-weight: 700;
    line-height: var(--lh-snug);
    letter-spacing: var(--tracking-tight);
    color: var(--ink);
    margin: 0;
}
.eyebrow,
.stamp-label {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-stamp);
    text-transform: uppercase;
    color: var(--brand);
    display: inline-block;
}
.eyebrow::before {
    content: "—";
    display: inline-block;
    margin-inline-end: 8px;
    color: var(--ochre);
    font-family: var(--font-sans);
    font-weight: 700;
}

.lead {
    font-size: var(--fs-xl);
    line-height: var(--lh-relaxed);
    color: var(--ink-2);
    font-weight: 500;
    max-width: 60ch;
}

.num,
.metric-value,
.price-num,
.tabular-nums {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: 0;
}


/* ═══════════════════════════════════════════════════════════
   SECTION NUMBER STAMPS  ·  ٠١, ٠٢, ٠٣ — bolder
   ═══════════════════════════════════════════════════════════ */
.section-stamp {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--stone);
    letter-spacing: var(--tracking-stamp);
    text-transform: uppercase;
    margin-bottom: var(--space-5);
    font-weight: 700;
}
.section-stamp .num {
    color: var(--ochre);
    font-weight: 700;
    font-size: var(--fs-xl);
}
.section-stamp::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--ochre);
    align-self: center;
    min-width: 80px;
    margin-inline-start: var(--space-3);
}


/* ═══════════════════════════════════════════════════════════
   EDITORIAL RULES  ·  cleaner dividers
   ═══════════════════════════════════════════════════════════ */
.rule-line   { height: 1px; background: var(--rule); border: none; margin: var(--space-8) 0; }
.rule-ink    { height: 3px; background: var(--ink); border: none; margin: var(--space-6) 0; }
.rule-brand  { height: 3px; background: var(--brand); border: none; margin: var(--space-6) 0; }


/* ═══════════════════════════════════════════════════════════
   STAMPED CARD  ·  the signature element — sharper edges
   ═══════════════════════════════════════════════════════════ */
.stamp-card {
    background: var(--card);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow-stamp);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.stamp-card:hover {
    transform: translate(2px, -2px);
    box-shadow: -6px 6px 0 var(--ink);
}
.stamp-card.brand { box-shadow: var(--shadow-stamp-brand); border-color: var(--brand); }
.stamp-card.brand:hover { box-shadow: -6px 6px 0 var(--brand); }
.stamp-card.ochre { box-shadow: var(--shadow-stamp-ochre); border-color: var(--ochre); }
.stamp-card.ochre:hover { box-shadow: -6px 6px 0 var(--ochre); }
.stamp-card.flat { box-shadow: none; border-color: var(--rule); border-width: 1px; }
.stamp-card.flat:hover { transform: none; border-color: var(--ink); box-shadow: var(--shadow-stamp-sm); }


/* ═══════════════════════════════════════════════════════════
   BUTTONS  ·  audited for WCAG AA contrast
   Every variant: contrast ratio ≥ 4.5:1 against its background
   ═══════════════════════════════════════════════════════════ */
.btn-stamp,
button.btn-stamp,
a.btn-stamp {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 14px 28px;
    background: var(--ink);
    color: #FFFFFF !important;        /* explicit white text on ink */
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: -4px 4px 0 var(--ochre);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    line-height: 1;
    letter-spacing: var(--tracking-snug);
}
.btn-stamp:hover {
    transform: translate(2px, -2px);
    box-shadow: -6px 6px 0 var(--ochre);
    color: #FFFFFF !important;
}
.btn-stamp:active {
    transform: translate(0, 0);
    box-shadow: -2px 2px 0 var(--ochre);
}

.btn-stamp.brand,
button.btn-stamp.brand,
a.btn-stamp.brand {
    background: var(--brand);
    border-color: var(--brand-deep);
    color: #FFFFFF !important;       /* white on brand green = ~9:1 */
    box-shadow: -4px 4px 0 var(--ink);
}
.btn-stamp.brand:hover { box-shadow: -6px 6px 0 var(--ink); }
.btn-stamp.brand:active { box-shadow: -2px 2px 0 var(--ink); }

.btn-stamp.ochre,
button.btn-stamp.ochre,
a.btn-stamp.ochre {
    background: var(--ochre);
    color: var(--ink) !important;    /* ink on ochre = ~6.5:1 */
    border-color: var(--ink);
    box-shadow: -4px 4px 0 var(--ink);
}

.btn-stamp.outline,
button.btn-stamp.outline,
a.btn-stamp.outline {
    background: transparent;
    color: var(--ink) !important;
    border-color: var(--ink);
    box-shadow: -4px 4px 0 var(--brand);
}
.btn-stamp.outline:hover {
    background: var(--ink);
    color: #FFFFFF !important;
    box-shadow: -6px 6px 0 var(--brand);
}

/* On dark/brand backgrounds, the outline variant needs inverted ink */
.bg-brand-deep .btn-stamp.outline,
.atelier-dark .btn-stamp.outline,
.atelier-dark a.btn-stamp.outline {
    color: var(--paper) !important;
    border-color: var(--paper);
    box-shadow: -4px 4px 0 var(--ochre);
}
.bg-brand-deep .btn-stamp.outline:hover,
.atelier-dark .btn-stamp.outline:hover {
    background: var(--paper);
    color: var(--ink) !important;
}

.btn-stamp.lg { padding: 18px 36px; font-size: var(--fs-lg); }
.btn-stamp.sm { padding: 8px 18px;  font-size: var(--fs-sm); }
.btn-stamp.full { width: 100%; justify-content: center; }

/* Soft text/link with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    transition: gap var(--duration) var(--ease);
    border-bottom: 2px solid var(--ochre);
    padding-bottom: 2px;
}
.link-arrow::after {
    content: "←";
    font-family: var(--font-mono);
    transition: transform var(--duration) var(--ease);
}
.link-arrow:hover { color: var(--brand-deep); }
.link-arrow:hover::after { transform: translateX(-4px); }


/* ═══════════════════════════════════════════════════════════
   BADGES  ·  bolder, more readable
   ═══════════════════════════════════════════════════════════ */
.badge-stamp {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 12px;
    background: var(--card);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-stamp);
    color: var(--ink);
    text-transform: uppercase;
    line-height: 1.6;
}
.badge-stamp.brand   { border-color: var(--brand);  color: var(--brand);  background: var(--brand-veil); }
.badge-stamp.ochre   { border-color: var(--ochre-deep); color: var(--ochre-deep); background: var(--ochre-pale); }
.badge-stamp.success { border-color: var(--success); color: var(--success); background: var(--success-bg); }
.badge-stamp.danger  { border-color: var(--danger);  color: var(--danger);  background: var(--danger-bg); }
.badge-stamp.dark    { background: var(--ink); color: var(--paper); border-color: var(--ink); }


/* ═══════════════════════════════════════════════════════════
   METRIC  ·  giant mono number + label
   ═══════════════════════════════════════════════════════════ */
.metric { display: flex; flex-direction: column; gap: var(--space-1); }
.metric .metric-value {
    font-family: var(--font-mono);
    font-size: clamp(40px, 5vw, var(--fs-5xl));
    font-weight: 700;
    line-height: 1;
    color: var(--brand-deep);
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--tracking-tight);
}
.metric .metric-label {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: var(--tracking-stamp);
    color: var(--stone);
    text-transform: uppercase;
    font-weight: 700;
}
.metric .metric-unit {
    font-family: var(--font-mono);
    font-size: var(--fs-md);
    color: var(--ochre-deep);
    font-weight: 700;
    margin-inline-start: 4px;
}


/* ═══════════════════════════════════════════════════════════
   MARQUEE  ·  horizontal scrolling ticker strip
   ═══════════════════════════════════════════════════════════ */
.marquee {
    overflow: hidden;
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding: var(--space-3) 0;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: var(--space-9);
    width: max-content;
    animation: marquee-rtl 45s linear infinite;
    will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: var(--tracking-stamp);
    text-transform: uppercase;
    color: var(--paper);
    white-space: nowrap;
}
.marquee-item .dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ochre);
}
.marquee-item.accent { color: var(--ochre-bright); }

@keyframes marquee-rtl {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}


/* ═══════════════════════════════════════════════════════════
   DIAGONAL SECTION  ·  angled background
   ═══════════════════════════════════════════════════════════ */
.section-skew {
    position: relative;
    overflow: hidden;
    padding: var(--space-12) 0;
}
.section-skew::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: skewY(-3deg);
    transform-origin: 0;
    z-index: 0;
}
.section-skew > * { position: relative; z-index: 1; }


/* ═══════════════════════════════════════════════════════════
   BRUTALIST CALLOUT  ·  bold borders, big text
   ═══════════════════════════════════════════════════════════ */
.brutal {
    background: var(--paper);
    border: 3px solid var(--ink);
    box-shadow: var(--shadow-stamp-lg);
    padding: var(--space-9);
    position: relative;
}
.brutal::before {
    content: attr(data-tag);
    position: absolute;
    top: -14px;
    inset-inline-start: var(--space-7);
    background: var(--ochre);
    color: var(--ink);
    padding: 4px 14px;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-stamp);
    text-transform: uppercase;
    border: 2px solid var(--ink);
}


/* ═══════════════════════════════════════════════════════════
   TAPE  ·  construction-tape diagonals
   ═══════════════════════════════════════════════════════════ */
.tape {
    height: 8px;
    background-image: repeating-linear-gradient(
        135deg,
        var(--ochre) 0 16px,
        var(--ink) 16px 32px
    );
}
.tape.thin { height: 4px; background-size: auto auto; }
.hatch-bg {
    background-image: repeating-linear-gradient(
        135deg, transparent 0 7px, var(--rule) 7px 8px
    );
}


/* ═══════════════════════════════════════════════════════════
   FORMS  ·  drafted inputs
   ═══════════════════════════════════════════════════════════ */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label,
.field-label {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: var(--tracking-stamp);
    text-transform: uppercase;
    color: var(--stone);
    font-weight: 700;
}
.field-label .req { color: var(--rust); margin-inline-start: 2px; }

.input,
.atelier input[type="text"],
.atelier input[type="email"],
.atelier input[type="password"],
.atelier input[type="tel"],
.atelier input[type="number"],
.atelier input[type="url"],
.atelier select,
.atelier textarea {
    width: 100%;
    background: var(--card);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    color: var(--ink);
    transition: border-color var(--duration), box-shadow var(--duration);
}
.input:focus,
.atelier input:focus,
.atelier select:focus,
.atelier textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--shadow-focus);
}
.input::placeholder { color: var(--stone-light); }


/* ═══════════════════════════════════════════════════════════
   SLIDER  ·  custom range input for pricing calculator
   ═══════════════════════════════════════════════════════════ */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 2px;
    background: var(--rule);
    outline: none;
    cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: var(--ink);
    border: 3px solid var(--ochre);
    border-radius: 2px;
    cursor: grab;
    box-shadow: -2px 2px 0 var(--ochre);
    transition: transform var(--duration);
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.range-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }
.range-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: var(--ink);
    border: 3px solid var(--ochre);
    border-radius: 2px;
    cursor: grab;
    box-shadow: -2px 2px 0 var(--ochre);
}
.range-slider.brand::-webkit-slider-thumb { background: var(--brand); border-color: var(--ink); box-shadow: -2px 2px 0 var(--ink); }
.range-slider.brand::-moz-range-thumb { background: var(--brand); border-color: var(--ink); box-shadow: -2px 2px 0 var(--ink); }


/* ═══════════════════════════════════════════════════════════
   ANIMATIONS  ·  reveal-on-scroll, counters, hovers
   ═══════════════════════════════════════════════════════════ */
@keyframes ate-fadeup {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ate-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ate-slidein {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes ate-pop {
    0%   { transform: scale(.85); opacity: 0; }
    60%  { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1); }
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,146,60,.5); }
    50%      { box-shadow: 0 0 0 8px rgba(200,146,60,0); }
}
@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75%      { opacity: 0.3; }
}
@keyframes shimmer-stripe {
    from { background-position: 0 0; }
    to   { background-position: 64px 0; }
}

.ate-anim { animation: ate-fadeup var(--duration-xl) var(--ease-out) backwards; }
.ate-anim.d1 { animation-delay: 0.06s; }
.ate-anim.d2 { animation-delay: 0.14s; }
.ate-anim.d3 { animation-delay: 0.22s; }
.ate-anim.d4 { animation-delay: 0.30s; }
.ate-anim.d5 { animation-delay: 0.38s; }
.ate-anim.d6 { animation-delay: 0.46s; }

.ate-fadein { animation: ate-fadein var(--duration-xl) var(--ease-out) backwards; }
.ate-slidein { animation: ate-slidein var(--duration-xl) var(--ease-out) backwards; }
.ate-pop { animation: ate-pop var(--duration-md) var(--ease-bounce) backwards; }

/* Reveal-on-scroll (JS toggles .is-visible).
   Progressive enhancement: content is visible by default; the hidden start
   state applies ONLY when JS is active (html.js). If scripts are disabled,
   slow, or error out, the content stays visible instead of a blank page. */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity var(--duration-xl) var(--ease-out),
                transform var(--duration-xl) var(--ease-out);
}
html.js .reveal { opacity: 0; transform: translateY(32px); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.40s; }

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ochre);
    animation: pulse-dot 1.6s var(--ease-out) infinite;
}

@media (prefers-reduced-motion: reduce) {
    .ate-anim, .ate-fadein, .ate-slidein, .ate-pop { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .pulse-dot { animation: none; }
    .marquee-track { animation: none; }
}


/* ═══════════════════════════════════════════════════════════
   HOVER LIFT  ·  add to anything to make it interactive
   ═══════════════════════════════════════════════════════════ */
.lift {
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.lift:hover {
    transform: translate(2px, -3px);
    box-shadow: var(--shadow-stamp);
}


/* ═══════════════════════════════════════════════════════════
   COLOR-BLOCK SECTIONS  ·  bold full-bleed
   ═══════════════════════════════════════════════════════════ */
.block-ink   { background: var(--ink); color: var(--paper); }
.block-brand { background: var(--brand-deep); color: var(--paper); }
.block-ochre { background: var(--ochre); color: var(--ink); }
.block-rust  { background: var(--rust); color: var(--paper); }
.block-paper { background: var(--paper); color: var(--ink); }


/* ═══════════════════════════════════════════════════════════
   CONTAINERS + SECTION SPACING
   ═══════════════════════════════════════════════════════════ */
.container-atelier { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-7); }
.container-narrow  { max-width: 880px; margin: 0 auto; padding: 0 var(--space-6); }
.container-wide    { max-width: 1440px; margin: 0 auto; padding: 0 var(--space-7); }

.section    { padding: var(--space-12) 0; }
.section-sm { padding: var(--space-9) 0; }
.section-lg { padding: var(--space-13) 0; }

.grid-asym { display: grid; grid-template-columns: 5fr 3fr; gap: var(--space-10); align-items: start; }
@media (max-width: 900px) { .grid-asym { grid-template-columns: 1fr; gap: var(--space-8); } }


/* ═══════════════════════════════════════════════════════════
   UTILITY  ·  color, font, layout
   ═══════════════════════════════════════════════════════════ */
.text-ink         { color: var(--ink); }
.text-ink-2       { color: var(--ink-2); }
.text-stone       { color: var(--stone); }
.text-brand       { color: var(--brand); }
.text-brand-deep  { color: var(--brand-deep); }
.text-ochre       { color: var(--ochre); }
.text-ochre-deep  { color: var(--ochre-deep); }
.text-paper       { color: var(--paper); }
.text-white       { color: #FFFFFF; }

.bg-paper      { background: var(--paper); }
.bg-paper-deep { background: var(--paper-deep); }
.bg-card       { background: var(--card); }
.bg-brand      { background: var(--brand); color: var(--paper); }
.bg-brand-deep { background: var(--brand-deep); color: var(--paper); }
.bg-ochre      { background: var(--ochre); color: var(--ink); }
.bg-ink        { background: var(--ink); color: var(--paper); }

.font-mono    { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.font-sans    { font-family: var(--font-sans); }
