/* ==========================================================================
   FireX Studio LLC — Ember
   Palette is a blacksmith's heat scale: steel glows faint red at 550°C and
   reaches welding heat near 1300°C. Every accent on this site is a real
   forging temperature, and sections warm as you move through the process.
   ========================================================================== */

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

:root {
    /* --- Ground: cooled forge ash, and the clean face of the anvil --- */
    --char:      #f7f3ef;
    --slag:      #ffffff;
    --slag-2:    #fffaf4;
    --scale:     rgba(45, 28, 20, 0.13);
    --scale-hot: rgba(194, 46, 12, 0.34);

    /* --- Text --- */
    --ash:   #241611;
    --smoke: #6a544a;
    --soot:  #7d6357;

    /* --- Heat scale: the true forging colours, for fills and dots --- */
    --h550:  #8b1a00;   /* faint red   */
    --h700:  #ff3d1f;   /* red         */
    --h900:  #ff6b2c;   /* orange      */
    --h1100: #ffc34d;   /* yellow — stands in for welding heat, since true
                           white-hot is invisible against a light ground */

    /* --- The same scale, deepened to stay legible as text on a light ground.
           Brightness cannot carry the ramp here, so saturation does. --- */
    --tx550:  #7d1c02;
    --tx700:  #c22e0c;
    --tx900:  #a3480a;
    --tx1100: #7f5a05;

    --ramp:    linear-gradient(100deg, var(--h700) 0%, var(--h900) 42%, var(--h1100) 100%);
    --ramp-v:  linear-gradient(180deg, var(--h550) 0%, var(--h700) 34%, var(--h900) 70%, var(--h1100) 100%);
    --ramp-tx: linear-gradient(100deg, var(--tx700) 0%, #dd4f0d 52%, #b87405 100%);

    --bloom:    0 6px 20px rgba(255, 107, 44, 0.36);
    --bloom-lg: 0 10px 30px rgba(255, 107, 44, 0.46);
    --lift:     0 1px 2px rgba(45, 28, 20, 0.05), 0 10px 26px rgba(45, 28, 20, 0.06);
    --lift-hi:  0 2px 5px rgba(45, 28, 20, 0.07), 0 18px 44px rgba(45, 28, 20, 0.11);

    --r:    14px;
    --r-lg: 24px;
    --maxw: 1140px;
    --ease: cubic-bezier(0.32, 0.06, 0.2, 1);
    --t:    0.32s var(--ease);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--char);
    color: var(--ash);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
}

/* Fire burns from below: the heat bloom is anchored to the bottom of the
   viewport, not floating overhead like a generic aurora. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(92% 48% at 50% 118%, rgba(255, 107, 44, 0.20), transparent 66%),
        radial-gradient(58% 34% at 12% 104%, rgba(255, 61, 31, 0.13), transparent 70%),
        radial-gradient(54% 32% at 92% 100%, rgba(255, 195, 77, 0.16), transparent 70%);
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Signature 1: the page heats up as you read it -------------------------
   A gauge on the left edge fills with the heat ramp against scroll depth. */
.gauge {
    position: fixed;
    top: 0;
    left: 0;
    width: 2px;
    height: 100vh;
    z-index: 60;
    background: rgba(45, 28, 20, 0.08);
    pointer-events: none;
}

.gauge i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--ramp-v);
    transform: scaleY(var(--heat, 0));
    transform-origin: top center;
    box-shadow: 0 0 10px rgba(255, 107, 44, 0.55);
}

/* --- Signature 2: ash rises off a fire, it does not fall ------------------ */
.ash-field {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.ash-field span {
    position: absolute;
    bottom: -12px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--h550);
    opacity: 0;
    animation: rise linear infinite;
}

@keyframes rise {
    0%   { opacity: 0;    transform: translate3d(0, 0, 0) scale(0.6); }
    12%  { opacity: 0.30; }
    70%  { opacity: 0.14; }
    100% { opacity: 0;    transform: translate3d(var(--drift, 30px), -100vh, 0) scale(1); }
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 3;
}

a { color: inherit; text-decoration: none; transition: color var(--t); }
svg { display: block; }
img { display: block; max-width: 100%; }

:focus-visible {
    outline: 2px solid var(--tx700);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== Typography ======================================================== */

h1, h2, h3, h4 {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.7rem, 7.2vw, 5.2rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.1rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; }

.hot {
    background: var(--ramp-tx);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Temperature labels. The number is the section's place in the process, and
   the colour of the dot is that temperature — the label carries real data. */
.temp {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tx900);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

/* The dot keeps the true forging colour so the ramp stays honest; the words
   take a deepened version of it so they stay readable on paper. */
.temp::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot, var(--h900));
    box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.15);
    flex-shrink: 0;
}

.temp.t550  { color: var(--tx550);  --dot: var(--h550); }
.temp.t700  { color: var(--tx700);  --dot: var(--h700); }
.temp.t900  { color: var(--tx900);  --dot: var(--h900); }
.temp.t1100 { color: var(--tx1100); --dot: var(--h1100); }

/* Welding heat tops the scale, so on a light page it reads as the densest
   mark on it: full-strength ink, with the whole ramp burning in the dot. */
.temp.t1300 { color: var(--ash); }
.temp.t1300::before { background: var(--ramp); }

.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    color: var(--smoke);
    line-height: 1.66;
    max-width: 56ch;
}

/* ===== Buttons =========================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
}

.btn svg { flex-shrink: 0; }

.btn-fire {
    background: var(--ramp);
    color: #200800;
    box-shadow: var(--bloom);
}

.btn-fire:hover {
    transform: translateY(-2px);
    box-shadow: var(--bloom-lg);
}

.btn-quiet {
    background: transparent;
    border-color: var(--scale);
    color: var(--ash);
}

.btn-quiet:hover {
    border-color: var(--scale-hot);
    color: var(--tx700);
    transform: translateY(-2px);
}

/* ===== Navigation ======================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 20px 0;
    transition: background var(--t), padding var(--t), border-color var(--t);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(247, 243, 239, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--scale);
    box-shadow: 0 1px 20px rgba(45, 28, 20, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.045em;
    color: var(--ash);
}

.brand-mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(255, 107, 44, 0.42));
}

.brand b { font-weight: 800; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--smoke);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--ramp);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}

.nav-links a:hover { color: var(--ash); }
.nav-links a:hover::after,
.nav-links a.current::after { transform: scaleX(1); }
.nav-links a.current { color: var(--ash); }

.nav-links .nav-cta {
    padding: 10px 20px;
    border: 1px solid var(--scale);
    border-radius: 999px;
    color: var(--ash);
}

.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { border-color: var(--scale-hot); color: var(--tx700); }

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    background: none;
    border: 1px solid var(--scale);
    border-radius: 10px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--ash);
    transition: transform var(--t), opacity var(--t);
}

.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== Page shell ======================================================== */

.section { padding: 108px 0; position: relative; }
.section-tight { padding: 76px 0; }

.rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--scale) 18%, var(--scale) 82%, transparent);
    position: relative;
    z-index: 3;
}

.sec-head { max-width: 660px; margin-bottom: 56px; }
.sec-head h2 { margin: 20px 0 18px; }
.sec-head p { color: var(--smoke); max-width: 56ch; }

/* ===== Hero ============================================================== */

.hero {
    position: relative;
    padding: 190px 0 96px;
}

.hero-inner { max-width: 900px; }
.hero h1 { margin: 26px 0 30px; }
.hero .lead { max-width: 60ch; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 42px;
}

/* Hero thesis: a billet of steel at welding heat, cooling along its length.
   The gradient is the heat scale read left to right. */
.billet {
    margin-top: 76px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--h1100) 0%, var(--h900) 32%, var(--h700) 62%, var(--h550) 88%, rgba(139, 26, 0, 0) 100%);
    box-shadow: 0 0 26px rgba(255, 107, 44, 0.5);
    position: relative;
    z-index: 3;
    animation: breathe 5.5s var(--ease) infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.72; }
    50%      { opacity: 1; }
}

.billet-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    color: var(--soot);
    position: relative;
    z-index: 3;
}

/* ===== Process: the heat ramp ============================================ */

.ramp { display: grid; gap: 0; }

.step {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 46px;
    padding: 40px 0;
    border-top: 1px solid var(--scale);
    align-items: start;
}

.step:last-child { border-bottom: 1px solid var(--scale); }
.step-body h3 { margin-bottom: 12px; }
.step-body p { color: var(--smoke); max-width: 60ch; }

.step-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.step-state {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--soot);
}

/* ===== Cards ============================================================= */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.card {
    background: var(--slag);
    border: 1px solid var(--scale);
    border-radius: var(--r-lg);
    padding: 34px 32px;
    box-shadow: var(--lift);
    transition: border-color var(--t), background var(--t), transform var(--t), box-shadow var(--t);
}

.card:hover {
    border-color: var(--scale-hot);
    background: var(--slag-2);
    transform: translateY(-3px);
    box-shadow: var(--lift-hi);
}

.card h3, .card h4 { margin: 18px 0 12px; }
.card p { color: var(--smoke); font-size: 0.9375rem; }

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 107, 44, 0.12);
    border: 1px solid var(--scale-hot);
    color: var(--tx900);
}

/* ===== App listing =======================================================
   A store-style grid, rendered in the forge palette. Each card states the
   platform truth plainly: what you can install today, what is still hot. */

.apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
    gap: 20px;
}

.app {
    display: flex;
    flex-direction: column;
    background: var(--slag);
    border: 1px solid var(--scale);
    border-radius: var(--r-lg);
    padding: 32px 30px;
    box-shadow: var(--lift);
    transition: border-color var(--t), background var(--t), transform var(--t), box-shadow var(--t);
}

.app:hover {
    border-color: var(--scale-hot);
    background: var(--slag-2);
    transform: translateY(-3px);
    box-shadow: var(--lift-hi);
}

.app-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #200800;
    box-shadow: 0 6px 16px rgba(255, 107, 44, 0.30);
    flex-shrink: 0;
}

.app-icon.i-song  { background: linear-gradient(150deg, var(--h700), var(--h900)); }
.app-icon.i-uv    { background: linear-gradient(150deg, var(--h900), var(--h1100)); }
.app-icon.i-money { background: linear-gradient(150deg, var(--h550), var(--h900)); }

.app-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 22px 0 10px;
}

.app-desc {
    color: var(--smoke);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }

/* On the home page the cards stop at the chips — no trailing gap. */
.app .chips:last-child { margin-bottom: 0; }

.chip {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 11px;
    border: 1px solid var(--scale);
    border-radius: 999px;
    color: var(--smoke);
    white-space: nowrap;
}

.chip-hot { border-color: var(--scale-hot); color: var(--tx900); }


/* ===== Negative-space list: what we refuse to do ========================= */

.refuse { display: grid; gap: 0; }

.refuse-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--scale);
    align-items: baseline;
}

.refuse-row:first-child { border-top: 1px solid var(--scale); }

.refuse-mark {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1rem;
    color: var(--h550);
    line-height: 1.4;
}

.refuse-row.yes .refuse-mark { color: var(--tx900); }

.refuse-row strong {
    font-weight: 600;
    color: var(--ash);
    display: block;
    margin-bottom: 3px;
}

.refuse-row span { color: var(--smoke); font-size: 0.9375rem; }

/* ===== Facts strip ======================================================= */

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    border: 1px solid var(--scale);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--slag);
    box-shadow: var(--lift);
}

.fact {
    padding: 30px 28px;
    border-right: 1px solid var(--scale);
}

.fact:last-child { border-right: none; }

.fact-k {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--soot);
    margin-bottom: 10px;
}

.fact-v {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* ===== Forge panel (Products) ============================================ */

.forge {
    border: 1px solid var(--scale-hot);
    border-radius: var(--r-lg);
    padding: 60px 48px;
    background:
        radial-gradient(70% 100% at 50% 118%, rgba(255, 107, 44, 0.16), transparent 72%),
        var(--slag);
    box-shadow: var(--lift);
    text-align: center;
}

.forge h2 { margin: 22px 0 18px; }
.forge p { color: var(--smoke); max-width: 52ch; margin: 0 auto; }
.forge .temp { justify-content: center; }

.coals {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    height: 40px;
    margin-top: 40px;
}

.coals i {
    display: block;
    width: 5px;
    border-radius: 999px;
    background: var(--ramp-v);
    animation: flicker 2.4s var(--ease) infinite;
}

.coals i:nth-child(1) { height: 40%; animation-delay: 0s; }
.coals i:nth-child(2) { height: 72%; animation-delay: 0.3s; }
.coals i:nth-child(3) { height: 100%; animation-delay: 0.6s; }
.coals i:nth-child(4) { height: 62%; animation-delay: 0.15s; }
.coals i:nth-child(5) { height: 86%; animation-delay: 0.45s; }
.coals i:nth-child(6) { height: 34%; animation-delay: 0.75s; }

@keyframes flicker {
    0%, 100% { opacity: 0.4; transform: scaleY(0.86); }
    50%      { opacity: 1;   transform: scaleY(1); }
}

/* ===== Forms ============================================================= */

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 8px; }

.field label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--soot);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--ash);
    background: var(--slag);
    border: 1px solid var(--scale);
    border-radius: var(--r);
    transition: border-color var(--t), background var(--t);
}

.field textarea { resize: vertical; min-height: 148px; line-height: 1.65; }

.field input::placeholder,
.field textarea::placeholder { color: var(--soot); }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--scale-hot);
    background: var(--slag-2);
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236a544a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-note {
    font-size: 0.8125rem;
    color: var(--soot);
    line-height: 1.6;
}

.form-note a { color: var(--smoke); text-decoration: underline; text-underline-offset: 3px; }
.form-note a:hover { color: var(--tx700); }

/* ===== Contact details =================================================== */

.detail-list { display: grid; gap: 0; }

.detail {
    padding: 24px 0;
    border-bottom: 1px solid var(--scale);
}

.detail:first-child { border-top: 1px solid var(--scale); }

.detail-k {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--soot);
    margin-bottom: 8px;
}

.detail-v { font-size: 1rem; line-height: 1.6; }
.detail-v a { color: var(--tx700); }
.detail-v a:hover { color: var(--tx900); }
.detail-v small { display: block; color: var(--soot); font-size: 0.8125rem; margin-top: 6px; }

/* ===== Closing call ====================================================== */

.closer {
    border: 1px solid var(--scale);
    border-radius: var(--r-lg);
    padding: 72px 48px;
    text-align: center;
    background:
        radial-gradient(64% 120% at 50% 128%, rgba(255, 61, 31, 0.16), transparent 70%),
        var(--slag);
    box-shadow: var(--lift);
}

.closer h2 { margin: 22px 0 18px; }
.closer p { color: var(--smoke); max-width: 46ch; margin: 0 auto 34px; }
.closer .temp { justify-content: center; }

.closer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ===== Footer ============================================================ */

.footer {
    border-top: 1px solid var(--scale);
    padding: 66px 0 34px;
    position: relative;
    z-index: 3;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 48px;
}

.footer-about p {
    color: var(--smoke);
    font-size: 0.875rem;
    margin-top: 18px;
    max-width: 34ch;
}

.footer-col h5 {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--soot);
    margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--smoke); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--tx700); }

.footer-bottom {
    border-top: 1px solid var(--scale);
    padding-top: 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--soot);
}

/* ===== Scroll reveal ===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.lit { opacity: 1; transform: none; }

/* ===== Responsive ======================================================== */

@media (max-width: 900px) {
    .gauge { width: 100%; height: 2px; }
    .gauge i {
        background: linear-gradient(90deg, var(--h550), var(--h900) 55%, var(--h1100));
        transform: scaleX(var(--heat, 0));
        transform-origin: left center;
    }

    .burger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(84vw, 340px);
        height: 100dvh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
        padding: 32px 34px;
        background: var(--slag);
        border-left: 1px solid var(--scale);
        box-shadow: -12px 0 40px rgba(45, 28, 20, 0.12);
        transform: translateX(100%);
        /* Hidden means hidden: without this the closed panel stays in the tab
           order and keyboard focus disappears off-screen. */
        visibility: hidden;
        transition: transform 0.36s var(--ease), visibility 0.36s var(--ease);
    }

    .nav-links.open { transform: none; visibility: visible; }
    .nav-links a { font-size: 1.35rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; letter-spacing: -0.02em; }
    .nav-links .nav-cta { font-size: 1rem; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-about { grid-column: 1 / -1; }

    .step { grid-template-columns: 1fr; gap: 16px; }
    .fact { border-right: none; border-bottom: 1px solid var(--scale); }
    .fact:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
    .section { padding: 76px 0; }
    .section-tight { padding: 56px 0; }
    .hero { padding: 148px 0 68px; }
    .container { padding: 0 20px; }
    .forge, .closer { padding: 46px 24px; }
    .card { padding: 28px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .billet-scale { font-size: 0.625rem; }
    .billet-scale span:nth-child(2),
    .billet-scale span:nth-child(4) { display: none; }
}

/* ===== Motion preferences ================================================ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .ash-field { display: none; }
    .reveal { opacity: 1; transform: none; }
}
