:root {
  --paper: #f5f1e8;
  --paper-deep: #ebe4d7;
  --surface: #fbf8f1;
  --ink: #1d2421;
  --muted: #68716c;
  --accent: #0e5b50;
  --accent-bright: #1d796a;
  --sage: #d9e6df;
  --line: rgba(29, 36, 33, 0.14);
  --line-light: rgba(245, 241, 232, 0.18);
  --cream: #f8f3e7;
  --white: #fffdf8;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", STSong, SimSun, Georgia, serif;
  --shell: min(1200px, calc(100% - 64px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 7%, rgba(217, 230, 223, 0.75), transparent 25rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.dialog-open {
  overflow: hidden;
}

::selection {
  color: var(--cream);
  background: var(--accent);
}

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

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

button {
  font: inherit;
}

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

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

p:last-child {
  margin-bottom: 0;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--cream);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition:
    background-color 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(245, 241, 232, 0.92);
  box-shadow: 0 8px 40px rgba(29, 36, 33, 0.05);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  width: var(--shell);
  min-height: 78px;
  min-width: 0;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--cream);
  background: var(--accent);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 520;
}

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

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

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

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-resume {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 16px;
  align-items: center;
  gap: 8px;
  color: var(--cream) !important;
  background: var(--ink);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.nav-resume:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.nav-resume svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 220ms ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 132px 0 48px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(260px, 0.52fr);
  align-items: center;
  gap: clamp(64px, 9vw, 150px);
}

.hero-copy {
  min-width: 0;
  max-width: 800px;
}

.hero-name {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.hero-name::after {
  width: 64px;
  height: 1px;
  content: "";
  background: var(--line);
}

.hero-name span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.18em;
}

.availability {
  display: inline-flex;
  min-height: 40px;
  margin-bottom: 16px;
  padding: 7px 17px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(14, 91, 80, 0.22);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(217, 230, 223, 0.5);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.status-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(14, 91, 80, 0.3);
  border-radius: inherit;
  content: "";
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.6);
  }
  65%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.hero h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(52px, 5.4vw, 80px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 span {
  position: relative;
  z-index: 0;
  color: var(--accent);
}

.hero h1 span::after {
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: 0.03em;
  left: -0.02em;
  height: 0.24em;
  content: "";
  background: rgba(29, 121, 106, 0.14);
  transform: rotate(-1deg);
}

.hero-summary {
  max-width: 660px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 12px 22px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition:
    transform 220ms var(--ease),
    background-color 220ms ease,
    color 220ms ease;
}

.button svg,
.text-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 220ms var(--ease);
}

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

.button:hover svg,
.text-link:hover svg {
  transform: translateX(3px);
}

.button-primary {
  color: var(--cream);
  background: var(--accent);
  box-shadow: 0 12px 34px rgba(14, 91, 80, 0.18);
}

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

.text-link {
  display: inline-flex;
  padding-bottom: 4px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 650;
  transition:
    color 180ms ease,
    transform 220ms var(--ease);
}

.text-link:hover {
  color: var(--accent);
}

.hero-tags {
  display: flex;
  margin-top: 28px;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tags span {
  padding: 5px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.4);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.portrait-panel {
  position: relative;
  width: min(100%, 280px);
  justify-self: end;
}

.portrait-index {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #dbe8e0 0%, #efe8db 100%);
  box-shadow: 16px 16px 0 rgba(217, 230, 223, 0.8);
}

.portrait-frame::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(29, 36, 33, 0.08);
  content: "";
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.02);
  transform: scale(1.015);
}

.portrait-note {
  position: static;
  display: flex;
  width: 100%;
  margin-top: 14px;
  padding: 13px 2px 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.portrait-note span {
  display: block;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.portrait-note strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  text-align: right;
  color: var(--ink);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(14, 91, 80, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit-a {
  top: 62px;
  right: -300px;
  width: 760px;
  height: 760px;
}

.hero-orbit-b {
  right: -140px;
  bottom: -510px;
  width: 920px;
  height: 920px;
}

.proof-strip {
  position: relative;
  z-index: 3;
  color: var(--cream);
  background: var(--accent);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.proof-item {
  padding: 38px 32px;
  border-left: 1px solid var(--line-light);
}

.proof-item:first-child {
  border-left: 0;
}

.proof-item:last-child {
  border-right: 1px solid var(--line-light);
}

.proof-item strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.proof-item strong span {
  margin-left: 2px;
  color: rgba(248, 243, 231, 0.6);
  font-family: var(--sans);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
}

.proof-item p {
  margin: 0;
  color: rgba(248, 243, 231, 0.65);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.section {
  padding: 132px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.66fr) minmax(0, 1.34fr);
  gap: clamp(56px, 9vw, 140px);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-lead h2,
.section-heading h2,
.contact h2 {
  font-family: var(--serif);
  font-size: clamp(39px, 4.4vw, 62px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.24;
}

.section-lead {
  position: sticky;
  top: 130px;
  align-self: start;
}

.lead-copy {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.3vw, 31px);
  font-weight: 520;
  letter-spacing: -0.025em;
  line-height: 1.75;
}

.body-copy {
  max-width: 740px;
  margin-bottom: 54px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  min-height: 240px;
  padding: 28px 24px 30px;
  border-left: 1px solid var(--line);
  transition: background-color 220ms ease;
}

.principle:last-child {
  border-right: 1px solid var(--line);
}

.principle:hover {
  background: rgba(217, 230, 223, 0.42);
}

.principle-number {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 12px;
}

.principle h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 650;
}

.principle p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.experience {
  background: var(--paper-deep);
}

.section-heading {
  display: grid;
  margin-bottom: 72px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 64px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 480px;
  margin: 0 0 7px auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 135px 24px minmax(0, 1fr);
  gap: 32px;
}

.timeline-date {
  display: flex;
  padding-top: 3px;
  flex-direction: column;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.timeline-date span:first-child::after {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px 0;
  content: "";
  background: var(--line);
}

.timeline-marker {
  position: relative;
}

.timeline-marker::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
  background: var(--paper-deep);
}

.timeline-title {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.timeline-title h3 {
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.timeline-title p {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.timeline-tag {
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.timeline-content ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.timeline-content li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.timeline-content li::before {
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 5px;
  height: 1px;
  content: "";
  background: var(--accent);
}

.work {
  position: relative;
  color: var(--cream);
  background: var(--ink);
}

.work::before {
  position: absolute;
  top: 0;
  right: 6%;
  width: 1px;
  height: 100%;
  content: "";
  background: rgba(248, 243, 231, 0.06);
}

.work .eyebrow {
  color: #8ec6b8;
}

.work .section-heading > p {
  color: rgba(248, 243, 231, 0.56);
}

.work-heading {
  margin-bottom: 58px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-card {
  position: relative;
  display: flex;
  min-height: 560px;
  padding: 28px;
  flex-direction: column;
  border: 1px solid rgba(248, 243, 231, 0.16);
  background: rgba(248, 243, 231, 0.035);
  transition:
    transform 320ms var(--ease),
    border-color 320ms ease,
    background-color 320ms ease;
}

.case-card:hover,
.case-card:focus-visible {
  border-color: rgba(248, 243, 231, 0.38);
  background: rgba(248, 243, 231, 0.075);
  transform: translateY(-7px);
}

.case-card-accent {
  color: var(--ink);
  border-color: var(--sage);
  background: var(--sage);
}

.case-card-accent:hover,
.case-card-accent:focus-visible {
  border-color: var(--cream);
  background: #e5efe9;
}

.case-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(248, 243, 231, 0.45);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.case-card-accent .case-topline {
  color: rgba(29, 36, 33, 0.5);
}

.case-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 52px 0 36px;
  place-items: center;
  border: 1px solid rgba(248, 243, 231, 0.22);
  border-radius: 50%;
  color: rgba(248, 243, 231, 0.75);
  font-family: var(--serif);
  font-size: 15px;
}

.case-card-accent .case-icon {
  border-color: rgba(29, 36, 33, 0.2);
  color: var(--accent);
}

.case-card h3 {
  margin-bottom: 15px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.case-card > p {
  color: rgba(248, 243, 231, 0.56);
  font-size: 13px;
  line-height: 1.8;
}

.case-card-accent > p {
  color: rgba(29, 36, 33, 0.65);
}

.case-result {
  display: flex;
  margin-top: auto;
  padding-top: 24px;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid rgba(248, 243, 231, 0.14);
}

.case-card-accent .case-result {
  border-color: rgba(29, 36, 33, 0.14);
}

.case-result strong {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.case-result span {
  color: rgba(248, 243, 231, 0.48);
  font-size: 10px;
}

.case-card-accent .case-result span {
  color: rgba(29, 36, 33, 0.56);
}

.case-tags {
  display: flex;
  margin-top: 23px;
  gap: 6px;
  flex-wrap: wrap;
}

.case-tags span {
  padding: 3px 8px;
  border: 1px solid rgba(248, 243, 231, 0.15);
  color: rgba(248, 243, 231, 0.58);
  font-size: 9px;
}

.case-card-accent .case-tags span {
  border-color: rgba(29, 36, 33, 0.16);
  color: rgba(29, 36, 33, 0.62);
}

.case-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(248, 243, 231, 0.19);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 220ms ease,
    transform 220ms var(--ease);
}

.case-card-accent .case-arrow {
  border-color: rgba(29, 36, 33, 0.2);
}

.case-arrow svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.case-card:hover .case-arrow,
.case-card:focus-visible .case-arrow {
  opacity: 1;
  transform: translateX(0);
}

.capability-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.capability-card {
  min-height: 340px;
  padding: 34px 32px 38px;
  border-left: 1px solid var(--line);
}

.capability-card:last-child {
  border-right: 1px solid var(--line);
}

.capability-label {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.capability-card h3 {
  margin: 72px 0 27px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.capability-card ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.capability-card li {
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(29, 36, 33, 0.08);
}

.credential-row {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(2, 1fr);
  gap: 72px;
}

.credential {
  padding-top: 2px;
}

.credential .eyebrow {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 15px;
}

.credential h3 {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 650;
}

.credential p:not(.eyebrow) {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.credential span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.contact {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  color: var(--cream);
  background: var(--accent);
}

.contact-lines {
  position: absolute;
  top: -260px;
  right: -260px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(248, 243, 231, 0.1);
  border-radius: 50%;
}

.contact-lines::before,
.contact-lines::after {
  position: absolute;
  border: 1px solid rgba(248, 243, 231, 0.08);
  border-radius: 50%;
  content: "";
}

.contact-lines::before {
  inset: 90px;
}

.contact-lines::after {
  inset: 190px;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: clamp(64px, 9vw, 140px);
}

.eyebrow-light {
  color: rgba(248, 243, 231, 0.58);
}

.contact h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4.3vw, 59px);
  line-height: 1.32;
}

.contact h2 span {
  color: #a7d3c7;
}

.contact-panel {
  padding: 30px;
  border: 1px solid rgba(248, 243, 231, 0.18);
  background: rgba(10, 58, 51, 0.26);
}

.contact-panel > p {
  margin-bottom: 24px;
  color: rgba(248, 243, 231, 0.67);
  font-size: 13px;
  line-height: 1.9;
}

.contact-email {
  display: flex;
  padding-bottom: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(248, 243, 231, 0.28);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: -0.02em;
  transition: border-color 180ms ease;
}

.contact-email:hover {
  border-color: var(--cream);
}

.contact-email svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.contact-phone {
  display: flex;
  margin-top: 14px;
  align-items: center;
  justify-content: space-between;
  color: rgba(248, 243, 231, 0.72);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 180ms ease;
}

.contact-phone:hover {
  color: var(--cream);
}

.contact-phone span {
  color: rgba(248, 243, 231, 0.42);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.contact-actions {
  display: flex;
  margin-top: 24px;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.button-light {
  color: var(--ink);
  background: var(--cream);
}

.button-light:hover {
  background: var(--sage);
}

.availability-dark {
  margin: 0;
  border-color: rgba(248, 243, 231, 0.24);
  color: rgba(248, 243, 231, 0.8);
  background: transparent;
}

.availability-dark .status-dot {
  background: #a7d3c7;
}

.availability-dark .status-dot::after {
  border-color: rgba(167, 211, 199, 0.36);
}

.site-footer {
  padding: 25px 0;
  color: rgba(248, 243, 231, 0.5);
  background: #17201d;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: rgba(248, 243, 231, 0.78);
}

.footer-inner a:hover {
  color: var(--cream);
}

/* Case dialogs */

.case-dialog {
  width: min(920px, calc(100% - 32px));
  max-width: none;
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.28);
}

.case-dialog::backdrop {
  background: rgba(10, 24, 20, 0.72);
  backdrop-filter: blur(7px);
}

.case-dialog[open] {
  animation: dialog-in 320ms var(--ease);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-shell {
  min-height: 100%;
}

.dialog-topbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 62px;
  padding: 0 34px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.95);
  backdrop-filter: blur(12px);
}

.dialog-topbar > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.dialog-close {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.dialog-close:hover {
  color: var(--cream);
  background: var(--accent);
}

.dialog-close span {
  position: absolute;
  top: 18px;
  left: 11px;
  width: 15px;
  height: 1px;
  background: currentColor;
}

.dialog-close span:first-child {
  transform: rotate(45deg);
}

.dialog-close span:last-child {
  transform: rotate(-45deg);
}

.dialog-content {
  padding: 56px 64px 68px;
}

.dialog-heading h2 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.22;
}

.dialog-heading .eyebrow {
  margin-bottom: 17px;
}

.dialog-summary {
  max-width: 740px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.dialog-meta {
  display: grid;
  margin-bottom: 52px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 0.65fr 1fr 1.25fr;
  gap: 26px;
}

.dialog-meta div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dialog-meta span,
.dialog-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.dialog-meta strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
}

.dialog-section {
  display: grid;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 36px;
}

.dialog-label {
  margin: 4px 0 0;
  color: var(--accent);
}

.dialog-section > p:not(.dialog-label) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.dialog-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  list-style: none;
  counter-reset: action;
}

.dialog-list li {
  position: relative;
  padding-left: 33px;
  counter-increment: action;
}

.dialog-list li::before {
  position: absolute;
  top: 0.22em;
  left: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 11px;
  content: "0" counter(action);
}

.dialog-results {
  display: grid;
  margin: 30px 0 44px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.dialog-results div {
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.dialog-results div:first-child {
  padding-left: 0;
  border-left: 0;
}

.dialog-results strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.dialog-results span {
  color: var(--muted);
  font-size: 10px;
}

.case-dialog blockquote {
  margin-bottom: 34px;
  padding: 24px 28px;
  color: var(--accent);
  background: var(--sage);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 520;
  line-height: 1.8;
}

.dialog-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.dialog-tags span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

/* Reveal animation */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

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

@media (max-width: 1080px) {
  .hero-grid {
    gap: 72px;
  }

  .hero h1 {
    font-size: clamp(50px, 5.2vw, 67px);
  }

  .portrait-panel {
    width: min(100%, 250px);
  }

  .portrait-note {
    width: 100%;
    padding: 11px 1px 0;
  }

  .case-card {
    min-height: 590px;
    padding: 24px;
  }

  .case-card h3 {
    font-size: 25px;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .hero {
    min-height: 100svh;
    padding: 108px 0 28px;
  }

  .hero-grid {
    gap: clamp(48px, 6vw, 90px);
  }

  .hero-name {
    margin-bottom: 14px;
  }

  .availability {
    min-height: 36px;
    margin-bottom: 12px;
    padding: 5px 14px;
    font-size: 14px;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: clamp(48px, 4.9vw, 68px);
    line-height: 1.04;
  }

  .hero-summary {
    max-width: 680px;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-actions .button {
    min-height: 48px;
    padding: 10px 20px;
  }

  .hero-tags {
    margin-top: 18px;
  }

  .portrait-panel {
    width: min(100%, 250px);
  }

  .portrait-note {
    width: 100%;
    margin-top: 12px;
    padding: 10px 0 0;
  }

  .portrait-note strong {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 40px, 760px);
  }

  .nav-shell {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 69px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 24px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(29, 36, 33, 0.13);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-resume {
    margin-top: 16px;
    padding: 11px 16px;
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding: 130px 0 90px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }

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

  .portrait-panel {
    width: min(56vw, 280px);
    justify-self: start;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item:nth-child(3) {
    border-top: 1px solid var(--line-light);
  }

  .proof-item:nth-child(4) {
    border-top: 1px solid var(--line-light);
  }

  .proof-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-light);
    border-right: 1px solid var(--line-light);
  }

  .section {
    padding: 100px 0;
  }

  .section-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
  }

  .section-lead {
    position: static;
  }

  .section-heading {
    margin-bottom: 50px;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .section-heading > p {
    margin-left: 0;
  }

  .principle {
    min-height: 280px;
    padding: 24px 18px;
  }

  .timeline-item {
    grid-template-columns: 105px 18px minmax(0, 1fr);
    gap: 16px;
  }

  .timeline-title {
    flex-direction: column;
    gap: 12px;
  }

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

  .case-card {
    min-height: 480px;
  }

  .case-card h3 {
    font-size: 31px;
  }

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

  .capability-card {
    min-height: auto;
    padding: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .capability-card:last-child {
    border-bottom: 0;
  }

  .capability-card h3 {
    margin: 36px 0 22px;
  }

  .credential-row {
    gap: 32px;
  }

  .contact {
    padding: 90px 0;
  }

  .contact-panel {
    max-width: 540px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .brand-name {
    display: none;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-name {
    margin-bottom: 26px;
    gap: 12px;
    font-size: 24px;
  }

  .hero-name::after {
    width: 40px;
  }

  .hero-name span {
    font-size: 11px;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: clamp(38px, 10.6vw, 48px);
    letter-spacing: -0.06em;
    line-height: 1.18;
  }

  .hero-summary {
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .button {
    width: 100%;
  }

  .text-link {
    align-self: flex-start;
  }

  .portrait-panel {
    width: min(72%, 250px);
  }

  .portrait-frame {
    box-shadow: 18px 18px 0 rgba(217, 230, 223, 0.8);
  }

  .portrait-note {
    width: 100%;
    padding: 10px 0 0;
  }

  .portrait-note strong {
    font-size: 14px;
  }

  .proof-item {
    padding: 26px 16px;
  }

  .proof-item:nth-child(odd) {
    border-left: 0;
  }

  .proof-item:nth-child(even) {
    border-right: 0;
  }

  .proof-item strong {
    font-size: 36px;
  }

  .proof-item p {
    font-size: 10px;
  }

  .section {
    padding: 78px 0;
  }

  .section-lead h2,
  .section-heading h2,
  .contact h2 {
    font-size: clamp(34px, 10vw, 45px);
  }

  .eyebrow {
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .lead-copy {
    font-size: 21px;
    line-height: 1.7;
  }

  .body-copy {
    margin-bottom: 38px;
    font-size: 14px;
    line-height: 1.9;
  }

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

  .principle {
    min-height: auto;
    padding: 24px 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .principle-number {
    margin-bottom: 18px;
  }

  .timeline-item {
    padding: 34px 0;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 16px;
  }

  .timeline-date {
    grid-column: 2;
    margin-bottom: 2px;
    flex-direction: row;
    gap: 8px;
  }

  .timeline-date span:first-child::after {
    display: none;
  }

  .timeline-marker {
    grid-row: 1 / span 2;
  }

  .timeline-content {
    grid-column: 2;
  }

  .timeline-title h3 {
    font-size: 23px;
  }

  .timeline-content li {
    font-size: 13px;
  }

  .case-card {
    min-height: 500px;
    padding: 24px 22px;
  }

  .case-card h3 {
    font-size: 28px;
  }

  .case-arrow {
    display: none;
  }

  .case-result strong {
    font-size: 26px;
  }

  .capability-card {
    padding: 26px 20px;
  }

  .credential-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact {
    padding: 76px 0;
  }

  .contact h2 {
    line-height: 1.35;
  }

  .contact-panel {
    padding: 22px;
  }

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

  .availability-dark {
    align-self: flex-start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .case-dialog {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
  }

  .dialog-topbar {
    min-height: 60px;
    padding: 0 20px;
  }

  .dialog-content {
    padding: 42px 22px 54px;
  }

  .dialog-heading h2 {
    font-size: 35px;
  }

  .dialog-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dialog-section {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .dialog-results {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dialog-results div,
  .dialog-results div:first-child {
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .dialog-results div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .case-dialog blockquote {
    padding: 20px;
    font-size: 16px;
  }
}

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

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
