:root {
  --color-bg: #fdfcfb;
  --color-panel: #ffffff;
  --color-text: #24211f;
  --color-muted: #6f6963;
  --color-soft: #f6f2ed;
  --color-line: #e3dcd3;
  --color-accent: #207977;
  --color-copper: #c4622f;
  --color-warm: #8e6248;
  --font-body:
    "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI",
    ui-sans-serif, system-ui, sans-serif;
  --font-display: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --shadow-soft: 0 22px 60px rgba(36, 33, 31, 0.08);
  --shadow-lift: 0 28px 80px rgba(36, 33, 31, 0.12);
  --radius-card: 8px;
  --radius-control: 6px;
  --max-width: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--color-text);
  background: rgba(32, 121, 119, 0.18);
}

body.nav-open {
  overflow: hidden;
}

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

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

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 44px, var(--max-width));
  margin: 0 auto;
  background: rgba(253, 252, 251, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(227, 220, 211, 0.76);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.76);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--color-line);
  background: rgba(253, 252, 251, 0.96);
  box-shadow: 0 12px 34px rgba(36, 33, 31, 0.06);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
}

.brand-name {
  font-size: 19px;
}

.brand-divider,
.brand-alt {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--color-text);
  background: transparent;
  border: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.hero {
  --hero-drift: 0px;
  --hero-glow: 0;
  --hero-portrait-offset: -50px;
  --hero-split: 48.5%;
  --hero-tilt: 0deg;
  --human-face-shift: 0.5%;
  --left-copy-opacity: 1;
  --right-copy-opacity: 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 500px) minmax(0, 0.9fr);
  align-items: center;
  width: min(100% - 44px, 1220px);
  min-height: clamp(560px, calc(60vh - var(--header-height)), 650px);
  margin: 0 auto;
  padding: 0 0 34px;
  pointer-events: auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy-left {
  text-align: right;
  padding-right: 20px;
  opacity: var(--left-copy-opacity);
  transition: opacity 160ms ease;
}

.hero-copy-right {
  text-align: left;
  padding-left: 20px;
  opacity: var(--right-copy-opacity);
  transition: opacity 160ms ease;
}

.hero-support {
  display: inline-grid;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 650;
}

.hero-support::after {
  width: 44px;
  height: 2px;
  content: "";
  background: var(--color-accent);
}

.hero-copy-left .hero-support {
  justify-items: end;
}

.hero-copy-right .hero-support {
  justify-items: start;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero h2 {
  max-width: 380px;
  font-size: clamp(52px, 5.6vw, 82px);
}

.hero-title-link {
  display: inline-block;
  color: inherit;
  pointer-events: auto;
  cursor: pointer;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.hero-title-link:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.hero-title-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 8px;
}

.hero-copy-left h1 {
  font-size: clamp(52px, 5.8vw, 84px);
}

.hero-copy-right h2 {
  max-width: 430px;
  font-size: clamp(50px, 4.8vw, 72px);
}

.hero-note {
  max-width: 280px;
  margin: 18px 0 0 auto;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-copy-right .hero-note {
  margin-right: auto;
  margin-left: 0;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(52vw, 620px);
  min-width: 360px;
  margin: 0;
  pointer-events: none;
  perspective: 1000px;
}

.portrait-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2400 / 1788;
  margin: 0 auto;
  transform: translateX(calc(var(--hero-portrait-offset) + var(--hero-drift))) rotateY(var(--hero-tilt));
  transform-style: preserve-3d;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.portrait-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
}

.portrait-human {
  filter: saturate(0.96) contrast(1.03);
  transform: translateX(var(--human-face-shift));
}

.portrait-machine {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--hero-split)) 0 0);
  filter: saturate(calc(0.96 + var(--hero-glow) * 0.18)) contrast(1.04);
}

.portrait-divider {
  position: absolute;
  top: 6%;
  bottom: 10%;
  left: var(--hero-split);
  z-index: 3;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(36, 33, 31, 0.22), transparent);
  opacity: calc(0.18 + var(--hero-glow) * 0.45);
  transform: translateX(-0.5px);
}

.hero-actions {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  pointer-events: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.button-primary {
  color: #fff;
  background: var(--color-text);
  box-shadow: 0 18px 42px rgba(36, 33, 31, 0.16);
}

.button-primary:hover {
  background: var(--color-accent);
  box-shadow: 0 20px 46px rgba(32, 121, 119, 0.22);
}

.button-secondary {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--color-line);
}

.button-secondary:hover {
  border-color: rgba(32, 121, 119, 0.48);
  box-shadow: 0 14px 36px rgba(36, 33, 31, 0.08);
}

.button-compact {
  min-width: 72px;
  padding: 0 18px;
}

.proof {
  width: min(100% - 44px, 1220px);
  margin: -4px auto 0;
}

.ledger-label {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.ledger-label::before,
.ledger-label::after {
  flex: 1 1 auto;
  height: 1px;
  content: "";
  background: var(--color-line);
}

.ledger-label span {
  white-space: nowrap;
  color: var(--color-accent);
  letter-spacing: 0.12em;
}

.ledger-label span::after {
  margin-left: 14px;
  content: "/";
}

.ledger-label strong {
  white-space: nowrap;
  font-size: 12px;
}

.proof-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  overflow: hidden;
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 54px rgba(36, 33, 31, 0.05);
}

.proof-item {
  position: relative;
  min-height: 112px;
  padding: 22px 22px 20px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 242, 237, 0.34)),
    var(--color-panel);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.proof-item + .proof-item {
  border-left: 1px solid var(--color-line);
}

.proof-item::before {
  position: absolute;
  top: 24px;
  bottom: 22px;
  left: 0;
  width: 2px;
  height: auto;
  content: "";
  background: var(--color-accent);
  opacity: 0.55;
}

.proof-item:hover {
  background: var(--color-panel);
  transform: translateY(-2px);
}

.proof-item strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
}

.proof-item span {
  display: block;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.38;
}

.proof-item small {
  display: block;
  margin-top: 5px;
  color: #9b958f;
  font-size: 11px;
  line-height: 1.28;
}

.section {
  width: min(100% - 44px, var(--max-width));
  margin: 0 auto;
  padding: clamp(88px, 9vw, 126px) 0 0;
}

#projects {
  padding-top: 78px;
}

#projects .section-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

#projects .section-heading::after {
  flex: 1 1 auto;
  height: 1px;
  content: "";
  background: var(--color-line);
}

#projects .section-heading p,
#projects .section-heading h2 {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--color-accent);
  text-transform: uppercase;
}

#projects .section-heading p::after {
  margin-left: 14px;
  content: "/";
}

.intro-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 110px);
}

.section-heading p,
.contact-section > div > p:first-child,
.project-year,
.project-row span {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-body p,
.project-row p,
.timeline-item p,
.system-column li,
.contact-section .english-copy {
  color: var(--color-muted);
}

.section-body p {
  margin: 0 0 22px;
  font-size: 17px;
}

.english-copy {
  color: var(--color-muted);
  font-size: 14px;
}

.project-ledger {
  margin-top: 24px;
  border-top: 1px solid var(--color-line);
}

.project-row {
  display: grid;
  grid-template-columns: 72px minmax(190px, 0.82fr) minmax(280px, 1.4fr) minmax(190px, 0.74fr);
  gap: 28px;
  align-items: start;
  padding: 27px 0;
  border-bottom: 1px solid var(--color-line);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.project-row-feature {
  margin: 0 0 4px;
  padding: 30px 28px;
  background:
    linear-gradient(135deg, rgba(32, 121, 119, 0.08), rgba(184, 93, 50, 0.05)),
    var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
}

.project-row:hover {
  border-color: rgba(36, 122, 120, 0.45);
  transform: translateX(4px);
}

.project-row time {
  color: var(--color-copper);
  font-size: 14px;
  font-weight: 850;
}

.project-row h3,
.timeline-item h3,
.system-column h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.project-row span {
  display: block;
  margin-top: 5px;
}

.project-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.project-row .project-systems {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.55;
}

.project-row-feature h3 {
  font-size: 24px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 154px;
  width: 1px;
  content: "";
  background: var(--color-line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 58px;
  padding: 0 0 38px;
}

.timeline-item::before {
  position: absolute;
  top: 7px;
  left: 148px;
  width: 13px;
  height: 13px;
  content: "";
  background: #fff;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--color-bg);
}

.timeline-item time {
  color: var(--color-warm);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item p {
  max-width: 780px;
  margin: 12px 0 0;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  overflow: hidden;
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 54px rgba(36, 33, 31, 0.05);
}

.system-column {
  padding: 34px 34px 38px;
  background: var(--color-panel);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.system-column:hover {
  background: rgba(246, 242, 237, 0.46);
  transform: translateY(-2px);
}

.system-column + .system-column {
  border-left: 1px solid var(--color-line);
}

.system-column ul {
  display: grid;
  gap: 13px;
  margin: 22px 0 0;
  padding-left: 18px;
}

.contact-section {
  width: min(100% - 44px, var(--max-width));
  margin: 116px auto 0;
  padding: clamp(44px, 6vw, 64px);
  background:
    linear-gradient(135deg, rgba(32, 121, 119, 0.08), rgba(184, 93, 50, 0.05)),
    var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: 0 22px 70px rgba(36, 33, 31, 0.06);
}

.contact-actions {
  display: grid;
  align-content: center;
  gap: 14px;
}

.contact-actions a {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  color: var(--color-text);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 750;
  border-bottom: 1px solid var(--color-line);
  transition:
    color 180ms ease,
    padding-left 180ms ease;
}

.contact-actions a::after {
  content: ">";
  color: var(--color-accent);
  font-size: 0.58em;
  line-height: 1.9;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.contact-actions a:hover {
  color: var(--color-accent);
  padding-left: 10px;
}

.contact-actions a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 44px, var(--max-width));
  margin: 22px auto 0;
  padding: 34px 0 46px;
  color: var(--color-muted);
  font-size: 13px;
}

.site-footer a {
  font-weight: 750;
}

.about-main {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
  padding-top: calc(var(--header-height) + 8px);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 104px);
  padding: clamp(64px, 8vh, 96px) 0 clamp(58px, 8vh, 92px);
  border-bottom: 1px solid var(--color-line);
}

.about-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.about-back::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.about-hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 168px);
  line-height: 0.86;
  letter-spacing: 0;
}

.about-hero p {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.72;
}

.about-hero-media {
  margin: 0;
}

.about-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1836 / 1024;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  filter: saturate(0.96) contrast(1.02);
}

.about-split {
  border-bottom: 1px solid var(--color-line);
}

.about-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.about-duo-item {
  padding: clamp(30px, 5vw, 64px);
}

.about-duo-item + .about-duo-item {
  border-left: 1px solid var(--color-line);
}

.about-duo-item span,
.about-cta > p {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-duo-item h3 {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.95;
}

.about-duo-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.78;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.fact-item {
  display: grid;
  gap: 20px;
  align-content: start;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
}

.fact-item-large {
  grid-column: span 2;
  grid-template-columns: minmax(220px, 0.74fr) minmax(260px, 1fr);
  align-items: center;
}

.fact-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.fact-item-large img {
  aspect-ratio: 736 / 1104;
  object-position: center top;
}

.fact-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1;
}

.fact-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.76;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.skills-chart {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-line);
}

.skills-chart img {
  display: block;
  width: 100%;
}

.skill-bars {
  display: grid;
  gap: 18px;
}

.skill-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding-bottom: 14px;
  color: var(--color-text);
  font-weight: 800;
}

.skill-bar::before,
.skill-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
}

.skill-bar::before {
  width: 100%;
  background: var(--color-line);
}

.skill-bar::after {
  width: var(--value);
  background: var(--color-accent);
}

.skill-bar span {
  min-width: 0;
}

.skill-bar strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.about-cta {
  display: grid;
  justify-items: center;
  gap: 22px;
  margin: clamp(82px, 10vw, 132px) auto 0;
  padding: clamp(52px, 8vw, 90px) 24px;
  text-align: center;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.about-cta h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.2vw, 82px);
  line-height: 1;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

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

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

.hero-copy-left.reveal.is-visible {
  opacity: var(--left-copy-opacity);
}

.hero-copy-right.reveal.is-visible {
  opacity: var(--right-copy-opacity);
}

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

@media (max-width: 980px) {
  .hero {
    --hero-portrait-offset: 0px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 0;
    text-align: center;
  }

  .hero-copy-left,
  .hero-copy-right {
    padding: 0;
    text-align: center;
  }

  .hero-copy-left {
    order: 1;
  }

  .hero-portrait {
    order: 2;
    margin-top: -12px;
  }

  .hero-copy-right {
    order: 3;
    margin-top: -8px;
  }

  .hero-note,
  .hero-copy-right .hero-note {
    margin-right: auto;
    margin-left: auto;
  }

  .hero h1,
  .hero h2,
  .hero-copy-left h1,
  .hero-copy-right h2 {
    font-size: clamp(48px, 14vw, 90px);
  }

  .hero h2 {
    max-width: none;
  }

  .proof-track,
  .systems-grid {
    grid-template-columns: 1fr;
  }

  .about-main {
    width: min(100% - 36px, var(--max-width));
    padding-top: calc(var(--header-height) + 24px);
  }

  .about-hero,
  .about-duo,
  .skills-layout {
    grid-template-columns: 1fr;
  }

  .about-hero {
    gap: 30px;
    min-height: auto;
    padding-bottom: 58px;
  }

  .about-duo-item + .about-duo-item {
    border-top: 1px solid var(--color-line);
    border-left: 0;
  }

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

  .fact-item-large {
    grid-column: 1 / -1;
  }

  .intro-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions {
    position: static;
    order: 4;
    width: auto;
    margin: 24px auto 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .site-header,
  .site-header.is-scrolled {
    width: min(100% - 30px, var(--max-width));
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand-alt,
  .brand-divider {
    display: none;
  }

  .nav-toggle {
    position: relative;
    z-index: 31;
    display: block;
  }

  .nav-open .nav-toggle span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(3) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.98);
    font-size: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

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

  .hero,
  .proof,
  .section,
  .contact-section,
  .site-footer {
    width: min(100% - 30px, var(--max-width));
  }

  .hero {
    padding-top: 36px;
  }

  .hero-portrait {
    width: min(92vw, 370px);
    min-width: 0;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 330px);
  }

  .button {
    width: 100%;
  }

  .proof {
    margin-top: -18px;
  }

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

  .proof-item,
  .project-row,
  .system-column {
    padding: 24px;
  }

  .section {
    padding-top: 82px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 34px;
  }

  .timeline-item::before {
    left: 1px;
  }

  .contact-section {
    margin-top: 82px;
  }

  .contact-actions a {
    font-size: 22px;
    line-height: 1.25;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .about-main {
    width: min(100% - 30px, var(--max-width));
  }

  .about-hero h1 {
    font-size: clamp(68px, 23vw, 104px);
  }

  .about-hero p {
    font-size: 17px;
  }

  .about-back {
    margin-bottom: 24px;
  }

  .about-hero-media img {
    aspect-ratio: 4 / 3;
  }

  .about-duo-item {
    padding: 28px 0;
  }

  .facts-grid,
  .fact-item-large {
    grid-template-columns: 1fr;
  }

  .fact-item-large {
    grid-column: auto;
  }

  .about-cta-actions {
    width: min(100%, 330px);
    flex-direction: column;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-title-link {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

@media (max-width: 460px) {
  .hero {
    width: min(100% - 30px, 1220px);
    padding: 42px 0 44px;
    overflow: hidden;
  }

  .hero h1,
  .hero h2,
  .hero-copy-left h1,
  .hero-copy-right h2 {
    font-size: clamp(42px, 12vw, 50px);
    line-height: 0.98;
  }

  .hero-portrait {
    width: min(100%, 390px);
    min-width: 0;
  }

  .hero-note {
    max-width: min(100%, 300px);
    font-size: 13px;
  }
}

/* About page: follows the supplied Adham-style layout reference. */
.about-page {
  background: var(--color-bg);
}

.about-page .about-main.about-reference {
  width: min(100% - 48px, 1120px);
  padding-top: 18px;
}

.about-intro-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(390px, 0.92fr);
  gap: clamp(56px, 8vw, 122px);
  align-items: center;
  padding: clamp(18px, 2.6vw, 38px) 0 34px;
  border-bottom: 1px solid var(--color-line);
}

.about-intro-copy {
  position: relative;
}

.about-intro-copy::before {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin: 0 0 22px;
  background: var(--color-accent);
}

.about-intro-copy h1 {
  margin: 0 0 30px;
  font-size: clamp(64px, 7.5vw, 112px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--color-text);
  text-wrap: balance;
}

.about-intro-copy p {
  max-width: 430px;
  margin: 0 0 22px;
  color: var(--color-text);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.86;
}

.about-lead {
  font-weight: 700;
  text-wrap: balance;
}

.about-story {
  position: relative;
  padding-left: 18px;
  color: var(--color-muted);
  border-left: 2px solid rgba(36, 122, 120, 0.22);
}

.about-portrait-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0;
  min-height: clamp(360px, 36vw, 500px);
  overflow: visible;
}

.about-portrait-polished::before,
.about-portrait-polished::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
}

.about-portrait-polished::before {
  bottom: 28px;
  z-index: -1;
  width: min(88%, 560px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(36, 122, 120, 0.16), rgba(247, 244, 240, 0.8) 48%, rgba(255, 255, 255, 0) 72%);
  transform: translateX(-50%);
}

.about-portrait-polished::after {
  bottom: 10px;
  z-index: -1;
  width: min(62%, 390px);
  height: 28px;
  border-radius: 50%;
  background: rgba(36, 33, 31, 0.16);
  filter: blur(18px);
  transform: translateX(-50%);
}

.about-portrait-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(78%, 520px);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(36, 33, 31, 0.12));
  transform: translateY(10px) scale(1.08);
  transform-origin: center bottom;
}

.about-gallery {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 28px);
  margin: 0 auto 58px;
  padding: 30px 0 28px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.about-gallery img {
  flex: 0 0 auto;
  width: clamp(132px, 11.5vw, 174px);
  height: clamp(82px, 7.3vw, 108px);
  object-fit: cover;
  background: #fff;
  border: 6px solid #fff;
  border-radius: 10px;
  box-shadow:
    0 8px 18px rgba(36, 33, 31, 0.14),
    0 1px 0 rgba(36, 33, 31, 0.08);
  scroll-snap-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.about-gallery img:hover {
  box-shadow:
    0 14px 30px rgba(36, 33, 31, 0.16),
    0 1px 0 rgba(36, 33, 31, 0.08);
  transform: translateY(-3px);
}

.ability-figure {
  margin: 18px 0 70px;
  padding: clamp(12px, 2vw, 20px);
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(36, 33, 31, 0.06);
}

.ability-figure img {
  display: block;
  width: min(100%, 1050px);
  margin: 0 auto;
}

.ability-figure figcaption {
  margin: 18px 0 0 34px;
  color: #3b3835;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.7;
}

.philosophy-section {
  display: grid;
  grid-template-columns: minmax(190px, 258px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
  width: min(100%, 940px);
  margin: 0 auto 72px;
  padding: 46px clamp(0px, 2vw, 24px) 0;
  border-top: 1px solid var(--color-line);
}

.philosophy-section figure,
.featured-section figure {
  margin: 0;
}

.philosophy-section img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 18px 28px rgba(36, 33, 31, 0.1));
}

.philosophy-section h2 {
  margin: 0 0 28px;
  font-family: var(--font-body);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.philosophy-section p,
.featured-section p {
  margin: 0 0 12px;
  color: var(--color-text);
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.88;
}

.philosophy-section .philosophy-conclusion {
  font-weight: 700;
}

.skill-columns {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  margin: 0 auto 78px;
  padding: 34px clamp(18px, 4vw, 44px) 28px;
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(36, 33, 31, 0.05);
}

.skill-columns h2 {
  grid-column: 1 / -1;
  justify-self: end;
  margin: 0 54px 8px 0;
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.1;
}

.skill-axis {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  align-items: center;
  height: 360px;
  color: #817b76;
  font-size: 13px;
}

.skill-column-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(78px, 1fr));
  align-items: end;
  gap: clamp(10px, 1.8vw, 20px);
  height: 360px;
  padding: 0 8px;
  background:
    linear-gradient(to bottom, transparent calc(25% - 1px), rgba(227, 220, 211, 0.72) 25%, transparent calc(25% + 1px)),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(227, 220, 211, 0.72) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom, transparent calc(75% - 1px), rgba(227, 220, 211, 0.72) 75%, transparent calc(75% + 1px));
}

.skill-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 110px;
  height: var(--level);
  padding: 20px 10px;
  color: #fff;
  text-align: center;
  border-radius: var(--radius-control) var(--radius-control) 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.skill-column:hover {
  filter: saturate(1.08) contrast(1.02);
  transform: translateY(-4px);
}

.skill-column strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1;
}

.skill-column strong span {
  margin-left: 3px;
  font-size: 42%;
}

.skill-column > span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.skill-column-teal {
  background: #75bdb8;
}

.skill-column-rose {
  background: #e8b9ae;
}

.skill-column-gold {
  background: #efbd32;
}

.skill-column-tan {
  background: #c59a5b;
}

.skill-column-red {
  background: #d44f51;
}

.skill-column-gray {
  background: #6b747a;
}

.featured-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(320px, 1fr);
  gap: clamp(36px, 8vw, 92px);
  align-items: center;
  width: min(100%, 960px);
  margin: 0 auto 88px;
  padding: 56px 0 0;
  border-top: 1px solid var(--color-line);
}

.featured-section h2 {
  margin: 0 0 32px;
  font-family: var(--font-body);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
}

.featured-section .featured-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #1f6fb2;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.featured-section .featured-link::after {
  content: ">";
  margin-left: 8px;
  transform: translateX(0);
  transition: transform 180ms ease;
}

.featured-section .featured-link:hover {
  color: #164f84;
}

.featured-section .featured-link:hover::after {
  transform: translateX(4px);
}

.featured-section img {
  display: block;
  width: 100%;
  aspect-ratio: 605 / 454;
  object-fit: cover;
  filter: drop-shadow(0 22px 34px rgba(36, 33, 31, 0.12));
}

/* Empower page: About-style first viewport followed by a document-backed work timeline. */
.empower-page .about-main.about-reference {
  width: min(100% - 48px, 1120px);
}

.empower-intro-section {
  padding-bottom: 58px;
  border-bottom: 1px solid var(--color-line);
}

.empower-portrait-frame {
  min-height: clamp(390px, 38vw, 540px);
}

.empower-portrait-frame::before {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 2%;
  left: 8%;
  z-index: -1;
  height: 26px;
  border-radius: 50%;
  background: rgba(36, 33, 31, 0.16);
  filter: blur(18px);
}

.empower-portrait-frame img {
  width: min(92%, 520px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  filter: saturate(0.98) contrast(1.02);
  transform: none;
}

.empower-timeline-section {
  width: min(100%, 980px);
  margin: 0 auto 86px;
  padding-top: 54px;
}

.empower-timeline-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 42px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}

.empower-timeline-heading p,
.empower-company,
.empower-role {
  margin: 0;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.empower-timeline-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

.empower-timeline-heading span {
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 650;
}

.empower-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.empower-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 24px;
  left: 178px;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, var(--color-line), rgba(32, 121, 119, 0.36), var(--color-line));
}

.empower-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 146px 32px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 62px;
}

.empower-timeline-date {
  padding-top: 6px;
  color: var(--color-warm);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.empower-timeline-dot {
  position: relative;
  z-index: 2;
  width: 15px;
  height: 15px;
  margin-top: 7px;
  justify-self: center;
  background: #fff;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--color-bg);
}

.empower-timeline-card {
  min-width: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--color-line);
}

.empower-timeline-card h3 {
  margin: 10px 0 4px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.empower-role {
  color: var(--color-copper);
  letter-spacing: 0.08em;
}

.empower-timeline-card p:not(.empower-company):not(.empower-role) {
  max-width: 720px;
  margin: 16px 0 0;
  color: #3d3935;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.82;
}

.empower-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.empower-media-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.empower-media-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.empower-media-grid figure {
  min-width: 0;
  margin: 0;
}

.empower-media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
  border: 6px solid #fff;
  border-radius: var(--radius-card);
  box-shadow:
    0 12px 28px rgba(36, 33, 31, 0.13),
    0 1px 0 rgba(36, 33, 31, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.empower-media-grid img:hover {
  box-shadow:
    0 18px 42px rgba(36, 33, 31, 0.16),
    0 1px 0 rgba(36, 33, 31, 0.08);
  transform: translateY(-3px);
}

.empower-media-grid-four figure:nth-child(2) img,
.empower-media-grid-four figure:nth-child(4) img {
  aspect-ratio: 3 / 4;
}

.empower-media-grid figcaption {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .empower-timeline::before {
    left: 146px;
  }

  .empower-timeline-item {
    grid-template-columns: 114px 32px minmax(0, 1fr);
  }

  .empower-media-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .empower-page .about-main.about-reference {
    width: min(100% - 30px, var(--max-width));
  }

  .empower-intro-section {
    padding-bottom: 40px;
  }

  .empower-portrait-frame {
    min-height: 0;
  }

  .empower-portrait-frame img {
    width: min(100%, 390px);
  }

  .empower-timeline-section {
    margin-bottom: 54px;
    padding-top: 38px;
  }

  .empower-timeline-heading {
    margin-bottom: 34px;
  }

  .empower-timeline::before {
    left: 8px;
  }

  .empower-timeline-item {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 48px;
  }

  .empower-timeline-date {
    grid-column: 2;
    padding-top: 0;
  }

  .empower-timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: start;
    margin-top: 5px;
  }

  .empower-timeline-card {
    grid-column: 2;
  }

  .empower-media-grid,
  .empower-media-grid-three,
  .empower-media-grid-four {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .empower-media-grid img {
    border-width: 5px;
  }

  .empower-media-grid figcaption {
    font-size: 11px;
  }
}

@media (max-width: 460px) {
  .empower-media-grid,
  .empower-media-grid-three,
  .empower-media-grid-four {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .about-page .about-main.about-reference {
    width: min(100% - 36px, var(--max-width));
    padding-top: 14px;
  }

  .about-intro-section {
    grid-template-columns: minmax(0, 0.86fr) minmax(330px, 1fr);
    gap: 38px;
  }

  .about-portrait-frame {
    min-height: clamp(330px, 36vw, 430px);
  }

  .skill-column-chart {
    grid-template-columns: repeat(6, minmax(64px, 1fr));
  }
}

@media (max-width: 760px) {
  .about-page .about-main.about-reference {
    width: min(100% - 30px, var(--max-width));
    padding-top: 16px;
  }

  .about-intro-section,
  .philosophy-section,
  .featured-section {
    grid-template-columns: 1fr;
  }

  .about-intro-section {
    gap: 22px;
    padding-top: 22px;
  }

  .about-intro-copy h1 {
    margin-bottom: 24px;
    font-size: clamp(46px, 18vw, 72px);
  }

  .about-intro-copy p,
  .philosophy-section p,
  .featured-section p {
    font-size: 17px;
  }

  .about-portrait-frame {
    min-height: 0;
  }

  .about-portrait-frame img {
    width: min(84vw, 360px);
    transform: none;
  }

  .about-gallery {
    margin-left: 0;
  }

  .ability-figure {
    margin-bottom: 48px;
  }

  .ability-figure figcaption {
    margin-left: 0;
  }

  .philosophy-section {
    padding-top: 34px;
  }

  .philosophy-section figure {
    width: min(70vw, 260px);
  }

  .skill-columns {
    grid-template-columns: 44px minmax(0, 1fr);
    padding-right: 0;
    padding-left: 0;
  }

  .skill-columns h2 {
    justify-self: start;
    margin-right: 0;
    padding-left: 44px;
  }

  .skill-axis,
  .skill-column-chart {
    height: 300px;
  }

  .skill-column-chart {
    grid-template-columns: repeat(6, minmax(40px, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 0 2px;
  }

  .skill-column {
    padding: 12px 3px;
  }

  .skill-column strong {
    font-size: 26px;
  }

  .skill-column > span {
    font-size: 10px;
  }

  .featured-section {
    margin-bottom: 54px;
    padding-top: 42px;
  }
}

@media (max-width: 760px) {
  .hero h1,
  .hero h2,
  .hero-copy-left h1,
  .hero-copy-right h2 {
    max-width: 100%;
    font-size: clamp(44px, 10vw, 54px);
    line-height: 1;
  }

  .hero-title-link {
    max-width: min(100%, 360px);
    white-space: normal;
  }

  .about-intro-copy,
  .about-intro-copy p {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .about-intro-copy {
    width: min(100%, 340px);
    max-width: 340px;
  }

  .about-intro-copy p {
    width: 100%;
    max-width: 100%;
  }

  .about-intro-section,
  .empower-intro-section,
  .philosophy-section,
  .featured-section,
  .about-portrait-frame {
    min-width: 0;
  }

  .about-story {
    padding-left: 14px;
  }
}
