/* ============================================================
   SENID — static redesign
   Type: Space Grotesk / Inter / JetBrains Mono
   Palette: deep navy, warm paper, safety orange
   ============================================================ */

:root {
  --paper: #f6f6f2;
  --paper-2: #ecece5;
  --white: #ffffff;
  --ink: #0a0d24;
  --navy: #14105c;
  --navy-2: #221a86;
  --navy-deep: #080a1e;
  --accent: #ff5a1f;
  --accent-ink: #b23b12;
  --accent-soft: #ffe8de;
  --muted: #5a5e73;
  --muted-dark: #a9adc4;
  --line: rgba(10, 13, 36, 0.13);
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 4px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

section[id], div[id] { scroll-margin-top: 88px; }

a { color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #1a0d05;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- shared type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow.on-dark { color: var(--muted-dark); }
.eyebrow.accent { color: var(--accent); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin-top: 18px;
  max-width: 14ch;
}
.section-head .lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 46ch;
  justify-self: end;
  padding-bottom: 4px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #1c0c03; }
.btn-primary:hover { background: #ff7440; }
.btn-ghost {
  border-color: var(--line-dark);
  color: #fff;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.05); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--navy);
}
.brand-word span { color: var(--accent); }
.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}
.nav a:not(.btn) {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav a:not(.btn):hover { border-color: var(--accent); }
.nav a[aria-current="page"] { border-color: var(--accent); }
.nav .btn { padding: 11px 16px; font-size: 10px; }
.nav .lang {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.nav .lang a { color: var(--ink); }

.menu { display: none; }
.menu summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 2px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(100% + 1px);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px;
  display: grid;
  box-shadow: 0 24px 40px -24px rgba(10, 13, 36, 0.4);
}
.menu-panel a {
  padding: 13px 12px;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.menu-panel a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  isolation: isolate;
  --pointer-x: 72%;
  --pointer-y: 34%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, transparent 12%, rgba(76, 81, 218, 0.32) 48%, transparent 78%),
    url("../img/mesh-dark.svg"),
    linear-gradient(135deg, transparent 34%, rgba(255,255,255,.035) 49%, transparent 51%);
  background-size: auto, 520px 420px, 220% 220%;
  background-position: center, 0 0, 140% 0;
  animation: blueprint-sweep 13s ease-in-out infinite;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.35) 70%, transparent);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  left: calc(var(--pointer-x) - 380px);
  top: calc(var(--pointer-y) - 360px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 48, 205, 0.58), rgba(255, 90, 31, 0.12) 38%, transparent 68%);
  filter: blur(10px);
  animation: field-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: -10% -8%;
  z-index: -1;
  pointer-events: none;
  opacity: .34;
  background: url("../img/mesh-dark.svg") center / 520px 420px;
  mask-image: linear-gradient(115deg, transparent 4%, #000 45%, transparent 94%);
  animation: field-drift 28s ease-in-out infinite alternate;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px) clamp(44px, 6vw, 76px);
}
.hero h1 {
  font-size: clamp(46px, 6.4vw, 84px);
  letter-spacing: -0.045em;
  margin: 22px 0 26px;
}
.hero h1 em {
  font-style: normal;
  color: #8d86f0;
  display: block;
}
.hero .lead {
  max-width: 52ch;
  color: #c9cbe0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.hero-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55d6a4;
  box-shadow: 0 0 0 3px rgba(85, 214, 164, 0.16);
  flex: none;
}

/* hero figure */
.hero-figure { position: relative; isolation: isolate; }
.hero-figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6% -5% 12%;
  background: radial-gradient(ellipse, rgba(75, 79, 201, 0.34), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}
.shot {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #0d1030;
  padding: 8px;
  border-radius: 2px;
  box-shadow: 0 28px 72px -34px rgba(0, 0, 0, 0.82), 0 0 0 1px rgba(141, 134, 240, 0.12);
}
.shot::before,
.shot::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent);
  z-index: 2;
}
.shot::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.shot::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 50%;
  filter: brightness(1.08) saturate(1.06);
}
.shot-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 2px 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.shot-caption b { color: #8d86f0; font-weight: 500; }
.fig-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  max-width: 38ch;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted-dark);
}
.fig-note span { font-family: var(--mono); color: var(--accent); font-size: 11px; }

/* hero stat bar */
.spec-bar {
  border-top: 1px solid var(--line-dark);
  background: rgba(4, 5, 16, 0.35);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.spec {
  padding: 24px 0 26px;
  padding-right: 28px;
}
.spec + .spec {
  border-left: 1px solid var(--line-dark);
  padding-left: 28px;
}
.spec b {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 5px;
}
.spec span {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted-dark);
}

/* ---------- sections ---------- */

.section { padding-block: clamp(60px, 9vw, 110px); position: relative; isolation: isolate; }
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .27;
  background-image: url("../img/mesh-light.svg"), linear-gradient(30deg, transparent 49.8%, rgba(255,90,31,.11) 50%, transparent 50.2%);
  background-size: 640px 520px, 100% 100%;
  mask-image: linear-gradient(110deg, transparent 2%, #000 82%);
}
.section.alt { background: var(--paper-2); }
.section.alt::before { opacity: .22; }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-grid h2 {
  font-size: clamp(36px, 5vw, 62px);
  max-width: 12ch;
}
.about-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 58ch;
}
.about-copy p + p { margin-top: 18px; }
.about-copy p strong { color: var(--ink); font-weight: 600; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(40px, 6vw, 68px);
  border-top: 1px solid var(--line);
}
.principle {
  padding: 28px 28px 4px 0;
}
.principle + .principle {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.principle .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
}
.principle h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
}
.principle p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.section.alt .service-card { background: var(--paper); }
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 13, 36, 0.25);
  box-shadow: 0 26px 40px -32px rgba(10, 13, 36, 0.5);
}
.service-media {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background: linear-gradient(120deg, transparent 18%, rgba(89, 105, 255, .24) 48%, transparent 78%);
}
.service-card:hover .service-media::after { opacity: 1; }
.service-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service-media.crop img { object-position: 50% 45%; }
.service-media.code-media {
  display: flex;
  align-items: center;
  aspect-ratio: 16 / 10;
  padding: 24px;
  background-color: var(--navy-deep);
  background-image: url("../img/mesh-dark.svg");
  background-size: 520px 420px;
}
.code-lines {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c9cbe0;
}
.code-lines span {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.code-lines i { color: var(--accent); font-style: normal; }

.service-media .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(246, 246, 242, 0.94);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 7px;
}
.service-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 10px;
}
.service-card h3 {
  font-size: 25px;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.service-card .desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.65;
}
.checklist {
  display: grid;
  gap: 9px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.checklist li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
}
.checklist li::before {
  content: "+";
  font-family: var(--mono);
  color: var(--accent-ink);
  font-size: 12px;
  line-height: 1.55;
}

/* capability rail */
.cap-rail {
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.cap-rail span {
  padding: 11px 16px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cap-rail span:last-child { border-right: 0; }

/* ---------- experience ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 5vw, 56px);
}
.stat { padding: 24px 24px 26px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 24px; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--navy);
}
.stat span {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.case {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(22px, 3vw, 30px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.case:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 13, 36, 0.25);
  box-shadow: 0 26px 40px -32px rgba(10, 13, 36, 0.45);
}
.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-meta .year { color: var(--accent-ink); font-weight: 500; }
.case h3 {
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 16px 0 10px;
}
.case p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}
.case-tags span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 4px 7px;
  border-radius: 2px;
  color: var(--muted);
  line-height: 1.5;
}

.record {
  margin-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line);
  padding-top: clamp(26px, 3vw, 36px);
}
.record-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.record-head h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.03em;
}
.record-head p {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.record-list {
  columns: 2;
  column-gap: clamp(28px, 4vw, 56px);
}
.record-list li {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.rec-year {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  padding-top: 2px;
}
.rec-title {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
}
.rec-client {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.record-note {
  margin-top: 20px;
  max-width: 74ch;
  font-size: 12px;
  color: var(--muted);
}

::selection { background: var(--navy); color: #fff; }

/* ---------- contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .2;
  background-image: url("../img/mesh-dark.svg");
  background-size: 520px 420px;
  mask-image: linear-gradient(110deg, transparent, #000 80%);
}
.contact::after {
  content: "";
  position: absolute;
  left: -200px;
  bottom: -320px;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.14), transparent 65%);
  animation: field-drift 22s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes field-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(.94); }
  to { transform: translate3d(3%, 3%, 0) scale(1.08); }
}
@keyframes blueprint-sweep {
  0%, 12% { background-position: center, 0 0, 140% 0; }
  56%, 100% { background-position: center, 0 0, -80% 0; }
}
.contact .wrap { position: relative; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 88px);
  padding-block: clamp(64px, 9vw, 110px);
}
.contact h2 {
  font-size: clamp(42px, 6vw, 74px);
  margin: 18px 0 22px;
  max-width: 12ch;
}
.contact .lead {
  color: #b9bcd2;
  max-width: 48ch;
  font-size: 15.5px;
}
.contact-lines { margin-top: 38px; display: grid; gap: 20px; }
.contact-line { display: grid; gap: 4px; }
.contact-line .label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.contact-line a {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #fff;
  width: fit-content;
  border-bottom: 1px solid transparent;
}
.contact-line a:hover { border-color: var(--accent); }
.contact-meta {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  line-height: 1.9;
  text-transform: uppercase;
}
.contact-direct {
  align-self: end;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}
.contact-direct .contact-lines { margin-top: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #fff;
  border-top: 1px solid var(--line-dark);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-block: 48px 36px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-mark { filter: brightness(0) invert(1); }
.footer-brand p {
  font-size: 13px;
  color: var(--muted-dark);
  max-width: 32ch;
  line-height: 1.7;
}
.footer-col h3 {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 14px;
}
.footer-col a,
.footer-col span {
  display: block;
  font-size: 13px;
  text-decoration: none;
  color: #d3d5e3;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 20px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.footer-bottom a { text-decoration: none; color: #fff; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- motion & a11y ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero-figure::after, .contact::after { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { max-width: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: 0.8fr 1.2fr; }
  .service-media { border-bottom: 0; border-right: 1px solid var(--line); }
  .service-media img { height: 100%; aspect-ratio: auto; min-height: 260px; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head .lede { justify-self: start; }
  .about-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .principle { padding: 22px 0; border-top: 1px solid var(--line); }
  .principle:first-child { border-top: 0; }
  .principle + .principle { border-left: 0; padding-left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .service-media.code-media { aspect-ratio: auto; min-height: 260px; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .menu { display: block; }
  .header-inner { height: 66px; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec { padding: 16px 0; }
  .spec + .spec { border-left: 0; border-top: 1px solid var(--line-dark); padding-left: 0; }
  .service-card { grid-template-columns: 1fr; }
  .service-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-media img { aspect-ratio: 16 / 9; min-height: 0; }
  .service-media.code-media { aspect-ratio: 16 / 9; min-height: 0; }
  .case-grid { grid-template-columns: 1fr; }
  .record-list { columns: 1; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-note { align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr; }
  .contact-line a { font-size: 21px; word-break: break-word; }
  .section-head h2 { font-size: clamp(30px, 9vw, 42px); }
  .about-grid h2 { font-size: clamp(32px, 9vw, 44px); }
  .stats-strip { grid-template-columns: 1fr; }
  .stat { padding: 18px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}
