/* ═══════════════════════════════════════════════════════════
   Anndal Institute
   Palette: gara indigo (the dyed cotton of the Manding world),
   brass ochre (kora strings, market light), a teal reserved for
   data marks. Neutrals biased toward the indigo.
   ═══════════════════════════════════════════════════════════ */
:root {
  --paper: #F2F4F8; --surface: #FFFFFF; --surface-2: #E9EDF5;
  --text: #141F35; --muted: #5A6781; --line: #D5DBE8; --line-soft: #E5E9F1;
  --brand: #23407E; --brand-ink: #16294F; --brand-soft: #E4EAF6;
  --amber: #B36C12; --amber-soft: #F7EEDD; --signal: #2A7F73; --on-brand: #F2F4F8;
  --shadow-sm: 0 1px 2px rgba(16,27,46,.05), 0 6px 18px -10px rgba(16,27,46,.15);
  --shadow-md: 0 1px 2px rgba(16,27,46,.06), 0 18px 40px -22px rgba(16,27,46,.30);
  --wave-1: #6E8CD6; --wave-2: #E2A24A;

  /* the dark bands are committed surfaces — they do not flip with theme */
  --night: #0A1220; --night-text: #EDF1F9; --night-mute: #9FADC9; --night-line: rgba(255,255,255,.14);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --maxw: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1322; --surface: #121D31; --surface-2: #18263E;
    --text: #E6EBF5; --muted: #97A3BD; --line: #24324D; --line-soft: #1B2740;
    --brand: #8AA6E8; --brand-ink: #C3D2F4; --brand-soft: #17253E;
    --amber: #E2A24A; --amber-soft: #241D11; --signal: #4FB9A7; --on-brand: #0B1322;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 8px 22px -12px rgba(0,0,0,.6);
    --shadow-md: 0 1px 2px rgba(0,0,0,.45), 0 22px 46px -26px rgba(0,0,0,.85);
  }
}
:root[data-theme="dark"] {
  --paper: #0B1322; --surface: #121D31; --surface-2: #18263E;
  --text: #E6EBF5; --muted: #97A3BD; --line: #24324D; --line-soft: #1B2740;
  --brand: #8AA6E8; --brand-ink: #C3D2F4; --brand-soft: #17253E;
  --amber: #E2A24A; --amber-soft: #241D11; --signal: #4FB9A7; --on-brand: #0B1322;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 8px 22px -12px rgba(0,0,0,.6);
  --shadow-md: 0 1px 2px rgba(0,0,0,.45), 0 22px 46px -26px rgba(0,0,0,.85);
}

/* ── base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--f-body); font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; text-wrap: balance; margin: 0; line-height: 1.14; letter-spacing: -.018em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.16rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }
.mono { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { color: var(--amber); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); flex: none; }
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 64ch; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { margin: 18px 0 0; }
.section-head p { color: var(--muted); font-size: 1.07rem; margin-top: 16px; }
.muted { color: var(--muted); }

/* ── buttons ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--f-display); font-size: .9rem; font-weight: 600; padding: 11px 20px; border-radius: 3px; text-decoration: none; cursor: pointer; border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand); transition: background .14s ease, border-color .14s ease, transform .14s ease, color .14s ease; }
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--on-brand); transform: translateY(-1px); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #FFF; }
.btn-amber:hover { background: #96590C; border-color: #96590C; color: #FFF; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-ink); }
.btn-onnight { background: transparent; border-color: rgba(255,255,255,.4); color: #FFF; }
.btn-onnight:hover { background: rgba(255,255,255,.12); border-color: #FFF; color: #FFF; }
.btn-lg { font-size: .98rem; padding: 14px 26px; }
.link-arrow { font-family: var(--f-display); font-weight: 600; font-size: .92rem; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* ── utility bar ──────────────────────────────────────────── */
.utility { background: var(--night); color: var(--night-mute); font-size: .78rem; }
.utility-in { display: flex; align-items: center; gap: 18px; min-height: 36px; flex-wrap: wrap; }
.utility a { color: var(--night-mute); text-decoration: none; }
.utility a:hover { color: #FFF; }
.utility .spacer { margin-left: auto; }
.utility .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); display: inline-block; margin-right: 7px; }
@media (max-width: 760px) { .utility { display: none; } }

/* ── language switch ──────────────────────────────────────── */
.langswitch { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; flex: none; }
.langswitch button { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.langswitch button + button { border-left: 1px solid var(--line); }
.langswitch button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.langswitch button:hover:not([aria-pressed="true"]) { background: var(--brand-soft); color: var(--text); }

/* ── header ───────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand svg { flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.022em; display: block; }
.brand-sub { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-family: var(--f-display); font-size: .88rem; font-weight: 500; color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); border-bottom-color: var(--amber); }
.menu-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: 3px; cursor: pointer; color: var(--text); }
@media (max-width: 1080px) { .nav { display: none; } .menu-btn { display: inline-flex; } .header-in > .btn { display: none; } }
.drawer { display: none; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer.is-open { display: block; }
.drawer-in { display: flex; flex-direction: column; padding: 12px 0 20px; }
.drawer a { font-family: var(--f-display); font-weight: 500; font-size: 1rem; color: var(--text); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.drawer .btn { margin-top: 16px; align-self: flex-start; }

/* ── hero ─────────────────────────────────────────────────── */
.hero { position: relative; background: var(--night); color: var(--night-text); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; background-image: url("images/hero.jpg"); background-size: cover; background-position: center 38%; opacity: .30; filter: saturate(.85); }
.hero-tint { position: absolute; inset: 0; background: radial-gradient(120% 90% at 12% 10%, rgba(35,64,126,.55) 0%, rgba(10,18,32,0) 62%), linear-gradient(180deg, rgba(10,18,32,.55) 0%, rgba(10,18,32,.86) 72%, var(--night) 100%); }
#voicecanvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 190px; opacity: .5; pointer-events: none; }
.hero-in { position: relative; z-index: 2; padding: clamp(72px, 11vw, 130px) 0 clamp(96px, 12vw, 150px); }
.hero .eyebrow { color: var(--wave-2); }
.hero .eyebrow::before { background: var(--wave-2); }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 600; letter-spacing: -.034em; line-height: 1.02; max-width: 17ch; margin-top: 22px; color: #FFF; }
.hero h1 em { font-style: italic; font-family: var(--f-body); font-weight: 400; color: var(--wave-2); }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--night-mute); max-width: 60ch; margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.hero-tape { position: relative; z-index: 2; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 16px 0; color: var(--night-mute); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-tape .sep { color: rgba(255,255,255,.28); }

/* ── figures band ─────────────────────────────────────────── */
.figures { background: var(--surface); border-bottom: 1px solid var(--line); }
.figures-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.fig { padding: 34px 30px; border-left: 1px solid var(--line-soft); }
.fig:first-child { border-left: none; padding-left: 0; }
.fig-n { font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -.035em; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1; }
.fig-l { color: var(--muted); font-size: .92rem; line-height: 1.45; margin-top: 11px; }
@media (max-width: 820px) {
  .figures-in { grid-template-columns: repeat(2, 1fr); }
  .fig { padding: 26px 22px; border-top: 1px solid var(--line-soft); }
  .fig:nth-child(odd) { border-left: none; padding-left: 0; }
  .fig:nth-child(-n+2) { border-top: none; }
}

/* ── split ────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.media-frame { aspect-ratio: 4 / 3; background: var(--surface-2) center/cover no-repeat; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; position: relative; }
.media-frame::after { content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #FFF; background: linear-gradient(180deg, rgba(10,18,32,0), rgba(10,18,32,.82)); }
.media-frame.is-empty { display: grid; place-items: center; }
.media-frame.is-empty .placeholder { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 0 20px; line-height: 1.7; }
.media-frame.is-empty::after { background: none; color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ── capability cards ─────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .grid-4 { grid-template-columns: 1fr; } }
.cap { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.cap:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.cap .icon { width: 34px; height: 34px; color: var(--brand); }
.cap h3 { margin-top: 4px; }
.cap p { font-size: .93rem; color: var(--muted); flex: 1 1 auto; }
.cap .mono { color: var(--signal); }

/* ── project index ────────────────────────────────────────── */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .projects { grid-template-columns: 1fr; } }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.project-media { aspect-ratio: 16 / 8; background: var(--surface-2) center/cover no-repeat; border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.project-media .placeholder { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.project-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 11px; flex: 1 1 auto; }
.project-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid; }
.status-active { color: var(--signal); border-color: color-mix(in srgb, var(--signal) 45%, transparent); background: color-mix(in srgb, var(--signal) 8%, transparent); }
.project h3 { font-size: 1.28rem; }
.project p { font-size: .95rem; color: var(--muted); flex: 1 1 auto; }
.project .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.pipeline { margin-top: 22px; border: 1px dashed var(--line); border-radius: 3px; padding: 24px 26px; }
.pipeline .mono { color: var(--muted); }
.pipeline h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.pipeline p { font-size: .93rem; color: var(--muted); max-width: 80ch; }

/* ── flagship ─────────────────────────────────────────────── */
.flagship { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow-sm); overflow: hidden; }
.flagship-top { display: grid; grid-template-columns: 1.1fr .9fr; }
.flagship-copy { padding: clamp(26px, 3.5vw, 40px); }
.flagship-copy h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.flagship-copy p { color: var(--muted); font-size: .99rem; margin-top: 16px; }
.flagship-media { border-left: 1px solid var(--line); min-height: 260px; background: var(--surface-2) center/cover no-repeat; }
.flagship-media .media-frame { aspect-ratio: auto; height: 100%; border: none; border-radius: 0; }
@media (max-width: 900px) { .flagship-top { grid-template-columns: 1fr; } .flagship-media { border-left: none; border-top: 1px solid var(--line); } .flagship-media .media-frame { aspect-ratio: 16 / 9; } }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { font-family: var(--f-mono); font-size: .67rem; letter-spacing: .07em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; }
.tag-open { color: var(--signal); border-color: color-mix(in srgb, var(--signal) 45%, transparent); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin: 0; }
.spec { padding: 22px clamp(18px, 2.4vw, 28px); border-left: 1px solid var(--line-soft); }
.spec:first-child { border-left: none; }
.spec dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 9px 0 0; font-size: .93rem; line-height: 1.52; }
@media (max-width: 900px) { .specs { grid-template-columns: repeat(2, 1fr); } .spec:nth-child(odd) { border-left: none; } .spec:nth-child(n+3) { border-top: 1px solid var(--line-soft); } }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr; } .spec { border-left: none; } .spec + .spec { border-top: 1px solid var(--line-soft); } }

/* ── phases ───────────────────────────────────────────────── */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px; }
.phase { border-top: 2px solid var(--line); padding-top: 15px; }
.phase.is-live { border-top-color: var(--amber); }
.phase .mono { color: var(--muted); }
.phase.is-live .mono { color: var(--amber); }
.phase h4 { font-family: var(--f-display); font-size: 1rem; font-weight: 600; margin: 9px 0 7px; }
.phase p { font-size: .89rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .phases { grid-template-columns: 1fr; } }

/* ── principles ───────────────────────────────────────────── */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }
.principle .mark { display: block; width: 20px; height: 2px; background: var(--signal); margin-bottom: 15px; }
.principle h3 { margin-bottom: 9px; font-size: 1.06rem; }
.principle p { color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; gap: 26px; } }

/* ── table ────────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .93rem; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface-2); border-bottom-color: var(--line); }
tbody tr:last-child td { border-bottom: none; }
td.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── team ─────────────────────────────────────────────────── */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.person .portrait { aspect-ratio: 1 / 1; background: var(--surface-2) center/cover no-repeat; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.person .portrait .initials { font-family: var(--f-display); font-weight: 700; font-size: 2.1rem; color: var(--brand); opacity: .55; }
.person-body { padding: 22px 24px 26px; }
.person h3 { margin-bottom: 4px; }
.person .role { font-family: var(--f-mono); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.person p { font-size: .92rem; color: var(--muted); margin-top: 13px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } .person .portrait { aspect-ratio: 16/7; } }

/* ── partners ─────────────────────────────────────────────── */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.partner { background: var(--surface); padding: 24px 22px; }
.partner .mono { color: var(--signal); }
.partner h3 { font-size: 1rem; margin: 11px 0 7px; }
.partner p { font-size: .89rem; color: var(--muted); }
@media (max-width: 1000px) { .partners { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .partners { grid-template-columns: 1fr; } }

/* ── partner with us ──────────────────────────────────────── */
.asks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ask { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 13px; }
.ask.is-lead { border-color: var(--amber); box-shadow: var(--shadow-md); }
.ask h3 { font-size: 1.1rem; }
.ask p { font-size: .93rem; color: var(--muted); }
.ask ul { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--muted); flex: 1 1 auto; }
.ask ul li { margin-bottom: 6px; }
.ask .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 900px) { .asks { grid-template-columns: 1fr; } }

.giveband { background: var(--night); color: var(--night-text); }
.giveband-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 60px); align-items: center; padding: clamp(46px, 6vw, 74px) 0; }
.giveband h2 { color: #FFF; }
.giveband p { color: var(--night-mute); margin-top: 16px; }
.route { display: grid; grid-template-columns: 118px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--night-line); }
.route:last-child { border-bottom: 1px solid var(--night-line); }
.route .mono { color: var(--wave-2); }
.route span:last-child { font-size: .93rem; color: var(--night-mute); }
@media (max-width: 860px) { .giveband-in { grid-template-columns: 1fr; } }

/* ── contact ──────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-lines { margin-top: 26px; }
.cline { display: grid; grid-template-columns: 122px 1fr; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.cline .mono { color: var(--muted); }
.cline a, .cline span:last-child { font-family: var(--f-display); font-weight: 600; font-size: .95rem; text-decoration: none; }
.cline a:hover { text-decoration: underline; }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--f-mono); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font-family: var(--f-body); font-size: .97rem; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 11px 13px; width: 100%; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-status { font-size: .9rem; margin-top: 14px; padding: 11px 14px; border-radius: 3px; display: none; }
.form-status.is-ok { display: block; background: var(--amber-soft); border-left: 2px solid var(--signal); color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { border-left: 2px solid var(--amber); background: var(--amber-soft); padding: 15px 18px; font-size: .9rem; margin-top: 26px; }
.note strong { font-family: var(--f-display); }

/* ── footer ───────────────────────────────────────────────── */
footer { background: var(--night); color: var(--night-mute); }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 36px; padding: clamp(44px, 5vw, 66px) 0 40px; }
.foot h4 { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: #FFF; font-weight: 500; margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--night-mute); text-decoration: none; font-family: var(--f-display); font-size: .9rem; }
.foot a:hover { color: #FFF; }
.foot p { font-size: .89rem; line-height: 1.6; }
.foot-brand .brand-name { color: #FFF; }
.foot-brand .brand-sub { color: var(--night-mute); }
.newsletter { display: flex; gap: 8px; margin-top: 14px; background: none; border: 0; padding: 0; box-shadow: none; }
.newsletter input { flex: 1 1 auto; min-width: 0; background: rgba(255,255,255,.07); border: 1px solid var(--night-line); color: #FFF; border-radius: 3px; padding: 10px 12px; font-family: var(--f-body); font-size: .92rem; }
.newsletter input::placeholder { color: rgba(255,255,255,.45); }
.newsletter input:focus { outline: none; border-color: var(--wave-2); box-shadow: none; }
.newsletter button { flex: none; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--night-line); border-radius: 3px; color: var(--night-mute); }
.socials a:hover { color: #FFF; border-color: #FFF; }
.foot-bottom { border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; padding: 20px 0 30px; font-size: .82rem; }
.foot-bottom .spacer { margin-left: auto; }
@media (max-width: 1000px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .foot-top { grid-template-columns: 1fr; } }
