@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --paper: #f4f2e9;
  --paper-deep: #e8e5d8;
  --surface: #fbfaf6;
  --ink: #18201d;
  --muted: #59635d;
  --green: #275a45;
  --green-dark: #173d2d;
  --green-soft: #dce5dc;
  --rust: #8f4938;
  --lemon: #d8c95d;
  --line: #cbcfc6;
  --lumi-teal: #426f75;
  --lumi-gold: #9f5b16;
  --focus: #1e6bd6;
  --font-body: "Source Sans 3", "Arial Nova", Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --step--1: clamp(0.875rem, 0.84rem + 0.14vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.08rem + 0.55vw, 1.55rem);
  --step-2: clamp(1.55rem, 1.32rem + 1vw, 2.25rem);
  --step-3: clamp(2.05rem, 1.62rem + 1.8vw, 3.25rem);
  --step-4: clamp(2.8rem, 2rem + 3.5vw, 5.35rem);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: clamp(5rem, 9vw, 8.5rem);
  --shell: 74rem;
  --radius-sm: 0.2rem;
  --radius-md: 0.45rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 0.32rem;
  background: var(--green-dark);
  content: "";
}

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

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

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

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

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

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  translate: 0 -160%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  translate: 0;
}

.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--green-dark);
  font-size: 0.77rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 1.7rem;
  height: 1px;
  margin-right: 0.65rem;
  translate: 0 -0.25rem;
  background: var(--rust);
  content: "";
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 570;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  margin-bottom: var(--space-5);
  font-size: var(--step-4);
}

h2 {
  margin-bottom: var(--space-4);
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: blur(10px);
}

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

.wordmark {
  display: inline-flex;
  flex-direction: column;
  flex: none;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 690;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.wordmark-note {
  margin-top: 0.24rem;
  color: var(--green);
  font-size: 0.59rem;
  font-weight: 780;
  letter-spacing: 0.135em;
  line-height: 1;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.25rem);
}

.main-nav a {
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:not(.nav-contact)::after {
  display: block;
  width: 100%;
  height: 1px;
  scale: 0 1;
  transform-origin: right;
  background: currentColor;
  content: "";
  transition: scale 180ms ease;
}

.main-nav a:not(.nav-contact):hover::after {
  scale: 1 1;
  transform-origin: left;
}

.nav-contact {
  padding: 0.6rem 0.9rem;
  background: var(--green-dark);
  color: #fff;
}

.nav-contact:hover {
  background: var(--green);
}

.menu-toggle {
  display: none;
}

.hero {
  overflow: clip;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  min-height: min(47rem, calc(100svh - 5rem));
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.68fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.hero-copy {
  position: relative;
}

.hero-copy::after {
  position: absolute;
  top: -2.5rem;
  right: -1.5rem;
  width: 5.5rem;
  height: 5.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.hero-copy::before {
  position: absolute;
  top: -1.8rem;
  right: -0.8rem;
  width: 1.05rem;
  height: 1.05rem;
  z-index: 1;
  border-radius: 50%;
  background: var(--lemon);
  content: "";
}

.hero-intro {
  max-width: 43rem;
  margin-bottom: var(--space-5);
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 740;
  line-height: 1.2;
  text-decoration: none;
}

.button-primary {
  background: var(--green-dark);
  color: #fff;
}

.button-primary:hover {
  background: var(--green);
}

.text-link {
  font-weight: 720;
}

.text-link span {
  display: inline-block;
  margin-left: 0.2rem;
  transition: translate 180ms ease;
}

.text-link:hover span {
  translate: 0.2rem 0.2rem;
}

.portfolio-index {
  position: relative;
  padding: var(--space-5) 0 var(--space-5) var(--space-5);
  border-left: 3px solid var(--green-dark);
}

.portfolio-index::before {
  position: absolute;
  top: 0;
  right: -18vw;
  bottom: 0;
  left: 0;
  z-index: -1;
  border-block: 1px solid var(--line);
  background: var(--surface);
  content: "";
}

.index-kicker {
  margin-bottom: var(--space-4);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.index-row {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.index-row > span:last-child {
  font-size: 1.2rem;
  transition: translate 180ms ease;
}

.index-row:hover > span:last-child {
  translate: 0 0.25rem;
}

.index-number,
.project-meta,
.route-number {
  color: var(--rust);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.index-row strong,
.index-row small {
  display: block;
}

.index-row strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.25;
}

.index-row small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.index-note {
  max-width: 28rem;
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: var(--step--1);
}

.projects {
  background: var(--surface);
}

.split-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: end;
  margin-bottom: var(--space-7);
}

.split-heading h2 {
  max-width: 15ch;
  margin-bottom: 0;
}

.split-heading > p {
  max-width: 38rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding-block: var(--space-7);
  border-top: 1px solid var(--line);
}

.project-lumi {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.project-copy {
  min-width: 0;
}

.project-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.project-meta span + span {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.project-copy h3 {
  margin-bottom: var(--space-4);
  font-size: var(--step-3);
}

.project-lead {
  margin-bottom: var(--space-5);
  font-size: var(--step-1);
  line-height: 1.48;
}

.project-facts {
  margin: 0 0 var(--space-5);
}

.project-facts > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-3);
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.project-facts dt {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  color: var(--muted);
}

.project-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  border-bottom: 2px solid var(--green-dark);
  color: var(--green-dark);
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
}

.project-link span {
  transition: translate 180ms ease;
}

.project-link:hover span {
  translate: 0.18rem -0.18rem;
}

.project-visual {
  min-width: 0;
  margin: 0;
}

.project-visual figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.visual-browserbar {
  display: flex;
  height: 2.55rem;
  align-items: center;
  gap: 0.38rem;
  padding-inline: 0.9rem;
  background: var(--green-dark);
  color: #fff;
}

.visual-browserbar > span {
  width: 0.52rem;
  height: 0.52rem;
  border: 1px solid color-mix(in srgb, #fff 60%, transparent);
  border-radius: 50%;
}

.visual-browserbar em {
  margin-left: auto;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.07em;
}

.visual-browserbar-light {
  border: 1px solid #d7d3ca;
  border-bottom: 0;
  background: #f7f4ed;
  color: #4c5957;
}

.visual-browserbar-light > span {
  border-color: #9ca6a4;
}

.evidence-visual {
  padding: 0 1.25rem 1.25rem 0;
  background: linear-gradient(135deg, transparent 0 70%, var(--green-soft) 70%);
}

.evidence-sheet {
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: 1.25rem 1.25rem 0 var(--paper-deep);
  background: var(--paper);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sheet-question {
  max-width: 17ch;
  margin: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.12;
}

.evidence-sheet dl {
  margin: 0;
}

.evidence-sheet dl > div {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3);
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
}

.evidence-sheet dt {
  color: var(--muted);
}

.evidence-sheet dd {
  margin: 0;
  font-weight: 720;
}

.sheet-note {
  margin: var(--space-4) 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--rust);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.lumi-visual {
  padding: 0 1rem 1rem;
  background: linear-gradient(145deg, var(--paper-deep), #dfe9e4);
}

.lumi-visual .visual-browserbar {
  margin-inline: -1rem;
}

.lumi-scene {
  position: relative;
  overflow: hidden;
  min-height: 29rem;
  border-inline: 1px solid #d7d3ca;
  background: #efe9dc;
}

.lumi-scene::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 245, 236, 0.98) 0 35%, rgba(248, 245, 236, 0.65) 48%, transparent 72%);
  content: "";
}

.lumi-scene img {
  width: 100%;
  height: 29rem;
  object-fit: cover;
  object-position: center;
}

.lumi-overlay {
  position: absolute;
  top: 50%;
  left: clamp(1.5rem, 5vw, 3.5rem);
  z-index: 2;
  translate: 0 -50%;
}

.lumi-overlay > span,
.lumi-overlay small {
  display: block;
  color: var(--lumi-teal);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.lumi-overlay > span {
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.lumi-overlay strong {
  display: block;
  margin-bottom: var(--space-4);
  color: #2a2d2c;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.lumi-overlay strong em {
  color: var(--lumi-gold);
  font-style: normal;
}

.method {
  position: relative;
  overflow: clip;
  background: var(--green-dark);
  color: #f7f7f1;
}

.method::after {
  position: absolute;
  top: -11rem;
  right: -8rem;
  width: 27rem;
  height: 27rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.025), 0 0 0 10rem rgba(255, 255, 255, 0.018);
  content: "";
}

.method-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.eyebrow-light {
  color: #dce5dc;
}

.eyebrow-light::before {
  background: var(--lemon);
}

.method-intro {
  align-self: start;
}

.method-intro h2 {
  max-width: 12ch;
}

.method-intro > p:last-child {
  max-width: 36rem;
  color: #cbd8d0;
}

.method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-4);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.method-steps li > span {
  color: var(--lemon);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.method-steps h3 {
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: 0;
}

.method-steps p {
  max-width: 42rem;
  margin-bottom: 0;
  color: #cbd8d0;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.about-marker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
}

.about-marker span {
  display: grid;
  min-height: 8rem;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
}

.about-marker span:nth-child(1) {
  background: var(--green-dark);
  color: var(--surface);
}

.about-marker span:nth-child(2),
.about-marker span:nth-child(4) {
  border-left: 1px solid var(--line);
}

.about-marker span:nth-child(3),
.about-marker span:nth-child(4) {
  border-top: 1px solid var(--line);
}

.about-marker span:nth-child(4) {
  position: relative;
}

.about-marker span:nth-child(4)::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--lemon);
  content: "";
}

.about-copy {
  max-width: 45rem;
}

.about-lead {
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 560;
}

.about-copy > p:not(.eyebrow, .about-lead, .about-byline) {
  color: var(--muted);
}

.about-byline {
  width: fit-content;
  margin: var(--space-5) 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

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

.contact-head {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.contact-head h2 {
  max-width: 15ch;
  margin-bottom: 0;
}

.contact-head > p {
  max-width: 38rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.general-email {
  display: grid;
  grid-template-columns: 10rem 1fr auto;
  align-items: center;
  gap: var(--space-4);
  min-height: 8rem;
  padding: 1.25rem 1.5rem;
  border-block: 1px solid var(--ink);
  color: var(--green-dark);
  text-decoration: none;
  transition: background 160ms ease, padding 160ms ease;
}

.general-email:hover {
  padding-inline: 1.9rem 1.1rem;
  background: var(--paper);
}

.general-email > span:first-child,
.contact-subheading {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.general-email strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 570;
  letter-spacing: -0.02em;
}

.general-email > span:last-child {
  font-size: 1.65rem;
}

.contact-subheading {
  margin: var(--space-6) 0 var(--space-3);
}

.contact-routes {
  border-top: 1px solid var(--ink);
}

.contact-routes > a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: var(--space-4);
  min-height: 7rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 160ms ease, padding 160ms ease;
}

.contact-routes > a:hover {
  padding-inline: 1.4rem 0.6rem;
  background: var(--paper);
}

.contact-routes strong,
.contact-routes small {
  display: block;
}

.contact-routes strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.3;
}

.contact-routes small {
  margin-top: 0.2rem;
  color: var(--muted);
}

.route-arrow {
  font-size: 1.65rem;
}

.company-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: var(--step--1);
}

.company-details span + span::before {
  margin-right: 1.25rem;
  color: var(--line);
  content: "/";
}

.site-footer {
  padding-block: var(--space-6);
  background: var(--ink);
  color: #eef1ec;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto;
  align-items: start;
  gap: var(--space-5) var(--space-7);
}

.wordmark-footer {
  color: #fff;
}

.wordmark-footer .wordmark-note {
  color: #b9c9c0;
}

.footer-grid > p {
  max-width: 28rem;
  margin: 0;
  color: #b9c3be;
}

.footer-grid nav {
  display: flex;
  gap: 1.25rem;
}

.footer-grid nav a {
  font-weight: 670;
}

.footer-grid .copyright {
  grid-column: 2 / -1;
  padding-top: var(--space-4);
  border-top: 1px solid #39413e;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .split-heading,
  .project,
  .project-lumi,
  .method-grid,
  .about-grid,
  .contact-head {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: var(--space-6);
  }

  .hero-copy::before,
  .hero-copy::after {
    display: none;
  }

  .portfolio-index {
    max-width: 43rem;
  }

  .portfolio-index::before {
    right: 0;
  }

  .split-heading,
  .contact-head {
    gap: var(--space-4);
  }

  .project {
    gap: var(--space-6);
  }

  .project-lumi .project-copy {
    order: -1;
  }

  .project-copy {
    max-width: 44rem;
  }

  .project-visual {
    width: min(100%, 45rem);
  }

  .about-marker {
    width: min(100%, 31rem);
  }

  .about-copy {
    max-width: 44rem;
  }

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

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

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

@media (max-width: 720px) {
  html {
    scroll-padding-top: 5.5rem;
  }

  .header-inner {
    position: relative;
    min-height: 4.5rem;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 720;
  }

  .menu-icon {
    display: flex;
    width: 1.2rem;
    flex-direction: column;
    gap: 0.35rem;
  }

  .menu-icon span {
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: rotate 160ms ease, translate 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon span:first-child {
    translate: 0 0.18rem;
    rotate: 45deg;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon span:last-child {
    translate: 0 -0.18rem;
    rotate: -45deg;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 0.55rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 1.25rem 2rem rgba(24, 32, 29, 0.12);
  }

  .main-nav[data-open] {
    display: grid;
  }

  .main-nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none !important;
  }

  .main-nav .nav-contact {
    margin-top: 0.7rem;
    padding-inline: 0.9rem;
    border: 0;
    text-align: center;
  }

  .hero-grid {
    padding-block: 3.75rem 4.5rem;
  }

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

  .portfolio-index {
    padding: var(--space-4) 0 var(--space-4) var(--space-4);
  }

  .project {
    padding-block: var(--space-6);
  }

  .project-facts > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .lumi-scene,
  .lumi-scene img {
    min-height: 22rem;
    height: 22rem;
  }

  .lumi-scene::after {
    background: linear-gradient(90deg, rgba(248, 245, 236, 0.98) 0 38%, rgba(248, 245, 236, 0.62) 58%, transparent 82%);
  }

  .method-steps li {
    grid-template-columns: 2.5rem 1fr;
  }

  .contact-routes > a {
    grid-template-columns: 2.5rem 1fr auto;
    gap: 0.7rem;
    min-height: 6rem;
    padding-inline: 0;
  }

  .contact-routes > a:hover {
    padding-inline: 0.35rem 0;
  }

  .company-details {
    display: grid;
  }

  .general-email {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1rem;
    padding-inline: 0;
  }

  .general-email:hover {
    padding-inline: 0.35rem 0;
  }

  .general-email > span:first-child {
    grid-column: 1 / -1;
  }

  .company-details span + span::before {
    display: none;
  }

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

  .footer-grid nav {
    grid-column: auto;
    flex-wrap: wrap;
  }

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

@media (max-width: 420px) {
  .shell {
    width: min(calc(100% - 1.5rem), var(--shell));
  }

  .wordmark-note {
    font-size: 0.52rem;
  }

  .portfolio-index {
    border-left-width: 2px;
  }

  .evidence-visual {
    padding: 0 0.75rem 0.75rem 0;
  }

  .evidence-sheet {
    padding: 1.2rem;
    box-shadow: 0.75rem 0.75rem 0 var(--paper-deep);
  }

  .sheet-question {
    font-size: 1.45rem;
  }

  .evidence-sheet dl > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .lumi-overlay {
    left: 1.2rem;
  }

  .lumi-overlay strong {
    font-size: 2.15rem;
  }

  .contact-routes > a {
    grid-template-columns: 1.75rem 1fr auto;
  }

  .route-arrow {
    font-size: 1.2rem;
  }

  .general-email strong {
    overflow-wrap: anywhere;
    font-size: 1.6rem;
  }
}

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

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

.error-page {
  min-height: 100svh;
  background: var(--paper);
}

.error-home-link {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
  text-decoration: none;
}

.error-main {
  display: grid;
  min-height: calc(100svh - 5rem);
  align-items: center;
  padding-block: var(--space-7);
}

.error-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.error-code {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: clamp(8rem, 24vw, 20rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.72;
}

.error-copy {
  max-width: 40rem;
}

.error-copy h1 {
  max-width: 10ch;
}

.error-copy > p:not(.eyebrow) {
  max-width: 37rem;
  margin-bottom: var(--space-5);
  color: var(--muted);
  font-size: var(--step-1);
}

@media (max-width: 720px) {
  .error-main {
    min-height: calc(100svh - 4.5rem);
  }

  .error-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .error-code {
    font-size: clamp(7rem, 42vw, 12rem);
  }
}

@media print {
  .site-header,
  .hero-actions,
  .contact-routes,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section,
  .hero-grid {
    padding-block: 2rem;
  }
}
