/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4 */
/* Hallmark · genre: modern-minimal · tone: assured human technical · palette: cool cobalt · macrostructure: Split Studio · variation: proof rail + alternating service detail · design-system: design.md · designed-as-app · hero: H2 split diptych · nav: N5 · footer: Ft1 · depth: static raised planes · enrichment: semantic lead-flow + real project captures · contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57) */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-lg));
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
}

h1,
h2,
h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

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

a {
  color: inherit;
}

a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
summary {
  cursor: pointer;
}

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

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: var(--rule-fine) solid var(--color-focus);
  outline-offset: var(--rule-hair);
}

.container,
.media-container {
  width: calc(100% - (var(--page-gutter) + var(--page-gutter)));
  margin-inline: auto;
}

.container {
  max-width: var(--container);
}

.media-container {
  max-width: var(--container-media);
}

.sr-only {
  position: absolute;
  width: var(--rule-hair);
  height: var(--rule-hair);
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-block-start: var(--space-sm);
  inset-inline-start: var(--page-gutter);
  z-index: var(--z-toast);
  min-height: var(--control-height);
  padding: var(--space-xs) var(--space-sm);
  transform: translateY(-200%);
  background: var(--color-paper);
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-micro) var(--ease-out);
}

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

/* Navigation · N5 floating rail */
.site-header {
  position: relative;
  z-index: var(--z-sticky-nav);
  height: 0;
}

.nav-shell,
.nav-actions,
.language-switcher,
.brand,
.button,
.nav-contact,
.nav-links,
.mobile-nav summary {
  display: flex;
  align-items: center;
}

.nav-shell {
  position: fixed;
  inset-block-start: var(--space-xs);
  inset-inline-start: 50%;
  width: fit-content;
  max-width: calc(100% - (var(--space-sm) + var(--space-sm)));
  min-height: var(--header-height);
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs);
  transform: translateX(-50%);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: color-mix(in oklch, var(--color-paper) 92%, transparent);
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(var(--space-md)) saturate(120%);
}

.brand {
  flex: 0 0 auto;
  min-width: 0;
  min-height: var(--control-height);
  gap: var(--space-2xs);
  padding-inline: var(--space-3xs) var(--space-2xs);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: var(--space-lg);
  height: var(--space-lg);
  object-fit: contain;
}

.brand > span,
.nav-links,
.nav-contact-desktop {
  display: none;
}

.brand strong,
.footer-wordmark span {
  color: var(--color-accent);
  font-weight: 700;
}

.nav-links {
  gap: var(--space-3xs);
  list-style: none;
}

.nav-links a,
.mobile-nav-panel a {
  min-height: var(--control-height);
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a {
  display: flex;
  padding-inline: var(--space-xs);
  border-radius: var(--radius-pill);
  color: var(--color-neutral);
}

.nav-actions {
  flex: 0 0 auto;
  min-width: 0;
  gap: var(--space-2xs);
}

.language-switcher {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
}

.language-switcher a {
  display: grid;
  min-width: var(--control-height);
  min-height: var(--control-height);
  place-items: center;
  color: var(--color-neutral);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.language-switcher a[aria-current="page"] {
  background: var(--color-ink);
  color: var(--color-paper);
}

.nav-contact {
  min-height: var(--control-height);
  justify-content: center;
  padding-inline: var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-nav {
  position: relative;
  flex: 0 0 auto;
}

.mobile-nav summary {
  min-width: var(--control-height);
  min-height: var(--control-height);
  justify-content: center;
  padding-inline: var(--space-xs);
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  list-style: none;
  white-space: nowrap;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav[open] summary {
  background: var(--color-ink);
  color: var(--color-paper);
}

.mobile-nav-panel {
  position: fixed;
  inset-block-start: calc(var(--space-xs) + var(--header-height) + var(--space-xs));
  inset-inline: var(--page-gutter);
  display: grid;
  width: auto;
  max-width: 22rem;
  margin-inline-start: auto;
  gap: var(--space-2xs);
  padding: var(--space-xs);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  box-shadow: var(--shadow-nav);
}

.mobile-nav-panel a {
  display: flex;
  justify-content: flex-start;
  padding-inline: var(--space-sm);
  border-radius: var(--radius-button);
}

.mobile-nav-panel .nav-contact {
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

/* Shared actions */
.button {
  width: fit-content;
  min-height: var(--control-height);
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-md);
  border: var(--rule-hair) solid transparent;
  border-radius: var(--radius-button);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

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

.button-secondary,
.button-on-dark {
  border-color: var(--color-rule-2);
  background: transparent;
  color: inherit;
}

.button:active,
.nav-contact:active,
.nav-links a:active,
.mobile-nav-panel a:active {
  transform: translateY(var(--rule-hair));
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  background: var(--color-disabled);
  color: var(--color-neutral);
  opacity: 0.55;
}

.button[data-state="loading"] {
  cursor: progress;
  background: var(--color-ink-2);
  color: var(--color-paper);
}

.button[data-state="success"] {
  background: var(--color-success);
  color: var(--color-paper);
}

.button[data-state="error"] {
  background: var(--color-error);
  color: var(--color-paper);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  min-height: var(--control-height);
  align-items: center;
  gap: var(--space-2xs);
  color: inherit;
  font-weight: 600;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: var(--rule-fine);
  text-underline-offset: var(--rule-fine);
  white-space: nowrap;
}

/* Hero · H2 split diptych */
.hero {
  padding-block: var(--space-xl) var(--space-2xl);
  background: var(--color-dark);
  color: var(--color-on-dark);
}

.hero-layout {
  display: grid;
  min-width: 0;
  gap: var(--space-2xl);
  padding-block-start: var(--header-height);
}

.hero-copy,
.hero-system {
  min-width: 0;
}

.hero-kicker {
  margin-block-end: var(--space-md);
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 13ch;
  font-size: var(--text-display);
  line-height: 0.98;
}

html[lang="en"] .hero h1 {
  font-size: var(--text-display-s);
}

.hero h1 span {
  color: var(--color-on-dark);
}

.hero-lede {
  max-width: 58ch;
  margin-block-start: var(--space-lg);
  color: var(--color-on-dark-muted);
  font-size: clamp(var(--text-base), 2vw, var(--text-md));
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-block-start: var(--space-lg);
}

.hero .button-secondary {
  border-color: var(--color-dark-2);
  color: var(--color-on-dark);
}

.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  margin-block-start: var(--space-xl);
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
  list-style: none;
}

.hero-assurances li {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.hero-assurances li::before {
  width: var(--space-xs);
  height: var(--rule-fine);
  flex: 0 0 auto;
  background: var(--color-accent);
  content: "";
}

.hero-system {
  align-self: end;
  padding: var(--space-lg);
  border: var(--rule-hair) solid var(--color-dark-highlight);
  border-radius: var(--radius-card);
  background: var(--color-dark-2);
  box-shadow: var(--shadow-card-dark);
}

.system-caption {
  max-width: 45ch;
  color: var(--color-on-dark);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.system-flow {
  display: grid;
  margin-block-start: var(--space-lg);
  list-style: none;
}

.system-flow li {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: center;
  padding-block: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-dark);
}

.system-flow span {
  display: grid;
  width: var(--space-xl);
  height: var(--space-xl);
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
}

.system-flow strong,
.system-flow small {
  display: block;
}

.system-flow strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}

.system-flow small {
  margin-block-start: var(--space-3xs);
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}

/* Compact trust rail · verifiable facts only */
.proof-band {
  border-block-end: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
}

.proof-list {
  display: grid;
}

.proof-list > div {
  min-width: 0;
  padding-block: var(--space-lg);
  border-block-start: var(--rule-hair) solid var(--color-rule);
}

.proof-list > div:first-child {
  border-block-start: 0;
}

.proof-list dt {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
}

.proof-list dd {
  max-width: 34ch;
  margin: var(--space-3xs) 0 0;
  color: var(--color-neutral);
  font-size: var(--text-sm);
  line-height: 1.45;
}

/* Section heads */
.section-heading {
  display: grid;
  min-width: 0;
  gap: var(--space-lg);
}

.section-heading h2,
.problem-intro h2,
.difference-intro h2,
.process-intro h2,
.contact-copy h2 {
  max-width: 16ch;
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
}

.section-heading > p,
.problem-intro > p,
.process-intro > p,
.contact-copy > p {
  max-width: 60ch;
  color: var(--color-neutral);
  font-size: var(--text-md);
}

/* Work proof */
.work {
  padding-block: var(--space-2xl) var(--space-3xl);
}

.project-feature {
  display: grid;
  min-width: 0;
  gap: 0;
  margin-block-start: var(--space-2xl);
  overflow: hidden;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
  box-shadow: var(--shadow-card);
}

.project-visual {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: var(--color-paper-3);
}

.project-visual img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  object-position: top center;
  transition: opacity var(--dur-short) var(--ease-out);
}

.project-details,
.project-card-copy {
  min-width: 0;
}

.project-details {
  display: grid;
  align-content: center;
  padding: var(--space-xl);
}

.project-category {
  color: var(--color-accent-text);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-details h3,
.project-card h3 {
  margin-block-start: var(--space-xs);
}

.project-details h3 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
}

.project-card h3 {
  font-size: var(--text-xl);
}

.project-details > p:not(.project-category),
.project-card-copy > p:not(.project-category) {
  max-width: 56ch;
  margin-block-start: var(--space-sm);
  color: var(--color-neutral);
}

.project-scope {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-sm);
  margin-block-start: var(--space-lg);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  list-style: none;
}

.project-scope li {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.project-scope li::before {
  width: var(--space-2xs);
  height: var(--space-2xs);
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  content: "";
}

.project-facts {
  display: grid;
  margin-block-start: var(--space-lg);
  border-block: var(--rule-hair) solid var(--color-rule);
}

.project-facts > div {
  display: grid;
  min-width: 0;
  gap: var(--space-2xs);
  padding-block: var(--space-xs);
}

.project-facts > div + div {
  border-block-start: var(--rule-hair) solid var(--color-rule);
}

.project-facts dt {
  color: var(--color-neutral);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.project-details .text-link,
.project-card-copy .text-link {
  margin-block-start: var(--space-lg);
}

.project-secondary-grid {
  display: grid;
  min-width: 0;
  gap: var(--space-lg);
  margin-block-start: var(--space-lg);
}

.project-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
  box-shadow: var(--shadow-card);
}

.project-card .project-visual {
  aspect-ratio: 16 / 10;
}

.project-card .project-visual img {
  min-height: 0;
}

.project-card-copy {
  padding: var(--space-lg);
}

/* Problem diagnosis */
.problem-band {
  padding-block: var(--space-3xl);
  background: var(--color-dark);
  color: var(--color-on-dark);
}

.problem-layout {
  display: grid;
  min-width: 0;
  gap: var(--space-2xl);
}

.problem-intro > p {
  margin-block-start: var(--space-lg);
  color: var(--color-on-dark-muted);
}

.problem-outcome {
  max-width: 45ch;
  margin-block-start: var(--space-xl);
  color: var(--color-on-dark);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
}

.problem-list {
  display: grid;
  min-width: 0;
  gap: var(--space-sm);
  list-style: none;
}

.problem-list li {
  min-width: 0;
  padding: var(--space-lg);
  border: var(--rule-hair) solid var(--color-dark-highlight);
  border-radius: var(--radius-card);
  background: var(--color-dark-2);
  box-shadow: var(--shadow-card-dark);
}

.problem-list li > span,
.process-list li > span,
.service-number {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.problem-list li > span {
  color: var(--color-accent);
}

.process-list li > span,
.service-number {
  color: var(--color-accent-text);
}

.problem-list h3 {
  margin-block-start: var(--space-xl);
  font-size: var(--text-lg);
  letter-spacing: -0.025em;
}

.problem-list p {
  margin-block-start: var(--space-xs);
  color: var(--color-on-dark-muted);
}

/* Services */
.services {
  padding-block: var(--space-3xl) var(--space-2xl);
}

.service-list {
  display: grid;
  gap: var(--space-lg);
  margin-block-start: var(--space-2xl);
}

.service-row {
  display: grid;
  min-width: 0;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  box-shadow: var(--shadow-card);
}

.service-copy,
.service-points {
  min-width: 0;
}

.service-kicker {
  margin-block-end: var(--space-xs);
  color: var(--color-accent-text);
  font-size: var(--text-sm);
  font-weight: 600;
}

.service-copy h3 {
  max-width: 28ch;
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
}

.service-copy > p:not(.service-kicker) {
  max-width: 58ch;
  margin-block-start: var(--space-md);
  color: var(--color-neutral);
}

.service-detail-link {
  margin-block-start: var(--space-md);
}

.service-points {
  display: grid;
  align-content: end;
  gap: var(--space-xs);
  color: var(--color-ink-2);
  list-style: none;
}

.service-points li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
}

.service-points li::before {
  color: var(--color-accent);
  content: "—";
}

/* Difference */
.difference {
  padding-block: var(--space-2xl) var(--space-3xl);
  background: var(--color-paper-2);
}

.difference-layout {
  display: grid;
  min-width: 0;
  gap: var(--space-2xl);
}

.difference-intro,
.benefit-list {
  min-width: 0;
}

.difference-intro > p {
  max-width: 56ch;
  margin-block-start: var(--space-lg);
  color: var(--color-neutral);
  font-size: var(--text-md);
}

.difference-intro .text-link {
  margin-block-start: var(--space-lg);
}

.benefit-list {
  display: grid;
  gap: var(--space-lg);
}

.benefit-list article {
  position: relative;
  padding-block-start: var(--space-md);
}

.benefit-list article::before {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: var(--space-xl);
  height: var(--rule-fine);
  background: var(--color-accent);
  content: "";
}

.benefit-list h3 {
  max-width: 24ch;
  font-size: var(--text-lg);
  letter-spacing: -0.025em;
}

.benefit-list p {
  max-width: 58ch;
  margin-block-start: var(--space-xs);
  color: var(--color-neutral);
}

/* Process · F4 step sequence */
.process {
  padding-block: var(--space-3xl);
}

.process-layout {
  display: grid;
  min-width: 0;
  gap: var(--space-2xl);
}

.process-intro > p {
  margin-block-start: var(--space-lg);
}

.process-list {
  display: grid;
  min-width: 0;
  gap: var(--space-sm);
  list-style: none;
}

.process-list li {
  display: grid;
  min-width: 0;
  grid-template-columns: var(--space-xl) minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
  box-shadow: var(--shadow-card);
}

.process-list h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.025em;
}

.process-list p {
  margin-block-start: var(--space-xs);
  color: var(--color-neutral);
}

/* Service detail pages · Split Studio */
.service-hero h1 {
  max-width: 12ch;
}

.service-outcomes,
.service-package,
.faq {
  padding-block: var(--space-3xl);
}

.split-section,
.connection-layout,
.faq-layout {
  display: grid;
  min-width: 0;
  gap: var(--space-2xl);
}

.split-intro,
.split-copy,
.connection-layout > div,
.faq-layout > * {
  min-width: 0;
}

.section-kicker {
  margin-block-end: var(--space-sm);
  color: var(--color-accent-text);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.split-intro h2,
.connection-layout h2,
.faq-layout h2 {
  max-width: 16ch;
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
}

.split-lede,
.connection-layout > div:last-child > p {
  max-width: 58ch;
  color: var(--color-neutral);
  font-size: var(--text-md);
}

.outcome-list {
  display: grid;
  margin-block-start: var(--space-xl);
  border-block-start: var(--rule-hair) solid var(--color-rule);
}

.outcome-list > div {
  display: grid;
  min-width: 0;
  gap: var(--space-xs);
  padding-block: var(--space-md);
  border-block-end: var(--rule-hair) solid var(--color-rule);
}

.outcome-list dt {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.outcome-list dd {
  max-width: 50ch;
  margin: 0;
  color: var(--color-neutral);
}

.service-package {
  background: var(--color-paper-2);
}

.package-grid {
  display: grid;
  min-width: 0;
  gap: var(--space-lg);
  margin-block-start: var(--space-2xl);
}

.package-grid article {
  min-width: 0;
  padding: var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  box-shadow: var(--shadow-card);
}

.package-grid article > span {
  color: var(--color-accent-text);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.package-grid h3 {
  margin-block-start: var(--space-xl);
  font-size: var(--text-xl);
}

.package-grid ul {
  display: grid;
  gap: var(--space-xs);
  margin-block-start: var(--space-lg);
  color: var(--color-ink-2);
  list-style: none;
}

.package-grid li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
}

.package-grid li::before {
  color: var(--color-accent-text);
  content: "—";
}

.service-work {
  padding-block: var(--space-3xl);
}

.connection-band {
  padding-block: var(--space-3xl);
  background: var(--color-dark);
  color: var(--color-on-dark);
}

.connection-band .section-kicker {
  color: var(--color-accent);
}

.connection-layout > div:last-child > p {
  color: var(--color-on-dark-muted);
}

.connection-layout .text-link {
  margin-block-start: var(--space-lg);
}

.faq {
  background: var(--color-paper-2);
}

.faq-list {
  display: grid;
  border-block-start: var(--rule-hair) solid var(--color-rule-2);
}

.faq-list article {
  padding-block: var(--space-lg);
  border-block-end: var(--rule-hair) solid var(--color-rule-2);
}

.faq-list h3 {
  max-width: 34ch;
  font-size: var(--text-lg);
  letter-spacing: -0.025em;
}

.faq-list p {
  max-width: 62ch;
  margin-block-start: var(--space-xs);
  color: var(--color-neutral);
}

/* Contact · form is the CTA */
.contact {
  padding-block: var(--space-3xl);
  background: var(--color-dark);
  color: var(--color-on-dark);
}

.contact-layout {
  display: grid;
  min-width: 0;
  gap: var(--space-2xl);
}

.contact-copy,
.project-form {
  min-width: 0;
}

.contact-copy > p {
  margin-block-start: var(--space-lg);
  color: var(--color-on-dark-muted);
}

.direct-contact {
  display: grid;
  gap: var(--space-sm);
  margin-block-start: var(--space-xl);
}

.direct-contact a {
  display: grid;
  min-width: 0;
  width: fit-content;
  gap: var(--space-3xs);
  min-height: var(--control-height);
  color: var(--color-on-dark);
  text-decoration-color: var(--color-accent);
  text-underline-offset: var(--rule-fine);
}

.direct-contact span {
  color: var(--color-on-dark-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.direct-contact strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.project-form {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  box-shadow: var(--shadow-card-dark);
  color: var(--color-ink);
}

.form-row {
  display: grid;
  min-width: 0;
  gap: var(--space-md);
}

.field {
  display: grid;
  min-width: 0;
  gap: var(--space-2xs);
}

.field label {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
}

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

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: var(--space-xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-input);
  outline: var(--rule-fine) solid transparent;
  outline-offset: var(--rule-hair);
  background: var(--color-paper);
  color: var(--color-ink);
}

textarea {
  min-height: var(--space-3xl);
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-neutral);
  opacity: 1;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-ink-2);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  background: var(--color-disabled);
  color: var(--color-neutral);
  opacity: 0.55;
}

.field-message,
.form-status {
  min-height: 1lh;
  color: var(--color-neutral);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.field-message.is-error,
.project-form[data-state="error"] .form-status {
  color: var(--color-error);
}

.project-form[data-state="success"] .form-status {
  color: var(--color-success);
}

.form-submit {
  border: 0;
}

/* Footer · Ft1 mast-headed */
.site-footer {
  padding-block: var(--space-2xl) var(--space-lg);
  background: var(--color-dark-2);
  color: var(--color-on-dark);
}

.footer-mast {
  display: grid;
  min-width: 0;
  gap: var(--space-xl);
  align-items: end;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 9vw, 7rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.075em;
}

.footer-tagline {
  max-width: 45ch;
  margin-block-start: var(--space-lg);
  color: var(--color-on-dark-muted);
  font-size: var(--text-md);
}

.footer-action {
  display: grid;
  gap: var(--space-sm);
}

.footer-action > a:not(.button) {
  width: fit-content;
  min-height: var(--control-height);
  color: var(--color-on-dark);
  text-underline-offset: var(--rule-fine);
  white-space: nowrap;
}

.footer-meta {
  display: grid;
  min-width: 0;
  gap: var(--space-md);
  align-items: center;
  margin-block-start: var(--space-2xl);
  padding-block-start: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-dark);
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
}

.footer-meta nav {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
}

.footer-meta nav a {
  display: inline-flex;
  min-width: var(--control-height);
  min-height: var(--control-height);
  align-items: center;
  justify-content: center;
  color: var(--color-on-dark);
  text-underline-offset: var(--rule-fine);
  white-space: nowrap;
}

.footer-meta > a {
  display: inline-flex;
  min-height: var(--control-height);
  align-items: center;
  color: var(--color-on-dark);
  text-underline-offset: var(--rule-fine);
  white-space: nowrap;
}

.site-footer :focus-visible,
.problem-band :focus-visible,
.connection-band :focus-visible,
.contact :focus-visible,
.hero :focus-visible {
  outline-color: var(--color-accent);
}

.button > [aria-hidden="true"],
.text-link > [aria-hidden="true"] {
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover,
  .mobile-nav-panel a:not(.nav-contact):hover,
  .mobile-nav summary:hover {
    background: var(--color-paper-2);
    color: var(--color-ink);
  }

  .nav-contact:hover,
  .button-primary:hover {
    background: var(--color-ink);
    color: var(--color-paper);
  }

  .hero .button-primary:hover,
  .contact .button-primary:hover,
  .site-footer .button-primary:hover {
    background: var(--color-paper);
    color: var(--color-ink);
  }

  .button-secondary:hover,
  .button-on-dark:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
  }

  .language-switcher a:not([aria-current="page"]):hover {
    color: var(--color-ink);
  }

  .project-visual:hover img,
  .project-visual:focus-visible img {
    opacity: 0.88;
  }

  .text-link:hover,
  .footer-meta nav a:hover,
  .footer-action > a:not(.button):hover,
  .direct-contact a:hover {
    text-decoration-color: var(--color-accent);
  }

  input:hover,
  select:hover,
  textarea:hover {
    background: var(--color-paper-2);
  }

  input[aria-invalid="true"]:hover,
  select[aria-invalid="true"]:hover,
  textarea[aria-invalid="true"]:hover {
    border-color: var(--color-error);
  }
}

@media (min-width: 40rem) {
  .hero h1 span {
    color: var(--color-accent);
  }

  .brand > span {
    display: inline;
  }

  .project-form {
    padding: var(--space-xl);
  }

  .form-row,
  .problem-list,
  .benefit-list,
  .project-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof-list > div {
    padding-inline: var(--space-lg);
    border-block-start: 0;
    border-inline-start: var(--rule-hair) solid var(--color-rule);
  }

  .proof-list > div:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .proof-list > div:last-child {
    padding-inline-end: 0;
  }

  .project-facts > div {
    grid-template-columns: minmax(5rem, 1fr) minmax(0, 2fr);
  }

  .outcome-list > div {
    grid-template-columns: minmax(7rem, 1fr) minmax(0, 2fr);
  }

  .footer-meta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .footer-meta > span {
    justify-self: end;
    text-align: end;
  }
}

@media (min-width: 60rem) {
  html[lang="en"] .hero h1 span {
    white-space: nowrap;
  }

  .nav-shell {
    inset-block-start: var(--space-sm);
  }

  .nav-links,
  .nav-contact-desktop {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }

  .hero {
    padding-block: var(--space-2xl) var(--space-3xl);
  }

  .hero-layout,
  .problem-layout,
  .difference-layout,
  .process-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--space-3xl);
  }

  .hero-layout {
    align-items: end;
  }

  .hero-system {
    align-self: end;
  }

  .section-heading {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    align-items: end;
    column-gap: var(--space-3xl);
  }

  .work {
    padding-block: var(--space-3xl) var(--space-4xl);
  }

  .project-feature {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .project-feature .project-visual {
    min-height: 34rem;
  }

  .project-feature .project-visual img {
    min-height: 100%;
  }

  .project-details {
    padding: var(--space-2xl);
  }

  .project-card-copy {
    padding: var(--space-xl);
  }

  .problem-layout,
  .process-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .problem-list li:nth-child(even) {
    margin-block-start: var(--space-lg);
  }

  .service-row {
    grid-template-columns: var(--space-xl) minmax(0, 6fr) minmax(0, 4fr);
    column-gap: var(--space-2xl);
  }

  .difference-layout {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  }

  .split-section,
  .connection-layout,
  .faq-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--space-3xl);
  }

  .package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-mast {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  }

  .footer-action {
    justify-items: start;
  }

  .footer-meta {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .footer-meta nav {
    justify-content: center;
  }
}

@media (min-width: 90rem) {
  .hero-layout {
    column-gap: var(--space-4xl);
  }

  .project-feature {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }
}

@media (pointer: coarse) {
  .button,
  .nav-contact,
  .language-switcher a,
  .nav-links a,
  .mobile-nav summary,
  .mobile-nav-panel a,
  .footer-meta nav a,
  .direct-contact a {
    min-height: var(--control-height);
  }
}

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

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