:root {
  color-scheme: light;
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-soft: #efebe3;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --chip-bg: rgba(255, 255, 255, 0.58);
  --muted-bg: #ebe6dd;
  --ink: #172027;
  --on-ink: #ffffff;
  --muted: #5f686f;
  --line: rgba(23, 32, 39, 0.14);
  --accent: #75624a;
  --accent-strong: #403426;
  --header-bg: rgba(247, 245, 241, 0.88);
  --brand-bg: #050505;
  --contact-bg: #101820;
  --footer-bg: #101820;
  --shadow: 0 24px 70px rgba(23, 32, 39, 0.10);
  --card-shadow: 0 14px 42px rgba(23, 32, 39, 0.06);
  --hero-rule: rgba(117, 98, 74, 0.24);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111417;
    --surface: #181d21;
    --surface-soft: #242a2e;
    --surface-glass: rgba(24, 29, 33, 0.78);
    --chip-bg: rgba(255, 255, 255, 0.06);
    --muted-bg: #15191d;
    --ink: #f4f0e8;
    --on-ink: #111417;
    --muted: #b8c0c6;
    --line: rgba(244, 240, 232, 0.16);
    --accent: #d0b992;
    --accent-strong: #ead7b4;
    --header-bg: rgba(17, 20, 23, 0.88);
    --brand-bg: #050505;
    --contact-bg: #0b0f12;
    --footer-bg: #0b0f12;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --card-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
    --hero-rule: rgba(208, 185, 146, 0.24);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111417;
  --surface: #181d21;
  --surface-soft: #242a2e;
  --surface-glass: rgba(24, 29, 33, 0.78);
  --chip-bg: rgba(255, 255, 255, 0.06);
  --muted-bg: #15191d;
  --ink: #f4f0e8;
  --on-ink: #111417;
  --muted: #b8c0c6;
  --line: rgba(244, 240, 232, 0.16);
  --accent: #d0b992;
  --accent-strong: #ead7b4;
  --header-bg: rgba(17, 20, 23, 0.88);
  --brand-bg: #050505;
  --contact-bg: #0b0f12;
  --footer-bg: #0b0f12;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --card-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
  --hero-rule: rgba(208, 185, 146, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.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: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 56px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 146px;
  height: 58px;
  background: var(--brand-bg);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(9px, 1.1vw, 18px);
  font-size: clamp(12px, 0.88vw, 14px);
  font-weight: 650;
  white-space: nowrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: var(--card-shadow);
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  top: -6px;
}

.menu-toggle-lines::after {
  top: 6px;
}

.site-header.is-menu-open .menu-toggle-lines {
  transform: rotate(45deg);
}

.site-header.is-menu-open .menu-toggle-lines::before {
  transform: translateY(6px) rotate(90deg);
}

.site-header.is-menu-open .menu-toggle-lines::after {
  opacity: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  min-width: max-content;
}

.language {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}

.language button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  padding: 8px 10px;
}

.language button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}

.theme-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 74px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), var(--card-shadow);
  transition: border-color 180ms ease, background 180ms ease;
}

.theme-switch:hover,
.theme-switch:focus {
  border-color: var(--ink);
}

.theme-switch:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent);
  outline-offset: 3px;
}

.theme-switch-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  transition: color 180ms ease;
}

.theme-switch-thumb {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
  transition: transform 220ms ease;
}

.theme-switch[aria-pressed="true"] .theme-switch-thumb {
  transform: translateX(34px);
}

.theme-switch[aria-pressed="false"] .theme-switch-icon:first-child,
.theme-switch[aria-pressed="true"] .theme-switch-icon:last-child {
  color: var(--on-ink);
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 96px);
  scroll-margin-top: 132px;
}

.intro-open {
  overflow: hidden;
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #030405;
  color: #eef3f6;
  overflow: hidden;
  opacity: 1;
  transition: opacity 760ms ease, visibility 760ms ease;
}

.intro-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 11% 14%, rgba(231, 238, 243, 0.18), transparent 18%),
    radial-gradient(circle at 72% 52%, rgba(210, 222, 230, 0.14), transparent 36%),
    linear-gradient(118deg, rgba(5,7,8,0.96) 0%, rgba(18,22,25,0.84) 46%, rgba(46,54,60,0.58) 100%);
  opacity: 0;
  animation: introAmbient 10800ms ease 3000ms forwards;
  pointer-events: none;
}

.intro-gate::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 2vw, 22px);
  border: 1px solid rgba(205, 216, 224, 0.13);
  border-radius: clamp(18px, 2vw, 28px);
  opacity: 0;
  animation: frameReveal 3600ms ease 7600ms forwards;
  pointer-events: none;
}

.intro-gate[hidden] {
  display: none;
}

.intro-gate.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.intro-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.intro-scene::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 8% 12%, rgba(226, 235, 242, 0.22), transparent 24%),
    radial-gradient(ellipse at 62% 42%, rgba(216, 227, 235, 0.12), transparent 40%),
    linear-gradient(90deg, transparent 0%, rgba(210, 222, 230, 0.08) 56%, rgba(230, 238, 243, 0.16) 100%);
  filter: blur(18px);
  opacity: 0;
  animation: distantGlow 8400ms ease 3000ms forwards;
  pointer-events: none;
}

.intro-source {
  position: absolute;
  left: 6%;
  top: 8%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 241, 246, 0.52), rgba(178, 194, 206, 0.15) 42%, transparent 72%);
  filter: blur(10px);
  opacity: 0;
  z-index: 1;
  transform: translate(-50%, -50%);
  animation: introSource 1800ms ease 3200ms forwards;
}

.intro-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  overflow: visible;
  animation: raysLayerReveal 1ms linear 3600ms forwards;
}

.intro-ray {
  fill: none;
  stroke: url(#introBeam);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: url(#introGlow);
  opacity: 0;
}

.ray-one { animation: drawRay 1500ms ease 4200ms forwards; }
.ray-two { animation: drawRay 1500ms ease 5900ms forwards; }
.ray-three { animation: drawRay 1500ms ease 7400ms forwards; }
.ray-four { animation: drawRay 1800ms ease 9000ms forwards; }

.intro-city {
  fill: none;
  stroke: rgba(200, 214, 224, 0.46);
  stroke-width: 2;
  opacity: 0;
  filter: url(#introGlow);
  animation: cityReveal 2600ms ease 10400ms forwards;
}

.intro-mirror {
  position: absolute;
  z-index: 3;
  width: clamp(74px, 8vw, 118px);
  height: clamp(106px, 11vw, 160px);
  border: 1px solid rgba(214, 225, 232, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(130deg, rgba(245,250,252,0.22), rgba(255,255,255,0.035) 45%, rgba(178,196,208,0.10)),
    rgba(20, 25, 28, 0.26);
  box-shadow: inset 0 0 24px rgba(235,245,250,0.06), 0 20px 70px rgba(0,0,0,0.30);
  backdrop-filter: blur(3px);
  opacity: 0;
  transform-origin: 50% 50%;
}

.intro-mirror::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 9px;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.24), transparent 34%),
    repeating-linear-gradient(100deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 8px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.intro-mirror::after {
  content: "";
  position: absolute;
  inset: 35% 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 247, 250, 0.72), rgba(214, 226, 234, 0.18) 52%, transparent 72%);
  filter: blur(5px);
  opacity: 0;
  pointer-events: none;
}

.mirror-one {
  left: 23%;
  top: 21%;
  transform: translate(-50%, -50%) rotate(-18deg) skewY(4deg);
  animation: mirrorReveal 1100ms ease 4400ms forwards;
}

.mirror-one::after {
  animation: mirrorContact 1300ms ease 5000ms forwards;
}

.mirror-two {
  left: 46%;
  top: 34%;
  width: clamp(92px, 10vw, 150px);
  height: clamp(124px, 13vw, 190px);
  transform: translate(-50%, -50%) perspective(420px) rotateY(-24deg) rotateZ(14deg);
  overflow: hidden;
  animation: mirrorReveal 1100ms ease 6100ms forwards;
}

.mirror-two::after {
  animation: mirrorContact 1300ms ease 6900ms forwards;
}

.mirror-three {
  left: 67%;
  top: 22%;
  transform: translate(-50%, -50%) rotate(24deg) skewY(-3deg);
  animation: mirrorReveal 1100ms ease 7800ms forwards;
}

.mirror-three::after {
  animation: mirrorContact 1400ms ease 8600ms forwards;
}

.intro-reflection {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  filter: grayscale(1) blur(0.9px) contrast(0.9) brightness(1.02);
  transform: skewX(-4deg) rotate(-1deg);
  mix-blend-mode: screen;
  animation: reflectionReveal 2200ms ease 7000ms forwards;
}

.mirror-flare {
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 20%, rgba(234, 242, 246, 0.34) 48%, transparent 62%);
  opacity: 0;
  transform: translateX(-34%);
  animation: mirrorFlare 1700ms ease 7200ms forwards;
}

.intro-silhouette {
  position: absolute;
  right: clamp(-40px, 4vw, 80px);
  bottom: 0;
  z-index: 1;
  width: min(36vw, 520px);
  height: min(88vh, 780px);
  object-fit: contain;
  object-position: right bottom;
  opacity: 0;
  filter: grayscale(1) contrast(0.86) brightness(0.92);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.45) 24%, #000 58%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
  mask-composite: intersect;
  animation: silhouetteReveal 2800ms ease 9600ms forwards;
}

.intro-text {
  position: absolute;
  left: clamp(28px, 7vw, 120px);
  bottom: clamp(120px, 17vh, 190px);
  z-index: 5;
  width: min(760px, calc(100vw - 56px));
  opacity: 0;
  animation: textReveal 1700ms ease 11200ms forwards;
}

.intro-text blockquote {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.7vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
  color: #edf3f6;
  text-shadow: 0 2px 24px rgba(198, 214, 224, 0.12);
}

.intro-text p {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(220,228,234,0.72);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.6;
}

.intro-actions {
  position: absolute;
  left: clamp(28px, 7vw, 124px);
  bottom: clamp(28px, 7vh, 92px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(205, 216, 224, 0.18);
  border-radius: 999px;
  background: rgba(13, 17, 20, 0.48);
  backdrop-filter: blur(14px);
  opacity: 0;
  animation: controlsReveal 900ms ease 3200ms forwards;
}

.intro-check {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: rgba(232,237,240,0.76);
  font-size: 14px;
  font-weight: 700;
}

.intro-language {
  position: absolute;
  top: clamp(24px, 6vh, 70px);
  right: clamp(28px, 7vw, 124px);
  z-index: 5;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(205, 216, 224, 0.24);
  border-radius: 999px;
  background: rgba(13, 17, 20, 0.50);
  box-shadow: 0 18px 48px rgba(0,0,0,0.26);
  backdrop-filter: blur(14px);
  opacity: 0;
  animation: controlsReveal 900ms ease 3200ms forwards;
}

.intro-language button {
  min-width: 44px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(220, 228, 234, 0.76);
  cursor: pointer;
  font-weight: 850;
}

.intro-language button[aria-pressed="true"] {
  background: #e1e8ed;
  color: #0d1114;
}

@keyframes introSource {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.62); }
  48% { opacity: 0.32; transform: translate(-50%, -50%) scale(0.92); }
  100% { opacity: 0.72; transform: translate(-50%, -50%) scale(1); }
}

@keyframes drawRay {
  0% { stroke-dashoffset: 1; opacity: 0; }
  34% { stroke-dashoffset: 0.86; opacity: 0.16; }
  68% { stroke-dashoffset: 0.32; opacity: 0.42; }
  100% { stroke-dashoffset: 0; opacity: 0.62; }
}

@keyframes raysLayerReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mirrorReveal {
  from { opacity: 0; filter: blur(7px); }
  to { opacity: 0.86; filter: blur(0); }
}

@keyframes mirrorContact {
  0% { opacity: 0; transform: scale(0.72); }
  42% { opacity: 0.76; transform: scale(1.05); }
  100% { opacity: 0.10; transform: scale(1.34); }
}

@keyframes reflectionReveal {
  from { opacity: 0; transform: skewX(-4deg) rotate(-1deg) translateY(10px); }
  to { opacity: 0.18; transform: skewX(-4deg) rotate(-1deg) translateY(0); }
}

@keyframes mirrorFlare {
  0% { opacity: 0; transform: translateX(-42%); }
  45% { opacity: 0.34; }
  100% { opacity: 0.06; transform: translateX(36%); }
}

@keyframes cityReveal {
  from { opacity: 0; }
  to { opacity: 0.56; }
}

@keyframes silhouetteReveal {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 0.18; transform: translateX(0); }
}

@keyframes textReveal {
  from { opacity: 0; filter: blur(8px); transform: translateY(14px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes introAmbient {
  0% { opacity: 0; }
  24% { opacity: 0.16; }
  48% { opacity: 0.34; }
  74% { opacity: 0.58; }
  100% { opacity: 0.76; }
}

@keyframes distantGlow {
  0% { opacity: 0; transform: scale(0.96); }
  30% { opacity: 0.16; transform: scale(1); }
  62% { opacity: 0.32; transform: scale(1.03); }
  100% { opacity: 0.46; transform: scale(1.06); }
}

@keyframes frameReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes controlsReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(44px, 7vw, 108px);
  align-items: center;
  min-height: auto;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(64px, 8vw, 112px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(20px, 6vw, 96px);
  right: clamp(20px, 6vw, 96px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hero-rule), transparent);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 1040px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
.hero-name {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(74px, 9vw, 142px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.88;
}

.hero-title {
  max-width: 880px;
  margin: 26px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.02;
  color: var(--ink);
}

.hero-quote {
  position: relative;
  max-width: 800px;
  margin: 34px 0 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  padding: 22px 26px 22px 30px;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  box-shadow: var(--card-shadow);
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
}

h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-summary {
  max-width: 740px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-summary.secondary {
  margin-top: 14px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

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

.button.secondary {
  background: transparent;
  background: color-mix(in srgb, var(--surface) 28%, transparent);
}

.hero-media {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
  aspect-ratio: 471 / 719;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-photo.is-active {
  opacity: 1;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 92px);
}

.rich-text {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.rich-text p:first-child {
  margin-top: 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 36px;
}

.section-summary {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card,
.writing-card,
.timeline-item,
.competency-card,
.work-card,
.featured-education {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: 26px;
}

.card p,
.timeline-item p,
.writing-card p,
.competency-card p,
.work-card p,
.featured-education p {
  margin-bottom: 0;
  color: var(--muted);
}

.muted {
  background: var(--muted-bg);
}

.tag-list,
.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list span,
.capability-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
  padding: 10px 14px;
  font-weight: 700;
}

.tag-list.compact {
  gap: 8px;
  margin-top: 18px;
}

.tag-list.compact span {
  padding: 7px 10px;
  font-size: 13px;
}

.approach-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lifecycle-list {
  display: grid;
  gap: 14px;
}

.lifecycle-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.lifecycle-step:first-child {
  border-top: 0;
}

.lifecycle-step > span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.lifecycle-step p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-card h3 {
  margin-bottom: 18px;
}

.capability-section {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 34%),
    var(--bg);
}

.capability-section .section-heading {
  max-width: 980px;
  display: block;
}

.capability-section h2 {
  max-width: 940px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
}

.capability-section .section-summary {
  max-width: 760px;
  margin-top: 22px;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.competency-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 24px;
  overflow: hidden;
}

.competency-card:nth-child(1),
.competency-card:nth-child(2) {
  grid-column: span 6;
}

.competency-card:nth-child(n + 3) {
  grid-column: span 4;
}

.competency-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -56px auto;
  width: 150px;
  height: 150px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
}

.competency-card-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.competency-card-header > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--muted-bg);
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
}

.competency-card h3 {
  margin: 4px 0 0;
  font-size: clamp(20px, 1.7vw, 28px);
}

.competency-card p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.65;
}

.competency-card .tag-list {
  margin-top: auto;
  padding-top: 22px;
}

.competency-card .tag-list span {
  padding: 7px 10px;
  font-size: 12px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.education-card {
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.education-card-header {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.education-card-header img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.education-card p {
  color: var(--muted);
}

.education-meta {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.education-card details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.education-card summary {
  cursor: pointer;
  font-weight: 850;
}

.education-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
}

.experience-card {
  align-items: start;
}

.timeline-meta {
  color: var(--accent);
  font-weight: 850;
}

.company {
  margin-top: -4px;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.principle {
  margin-top: 20px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--accent-strong) !important;
  font-weight: 750;
}

.featured-education {
  max-width: 920px;
  margin-bottom: 22px;
}

.featured-education small {
  color: var(--accent);
  font-weight: 850;
}

.featured-education h3 {
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
}

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

.writing-card {
  color: inherit;
  text-decoration: none;
}

.writing-card small {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 850;
}

.writing-card span {
  display: block;
  font-weight: 850;
  font-size: 18px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  background: var(--contact-bg);
  color: #fff;
}

.contact .eyebrow,
.contact p {
  color: rgba(255,255,255,0.72);
}

.contact .button {
  border-color: rgba(255,255,255,0.72);
  color: #fff;
}

.contact .button.primary {
  background: #fff;
  color: var(--contact-bg);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 6vw, 96px);
  background: var(--footer-bg);
  color: rgba(255,255,255,0.76);
  font-size: 14px;
}

.article-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.article-header {
  max-width: 860px;
}

.article-back {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--accent);
  font-weight: 850;
  text-decoration: none;
}

.article-title {
  max-width: 960px;
  font-size: clamp(42px, 5.7vw, 78px);
  line-height: 1.02;
}

.article-summary {
  max-width: 780px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.article-image {
  margin: 44px 0 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.article-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-body {
  max-width: 860px;
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: clamp(24px, 4vw, 44px);
  color: var(--ink);
  font-size: 18px;
}

.article-body p,
.article-body li {
  color: var(--muted);
}

.article-body h3 {
  margin-top: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.article-body blockquote {
  margin: 28px 0;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

@media (max-width: 1180px) {
  .site-header {
    position: sticky;
    grid-template-columns: auto auto 1fr;
    gap: 12px;
  }

  .brand {
    order: 2;
    width: 132px;
    height: 54px;
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  .menu-toggle {
    order: 1;
    grid-column: 1;
    display: inline-flex;
    width: auto;
    min-width: 92px;
    padding: 0 14px;
    align-self: center;
  }

  .nav {
    order: 4;
    position: absolute;
    left: clamp(20px, 4vw, 56px);
    top: calc(100% - 8px);
    z-index: 6;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: min(300px, calc(100vw - 40px));
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    white-space: normal;
    font-size: 13px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 20px;
    background: transparent;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 220ms ease, opacity 160ms ease, visibility 160ms ease, padding 220ms ease, transform 180ms ease;
  }

  .site-header.is-menu-open .nav {
    max-height: 520px;
    visibility: visible;
    opacity: 1;
    padding: 10px;
    border-color: var(--line);
    background: var(--surface-glass);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(18px);
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    min-height: 38px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    line-height: 1.15;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: none;
  }

  .header-actions {
    order: 3;
    justify-self: end;
  }
}

@media (max-width: 1020px) {
  .site-header {
    gap: 12px;
  }

  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    max-width: 340px;
    justify-self: start;
  }

  .card-grid,
  .approach-grid,
  .competency-grid,
  .work-grid,
  .education-grid,
  .writing-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .capability-section .section-summary {
    max-width: 760px;
    margin-top: 0;
  }

  .competency-card:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
    gap: 10px;
    padding: 12px 16px 14px;
  }

  .brand {
    position: relative;
    width: 104px;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 16px 34px rgba(0,0,0,0.14);
    font-size: 10px;
    letter-spacing: 0.14em;
    line-height: 1;
  }

  .brand::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255,255,255,0.12);
    pointer-events: none;
  }

  .header-actions {
    order: 3;
    gap: 8px;
    justify-self: end;
  }

  .theme-switch {
    width: 58px;
    height: 34px;
    box-shadow: none;
  }

  .theme-switch-thumb {
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
  }

  .theme-switch[aria-pressed="true"] .theme-switch-thumb {
    transform: translateX(24px);
  }

  .language {
    padding: 2px;
  }

  .language button {
    padding: 7px 8px;
    font-size: 13px;
  }

  .menu-toggle {
    min-width: 82px;
    padding: 0 12px;
    font-size: 13px;
  }

  .nav {
    left: 16px;
    width: min(280px, calc(100vw - 32px));
    font-size: 12px;
  }

  .nav a {
    min-height: 36px;
    padding: 8px 12px;
  }

  .section {
    padding: 48px 18px;
    scroll-margin-top: 132px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 34px;
  }

  .hero-copy {
    max-width: none;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  h1,
  .hero-name {
    font-size: clamp(56px, 16vw, 70px);
    line-height: 0.92;
  }

  .hero-title {
    margin-top: 18px;
    font-size: clamp(30px, 9.4vw, 40px);
    line-height: 1.04;
  }

  .hero-quote {
    margin-top: 24px;
    padding: 18px 18px 18px 22px;
    font-size: 19px;
    line-height: 1.42;
    border-radius: 0 16px 16px 0;
  }

  .hero-summary {
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.7;
  }

  .hero-actions,
  .contact-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero-media {
    order: -1;
    align-self: center;
    justify-self: center;
    width: min(72vw, 260px);
    border-radius: 26px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.20);
  }

  .card-grid,
  .approach-grid,
  .competency-grid,
  .work-grid,
  .education-grid,
  .writing-list,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .competency-card {
    min-height: auto;
  }

  .intro-gate {
    padding: 0;
    min-height: 100dvh;
  }

  .intro-gate::before {
    background:
      radial-gradient(circle at 82% 18%, rgba(205, 216, 224, 0.16), transparent 32%),
      linear-gradient(180deg, rgba(17,20,23,0.20) 0%, rgba(14,18,20,0.50) 38%, rgba(8,10,12,0.95) 100%),
      linear-gradient(90deg, rgba(8,10,12,0.72) 0%, rgba(10,13,15,0.34) 54%, rgba(8,10,12,0.16) 100%);
  }

  .intro-gate::after {
    inset: 10px;
    border-radius: 22px;
  }

  .intro-actions {
    left: 22px;
    bottom: max(22px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 44px);
    gap: 10px;
    padding: 8px;
  }

  .intro-actions .button {
    min-height: 38px;
    padding-inline: 14px;
  }

  .intro-check {
    font-size: 13px;
  }

  .intro-language {
    top: max(18px, env(safe-area-inset-top));
    right: 20px;
  }

  .intro-language button {
    min-width: 40px;
    min-height: 34px;
  }

  .intro-source {
    width: 110px;
    height: 110px;
  }

  .intro-mirror {
    width: 58px;
    height: 86px;
  }

  .mirror-two {
    width: 72px;
    height: 100px;
  }

  .intro-silhouette {
    right: -28vw;
    width: min(82vw, 380px);
    height: 62dvh;
  }

  .intro-text {
    left: 22px;
    right: 22px;
    bottom: clamp(116px, 20vh, 160px);
    width: auto;
  }

  .intro-text blockquote {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.08;
  }

  .intro-text p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.55;
  }

  .lifecycle-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

@media (max-width: 390px) {
  .site-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .brand {
    width: 92px;
    height: 48px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .menu-toggle {
    min-width: 74px;
    padding: 0 10px;
  }

  .theme-switch {
    width: 52px;
  }

  .theme-switch[aria-pressed="true"] .theme-switch-thumb {
    transform: translateX(18px);
  }

  .language button {
    padding-inline: 6px;
  }
}

@media (max-width: 680px) and (max-height: 780px) {
  .intro-text {
    bottom: clamp(96px, 18vh, 126px);
  }

  .intro-text blockquote {
    font-size: clamp(24px, 7vw, 32px);
  }

  .intro-text p {
    font-size: 14px;
  }

  .intro-actions {
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .intro-actions .button {
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-gate::before,
  .intro-gate::after,
  .intro-scene::before,
  .intro-mirror::after,
  .intro-source,
  .intro-ray,
  .intro-mirror,
  .intro-reflection,
  .mirror-flare,
  .intro-city,
  .intro-silhouette,
  .intro-text {
    animation: none !important;
    opacity: 1;
  }

  .intro-gate::before {
    opacity: 0.76;
  }

  .intro-scene::before {
    opacity: 0.46;
  }

  .intro-source {
    opacity: 0.72;
  }

  .intro-mirror::after {
    opacity: 0.10;
  }

  .intro-reflection {
    opacity: 0.18;
  }

  .mirror-flare {
    opacity: 0.08;
  }

  .intro-silhouette {
    opacity: 0.18;
  }

  .intro-ray {
    stroke-dashoffset: 0;
    opacity: 0.58;
  }

  .intro-city {
    opacity: 0.46;
  }
}
