@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #c97454;
}

@property --accent-dark {
  syntax: "<color>";
  inherits: true;
  initial-value: #8b402a;
}

@property --accent-soft {
  syntax: "<color>";
  inherits: true;
  initial-value: #ddb19f;
}

:root {
  --ink: #1b2023;
  --ink-soft: #363d40;
  --paper: #e7e2da;
  --surface: #f2eee8;
  --surface-soft: #d7d0c7;
  --accent: #c97454;
  --accent-dark: #8b402a;
  --accent-soft: #ddb19f;
  --muted: #696c6b;
  --line: #c5bcb2;
  --line-strong: #a69a8f;
  --success: #4e7964;
  --dark: #171c1f;
  --dark-soft: #242b2e;
  --cream: #f2eee8;
  --max-width: 1180px;
  --radius: 16px;
  --shadow: 0 24px 64px rgba(11, 18, 21, 0.22);
  transition:
    --accent 1200ms ease,
    --accent-dark 1200ms ease,
    --accent-soft 1200ms ease;
}

html[data-accent="ocean"] {
  --accent: #72a9b5;
  --accent-dark: #356f7b;
  --accent-soft: #b3cfd4;
}

html[data-accent="sage"] {
  --accent: #91ad87;
  --accent-dark: #52714f;
  --accent-soft: #c3d1bd;
}

* {
  box-sizing: border-box;
}

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

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  border-radius: 8px;
  background: var(--accent-dark);
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  color: var(--cream);
  border-bottom: 1px solid rgba(245, 241, 231, 0.13);
  background: rgba(23, 28, 31, 0.94);
  backdrop-filter: blur(18px);
}

.nav {
  display: grid;
  min-height: 76px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--dark);
  border-radius: 10px;
  background: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 18px;
}

.theme-toggle {
  display: inline-flex;
  min-height: 34px;
  padding: 0 10px;
  align-items: center;
  gap: 7px;
  color: rgba(242, 238, 232, 0.68);
  border: 1px solid rgba(242, 238, 232, 0.2);
  border-radius: 8px;
  background: rgba(242, 238, 232, 0.03);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--dark);
  border-color: var(--accent);
  background: var(--accent);
}

.theme-icon {
  font-size: 15px;
  line-height: 1;
}

.nav-links a,
.nav-cta {
  color: rgba(245, 241, 231, 0.68);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--accent);
}

.nav-cta {
  justify-self: end;
  color: var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    linear-gradient(rgba(245, 241, 231, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 231, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 86% 24%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28%),
    var(--dark);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.hero::before {
  position: absolute;
  top: 76px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 241, 231, 0.18), transparent);
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 760px;
  padding-block: 148px 92px;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  gap: 82px;
  align-items: center;
}

.kicker {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.kicker span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.kicker.dark {
  color: var(--accent-dark);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.08;
}

h1 {
  max-width: 750px;
  margin-bottom: 27px;
  font-size: clamp(50px, 6.1vw, 78px);
  font-weight: 700;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(245, 241, 231, 0.68);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  margin-top: 36px;
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 19px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-accent {
  color: var(--dark);
  background: var(--accent);
}

.button-accent:hover,
.button-accent:focus-visible {
  background: #d98767;
}

.button-dark {
  color: var(--cream);
  background: var(--dark-soft);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: var(--accent);
  color: var(--dark);
}

.button-ghost {
  color: var(--cream);
  border-color: rgba(245, 241, 231, 0.28);
  background: rgba(245, 241, 231, 0.025);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--dark);
  border-color: var(--accent);
  background: var(--accent);
}

.hero-console {
  overflow: hidden;
  border: 1px solid rgba(245, 241, 231, 0.16);
  border-radius: var(--radius);
  background: rgba(39, 40, 32, 0.92);
  box-shadow: var(--shadow);
}

.console-bar {
  display: flex;
  min-height: 48px;
  padding-inline: 18px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(245, 241, 231, 0.12);
  background: rgba(245, 241, 231, 0.035);
}

.console-bar span {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(245, 241, 231, 0.28);
  border-radius: 50%;
  background: transparent;
}

.console-bar b {
  margin-left: auto;
  color: rgba(245, 241, 231, 0.5);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
}

.console-body {
  padding: 8px 20px;
}

.console-body p {
  display: grid;
  margin: 0;
  padding: 17px 0;
  grid-template-columns: 30px 70px 1fr;
  gap: 9px;
  border-bottom: 1px solid rgba(245, 241, 231, 0.1);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.console-body p:last-child {
  border-bottom: 0;
}

.console-body i {
  color: rgba(245, 241, 231, 0.3);
  font-style: normal;
}

.console-body span {
  color: var(--accent);
}

.console-body strong {
  color: rgba(245, 241, 231, 0.82);
  font-weight: 500;
}

.availability {
  padding: 17px 20px;
  color: rgba(245, 241, 231, 0.62);
  border-top: 1px solid rgba(245, 241, 231, 0.12);
  background: rgba(0, 0, 0, 0.1);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.availability span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(78, 121, 100, 0.1);
}

.evidence-bar {
  border-block: 1px solid rgba(23, 28, 31, 0.55);
  background: var(--accent);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.evidence-grid p {
  display: flex;
  min-height: 118px;
  margin: 0;
  padding: 24px 26px;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(23, 28, 31, 0.28);
}

.evidence-grid p:last-child {
  border-right: 1px solid rgba(23, 28, 31, 0.28);
}

.evidence-grid strong {
  color: var(--dark);
  font-size: 25px;
  letter-spacing: -0.035em;
}

.evidence-grid span {
  color: rgba(23, 28, 31, 0.74);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section {
  padding-block: 112px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 72px;
  align-items: end;
}

.section-intro h2,
.experience-heading h2 {
  margin-bottom: 0;
  font-size: clamp(43px, 5.1vw, 66px);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.section-intro > p,
.experience-heading > p:last-child {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 17px;
}

.case-study {
  background: var(--paper);
}

.case-meta {
  display: grid;
  margin-top: 58px;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.case-meta div {
  min-height: 118px;
  padding: 23px;
  border-left: 1px solid var(--line);
}

.case-meta div:first-child {
  border-left: 0;
}

.case-meta span,
.index,
.work-label,
.contact-index {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.case-meta strong {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.problem-grid {
  display: grid;
  margin-top: 24px;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.problem-grid article {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.problem-grid h3 {
  max-width: 510px;
  margin-bottom: 22px;
  font-size: clamp(27px, 2.8vw, 38px);
  letter-spacing: -0.04em;
}

.problem-grid article > p:last-child {
  max-width: 550px;
  margin-bottom: 0;
  color: var(--muted);
}

.architecture {
  display: grid;
  margin-top: 24px;
  padding: 24px;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #fff;
  border-radius: var(--radius);
  background: var(--dark-soft);
}

.architecture div {
  display: flex;
  min-height: 104px;
  padding: 16px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.architecture div span {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.architecture div strong {
  margin-block: 5px 3px;
  font-size: 14px;
}

.architecture div small {
  color: rgba(255, 255, 255, 0.6);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.architecture > b {
  color: var(--accent);
}

.case-evidence {
  display: grid;
  margin-top: 82px;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 66px;
  align-items: center;
}

.evidence-copy h3 {
  margin-bottom: 20px;
  font-size: 40px;
  letter-spacing: -0.045em;
}

.evidence-copy > p:not(.index) {
  color: var(--muted);
}

.evidence-copy ul {
  margin: 27px 0 31px;
  padding: 0;
  list-style: none;
}

.evidence-copy li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.evidence-copy li span {
  margin-right: 8px;
  color: var(--success);
}

.verification-row {
  display: flex;
  margin: -8px 0 27px;
  flex-wrap: wrap;
  gap: 8px;
}

.verification-row span {
  padding: 6px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.verification-row i,
.product-shot-bar i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--success);
}

.product-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-shot-bar {
  display: flex;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  background: var(--surface-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.product-shot-bar strong {
  color: var(--success);
  font-weight: 600;
}

.product-shot-bar i {
  background: var(--success);
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-top: 1px solid var(--line);
}

.product-shot figcaption {
  margin: 0;
  padding: 12px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.selected-work {
  color: var(--cream);
  border-block: 1px solid rgba(245, 241, 231, 0.12);
  background: var(--dark);
}

.work-list {
  margin-top: 66px;
  border-top: 1px solid rgba(245, 241, 231, 0.24);
}

.work-item {
  display: grid;
  min-height: 245px;
  padding-block: 34px;
  grid-template-columns: 72px 1.35fr 0.65fr 150px;
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid rgba(245, 241, 231, 0.14);
}

.work-number {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.work-item h3 {
  margin-bottom: 13px;
  font-size: 40px;
  letter-spacing: -0.045em;
}

.work-item > div > p:last-child {
  max-width: 600px;
  margin-bottom: 0;
  color: rgba(245, 241, 231, 0.6);
}

.selected-work .work-label,
.selected-work .work-number {
  color: var(--accent);
}

.work-intro > p {
  color: rgba(245, 241, 231, 0.6);
}

.work-label {
  display: flex;
  margin-bottom: 9px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.verified {
  display: inline-block;
  margin: 0;
  padding: 3px 7px;
  color: #e0b7a7;
  border: 1px solid rgba(224, 183, 167, 0.28);
  border-radius: 99px;
  background: rgba(224, 183, 167, 0.06);
  font-size: 8px;
  letter-spacing: 0.05em;
}

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

.work-item li {
  padding: 5px 0;
  color: rgba(245, 241, 231, 0.5);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.work-actions {
  display: flex;
  justify-self: end;
  flex-direction: column;
  gap: 8px;
}

.work-actions a {
  display: inline-flex;
  min-width: 108px;
  min-height: 40px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.work-actions a:hover,
.work-actions a:focus-visible {
  color: var(--dark);
  border-color: var(--accent);
  background: var(--accent);
}

.experience {
  background: var(--paper);
}

.experience-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.experience-heading {
  position: sticky;
  top: 112px;
  align-self: start;
}

.experience-heading h2 {
  margin-bottom: 27px;
  font-size: clamp(41px, 4.7vw, 60px);
}

.timeline {
  border-top: 1px solid var(--line-strong);
}

.timeline article {
  display: grid;
  min-height: 156px;
  padding-block: 27px;
  grid-template-columns: 126px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
}

.timeline h3 {
  margin-bottom: 11px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

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

.about {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.about-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: center;
}

.portrait-card {
  position: relative;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 14px 14px 0 var(--accent-soft);
}

.portrait-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
}

.portrait-card figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-copy h2 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -0.05em;
}

.about-lead {
  max-width: 790px;
  color: var(--ink-soft);
  font-size: 19px;
}

.about-facts {
  display: grid;
  margin-top: 32px;
  grid-template-columns: 0.7fr 1fr 1.3fr;
  border-block: 1px solid var(--line);
}

.about-facts p {
  min-height: 100px;
  margin: 0;
  padding: 22px 20px;
  border-left: 1px solid var(--line);
}

.about-facts p:first-child {
  padding-left: 0;
  border-left: 0;
}

.about-facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 600;
}

.about-facts strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.about-links {
  display: flex;
  margin-top: 26px;
  flex-wrap: wrap;
  gap: 10px;
}

.about-links a {
  padding: 9px 12px;
  color: var(--accent-dark);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.about-links a:hover,
.about-links a:focus-visible {
  color: var(--cream);
  border-color: var(--dark);
  background: var(--dark);
}

.principles {
  color: var(--cream);
  border-top: 1px solid rgba(245, 241, 231, 0.1);
  background: #24251f;
}

.principles-grid {
  display: grid;
  margin-top: 54px;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(245, 241, 231, 0.13);
  border-radius: var(--radius);
  background: #2b2c25;
}

.principles-grid article {
  min-height: 320px;
  padding: 32px;
  border-left: 1px solid rgba(245, 241, 231, 0.12);
}

.principles-grid article:first-child {
  border-left: 0;
}

.principles-grid span {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.principles-grid h3 {
  margin: 44px 0 19px;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.principles-grid p {
  color: rgba(245, 241, 231, 0.6);
}

.contact {
  padding-block: 100px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.contact-panel {
  padding: 42px 46px 46px;
  color: var(--cream);
  border: 1px solid rgba(242, 238, 232, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
    var(--dark);
  box-shadow: var(--shadow);
}

.contact-topline {
  display: flex;
  padding-bottom: 26px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(242, 238, 232, 0.15);
}

.contact-main {
  display: grid;
  padding-top: 42px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 70px;
  align-items: center;
}

.contact-index {
  margin: 0;
  color: var(--accent);
}

.contact-location {
  margin: 0;
  color: rgba(242, 238, 232, 0.56);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.contact h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 4.8vw, 62px);
  letter-spacing: -0.05em;
}

.contact-actions {
  display: flex;
  min-width: 210px;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.contact-link {
  color: rgba(242, 238, 232, 0.66);
  font-size: 11px;
  font-weight: 600;
}

footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.contact .button-accent {
  color: var(--dark);
  background: var(--accent);
}

.contact .button-accent:hover,
.contact .button-accent:focus-visible {
  color: var(--dark);
  border-color: var(--cream);
  background: var(--cream);
}

.footer-grid {
  display: grid;
  min-height: 100px;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-grid p {
  margin: 0;
}

.footer-grid p:nth-child(2) {
  text-align: center;
}

.footer-grid p:last-child {
  text-align: right;
}

html[data-theme="light"] .site-header {
  color: var(--ink);
  border-color: rgba(27, 32, 35, 0.13);
  background: rgba(247, 244, 239, 0.94);
}

html[data-theme="light"] .brand {
  color: var(--ink);
}

html[data-theme="light"] .nav-links a,
html[data-theme="light"] .nav-cta {
  color: var(--muted);
}

html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a:focus-visible,
html[data-theme="light"] .nav-cta:hover,
html[data-theme="light"] .nav-cta:focus-visible {
  color: var(--accent-dark);
}

html[data-theme="light"] .theme-toggle {
  color: var(--ink-soft);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible {
  color: var(--surface);
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

html[data-theme="light"] .hero {
  color: var(--ink);
  background:
    linear-gradient(rgba(27, 32, 35, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 32, 35, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 86% 24%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 28%),
    var(--surface);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

html[data-theme="light"] .hero::before {
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

html[data-theme="light"] h1 em,
html[data-theme="light"] .hero .kicker {
  color: var(--accent-dark);
}

html[data-theme="light"] .hero-lead {
  color: var(--ink-soft);
}

html[data-theme="light"] .button-ghost {
  color: var(--ink-soft);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .button-ghost:hover,
html[data-theme="light"] .button-ghost:focus-visible {
  color: var(--surface);
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

html[data-theme="light"] .hero-console {
  border-color: var(--line);
  background: rgba(242, 238, 232, 0.94);
  box-shadow: 0 24px 64px rgba(30, 37, 40, 0.12);
}

html[data-theme="light"] .console-bar {
  border-color: var(--line);
  background: var(--surface-soft);
}

html[data-theme="light"] .console-bar span {
  border-color: var(--line-strong);
}

html[data-theme="light"] .console-bar b,
html[data-theme="light"] .console-body i {
  color: var(--muted);
}

html[data-theme="light"] .console-body p {
  border-color: var(--line);
}

html[data-theme="light"] .console-body strong {
  color: var(--ink-soft);
}

html[data-theme="light"] .availability {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.32);
}

html[data-theme="light"] .selected-work {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

html[data-theme="light"] .work-list,
html[data-theme="light"] .work-item {
  border-color: var(--line);
}

html[data-theme="light"] .work-intro > p,
html[data-theme="light"] .work-item > div > p:last-child,
html[data-theme="light"] .work-item li {
  color: var(--muted);
}

html[data-theme="light"] .selected-work .work-label,
html[data-theme="light"] .selected-work .work-number {
  color: var(--accent-dark);
}

html[data-theme="light"] .verified {
  color: var(--accent-dark);
  border-color: color-mix(in srgb, var(--accent-dark) 24%, transparent);
  background: color-mix(in srgb, var(--accent-dark) 6%, transparent);
}

html[data-theme="light"] .work-actions a {
  color: var(--accent-dark);
  border-color: var(--line-strong);
}

html[data-theme="light"] .principles {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-soft);
}

html[data-theme="light"] .principles-grid {
  border-color: var(--line);
  background: var(--surface);
}

html[data-theme="light"] .principles-grid article {
  border-color: var(--line);
}

html[data-theme="light"] .principles-grid p {
  color: var(--muted);
}

html[data-theme="light"] .contact-panel {
  color: var(--ink);
  border-color: var(--line);
  background:
    radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 30%),
    var(--surface);
  box-shadow: 0 24px 64px rgba(30, 37, 40, 0.12);
}

html[data-theme="light"] .contact-topline {
  border-color: var(--line);
}

html[data-theme="light"] .contact-location,
html[data-theme="light"] .contact-link {
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .section-intro,
  .case-evidence,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 138px 84px;
  }

  .hero-console {
    max-width: 650px;
  }

  .case-meta {
    grid-template-columns: 1fr 1fr;
  }

  .case-meta div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-meta div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .architecture > b {
    display: none;
  }

  .work-item {
    grid-template-columns: 56px 1fr 125px;
  }

  .work-item ul {
    display: none;
  }

  .experience-heading {
    position: static;
  }

  .about-card,
  .contact-main {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    max-width: 260px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 70px;
  }

  body {
    font-size: 15px;
  }

  .shell {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .nav {
    min-height: 70px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .nav-cta {
    font-size: 11px;
  }

  .nav-actions {
    gap: 10px;
  }

  .theme-toggle {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .theme-label {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    padding-block: 118px 66px;
    gap: 48px;
  }

  h1 {
    font-size: clamp(43px, 13.5vw, 61px);
  }

  .hero-lead {
    font-size: 17px;
  }

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

  .console-body p {
    grid-template-columns: 25px 64px 1fr;
    font-size: 9px;
  }

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

  .evidence-grid p {
    min-height: 100px;
    padding: 17px;
    border-bottom: 1px solid var(--line);
  }

  .evidence-grid p:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .section {
    padding-block: 78px;
  }

  .section-intro {
    gap: 24px;
  }

  .section-intro h2,
  .experience-heading h2 {
    font-size: clamp(39px, 12vw, 55px);
  }

  .section-intro > p,
  .experience-heading > p:last-child {
    font-size: 16px;
  }

  .case-meta {
    grid-template-columns: 1fr;
  }

  .case-meta div,
  .case-meta div:nth-child(4) {
    min-height: auto;
    padding: 19px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-meta div:first-child {
    border-top: 0;
  }

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

  .problem-grid article {
    padding: 24px;
  }

  .architecture {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .architecture div {
    min-height: 88px;
  }

  .case-evidence {
    gap: 46px;
  }

  .evidence-copy h3 {
    font-size: 35px;
  }

  .work-list {
    margin-top: 42px;
  }

  .work-item {
    min-height: auto;
    grid-template-columns: 35px 1fr;
    gap: 14px;
  }

  .work-item h3 {
    font-size: 32px;
  }

  .work-actions {
    grid-column: 2;
    justify-self: start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-card {
    gap: 48px;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .about-facts p,
  .about-facts p:first-child {
    min-height: auto;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .about-facts p:first-child {
    border-top: 0;
  }

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

  .principles-grid article {
    min-height: auto;
    padding: 30px 24px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principles-grid article:first-child {
    border-top: 0;
  }

  .principles-grid h3 {
    margin-top: 25px;
  }

  .contact {
    padding-block: 72px;
  }

  .contact-panel {
    padding: 28px 24px 30px;
    border-radius: 18px;
  }

  .contact-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .contact-main {
    padding-top: 32px;
    gap: 30px;
  }

  .contact h2 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .footer-grid {
    padding-block: 27px;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .footer-grid p:nth-child(2),
  .footer-grid p:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
