/* Marco Nadas — jungle camo, field-survey edition */

:root {
    --ink: #0A0A09;
    --ink-2: #10130d;
    --jungle: #3D4D32;
    --olive: #5C6D45;
    --mud: #8B6B4C;
    --cream: #E5DDCB;
    --gold: #F2A900;
    --muted: rgba(229, 221, 203, 0.76);
    --line: rgba(92, 109, 69, 0.4);
    --display: 'Syne', sans-serif;
    --body: 'Space Grotesk', sans-serif;
    --gutter: clamp(16px, 5vw, 64px);
    --camo: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"%3E%3Cpath fill="%233D4D32" d="M20 30c30-25 70-10 80 15s-15 45-45 40S-10 55 20 30zM150 10c35-5 70 20 60 45s-50 20-65 5-25-45 5-50zM120 120c40-15 90 5 95 35s-40 50-75 40-60-60-20-75zM10 150c25-10 55 10 50 40s-35 45-55 30-20-60 5-70z"/%3E%3Cpath fill="%235C6D45" d="M70 70c20-10 45 5 40 25s-30 25-45 15-15-30 5-40zM180 80c20 0 35 20 25 35s-35 10-40-5 0-30 15-30zM60 200c20-15 50-5 50 15s-30 30-45 20-20-20-5-35zM190 200c15-10 40 0 40 15s-25 20-35 10-15-15-5-25z"/%3E%3Cpath fill="%238B6B4C" d="M110 30c10-5 25 0 22 12s-20 12-25 5-5-12 3-17zM30 110c12-5 25 5 20 15s-20 10-25 2 0-14 5-17zM150 175c10-5 22 2 20 12s-18 10-22 3-5-12 2-15z"/%3E%3C/svg%3E');
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--cream);
    font: 400 1.0625rem/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    scrollbar-color: var(--olive) var(--ink);
}

::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); container-type: inline-size; }

/* grain over everything */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency=".7" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)"/%3E%3C/svg%3E');
}

/* ---------- nav ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(10, 10, 9, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
    display: flex; align-items: center; gap: 10px;
    font: 800 1.35rem/1 var(--display);
    text-decoration: none; letter-spacing: -0.02em;
}
.brand img { width: 40px; height: 40px; flex-shrink: 0; transition: transform .3s; }
.brand:hover img { transform: rotate(-12deg); }
.brand b { margin-left: .25em; color: var(--olive); font-weight: 800; }
.nav-links { display: flex; gap: clamp(16px, 3vw, 40px); align-items: center; }
.nav-links a {
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    color: var(--muted); transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links .gh {
    display: grid; place-items: center; width: 40px; height: 40px;
    background: var(--jungle); color: var(--cream);
}
.nav-links .gh:hover { background: var(--gold); color: var(--ink); }
.gh svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 720px) {
    .brand span, .nav-links .gh { display: none; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 0.85rem; }
}

/* language sticker */
.lang {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
    background: var(--gold); color: var(--ink); text-decoration: none;
    font: 800 1.05rem/1 var(--display);
    border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--jungle);
    transition: transform .25s, box-shadow .25s;
}
.lang:hover { transform: translateY(-3px) rotate(-8deg); box-shadow: 6px 6px 0 var(--olive); }

/* ---------- hero ---------- */
.hero { padding: 112px 0 0; position: relative; }
.hero .wrap {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px);
    align-items: center; min-height: calc(100svh - 112px - 150px);
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; min-height: 0; } }

.status {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px; border: 2px solid var(--olive);
    font-weight: 600; font-size: 0.9rem; color: var(--gold);
}
.status::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
    animation: blink 1.6s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .2; } }

.hero-copy { container-type: inline-size; }
.hero h1 {
    margin: 24px 0 0;
    font: 800 min(15cqi, 7.6rem)/0.86 var(--display);
    letter-spacing: -0.045em; text-transform: uppercase;
}
.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px var(--olive);
    background: var(--camo) 0 0 / 180px;
    -webkit-background-clip: text; background-clip: text;
    animation: camo-drift 30s linear infinite;
}
@keyframes camo-drift { to { background-position: 360px 180px; } }

.hero .lede {
    max-width: 34em; margin: 28px 0 0; padding-left: 20px;
    border-left: 4px solid var(--gold);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted);
}
.hero .lede strong { color: var(--cream); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
    display: inline-block; padding: 16px 28px;
    font: 700 1rem/1 var(--display); text-decoration: none;
    border: 2px solid var(--gold); background: var(--gold); color: var(--ink);
    box-shadow: 6px 6px 0 var(--jungle);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--olive); }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--olive); }
.btn.ghost:hover { background: var(--olive); color: var(--ink); }
@media (max-width: 520px) { .hero .actions .btn { flex: 1 1 100%; text-align: center; } }

/* survey map — the one big motion moment */
.survey { position: relative; width: 100%; max-width: 600px; justify-self: end; }
@media (max-width: 900px) { .survey { justify-self: center; max-width: 480px; } }
.survey svg { width: 100%; height: auto; overflow: visible; }
.frame { fill: none; stroke: var(--olive); stroke-width: 3; }
.contour { fill: none; stroke: var(--olive); stroke-width: 1.1; opacity: .45; }
.contour.major { stroke-width: 2; opacity: .75; }
.aoi { fill: rgba(242, 169, 0, .05); stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 6 6; }
.plan { fill: none; stroke: rgba(229, 221, 203, .16); stroke-width: 1.5; }
.flown { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.drone-body { fill: var(--ink); stroke: var(--gold); stroke-width: 2; }
.drone-rotor { fill: rgba(229, 221, 203, .12); stroke: var(--cream); stroke-width: 1.5; }
.footprint { fill: rgba(242, 169, 0, .12); stroke: var(--gold); stroke-width: 1; }
.home { fill: var(--ink); stroke: var(--cream); stroke-width: 1.5; }
.map-label { fill: var(--muted); font: 500 13px var(--body); }
.map-label.big { fill: var(--cream); font: 700 15px var(--display); }
.telemetry {
    position: absolute; right: 0; bottom: 0;
    padding: 10px 14px; background: rgba(10, 10, 9, .88); border: 1px solid var(--line);
    font-size: 0.82rem; line-height: 1.5; color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.telemetry b { color: var(--gold); font-weight: 600; }

/* ---------- tape marquees ---------- */
.tapes { position: relative; height: 150px; margin: 8px 0 0; overflow: hidden; }
.tape {
    position: absolute; left: -5%; width: 110%;
    display: flex; overflow: hidden; padding: 14px 0;
    font: 800 clamp(1.1rem, 2.2vw, 1.6rem)/1 var(--display); text-transform: uppercase; letter-spacing: -0.01em;
    border-block: 3px solid var(--ink);
}
.tape.a { top: 24px; background: var(--gold); color: var(--ink); transform: rotate(-3deg); z-index: 2; }
.tape.b { top: 60px; background: var(--jungle); color: var(--cream); transform: rotate(2.5deg); }
.tape-track { display: flex; flex-shrink: 0; animation: run 40s linear infinite; }
.tape.b .tape-track { animation-direction: reverse; animation-duration: 48s; }
.tape-track span { padding: 0 22px; white-space: nowrap; }
.tape-track span::after { content: '/'; margin-left: 44px; opacity: .45; }
@keyframes run { to { transform: translateX(-100%); } }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
    margin-bottom: 40px; padding-bottom: 20px; border-bottom: 6px solid var(--olive);
}
.sec-head h2 {
    margin: 0; font: 800 min(7.1cqi, 4.5rem)/0.95 var(--display);
    text-transform: uppercase; letter-spacing: -0.035em;
}
.sec-head p { margin: 0; max-width: 30em; color: var(--muted); text-wrap: pretty; }

/* about */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about .big { margin: 0; font: 700 clamp(1.6rem, 3.2vw, 2.5rem)/1.15 var(--display); letter-spacing: -0.02em; }
.about .copy p { margin: 0 0 1em; color: var(--muted); max-width: 36em; }
.about .copy p strong { color: var(--cream); font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; font-weight: 600; }

/* capabilities: label + sticker patches */
.cap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px 48px; padding: 32px 0; border-top: 2px solid var(--jungle); }
.cap:last-child { border-bottom: 2px solid var(--jungle); }
@media (max-width: 760px) { .cap { grid-template-columns: 1fr; } }
.cap h3 { margin: 0 0 8px; font: 800 clamp(1.1rem, 1.5vw, 1.3rem)/1.15 var(--display); overflow-wrap: break-word; text-transform: uppercase; letter-spacing: -0.02em; }
.cap h3 + p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.patches { display: flex; flex-wrap: wrap; gap: 12px; align-content: flex-start; }
.patch {
    padding: 8px 14px; font: 700 0.9rem/1.2 var(--display);
    color: var(--ink); background: var(--olive);
    border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--jungle);
    transform: rotate(-1.5deg); transition: transform .2s, background .2s;
}
.patch:nth-child(3n) { transform: rotate(1.8deg); }
.patch:nth-child(4n) { transform: rotate(-.4deg); }
.patch.hot { background: var(--gold); }
.patch:hover { transform: rotate(0) scale(1.08); background: var(--cream); }

/* work: tracklist rows, camo sweeps in on hover */
.group-title { margin: 64px 0 0; padding-bottom: 12px; font: 700 1rem var(--body); color: var(--gold); border-bottom: 2px solid var(--gold); }
.row {
    position: relative; isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 12px 40px; align-items: start;
    padding: 28px 8px; border-bottom: 1px solid var(--line);
    text-decoration: none;
}
.row::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--camo) 0 0 / 200px, var(--jungle);
    opacity: .35; clip-path: inset(0 100% 0 0);
    transition: clip-path .5s cubic-bezier(.7, 0, .2, 1);
}
.row:hover::before, .row:focus-visible::before { clip-path: inset(0 0 0 0); }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } }
.row h4 { margin: 0; font: 800 clamp(1.35rem, 2.2vw, 1.9rem)/1 var(--display); overflow-wrap: break-word; text-transform: uppercase; letter-spacing: -0.03em; }
.row h4 small { display: block; margin-top: 8px; font: 500 0.9rem var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.row p { margin: 0 0 12px; color: var(--muted); max-width: 40em; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack span { padding: 3px 8px; font-size: 0.8rem; font-weight: 600; border: 1px solid var(--line); color: var(--cream); }
.tag {
    justify-self: end; white-space: nowrap; padding: 6px 12px;
    font: 700 0.85rem/1 var(--display); border: 2px solid currentColor;
    transition: background .2s, color .2s;
}
.tag.live { color: var(--gold); }
.tag.code { color: var(--cream); }
.tag.wip { color: #b48c63; }
.tag.private { color: #8a9d6c; }
@media (max-width: 860px) { .tag { justify-self: start; } }
a.row:hover .tag { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.feature {
    position: relative; padding: clamp(24px, 4vw, 48px);
    border: 3px solid var(--gold); background: var(--ink-2);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px;
}
.feature > div { container-type: inline-size; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.feature::after { content: ''; position: absolute; top: -14px; right: 28px; width: 28px; height: 28px; background: var(--gold); }
.feature h3 { margin: 0 0 16px; font: 800 min(8.8cqi, 3.8rem)/0.9 var(--display); text-transform: uppercase; letter-spacing: -0.04em; }
.feature > div > p { color: var(--muted); margin: 0 0 24px; }
.products { list-style: none; margin: 0; padding: 0; }
.products li { padding: 16px 0; border-top: 1px solid var(--line); }
.products li:last-child { border-bottom: 1px solid var(--line); }
.products b { display: block; font: 700 1.1rem var(--display); color: var(--cream); }
.products span { color: var(--muted); font-size: 0.95rem; }

/* contact */
.contact {
    container-type: inline-size;
    position: relative; isolation: isolate; text-align: center; padding: clamp(48px, 8vw, 96px) var(--gutter);
    border: 4px solid var(--jungle); overflow: hidden;
}
.contact::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--camo) 0 0 / 260px; opacity: .14; }
.contact h2 { margin: 0 0 20px; font: 800 min(9.2cqi, 6rem)/0.9 var(--display); text-transform: uppercase; letter-spacing: -0.045em; }
.contact h2 em { font-style: normal; color: var(--gold); }
.contact p { margin: 0 auto 36px; max-width: 32em; color: var(--muted); }
.contact .actions { justify-content: center; }

footer { padding: 0 0 96px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .flown { stroke-dashoffset: 0; }
    html { scroll-behavior: auto; }
}
