/* =========================================================
   MYMSA INDUSTRIAL — Rediseño 2026
   Dirección: Ingeniería pesada · industrial refinado
   Tema: grafito oscuro + acento naranja seguridad + blueprint
   ========================================================= */

/* ---------- Variables ---------- */
:root {
    --bg:        #0d0e10;
    --bg-2:      #131418;
    --panel:     #17191e;
    --panel-2:   #1d2026;
    --line:      #2a2e36;
    --line-2:    #363b45;
    --steel:     #8b9099;
    --ink:       #f2f3f5;
    --ink-soft:  #a7adb6;
    --ink-dim:   #6d737d;
    --accent:    #ff5a1f;   /* safety orange */
    --accent-2:  #ff7a45;
    --accent-dk: #d8410f;
    --yellow:    #ffcf2d;

    --font-display: "Archivo", system-ui, sans-serif;
    --font-body:    "Archivo", system-ui, sans-serif;
    --font-mono:    "Space Mono", ui-monospace, monospace;

    --wrap: 1240px;
    --gutter: clamp(20px, 5vw, 64px);
    --radius: 4px;

    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* Blueprint grid backdrop */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: .12;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2*var(--gutter), var(--wrap)); margin-inline: auto; position: relative; z-index: 1; }
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; z-index: 1; }

/* Compensar el navbar fijo al saltar a una sección con ancla */
[id] { scroll-margin-top: 92px; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--accent);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; }
.h-xl { font-size: clamp(2.6rem, 8vw, 6.2rem); font-weight: 900; text-transform: uppercase; }
.h-lg { font-size: clamp(2rem, 5vw, 3.6rem); text-transform: uppercase; }
.lead { color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
    --bh: 56px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: var(--bh);
    padding: 0 26px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: var(--radius);
    transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #140700; box-shadow: 0 10px 30px -12px var(--accent); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Navbar ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    padding-inline: var(--gutter);
    transition: background .4s, border-color .4s, height .4s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(13,14,16,.82);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
    height: 66px;
}
.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 900; letter-spacing: -.03em; font-size: 1.45rem; text-transform: uppercase; }
.brand b { color: var(--accent); }
.brand .tick { font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; color: var(--ink-dim); font-weight: 400; align-self: center; margin-left: 4px; border-left: 1px solid var(--line-2); padding-left: 10px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    position: relative;
    padding: 6px 0;
    transition: color .25s;
}
.nav-links a::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px; background: var(--accent);
    transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .btn { height: 42px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; }
.lang-switch a { color: var(--ink-dim); padding: 2px 2px; transition: color .2s; }
.lang-switch a.on { color: var(--accent); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .sep { color: var(--line-2); }
.lang-switch a::after { display: none; }

.burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; align-items: flex-end; z-index: 110; }
.burger span { width: 26px; height: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s, width .3s; }
.burger span:nth-child(2){ width: 18px; }
.nav.open .burger span:nth-child(1){ transform: translateY(7px) rotate(45deg); width: 26px; }
.nav.open .burger span:nth-child(2){ opacity: 0; }
.nav.open .burger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); width: 26px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 0 var(--gutter) clamp(48px, 7vw, 96px);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(13,14,16,.55) 0%, rgba(13,14,16,.35) 40%, rgba(13,14,16,.92) 92%),
        linear-gradient(90deg, rgba(13,14,16,.7) 0%, transparent 55%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin-inline: auto; }
.hero h1 { margin: 8px 0 20px; }
.hero .accent-line { color: var(--accent); }
.hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.hero-sub .tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* corner ticks */
.corner { position: absolute; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; color: var(--ink-dim); text-transform: uppercase; }
.corner.tl { top: 96px; left: var(--gutter); }
.corner.tr { top: 96px; right: var(--gutter); text-align: right; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .25em; color: var(--ink-dim); text-transform: uppercase; }
.scroll-hint .bar { width: 1px; height: 42px; background: linear-gradient(var(--accent), transparent); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100%{ opacity:.3; transform: scaleY(.6);} 50%{ opacity:1; transform: scaleY(1);} }

/* ---------- Stats strip ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(32px, 5vw, 54px) clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.03em; }
.stat .num b { color: var(--accent); }
.stat .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Section head ---------- */
.sec-head { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 900px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-copy p { color: var(--ink-soft); margin-bottom: 20px; }
.about-copy .work-list { margin-top: 26px; display: grid; gap: 2px; }
.about-copy .work-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .98rem; }
.about-copy .work-list li::before { content: "→"; color: var(--accent); }
.about-media { position: relative; }
.about-media img { width: 100%; height: clamp(360px, 46vw, 560px); object-fit: cover; border-radius: var(--radius); filter: contrast(1.03); }
.about-media .frame { position: absolute; inset: -14px -14px auto auto; width: 120px; height: 120px; border: 1px solid var(--accent); border-radius: var(--radius); z-index: -1; }
.about-media .caption { position: absolute; left: 16px; bottom: 16px; background: rgba(13,14,16,.85); backdrop-filter: blur(6px); border: 1px solid var(--line-2); padding: 10px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--panel); padding: clamp(30px, 3.5vw, 44px); position: relative; transition: background .35s; overflow: hidden; }
.svc::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .4s var(--ease); }
.svc:hover { background: var(--panel-2); }
.svc:hover::after { width: 100%; }
.svc .idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.svc h3 { font-size: 1.4rem; margin: 22px 0 12px; text-transform: uppercase; letter-spacing: -.01em; }
.svc p { color: var(--ink-soft); font-size: .96rem; }
.svc .ico { position: absolute; right: -10px; bottom: -14px; font-size: 6rem; line-height: 1; color: var(--line-2); opacity: .5; transition: color .35s, transform .5s var(--ease); font-family: var(--font-display); font-weight: 900; }
.svc:hover .ico { color: var(--accent-dk); transform: translate(-6px,-6px); }

/* ---------- Split panels (mision / vision / politica) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--panel); padding: clamp(30px, 3.5vw, 46px); }
.pillar .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.pillar h3 { font-size: 1.7rem; margin: 16px 0 16px; text-transform: uppercase; }
.pillar p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; grid-auto-flow: dense; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: grayscale(.15); }
.gallery figure:hover img { transform: scale(1.08); filter: grayscale(0); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.gallery figure:hover figcaption { opacity: 1; transform: none; }
.gallery .big { grid-column: span 2; grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- Catálogo (lead magnet) ---------- */
.catalog-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.catalog-copy .lead { color: var(--ink-soft); }
.catalog-form { display: flex; flex-direction: column; gap: 12px; }
.catalog-form input { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink); padding: 14px 16px; font-family: var(--font-body); font-size: 15px; transition: border-color .25s, box-shadow .25s; }
.catalog-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.14); }
.catalog-form ::placeholder { color: var(--ink-dim); }
.catalog-form .btn { justify-content: center; }
@media (max-width: 760px) { .catalog-band { grid-template-columns: 1fr; } }

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.testi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); position: relative; overflow: hidden; }
.testi::after { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--accent); transition: height .4s var(--ease); }
.testi:hover::after { height: 100%; }
.testi .quote-mark { font-family: var(--font-display); font-weight: 900; font-size: 4rem; line-height: .6; color: var(--accent); opacity: .5; margin-bottom: 8px; }
.testi blockquote { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; margin-bottom: 22px; }
.testi figcaption { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); padding-top: 18px; }
.testi .who { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; }
.testi .where { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- Clients marquee ---------- */
.clients { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(48px,7vw,80px) 0; }
.clients .head { text-align: center; margin-bottom: 40px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 0; width: max-content; align-items: center; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
    height: 84px; width: auto; margin: 0 16px;
    padding: 16px 26px; background: #fff; border-radius: 8px;
    object-fit: contain; opacity: .88;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.marquee-track img:hover { opacity: 1; transform: translateY(-4px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.contact-info .line { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-info .line:last-child { border-bottom: 1px solid var(--line); }
.contact-info .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); min-width: 92px; padding-top: 3px; }
.contact-info .v { color: var(--ink); }
.contact-info .v a:hover { color: var(--accent); }
.contact-info .map { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; filter: grayscale(.4) invert(.92) hue-rotate(180deg) contrast(.9); }
.contact-info .map iframe { width: 100%; height: 260px; border: 0; display: block; }

.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); }
.form .field { margin-bottom: 20px; }
.form label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 9px; }
.form input, .form textarea, .form select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    color: var(--ink);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color .25s, box-shadow .25s;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.14); }
.form ::placeholder { color: var(--ink-dim); }
.form .btn { width: 100%; justify-content: center; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a7adb6' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form input[type=file] { background: var(--bg); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 14px 16px; width: 100%; color: var(--ink-soft); font-size: 14px; cursor: pointer; }
.form input[type=file]::file-selector-button { background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink); padding: 9px 14px; border-radius: var(--radius); margin-right: 14px; cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: .2s; }
.form input[type=file]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
.form-success { background: rgba(37,211,102,.1); border: 1px solid #25d366; color: #8ff0b5; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(56px,7vw,84px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { font-size: 1.6rem; margin-bottom: 18px; }
.footer p { color: var(--ink-soft); font-size: .95rem; max-width: 34ch; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 18px; }
.footer li { margin-bottom: 12px; }
.footer li a, .footer address a { color: var(--ink-soft); font-size: .95rem; font-style: normal; transition: color .2s; }
.footer li a:hover, .footer address a:hover { color: var(--accent); }
.footer address { color: var(--ink-soft); font-size: .95rem; font-style: normal; line-height: 1.7; }
.footer-bottom { margin-top: clamp(40px,6vw,64px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); }
.footer-bottom a { color: var(--ink-soft); }
.footer-bottom a:hover { color: var(--accent); }
.footer-meta { display: inline-flex; align-items: center; gap: 10px; }
.footer-meta .sep { color: var(--line-2); }
.admin-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-dim); transition: color .2s; }
.admin-link:hover { color: var(--accent); }
.admin-link svg { opacity: .8; }

/* ---------- Floating actions ---------- */
.wa {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25d366; color: #062e13;
    box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
    transition: transform .35s var(--ease);
}
.wa:hover { transform: translateY(-4px) scale(1.05); }
.wa svg { width: 28px; height: 28px; }
.to-top {
    position: fixed; right: 24px; bottom: 92px; z-index: 89;
    width: 46px; height: 46px; border-radius: var(--radius);
    display: grid; place-items: center;
    background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink);
    opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: .35s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-bg img { animation: none; transform: none; }
    * { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3){ border-left: none; }
    .stat:nth-child(n+3){ border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
    .nav-links {
        position: fixed; inset: 0 0 0 auto; width: min(78vw, 340px);
        flex-direction: column; align-items: flex-start; justify-content: center;
        gap: 26px; padding: 0 var(--gutter);
        background: var(--bg-2); border-left: 1px solid var(--line);
        transform: translateX(100%); transition: transform .45s var(--ease);
    }
    .nav.open .nav-links { transform: none; }
    .nav-links a { font-size: 1rem; }
    .burger { display: flex; }
    .pillars { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .gallery .big { grid-column: span 2; grid-row: span 1; }
    .corner { display: none; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .hero-sub .tag { font-size: 10.5px; padding: 6px 10px; }
}
