/* ==========================================================================
   CloudStackers design tokens
   ========================================================================== */
:root {
    --paper: #f3f0e8;
    --paper-2: #ebe7dc;
    --paper-3: #e1dccf;
    --ink: #151513;
    --ink-2: #3b3a35;
    --muted: #75726a;
    --line: rgba(21, 21, 19, 0.13);
    --line-strong: rgba(21, 21, 19, 0.28);

    --night: #121211;
    --night-2: #1b1b19;
    --night-3: #262623;
    --night-text: #ecebe6;
    --night-muted: #9a988f;
    --night-line: rgba(236, 235, 230, 0.12);

    --accent: #e0562b;
    --accent-ink: #c4441c;
    --accent-soft: rgba(224, 86, 43, 0.12);

    --serif: "Instrument Serif", "Times New Roman", serif;
    --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(88px, 12vw, 160px);
    --radius: 14px;
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Fine paper grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.35;
    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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

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

[id] { scroll-margin-top: 84px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   Type
   ========================================================================== */
em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
}

.display {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3.25rem, 8.2vw, 7.25rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
}
.display em { color: var(--accent); }

.display-md {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.75rem, 6vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    line-height: 1;
    letter-spacing: -0.02em;
}
.h2 em { color: var(--muted); }

.lede {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 34em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.eyebrow-light { color: var(--night-muted); }
.eyebrow-link { transition: color .2s; }
.eyebrow-link:hover { color: var(--ink); }

.muted { color: var(--muted); }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 500 15px/1 var(--sans);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: var(--night-text); color: var(--night); }
.btn-light:hover { background: #fff; }

.btn-ghost-light { border-color: var(--night-line); color: var(--night-text); }
.btn-ghost-light:hover { border-color: var(--night-muted); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background-color .3s var(--ease), border-color .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(243, 240, 232, 0.85);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}
.brand-mark { width: 28px; height: 28px; color: var(--ink); }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }

.nav { display: flex; gap: 30px; }
.nav a {
    position: relative;
    font-size: 15px;
    color: var(--ink-2);
    transition: color .2s;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
    margin-right: -10px;
}
.menu-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    padding-bottom: 24px;
}
.mobile-menu a:not(.btn) {
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; }

@media (max-width: 860px) {
    .nav { display: none; }
    .menu-toggle { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding-top: clamp(120px, 16vw, 180px);
    padding-bottom: clamp(48px, 7vw, 80px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.hero-copy .eyebrow { margin-bottom: 28px; }
.hero-copy .display { margin-bottom: 32px; }
.hero-copy .lede { margin-bottom: 36px; }

.hero-links { display: flex; flex-wrap: wrap; gap: 28px; }

.hero-art { width: 100%; max-width: 520px; justify-self: end; }

.stack .top { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.stack .side-l { fill: var(--paper-3); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.stack .side-r { fill: #d3cdbd; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.stack .layer-top .top { fill: var(--accent); }
.stack .layer-top .side-l { fill: #c4441c; }
.stack .layer-top .side-r { fill: #a93a17; }
.stack .lead { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.stack .idx { font: 500 11px var(--mono); fill: var(--muted); letter-spacing: .06em; }
.stack .name { font: 500 13px var(--mono); fill: var(--ink); letter-spacing: .02em; text-transform: uppercase; }
.stack .bracket line { stroke: var(--line-strong); stroke-width: 1; }
.stack .bracket text { font: 500 11px var(--mono); fill: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

.stack .layer {
    animation: float 7s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.9s);
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(56px, 8vw, 96px);
    border-top: 1px solid var(--line-strong);
}
.hero-facts > div { padding: 20px 24px 0 0; }
.hero-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-facts dt {
    font: 500 11px var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.hero-facts dd { font-size: 15px; color: var(--ink-2); }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { justify-self: center; max-width: 420px; }
}
@media (max-width: 640px) {
    .hero-facts { grid-template-columns: 1fr; }
    .hero-facts > div { padding: 16px 0; }
    .hero-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section) 0; }

.section-head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 760px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-intro { margin-top: 24px; color: var(--ink-2); max-width: 36em; font-size: 1.1rem; }

/* ==========================================================================
   Approach
   ========================================================================== */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.pillar { border-top: 1px solid var(--ink); padding-top: 20px; }
.pillar-num { display: block; font: 500 12px var(--mono); color: var(--accent); margin-bottom: 28px; }
.pillar h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.7rem, 2.4vw, 2.1rem);
    line-height: 1.05;
    margin-bottom: 12px;
}
.pillar p { color: var(--ink-2); font-size: 15.5px; max-width: 26em; }

@media (max-width: 860px) {
    .pillars { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   Projects (dark)
   ========================================================================== */
.platform {
    background: var(--night);
    color: var(--night-text);
    position: relative;
    overflow: hidden;
}
.platform::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--night-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 55%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 75% 55%, #000 0%, transparent 75%);
    opacity: .6;
}
.platform .container { position: relative; }

.section-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1px solid var(--night-line);
}
.section-count { font: 500 12px var(--mono); color: var(--night-muted); }

.project {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
}
.project-meta { display: flex; align-items: center; gap: 14px; }
.project-id { font: 500 12px var(--mono); color: var(--night-muted); letter-spacing: .06em; }
.project-name {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: .95;
    letter-spacing: -0.02em;
    margin: 24px 0 10px;
}
.project-tagline { font-size: clamp(1.4rem, 2vw, 1.75rem); color: var(--night-muted); line-height: 1.2; }
.project-desc { color: var(--night-muted); font-size: 1.05rem; max-width: 32em; margin: 24px 0; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags li {
    font: 400 12.5px var(--mono);
    padding: 6px 12px;
    border: 1px solid var(--night-line);
    border-radius: 999px;
    color: var(--night-text);
}
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.project-art figcaption {
    margin-top: 14px;
    font: 400 11.5px var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--night-muted);
    text-align: right;
}

@media (max-width: 960px) {
    .project { grid-template-columns: minmax(0, 1fr); }
}

/* Console mock */
.console {
    background: var(--night-2);
    border: 1px solid var(--night-line);
    border-radius: var(--radius);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .02) inset;
    font-family: var(--mono);
    font-size: 12.5px;
    overflow: hidden;
}
.console-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--night-line);
}
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-3); }
.console-title { color: var(--night-muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: .04em;
}
.pill-wait { background: rgba(224, 86, 43, .16); color: #f08a64; }

.trace { padding: 20px 18px 8px; }
.trace-scale {
    display: flex;
    justify-content: space-between;
    margin-left: 172px;
    margin-right: 64px;
    padding-bottom: 10px;
    color: var(--night-muted);
    font-size: 10.5px;
    border-bottom: 1px dashed var(--night-line);
    margin-bottom: 8px;
}
.span-row {
    display: grid;
    grid-template-columns: 172px 1fr 64px;
    align-items: center;
    height: 34px;
}
.span-label { color: var(--night-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }
.span-ms { text-align: right; color: var(--night-muted); }
.span-track { position: relative; height: 100%; }
.span-bar {
    position: absolute;
    top: 50%;
    left: var(--l);
    width: var(--w);
    height: 14px;
    margin-top: -7px;
    border-radius: 3px;
    background: #5a5850;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s var(--ease);
}
.span-bar.alt { background: #8a8679; }
.span-bar.strong { background: var(--accent); }
.console.is-visible .span-bar { transform: scaleX(1); }
.console.is-visible .span-row:nth-child(3) .span-bar { transition-delay: .1s; }
.console.is-visible .span-row:nth-child(4) .span-bar { transition-delay: .2s; }
.console.is-visible .span-row:nth-child(5) .span-bar { transition-delay: .3s; }
.console.is-visible .span-row:nth-child(6) .span-bar { transition-delay: .45s; }
.console.is-visible .span-row:nth-child(7) .span-bar { transition-delay: .6s; }

.console-foot {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--night-line);
    margin-top: 12px;
}
.console-foot div { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.console-foot div + div { border-left: 1px solid var(--night-line); }
.console-foot span { color: var(--night-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.console-foot strong { font-weight: 500; font-size: 16px; color: var(--night-text); }

@media (max-width: 560px) {
    .trace-scale { margin-left: 104px; margin-right: 52px; }
    .span-row { grid-template-columns: 104px 1fr 52px; }
    .console-foot { grid-template-columns: repeat(2, 1fr); }
    .console-foot div:nth-child(3) { border-left: 0; }
    .console-foot div:nth-child(n+3) { border-top: 1px solid var(--night-line); }
}

/* ==========================================================================
   Log
   ========================================================================== */
.log-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
}
.log-list { border-top: 1px solid var(--line-strong); }
.log-entry {
    display: grid;
    grid-template-columns: 110px 130px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line-strong);
}
.log-entry time,
.log-tag {
    font: 500 12px/1.9 var(--mono);
    letter-spacing: .04em;
    color: var(--muted);
}
.log-tag { color: var(--accent); text-transform: uppercase; }
.log-entry h3 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 4px; }
.log-entry p { color: var(--ink-2); font-size: 15px; }

@media (max-width: 860px) {
    .log-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 560px) {
    .log-entry { grid-template-columns: auto 1fr; gap: 4px 16px; }
    .log-entry > div { grid-column: 1 / -1; margin-top: 6px; }
}

/* ==========================================================================
   Project overview dialog
   ========================================================================== */
.info-dialog {
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 1px solid var(--night-line);
    border-radius: 20px;
    background: var(--night-2);
    color: var(--night-text);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6);
}
.info-body { padding: clamp(24px, 4vw, 40px); }
.info-dialog::backdrop {
    background: rgba(18, 18, 17, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.info-dialog[open] { animation: dialog-in .35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } }

.info-head { display: flex; justify-content: space-between; align-items: center; }
.info-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--night-line);
    background: none;
    color: var(--night-text);
    font: 300 24px/1 var(--sans);
    cursor: pointer;
    transition: border-color .2s;
}
.info-close:hover { border-color: var(--night-muted); }
.info-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    line-height: 1;
    margin-top: 20px;
}
.info-tagline { color: var(--night-muted); font-size: 1.35rem; margin-top: 6px; }
.info-section { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--night-line); }
.info-section h3 {
    font: 500 11.5px var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--night-muted);
    margin-bottom: 12px;
}
.info-section p { color: #c9c7bf; font-size: 15.5px; }
.info-section a { color: var(--night-text); border-bottom: 1px solid var(--night-muted); }
.info-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
.info-steps li { font-size: 15px; color: #c9c7bf; }
.info-steps span { font: 500 12px var(--mono); color: var(--accent); margin-right: 10px; }
.info-steps strong { display: block; color: var(--night-text); font-weight: 500; margin: 4px 0 2px; }

@media (max-width: 520px) {
    .info-steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--night); color: var(--night-text); }
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 112px);
    align-items: start;
}
.contact .display-md { margin: 20px 0 28px; }
.contact .display-md em { color: var(--accent); }
.contact-copy > p:not(.eyebrow) { color: var(--night-muted); font-size: 1.08rem; max-width: 30em; }

.form {
    background: var(--night-2);
    border: 1px solid var(--night-line);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
    font: 500 11.5px var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--night-muted);
}
.field .optional { text-transform: none; letter-spacing: 0; opacity: .6; margin-left: 4px; }
.field input,
.field select,
.field textarea {
    width: 100%;
    font: 400 16px/1.5 var(--sans);
    color: var(--night-text);
    background: var(--night);
    border: 1px solid var(--night-line);
    border-radius: 10px;
    padding: 13px 14px;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
            appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%239a988f' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.field ::placeholder { color: #67655e; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .is-invalid { border-color: #e2725b; }

.form .btn { margin-top: 4px; min-height: 56px; font-size: 16px; }
.form .btn[disabled] { opacity: .65; cursor: progress; }

.form-status {
    font-size: 14.5px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
}
.form-status.is-success { background: rgba(126, 196, 140, .1); border-color: rgba(126, 196, 140, .3); color: #a6dcb2; }
.form-status.is-error { background: rgba(226, 114, 91, .1); border-color: rgba(226, 114, 91, .35); color: #f0a291; }

@media (max-width: 960px) {
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .field-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--night);
    color: var(--night-muted);
    border-top: 1px solid var(--night-line);
    padding: 64px 0 32px;
    overflow: hidden;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}
.footer-tag {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--night-text);
    line-height: 1.1;
}
.footer-tag em { color: var(--accent); }
.footer-cols { display: flex; gap: 64px; font-size: 15px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 6px; }
.footer-label {
    font: 500 11px var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6f6d66;
    margin-bottom: 4px;
}
.footer-cols a { transition: color .2s; }
.footer-cols a:hover { color: var(--night-text); }

.footer-word {
    font-family: var(--serif);
    font-size: clamp(4rem, 19.5vw, 15.5rem);
    line-height: .85;
    letter-spacing: -0.04em;
    color: var(--night-text);
    margin: 56px 0 32px;
    white-space: nowrap;
    opacity: .95;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--night-line);
    font: 400 12.5px var(--mono);
    letter-spacing: .04em;
}

/* ==========================================================================
   Motion
   ========================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    .span-bar { transform: none; }
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 120px var(--gutter);
}
.notfound .display { margin: 20px 0 24px; }
.notfound p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 36px; }
