:root {
  color-scheme: dark;
  --background: #071712;
  --background-soft: #0a1d16;
  --surface: #0d241b;
  --surface-strong: #123024;
  --text: #f3f7f2;
  --muted: #adc0b6;
  --signal: #54c38a;
  --signal-ink: #032117;
  --route: #9eb8a5;
  --secure: #d7b66c;
  --line: rgba(180, 214, 194, 0.18);
  --line-strong: rgba(180, 214, 194, 0.36);
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --shell: min(1760px, calc(100vw - 80px));
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  scrollbar-color: var(--signal) var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 79% 14%, rgba(84, 195, 138, 0.08), transparent 30rem),
    radial-gradient(circle at 18% 70%, rgba(158, 184, 165, 0.055), transparent 32rem),
    var(--background);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(84, 195, 138, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 195, 138, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

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

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

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--background);
  background: var(--text);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

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

.section-shell,
.site-header__inner {
  width: var(--shell);
  margin-inline: auto;
}

.header-sentinel {
  position: absolute;
  top: 18px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 23, 18, 0.92);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(125%);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  color: var(--text);
  font: 750 0.95rem/1 var(--mono);
  letter-spacing: -0.08em;
  text-decoration: none;
}

.brand span {
  color: var(--signal);
  font-weight: 500;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a,
.header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font: 650 0.75rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.primary-nav a {
  position: relative;
  padding-inline: 14px;
  color: var(--muted);
  transition: color 160ms ease, background-color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="true"] {
  color: var(--text);
  background: rgba(84, 195, 138, 0.08);
}

.primary-nav a[aria-current="true"]::after {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
  transform: translateX(-50%);
}

.header-cta {
  justify-self: end;
  gap: 9px;
  padding-inline: 16px;
  color: var(--signal-ink);
  background: var(--signal);
  transition: background-color 160ms ease;
}

.header-cta:hover {
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(490px, 0.9fr) minmax(560px, 1.1fr);
  align-items: center;
  gap: clamp(36px, 4vw, 84px);
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(64px, 8vh, 112px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__role,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font: 650 0.76rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__role {
  margin: 24px 0 0;
}

.section-kicker {
  margin: 0 0 24px;
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5.2rem, 8.6vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.9;
}

.title-line {
  display: block;
  overflow: visible;
  padding: 0.04em 0.09em 0.22em 0;
}

.title-line:first-child {
  margin-bottom: -0.12em;
}

.js .title-line {
  overflow: hidden;
}

body.title-settled .title-line {
  overflow: visible;
}

.title-line > span {
  display: block;
}

.js .title-line > span {
  transform: translateY(112%);
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.title-line:nth-child(2) > span {
  transition-delay: 90ms;
}

body.is-ready .title-line > span {
  transform: translateY(0);
}

.title-line--accent {
  color: var(--signal);
}

.cipher-letter {
  display: inline-block;
  transition: color 120ms ease, opacity 120ms ease, transform 160ms ease;
}

.cipher-letter.is-ciphered {
  color: var(--secure);
  opacity: 0.9;
  transform: translateY(-0.04em);
}

.hero__intro {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.4vw, 1.3rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-inline: 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: 700 0.76rem/1 var(--mono);
  letter-spacing: 0.035em;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

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

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

.button--secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}

.button--secondary:hover {
  background: var(--surface);
  border-color: var(--signal);
}

.portrait {
  width: min(100%, 590px);
  margin: 0;
  justify-self: end;
  perspective: 1100px;
}

.portrait__frame {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shadow-x: 0px;
  --shadow-y: 24px;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow:
    var(--shadow-x) var(--shadow-y) 70px rgba(0, 66, 37, 0.24),
    0 14px 32px rgba(0, 0, 0, 0.2);
  isolation: isolate;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-origin: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.portrait__frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 63%, rgba(7, 23, 18, 0.28)),
    linear-gradient(90deg, rgba(84, 195, 138, 0.08), transparent 22%);
  content: "";
  pointer-events: none;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

.js .portrait__frame {
  clip-path: inset(0 0 100% 0 round 18px);
  transition:
    clip-path 920ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 160ms ease-out,
    box-shadow 180ms ease-out;
}

.js .portrait.is-tilting .portrait__frame {
  transition:
    clip-path 920ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 90ms linear,
    box-shadow 120ms ease-out;
}

.js .portrait img {
  transform: scale(1.055);
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .portrait.is-visible .portrait__frame {
  clip-path: inset(0 0 0 0 round 18px);
}

.js .portrait.is-visible img {
  transform: scale(1);
}

.portrait__scan {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  box-shadow: 0 0 18px rgba(84, 195, 138, 0.55);
  pointer-events: none;
}

.js .portrait.is-visible .portrait__scan {
  animation: portrait-scan 1100ms 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portrait__corner {
  position: absolute;
  z-index: 4;
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.portrait__corner--top {
  top: 14px;
  right: 14px;
  border-top: 2px solid var(--signal);
  border-right: 2px solid var(--signal);
}

.portrait__corner--bottom {
  bottom: 14px;
  left: 14px;
  border-bottom: 2px solid var(--signal);
  border-left: 2px solid var(--signal);
}

.profile,
.journey,
.projects,
.connect {
  padding-block: clamp(100px, 12vw, 180px);
  border-top: 1px solid var(--line);
}

.profile {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 3vw, 56px);
}

.profile > .section-heading {
  grid-column: 1 / 7;
}

.profile__bio {
  position: relative;
  grid-column: 8 / 13;
  padding-left: clamp(24px, 3vw, 54px);
}

.profile__bio::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: linear-gradient(var(--signal), transparent);
  content: "";
}

.section-heading h2,
.connect h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.7rem, 4vw, 4.8rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.profile__lead {
  margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(1.75rem, 2.7vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.profile__bio > p:not(.profile__lead) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.15vw, 1.18rem);
  line-height: 1.75;
}

.section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
}

.section-heading--row > p {
  max-width: 340px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1rem;
}

.timeline {
  position: relative;
  margin-top: clamp(60px, 7vw, 96px);
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(120px, 0.4fr) minmax(0, 1.5fr) minmax(150px, 0.38fr);
  align-items: start;
  gap: clamp(20px, 3vw, 56px);
  min-height: 210px;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
}

.timeline-entry:last-child {
  min-height: 0;
  padding-bottom: 0;
}

.timeline-entry__marker {
  display: grid;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  place-items: center;
  border: 1px solid var(--signal);
  border-radius: 50%;
}

.timeline-entry__marker span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.timeline-entry__type,
.timeline-entry__date {
  color: var(--muted);
  font: 650 0.73rem/1.5 var(--mono);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.timeline-entry__detail h3 {
  margin: -7px 0 5px;
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.timeline-entry__detail p {
  margin: 0;
  color: var(--muted);
}

.timeline-entry__detail .timeline-entry__summary {
  max-width: 780px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.timeline-entry__detail .timeline-entry__summary--first {
  margin-top: 6px;
}

.timeline-entry__date {
  justify-self: end;
  color: var(--text);
  text-align: right;
}

.projects > .section-heading {
  max-width: 900px;
}

.projects > .section-heading > p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-index {
  margin-top: clamp(58px, 7vw, 96px);
}

.project-index-entry {
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(44px, 7vw, 128px);
  padding: clamp(42px, 6vw, 82px) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.project-index-entry:last-child {
  border-bottom: 1px solid var(--line);
}

.project-index-entry--reverse {
  grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.15fr);
}

.project-index-entry--reverse .project-index-entry__visual {
  grid-column: 2;
}

.project-index-entry--reverse .project-index-entry__copy {
  grid-row: 1;
  grid-column: 1;
}

.project-index-entry__visual {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 24px 66px rgba(0, 66, 37, 0.2);
}

.project-index-entry__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-index-entry:hover .project-index-entry__visual img {
  transform: scale(1.025);
}

.project-index-entry__copy > p {
  margin: 0 0 18px;
  color: var(--muted);
  font: 650 0.72rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-index-entry__copy h3 {
  margin: 0;
  font-size: clamp(2.5rem, 4.6vw, 5.4rem);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 0.98;
  transition: color 180ms ease;
}

.project-index-entry:hover .project-index-entry__copy h3 {
  color: var(--signal);
}

.project-index-entry__copy > span {
  display: block;
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.project-index-entry__copy small {
  display: block;
  margin-top: 24px;
  color: var(--text);
  font: 650 0.7rem/1.5 var(--mono);
  letter-spacing: 0.04em;
}

.project-index-entry__copy b {
  display: inline-block;
  margin-top: 32px;
  color: var(--signal);
  font: 700 0.76rem/1 var(--mono);
  letter-spacing: 0.035em;
  transition: transform 160ms ease;
}

.project-index-entry:hover .project-index-entry__copy b {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .project-index-entry,
  .project-index-entry--reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .project-index-entry--reverse .project-index-entry__visual,
  .project-index-entry--reverse .project-index-entry__copy {
    grid-row: auto;
    grid-column: 1;
  }
}

.connect {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
  align-items: end;
  gap: clamp(60px, 8vw, 140px);
}

.connect__intro > p:last-child {
  max-width: 470px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.connect__links {
  border-bottom: 1px solid var(--line);
}

.contact-link {
  display: grid;
  grid-template-columns: minmax(90px, 0.28fr) 1fr 44px;
  align-items: center;
  gap: 18px;
  min-height: 102px;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, padding 160ms ease;
}

.contact-link:hover {
  padding-right: 0;
  padding-left: 12px;
  border-color: var(--signal);
}

.contact-link small {
  color: var(--muted);
  font: 650 0.72rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-link > span {
  overflow-wrap: anywhere;
  font-size: clamp(0.96rem, 1.25vw, 1.16rem);
  font-weight: 600;
}

.contact-link b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--signal-ink);
  background: var(--signal);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 160ms ease;
}

.contact-link:hover b {
  background: var(--text);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 132px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font: 600 0.7rem/1.4 var(--mono);
  letter-spacing: 0.045em;
}

.site-footer p:last-child {
  justify-self: end;
}

.site-footer__details {
  text-align: center;
}

.site-footer__details p {
  margin: 0;
}

.site-footer__details .site-footer__disclaimer {
  margin-top: 5px;
  color: color-mix(in srgb, var(--muted) 76%, transparent);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.project-page .primary-nav a[aria-current="true"]::after {
  display: none;
}

.project-page .primary-nav a[aria-current="true"] {
  box-shadow: inset 0 -2px var(--signal);
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(470px, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: clamp(44px, 6vw, 112px);
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(56px, 8vh, 104px);
}

.project-hero__copy {
  position: relative;
  z-index: 2;
}

.project-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font: 650 0.74rem/1 var(--mono);
  letter-spacing: 0.045em;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.project-back:hover {
  color: var(--text);
  transform: translateX(-3px);
}

.project-title {
  margin: 0;
  font-size: clamp(4.8rem, 8.2vw, 9.4rem);
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.9;
}

.project-title span {
  color: var(--signal);
}

.project-summary {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.4vw, 1.3rem);
  line-height: 1.6;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.project-visual {
  position: relative;
  width: min(100%, 720px);
  margin: 0;
  padding: 0 13% 13% 0;
  justify-self: end;
}

.project-visual__primary,
.project-visual__secondary {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 28px 72px rgba(0, 66, 37, 0.26);
}

.project-visual__primary {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
}

.project-visual__primary::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(84, 195, 138, 0.06), transparent 42%);
  content: "";
  pointer-events: none;
}

.project-visual__secondary {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 4 / 3;
  box-shadow: -18px -18px 52px rgba(7, 23, 18, 0.42);
}

.project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-visual figcaption {
  margin-top: 14px;
  color: var(--muted);
  font: 600 0.68rem/1.5 var(--mono);
  letter-spacing: 0.035em;
}

.project-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin: clamp(28px, 4vw, 60px) 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.project-facts > div {
  min-width: 0;
  padding: 0 clamp(18px, 2.6vw, 42px);
  border-left: 1px solid var(--line);
}

.project-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.project-facts dt,
.project-facts dd {
  margin: 0;
}

.project-facts dt {
  color: var(--muted);
  font: 650 0.68rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-facts dd {
  margin-top: 8px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.project-context,
.project-system,
.project-results,
.project-source {
  padding-block: clamp(96px, 11vw, 168px);
  border-top: 1px solid var(--line);
}

.project-context {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(28px, 4vw, 72px);
}

.project-context .project-section-heading {
  grid-column: 1 / 7;
}

.project-prose {
  position: relative;
  grid-column: 8 / 13;
  padding-left: clamp(24px, 3vw, 52px);
}

.project-prose::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: linear-gradient(var(--signal), transparent);
  content: "";
}

.project-section-heading h2,
.project-source h2 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.7rem, 4.2vw, 4.9rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.project-section-heading > p:not(.section-kicker),
.project-source__copy > p {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-prose p {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.12vw, 1.16rem);
  line-height: 1.75;
}

.project-prose .project-prose__lead {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.5rem, 2.25vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.system-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin: clamp(56px, 7vw, 92px) 0 0;
  padding: 0;
  list-style: none;
}

.system-flow li {
  position: relative;
  padding: 26px 0 0;
  border-top: 1px solid var(--line-strong);
}

.system-flow li::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--signal);
  content: "";
}

.system-flow span {
  display: block;
  color: var(--muted);
  font: 650 0.7rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.system-flow strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.system-flow p,
.project-build p,
.project-findings p {
  margin: 14px 0 0;
  color: var(--muted);
}

.project-build {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 104px);
  margin-top: clamp(72px, 9vw, 128px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.project-build > div + div {
  padding-left: clamp(36px, 5vw, 88px);
  border-left: 1px solid var(--line);
}

.project-build h3,
.project-findings h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.project-build ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.project-build li::marker {
  color: var(--signal);
}

.result-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.result-strip > div {
  padding: 30px clamp(24px, 3.5vw, 56px) 0;
  border-left: 1px solid var(--line);
}

.result-strip > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.result-strip dt,
.result-strip dd {
  margin: 0;
}

.result-strip dt {
  color: var(--signal);
  font-size: clamp(2.7rem, 5.2vw, 6.2rem);
  font-weight: 780;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.result-strip dd {
  max-width: 280px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-findings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 7vw, 120px);
  margin-top: clamp(72px, 9vw, 128px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.project-findings article {
  max-width: 650px;
}

.project-source {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.project-source__copy {
  max-width: 760px;
}

.project-source > .button {
  flex: 0 0 auto;
}

.athan-hero-visual {
  position: relative;
  width: min(100%, 760px);
  margin: 0;
  padding: 38px 0 0 38px;
  justify-self: end;
}

.athan-hero-visual__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 118 / 78;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 66, 37, 0.25);
}

.athan-hero-visual__screen::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(84, 195, 138, 0.05), transparent 36%);
  content: "";
  pointer-events: none;
}

.athan-hero-visual__screen img,
.athan-language-showcase img,
.athan-settings-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.athan-hero-visual__mark {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: clamp(76px, 8vw, 118px);
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 66, 37, 0.25));
}

.athan-hero-visual figcaption,
.athan-language-showcase figcaption,
.athan-settings-visual figcaption {
  margin-top: 14px;
  color: var(--muted);
  font: 600 0.68rem/1.5 var(--mono);
  letter-spacing: 0.035em;
}

.athan-intro,
.athan-features,
.athan-contribution,
.athan-privacy,
.athan-install {
  padding-block: clamp(96px, 11vw, 168px);
  border-top: 1px solid var(--line);
}

.athan-language-showcase {
  display: grid;
  grid-template-columns: minmax(560px, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(48px, 7vw, 120px);
  margin-top: clamp(64px, 8vw, 112px);
}

.athan-language-showcase figure,
.athan-settings-visual {
  margin: 0;
}

.athan-language-showcase figure,
.athan-settings-visual {
  overflow: hidden;
}

.athan-language-showcase figure img,
.athan-settings-visual img {
  aspect-ratio: 118 / 78;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 28px 72px rgba(0, 66, 37, 0.2);
}

.athan-language-showcase__copy {
  position: relative;
  padding-left: clamp(24px, 3vw, 48px);
}

.athan-language-showcase__copy::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2px;
  background: linear-gradient(var(--signal), transparent);
  content: "";
}

.athan-language-showcase__copy h3,
.athan-feature-groups h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.athan-language-showcase__copy p,
.athan-feature-groups p,
.athan-contribution__detail p,
.athan-local-data p,
.athan-network-note,
.athan-install__copy > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.athan-language-showcase__copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.athan-language-showcase__copy li::marker {
  color: var(--signal);
}

.athan-feature-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(56px, 8vw, 136px);
  margin-top: clamp(56px, 7vw, 96px);
}

.athan-feature-groups article {
  padding: 34px 0 54px;
  border-top: 1px solid var(--line-strong);
}

.athan-feature-groups article:nth-child(even) {
  position: relative;
}

.athan-feature-groups article:nth-child(even)::before {
  position: absolute;
  top: 34px;
  bottom: 54px;
  left: calc(clamp(56px, 8vw, 136px) / -2);
  width: 1px;
  background: var(--line);
  content: "";
}

.athan-settings-visual {
  width: min(88%, 1180px);
  margin: clamp(68px, 9vw, 132px) 0 0 auto;
}

.athan-contribution {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(30px, 4vw, 72px);
}

.athan-contribution .project-section-heading {
  grid-column: 1 / 7;
}

.athan-contribution__detail {
  position: relative;
  grid-column: 8 / 13;
  padding-left: clamp(24px, 3vw, 52px);
}

.athan-contribution__detail::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: linear-gradient(var(--signal), transparent);
  content: "";
}

.athan-contribution__detail .project-prose__lead {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 2.1vw, 2.3rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.17;
}

.athan-stack {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 12px 0;
  margin-top: clamp(28px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.athan-stack span {
  padding: 4px clamp(18px, 2.4vw, 34px);
  color: var(--muted);
  border-left: 1px solid var(--line-strong);
  font: 650 0.72rem/1.5 var(--mono);
  letter-spacing: 0.035em;
}

.athan-stack span:first-child {
  padding-left: 0;
  border-left: 0;
}

.athan-privacy {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  align-items: start;
  gap: clamp(56px, 8vw, 140px);
}

.athan-local-data {
  grid-column: 1;
  max-width: 620px;
  margin-top: 20px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line-strong);
}

.athan-local-data strong {
  color: var(--signal);
  font-size: 1.2rem;
}

.service-list {
  grid-row: 1 / span 2;
  grid-column: 2;
  margin: 0;
}

.service-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-list > div:first-child {
  border-top: 1px solid var(--line-strong);
}

.service-list dt,
.service-list dd {
  margin: 0;
}

.service-list dt {
  color: var(--text);
  font-weight: 700;
}

.service-list dd {
  color: var(--muted);
}

.athan-network-note {
  grid-column: 2;
  margin: 0;
  padding-top: 26px;
  font-size: 0.9rem;
}

.athan-install {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(48px, 8vw, 128px);
}

.athan-install__copy {
  max-width: 820px;
}

.athan-install h2 {
  margin: 0;
  font-size: clamp(2.7rem, 4.2vw, 4.9rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.athan-install__copy .athan-install__verification {
  color: var(--text);
  font-weight: 650;
}

.athan-install__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

@media (max-width: 1120px) {
  .athan-hero-visual {
    width: min(96%, 860px);
    justify-self: center;
  }

  .athan-language-showcase {
    grid-template-columns: 1fr;
  }

  .athan-language-showcase figure {
    width: min(94%, 980px);
  }

  .athan-language-showcase__copy {
    max-width: 760px;
  }

  .athan-contribution .project-section-heading,
  .athan-contribution__detail {
    grid-column: 1 / 13;
  }

  .athan-contribution__detail {
    max-width: 850px;
    margin-top: 18px;
  }

  .athan-privacy {
    grid-template-columns: 1fr;
  }

  .athan-local-data,
  .service-list,
  .athan-network-note {
    grid-row: auto;
    grid-column: 1;
  }

  .service-list {
    margin-top: 22px;
  }

  .athan-install {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .athan-page .primary-nav a {
    padding-inline: 6px;
    font-size: 0.6rem;
  }

  .athan-hero-visual {
    width: 100%;
    padding: 24px 0 0 16px;
  }

  .athan-hero-visual__mark {
    width: 66px;
  }

  .athan-intro,
  .athan-features,
  .athan-contribution,
  .athan-privacy,
  .athan-install {
    padding-block: 92px;
  }

  .athan-language-showcase {
    gap: 46px;
    margin-top: 54px;
  }

  .athan-language-showcase figure,
  .athan-settings-visual {
    width: 100%;
  }

  .athan-language-showcase__copy {
    padding-left: 20px;
  }

  .athan-feature-groups {
    grid-template-columns: 1fr;
    margin-top: 46px;
  }

  .athan-feature-groups article {
    padding: 28px 0 40px;
  }

  .athan-feature-groups article:nth-child(even)::before {
    display: none;
  }

  .athan-settings-visual {
    margin-top: 58px;
  }

  .athan-contribution {
    display: block;
  }

  .athan-contribution__detail {
    margin-top: 42px;
    padding-left: 20px;
  }

  .athan-stack {
    margin-top: 52px;
  }

  .athan-stack span {
    width: 50%;
    padding: 5px 12px;
  }

  .athan-stack span:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .service-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .athan-install__actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .athan-install__actions .button {
    width: 100%;
  }
}

@media (max-width: 1120px) {
  .project-hero {
    grid-template-columns: 1fr;
    gap: 64px;
    min-height: auto;
  }

  .project-hero__copy {
    max-width: 860px;
  }

  .project-visual {
    width: min(90%, 760px);
    justify-self: center;
  }

  .project-context .project-section-heading,
  .project-prose {
    grid-column: 1 / 13;
  }

  .project-prose {
    max-width: 850px;
    margin-top: 22px;
  }
}

@media (max-width: 760px) {
  .project-hero {
    gap: 52px;
    padding-block: 54px 86px;
  }

  .project-back {
    margin-bottom: 20px;
  }

  .project-title {
    font-size: clamp(3.65rem, 17vw, 6.4rem);
  }

  .project-summary {
    margin-top: 24px;
  }

  .project-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .project-visual {
    width: 100%;
    padding: 0;
  }

  .project-visual__secondary {
    display: none;
  }

  .project-visual figcaption {
    margin-top: 12px;
  }

  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 0;
  }

  .project-facts > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .project-context,
  .project-system,
  .project-results,
  .project-source {
    padding-block: 92px;
  }

  .project-context {
    display: block;
  }

  .project-prose {
    margin-top: 42px;
    padding-left: 20px;
  }

  .project-section-heading h2,
  .project-source h2 {
    font-size: clamp(2.25rem, 8vw, 3.2rem);
  }

  .system-flow,
  .project-build,
  .result-strip,
  .project-findings {
    grid-template-columns: 1fr;
  }

  .system-flow {
    gap: 38px;
    margin-top: 48px;
  }

  .project-build,
  .project-findings {
    gap: 42px;
    margin-top: 72px;
  }

  .project-build > div + div {
    padding: 36px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .result-strip {
    gap: 34px;
  }

  .result-strip > div,
  .result-strip > div:first-child {
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .project-findings article + article {
    padding-top: 36px;
    border-top: 1px solid var(--line);
  }

  .project-source {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-source > .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .project-facts {
    grid-template-columns: 1fr;
  }

  .project-facts > div,
  .project-facts > div:nth-child(odd),
  .project-facts > div:first-child {
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-facts > div:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes portrait-scan {
  0% {
    top: 0;
    opacity: 0;
  }

  12%,
  78% {
    opacity: 0.85;
  }

  100% {
    top: calc(100% - 2px);
    opacity: 0;
  }
}

@media (max-width: 1120px) {
  :root {
    --shell: calc(100vw - 48px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 72px;
    min-height: auto;
  }

  .hero__copy {
    max-width: 820px;
  }

  .portrait {
    width: min(84%, 600px);
    justify-self: center;
  }

  .profile > .section-heading,
  .profile__bio {
    grid-column: 1 / 13;
  }

  .profile__bio {
    max-width: 820px;
    margin-top: 24px;
  }

  .connect {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .connect__links {
    width: min(100%, 900px);
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100vw - 32px);
    --header-height: 70px;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }

  .primary-nav {
    justify-self: end;
    gap: 0;
  }

  .primary-nav a {
    padding-inline: 9px;
    font-size: 0.66rem;
  }

  .header-cta {
    display: none;
  }

  .hero {
    gap: 54px;
    padding-block: 64px 88px;
  }

  .hero__title {
    font-size: clamp(4.2rem, 20vw, 7rem);
  }

  .hero__intro {
    margin-top: 24px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .portrait {
    width: min(78%, 440px);
  }

  .profile,
  .journey,
  .projects,
  .connect {
    padding-block: 92px;
  }

  .profile {
    display: block;
  }

  .profile__bio {
    margin-top: 42px;
    padding-left: 20px;
  }

  .section-heading h2,
  .connect h2 {
    font-size: clamp(2.25rem, 8vw, 3.2rem);
  }

  .section-heading--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .timeline {
    margin-top: 48px;
  }

  .timeline-entry {
    grid-template-columns: 20px 1fr;
    gap: 10px 18px;
    min-height: 0;
    padding: 28px 0 42px;
  }

  .timeline-entry__marker {
    grid-row: 1 / span 3;
    width: 16px;
    height: 16px;
  }

  .timeline-entry__type,
  .timeline-entry__detail,
  .timeline-entry__date {
    grid-column: 2;
  }

  .timeline-entry__detail h3 {
    margin-top: 4px;
  }

  .timeline-entry__date {
    justify-self: start;
    margin-top: 10px;
    text-align: left;
  }

  .project-index {
    margin-top: 46px;
  }

  .project-index-entry,
  .project-index-entry--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0 54px;
  }

  .project-index-entry--reverse .project-index-entry__visual,
  .project-index-entry--reverse .project-index-entry__copy {
    grid-row: auto;
    grid-column: 1;
  }

  .project-index-entry__visual {
    aspect-ratio: 4 / 3;
  }

  .project-index-entry__copy h3 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .connect {
    gap: 56px;
  }

  .contact-link {
    grid-template-columns: 1fr 40px;
    gap: 6px 16px;
    min-height: 112px;
    padding-block: 18px;
  }

  .contact-link small {
    grid-column: 1;
  }

  .contact-link > span {
    grid-column: 1;
  }

  .contact-link b {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .site-footer {
    display: flex;
    min-height: 180px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .site-footer p {
    margin: 0;
  }

  .site-footer__details {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .primary-nav a {
    padding-inline: 5px;
    font-size: 0.58rem;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --background: #f1f5f0;
    --background-soft: #e8efe9;
    --surface: #ffffff;
    --surface-strong: #dfe9e1;
    --text: #0b1a14;
    --muted: #445b50;
    --signal: #004225;
    --signal-ink: #ffffff;
    --route: #386641;
    --secure: #8a5b00;
    --line: rgba(11, 26, 20, 0.15);
    --line-strong: rgba(11, 26, 20, 0.32);
  }

  body {
    background:
      radial-gradient(circle at 79% 14%, rgba(0, 66, 37, 0.09), transparent 30rem),
      radial-gradient(circle at 18% 70%, rgba(56, 102, 65, 0.055), transparent 32rem),
      var(--background);
  }

  .site-header.is-scrolled {
    background: rgba(241, 245, 240, 0.92);
  }

}

@media (prefers-contrast: more) {
  :root {
    --muted: #d2e1e8;
    --line: rgba(255, 255, 255, 0.42);
    --line-strong: rgba(255, 255, 255, 0.7);
  }
}

@media (prefers-contrast: more) and (prefers-color-scheme: light) {
  :root {
    --muted: #263942;
    --line: rgba(0, 0, 0, 0.38);
    --line-strong: rgba(0, 0, 0, 0.68);
  }
}

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

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

  .js .title-line > span,
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .portrait__scan {
    display: none;
  }

  .js .portrait__frame {
    clip-path: none;
    transform: none;
  }

  .js .portrait img {
    transform: none;
  }
}
