﻿/* ==========================================================================
   SAVAINT â€” unified site styles
   Monochrome, large type, full-bleed sections. One accent (safety orange).
   ========================================================================== */

:root {
    --black: #000;
    --ink: #050506;
    --panel: #0a0a0c;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.28);
    --text: #f4f4f5;
    --muted: #8b8b94;
    --dim: #53535c;
    --accent: #ff6a1a;
    --pad: clamp(20px, 5vw, 72px);
    --max: 1480px;
    --wide: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: 72px; overscroll-behavior: none; }

body {
    background: var(--black);
    color: var(--text);
    font-family: var(--wide);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overscroll-behavior: none;
}

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #26262d; }
::-webkit-scrollbar-thumb:hover { background: #3a3a44; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Type helpers ---------- */
.label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 14px;
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

.display {
    font-family: var(--wide);
    font-stretch: 125%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 0.95;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 34px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-stretch: 112%;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: #fff; color: #000; border-color: #fff; }
.btn-solid { background: #fff; color: #000; border-color: #fff; }
.btn-solid:hover { background: transparent; color: #fff; }
.btn svg { width: 14px; height: 14px; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: 72px;
    transition: background 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}
.nav.solid {
    background: rgba(0, 0, 0, 0.94);
    border-bottom-color: var(--line);
}
.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wordmark {
    font-stretch: 125%;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    margin-right: -0.42em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 44px);
    list-style: none;
}
.nav-links a {
    font-size: 12px;
    font-stretch: 112%;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d4d4d8;
    padding: 6px 0;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 1px;
    background: var(--accent);
    transition: right 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
    border: 1px solid var(--line-strong);
    padding: 11px 22px !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: #fff; color: #000 !important; border-color: #fff; }

.menu-btn {
    display: none;
    width: 44px; height: 44px;
    background: none; border: 0;
    cursor: pointer;
    position: relative;
    z-index: 120;
}
.menu-btn span {
    position: absolute;
    left: 10px; right: 10px;
    height: 1px;
    background: #fff;
    transition: transform 0.3s, top 0.3s, opacity 0.3s;
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--pad);
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a {
    font-stretch: 125%;
    font-weight: 700;
    font-size: clamp(28px, 8vw, 48px);
    text-transform: uppercase;
    line-height: 1.25;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}
.mobile-menu a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: -2;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.92) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
}
.hero-content { padding-bottom: clamp(64px, 11vh, 120px); padding-top: 140px; width: 100%; }
.hero-kicker {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #c4c4cc;
    margin-bottom: 26px;
    display: flex; align-items: center; gap: 12px;
}
.hero-kicker i {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(255,106,26,0.7);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,106,26,0.6); }
    70% { box-shadow: 0 0 0 12px rgba(255,106,26,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,106,26,0); }
}
.hero h1 { font-size: clamp(42px, 8.6vw, 148px); max-width: 12ch; }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.85); }
.hero-sub {
    margin-top: 32px;
    max-width: 560px;
    color: #c4c4cc;
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(80px, 12vw, 190px) 0; border-top: 1px solid var(--line); position: relative; }
.section-head { display: flex; flex-direction: column; gap: 28px; margin-bottom: clamp(44px, 6vw, 90px); }
.section-title { font-size: clamp(34px, 5.6vw, 92px); max-width: 16ch; }
.section-intro { max-width: 560px; color: var(--muted); font-weight: 300; font-size: clamp(15px, 1.3vw, 18px); }

/* Mission */
.statement {
    font-stretch: 112%;
    font-weight: 500;
    font-size: clamp(26px, 4.4vw, 72px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    max-width: 22ch;
    margin-top: 40px;
}
.statement .dim { color: var(--dim); }

/* Capabilities list */
.cap-list { border-top: 1px solid var(--line); }
.cap-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: clamp(22px, 2.6vw, 38px) 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.35s;
    position: relative;
}
.cap-row::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 2px;
    background: var(--accent); transform: scaleY(0); transition: transform 0.35s;
}
.cap-row:hover { background: linear-gradient(90deg, rgba(255,255,255,0.03), transparent 70%); }
.cap-row:hover::before { transform: scaleY(1); }
.cap-name, .cap-desc { transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.cap-row:hover .cap-name, .cap-row:hover .cap-desc { transform: translateX(16px); }
.cap-num { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.1em; transition: color 0.3s; }
.cap-row:hover .cap-num { color: var(--accent); }
.cap-name { font-stretch: 118%; font-weight: 600; font-size: clamp(20px, 2.8vw, 42px); text-transform: uppercase; line-height: 1.05; letter-spacing: -0.005em; }
.cap-desc { color: var(--muted); font-weight: 300; font-size: 15px; max-width: 460px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about-lead { font-stretch: 112%; font-weight: 500; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.25; letter-spacing: -0.01em; max-width: 30ch; }
.about-text { margin-top: 24px; color: var(--muted); font-weight: 300; max-width: 520px; }
.facts { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 28px 56px; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; min-width: 120px; }
.facts span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts strong { font-stretch: 118%; font-weight: 600; font-size: 18px; text-transform: uppercase; }
.checklist { list-style: none; border-top: 1px solid var(--line); }
.checklist li { padding: 22px 0 22px 34px; border-bottom: 1px solid var(--line); position: relative; font-weight: 300; color: #d4d4d8; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 31px; width: 16px; height: 1px; background: var(--accent); }

.philosophy { margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); padding-top: 32px; display: grid; gap: 24px; }
.philosophy p { font-stretch: 112%; font-weight: 500; font-size: clamp(20px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -0.01em; max-width: 36ch; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.industries > div { padding: 32px 24px 36px 0; }
.industries > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.industries span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--accent); }
.industries h3 { font-stretch: 118%; font-weight: 600; font-size: clamp(18px, 1.9vw, 28px); text-transform: uppercase; line-height: 1.1; margin-top: 36px; }

/* Method */
.process { background: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 36px 32px 20px 0; position: relative; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.step + .step::before { left: -1px; }
.steps.in .step::before { width: 100%; }
.step-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--accent); }
.step h3 { font-stretch: 125%; font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 38px); margin: 28px 0 16px; line-height: 1; }
.step p { color: var(--muted); font-weight: 300; font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 120px); }
.contact-direct { margin-top: 48px; display: grid; gap: 22px; }
.contact-direct div { border-top: 1px solid var(--line); padding-top: 16px; }
.contact-direct span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-direct a { font-stretch: 112%; font-weight: 500; font-size: clamp(16px, 1.6vw, 22px); word-break: break-word; }
.contact-direct a:hover { color: var(--accent); }

form { display: grid; gap: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 10px; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    padding: 12px 0;
    font-size: 16px;
    border-radius: 0;
    outline: none;
    transition: border-color 0.25s;
}
.input:focus { border-bottom-color: var(--accent); }
.input::placeholder { color: var(--dim); }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #8b8b94 50%), linear-gradient(135deg, #8b8b94 50%, transparent 50%);
    background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
    background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { background: #0a0a0c; color: #fff; }
textarea.input { resize: vertical; min-height: 120px; }
.btn[disabled] { opacity: 0.5; cursor: wait; }
.toast {
    display: none;
    border: 1px solid var(--line-strong);
    border-left: 2px solid var(--accent);
    padding: 18px 20px;
    font-size: 14px;
    color: #d4d4d8;
    background: var(--panel);
}
.toast.show { display: block; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: #000; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-word { font-stretch: 125%; font-weight: 800; font-size: clamp(36px, 8vw, 120px); letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; }
.foot-cols { display: flex; gap: clamp(32px, 6vw, 90px); flex-wrap: wrap; }
.foot-cols h4 { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-cols a, .foot-cols p { display: block; font-size: 14px; color: #d4d4d8; padding: 4px 0; }
.foot-cols a:hover { color: var(--accent); }
.foot-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease-out, transform 0.55s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.05s; }
.js .reveal.d2 { transition-delay: 0.1s; }
.js .reveal.d3 { transition-delay: 0.15s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .contact-grid, .about-grid { grid-template-columns: 1fr; }
    .industries { grid-template-columns: 1fr 1fr; }
    .industries > div, .industries > div + div { padding: 28px 16px 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .steps { grid-template-columns: 1fr 1fr; }
    .step { padding: 32px 20px 24px 0; border-bottom: 1px solid var(--line); }
    .step + .step { padding-left: 0; border-left: 0; }
    .step:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
    .cap-row { grid-template-columns: 50px 1fr; }
    .cap-desc { grid-column: 2; }
}
@media (max-width: 560px) {
    .row { grid-template-columns: 1fr; }
    .industries { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step:nth-child(even) { padding-left: 0; border-left: 0; }
    .btn { width: 100%; }
    .hero-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-kicker i { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
