/* ============================================================
   Invotech Enterprise — design system
   Palette drawn from the logo: deep pine, warm paper, sharp lime.
   Type: Inter Tight (display/body) · Instrument Serif (accents)
         IBM Plex Mono (labels & data)
   ============================================================ */

:root {
    --pine-950: #071D14;
    --pine-900: #0B2A1E;
    --pine-800: #11382A;
    --paper: #F5F4ED;
    --paper-2: #EDEBE1;
    --tile: #FAF9F4;
    --ink: #0F2018;
    --ink-soft: #4A5C51;
    --moss: #2F6B45;
    --lime: #A8E85C;
    --lime-soft: #BDF07E;
    --line-l: rgba(15, 32, 24, 0.14);
    --line-hard: #DCD9CB;
    --line-d: rgba(245, 244, 237, 0.12);
    --paper-70: rgba(245, 244, 237, 0.7);
    --paper-55: rgba(245, 244, 237, 0.55);
    --max: 1240px;
    --header-h: 76px;
    --sans: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--lime); color: var(--pine-950); }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }
.dark :focus-visible, header :focus-visible, footer :focus-visible { outline-color: var(--lime); }

/* film grain over everything — kills the flat "digital" look */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
    opacity: 0.05;
    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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--lime); color: var(--pine-950); font-weight: 600; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 96px); margin-inline: auto; }

/* ---------- shared type ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(36px, 4.6vw, 58px); }

.label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--moss);
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}
.label::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.25; }
.dark .label { color: var(--lime); }

.head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: clamp(44px, 6vw, 76px);
}
.sub { max-width: 42ch; color: var(--ink-soft); font-size: 16px; line-height: 1.65; padding-bottom: 8px; }
.dark .sub { color: var(--paper-55); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
    white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(3px); }
.btn-lime {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #BDF07E 0%, #A8E85C 100%);
    color: var(--pine-950);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(7, 29, 20, 0.14),
        0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 30px -12px rgba(168, 232, 92, 0.6);
    transition: box-shadow 0.35s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-lime::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
    transform: translateX(-110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-lime:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(7, 29, 20, 0.14),
        0 2px 4px rgba(0, 0, 0, 0.25), 0 18px 40px -14px rgba(168, 232, 92, 0.75);
}
.btn-lime:hover::after { transform: translateX(110%); }
.btn-ghost {
    border-color: rgba(245, 244, 237, 0.22);
    background: rgba(245, 244, 237, 0.04);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--paper);
}
.btn-ghost:hover { border-color: rgba(189, 240, 126, 0.6); background: rgba(245, 244, 237, 0.08); color: var(--lime-soft); }
.btn-ink { border-color: var(--line-l); color: var(--ink); background: transparent; }
.btn-ink:hover { border-color: var(--moss); color: var(--moss); }
.btn-s { height: 40px; padding: 0 18px; font-size: 13px; border-radius: 8px; }

/* ---------- header ---------- */
header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s;
}
header.on {
    background: rgba(11, 42, 30, 0.97);
    border-color: var(--line-d);
}
.bar { height: var(--header-h); display: flex; align-items: center; gap: 36px; }
.brand { flex: none; }
.brand img { height: 38px; width: auto; filter: brightness(0) invert(1); }

nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
nav a { font-size: 13.5px; font-weight: 500; color: var(--paper-70); transition: color 0.2s; }
nav a:hover { color: var(--paper); }
.nav-foot { display: none; }

.bar-end { display: flex; align-items: center; gap: 14px; }
.menu { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 70; }
.menu i { display: block; width: 20px; height: 1.6px; background: var(--paper); margin: 6px auto; transition: transform 0.3s, opacity 0.3s; }
body.nav-open .menu i:first-child { transform: translateY(3.8px) rotate(45deg); }
body.nav-open .menu i:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--pine-900);
    color: var(--paper);
    overflow: hidden;
}
/* fine blueprint grid, fading out from the instrument */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 244, 237, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 244, 237, 0.035) 1px, transparent 1px);
    background-size: 88px 88px;
    -webkit-mask-image: radial-gradient(ellipse 72% 70% at 74% 36%, #000 10%, transparent 78%);
    mask-image: radial-gradient(ellipse 72% 70% at 74% 36%, #000 10%, transparent 78%);
    pointer-events: none;
}
/* vignette: draws the eye to the content, softens the edges */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(130% 95% at 42% 40%, transparent 52%, rgba(4, 18, 12, 0.55) 100%),
        linear-gradient(180deg, rgba(4, 18, 12, 0.35), transparent 24%);
    pointer-events: none;
}

/* atmosphere: soft, slow light in the brand's own greens (Aurora, restrained) */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; will-change: transform; animation: glow-drift 28s ease-in-out infinite alternate; }
.g1 { width: 74vw; height: 74vw; top: -40vw; right: -18vw; background: radial-gradient(closest-side, rgba(47, 191, 113, 0.22), rgba(47, 191, 113, 0.06) 55%, transparent 72%); }
.g2 { width: 50vw; height: 50vw; top: 22%; left: -16vw; background: radial-gradient(closest-side, rgba(168, 232, 92, 0.085), transparent 70%); animation-duration: 34s; animation-delay: -12s; }
.g3 { width: 62vw; height: 62vw; bottom: -36vw; right: 8vw; background: radial-gradient(closest-side, rgba(20, 184, 166, 0.11), transparent 70%); animation-duration: 38s; animation-delay: -20s; }
@keyframes glow-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-3vw, 2.5vw, 0) scale(1.08); }
}

/* precision instrument */
.instrument {
    position: absolute;
    top: 41%;
    right: -9vw;
    width: min(58vw, 820px, 88svh);
    aspect-ratio: 1;
    transform: translateY(-50%);
    pointer-events: none;
    /* round edge fade, intersected with a top fade so nothing sits behind the menu */
    -webkit-mask-image: radial-gradient(closest-side, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%);
    -webkit-mask-composite: source-in;
    mask-image: radial-gradient(closest-side, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%);
    mask-composite: intersect;
}
.ins-move, .ins-svg { width: 100%; height: 100%; }
.ins-svg { display: block; overflow: visible; }
.ins-cross { fill: none; stroke: rgba(245, 244, 237, 0.07); stroke-width: 1; stroke-dasharray: 3 7; }
.ins-ticks { fill: none; stroke: rgba(245, 244, 237, 0.26); stroke-width: 8; stroke-dasharray: 0.07 0.93; }
.ins-tick-ring { fill: none; stroke: rgba(245, 244, 237, 0.08); stroke-width: 1; }
.ins-ticks-major { fill: none; stroke: rgba(168, 232, 92, 0.6); stroke-width: 16; stroke-dasharray: 0.014 0.986; }
.ins-ring { fill: none; stroke: rgba(245, 244, 237, 0.11); stroke-width: 1; }
.ins-faint { stroke: rgba(245, 244, 237, 0.07); }
.ins-dash { fill: none; stroke: rgba(245, 244, 237, 0.16); stroke-width: 1; stroke-dasharray: 2 10; }
.ins-track { fill: none; stroke: rgba(245, 244, 237, 0.06); stroke-width: 3; }
.ins-arc { fill: none; stroke: url(#ins-arc-grad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 62 38; }
.ins-arc-glow { fill: none; stroke: #A8E85C; stroke-opacity: 0.12; stroke-width: 16; stroke-linecap: round; stroke-dasharray: 62 38; }
.ins-dot { fill: var(--lime); }
.ins-halo { fill: rgba(168, 232, 92, 0.16); }
.ins-core { fill: rgba(245, 244, 237, 0.45); }
.ins-spin { transform-box: fill-box; transform-origin: center; }
.ins-slow { animation: spin 150s linear infinite; }
.ins-rev { animation: spin 95s linear infinite reverse; }
.ins-orbit { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero.is-off .glow,
.hero.is-off .ins-spin { animation-play-state: paused; }
.wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18%;
    width: 100%;
    height: 260px;
    pointer-events: none;
}
.wave-line { fill: none; stroke: var(--lime); stroke-width: 1.5; opacity: 0.12; }
.wave { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.wave-fill { fill: var(--lime); opacity: 0.04; }

.hero-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--header-h) + 64px);
    padding-bottom: 64px;
}
/* company lockup — set like a letterhead: brand rule, name, location */
.tag {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin-bottom: 34px;
    text-transform: uppercase;
}
.tag::before { content: ""; width: 44px; height: 2px; background: var(--lime); flex: none; }
.tag-name {
    font-size: clamp(14px, 1.15vw, 17px);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--paper);
}
.tag-loc {
    padding-left: 20px;
    border-left: 1px solid rgba(245, 244, 237, 0.28);
    font-size: clamp(12px, 0.95vw, 14px);
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--paper-70);
}

.hero-title {
    font-size: clamp(44px, 8.4vw, 124px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin-bottom: 44px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.hero-title .line-in {
    display: block;
    padding-bottom: 0.16em;
    margin-bottom: -0.16em;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F4ED 42%, #C8D4C9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title em {
    padding: 0 0.1em 0 0.04em;
    margin: 0 -0.1em 0 -0.04em;
    background: linear-gradient(180deg, #D8F8AE 0%, #A8E85C 58%, #93D84A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title ::selection { -webkit-text-fill-color: var(--pine-950); background: var(--lime); }
.hero-title em, .statement em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--lime);
}

.hero-row {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid var(--line-d);
}
.hero-row::before { content: ""; position: absolute; top: -1px; left: 0; width: 96px; height: 1px; background: var(--lime); transform: scaleX(var(--seg, 1)); transform-origin: 0 50%; }
.lead { max-width: 46ch; color: rgba(245, 244, 237, 0.74); font-size: 17px; line-height: 1.7; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* terminal-style operations strip */
.ops {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 29, 20, 0.35), rgba(7, 29, 20, 0.7));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.ops::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 232, 92, 0.4) 30%, rgba(245, 244, 237, 0.16) 70%, transparent);
}
.ops-row {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 58px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper-55);
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.ops-row::-webkit-scrollbar { display: none; }
.ops-row > * { flex: none; }
.ops-head { color: var(--paper); font-weight: 500; }
.ops-list { display: flex; gap: 30px; }
.ops-list b { color: var(--paper); font-weight: 500; margin: 0 2px; }
.ops-list i {
    font-style: normal;
    color: var(--lime);
    font-size: 10px;
}
.ops-list i::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lime);
    margin: 0 6px 1px 2px;
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }
.ops-clock { margin-left: auto; color: var(--paper-70); font-variant-numeric: tabular-nums; }

/* ---------- stats band ---------- */
.stats { background: var(--paper); border-bottom: 1px solid var(--line-l); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { padding: 48px 32px 42px; border-left: 1px solid var(--line-l); }
.stats-grid > div:first-child { border-left: 0; padding-left: 0; }
.num { display: flex; align-items: baseline; gap: 2px; font-size: clamp(44px, 4.6vw, 68px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.num i { font-style: normal; color: var(--moss); font-size: 0.6em; }
.num b { font-weight: 600; font-variant-numeric: tabular-nums; }
.stats-grid small {
    display: block;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ---------- sections ---------- */
.block { padding: clamp(96px, 11vw, 150px) 0; }
.block.dark { background: var(--pine-900); color: var(--paper); }
.block.alt { background: var(--paper-2); }

/* ---------- services index ---------- */
.index { border-bottom: 1px solid var(--line-l); }
.index li {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: 80px 1fr 1.4fr auto;
    align-items: center;
    gap: 32px;
    padding: 36px 0;
    border-top: 1px solid var(--line-l);
}
.index li::before {
    content: "";
    position: absolute;
    inset: 0 -28px;
    background: var(--pine-900);
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
.index li:hover::before { opacity: 1; }
.index .idx {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-soft);
    transition: color 0.3s;
}
.index h3 { font-size: clamp(24px, 2.6vw, 34px); transition: color 0.3s; }
.index p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; transition: color 0.3s; }
.row-link {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}
.row-link svg { width: 13px; height: 13px; transition: transform 0.25s; }
.row-link:hover svg { transform: translate(2px, -2px); }
.index li:hover .idx { color: var(--lime); }
.index li:hover h3 { color: var(--paper); }
.index li:hover p { color: var(--paper-55); }
.index li:hover .row-link { color: var(--lime); }

/* ---------- company statement ---------- */
h2.mini {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--paper-70);
    margin-bottom: 32px;
}
.statement {
    font-size: clamp(28px, 3.8vw, 46px);
    font-weight: 500;
    line-height: 1.26;
    letter-spacing: -0.025em;
    max-width: 28em;
}

/* ---------- clients ---------- */
.marquee {
    overflow: hidden;
    padding: 8px 0 clamp(40px, 5vw, 64px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.m-seg { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.m-seg span {
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: rgba(15, 32, 24, 0.45);
    white-space: nowrap;
}
.m-seg i { font-style: normal; color: var(--moss); }
@keyframes marquee { to { transform: translateX(-50%); } }

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-hard);
    border: 1px solid var(--line-hard);
}
.clients-grid li {
    background: var(--tile);
    min-height: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 28px 20px;
    transition: background-color 0.3s;
}
.clients-grid li:hover { background: #fff; }
.clients-grid img { height: 46px; width: auto; object-fit: contain; }
.clients-grid b { font-size: 19px; font-weight: 600; letter-spacing: 0.04em; }
.clients-grid span {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ---------- team ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.people figure {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: var(--pine-900);
    margin-bottom: 16px;
}
.people img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.5s, transform 0.6s;
}
.people li:hover img { filter: none; transform: scale(1.03); }
.people .ph { display: grid; place-items: center; }
.people .ph span { font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--lime); }
.people h3 { font-size: 17px; letter-spacing: -0.02em; }
.people p {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 5px;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
#contact-form { display: grid; gap: 26px; max-width: 480px; }
#contact-form label {
    display: grid;
    gap: 10px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper-55);
}
#contact-form input,
#contact-form textarea {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-d);
    border-radius: 0;
    padding: 4px 0 14px;
    font-family: var(--sans);
    font-size: 17px;
    color: var(--paper);
    outline: none;
    transition: border-color 0.25s;
}
#contact-form input:focus,
#contact-form textarea:focus { border-color: var(--lime); }
#contact-form ::placeholder { color: rgba(245, 244, 237, 0.35); }
#contact-form input:-webkit-autofill {
    -webkit-text-fill-color: var(--paper);
    transition: background-color 999999s;
}
#contact-form textarea { min-height: 96px; resize: vertical; }
#contact-form .btn { justify-self: start; margin-top: 8px; }
#contact-form .btn.is-busy { cursor: progress; opacity: 0.8; }
/* spam trap: kept out of sight and out of the tab order */
#contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; margin-top: -6px; font-size: 15.5px; line-height: 1.6; color: var(--paper-70); }
.form-status.is-ok { color: var(--lime); }
.form-status.is-error { color: #FFB4A8; }

.spec { display: grid; gap: 30px; padding-top: 6px; }
.spec small {
    display: block;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper-55);
    margin-bottom: 8px;
}
.spec p { font-size: 17px; line-height: 1.55; }
.spec a { border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.spec a:hover { color: var(--lime); border-color: var(--lime); }

/* ---------- footer ---------- */
footer {
    background: var(--pine-950);
    color: var(--paper-70);
    padding: clamp(72px, 8vw, 110px) 0 28px;
    overflow: hidden;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: clamp(56px, 6vw, 88px); }
.foot-grid .brand img { height: 36px; filter: brightness(0) invert(1); }
.foot-grid p { font-size: 14px; line-height: 1.7; max-width: 38ch; }
.foot-grid > div:first-child p { margin-top: 18px; }
.foot-grid small {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 244, 237, 0.4);
    margin-bottom: 14px;
}
.foot-grid a, .foot-grid button {
    display: block;
    font-size: 14px;
    color: var(--paper-70);
    background: none;
    border: 0;
    padding: 5px 0;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}
.foot-grid a:hover, .foot-grid button:hover { color: var(--lime); }

.wordmark {
    font-size: clamp(72px, 15.5vw, 236px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.78;
    text-align: center;
    white-space: nowrap;
    color: rgba(245, 244, 237, 0.04);
    -webkit-text-stroke: 1px rgba(245, 244, 237, 0.13);
    user-select: none;
    pointer-events: none;
    transform: translateY(6%);
}
.foot-legal {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(245, 244, 237, 0.1);
    padding-top: 24px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(245, 244, 237, 0.45);
}

/* ---------- dialog ---------- */
dialog {
    width: min(460px, calc(100% - 32px));
    border: 1px solid var(--line-l);
    border-radius: 14px;
    padding: 32px;
    background: var(--paper);
    color: var(--ink);
    margin: auto;
}
dialog::backdrop { background: rgba(7, 29, 20, 0.65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog h2 { font-size: 24px; }
dialog p { color: var(--ink-soft); font-size: 15px; margin: 14px 0 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .index li { grid-template-columns: 56px 1fr 1.2fr auto; gap: 24px; }
}

@media (max-width: 900px) {
    .instrument { width: 118vw; right: -54vw; top: 34%; opacity: 0.75; }
    .wrap { width: min(var(--max), 100% - 48px); }

    nav {
        position: fixed;
        inset: 0;
        z-index: 55;
        background: var(--pine-950);
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        padding: calc(var(--header-h) + 24px) 28px 40px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.35s, transform 0.35s, visibility 0.35s;
    }
    body.nav-open nav { opacity: 1; visibility: visible; transform: none; }
    nav a {
        font-size: clamp(30px, 8vw, 42px);
        font-weight: 600;
        letter-spacing: -0.03em;
        color: var(--paper);
        padding: 16px 0;
        border-bottom: 1px solid rgba(245, 244, 237, 0.08);
        display: flex;
        align-items: baseline;
        gap: 16px;
    }
    .nav-foot {
        display: block;
        margin-top: 36px;
        font-family: var(--mono);
        font-size: 12px;
        line-height: 2;
        letter-spacing: 0.06em;
        color: var(--paper-55);
    }
    .menu { display: block; }
    .bar-end { margin-left: auto; }
    body.nav-open header { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

    .index li { grid-template-columns: 48px 1fr; gap: 8px 20px; align-items: baseline; padding: 30px 0; }
    .index h3 { grid-column: 2; }
    .index p { grid-column: 2; margin: 6px 0 14px; }
    .index .row-link { grid-column: 2; }
    .index li::before { inset: 0 -18px; }

    .foot-grid { grid-template-columns: 1fr; gap: 40px; }
    .people { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .contact-grid { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .wrap { width: min(var(--max), 100% - 32px); }
    .cta { display: none; }
    .bar .brand img { height: 34px; }
    .instrument { width: 136vw; right: -74vw; top: 24%; opacity: 0.5; }
    .hero-row { padding-top: 24px; }
    .tag { gap: 8px 14px; margin-bottom: 28px; }
    .tag::before { width: 28px; }
    .tag-name { font-size: 13px; letter-spacing: 0.16em; }
    .tag-loc { flex-basis: 100%; padding-left: 42px; border-left: 0; font-size: 11.5px; letter-spacing: 0.16em; }
    .hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 48px; }
    .hero-title { margin-bottom: 32px; }
    .head-row { flex-direction: column; align-items: flex-start; gap: 18px; }
    .sub { padding-bottom: 0; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid > div { padding: 28px 20px 26px; }
    .stats-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
    .stats-grid > div:nth-child(n+3) { border-top: 1px solid var(--line-l); }

    .ops-row { gap: 22px; }
    .ops-clock { margin-left: 0; }

    .people { grid-template-columns: 1fr 1fr; gap: 16px; }
    .people h3 { font-size: 15px; }
    .clients-grid { grid-template-columns: 1fr 1fr; }
    .clients-grid li { min-height: 120px; }
    .wordmark { font-size: 19vw; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .glow, .ins-spin { animation: none; }
    .marquee-track { animation: none; flex-wrap: wrap; }
    .marquee { mask-image: none; -webkit-mask-image: none; }
    .ops-list i::before { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
