:root {
  --paper: #f1f0eb;
  --paper-deep: #e7e5dd;
  --ink: #171816;
  --muted: #6f716c;
  --line: rgba(23, 24, 22, 0.16);
  --sage: #91c8ad;
  --canopy: #1f3f31;
  --moss: #65733f;
  --clay: #b46f43;
  --water: #547f89;
  --seed: #d0a85c;
  --page-pad: clamp(1.1rem, 3vw, 3rem);
  --content: 1500px;
  --display: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(84, 127, 137, 0.12), transparent 34%),
    linear-gradient(248deg, rgba(101, 115, 63, 0.12), transparent 38%),
    repeating-linear-gradient(0deg, rgba(23, 24, 22, 0.035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(23, 24, 22, 0.026) 0 1px, transparent 1px 44px),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  animation: page-enter 520ms cubic-bezier(.22,.61,.36,1) both;
}

body.menu-open {
  overflow: hidden;
}

body.page-is-leaving {
  overflow: hidden;
}

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

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

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

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

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--paper) 94%, white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.page-transition::before,
.page-transition::after {
  content: "";
  position: absolute;
}

.page-transition::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--sage) 26%, transparent), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(23, 24, 22, 0.045) 0 1px,
      transparent 1px 12vw
    );
  transform: translateX(-12%);
  opacity: 0;
}

.page-transition::after {
  width: min(56vw, 420px);
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
}

.page-transition-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  animation: transition-spin 720ms linear infinite;
}

body.page-is-leaving .page-transition {
  opacity: 1;
  visibility: visible;
}

body.page-is-leaving .page-transition::before {
  animation: transition-wash 620ms cubic-bezier(.22,.61,.36,1) both;
}

body.page-is-leaving .page-transition::after {
  animation: transition-line 620ms cubic-bezier(.22,.61,.36,1) both;
}

body.page-is-leaving main,
body.page-is-leaving .site-header,
body.page-is-leaving .site-footer {
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity 260ms ease, transform 360ms cubic-bezier(.22,.61,.36,1);
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes transition-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes transition-wash {
  from {
    opacity: 0;
    transform: translateX(-12%);
  }

  to {
    opacity: 1;
    transform: translateX(12%);
  }
}

@keyframes transition-line {
  0% {
    transform: scaleX(0);
  }

  55% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(1);
  }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, white 6%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--canopy);
}

.brand-logo {
  width: 34px;
  height: 30px;
  flex: 0 0 auto;
  display: block;
}

.brand-logo svg,
.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-mark {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(90deg, var(--canopy) 0 50%, var(--water) 50% 100%),
    linear-gradient(0deg, var(--clay) 0 50%, var(--sage) 50% 100%);
  background-blend-mode: multiply;
  flex: 0 0 auto;
}

.brand span:last-child {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
  font-size: 0.88rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.4rem;
  height: 1px;
  background: var(--ink);
  transition: right 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.18rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, white 14%);
}

.language-switcher button {
  min-width: 2.15rem;
  min-height: 2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-switcher button:hover,
.language-switcher button:focus-visible,
.language-switcher button.is-active {
  background: var(--canopy);
  color: var(--paper);
}

.menu-button {
  display: none;
  border: 0;
  padding: 0.5rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  min-height: min(860px, calc(100svh - 78px));
  padding: clamp(4rem, 9vw, 9rem) 0 clamp(3rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 8rem);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: calc(var(--page-pad) * -1);
  bottom: clamp(2rem, 5vw, 5rem);
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  border: 1px solid color-mix(in srgb, var(--canopy) 18%, transparent);
  background:
    repeating-radial-gradient(
      ellipse at 35% 56%,
      transparent 0 24px,
      rgba(31, 63, 49, 0.12) 25px 26px,
      transparent 27px 54px
    );
  opacity: 0.55;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  transform: translateY(-clamp(0.8rem, 2vw, 1.6rem));
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1050px;
  margin: 1.25rem 0 0;
  font-family: var(--display);
  color: var(--canopy);
  font-size: clamp(3.8rem, 7.7vw, 7.9rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
}

.hero-aside {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-self: stretch;
  align-content: end;
}

.hero-aside p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.32;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-meta span {
  padding-left: 0.8rem;
  border-left: 2px solid color-mix(in srgb, var(--clay) 54%, transparent);
}

.hero-visual {
  min-height: clamp(320px, 39vw, 570px);
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--canopy) 18%, transparent);
  background: var(--paper-deep);
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-visual::before {
  background:
    linear-gradient(180deg, transparent 58%, rgba(23, 24, 22, 0.48)),
    repeating-linear-gradient(100deg, transparent 0 22px, rgba(241, 240, 235, 0.2) 23px 24px);
}

.hero-visual::after {
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(31, 63, 49, 0.58), transparent);
  mix-blend-mode: multiply;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-visual-card {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  color: var(--paper);
}

.hero-visual-card span {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-visual-card strong {
  max-width: 16rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1;
  text-align: right;
}

.terrain-strip {
  margin-top: calc(clamp(2rem, 5vw, 5rem) * -0.4);
  margin-bottom: clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 78%, white 12%);
}

.terrain-strip div {
  min-height: 118px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--line);
}

.terrain-strip div:first-child {
  border-left: 0;
}

.terrain-strip span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
}

.terrain-strip strong {
  max-width: 12rem;
  color: var(--canopy);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.7vw, 1.8rem);
  font-weight: 400;
  line-height: 1.05;
}

.section {
  padding: clamp(4.5rem, 9vw, 9rem) 0;
  border-top: 1px solid var(--line);
}

.section-deep {
  color: var(--paper);
  background:
    linear-gradient(120deg, rgba(84, 127, 137, 0.22), transparent 42%),
    repeating-linear-gradient(90deg, rgba(241, 240, 235, 0.06) 0 1px, transparent 1px 70px),
    var(--canopy);
}

.section-deep .kicker,
.section-deep p {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.practice-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.practice-section h2 {
  max-width: 760px;
  margin: 0.55rem 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(241, 240, 235, 0.18);
  border: 1px solid rgba(241, 240, 235, 0.18);
}

.practice-grid article {
  min-height: 210px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background:
    linear-gradient(145deg, rgba(241, 240, 235, 0.08), transparent),
    var(--canopy);
}

.practice-grid span {
  display: block;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.practice-grid p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.25;
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
}

.section-heading h2,
.page-intro h1,
.project-hero h1 {
  margin: 0.45rem 0 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.section-heading h2 {
  font-size: clamp(2.7rem, 6vw, 6.3rem);
  line-height: 0.95;
}

.text-link {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.84rem;
}

.project-list {
  display: grid;
  gap: clamp(4rem, 8vw, 8rem);
}

.project-card {
  --project-accent: var(--sage);
  position: relative;
  padding-top: clamp(1rem, 2vw, 1.4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.35fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.project-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(5rem, 12vw, 12rem);
  height: 3px;
  background: var(--project-accent);
}

.project-card:nth-child(even) {
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1.65fr);
}

.project-card:nth-child(even) .project-media {
  order: 2;
}

.project-media {
  position: relative;
  overflow: hidden;
  background: #deddd7;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 58%, rgba(23, 24, 22, 0.22)),
    var(--project-accent);
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.project-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.22,.61,.36,1);
}

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

.project-card:hover .project-media::after {
  opacity: 0.12;
}

.project-copy {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  padding-top: 0.4rem;
}

.project-number {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.project-copy h3 {
  margin: 0.7rem 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.project-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.project-tags,
.work-tile-meta,
.page-intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags {
  margin-top: 1.3rem;
}

.project-tags span,
.work-tile-meta span,
.page-intro-meta span {
  padding: 0.42rem 0.58rem;
  border: 1px solid color-mix(in srgb, var(--canopy) 18%, transparent);
  color: color-mix(in srgb, var(--canopy) 74%, var(--muted));
  background: color-mix(in srgb, var(--paper) 74%, white 12%);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.25rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.project-card:hover .project-arrow {
  background: var(--ink);
  color: var(--paper);
  transform: translate(3px, -3px);
}

.about-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: start;
}

.about-preview h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 7.3rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.about-preview-copy p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.35;
}

.detail-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.detail-grid strong,
.fact-list dt {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.detail-grid span,
.fact-list dd {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-intro {
  padding: clamp(5rem, 10vw, 10rem) 0 clamp(3.5rem, 7vw, 7rem);
}

.page-intro h1 {
  max-width: 1100px;
  font-size: clamp(4.4rem, 11vw, 11rem);
  line-height: 0.82;
}

.page-intro-copy {
  max-width: 650px;
  margin: clamp(2.5rem, 6vw, 5rem) 0 0 auto;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.page-intro-meta {
  max-width: 760px;
  margin: clamp(1.4rem, 3vw, 2.4rem) 0 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 3vw, 3rem);
}

.work-tile {
  position: relative;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.work-tile::before {
  content: "";
  position: absolute;
  inset: -0.9rem -0.9rem auto;
  height: calc(100% + 1.8rem);
  border: 1px solid transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, border-color 220ms ease;
}

.work-tile:hover::before {
  border-color: color-mix(in srgb, var(--canopy) 18%, transparent);
  opacity: 1;
}

.work-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  transition: filter 260ms ease, transform 650ms cubic-bezier(.22,.61,.36,1);
}

.work-tile:hover img {
  filter: saturate(1.08) contrast(1.02);
  transform: translateY(-4px);
}

.work-tile h2 {
  margin: 1.15rem 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.work-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.work-tile-meta {
  margin-top: 1rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.about-title {
  position: sticky;
  top: 115px;
  align-self: start;
}

.about-title h2 {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
}

.about-content {
  display: grid;
  gap: clamp(3.5rem, 7vw, 6rem);
}

.about-content section {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.about-content h3 {
  margin: 0 0 1.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-content > section > p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.method-list div {
  min-height: 190px;
  padding: 1.3rem;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--sage) 16%, transparent), transparent),
    color-mix(in srgb, var(--paper) 86%, white 8%);
}

.method-list strong {
  display: block;
  color: var(--canopy);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.method-list p {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.25;
}

.timeline {
  display: grid;
}

.timeline-item {
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-time {
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline-item h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 0.9rem;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.skill-cloud span {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
}

.cv-actions {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  min-height: 46px;
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.86rem;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.cv-frame {
  width: 100%;
  min-height: 80vh;
  border: 1px solid var(--line);
  background: white;
}

.project-hero {
  --project-accent: var(--sage);
  padding: clamp(5rem, 10vw, 10rem) 0 clamp(2.5rem, 5vw, 5rem);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--project-accent) 12%, transparent), transparent 42%),
    repeating-linear-gradient(90deg, rgba(23, 24, 22, 0.035) 0 1px, transparent 1px 56px);
}

.project-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
}

.project-hero h1 {
  max-width: 1050px;
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.82;
}

.project-summary {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  border-left: 3px solid var(--project-accent);
  padding-left: 1.2rem;
}

.project-hero-media {
  margin-top: clamp(3.5rem, 8vw, 8rem);
  position: relative;
  overflow: hidden;
  background: #deddd7;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.project-hero-media::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15%;
  height: 5px;
  background: var(--project-accent);
  z-index: 1;
}

.project-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 70%, rgba(23, 24, 22, 0.2)),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(241, 240, 235, 0.16) 33px 34px);
  pointer-events: none;
}

.project-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-details {
  padding: clamp(3rem, 7vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(3rem, 9vw, 10rem);
  border-top: 1px solid var(--line);
}

.fact-list {
  margin: 0;
  display: grid;
  gap: 1.25rem;
  align-self: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 78%, white 12%);
}

.fact-list dd {
  margin: 0;
}

.project-narrative {
  max-width: 850px;
  position: relative;
}

.project-narrative h2 {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  color: var(--canopy);
  font-size: clamp(2.7rem, 5vw, 5.6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.project-narrative p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.project-note {
  margin-top: 2.5rem;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.next-project {
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.next-project a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.next-project span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-project strong {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
}

.site-footer {
  padding: clamp(3rem, 7vw, 6rem) 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 3rem;
  align-items: end;
}

.footer-main h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.1rem, 8vw, 8.5rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.footer-contact {
  justify-self: end;
  display: grid;
  gap: 0.6rem;
  text-align: right;
}

.footer-contact a {
  width: fit-content;
  justify-self: end;
  border-bottom: 1px solid currentColor;
}

.footer-bottom {
  margin-top: clamp(4rem, 8vw, 8rem);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  body {
    animation: none;
  }

  .page-transition {
    display: none;
  }

  body.page-is-leaving main,
  body.page-is-leaving .site-header,
  body.page-is-leaving .site-footer {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero,
  .project-hero-top,
  .about-preview,
  .about-layout,
  .project-details,
  .footer-main,
  .practice-section {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
  }

  .hero::before {
    width: 70vw;
    height: 70vw;
  }

  .hero-aside {
    max-width: 650px;
  }

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

  .terrain-strip div:nth-child(odd) {
    border-left: 0;
  }

  .project-card,
  .project-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) .project-media {
    order: 0;
  }

  .project-copy {
    min-height: auto;
    gap: 2rem;
  }

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

  .method-list {
    grid-template-columns: 1fr;
  }

  .about-title {
    position: static;
  }

  .footer-contact {
    justify-self: start;
    text-align: left;
  }

  .footer-contact a {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 68px;
    gap: 0.8rem;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-button {
    display: block;
    position: relative;
    z-index: 102;
  }

  .language-switcher {
    margin-left: auto;
    position: relative;
    z-index: 102;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    padding: 7rem var(--page-pad) 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav a {
    font-family: var(--display);
    font-size: 2.8rem;
    line-height: 1;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading .text-link {
    width: fit-content;
  }

  .hero h1,
  .page-intro h1,
  .project-hero h1 {
    letter-spacing: -0.055em;
  }

  .detail-grid,
  .timeline-item,
  .practice-grid {
    grid-template-columns: 1fr;
  }

  .terrain-strip {
    grid-template-columns: 1fr;
  }

  .terrain-strip div {
    min-height: 96px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .terrain-strip div:first-child {
    border-top: 0;
  }

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

  .hero-visual-card strong {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cv-frame {
    min-height: 65vh;
  }
}


/* Security hardening: accent values moved out of inline style attributes. */
.accent-chronoscape { --project-accent: #c79138; }
.accent-the-cove { --project-accent: #78999a; }
.accent-co-couros { --project-accent: #697d3d; }
.accent-electrification { --project-accent: #d49aa6; }
.about-link-spacing { margin-top: 2.5rem; }
