:root {
  color-scheme: light;
  --bg: #f4f7f1;
  --bg-deep: #17342d;
  --surface: #fffefa;
  --surface-2: #e7efe9;
  --paper: #fbfcf8;
  --ink: #17312c;
  --ink-dark: #102720;
  --muted: #566963;
  --line: rgba(33, 71, 62, 0.14);
  --line-strong: rgba(33, 71, 62, 0.27);
  --accent: #2c6b5f;
  --accent-2: #58768a;
  --warm: #a97a43;
  --max: 1240px;
  --header-h: 76px;
  --sans: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Times New Roman", "Songti SC", STSong, serif;
  --serif: "Times New Roman", "Songti SC", STSong, serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 4%, rgba(113, 158, 136, 0.16), transparent 31rem),
    radial-gradient(circle at -6% 36%, rgba(108, 138, 158, 0.11), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.home-page main {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(circle at 14% 8%, rgba(153, 190, 166, 0.17), transparent 25rem),
    radial-gradient(circle at 86% 27%, rgba(133, 169, 187, 0.12), transparent 31rem),
    linear-gradient(180deg, rgba(251, 252, 248, 0.56), rgba(233, 241, 234, 0.24) 46%, rgba(250, 251, 247, 0.5));
}

.home-page main::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -8rem -18vw;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 18%, rgba(98, 151, 120, 0.12), transparent 27%),
    radial-gradient(ellipse at 76% 42%, rgba(100, 143, 166, 0.1), transparent 30%),
    radial-gradient(ellipse at 42% 78%, rgba(170, 185, 139, 0.1), transparent 29%);
  background-size: 125% 125%;
  animation: ambient-wash 26s ease-in-out infinite alternate;
}

img { display: block; width: 100%; height: auto; }
figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(calc(100% - 8vw), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 7vw, 6.5rem); border-top: 1px solid var(--line); }
.section-full { border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; transform: translateY(-160%); padding: 0.7rem 1rem; background: var(--accent); color: #ffffff; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 4vw;
  border-bottom: 1px solid transparent;
  background: rgba(244, 247, 241, 0.82);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled { border-color: var(--line); background: rgba(250, 251, 247, 0.96); box-shadow: 0 8px 30px rgba(32, 63, 54, 0.055); }
.wordmark { display: flex; align-items: center; gap: 0.75rem; font-family: var(--serif); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.wordmark-mark { display: grid; width: 2rem; aspect-ratio: 1; place-items: center; border: 1px solid var(--accent); border-radius: 50%; background: rgba(255, 255, 255, 0.56); color: var(--accent); font-family: var(--mono); font-size: 0.78rem; }
.site-nav { display: flex; align-items: center; gap: clamp(0.35rem, 0.9vw, 0.85rem); color: var(--muted); font-size: 0.92rem; font-weight: 700; }
.site-nav > a, .nav-primary-row > a { padding: 0.7rem 0.65rem; font-weight: 700; letter-spacing: 0.005em; }
.site-nav a { transition: color 160ms ease, background 160ms ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.45rem; }
.nav-cta { margin-left: 0.35rem; color: var(--ink) !important; padding-block: 0.55rem !important; border-bottom: 1px solid var(--accent); }
.nav-group { position: relative; }
.nav-primary-row { display: flex; align-items: center; }
.submenu-toggle { display: grid; width: 1.7rem; height: 2.35rem; margin-left: -0.55rem; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; }
.submenu-toggle > span:last-child { display: block; font-size: 1rem; line-height: 1; transition: transform 180ms ease, color 180ms ease; }
.nav-group:hover .submenu-toggle > span:last-child, .nav-group:focus-within .submenu-toggle > span:last-child, .nav-group.is-submenu-open .submenu-toggle > span:last-child { transform: rotate(180deg); color: var(--accent); }
.nav-submenu { position: absolute; z-index: 60; top: calc(100% + 0.55rem); left: -0.7rem; min-width: 20rem; display: grid; padding: 0.45rem; border: 1px solid var(--line-strong); background: rgba(255, 254, 250, 0.98); box-shadow: 0 24px 60px rgba(27, 57, 49, 0.13); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-0.45rem); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease; }
.nav-submenu::before { content: ""; position: absolute; inset: -0.65rem 0 auto; height: 0.65rem; }
.nav-submenu-wide { min-width: 21rem; }
.nav-group:hover .nav-submenu, .nav-group:focus-within .nav-submenu, .nav-group.is-submenu-open .nav-submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-submenu a { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.7rem; align-items: start; padding: 0.78rem 0.8rem; border-bottom: 1px solid var(--line); }
.nav-submenu a:last-child { border-bottom: 0; }
.nav-submenu a:hover, .nav-submenu a:focus-visible { background: var(--surface-2); }
.submenu-number { padding-top: 0.08rem; color: var(--accent); font-family: var(--mono); font-size: 0.7rem; }
.submenu-copy { display: grid; gap: 0.13rem; }
.submenu-copy strong { color: var(--ink); font-size: 0.88rem; font-weight: 650; letter-spacing: -0.01em; }
.submenu-copy small { color: var(--muted); font-size: 0.72rem; line-height: 1.35; }
.menu-toggle { display: none; }

.eyebrow, .section-kicker, .project-meta, .case-number, .case-question span, .case-close span, figcaption, .method-strip, .contact-meta, .page-index span {
  font-family: var(--mono);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.status-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0.35rem rgba(44, 107, 95, 0.1); }
.section-kicker { display: flex; align-items: center; gap: 0.8rem; margin-bottom: clamp(2.3rem, 5vw, 4rem); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.section-kicker span { color: var(--accent); }
.section-kicker p { margin: 0; color: var(--muted); }
.home-page .section-kicker::after { content: ""; flex: 1; height: 1px; margin-left: 0.45rem; background: linear-gradient(90deg, var(--line-strong), transparent 72%); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
}

.home-page .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -8rem;
  right: clamp(-17rem, -14vw, -8rem);
  width: clamp(34rem, 55vw, 58rem);
  aspect-ratio: 1.22;
  pointer-events: none;
  opacity: 0.34;
  background:
    repeating-radial-gradient(
      ellipse at 58% 48%,
      transparent 0 18px,
      rgba(44, 107, 95, 0.2) 19px,
      transparent 20px 33px
    );
  -webkit-mask-image: radial-gradient(ellipse, #000 0 42%, transparent 73%);
  mask-image: radial-gradient(ellipse, #000 0 42%, transparent 73%);
  transform: rotate(-7deg) translate3d(0, 0, 0);
  animation: contour-drift 30s ease-in-out infinite alternate;
}

.home-page .hero > * { position: relative; z-index: 1; }

.hero-name { margin-bottom: 0.2rem; font-family: var(--serif); font-size: clamp(1.55rem, 2.1vw, 2rem); font-weight: 700; letter-spacing: -0.018em; line-height: 1.2; }
.hero-name span { margin-left: 0.4rem; color: var(--muted); font-weight: 450; }
.hero-role { margin-bottom: 1.15rem; color: var(--accent-2); font-family: var(--serif); font-size: clamp(1rem, 1.3vw, 1.18rem); letter-spacing: 0.012em; line-height: 1.45; text-transform: none; }
.hero-copy .eyebrow { margin-bottom: 1.15rem; font-family: var(--serif); font-size: clamp(0.94rem, 1.15vw, 1.06rem); letter-spacing: 0.015em; line-height: 1.45; text-transform: none; }
.hero h1, .page-hero h1 {
  margin-bottom: 1.6rem;
  font-size: clamp(3.35rem, 6.25vw, 6.35rem);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.95;
}
.hero h1 { max-width: 11ch; }
.hero h1 span { color: var(--accent); }
.hero-intro { max-width: 42rem; color: var(--muted); font-size: clamp(1.08rem, 1.4vw, 1.28rem); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.button { min-height: 3.15rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 0.75rem 1.2rem; border: 1px solid var(--line-strong); font-size: 0.92rem; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); border-color: var(--accent); }
.button-primary { border-color: var(--accent); background: var(--accent); color: #ffffff; font-weight: 720; box-shadow: 0 10px 24px rgba(44, 107, 95, 0.12); }
.button-primary:hover, .button-primary:focus-visible { background: #24594f; }
.button-quiet { background: rgba(255, 255, 255, 0.45); color: var(--ink); }

.hero-visual { overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 28px 80px rgba(31, 64, 55, 0.12); }
.home-page .hero-visual { background: linear-gradient(145deg, rgba(255, 254, 250, 0.98), rgba(230, 240, 233, 0.92)); box-shadow: 0 34px 90px rgba(28, 65, 54, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.54) inset; }
.hero-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 1px solid var(--line-strong); }
.hero-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(3, 9, 13, 0.92)); pointer-events: none; }
.hero-photo img { height: 100%; object-fit: cover; filter: saturate(0.88) contrast(1.03); }
.hero-photo figcaption { position: absolute; z-index: 1; inset: auto 1.2rem 1rem; display: grid; gap: 0.15rem; color: #fff; }
.hero-photo figcaption span { color: #d7efe4; }
.hero-photo figcaption strong { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; }
.research-lens > p { margin: 0; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.research-lens ol { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; list-style: none; }
.research-lens li { position: relative; min-height: 8rem; display: grid; align-content: end; gap: 0.1rem; padding: 1rem; border-right: 1px solid var(--line); }
.research-lens li:last-child { border-right: 0; }
.research-lens li > span { position: absolute; top: 0.8rem; left: 1rem; color: var(--accent); font-family: var(--mono); font-size: 0.75rem; }
.research-lens strong { font-size: 0.88rem; }
.research-lens small { color: var(--muted); font-size: 0.75rem; line-height: 1.4; }

.section-title { max-width: 14ch; margin-bottom: 0; font-family: var(--serif); font-size: clamp(2.4rem, 4.6vw, 4.9rem); font-weight: 500; letter-spacing: -0.043em; line-height: 1.04; }
.story-intro, .section-heading { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(380px, 1.14fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.story-copy { max-width: 46rem; }
.story-copy p:not(.lead), .section-heading > p, .work-story-copy > p:not(.eyebrow, .lead-small), .case-narrative > p:not(.lead-small), .chapter-story > div p, .life-story > p:not(.lead-small) { color: var(--muted); }
.lead { color: var(--ink); font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.45; letter-spacing: -0.025em; }
.lead-small { color: var(--ink); font-size: clamp(1.16rem, 1.8vw, 1.55rem); line-height: 1.5; letter-spacing: -0.018em; }

.pathline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(3.25rem, 6vw, 5rem); border: 1px solid var(--line); }
.pathline > div { position: relative; min-height: 10.5rem; padding: 1.25rem; border-right: 1px solid var(--line); background: rgba(255, 254, 250, 0.76); }
.home-page .pathline > div:nth-child(1) { background: linear-gradient(145deg, rgba(255, 254, 250, 0.94), rgba(232, 239, 242, 0.7)); }
.home-page .pathline > div:nth-child(2) { background: linear-gradient(145deg, rgba(255, 254, 250, 0.94), rgba(229, 239, 231, 0.76)); }
.home-page .pathline > div:nth-child(3) { background: linear-gradient(145deg, rgba(255, 254, 250, 0.94), rgba(224, 238, 235, 0.72)); }
.pathline > div:last-child { border-right: 0; }
.pathline span { color: var(--accent); font-family: var(--mono); font-size: 0.75rem; }
.pathline strong { display: block; margin-top: 2.35rem; font-size: 1.16rem; }
.pathline p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; }
.pathline-forward { background: linear-gradient(145deg, rgba(96, 143, 113, 0.17), rgba(255, 254, 250, 0.72)) !important; }

.section-heading { align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-heading > p { max-width: 31rem; margin-bottom: 0; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.project-card { grid-column: span 6; align-self: start; overflow: hidden; display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); background: rgba(255, 254, 250, 0.9); box-shadow: 0 18px 48px rgba(31, 64, 55, 0.055); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.home-page .project-card { background: linear-gradient(145deg, rgba(255, 254, 250, 0.97), rgba(235, 242, 236, 0.86)); box-shadow: 0 22px 58px rgba(31, 64, 55, 0.075); }
.home-page .project-card:nth-child(2n) { background: linear-gradient(145deg, rgba(255, 254, 250, 0.97), rgba(233, 240, 243, 0.8)); }
.home-page .project-image { background: linear-gradient(135deg, #fbfcf8, #edf3ed 58%, #e8f0f2); }
.project-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(31, 64, 55, 0.1); }
.project-card-featured { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.project-image { display: grid; min-height: 13rem; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.project-card-featured .project-image { min-height: 0; border-right: 1px solid var(--line); border-bottom: 0; }
.project-image img { height: 100%; object-fit: contain; padding: clamp(1rem, 2.5vw, 2.2rem); transition: transform 350ms ease; }
.project-card:hover .project-image img { transform: scale(1.025); }
.project-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(1.3rem, 2.4vw, 2rem); }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.055em; text-transform: uppercase; }
.project-copy h3 { margin: clamp(1.6rem, 3vw, 2.6rem) 0 0.9rem; font-size: clamp(1.45rem, 2.35vw, 2.4rem); font-weight: 540; letter-spacing: -0.04em; line-height: 1.1; }
.project-copy > p { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.tag-list li { padding: 0.3rem 0.55rem; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 0.75rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.7rem; width: fit-content; margin-top: auto; padding-top: 1.6rem; border-bottom: 1px solid var(--accent); color: var(--ink); font-size: 0.92rem; }

.software-section { position: relative; isolation: isolate; }
.software-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4rem;
  right: -13vw;
  width: min(44rem, 64vw);
  aspect-ratio: 1.55;
  pointer-events: none;
  opacity: 0.3;
  background: repeating-radial-gradient(ellipse at 65% 45%, transparent 0 20px, rgba(44, 107, 95, 0.16) 21px, transparent 22px 35px);
  -webkit-mask-image: radial-gradient(ellipse, #000 0 42%, transparent 74%);
  mask-image: radial-gradient(ellipse, #000 0 42%, transparent 74%);
  transform: rotate(5deg);
  animation: contour-drift 32s ease-in-out infinite alternate-reverse;
}
.software-heading { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr); gap: clamp(3rem, 8vw, 8rem); align-items: end; margin-bottom: clamp(2.8rem, 5.5vw, 4.6rem); }
.software-heading > p { max-width: 31rem; margin: 0; color: var(--muted); }
.software-board { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: rgba(250, 252, 247, 0.64); box-shadow: 0 24px 65px rgba(31, 64, 55, 0.07); backdrop-filter: blur(5px); }
.software-group { grid-column: span 6; min-width: 0; padding: clamp(1.4rem, 2.8vw, 2.25rem); background: linear-gradient(145deg, rgba(255, 254, 250, 0.88), rgba(231, 240, 232, 0.66)); }
.software-group-wide { grid-column: 1 / -1; border-bottom: 1px solid var(--line-strong); background: linear-gradient(145deg, rgba(255, 254, 250, 0.9), rgba(231, 239, 242, 0.64)); }
.software-group:nth-child(2) { border-right: 1px solid var(--line-strong); }
.software-group-header { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.8rem; align-items: start; min-height: 5.8rem; }
.software-group-header > span { padding-top: 0.2rem; color: var(--accent); font-family: var(--mono); font-size: 0.72rem; }
.software-group-header h3 { margin: 0 0 0.35rem; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; }
.software-group-header p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.software-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; }
.software-group-wide .software-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.software-list > li { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 180ms ease, transform 180ms ease; }
.software-list > li:hover, .software-list > li:focus-within { z-index: 2; background: rgba(255, 255, 252, 0.82); transform: translateY(-2px); }
.software-tool { position: relative; width: 100%; min-width: 0; min-height: 11.5rem; display: grid; grid-template-rows: 5.4rem auto auto; gap: 0.55rem; align-content: center; justify-items: center; padding: 1rem 0.7rem; border: 0; background: transparent; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.software-tool:focus-visible { z-index: 2; outline: 2px solid var(--accent); outline-offset: -3px; }
.software-icon { width: 5.4rem; height: 5.4rem; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(33, 71, 62, 0.12); background: #ffffff; box-shadow: 0 10px 24px rgba(30, 68, 57, 0.075); }
.software-icon img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.software-tool strong { max-width: 9.5rem; color: var(--ink); font-size: 0.86rem; font-weight: 650; line-height: 1.32; }
.software-tool-hint { color: var(--accent); font-family: "Times New Roman", Times, serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.software-preview { position: fixed; z-index: 120; left: 1rem; top: 1rem; width: min(46rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); display: grid; grid-template-columns: minmax(13rem, 0.78fr) minmax(22rem, 1.22fr); overflow: auto; border: 1px solid rgba(31, 69, 59, 0.34); background: rgba(252, 253, 249, 0.99); box-shadow: 0 28px 85px rgba(17, 48, 39, 0.25); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(0.55rem) scale(0.985); transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease; }
.software-preview.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.software-preview-close { position: absolute; z-index: 3; top: 0.7rem; right: 0.7rem; width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 50%; background: rgba(20, 50, 42, 0.86); color: #ffffff; font: 700 1.25rem/1 var(--sans); cursor: pointer; }
.software-preview-copy { display: grid; align-content: center; padding: 1.6rem; background: linear-gradient(145deg, #17342d, #2c6b5f); color: rgba(255, 255, 255, 0.9); }
.software-preview-kicker { margin-bottom: 0.75rem; color: #d9eee6; font-family: var(--mono); font-size: 0.69rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.software-preview-copy h3 { margin-bottom: 0.9rem; color: #ffffff; font-family: var(--serif); font-size: clamp(1.45rem, 2.5vw, 2.25rem); line-height: 1.05; }
.software-preview-copy > p:last-child { margin: 0; font-size: 0.9rem; line-height: 1.58; }
.software-carousel { min-width: 0; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem; align-items: center; gap: 0.55rem; padding: 1rem 0.8rem 0.85rem; border-left: 1px solid var(--line-strong); background: #ffffff; }
.software-carousel figure { min-width: 0; margin: 0; }
.software-carousel img { width: 100%; height: 16rem; display: block; object-fit: contain; background: #f5f7f3; }
.software-carousel figcaption { min-height: 3.25rem; display: flex; justify-content: space-between; gap: 0.8rem; align-items: flex-start; padding: 0.75rem 0.15rem 0; color: var(--muted); font-size: 0.72rem; line-height: 1.45; text-transform: none; }
.software-carousel-count { flex: 0 0 auto; color: var(--accent); font-family: var(--mono); }
.software-carousel-arrow { width: 2.45rem; height: 2.45rem; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.15rem; cursor: pointer; transition: color 150ms ease, border-color 150ms ease, background 150ms ease; }
.software-carousel-arrow:hover, .software-carousel-arrow:focus-visible { border-color: var(--accent); background: var(--surface-2); color: var(--accent); }
.software-carousel-arrow:disabled { opacity: 0.25; cursor: default; }

.work-story { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.work-story-copy .section-title { margin-bottom: 2rem; }
.work-story-copy .button { margin-top: 1rem; }
.work-story-media { position: relative; width: min(100%, 34rem); justify-self: end; padding: 0 4rem 4.7rem 0; }
.photo-frame { overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.photo-frame img { filter: saturate(0.88) contrast(1.03); }
.photo-frame figcaption, .about-primary-photo figcaption, .evidence-figure figcaption, .workflow-frame figcaption, .life-gallery figcaption, .before-after figcaption { padding: 0.75rem 0.9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; letter-spacing: 0.035em; line-height: 1.5; text-transform: uppercase; }
.photo-frame-tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.photo-frame-inset { position: absolute; right: 0; bottom: 0; width: 12rem; border-color: rgba(44, 107, 95, 0.5); box-shadow: 0 22px 50px rgba(31, 64, 55, 0.18); }
.photo-frame-inset img { aspect-ratio: 3 / 4; object-fit: cover; }

.direction { background: radial-gradient(circle at 80% 5%, rgba(89, 133, 157, 0.14), transparent 32rem), linear-gradient(135deg, #e9f0e9, #f4f6ef); }
.direction-inner { padding-block: clamp(4rem, 7vw, 6.5rem); }
.direction-inner > h2 { max-width: 21ch; margin-bottom: clamp(3rem, 6vw, 5rem); font-family: var(--serif); font-size: clamp(2.4rem, 4.8vw, 5rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.03; }
.direction-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.direction-grid p { position: relative; min-height: 10.5rem; margin: 0; padding: 3.8rem 1.4rem 1.4rem; border-right: 1px solid var(--line); background: rgba(255, 255, 252, 0.62); }
.direction-grid strong { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.direction-grid p:last-child { border-right: 0; }
.direction-grid span { position: absolute; top: 1.2rem; left: 1.4rem; color: var(--accent); font-family: var(--mono); font-size: 0.7rem; }
.fit-line { margin: 1.8rem 0 0; color: var(--muted); }
.fit-line strong { color: var(--ink); }

.about-grid { display: grid; grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr); gap: clamp(4rem, 9vw, 9rem); align-items: start; }
.about-collage { position: relative; width: min(100%, 31rem); padding: 0 3.6rem 4rem 0; }
.about-primary-photo { border: 1px solid var(--line-strong); background: var(--surface); }
.about-primary-photo img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 42%; filter: saturate(0.82); }
.about-inset-photo { position: absolute; right: 0; bottom: 0; width: 9.5rem; padding: 0.4rem; border: 1px solid rgba(44, 107, 95, 0.5); background: var(--surface); box-shadow: 0 22px 55px rgba(31, 64, 55, 0.17); }
.about-inset-photo img { aspect-ratio: 3 / 4; object-fit: cover; }
.timeline { margin-top: 2.8rem; border-top: 1px solid var(--line-strong); }
.timeline article { display: grid; grid-template-columns: 0.32fr 1fr; gap: 1.5rem; padding: 1.45rem 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--accent); font-family: var(--mono); font-size: 0.75rem; }
.timeline h3 { margin-bottom: 0.2rem; font-size: 1.05rem; }
.timeline p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.contact { border-top: 0; padding-top: 0; padding-bottom: clamp(4rem, 8vw, 7rem); }
.contact-inner { padding: clamp(2.2rem, 6vw, 5.2rem); border: 1px solid var(--line-strong); background: linear-gradient(135deg, #dfeae2, #edf2ea); color: var(--ink-dark); }
.contact-inner .eyebrow { color: var(--accent); }
.contact-inner h2 { max-width: 18ch; margin-bottom: 3.5rem; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 500; letter-spacing: -0.047em; line-height: 1; }
.contact-actions { border-top: 1px solid rgba(3, 9, 13, 0.28); }
.contact-link { display: grid; grid-template-columns: 0.28fr 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid rgba(3, 9, 13, 0.28); transition: padding-inline 160ms ease; }
.contact-link:hover, .contact-link:focus-visible { padding-inline: 0.7rem; }
.contact-link span:first-child { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; }
.contact-link strong { overflow-wrap: anywhere; }
.contact-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.site-footer p { margin: 0; }
.site-footer p span { margin-left: 0.4rem; color: var(--ink); }
.site-footer a { color: var(--accent); }

/* Academic documents */
.documents-hero { align-items: center; }
.documents-hero h1 { max-width: 12ch; }
.documents-hero-copy { max-width: 35rem; }
.documents-hero-copy .lead-small { margin-bottom: 1.2rem; }
.privacy-note { padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.privacy-note strong { color: var(--ink); }
.documents-section { padding-block: clamp(4.5rem, 8vw, 7rem); }
.document-record { padding-block: clamp(3.2rem, 6vw, 5.2rem); border-top: 1px solid var(--line-strong); }
.document-record:first-child { padding-top: 0; border-top: 0; }
.document-record-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; margin-bottom: 1.6rem; }
.document-record-copy { max-width: 50rem; }
.document-record-meta { margin-bottom: 0.7rem; color: var(--accent); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.document-record h2 { margin-bottom: 0.65rem; font-family: var(--serif); font-size: clamp(2rem, 3.7vw, 3.7rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
.document-record-copy > p:last-child { color: var(--muted); }
.document-frame { height: clamp(46rem, 75vw, 72rem); overflow: hidden; border: 1px solid var(--line-strong); background: #e8eee9; box-shadow: 0 24px 65px rgba(31, 64, 55, 0.08); }
.document-frame-landscape { height: clamp(32rem, 58vw, 52rem); }
.document-frame object { display: block; width: 100%; height: 100%; border: 0; background: #ffffff; }
.document-frame-fallback { display: grid; height: 100%; place-items: center; padding: 2rem; text-align: center; }
.document-frame-fallback a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* Research pages */
.page-hero { min-height: auto; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr); gap: clamp(3rem, 7vw, 7rem); align-items: end; padding-block: clamp(4.5rem, 8vw, 7rem); }
.page-hero h1 { max-width: 11ch; margin: 0; }
.page-hero-copy { padding-bottom: 0.35rem; }
.page-index { display: grid; margin-top: 2.4rem; border-top: 1px solid var(--line-strong); }
.page-index a { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.8rem; padding-block: 0.8rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; transition: color 160ms ease, padding-left 160ms ease; }
.page-index a:hover, .page-index a:focus-visible { padding-left: 0.4rem; color: var(--ink); }
.page-index span { color: var(--accent); font-size: 0.75rem; }

.case-study { padding-block: clamp(4.5rem, 8vw, 7rem); }
.case-study-alt { background: rgba(229, 237, 235, 0.72); }
.case-header { display: grid; grid-template-columns: minmax(4rem, 0.16fr) 1fr; gap: clamp(1.5rem, 5vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.case-number { color: var(--accent); font-size: 0.8rem; }
.case-header h2 { max-width: 18ch; margin: 0; font-family: var(--serif); font-size: clamp(2.55rem, 5vw, 5.3rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.case-overview { display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr); gap: clamp(3rem, 8vw, 8rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line-strong); }
.case-question span, .case-close span { display: block; margin-bottom: 1rem; color: var(--accent); font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase; }
.case-question p { max-width: 25rem; color: var(--accent-2); font-size: 1.05rem; }
.case-narrative { max-width: 48rem; }
.role-note { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.role-note strong { color: var(--ink); }
.method-strip { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 1rem 0 clamp(3rem, 6vw, 5rem); color: var(--muted); font-size: 0.75rem; }
.method-strip span { padding: 0.35rem 0.6rem; border: 1px solid var(--line); }

.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.evidence-grid-opening { margin-top: 0; }
.evidence-figure { overflow: hidden; align-self: stretch; border: 1px solid var(--line); background: var(--surface); }
.evidence-figure > a { min-height: 22rem; display: grid; place-items: center; padding: clamp(1rem, 3vw, 2.2rem); background: var(--paper); }
.evidence-figure img { max-height: 34rem; object-fit: contain; }
.evidence-figure figcaption { min-height: 3.7rem; }
.evidence-figure figcaption span { margin-right: 0.6rem; color: var(--accent); }
.evidence-wide { grid-column: 1 / -1; }
.evidence-wide > a { min-height: 26rem; }
.evidence-figure-overview > a { min-height: 0; padding: clamp(0.65rem, 1.4vw, 1.1rem); }
.evidence-figure-overview img { width: 100%; max-height: none; height: auto; }
.evidence-tall > a { min-height: 28rem; }
.evidence-figure a:focus-visible { outline-offset: -4px; }

.case-insight { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr); gap: clamp(3rem, 7vw, 7rem); margin-block: clamp(3.5rem, 6vw, 5.5rem); padding-block: clamp(2.25rem, 4vw, 3.5rem); border-block: 1px solid var(--line); }
.case-insight h3 { max-width: 16ch; margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.8vw, 3.7rem); font-weight: 500; letter-spacing: -0.038em; line-height: 1.06; }
.case-insight > div:last-child { color: var(--muted); }
.case-insight strong { color: var(--ink); }
.case-close { display: grid; grid-template-columns: minmax(10rem, 0.3fr) 1fr; gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.5rem, 3vw, 2.4rem); border: 1px solid rgba(44, 107, 95, 0.3); background: linear-gradient(90deg, rgba(97, 144, 116, 0.13), rgba(255, 255, 252, 0.42)); }
.case-close p { max-width: 50rem; margin: 0; color: var(--muted); }
.next-page { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line); }
.next-page p { max-width: 42rem; margin: 0; color: var(--muted); font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.4; }
.next-page a { flex: 0 0 auto; border-bottom: 1px solid var(--accent); }

/* Journey page */
.journey-hero { grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr); align-items: center; }
.journey-hero-media { position: relative; isolation: isolate; width: min(100%, 38rem); justify-self: end; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 28px 80px rgba(31, 64, 55, 0.12); }
.journey-hero-media::after { content: ""; position: absolute; z-index: 0; inset: 38% 0 0; background: linear-gradient(180deg, transparent, rgba(12, 39, 33, 0.9)); pointer-events: none; }
.journey-hero-media .photo-frame { border: 0; background: transparent; }
.journey-hero-media .photo-frame img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center; filter: saturate(0.88) contrast(1.02); }
.journey-opening { position: absolute; z-index: 1; inset: auto clamp(1.4rem, 4vw, 2.4rem) clamp(1.5rem, 4vw, 2.5rem); max-width: 26rem; margin: 0; color: rgba(255, 255, 255, 0.94); font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.48; text-shadow: 0 2px 18px rgba(3, 12, 9, 0.35); }
.journey-chapter { padding-block: clamp(4.5rem, 8vw, 7rem); }
.journey-chapter-dark { background: #e8efea; }
.journey-chapter-soft { background: linear-gradient(145deg, rgba(229, 237, 235, 0.86), rgba(239, 242, 235, 0.8)); }
.chapter-header { display: grid; grid-template-columns: minmax(3rem, 0.13fr) 1fr; gap: clamp(1.5rem, 5vw, 5rem); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.chapter-header > span { color: var(--accent); font-family: var(--mono); font-size: 0.78rem; }
.chapter-header h2 { max-width: 18ch; margin: 0; font-family: var(--serif); font-size: clamp(2.5rem, 4.8vw, 5.1rem); font-weight: 500; letter-spacing: -0.048em; line-height: 1; }
.chapter-story { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); gap: clamp(3rem, 8vw, 8rem); max-width: 70rem; margin-left: auto; }
.chapter-story-single { max-width: none; margin: 0; }
.photo-sequence { display: grid; gap: 1rem; margin-top: clamp(4rem, 8vw, 7rem); }
.photo-sequence-three { grid-template-columns: repeat(3, 1fr); }
.photo-sequence img { aspect-ratio: 4 / 3; object-fit: cover; }
.story-quote { max-width: 25ch; margin: clamp(4rem, 8vw, 7rem) auto 0; color: var(--ink); font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 4rem); font-style: italic; line-height: 1.18; text-align: center; }

.tender-gallery { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 1rem; margin-top: clamp(4rem, 8vw, 7rem); align-items: start; }
.tender-discussion-crop { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.tender-discussion-crop img { position: absolute; top: 50%; left: 0; width: 136%; max-width: none; height: auto; transform: translateY(-50%); }
.tender-document img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.workflow-frame { display: grid; align-content: stretch; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.workflow-frame img { height: 100%; min-height: 23rem; object-fit: contain; padding: 1rem; background: var(--paper); }
.workflow-frame figcaption span { display: block; margin-bottom: 0.25rem; color: var(--accent); }

.presentation-gallery { display: grid; grid-template-columns: 0.7fr 1.25fr 0.8fr; gap: 1rem; margin-top: clamp(4rem, 8vw, 7rem); align-items: start; }
.presentation-gallery .photo-frame { align-self: start; }
.presentation-gallery img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }
.presentation-award img { object-position: center; }

.resilience-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.resilience-layout .chapter-story { grid-template-columns: 1fr; gap: 1.5rem; }
.before-after { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.before-after figure { overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.before-after img { aspect-ratio: 3 / 4; object-fit: cover; }
.before-after figcaption span { display: block; margin-bottom: 0.25rem; color: var(--accent); }

.life-story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr); gap: clamp(3rem, 8vw, 8rem); max-width: 70rem; margin-left: auto; }
.life-gallery { display: block; columns: 3 18rem; column-gap: 1rem; margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.life-gallery figure { display: inline-block; width: 100%; margin: 0 0 1rem; overflow: hidden; break-inside: avoid; border: 1px solid var(--line); background: var(--surface); vertical-align: top; }
.life-gallery .life-wide { display: block; width: 100%; column-span: all; }
.life-gallery img { aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.9) contrast(1.02); }
.life-gallery .life-portrait img { aspect-ratio: 3 / 4; }
.life-gallery .life-wide img { height: auto; aspect-ratio: auto; object-fit: contain; }
.life-gallery .life-stage { margin-top: 0.25rem; }
.story-quote-final { max-width: 20ch; color: var(--accent); }

@keyframes ambient-wash {
  from { background-position: 0% 0%; transform: scale(1); }
  to { background-position: 100% 72%; transform: scale(1.035); }
}

@keyframes contour-drift {
  from { transform: rotate(-7deg) translate3d(-1.5%, 0, 0) scale(0.985); }
  to { transform: rotate(-3deg) translate3d(2.5%, 1.5%, 0) scale(1.025); }
}

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 1020px) {
  .hero, .page-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { max-width: 44rem; }
  .page-hero { align-items: start; }
  .story-intro, .section-heading, .work-story, .about-grid, .case-overview, .case-insight, .resilience-layout { grid-template-columns: 1fr; }
  .project-card, .project-card-featured { grid-column: span 6; grid-row: auto; }
  .project-card-featured { grid-column: 1 / -1; }
  .project-card-featured .project-image { min-height: 0; }
  .work-story-media { justify-self: start; }
  .chapter-story, .life-story { grid-template-columns: 1fr; max-width: none; margin: 0; }
  .journey-hero-media { justify-self: center; }
  .presentation-gallery { grid-template-columns: 0.75fr 1.25fr; }
  .presentation-gallery > figure:last-child { grid-column: 1 / -1; }
  .presentation-gallery > figure:last-child img { height: auto; min-height: 0; aspect-ratio: auto; }
  .life-gallery { columns: 2 16rem; }
  .software-heading { grid-template-columns: 1fr; }
  .software-group { grid-column: 1 / -1; }
  .software-group:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .software-group:not(.software-group-wide) .software-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .document-record-header { grid-template-columns: 1fr; align-items: start; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .site-header { padding-inline: 2.5vw; }
  .wordmark { font-size: 0.95rem; }
  .wordmark-mark { display: none; }
  .site-nav { gap: 0; font-size: 0.84rem; }
  .site-nav > a, .nav-primary-row > a { padding-inline: 0.48rem; }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .site-header { padding-inline: 2.5vw; }
  .wordmark { font-size: 0.95rem; }
  .wordmark-mark { display: none; }
  .site-nav { gap: 0; font-size: 0.82rem; }
  .site-nav > a, .nav-primary-row > a { padding-inline: 0.42rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .home-page .hero::before { top: -7rem; right: -24rem; width: 42rem; opacity: 0.23; }
  .site-header { padding-inline: 5vw; }
  .menu-toggle { display: grid; gap: 6px; width: 2.7rem; height: 2.7rem; place-content: center; border: 1px solid var(--line); background: transparent; color: var(--ink); }
  .menu-toggle span:not(.sr-only) { display: block; width: 1.1rem; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; inset: var(--header-h) 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 0 5vw 1rem; background: rgba(250, 251, 247, 0.99); border-bottom: 1px solid var(--line); box-shadow: 0 24px 50px rgba(31, 64, 55, 0.1); }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { text-decoration: none; color: var(--accent); }
  .nav-cta { border-bottom-color: var(--accent) !important; }
  .nav-group { border-bottom: 1px solid var(--line); }
  .nav-primary-row { display: grid; grid-template-columns: 1fr 3rem; }
  .nav-primary-row > a { padding: 0.9rem 0; }
  .submenu-toggle { width: 3rem; height: auto; margin: 0; border-left: 1px solid var(--line); }
  .nav-submenu, .nav-submenu-wide { position: static; min-width: 0; display: none; padding: 0.3rem 0 0.6rem 0.65rem; border: 0; border-top: 1px solid var(--line); background: rgba(231, 239, 233, 0.68); box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-submenu::before { display: none; }
  .nav-group:hover .nav-submenu, .nav-group:focus-within .nav-submenu { display: none; }
  .nav-group.is-submenu-open .nav-submenu { display: grid; }
  .nav-submenu a { padding: 0.75rem 0.6rem; }
  .nav-cta { margin-left: 0; }
  .wrap { width: min(calc(100% - 10vw), var(--max)); }
  .hero { padding-top: 3.1rem; }
  .hero h1, .page-hero h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .research-lens ol, .pathline, .direction-grid { grid-template-columns: 1fr; }
  .research-lens li { min-height: 6.4rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .research-lens li:last-child { border-bottom: 0; }
  .pathline > div, .direction-grid p { min-height: 10rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .pathline > div:last-child, .direction-grid p:last-child { border-bottom: 0; }
  .pathline strong { margin-top: 2.2rem; }
  .project-card, .project-card-featured { grid-column: 1 / -1; }
  .project-card-featured { display: flex; flex-direction: column; }
  .project-image, .project-card-featured .project-image { min-height: 15rem; }
  .project-card-featured .project-image { border-right: 0; border-bottom: 1px solid var(--line); }
  .software-section::before { top: 8rem; right: -18rem; width: 38rem; opacity: 0.2; }
  .software-board { display: block; }
  .software-group { padding: 1.35rem; }
  .software-group-header { min-height: 0; margin-bottom: 1.2rem; }
  .software-group-wide .software-list, .software-group:not(.software-group-wide) .software-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .software-tool { min-height: 10.5rem; grid-template-rows: 4.9rem auto auto; padding-inline: 0.5rem; }
  .software-icon { width: 4.9rem; height: 4.9rem; }
  .software-preview { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); grid-template-columns: 1fr; }
  .software-preview-copy { padding: 1.25rem 3.25rem 1.2rem 1.25rem; }
  .software-carousel { border-top: 1px solid var(--line-strong); border-left: 0; }
  .software-carousel img { height: min(34vh, 17rem); }
  .work-story-media { width: 100%; padding-right: 2.8rem; }
  .photo-frame-inset { width: 9.5rem; }
  .timeline article { grid-template-columns: 1fr; gap: 0.6rem; }
  .contact-link { grid-template-columns: 1fr auto; }
  .contact-link span:first-child { grid-column: 1 / -1; }
  .contact-meta, .site-footer { display: grid; }
  .page-hero { min-height: 0; padding-block: 3.5rem 4.25rem; }
  .case-header, .chapter-header { grid-template-columns: 1fr; gap: 1rem; }
  .case-header h2, .chapter-header h2 { font-size: clamp(2.5rem, 13vw, 4.4rem); }
  .method-strip { padding-bottom: 2.5rem; }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-wide { grid-column: auto; }
  .evidence-figure > a, .evidence-wide > a, .evidence-tall > a { min-height: 15rem; padding: 1rem; }
  .case-close { grid-template-columns: 1fr; }
  .next-page { display: grid; }
  .document-frame { height: 36rem; }
  .document-frame-landscape { height: 24rem; }
  .journey-hero-media { width: min(100%, 38rem); }
  .photo-sequence-three, .presentation-gallery { grid-template-columns: 1fr; }
  .presentation-gallery > figure:last-child { grid-column: auto; }
  .presentation-gallery img { height: auto; min-height: 0; aspect-ratio: auto; object-fit: contain; }
  .tender-gallery { grid-template-columns: 1fr; }
  .tender-gallery .tender-discussion, .tender-gallery .tender-document, .tender-gallery .workflow-frame { grid-column: auto; grid-row: auto; }
  .tender-document img, .workflow-frame img { height: auto; min-height: 0; }
  .tender-document img { aspect-ratio: 3 / 4; object-fit: cover; }
  .tender-discussion-crop { aspect-ratio: 4 / 3; }
  .workflow-frame img { aspect-ratio: 16 / 10; }
  .before-after { grid-template-columns: 1fr 1fr; }
  .life-gallery { columns: 2 12rem; }
}

@media (max-width: 480px) {
  .journey-hero-media { width: 100%; }
  .journey-hero-media .photo-frame { width: 100%; }
  .journey-opening { inset: auto 1.2rem 1.25rem; font-size: 1rem; }
  .before-after { gap: 0.5rem; }
  .life-gallery { columns: 1; }
  .life-gallery .life-wide img { height: auto; aspect-ratio: auto; object-fit: contain; }
  .about-collage { padding-right: 2.5rem; }
  .about-inset-photo { width: 8rem; }
}

@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; }
  .home-page main::before, .home-page .hero::before, .software-section::before { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
