/* André Wendland — IT Transformation Advisory
   Midnight & Steel. Midnight is the default theme; porcelain is set with
   data-theme="porcelain" on <html>. Figtree is self-hosted (no Google requests). */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("assets/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark;
  --canvas: #0b111b;
  --canvas-top: #0f1724;
  --band: #0e1520;
  --ink: #eef1f5;
  --body: #b4bdca;
  --muted: #97a2b2;
  --nav: #c9d0da;
  --hairline: #1f2a3a;
  --outline: rgba(238, 241, 245, 0.28);
  --accent: #8fb3d9;
  --accent-line: rgba(143, 179, 217, 0.35);
  --accent-text: #a9c6e6;
  --accent-soft: rgba(143, 179, 217, 0.10);
  --lift-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --viz-bg: radial-gradient(80% 120% at 50% 0%, rgba(70, 110, 160, 0.22) 0%, rgba(70, 110, 160, 0) 100%), rgba(255, 255, 255, 0.02);
  --figure: #dbe6f3;
  --logo: #ffffff;
  --hero-bg: radial-gradient(60% 80% at 80% 30%, rgba(70, 110, 160, 0.28) 0%, rgba(70, 110, 160, 0) 100%), linear-gradient(to bottom, #121b2a 0%, #0b111b 100%);
  --action: linear-gradient(to bottom, #3c6b9c 0%, #264b73 100%);
  --action-hover: linear-gradient(to bottom, #4677a9 0%, #2c5580 100%);
  --action-ink: #f4f7fb;
  --action-rim: rgba(190, 215, 240, 0.25);
  --action-shadow: inset 0 1px 0.5px rgba(210, 228, 248, 0.35), 0 6px 16px rgba(0, 0, 0, 0.35);
  --card: linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  --card-rim: rgba(255, 255, 255, 0.09);
  --card-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.14), 0 1px 4px rgba(0, 0, 0, 0.25);
  --chip: linear-gradient(to bottom, rgba(18, 27, 42, 0.92) 0%, rgba(11, 17, 27, 0.92) 100%);
  --chip-rim: rgba(255, 255, 255, 0.09);
  --chip-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.14), 0 1px 4px rgba(0, 0, 0, 0.25);
  --photo-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  --field: rgba(0, 0, 0, 0.2);
  --focus: #a9c6e6;

  --radius-card: 18px;
  --radius-control: 12px;
  --max: 1240px;
  --gutter: 24px;
  --section-y: clamp(64px, 8vw, 112px);
}

:root[data-theme="porcelain"] {
  color-scheme: light;
  --canvas: #eef1f5;
  --canvas-top: #f7f8fa;
  --band: #e5e9ef;
  --ink: #121826;
  --body: #3f4859;
  --muted: #5a6474;
  --nav: #2c3444;
  --hairline: #d6dce5;
  --outline: rgba(18, 24, 38, 0.28);
  --accent: #2b5a8a;
  --accent-line: rgba(43, 90, 138, 0.35);
  --accent-text: #2b5a8a;
  --accent-soft: #e1eaf4;
  --lift-shadow: 0 18px 40px rgba(20, 35, 60, 0.14);
  --viz-bg: radial-gradient(80% 120% at 50% 0%, rgba(143, 179, 217, 0.30) 0%, rgba(143, 179, 217, 0) 100%), #f4f6f9;
  --figure: #121826;
  --logo: #121826;
  --hero-bg: radial-gradient(60% 80% at 80% 20%, rgba(143, 179, 217, 0.35) 0%, rgba(143, 179, 217, 0) 100%), linear-gradient(to bottom, #f7f8fa 0%, #eef1f5 100%);
  --action: linear-gradient(to bottom, #2f5f91 0%, #1d4069 100%);
  --action-hover: linear-gradient(to bottom, #3568a0 0%, #224a78 100%);
  --action-rim: rgba(20, 45, 75, 0.6);
  --action-shadow: 0 2px 4px rgba(20, 35, 60, 0.08), 0 10px 24px rgba(20, 35, 60, 0.16);
  --card: linear-gradient(to bottom, #ffffff 0%, #f9fafc 100%);
  --card-rim: rgba(30, 50, 80, 0.10);
  --card-shadow: 0 1px 2px rgba(20, 35, 60, 0.06), 0 3px 10px rgba(20, 35, 60, 0.05);
  --chip: linear-gradient(to bottom, rgba(255, 255, 255, 0.62) 0%, rgba(247, 249, 252, 0.48) 100%);
  --chip-rim: rgba(255, 255, 255, 0.7);
  --chip-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.9), 0 8px 24px rgba(20, 35, 60, 0.16);
  --photo-shadow: 0 2px 4px rgba(20, 35, 60, 0.08), 0 18px 40px rgba(20, 35, 60, 0.18);
  --field: #ffffff;
  --focus: #2b5a8a;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--canvas-top);
  color: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.figure {
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--figure);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.button.primary {
  color: var(--action-ink);
  background-image: var(--action);
  border: 1px solid var(--action-rim);
  box-shadow: var(--action-shadow);
}

.button.primary:hover {
  background-image: var(--action-hover);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--outline);
}

.button.secondary:hover {
  border-color: var(--ink);
}

.button.small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.text-link {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 2px;
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: color-mix(in srgb, var(--canvas-top) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--logo);
  text-decoration: none;
  font-size: 18px;
}

.brand svg {
  width: 44px;
  height: 19px;
  flex: none;
}

.brand strong {
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:not(.button) {
  color: var(--nav);
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--nav);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--outline);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 860px) {
  .site-nav .nav-link {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  background-image: var(--hero-bg);
}

.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.hero-copy {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--accent-text);
}

.hero .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--body);
  max-width: 600px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative;
  flex: 1 1 320px;
  max-width: 440px;
  margin: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% 30%;
  border-radius: 22px;
  box-shadow: var(--photo-shadow);
}

.hero-photo figcaption {
  position: absolute;
  left: -20px;
  right: 40px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--chip-rim);
  background-image: var(--chip);
  box-shadow: var(--chip-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.hero-photo figcaption .eyebrow {
  font-size: 12px;
}

.hero-photo figcaption strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .hero-photo figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* ---------- Bands and sections ---------- */

.band {
  background-color: var(--band);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section .wrap {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.section-head.split {
  max-width: none;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
}

.section-head.split > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.1;
}

.section-head p {
  font-size: 18px;
  color: var(--body);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.auto-280 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.auto-260 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.auto-340 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

@media (max-width: 640px) {
  :root {
    --section-y: 56px;
  }

  .section .wrap {
    gap: 32px;
  }

  .case img {
    display: none;
  }

  .case .case-body {
    padding: 20px;
  }

  .hero-photo img {
    aspect-ratio: 4 / 3;
  }

  .step,
  .card {
    padding: 22px;
  }

  .step .outcome {
    padding-top: 12px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius-card);
  border: 1px solid var(--card-rim);
  background-image: var(--card);
  box-shadow: var(--card-shadow);
}

.card h3 {
  font-size: 20px;
  line-height: 1.3;
}

.card p {
  font-size: 15px;
  color: var(--body);
}

/* Proof */

.proof .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 32px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.proof div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proof .figure {
  font-size: clamp(36px, 4vw, 52px);
}

.proof span:last-child {
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 480px) {
  .proof .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
}

/* Approach */

.step {
  gap: 14px;
  padding: 28px;
}

.step header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.step h3 {
  font-size: 24px;
  letter-spacing: -0.01em;
}

.step .num {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.step p {
  font-size: 16px;
}

.step .outcome {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Work */

.case {
  position: relative;
  padding: 0;
  gap: 0;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Hover: the card rises slightly, a steel rule draws in along the top,
   the image regains colour and the Impact line comes forward. */
.case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.case:hover,
.case:focus-within {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--card-shadow), 0 18px 40px rgba(5, 12, 24, 0.28);
}

.case:hover::before,
.case:focus-within::before {
  transform: scaleX(1);
}

.case:hover img,
.case:focus-within img {
  filter: saturate(0.95) brightness(1);
  transform: scale(1.03);
}

.case:hover dt.impact,
.case:hover dt.impact + dd {
  color: var(--accent-text);
}

.case img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.92);
  transition: filter 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.case .case-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  flex: 1;
}

.case .eyebrow {
  font-size: 12px;
}

.case h3 {
  font-size: 21px;
  line-height: 1.25;
}

.case dl {
  margin: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 12px;
  font-size: 15px;
  line-height: 1.45;
}

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

.case dd {
  margin: 0;
}

.case dd {
  color: var(--body);
}

.case dt:first-of-type + dd,
.case dt.impact + dd {
  color: var(--ink);
}

/* About */

.about .wrap {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 48px 64px;
}

.about .section-head {
  flex: 1 1 340px;
  min-width: 0;
}

.about .grid {
  flex: 999 1 520px;
  min-width: 0;
  align-content: start;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 0;
  margin: 0;
  list-style: none;
}

.tags li {
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.tags li:hover {
  color: var(--accent-text);
  border-color: var(--accent);
  background-color: var(--accent-soft);
  transform: translateY(-1px);
}

/* Shared hover for approach and engagement cards: a gentle lift and a
   steel rule that draws in along the card's divider. */
.step,
.model,
.edu {
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.step:hover,
.model:hover,
.model:focus-within,
.edu:hover,
.edu:focus-within {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--card-shadow), var(--lift-shadow);
}

.step .outcome,
.model .price {
  position: relative;
}

.step .outcome::before,
.model .price::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.step:hover .outcome::before,
.model:hover .price::before,
.model:focus-within .price::before {
  transform: scaleX(1);
}

.step .num {
  transition: color 0.3s ease;
}

.step:hover .num,
.step:hover .label {
  color: var(--accent-text);
}

.model:hover .figure {
  color: var(--accent-text);
}

.model:hover .price-cta {
  transform: translateX(3px);
}

/* Education illustrations */
.edu-visual {
  margin: -6px -6px 6px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--viz-bg);
  overflow: hidden;
  color: var(--accent);
}

.edu-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.viz-faint {
  stroke: var(--outline);
  opacity: 0.55;
}

.viz-node circle {
  fill: var(--canvas-top);
  stroke: var(--muted);
}

.viz-hot circle {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease 0.35s;
}

.viz-path {
  stroke: var(--accent);
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.edu:hover .viz-path,
.edu:focus-within .viz-path {
  stroke-dashoffset: 0;
}

.edu:hover .viz-hot circle,
.edu:focus-within .viz-hot circle {
  opacity: 1;
}

.viz-star circle {
  fill: var(--muted);
  opacity: 0.6;
}

.viz-orbit {
  stroke: var(--accent-line);
  stroke-dasharray: 3 6;
}

.viz-earth {
  fill: var(--accent-soft);
  stroke: var(--accent-line);
}

.viz-sat {
  transform-box: view-box;
  transform-origin: 160px 300px;
  transform: rotate(-16deg);
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.edu:hover .viz-sat,
.edu:focus-within .viz-sat {
  transform: rotate(16deg);
}

.viz-body {
  fill: var(--canvas-top);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.viz-panel {
  fill: var(--accent);
  opacity: 0.85;
}

.viz-detail {
  stroke: var(--accent);
  stroke-width: 1;
}

.viz-signal {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.edu:hover .viz-signal {
  opacity: 1;
}

.edu:hover .viz-signal-2 {
  transition-delay: 0.15s;
}

.card .eyebrow {
  font-size: 12px;
}

.card .text-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 15px;
}

/* Engagements */

.model p {
  flex: 1;
}

.price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--accent-line);
  color: inherit;
  text-decoration: none;
}

.price-cta {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.price:hover .price-cta,
.price:focus-visible .price-cta {
  transform: translateX(3px);
}

.price:hover .figure {
  color: var(--accent-text);
}

.price span:first-child {
  font-size: 13px;
  color: var(--muted);
}

.price .figure {
  font-size: 26px;
}

/* Contact */

.contact {
  background-image: var(--hero-bg);
}

.contact .wrap {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 48px 64px;
}

.contact .section-head {
  flex: 1 1 340px;
  min-width: 0;
  gap: 18px;
}

.contact .section-head .button {
  align-self: flex-start;
}

.direct {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.direct a {
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.direct span {
  font-size: 15px;
  color: var(--muted);
}

.contact-form {
  flex: 999 1 480px;
  min-width: 0;
  padding: 28px;
  border-radius: 22px;
  gap: 18px;
}

/* Contact card: no movement (people type in it), but it comes forward
   on hover and shows a steel focus ring while being filled in. */
.contact-form {
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.contact-form:hover {
  border-color: var(--accent-line);
  box-shadow: var(--card-shadow), var(--lift-shadow);
}

.contact-form:focus-within {
  border-color: var(--accent);
  box-shadow: var(--card-shadow), var(--lift-shadow), 0 0 0 4px var(--accent-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--outline);
  background-color: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: transparent;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
}

.form-note a {
  color: var(--accent);
}

/* Dialog */

.form-dialog {
  max-width: 420px;
  width: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--card-rim);
  border-radius: 22px;
  background: var(--canvas-top);
  color: var(--ink);
  box-shadow: var(--photo-shadow);
}

.form-dialog::backdrop {
  background: rgba(5, 8, 14, 0.6);
}

.form-dialog-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.form-dialog-content h2 {
  font-size: 26px;
}

.form-dialog-content p:not(.eyebrow) {
  color: var(--body);
}

.form-dialog-content .button {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  background-color: var(--canvas-top);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand svg {
  width: 36px;
  height: 16px;
  flex: none;
  color: var(--logo);
}

.site-footer strong {
  font-weight: 600;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

/* ---------- Sub-pages (legal, staffing) ---------- */

.page-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-head h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.page-head p:not(.eyebrow) {
  font-size: 18px;
  color: var(--body);
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.legal-section h2 {
  font-size: 20px;
}

.legal-section p,
.legal-section address {
  color: var(--body);
  font-style: normal;
}

.legal-section a,
.page-shell p a {
  color: var(--accent);
}

.legal-section code {
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--band);
}

.legal-updated {
  font-size: 14px;
  color: var(--muted);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  flex-direction: row;
  gap: 20px;
}

.steps .num {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  padding-top: 2px;
}

.steps h2 {
  font-size: 19px;
  margin-bottom: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  .case:hover,
  .case:focus-within,
  .case:hover img,
  .step:hover,
  .model:hover,
  .edu:hover,
  .tags li:hover {
    transform: none;
  }

  .viz-sat,
  .edu:hover .viz-sat {
    transform: rotate(0deg);
  }
}
