/* Shared tokens and components, followed by scoped homepage hero styles. */
:root {
  color-scheme: dark;
  --color-bg: #090f1c;
  --color-surface: #111b2e;
  --color-surface-hover: #17243b;
  --color-text: #f3f5fa;
  --color-muted: #a9b4c8;
  --color-accent: #2863e8;
  --color-accent-hover: #2055cf;
  --color-link: #8bb1ff;
  --color-focus: #afc9ff;
  --color-border: #2a3850;
  --color-input-border: #61718a;
  --color-header: rgb(9 15 28 / 92%);
  --color-accent-soft: rgb(40 99 232 / 12%);
  --color-shadow: rgb(0 0 0 / 18%);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-display: clamp(3rem, 6.5vw, 5.75rem);
  --text-h1: clamp(2.5rem, 5vw, 4.25rem);
  --text-h2: clamp(2rem, 3.5vw, 3rem);
  --text-h3: clamp(1.375rem, 2vw, 1.75rem);
  --text-large: clamp(1.125rem, 1.5vw, 1.25rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-label: 0.75rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;
  --container-width: 75rem;
  --page-gutter: 3rem;
  --section-space: var(--space-7);
  --header-height: 5.5rem;
  --radius-small: 0.5rem;
  --radius-medium: 1rem;
  --radius-pill: 999px;
  --shadow-card: 0 1rem 3rem var(--color-shadow);
  --duration-fast: 160ms;
  --duration-normal: 240ms;
  --ease-standard: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
  scroll-padding-top: calc(var(--header-height) + var(--space-2));
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

main {
  flex: 1;
  min-width: 0;
}

h1, h2, h3, .h1, .h2, .h3, .display-heading {
  margin: 0 0 var(--space-3);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-wrap: balance;
}

.display-heading { font-size: var(--text-display); }
h1, .h1 { font-size: var(--text-h1); }
h2, .h2 { font-size: var(--text-h2); }
h3, .h3 { font-size: var(--text-h3); letter-spacing: -0.025em; }
p { margin: 0 0 var(--space-3); }
.body-large { font-size: var(--text-large); line-height: 1.75; }
.body-normal { font-size: var(--text-body); }
small, .text-small { font-size: var(--text-small); }
.text-muted { color: var(--color-muted); }

.eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-link);
  font-size: var(--text-label);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

a {
  color: var(--color-link);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--color-text); }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 5px;
}

::selection { background: var(--color-accent); color: var(--color-text); }
[hidden] { display: none !important; }

.container {
  width: min(100% - var(--page-gutter) * 2, var(--container-width));
  margin-inline: auto;
}

.section { padding-block: var(--section-space); }
.section-header { max-width: 46rem; margin-bottom: var(--space-5); }
.content-wrapper { max-width: 65ch; }
.content-wrapper > :last-child { margin-bottom: 0; }
.page-shell { padding-block: var(--section-space); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-3);
}

.grid > * { min-width: 0; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
  min-height: 3rem;
  max-width: 100%;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font: inherit;
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--color-accent); color: var(--color-text); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-text); }
.btn-secondary { border-color: var(--color-border); background: var(--color-surface); color: var(--color-text); }
.btn-secondary:hover { background: var(--color-surface-hover); border-color: var(--color-muted); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: linear-gradient(145deg, var(--color-surface-hover), var(--color-surface));
}

.card:focus-within { border-color: var(--color-link); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-link);
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.5;
}

img, picture, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
figure { margin: 0; }
figcaption { margin-top: var(--space-1); color: var(--color-muted); font-size: var(--text-small); }
.image-rounded { border-radius: var(--radius-medium); }

button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
fieldset { min-width: 0; margin: 0; padding: var(--space-3); border: 1px solid var(--color-border); }
legend { padding-inline: var(--space-1); }
.form-field { display: grid; gap: var(--space-1); margin-bottom: var(--space-3); }
label, .form-label { font-size: var(--text-small); font-weight: 600; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-small);
  background: var(--color-surface);
  color: var(--color-text);
}
textarea { min-height: 9rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--color-muted); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--color-accent); }
.form-help { margin: 0; color: var(--color-muted); font-size: var(--text-small); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--page-gutter);
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-small);
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); color: var(--color-bg); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-header);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.nav-list, .footer-links, .social-list { margin: 0; padding: 0; list-style: none; }
.nav-list { display: flex; align-items: center; gap: var(--space-4); }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-muted);
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
}
.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-link);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}
.nav-link[aria-current="page"] { color: var(--color-text); }
.nav-link[aria-current="page"]::after, .nav-link:hover::after { transform: scaleX(1); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}
.menu-icon { display: grid; gap: 5px; width: 18px; }
.menu-icon span { height: 1px; background: currentColor; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-3px) rotate(-45deg); }

.site-footer {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-surface), var(--color-bg));
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
}
.footer-top > * { min-width: 0; }
.footer-brand p { margin: var(--space-1) 0 0; color: var(--color-muted); font-size: var(--text-small); }
.footer-heading { margin: 0 0 var(--space-2); color: var(--color-muted); font-size: var(--text-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-links a, .social-placeholder {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-muted);
  font-size: var(--text-small);
  text-decoration: none;
}
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--color-text); }
.footer-links a[aria-current="page"] { text-decoration: underline; }
.social-placeholder { gap: var(--space-1); cursor: default; }
.placeholder-note { font-size: var(--text-label); }
.footer-bottom { padding-block: var(--space-3); border-top: 1px solid var(--color-border); }
.footer-bottom p { margin: 0; color: var(--color-muted); font-size: var(--text-small); }

/* Homepage hero: retain the original portrait proportions and keep copy dominant. */
.hero {
  background: radial-gradient(ellipse at 90% 35%, var(--color-accent-soft), transparent 55%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-content, .hero-visual { min-width: 0; }

.hero-eyebrow {
  max-width: 42rem;
  margin-bottom: var(--space-4);
  font-size: 0.6875rem;
  line-height: 1.9;
  letter-spacing: 0.09em;
}

.hero-heading {
  max-width: 16ch;
  margin-bottom: var(--space-4);
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 1.1;
}

.hero-accent { color: var(--color-link); }
.hero-description { max-width: 48ch; margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.hero-actions .btn { min-height: 3.25rem; padding-inline: 1.75rem; }
.hero-actions .btn-primary { gap: var(--space-3); }
.hero-availability { max-width: 47ch; margin-bottom: var(--space-4); line-height: 1.7; }
.hero-platforms { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.hero-platforms .badge { background: var(--color-surface); color: var(--color-muted); font-weight: 500; }

.hero-visual { width: 100%; max-width: 33rem; justify-self: end; }
.hero-portrait-frame {
  overflow: hidden;
  padding: var(--space-1);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-medium) + var(--space-1));
  background: linear-gradient(145deg, var(--color-surface-hover), var(--color-bg));
  box-shadow: var(--shadow-card);
}
.hero-portrait { width: 100%; height: auto; border-radius: var(--radius-medium); }

/* Career-level proof, presented as an editorial grid rather than a dashboard. */
.track-record {
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-surface), var(--color-bg));
}
.track-record-header { max-width: 48rem; }
.track-record-header h2 { max-width: 24ch; }
.track-record-header > :last-child { margin-bottom: 0; }
.metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.metric-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-bg);
}
.metric-card::before {
  order: -2;
  width: 2rem;
  height: 2px;
  margin-bottom: var(--space-4);
  background: var(--color-link);
  content: "";
}
.metric-value {
  order: -1;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1.15;
  white-space: nowrap;
}
.metric-label { color: var(--color-muted); font-size: var(--text-small); line-height: 1.6; }

/* Featured work: a wide lead story gives the taller Google screenshot room. */
.featured-work { border-top: 1px solid var(--color-border); }
.featured-projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
}
.project-card-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--space-5);
}
.project-content { min-width: 0; }
.project-card-link { color: inherit; text-decoration: none; }
.project-card-link::after { position: absolute; inset: 0; border-radius: var(--radius-medium); content: ""; }
.project-card:focus-within { border-color: var(--color-focus); outline: 2px solid var(--color-focus); outline-offset: 5px; }
.project-card:focus-within .project-card-link { text-decoration: underline; text-underline-offset: 0.2em; }
.project-category { margin-bottom: var(--space-2); color: var(--color-link); font-size: var(--text-small); font-weight: 500; }
.project-content h3 { max-width: 25ch; margin-bottom: var(--space-4); }
.project-result { display: flex; flex-direction: column; margin: 0 0 var(--space-3); }
.project-result dd {
  order: -1;
  margin: 0 0 var(--space-1);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.project-result dt { color: var(--color-muted); font-size: var(--text-small); }
.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-3);
  padding: var(--space-3) 0;
  border-block: 1px solid var(--color-border);
  list-style: none;
}
.project-metrics li { color: var(--color-muted); font-size: var(--text-small); }
.project-metrics strong { display: block; color: var(--color-text); font-weight: 600; }
.project-description { margin-bottom: var(--space-4); color: var(--color-muted); }
.project-card-lead .project-description { margin-bottom: 0; }
.project-figure { min-width: 0; margin-top: auto; }
.project-card-lead .project-figure { margin-top: 0; }
.project-image-link {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-bg);
}
.project-image-link img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius-small) - 1px);
}
.project-figure figcaption { font-size: var(--text-label); }
.featured-work-actions { display: flex; justify-content: center; margin-top: var(--space-5); }

/* Expertise cards are informational, with decorative identifiers and semantic lists. */
.core-expertise { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.expertise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.expertise-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-bg);
}
.expertise-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  color: var(--color-link);
  background: var(--color-accent-soft);
  font-size: var(--text-label);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.expertise-card h3 { margin-bottom: var(--space-2); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.3; }
.expertise-description { margin-bottom: var(--space-3); color: var(--color-muted); font-size: var(--text-small); line-height: 1.8; }
.expertise-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1) var(--space-2);
  margin: auto 0 0;
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--color-border);
  list-style: none;
}
.expertise-areas li { display: flex; align-items: baseline; gap: 0.5rem; font-size: var(--text-label); line-height: 1.65; }
.expertise-areas li::before { flex: 0 0 3px; width: 3px; height: 3px; background: var(--color-link); content: ""; }

/* Explicit placeholders until verified client feedback is supplied. */
.client-testimonials { border-top: 1px solid var(--color-border); }
.testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testimonial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
}
.testimonial-status { margin-bottom: var(--space-3); color: var(--color-link); font-size: var(--text-label); line-height: 1.6; }
.testimonial-quote { margin: 0 0 var(--space-3); padding-left: var(--space-2); border-left: 2px solid var(--color-border); }
.testimonial-quote p { margin: 0; font-size: var(--text-body); line-height: 1.7; }
.testimonial-attribution { display: grid; gap: 0.25rem; margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.testimonial-name { color: var(--color-muted); font-weight: 600; }
.testimonial-company { color: var(--color-muted); }

.final-contact { padding-bottom: var(--section-space); }
.final-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
}
.final-contact-content { max-width: 44rem; min-width: 0; }
.final-contact-content h2 { font-size: clamp(1.875rem, 3vw, 2.75rem); }
.final-contact-content > :last-child { margin-bottom: 0; }
.final-contact-actions { display: flex; flex-direction: column; gap: var(--space-2); }

/* Projects catalog: separate selectors keep the homepage cards unchanged. */
.projects-page-hero { padding-block: clamp(3rem, 6vw, 5rem) var(--space-5); }
.projects-page-hero h1 { max-width: 25ch; font-size: clamp(2.25rem, 4vw, 3.5rem); }
.projects-page-hero .body-large { max-width: 56ch; margin-bottom: 0; }
.projects-catalog { padding-bottom: var(--section-space); }
.project-filters { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.project-filter { min-height: 2.75rem; padding: 0.6rem 1rem; border-radius: var(--radius-pill); }
.project-filter[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-text); }
.catalog-status { min-height: 1.5rem; margin-block: var(--space-3); }
.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; min-height: 20rem; }
.catalog-card { min-width: 0; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-medium); background: var(--color-surface); }
.catalog-card-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1); margin-bottom: var(--space-2); }
.catalog-card-heading .project-category { margin: 0; }
.catalog-card h3 { margin-bottom: var(--space-3); }
.catalog-card .project-result dd { font-size: clamp(1.75rem, 3.5vw, 3rem); overflow-wrap: anywhere; }
.catalog-metrics { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0 0 var(--space-3); padding: var(--space-3) 0; border-block: 1px solid var(--color-border); list-style: none; font-size: var(--text-small); }
.catalog-screenshot-link { display: block; color: var(--color-muted); text-decoration: none; border-radius: var(--radius-small); }
.catalog-image-frame { display: grid; place-items: center; padding: var(--space-1); border: 1px solid var(--color-border); border-radius: var(--radius-small); background: var(--color-bg); }
.catalog-image-frame img { width: auto; height: auto; max-width: 100%; max-height: 30rem; border-radius: 0.25rem; object-fit: contain; }
.catalog-image-caption { display: block; margin-top: var(--space-1); font-size: var(--text-label); }
.catalog-screenshot-link:hover .catalog-image-caption { text-decoration: underline; }
.catalog-card:focus-within { border-color: var(--color-focus); }
.catalog-case-study { display: inline-block; margin-top: var(--space-3); padding-block: var(--space-1); font-size: var(--text-small); }

/* Shared case-study pattern: static content, reported results, and unaltered evidence. */
.case-hero { padding-block: var(--space-5); }
.case-back { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 2.75rem; margin-bottom: var(--space-2); font-size: var(--text-small); }
.case-breadcrumb { margin-bottom: var(--space-4); font-size: var(--text-small); color: var(--color-muted); }
.case-breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.case-breadcrumb li + li::before { content: "/"; margin-right: var(--space-1); }
.case-hero h1 { max-width: 24ch; font-size: clamp(2.25rem, 4vw, 3.5rem); }
.case-hero .body-large { max-width: 65ch; margin-bottom: 0; }
.case-block { padding-bottom: var(--space-5); }
.case-study h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.25; }
.case-results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; gap: var(--space-2); }
.case-results-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-result { display: flex; flex-direction: column; min-width: 0; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-medium); background: var(--color-surface); }
.case-result dd { order: -1; margin: 0 0 var(--space-1); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.035em; line-height: 1.25; overflow-wrap: anywhere; }
.case-result dt { color: var(--color-muted); font-size: var(--text-small); }
.case-editorial { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); padding-block: var(--space-5); margin-bottom: var(--space-5); border-block: 1px solid var(--color-border); }
.case-editorial > section { min-width: 0; }
.case-editorial p { margin: 0; }
.case-approach { margin: 0; padding-left: 1.25rem; color: var(--color-muted); }
.case-approach li + li { margin-top: var(--space-1); }
.case-approach li::marker { color: var(--color-link); }
.case-evidence { padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-medium); background: var(--color-surface); }
.case-evidence-link { display: block; width: fit-content; max-width: 100%; margin-inline: auto; border-radius: var(--radius-small); }
.case-evidence img { width: auto; height: auto; max-width: 100%; border-radius: var(--radius-small); }
.case-evidence figcaption { margin-top: var(--space-2); }
.case-takeaway { padding: var(--space-4); border-left: 2px solid var(--color-link); background: var(--color-surface); border-radius: var(--radius-small); }
.case-takeaway p { max-width: 78ch; margin: 0; }
.case-project-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); padding-bottom: var(--space-5); }
.case-neighbor { display: flex; flex-direction: column; gap: var(--space-1); padding-block: var(--space-2); text-decoration: none; }
.case-neighbor-next { grid-column: 2; text-align: right; }
.case-neighbor:hover > :last-child { text-decoration: underline; }
/* Contact page: scoped additions to the existing form and layout system. */
html.contact-page { scroll-behavior: smooth; }
.contact-hero { padding-block: clamp(3rem, 6vw, 5rem) var(--space-5); }
.contact-hero h1 { max-width: 23ch; font-size: clamp(2.25rem, 4vw, 3.5rem); }
.contact-hero .body-large { max-width: 65ch; margin-bottom: 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; padding-bottom: var(--section-space); }
.contact-panel { min-width: 0; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-medium); background: var(--color-surface); }
.contact-panel h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.contact-panel fieldset { padding: 0; border: 0; }
.contact-required { margin-bottom: var(--space-3); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.contact-fields .form-field { min-width: 0; margin: 0; align-content: start; }
.contact-fields label { line-height: 1.6; }
.contact-fields select { padding-right: 1.5rem; }
.contact-field-wide { grid-column: 1 / -1; }
.contact-note { margin-block: var(--space-3); }
.contact-status { margin: 0; color: var(--color-link); font-size: var(--text-small); }
.contact-status:not(:empty) { margin-top: var(--space-3); padding: var(--space-2); border-left: 2px solid var(--color-link); background: var(--color-bg); }
.contact-methods { min-width: 0; }
.contact-methods h2 { font-size: 1.25rem; line-height: 1.4; }
.contact-method-list { list-style: none; padding: 0; margin: 0; }
.contact-method-list li { padding-block: var(--space-3); border-top: 1px solid var(--color-border); }
.contact-method-list h3 { font-size: 1rem; letter-spacing: 0; margin-bottom: var(--space-1); }

/* Current personal brand mark reuses the existing portrait. */
.site-header .brand { display: inline-flex; align-items: center; gap: 0.625rem; }
.brand-avatar { width: 2rem; height: 2rem; flex: 0 0 2rem; border: 1px solid var(--color-link); border-radius: 50%; object-fit: cover; }
