:root {
  --ink: #151716;
  --muted: #646a66;
  --paper: #f7f4ee;
  --paper-strong: #fffaf0;
  --line: rgba(21, 23, 22, 0.12);
  --forest: #173d35;
  --forest-2: #0f2925;
  --jade: #00a676;
  --coral: #f26d5b;
  --gold: #c9962f;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(14, 29, 25, 0.14);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(0, 166, 118, 0.09), transparent 32rem),
    linear-gradient(250deg, rgba(242, 109, 91, 0.08), transparent 28rem),
    var(--paper);
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  background: rgba(15, 41, 37, 0.08);
}

a {
  color: inherit;
}

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

.button:focus-visible,
.nav-menu a:focus-visible,
.nav-toggle:focus-visible,
.text-link:focus-visible,
.personal-project-card a:focus-visible,
.article-card:focus-visible,
.social-links a:focus-visible {
  border-radius: var(--radius);
  box-shadow: 0 0 0 4px rgba(0, 166, 118, 0.18);
}

.skip-link,
.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:focus {
  z-index: 100;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  clip: auto;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
  outline-color: var(--paper-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(247, 244, 238, 0.8);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(247, 244, 238, 0.94);
}

.nav,
.section-shell,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-strong);
  font-size: 0.8rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-menu a {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-menu a:hover {
  color: var(--ink);
  background: rgba(23, 61, 53, 0.08);
}

.nav-menu .nav-cta {
  color: var(--white);
  background: var(--forest);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-strong);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section-shell {
  padding: 96px 0;
  scroll-margin-top: 84px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  min-height: calc(100svh - 76px);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 5.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-lede,
.rich-copy p,
.contact-panel p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.72;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 2rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 15px 32px rgba(23, 61, 53, 0.22);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

.hero-tech {
  display: flex;
  flex-wrap: wrap;
  max-width: 620px;
  gap: 0.38rem;
  margin: -0.75rem 0 1.1rem;
}

.hero-tech span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.56rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.1;
  box-shadow: 0 12px 32px rgba(14, 29, 25, 0.06);
}

.hero-tech img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  gap: 0.8rem;
}

.trust-row div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.46);
}

.trust-row strong {
  display: block;
  color: var(--forest);
  font-size: 1.65rem;
  line-height: 1.1;
}

.trust-row span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: 44px 12px 70px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 48% 52% 46% 54%;
  background:
    linear-gradient(150deg, rgba(23, 61, 53, 0.94), rgba(15, 41, 37, 0.88)),
    var(--forest);
  box-shadow: var(--shadow);
}

.portrait-card {
  position: absolute;
  inset: 24px 46px 24px 24px;
  overflow: hidden;
  border: 10px solid rgba(255, 250, 240, 0.75);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.signal-card {
  position: absolute;
  width: min(260px, 54%);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 18px 50px rgba(15, 41, 37, 0.18);
}

.signal-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.signal-card strong {
  color: var(--forest);
}

.signal-card-top {
  top: 1.2rem;
  right: -0.35rem;
}

.signal-card-bottom {
  bottom: 3.2rem;
  left: -0.35rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.rich-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.split-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.text-link {
  color: var(--forest);
  font-weight: 850;
  line-height: 1.35;
  text-decoration-color: var(--jade);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.service-grid,
.article-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.featured-project,
.article-card,
.capability-board,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.68);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.service-card {
  min-height: 245px;
  padding: 1.3rem;
  overflow-wrap: anywhere;
}

.service-card .icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1.6rem;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card p,
.project-card p,
.article-card span,
.capability-column li {
  color: var(--muted);
  line-height: 1.58;
}

.capability-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1rem;
  gap: 1px;
  background:
    linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat,
    rgba(255, 250, 240, 0.66);
}

.capability-column {
  padding: 1rem;
}

.capability-column ul {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.capability-column li::before {
  color: var(--jade);
  content: "/";
  font-weight: 900;
  margin-right: 0.45rem;
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tech-chip,
.project-tech span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  font-weight: 850;
}

.tech-chip {
  min-height: 52px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.72);
  color: var(--forest);
  line-height: 1.2;
}

.tech-chip img,
.project-tech img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.3rem, 4vw, 3rem);
  margin-bottom: 1rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 61, 53, 0.96), rgba(15, 41, 37, 0.94)),
    var(--forest);
  color: var(--white);
}

.featured-project + .featured-project {
  margin-top: 1rem;
}

.featured-project-alt {
  background:
    linear-gradient(135deg, rgba(21, 23, 22, 0.96), rgba(23, 61, 53, 0.9)),
    var(--ink);
}

.featured-project-voice {
  background:
    linear-gradient(135deg, rgba(15, 41, 37, 0.96), rgba(31, 63, 82, 0.92)),
    var(--forest-2);
}

.featured-project h3 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
}

.featured-project p:not(.project-meta) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.3rem 0 0;
}

.project-tech span {
  min-height: 44px;
  padding: 0.58rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  color: var(--paper-strong);
  font-size: 0.88rem;
}

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

.proof-grid span {
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.system-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 250, 240, 0.12), rgba(255, 250, 240, 0.04)),
    rgba(255, 255, 255, 0.05);
}

.system-map span {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.1);
  color: var(--paper-strong);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.system-map span:first-child {
  grid-column: 1 / -1;
  min-height: 120px;
  background: var(--paper-strong);
  color: var(--forest);
  font-size: 1.35rem;
}

.project-meta {
  margin-bottom: 0.6rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.featured-project .project-meta {
  color: var(--gold);
}

.project-group {
  margin-top: 2rem;
}

.project-group + .project-group {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.project-group-heading {
  max-width: 820px;
  margin-bottom: 1.25rem;
}

.project-group-heading h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.project-group-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

.personal-project-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.personal-project-card-large {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: 440px;
}

.personal-project-media {
  position: relative;
  overflow: hidden;
  background: var(--forest-2);
}

.personal-project-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 240ms ease;
}

.personal-project-card-large .personal-project-media img {
  height: 100%;
  aspect-ratio: auto;
}

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

.personal-project-media span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(15, 41, 37, 0.86);
  color: var(--paper-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.personal-project-body {
  display: grid;
  align-content: start;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.personal-project-card-large .personal-project-body {
  align-content: center;
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.personal-project-body p:not(.project-meta) {
  color: var(--muted);
  line-height: 1.6;
}

.project-evidence {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0.35rem 0 1rem;
  list-style: none;
}

.project-evidence li {
  color: var(--muted);
  line-height: 1.45;
}

.project-evidence li::before {
  color: var(--jade);
  content: "/";
  font-weight: 900;
  margin-right: 0.45rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.skill-tags span {
  padding: 0.48rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 850;
}

.personal-project-card a,
.article-card {
  color: var(--forest);
  font-weight: 850;
  text-decoration: none;
}

.personal-project-card a {
  width: fit-content;
  text-decoration: underline;
  text-decoration-color: var(--jade);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

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

.article-card {
  display: grid;
  overflow: hidden;
  align-content: start;
  border-color: rgba(21, 23, 22, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(14, 29, 25, 0.12);
}

.article-media {
  position: relative;
  overflow: hidden;
  background: var(--forest-2);
}

.article-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 240ms ease;
}

.article-card:hover .article-media img {
  transform: scale(1.03);
}

.article-media span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(15, 41, 37, 0.88);
  color: var(--paper-strong);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-body {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
}

.article-body strong {
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.15;
}

.article-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
}

.article-body span {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: var(--jade);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding-top: 72px;
}

.project-detail-copy .text-link {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.project-detail-tech {
  margin-top: 0;
  margin-bottom: 0;
}

.project-detail-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--forest-2);
  box-shadow: var(--shadow);
}

.project-detail-visual img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top;
}

.project-detail-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0;
}

.detail-stat,
.detail-feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.detail-stat {
  padding: 1.2rem;
}

.detail-stat strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--forest);
  font-size: 1.25rem;
}

.detail-stat span {
  color: var(--muted);
  line-height: 1.55;
}

.detail-features {
  padding-top: 40px;
}

.detail-feature {
  overflow: hidden;
}

.detail-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: var(--forest-2);
}

.detail-feature div {
  padding: 1.25rem;
}

.detail-feature p:not(.project-meta) {
  color: var(--muted);
  line-height: 1.62;
}

.detail-feature-wide {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  margin-bottom: 1rem;
}

.detail-feature-wide img {
  height: 100%;
  aspect-ratio: auto;
}

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

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background:
    linear-gradient(135deg, rgba(23, 61, 53, 0.97), rgba(15, 41, 37, 0.96)),
    var(--forest);
  color: var(--white);
}

.contact-panel h2 {
  max-width: 850px;
}

.contact-panel p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-panel .button-primary {
  background: var(--paper-strong);
  color: var(--forest);
  box-shadow: none;
}

.contact-panel .button-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  font-weight: 800;
  text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--forest);
}

@media (min-width: 1500px) {
  .hero-tech {
    max-width: 600px;
  }

  .hero-tech span {
    min-height: 32px;
    padding: 0.34rem 0.52rem;
    font-size: 0.74rem;
  }

  .hero-tech img {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 76px 20px auto;
    display: grid;
    gap: 0.2rem;
    max-height: calc(100svh - 96px);
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    border-radius: var(--radius);
  }

  .hero,
  .section-grid,
  .featured-project,
  .project-detail-hero,
  .detail-feature-wide {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .split-heading {
    align-items: flex-start;
  }

  .hero-visual {
    min-height: 520px;
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }

  .service-grid,
  .capability-board,
  .personal-projects,
  .article-strip,
  .proof-grid,
  .project-detail-overview,
  .detail-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-detail-hero {
    min-height: auto;
    padding-top: 52px;
  }

  .detail-feature-wide img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .personal-project-card-large {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .personal-project-card-large .personal-project-media img {
    height: auto;
    aspect-ratio: 16 / 8.5;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    margin-bottom: 0;
  }
}

@media (max-width: 680px) {
  .nav,
  .section-shell,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .section-shell {
    padding: 68px 0;
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(2.45rem, 11.6vw, 3.45rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.05;
  }

  h3 {
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .contact-actions,
  .button {
    width: 100%;
  }

  .hero-tech {
    gap: 0.45rem;
    margin: -0.55rem 0 0.9rem;
  }

  .hero-tech span {
    min-height: 36px;
    padding: 0.42rem 0.56rem;
    font-size: 0.78rem;
  }

  .hero-tech img {
    width: 20px;
    height: 20px;
  }

  .trust-row,
  .service-grid,
  .capability-board,
  .personal-projects,
  .article-strip,
  .proof-grid,
  .system-map,
  .project-detail-overview,
  .detail-feature-grid {
    grid-template-columns: 1fr;
  }

  .system-map span:first-child {
    grid-column: auto;
  }

  .personal-project-card-large {
    grid-column: auto;
  }

  .hero-visual {
    min-height: 390px;
  }

  .portrait-card {
    inset: 14px 24px 28px;
    border-width: 7px;
  }

  .signal-card {
    width: min(245px, 70%);
  }

  .signal-card-top {
    top: -0.8rem;
    right: 0;
  }

  .signal-card-bottom {
    bottom: -0.4rem;
    left: 0;
  }

  .split-heading {
    display: block;
  }

  .text-link {
    display: inline-block;
    margin-top: 0.5rem;
  }

  .footer-inner {
    display: grid;
  }

  .social-links {
    gap: 0.8rem;
  }
}

@media (max-width: 420px) {
  .nav-menu {
    inset-inline: 14px;
  }

  .hero-tech,
  .tech-strip,
  .project-tech,
  .skill-tags {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-tech span,
  .tech-chip,
  .project-tech span,
  .skill-tags span {
    width: 100%;
  }

  .signal-card {
    width: min(230px, 76%);
    padding: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
