@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Maitree";
  src: url("../fonts/maitree-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Maitree";
  src: url("../fonts/maitree-500-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Maitree", Georgia, serif;
  --surface: #f9eee7;
  --surface-raised: #fff9f5;
  --surface-soft: #edf1ee;
  --surface-strong: #315251;
  --surface-deep: #123332;
  --ink: #123332;
  --ink-soft: #315251;
  --muted: #4a6b6a;
  --muted-light: #6e8584;
  --cream: #f9eee7;
  --peach: #ffd9be;
  --coral: #ef9c82;
  --accent: #ff923d;
  --focus-ring: #123332;
  --green: #417b65;
  --blue: #daeef3;
  --line: rgba(18, 51, 50, 0.18);
  --line-strong: rgba(18, 51, 50, 0.34);
  --shadow: 0 24px 80px rgba(49, 82, 81, 0.13);
  --header-bg: rgba(249, 238, 231, 0.9);
  --radius-card: 24px;
  --radius-control: 999px;
  --page-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-space: clamp(5rem, 10vw, 8.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #123332;
  --surface-raised: #193d3b;
  --surface-soft: #214744;
  --surface-strong: #315251;
  --surface-deep: #0c2827;
  --ink: #f9eee7;
  --ink-soft: #f3ddd1;
  --muted: #c3d5d2;
  --muted-light: #a8bfbc;
  --cream: #f9eee7;
  --peach: #6f4c40;
  --coral: #ef9c82;
  --accent: #ff923d;
  --focus-ring: #f9eee7;
  --green: #74ab91;
  --blue: #244c50;
  --line: rgba(249, 238, 231, 0.18);
  --line-strong: rgba(249, 238, 231, 0.34);
  --shadow: 0 24px 80px rgba(2, 18, 18, 0.28);
  --header-bg: rgba(18, 51, 50, 0.9);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
.button,
.site-navigation,
.menu-toggle,
.theme-toggle,
.eyebrow,
.capability-index,
.proof-grid strong,
.tier-use {
  font-family: var(--font-display);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 1.35rem;
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.18;
}

p {
  margin-bottom: 1.25rem;
  max-width: 65ch;
}

::selection {
  background: var(--accent);
  color: #123332;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: #123332;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(100%, calc(var(--page-width) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 4.5rem;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 36px rgba(49, 82, 81, 0.08);
}

.header-inner {
  display: flex;
  width: min(100%, calc(var(--page-width) + (var(--gutter) * 2)));
  min-height: 4.5rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  width: 10.25rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: #f9eee7;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.8rem, 1.5vw, 1.4rem);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-navigation > a:not(.button) {
  position: relative;
  padding-block: 0.35rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-navigation > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  transition: transform 220ms var(--ease-out);
}

.site-navigation > a:not(.button):hover::after,
.site-navigation > a:not(.button):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle,
.theme-toggle {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.menu-toggle {
  display: none;
  padding: 0.65rem 1rem;
}

.theme-toggle {
  padding: 0.48rem 0.75rem;
}

.menu-toggle:hover,
.theme-toggle:hover {
  background: var(--ink);
  color: var(--surface);
}

.menu-toggle:active,
.theme-toggle:active,
.button:active {
  transform: translateY(1px) scale(0.985);
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--surface-strong);
  border-radius: var(--radius-control);
  background: var(--surface-strong);
  color: #f9eee7;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 180ms ease;
}

.button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #123332;
}

:root[data-theme="dark"] .button {
  border-color: var(--accent);
  background: var(--accent);
  color: #123332;
}

:root[data-theme="dark"] .button:hover {
  border-color: #ffd9be;
  background: #ffd9be;
}

.button--small {
  min-height: 2.55rem;
  padding: 0.65rem 1rem;
  font-size: 0.73rem;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover {
  border-color: var(--ink);
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.accent-text {
  color: var(--ink-soft);
}

.hero {
  display: grid;
  min-height: calc(100dvh - 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 7fr) minmax(21rem, 5fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-lede {
  max-width: 35rem;
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.hero-art {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 0;
  border-radius: var(--radius-card);
  aspect-ratio: 3 / 4;
  background: #123332;
  box-shadow: var(--shadow);
}

.hero-art::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(249, 238, 231, 0.22);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 69% center;
  transition: transform 1.2s var(--ease-out);
}

.hero-art.is-visible img {
  transform: scale(1.025);
}

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid article {
  display: grid;
  padding: 0.3rem clamp(1rem, 3vw, 2.5rem);
  gap: 0.15rem;
}

.proof-grid article:first-child {
  padding-left: 0;
}

.proof-grid article + article {
  border-left: 1px solid var(--line);
}

.proof-grid strong {
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.proof-grid span {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.manifesto-copy {
  width: min(100%, 67rem);
  margin-left: clamp(0rem, 12vw, 9rem);
}

.manifesto h2 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
}

.manifesto-lede {
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
  line-height: 1.42;
}

.manifesto-copy > p:last-child {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.section-heading {
  max-width: 51rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading p {
  color: var(--muted);
  font-size: 1.13rem;
}

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

.capability-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(14rem, auto);
  gap: 1rem;
}

.capability {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 18rem;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  flex-direction: column;
  justify-content: flex-end;
  background: var(--surface-raised);
}

.capability > * {
  position: relative;
  z-index: 2;
}

.capability p {
  margin-bottom: 0;
  color: var(--muted);
}

.capability-index {
  margin-bottom: auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.capability--identity {
  grid-column: 1 / span 7;
  background: var(--blue);
}

.capability-grid > .capability:nth-child(2) {
  grid-column: 8 / span 5;
}

.capability--visual {
  min-height: 32rem;
  padding: 0;
  grid-row: span 2;
  grid-column: 1 / span 5;
  color: #f9eee7;
  background: #123332;
}

.capability--visual::after {
  position: absolute;
  inset: 25% 0 0;
  z-index: 1;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(18, 51, 50, 0.96));
}

.capability--visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capability--visual > div {
  padding: clamp(1.5rem, 3vw, 2.35rem);
}

.capability--visual h3,
.capability--visual .capability-index {
  color: #f9eee7;
}

.capability--accent {
  grid-column: 6 / span 7;
  background: var(--peach);
}

.capability--consulting {
  grid-column: 6 / span 7;
  background: var(--surface-strong);
}

.capability--consulting h3,
.capability--consulting .capability-index,
.capability--consulting p {
  color: #f9eee7;
}

.workflow {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  background: var(--surface-soft);
}

.workflow-track {
  display: grid;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 1.5rem;
  grid-auto-flow: column;
  grid-auto-columns: minmax(17rem, 23rem);
  gap: 0;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) transparent;
}

.workflow-item {
  min-height: 15rem;
  padding: 2rem 2rem 2rem 0;
  border-top: 2px solid var(--ink);
  scroll-snap-align: start;
}

.workflow-item + .workflow-item {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.workflow-item::before {
  display: block;
  width: 3rem;
  height: 0.4rem;
  margin-top: -0.18rem;
  margin-bottom: 3rem;
  border-radius: var(--radius-control);
  background: var(--accent);
  content: "";
}

.workflow-item h3 {
  font-size: 1.55rem;
}

.workflow-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.security {
  display: grid;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 7rem);
}

.security-intro {
  position: sticky;
  top: 7rem;
}

.security-intro h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
}

.security-intro > p:last-child {
  color: var(--muted);
}

.tier-explorer {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.tier-tabs {
  display: grid;
  padding: 0.65rem;
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

html:not(.js) .tier-tabs {
  display: none;
}

.tier-tabs button {
  min-height: 2.9rem;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tier-tabs button[aria-selected="true"] {
  background: var(--accent);
  color: #123332;
}

.tier-tabs button:active {
  transform: scale(0.98);
}

.tier-panel {
  padding: clamp(1.6rem, 4vw, 3.5rem);
}

.tier-fallback-label {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.js .tier-fallback-label {
  display: none;
}

html:not(.js) .tier-panel + .tier-panel {
  border-top: 1px solid var(--line);
}

.tier-use {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.tier-panel > div:first-child > p:last-child {
  color: var(--muted);
}

.tier-facts {
  display: grid;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.tier-facts div {
  min-width: 0;
}

.tier-facts dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}

.tier-facts dd {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.45;
}

.memory {
  display: grid;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.memory-art {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #123332;
  box-shadow: var(--shadow);
}

.memory-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.memory-copy h2 {
  max-width: 11ch;
}

.memory-copy > p {
  color: var(--muted);
}

.memory-lede {
  color: var(--ink-soft) !important;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.45;
}

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

.team-grid {
  display: grid;
  border-top: 1px solid var(--line-strong);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-member {
  display: grid;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
}

.team-member:nth-child(even) {
  padding-right: 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.team-member img {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: var(--radius-card);
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.team-member h3 {
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
}

.team-member p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

.closing-cta {
  display: grid;
  width: min(calc(100% - (var(--gutter) * 2)), var(--page-width));
  margin-bottom: var(--section-space);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--radius-card);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  background: var(--surface-strong);
}

.closing-cta h2,
.closing-cta p {
  color: #f9eee7;
}

.closing-cta h2 {
  max-width: 15ch;
  margin-bottom: 0.75rem;
  font-size: clamp(2.2rem, 4.7vw, 4.5rem);
}

.closing-cta p {
  margin-bottom: 0;
}

.closing-cta .button {
  border-color: var(--accent);
  background: var(--accent);
  color: #123332;
}

.closing-cta .button:hover {
  border-color: #ffd9be;
  background: #ffd9be;
}

.closing-cta :focus-visible {
  outline-color: #f9eee7;
}

.site-footer {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(10rem, 1fr) minmax(14rem, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.footer-brand p {
  max-width: 24rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.site-footer nav,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.site-footer a {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-contact address {
  margin-top: 0.5rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.93rem;
  line-height: 1.55;
}

.footer-meta {
  display: flex;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-meta p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-meta > div {
  display: flex;
  gap: 1.25rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.js .reveal[data-delay="1"] {
  transition-delay: 90ms;
}

.js .reveal[data-delay="2"] {
  transition-delay: 180ms;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js :target .reveal,
.js .reveal:target {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

/* Legal and utility pages */
.legal-page main,
.error-page main {
  min-height: calc(100dvh - 4.5rem);
}

.legal-shell {
  width: min(100%, 66rem);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) var(--section-space);
}

.legal-hero {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-strong);
}

.legal-hero h1 {
  max-width: none;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.legal-hero p {
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 600;
}

.legal-content {
  padding-top: 2.5rem;
}

.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.legal-content ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.legal-content address {
  color: var(--ink-soft);
  font-style: normal;
}

.legal-content a {
  color: var(--ink);
  font-weight: 500;
}

.error-shell {
  display: grid;
  width: min(100%, 64rem);
  min-height: calc(100dvh - 4.5rem);
  margin-inline: auto;
  padding: var(--section-space) var(--gutter);
  place-items: center;
  text-align: center;
}

.error-shell h1 {
  max-width: 12ch;
  margin-inline: auto;
}

.error-shell p {
  margin-inline: auto;
  color: var(--muted);
}

@media (max-width: 72rem) {
  .hero {
    grid-template-columns: minmax(0, 3fr) minmax(20rem, 2fr);
    gap: 2rem;
  }

  .security {
    gap: 3rem;
  }
}

@media (max-width: 70rem) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-navigation {
    position: fixed;
    inset: 4.5rem 0 auto;
    display: grid;
    visibility: hidden;
    max-height: calc(100dvh - 4.5rem);
    padding: 1.25rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-1rem);
    background: var(--surface-raised);
    box-shadow: var(--shadow);
    opacity: 0;
    overflow-y: auto;
    justify-content: stretch;
    justify-items: start;
    gap: 0.8rem;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-navigation.is-open {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  html:not(.js) .site-header {
    position: static;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
  }

  html:not(.js) .menu-toggle {
    display: none;
  }

  html:not(.js) .site-navigation {
    position: static;
    inset: auto;
    display: grid;
    visibility: visible;
    width: 100%;
    max-height: none;
    padding: 0 0 1.25rem;
    border: 0;
    transform: none;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transition: none;
    grid-template-columns: 1fr;
  }

  .site-navigation > a:not(.button) {
    width: 100%;
    padding: 0.6rem 0;
    font-size: 1rem;
  }

  .site-navigation .button {
    width: 100%;
    margin-top: 0.35rem;
  }

  .theme-toggle {
    padding: 0.65rem 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    max-width: 43rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 4rem);
  }

  .hero-art {
    max-height: 31rem;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 52rem) {
  .hero {
    min-height: auto;
    padding-top: 2.5rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    max-width: 43rem;
  }

  .hero-art {
    max-height: 31rem;
    aspect-ratio: 4 / 3;
  }

  .manifesto-copy {
    margin-left: 0;
  }

  .capability-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .capability,
  .capability--identity,
  .capability-grid > .capability:nth-child(2),
  .capability--visual,
  .capability--accent,
  .capability--consulting {
    min-height: 18rem;
    grid-row: auto;
    grid-column: 1;
  }

  .capability--visual {
    min-height: 28rem;
  }

  .security {
    grid-template-columns: 1fr;
  }

  .security-intro {
    position: static;
  }

  .memory {
    grid-template-columns: 1fr;
  }

  .memory-art {
    max-width: 35rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-member:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .closing-cta {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }

  .brand {
    width: 8.8rem;
  }

  h1 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid article {
    padding: 0.8rem 0;
  }

  .proof-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .tier-tabs {
    grid-template-columns: 1fr;
  }

  .tier-facts {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-member {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1rem;
  }

  .team-member img {
    width: 5.5rem;
    height: 5.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 23.5rem) {
  h1 span {
    white-space: normal;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-art img,
  .hero-art.is-visible img {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .theme-toggle,
  .menu-toggle {
    display: none !important;
  }

  :root,
  :root[data-theme="dark"] {
    --surface: #ffffff;
    --ink: #000000;
    --ink-soft: #111111;
    --muted: #333333;
    --line: rgba(0, 0, 0, 0.18);
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .legal-shell {
    width: 100%;
    padding: 0;
  }

  .legal-content h2 {
    break-after: avoid;
  }
}

/* Contact dialog + form */
.contact-dialog {
  width: min(42rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
}

.contact-dialog::backdrop {
  background: rgba(12, 40, 39, 0.55);
  backdrop-filter: blur(3px);
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  padding: clamp(1.35rem, 3.5vw, 2.1rem);
}

/* Full-width rows in the 2-column grid. */
.contact-form-head,
.contact-field--full,
.contact-actions,
.contact-status {
  grid-column: 1 / -1;
}

.contact-form-head {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

@media (max-width: 32rem) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

.contact-field label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact-field label span {
  color: var(--muted-light);
  font-weight: 400;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%234a6b6a' stroke-width='1.5' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.7rem;
  cursor: pointer;
}

.contact-field textarea {
  resize: vertical;
  min-height: 4rem;
}

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

.contact-dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.contact-dialog-close:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.contact-status {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-status[data-state="success"] { color: var(--green); }
.contact-status[data-state="error"] { color: #d0021b; }
.contact-status[data-state="pending"] { color: var(--muted); }

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
