/* Ladigan site styles — tokens, layout, components, responsive */

:root {
  --canvas: #f5f5f7;
  --canvas-strong: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-muted: #fbfbfd;
  --surface-inverse: #111111;
  --ink: #2f2f33;
  --ink-soft: #6e6e73;
  --ink-faint: #8f8f94;
  --title-ink: #000000;
  --line: rgba(29, 29, 31, 0.08);
  --line-strong: rgba(29, 29, 31, 0.14);
  --link: #3f3f46;
  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.06);
  --shadow-strong: 0 32px 80px rgba(15, 23, 42, 0.1);
  --radius-lg: 2rem;
  --radius-md: 1.5rem;
  --radius-sm: 1rem;
  --project-thumb-ratio: 1 / 1;
  --content-width: min(84rem, calc(100vw - 2rem));
  --header-width: var(--content-width);
  --measure-xxl: 66rem;
  --measure-xl: 58rem;
  --measure-lg: 52rem;
  --measure-md: 46rem;
  --measure-sm: 32rem;
  --headline-measure-hero: 19ch;
  --headline-measure-page: 16ch;
  --headline-measure-section: 20ch;
  --font-size-body: 1rem;
  --font-size-copy: clamp(1rem, 1.55vw, 1.18rem);
  --font-size-heading-1: clamp(2.7rem, 6.7vw, 5.2rem);
  --font-size-heading-2: clamp(1.85rem, 3.95vw, 3.45rem);
  --font-size-heading-3: clamp(1.18rem, 1.6vw, 1.4rem);
  --section-space: clamp(6rem, 9vw, 8rem);
  --section-gap: clamp(2.4rem, 4vw, 3.2rem);
  --body-accent: rgba(255, 255, 255, 0.8);
  --body-accent-secondary: rgba(214, 214, 220, 0.34);
  --body-gradient-start: #ffffff;
  --body-gradient-mid: #fafafc;
  --body-gradient-end: #f2f2f5;
  --header-surface-start: rgba(255, 255, 255, 0.9);
  --header-surface-end: rgba(247, 247, 249, 0.84);
  --header-border: rgba(29, 29, 31, 0.08);
  --header-highlight: rgba(255, 255, 255, 0.72);
  --hover-surface: rgba(29, 29, 31, 0.05);
  --pill-surface: rgba(255, 255, 255, 0.7);
  --pill-border: rgba(29, 29, 31, 0.08);
  --tag-surface: rgba(247, 247, 249, 0.82);
  --tag-border: rgba(29, 29, 31, 0.08);
  --panel-surface-start: rgba(255, 255, 255, 0.98);
  --panel-surface-end: rgba(244, 244, 247, 0.94);
  --contact-surface-start: rgba(255, 255, 255, 0.97);
  --contact-surface-end: rgba(243, 243, 246, 0.94);
  --field-surface: rgba(247, 247, 249, 0.8);
  --field-surface-strong: rgba(255, 255, 255, 0.98);
  --field-border: rgba(29, 29, 31, 0.12);
  --field-placeholder: #8d8d92;
  --field-chip-surface: rgba(247, 247, 249, 0.82);
  --field-chip-active: rgba(29, 29, 31, 0.06);
  --action-bg-start: #111111;
  --action-bg-end: #2e2e31;
  --action-ink: #ffffff;
  --action-border: rgba(17, 17, 17, 0.18);
  --action-shadow: 0 10px 22px rgba(17, 17, 17, 0.14);
  --action-shadow-hover: 0 16px 30px rgba(17, 17, 17, 0.2);
  --nav-action-shadow-hover: 0 12px 22px rgba(17, 17, 17, 0.16);
  --link-hover: #000000;
  --toggle-track: rgba(17, 17, 17, 0.14);
  --toggle-thumb: #ffffff;
  --toggle-thumb-shadow: 0 1px 2px rgba(17, 17, 17, 0.18);
  --focus-ring: rgba(29, 29, 31, 0.28);
  --inverse-ink: #ffffff;
  --inverse-ink-soft: rgba(255, 255, 255, 0.76);
  --accent-surface: rgba(29, 29, 31, 0.05);
  --statement-ink: #1d1d1f;
  --statement-ink-soft: rgba(88, 88, 94, 0.82);
  --statement-accent: rgba(29, 29, 31, 0.06);
  --statement-surface-start: #ffffff;
  --statement-surface-end: #efeff3;
  --overlay: rgba(8, 8, 10, 0.84);
  --overlay-surface: rgba(255, 255, 255, 0.12);
  --overlay-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --section-tint-start: rgba(255, 255, 255, 0.84);
  --section-tint-end: rgba(255, 255, 255, 0.52);
  --section-tint-glow: rgba(255, 255, 255, 0.48);
  --section-tint-border: rgba(29, 29, 31, 0.08);
  --section-tint-highlight: rgba(255, 255, 255, 0.72);
  --section-tint-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --section-tint-accent: var(--link);
  --section-tint-wash: rgba(255, 255, 255, 0.2);
  --section-title-ink: var(--title-ink);
  --section-card-surface: rgba(255, 255, 255, 0.62);
  --approach-surface-start: #ebe7e3;
  --approach-surface-end: #ddd7d1;
  --approach-glow-primary: rgba(128, 93, 58, 0.3);
  --approach-glow-secondary: rgba(176, 133, 88, 0.18);
  --approach-border: rgba(191, 154, 119, 0.14);
  --approach-ink: #2c2723;
  --approach-ink-soft: rgba(57, 49, 43, 0.78);
  --approach-shadow: 0 18px 46px rgba(88, 68, 48, 0.1);
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #0b0b0d;
  --canvas-strong: #121214;
  --surface: rgba(28, 28, 30, 0.82);
  --surface-strong: #1c1c1e;
  --surface-muted: #141416;
  --surface-inverse: #f5f5f7;
  --ink: #e8e8ed;
  --ink-soft: #a1a1aa;
  --ink-faint: #7f7f85;
  --title-ink: #f5f5f7;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --link: #d4d4d8;
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 32px 80px rgba(0, 0, 0, 0.4);
  --body-accent: rgba(255, 255, 255, 0.06);
  --body-accent-secondary: rgba(255, 255, 255, 0.03);
  --body-gradient-start: #1a1a1d;
  --body-gradient-mid: #111114;
  --body-gradient-end: #09090b;
  --header-surface-start: rgba(18, 18, 20, 0.9);
  --header-surface-end: rgba(10, 10, 12, 0.84);
  --header-border: rgba(255, 255, 255, 0.08);
  --header-highlight: rgba(255, 255, 255, 0.04);
  --hover-surface: rgba(255, 255, 255, 0.06);
  --pill-surface: rgba(255, 255, 255, 0.05);
  --pill-border: rgba(255, 255, 255, 0.08);
  --tag-surface: rgba(255, 255, 255, 0.05);
  --tag-border: rgba(255, 255, 255, 0.08);
  --panel-surface-start: rgba(28, 28, 30, 0.96);
  --panel-surface-end: rgba(16, 16, 18, 0.92);
  --contact-surface-start: rgba(28, 28, 30, 0.96);
  --contact-surface-end: rgba(16, 16, 18, 0.92);
  --field-surface: rgba(255, 255, 255, 0.05);
  --field-surface-strong: rgba(28, 28, 30, 0.96);
  --field-border: rgba(255, 255, 255, 0.12);
  --field-placeholder: #8f8f95;
  --field-chip-surface: rgba(255, 255, 255, 0.05);
  --field-chip-active: rgba(255, 255, 255, 0.08);
  --action-bg-start: #f5f5f7;
  --action-bg-end: #d9d9de;
  --action-ink: #111111;
  --action-border: rgba(255, 255, 255, 0.12);
  --action-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  --action-shadow-hover: 0 16px 30px rgba(0, 0, 0, 0.32);
  --nav-action-shadow-hover: 0 12px 22px rgba(0, 0, 0, 0.28);
  --link-hover: #ffffff;
  --toggle-track: rgba(255, 255, 255, 0.16);
  --toggle-thumb: #f5f5f7;
  --toggle-thumb-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  --focus-ring: rgba(255, 255, 255, 0.34);
  --inverse-ink: #ffffff;
  --inverse-ink-soft: rgba(255, 255, 255, 0.76);
  --accent-surface: rgba(255, 255, 255, 0.06);
  --statement-ink: #f5f5f7;
  --statement-ink-soft: rgba(218, 218, 224, 0.76);
  --statement-accent: rgba(255, 255, 255, 0.08);
  --statement-surface-start: #1c1c1e;
  --statement-surface-end: #101012;
  --overlay: rgba(0, 0, 0, 0.88);
  --overlay-surface: rgba(255, 255, 255, 0.12);
  --overlay-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --section-tint-start: rgba(28, 28, 30, 0.94);
  --section-tint-end: rgba(14, 14, 16, 0.86);
  --section-tint-glow: rgba(255, 255, 255, 0.06);
  --section-tint-border: rgba(255, 255, 255, 0.08);
  --section-tint-highlight: rgba(255, 255, 255, 0.05);
  --section-tint-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
  --section-tint-accent: var(--link);
  --section-tint-wash: rgba(255, 255, 255, 0.06);
  --section-title-ink: var(--title-ink);
  --section-card-surface: rgba(255, 255, 255, 0.04);
  --approach-surface-start: rgba(34, 25, 20, 0.98);
  --approach-surface-end: rgba(20, 15, 12, 0.99);
  --approach-glow-primary: rgba(156, 114, 72, 0.24);
  --approach-glow-secondary: rgba(104, 72, 46, 0.18);
  --approach-border: rgba(196, 157, 122, 0.18);
  --approach-ink: var(--inverse-ink);
  --approach-ink-soft: rgba(255, 255, 255, 0.82);
  --approach-shadow: var(--overlay-shadow);
}

body {
  margin: 0;
  min-width: 20rem;
  color: var(--ink);
  background-color: var(--canvas);
  background:
    radial-gradient(circle at top center, var(--body-accent), transparent 28rem),
    radial-gradient(circle at 82% 8%, var(--body-accent-secondary), transparent 24rem),
    linear-gradient(
      180deg,
      var(--body-gradient-start) 0%,
      var(--body-gradient-mid) 32%,
      var(--body-gradient-end) 100%
    );
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

.error-page p {
  text-align: inherit;
}

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

input::placeholder,
textarea::placeholder {
  color: var(--field-placeholder);
}

:focus-visible {
  outline: 0.16rem solid var(--focus-ring);
  outline-offset: 0.18rem;
}

main > section,
.project-detail,
.error-page,
.footer-inner,
.project-nav {
  width: var(--content-width);
  margin-inline: auto;
}

.site-nav {
  width: var(--header-width);
  margin-inline: auto;
}

main {
  padding-bottom: 5rem;
  overflow: clip;
}

main > section,
.project-detail,
.error-page {
  padding-top: 5rem;
}

main > .hero {
  width: 100%;
  padding-top: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--title-ink);
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

h1 {
  font-size: var(--font-size-heading-1);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-heading-2);
  font-weight: 700;
}

h3 {
  font-size: var(--font-size-heading-3);
  font-weight: 600;
  line-height: 1.08;
}

.eyebrow {
  color: var(--title-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subtitle,
.page-lede,
.project-content,
.meta,
.footer-meta,
.project-type,
.project-summary,
.service-card p,
.process-card p,
.site-footer p {
  color: var(--ink-soft);
}

.subtitle,
.page-lede {
  max-width: var(--measure-lg);
  font-size: var(--font-size-copy);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(180%) blur(20px);
}

.site-header::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--header-surface-start), var(--header-surface-end));
  border-bottom: 1px solid var(--header-border);
  box-shadow: inset 0 1px 0 var(--header-highlight);
  content: '';
}

.site-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: 'logo links cta';
  align-items: center;
  gap: 0.45rem;
  min-height: 2.9rem;
}

.nav-actions {
  grid-area: cta;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  grid-area: logo;
  color: var(--title-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
}

.logo-mark {
  width: clamp(1.25rem, 1.8vw, 1.6rem);
  flex: 0 0 auto;
}

.brand-logo {
  position: relative;
  display: block;
  line-height: 0;
}

.brand-logo__asset {
  display: block;
  width: 100%;
  height: auto;
}

.brand-logo__asset--dark {
  display: none;
}

html[data-theme='dark'] .brand-logo__asset--light {
  display: none;
}

html[data-theme='dark'] .brand-logo__asset--dark {
  display: block;
}

.logo-word--light {
  font-weight: 500;
}

.logo-word--strong {
  font-weight: 700;
}

.nav-links {
  grid-area: links;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 0.05rem;
  min-width: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links li {
  flex: 0 0 auto;
}

.nav-links a,
.theme-toggle,
.nav-cta,
.cta,
.project-nav a,
.footer-links-group a {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0 0.58rem;
  font-size: 0.88rem;
  white-space: nowrap;
  color: var(--ink-soft);
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--title-ink);
  background: var(--hover-surface);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0 0.65rem 0 0.72rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--title-ink);
  background: var(--surface-strong);
  border-color: var(--line-strong);
}

.theme-toggle-track {
  position: relative;
  width: 2rem;
  height: 1.2rem;
  background: var(--toggle-track);
  border-radius: 999px;
}

.theme-toggle-track::after {
  position: absolute;
  top: 50%;
  left: 0.15rem;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--toggle-thumb);
  border-radius: 50%;
  box-shadow: var(--toggle-thumb-shadow);
  transform: translateY(-50%);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  content: '';
}

html[data-theme='dark'] .theme-toggle-track::after {
  transform: translate(0.8rem, -50%);
}

.theme-toggle-text {
  min-width: 2.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
}

.nav-cta,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0 0.86rem;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
}

.nav-cta,
.cta {
  color: var(--action-ink);
  background: linear-gradient(135deg, var(--action-bg-start), var(--action-bg-end));
  border: 1px solid var(--action-border);
  box-shadow: var(--action-shadow);
}

.nav-cta:hover,
.cta:hover {
  transform: translateY(-0.05rem);
  box-shadow: var(--action-shadow-hover);
}

.nav-cta:hover {
  box-shadow: var(--nav-action-shadow-hover);
}

.project-nav a,
.footer-links-group a {
  color: var(--link);
}

.project-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.project-nav a:hover,
.footer-links-group a:hover {
  color: var(--link-hover);
}

.project-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background:
    linear-gradient(180deg, rgba(245, 245, 247, 0.54), rgba(245, 245, 247, 0.36)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), rgba(245, 245, 247, 0.16)),
    url('/hero.jpeg') center / cover no-repeat;
}

html[data-theme='dark'] .hero {
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.52), rgba(11, 11, 13, 0.68)),
    radial-gradient(circle at center, rgba(11, 11, 13, 0.06), rgba(11, 11, 13, 0.22)),
    url('/hero.jpeg') center / cover no-repeat;
}

@supports (min-height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  max-width: var(--measure-xxl);
  text-align: center;
}

.hero-copy .subtitle {
  max-width: 48rem;
  font-size: var(--font-size-copy);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.18);
}

.hero-copy h1 {
  max-width: var(--headline-measure-hero);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.22);
}

.hero-copy .eyebrow {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.16);
}

html[data-theme='dark'] .hero-copy .subtitle {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.26);
}

html[data-theme='dark'] .hero-copy h1,
html[data-theme='dark'] .hero-copy .eyebrow {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-header h1 {
  max-width: var(--headline-measure-page);
}

.hero-actions,
.section-heading {
  display: flex;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.45rem;
}

.taxonomy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.taxonomy-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  color: var(--ink-soft);
  background: var(--pill-surface);
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.taxonomy-chip {
  gap: 0.5rem;
}

.taxonomy-chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--canvas-strong);
}

.taxonomy-chip--accent {
  color: #5f7751;
  background: rgba(95, 119, 81, 0.12);
  border-color: rgba(95, 119, 81, 0.24);
}

.taxonomy-chip--accent:hover {
  color: #4d6341;
  background: rgba(95, 119, 81, 0.18);
  border-color: rgba(95, 119, 81, 0.34);
}

html[data-theme='dark'] .taxonomy-chip--accent {
  color: #b4d19d;
  background: rgba(129, 160, 101, 0.16);
  border-color: rgba(180, 209, 157, 0.22);
}

html[data-theme='dark'] .taxonomy-chip--accent:hover {
  color: #d2e7c0;
  background: rgba(129, 160, 101, 0.24);
  border-color: rgba(180, 209, 157, 0.34);
}

.service-card,
.process-card,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.company-section {
  display: grid;
  gap: var(--section-gap);
}

.section-intro {
  display: grid;
  gap: 1rem;
  max-width: var(--measure-xxl);
}

.section-intro h2,
.section-heading h2 {
  max-width: var(--headline-measure-section);
}

.about-heading {
  font-size: clamp(1.7rem, 3.6vw, 3.05rem);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.about-content {
  display: grid;
  gap: var(--section-gap);
}

.service-grid,
.collaboration-layout,
.process-grid,
.process-layout,
.projects-grid,
.related-grid {
  display: grid;
  gap: 1.25rem;
}

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

.about-copy {
  display: grid;
  gap: 1.35rem;
  max-width: var(--measure-xl);
}

.about-copy p {
  max-width: var(--measure-md);
  color: var(--ink-soft);
  font-size: var(--font-size-copy);
  line-height: 1.68;
}

.about-image-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 0.2rem);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.about-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
}

.process-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
}

.process-layout .process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-image-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 0.2rem);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.process-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 34rem;
  object-fit: cover;
}

.collaboration-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.collaboration-image-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 0.2rem);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.collaboration-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
}

.collaboration-scope-card {
  display: grid;
  align-content: start;
  gap: 1.15rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.collaboration-scope-list {
  gap: 0.8rem;
}

.service-card,
.process-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.6rem;
  border-radius: var(--radius-md);
}

.service-card,
.process-card {
  align-content: start;
  justify-items: start;
  text-align: left;
}

.service-index,
.process-label {
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.section-heading,
.page-header {
  justify-content: space-between;
  gap: 1.2rem;
}

.section-heading {
  align-items: end;
}

.projects-home-section {
  gap: var(--section-gap);
}

.projects-home-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  gap: 1.5rem 2rem;
  align-items: end;
}

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.projects-archive-card,
.featured-projects-grid .project-card {
  height: 100%;
}

.projects-archive-card {
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.35rem, 2.2vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-md) + 0.2rem);
  background:
    radial-gradient(circle at top right, var(--accent-surface), transparent 16rem),
    linear-gradient(180deg, var(--panel-surface-start), var(--panel-surface-end));
  box-shadow: var(--shadow-soft);
}

.projects-archive-copy-block,
.projects-archive-footer {
  display: grid;
}

.projects-archive-copy-block {
  gap: 0.9rem;
}

.projects-archive-footer {
  gap: 1rem;
}

.projects-archive-label {
  color: var(--link);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.projects-archive-card h3 {
  max-width: 10ch;
  font-size: clamp(1.42rem, 2.05vw, 1.95rem);
  line-height: 0.98;
}

.projects-archive-copy {
  max-width: 18rem;
  color: var(--ink-soft);
  font-size: var(--font-size-body);
}

.projects-archive-cta {
  width: fit-content;
}

.featured-projects-grid .project-card--compact {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.featured-projects-grid .project-media {
  aspect-ratio: 5 / 4;
  min-height: clamp(15rem, 20vw, 18.5rem);
}

.featured-projects-grid .project-card--compact .project-info {
  align-content: start;
  gap: 0.75rem;
  padding: 1.25rem;
}

.featured-projects-grid .project-card--compact .project-type {
  color: var(--link);
}

.featured-projects-grid .project-card h3 {
  font-size: var(--font-size-heading-3);
}

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

.related-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.related-projects {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: clamp(4.5rem, 7vw, 6rem);
}

.related-projects .section-heading {
  align-items: start;
  gap: 0.9rem;
}

.related-projects .related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
  align-items: start;
}

.related-projects .project-card--compact {
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.related-projects .project-card--compact .project-media {
  aspect-ratio: 4 / 3;
  min-height: clamp(16rem, 24vw, 21rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-muted), var(--surface));
}

.related-projects .project-card--compact img {
  aspect-ratio: 4 / 3;
}

.related-projects .project-card--compact .project-info {
  align-content: start;
  gap: 0.85rem;
  padding: 1.4rem 1.45rem 1.55rem;
}

.related-projects .project-card h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.05;
}

.related-projects .project-card--compact .project-summary {
  line-height: 1.45;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  min-height: auto;
  border-radius: calc(var(--radius-md) + 0.2rem);
}

.project-card--compact {
  grid-template-columns: 1fr;
  min-height: auto;
}

.project-media {
  display: grid;
  place-items: stretch;
  aspect-ratio: var(--project-thumb-ratio);
  min-height: 0;
  overflow: hidden;
  background: var(--surface-muted);
  border-right: 1px solid var(--line);
}

.project-media > img {
  display: block;
  width: 100%;
  height: 100%;
}

.project-card--compact .project-media {
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-muted), var(--surface));
}

.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--project-thumb-ratio);
  object-fit: cover;
  object-position: center;
  transition: transform 300ms ease;
}

.project-card--compact img {
  object-fit: cover;
  object-position: center;
}

.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
}

.project-card:hover img {
  transform: scale(1.02);
}

.project-info {
  display: grid;
  align-content: end;
  gap: 0.65rem;
  padding: 1.5rem;
}

.project-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-type {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-summary {
  font-size: var(--font-size-body);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.75rem;
  color: var(--link);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-surface);
  border-radius: 999px;
}

.page-header {
  display: grid;
  gap: 1rem;
  padding-bottom: 0.25rem;
}

.page-header h1 {
  max-width: var(--headline-measure-page);
}

.page-section {
  padding-top: 1rem;
}

.project-detail {
  display: grid;
  gap: 0;
}

.meta {
  font-size: 1rem;
}

.taxonomy-count {
  color: var(--link);
  font-size: 0.84rem;
}

.project-content {
  max-width: var(--measure-lg);
  font-size: 1.04rem;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
  line-height: 1.08;
}

.prose ul {
  padding-left: 1.25rem;
}

/* Project gallery: CSS Grid (not multi-column — avoids hover/radius reflow bugs) */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-md) + 0.1rem);
  background: var(--surface-muted);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  isolation: isolate;
  /* Stable compositing so border-radius clips hover transforms cleanly */
  transform: translateZ(0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 280ms ease;
  transform-origin: center center;
  backface-visibility: hidden;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  transform: scale(1.03);
}

@media (max-width: 64rem) {
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .project-gallery {
    grid-template-columns: 1fr;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open[hidden] {
  display: grid;
}

.lightbox-img {
  display: block;
  max-width: min(92vw, 92rem);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.9rem;
  box-shadow: var(--overlay-shadow);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--inverse-ink);
  font-size: 1.5rem;
  line-height: 1;
  background: var(--overlay-surface);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.project-nav {
  padding-top: 4rem;
}

.contact-section {
  padding-top: 5.5rem;
}

.section-title-accent--services {
  color: #5f7751;
  text-shadow: 0 1px 0 rgba(135, 160, 117, 0.16);
}

.section-title-accent--process {
  color: #8a6747;
  text-shadow: 0 1px 0 rgba(170, 129, 86, 0.16);
}

html[data-theme='dark'] .section-title-accent--services {
  color: #b4d19d;
  text-shadow: 0 1px 0 rgba(145, 178, 122, 0.12);
}

html[data-theme='dark'] .section-title-accent--process {
  color: #d2ac82;
  text-shadow: 0 1px 0 rgba(156, 116, 76, 0.16);
}

.home-section {
  position: relative;
  gap: var(--section-gap);
  padding-block: var(--section-space);
}

.home-section::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-strong) 8%,
    var(--line) 50%,
    var(--line-strong) 92%,
    transparent
  );
  content: '';
}

.approach-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.2vw, 0.95rem);
  align-items: center;
  position: relative;
  padding: clamp(1.1rem, 1.8vw, 1.5rem) clamp(1.2rem, 2vw, 1.7rem);
  border: 1px solid var(--approach-border);
  border-radius: calc(var(--radius-lg) + 0.4rem);
  background:
    radial-gradient(circle at 82% 18%, var(--approach-glow-primary), transparent 24rem),
    radial-gradient(circle at 64% 100%, var(--approach-glow-secondary), transparent 20rem),
    linear-gradient(180deg, var(--approach-surface-start), var(--approach-surface-end));
  box-shadow: var(--approach-shadow);
  overflow: hidden;
  isolation: isolate;
}

.process-approach-banner {
  margin-top: clamp(0.25rem, 0.8vw, 0.75rem);
}

.approach-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 32%);
  pointer-events: none;
  content: '';
}

.approach-card-copy,
.approach-card-body {
  position: relative;
  z-index: 1;
}

.approach-card-copy {
  display: grid;
  gap: 0.65rem;
  max-width: none;
  min-width: 0;
}

.approach-card-eyebrow {
  color: var(--approach-ink-soft);
}

.approach-card-title {
  color: var(--approach-ink);
  max-width: 17ch;
  font-size: clamp(1.8rem, 3.15vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.approach-card-body {
  max-width: none;
  width: 100%;
  color: var(--approach-ink-soft);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.5;
  justify-self: stretch;
}

.contact-card {
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: calc(var(--radius-lg) + 0.2rem);
  background:
    linear-gradient(180deg, var(--contact-surface-start), var(--contact-surface-end)),
    var(--surface);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  max-width: var(--measure-xl);
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-form-header {
  display: grid;
  gap: 0.75rem;
  max-width: var(--measure-md);
}

.contact-form-header h2 {
  max-width: var(--headline-measure-section);
}

.contact-form-kicker {
  color: var(--link);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form-copy {
  color: var(--ink-soft);
  font-size: 0.94rem;
  max-width: 26rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 0.95rem;
}

.contact-field {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field > span,
.contact-field legend {
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-field legend {
  margin-bottom: 0.7rem;
  padding: 0;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 0.9rem 0.95rem;
  color: var(--ink);
  background: var(--field-surface-strong);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: var(--line-strong);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--link);
  background: var(--canvas-strong);
}

.contact-field select {
  appearance: none;
  padding-right: 3rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 1.2rem) calc(50% - 0.08rem),
    calc(100% - 0.9rem) calc(50% - 0.08rem);
  background-size: 0.36rem 0.36rem;
  background-repeat: no-repeat;
}

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

.contact-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-choice {
  position: relative;
  min-width: 0;
}

.contact-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-choice-box {
  display: grid;
  gap: 0.35rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: transparent;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-choice:hover .contact-choice-box,
.contact-choice:focus-within .contact-choice-box {
  border-color: var(--line-strong);
  background: var(--field-surface);
}

.contact-choice input:checked + .contact-choice-box {
  border-color: var(--link);
  background: var(--field-chip-active);
  box-shadow: none;
}

.contact-choice-title {
  color: var(--title-ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.15;
}

.contact-choice-copy {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-field-hint {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.contact-field-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84em;
}

.contact-req-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--link) 14%, transparent);
  color: var(--link);
  font-size: 0.68rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.contact-req-tag--optional {
  background: color-mix(in srgb, var(--ink-soft) 12%, transparent);
  color: var(--ink-soft);
}

.contact-field--error input,
.contact-field--error select,
.contact-field--error textarea,
.contact-link-row--error input {
  border-color: #b42318 !important;
  background: color-mix(in srgb, #b42318 6%, var(--field-surface-strong));
  box-shadow: 0 0 0 3px color-mix(in srgb, #b42318 18%, transparent);
}

.contact-field--error .contact-choice-box {
  border-color: #b42318;
}

html[data-theme="dark"] .contact-field--error input,
html[data-theme="dark"] .contact-field--error select,
html[data-theme="dark"] .contact-field--error textarea,
html[data-theme="dark"] .contact-link-row--error input {
  border-color: #ff8a80 !important;
  background: color-mix(in srgb, #ff8a80 10%, var(--field-surface-strong));
  box-shadow: 0 0 0 3px color-mix(in srgb, #ff8a80 16%, transparent);
}

.contact-choice-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-choice-grid--compact .contact-choice-box {
  place-items: center;
  text-align: center;
  padding: 0.85rem 0.6rem;
}

.contact-choice-grid--compact .contact-choice-title {
  font-size: 0.92rem;
}

.contact-links {
  display: grid;
  gap: 0.7rem;
}

.contact-link-row {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  min-width: 0;
}

.contact-link-label {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-link-row input {
  width: 100%;
  padding: 0.9rem 0.95rem;
  color: var(--ink);
  background: var(--field-surface-strong);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-link-row input:hover {
  border-color: var(--line-strong);
}

.contact-link-row input:focus {
  border-color: var(--link);
  background: var(--canvas-strong);
}

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

.contact-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem 1rem;
}

.contact-form-status {
  flex: 1 1 14rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: left;
}

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

.contact-form-status[data-state="error"] {
  color: #b42318;
}

html[data-theme="dark"] .contact-form-status[data-state="error"] {
  color: #ff8a80;
}

.contact-submit {
  min-width: 12rem;
}

.contact-submit[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
}

.site-footer {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0 3rem;
}

.site-footer::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-strong) 8%,
    var(--line) 50%,
    var(--line-strong) 92%,
    transparent
  );
  content: '';
}

.footer-inner {
  display: grid;
  gap: clamp(1.4rem, 2.6vw, 2rem);
  padding: clamp(1.4rem, 2.8vw, 2.15rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 0.7fr));
  align-items: start;
  gap: clamp(1.4rem, 2.4vw, 2.4rem);
}

.footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    'mark wordmark'
    'mark tagline';
  align-items: start;
  column-gap: 1rem;
  row-gap: 0.65rem;
}

.footer-logo {
  grid-area: mark;
  color: var(--title-ink);
  display: inline-flex;
  align-items: center;
  justify-self: start;
  align-self: center;
  line-height: 0;
}

.footer-logo-mark {
  width: clamp(3rem, 4.4vw, 3.9rem);
  flex: 0 0 auto;
}

.footer-wordmark {
  grid-area: wordmark;
  color: var(--title-ink);
  display: inline-flex;
  align-items: baseline;
  justify-self: start;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.footer-tagline {
  grid-area: tagline;
  max-width: 30rem;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.footer-section {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-width: 0;
}

.footer-section-label {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links-group {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-links-group a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.75rem;
  font-size: 0.96rem;
  line-height: 1.4;
}

.footer-links-group--contact a {
  white-space: nowrap;
}

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

.footer-meta {
  margin: 0;
  font-size: 0.92rem;
  white-space: normal;
}

.error-page {
  min-height: calc(100vh - 14rem);
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy > *,
.service-card,
.projects-archive-card,
.project-card,
.process-card,
.contact-card {
  animation: fade-up 700ms ease both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 60ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 120ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 180ms;
}

.hero-copy > :nth-child(5) {
  animation-delay: 240ms;
}

.service-card:nth-child(2),
.project-card:nth-child(2),
.process-card:nth-child(2) {
  animation-delay: 70ms;
}

.service-card:nth-child(3),
.project-card:nth-child(3),
.process-card:nth-child(3) {
  animation-delay: 140ms;
}

@media (max-width: 72rem) {
  .hero,
  .service-grid,
  .collaboration-layout,
  .process-grid,
  .process-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 40rem;
  }

  .projects-home-header {
    grid-template-columns: 1fr;
  }

  .approach-card {
    grid-template-columns: 1fr;
  }

  .approach-card-body {
    justify-self: start;
  }

  .about-image {
    min-height: 20rem;
  }

  .process-image {
    min-height: 20rem;
  }

  .collaboration-image {
    min-height: 20rem;
  }

  .process-layout .process-grid {
    grid-template-columns: 1fr;
  }

  .featured-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-projects .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 2rem;
  }

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

  .footer-meta {
    text-align: left;
  }

  .project-card,
  

  .project-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 56rem) {
  .approach-card {
    padding: 1.15rem;
    border-radius: calc(var(--radius-lg) - 0.2rem);
  }

  .approach-card-title {
    max-width: 12ch;
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .site-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'logo cta'
      'links links';
    gap: 0.55rem 0.75rem;
    min-height: auto;
    padding: 0.6rem 0;
  }

  .nav-links {
    justify-content: flex-start;
    justify-self: stretch;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.08rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .featured-projects-grid {
    grid-template-columns: 1fr;
  }

  .related-projects {
    gap: 1.5rem;
  }

  .related-projects .related-grid {
    grid-template-columns: 1fr;
  }

  .related-projects .project-card--compact .project-media,
  .related-projects .project-card--compact img {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .contact-form-grid,
  .contact-choice-grid {
    grid-template-columns: 1fr;
  }

  .contact-choice-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-submit {
    width: 100%;
  }

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

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

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

@media (max-width: 40rem) {
  :root {
    --section-space: clamp(4.75rem, 14vw, 5.5rem);
    --section-gap: clamp(2rem, 6vw, 2.5rem);
  }

  main > section,
  .project-detail,
  .error-page {
    padding-top: 4rem;
  }

  .home-section {
    padding-block: var(--section-space);
  }

  .site-nav {
    width: calc(100vw - 1rem);
    gap: 0.5rem 0.6rem;
    padding: 0.5rem 0;
  }

  .logo {
    font-size: 0.92rem;
  }

  .logo-mark {
    width: 1.3rem;
  }

  .nav-links {
    gap: 0.16rem;
  }

  .nav-links a {
    min-height: 2rem;
    padding: 0 0.68rem;
    font-size: 0.88rem;
  }

  .nav-cta {
    min-height: 2.1rem;
    padding: 0 0.9rem;
    font-size: 0.88rem;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .theme-toggle {
    min-width: auto;
    padding: 0 0.35rem;
  }

  .theme-toggle-text {
    display: none;
  }

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

  .cta {
    width: 100%;
    justify-content: center;
  }

  .projects-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 1.2rem 0 0;
  }

  .footer-brand {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.85rem;
  }

  .footer-logo-mark {
    width: 2.7rem;
  }

  .footer-links-group--contact a {
    white-space: normal;
  }
}

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

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