:root {
  --ink: #19383b;
  --ink-deep: #102b2e;
  --ink-soft: #52696a;
  --paper: #f5f1ea;
  --paper-warm: #ece4d8;
  --surface: #fffdf9;
  --sage: #7e9889;
  --sage-pale: #dfe8e1;
  --clay: #b96f50;
  --sand: #dec8ae;
  --line: rgba(25, 56, 59, 0.16);
  --white-line: rgba(255, 255, 255, 0.2);
  --shadow: 0 24px 80px rgba(24, 52, 54, 0.12);
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 44px;
  --container: 1180px;
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 4px;
}

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

h1,
h2 {
  margin-bottom: 0;
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h1 em,
h2 em {
  color: var(--clay);
  font-weight: 400;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.7rem, 6vw, 6rem);
}

h2 {
  font-size: clamp(3rem, 5vw, 5.1rem);
}

h3 {
  color: var(--ink-deep);
  line-height: 1.25;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 130px 0;
}

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

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: rgba(245, 241, 234, 0.82);
  backdrop-filter: blur(18px);
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 10px 35px rgba(25, 56, 59, 0.07);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand-copy span {
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: var(--clay);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

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

.main-nav .nav-cta {
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.main-nav .nav-cta::after {
  display: none;
}

.main-nav .nav-cta:hover {
  color: var(--surface);
  background: var(--ink);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 200ms ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: calc(var(--header-height) + 90px) 0 54px;
  background:
    radial-gradient(circle at 15% 10%, rgba(222, 200, 174, 0.34), transparent 32%),
    linear-gradient(180deg, #f7f3ed 0%, #f1ece4 100%);
}

.hero-glow {
  position: absolute;
  border: 1px solid rgba(25, 56, 59, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-one {
  top: 14%;
  right: -15%;
  width: 650px;
  height: 650px;
}

.hero-glow-two {
  top: 23%;
  right: -7%;
  width: 430px;
  height: 430px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 620px;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.8fr);
  gap: 76px;
}

.eyebrow {
  display: flex;
  margin-bottom: 26px;
  align-items: center;
  gap: 11px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.72);
}

.hero-copy {
  padding-bottom: 20px;
}

.hero-lead {
  max-width: 640px;
  margin: 34px 0 36px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 13px 24px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button svg,
.text-link svg,
.back-to-top svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

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

.button-primary {
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 32px rgba(25, 56, 59, 0.18);
}

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

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

.button-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

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

.button-light:hover {
  color: white;
  background: var(--clay);
}

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.availability-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5c8c6c;
  box-shadow: 0 0 0 5px rgba(92, 140, 108, 0.12);
}

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

.portrait-arch {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 10px solid rgba(255, 253, 249, 0.66);
  border-radius: 34px;
  background: var(--sand);
  box-shadow: var(--shadow);
}

.portrait-arch::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(16, 43, 46, 0.16));
  content: "";
  pointer-events: none;
}

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

.portrait-note {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--ink);
  background: rgba(255, 253, 249, 0.91);
  box-shadow: 0 14px 36px rgba(25, 56, 59, 0.13);
  backdrop-filter: blur(12px);
}

.portrait-note-bottom {
  right: -26px;
  bottom: 28px;
  padding: 16px 20px;
  border-radius: 17px;
}

.portrait-note-bottom strong {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.portrait-note-bottom span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: 26px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: grid;
  padding: 2px 25px;
  align-items: center;
  border-right: 1px solid var(--line);
  grid-template-columns: auto 1fr;
  gap: 13px;
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  padding-right: 0;
  border-right: 0;
}

.stat strong {
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.stat span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 92px;
}

.section-heading {
  position: sticky;
  top: 132px;
}

.about-intro {
  margin-bottom: 38px;
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.4;
}

.about-columns {
  display: grid;
  color: var(--ink-soft);
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.about-columns p {
  margin-bottom: 0;
}

.about-content blockquote {
  position: relative;
  margin: 50px 0 0;
  padding: 30px 36px 30px 62px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--sage-pale);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.5;
}

.about-content blockquote::before {
  position: absolute;
  top: 18px;
  left: 24px;
  color: var(--sage);
  content: "“";
  font-size: 54px;
  line-height: 1;
}

.values-grid {
  display: grid;
  margin-top: 92px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.value-card {
  display: flex;
  min-height: 220px;
  padding: 34px;
  gap: 26px;
  background: var(--surface);
}

.value-number {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.value-card h3 {
  margin: 1px 0 15px;
  font-size: 21px;
}

.value-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.section-services {
  color: rgba(255, 255, 255, 0.77);
  background: var(--ink-deep);
}

.section-services h2,
.section-services h3 {
  color: white;
}

.section-services h2 em {
  color: var(--sand);
}

.section-top {
  display: grid;
  margin-bottom: 64px;
  align-items: end;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 80px;
}

.section-top .eyebrow {
  margin-bottom: 22px;
}

.section-summary {
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
}

.services-grid {
  display: grid;
  border-top: 1px solid var(--white-line);
  border-left: 1px solid var(--white-line);
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  position: relative;
  display: flex;
  min-height: 390px;
  padding: 30px;
  flex-direction: column;
  border-right: 1px solid var(--white-line);
  border-bottom: 1px solid var(--white-line);
  transition:
    background-color 220ms ease,
    transform 220ms ease;
}

.service-card:hover {
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
}

.service-index {
  align-self: flex-end;
  color: rgba(255, 255, 255, 0.4);
  font-family: Georgia, "Times New Roman", serif;
}

.service-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 35px 0 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--sand);
  background: rgba(255, 255, 255, 0.07);
}

.service-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.service-card h3 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.service-card p {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.service-link {
  margin-top: auto;
  color: white;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-link span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 180ms ease;
}

.service-card:hover .service-link span {
  transform: translate(3px, -3px);
}

.services-bottom {
  display: flex;
  margin-top: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 13px;
}

.services-bottom p {
  margin-bottom: 0;
}

.services-bottom strong {
  color: white;
}

.services-bottom a {
  color: white;
  font-weight: 700;
}

.image-break {
  position: relative;
  display: flex;
  min-height: 620px;
  overflow: hidden;
  align-items: flex-end;
}

.image-break > img,
.image-break-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.image-break > img {
  object-fit: cover;
  object-position: center;
}

.image-break-overlay {
  background: linear-gradient(180deg, rgba(16, 43, 46, 0.03) 22%, rgba(16, 43, 46, 0.78) 100%);
}

.image-break-content {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.image-break-content .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.image-break-content h2 {
  max-width: 900px;
  color: white;
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.image-break-content h2 em {
  color: var(--sand);
}

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

.section-top-dark .section-summary {
  color: var(--ink-soft);
}

.experience-summary p {
  margin-bottom: 25px;
}

.text-link {
  display: inline-flex;
  padding-bottom: 6px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.text-link svg {
  width: 18px;
}

.timeline {
  position: relative;
}

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

.timeline-item {
  display: grid;
  min-height: 225px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 170px 80px 1fr;
}

.timeline-period {
  padding-top: 4px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.timeline-marker {
  position: relative;
}

.timeline-marker span {
  position: absolute;
  top: 6px;
  left: 32px;
  width: 17px;
  height: 17px;
  border: 5px solid var(--paper);
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 1px var(--sage);
}

.timeline-item-current .timeline-marker span {
  background: var(--clay);
  box-shadow: 0 0 0 1px var(--clay);
}

.timeline-company {
  margin-bottom: 7px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin-bottom: 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  font-weight: 400;
}

.timeline-content > p:not(.timeline-company) {
  max-width: 780px;
  margin-bottom: 20px;
  color: var(--ink-soft);
}

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

.tags span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-weight: 700;
}

.achievement {
  display: inline-flex;
  max-width: 560px;
  padding: 16px 20px;
  align-items: center;
  gap: 18px;
  border-left: 3px solid var(--clay);
  border-radius: 0 13px 13px 0;
  background: rgba(255, 253, 249, 0.68);
}

.achievement strong {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  white-space: nowrap;
}

.achievement span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.compact-grid h3 {
  font-size: 25px;
}

.compact-grid p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.section-education {
  background: var(--surface);
}

.education-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 82px;
}

.education-intro {
  position: sticky;
  top: 132px;
}

.education-intro > p:last-child {
  max-width: 420px;
  margin: 35px 0 0;
  color: var(--ink-soft);
}

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

.education-card {
  display: grid;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 128px 1fr;
  gap: 26px;
}

.education-card-primary {
  margin: 0 -30px;
  padding: 34px 30px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--sage-pale);
}

.education-date {
  padding-top: 4px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.education-school {
  margin-bottom: 7px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.education-card h3 {
  margin-bottom: 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.education-card p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.education-card .thesis {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(25, 56, 59, 0.13);
}

.thesis span {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  color: rgba(255, 255, 255, 0.75);
  background: var(--ink);
}

.contact-shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.contact-shape-one {
  top: -280px;
  left: -180px;
  width: 620px;
  height: 620px;
}

.contact-shape-two {
  right: -260px;
  bottom: -390px;
  width: 780px;
  height: 780px;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: start;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
}

.contact h2 {
  color: white;
}

.contact h2 em {
  color: var(--sand);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 480px;
  margin: 34px 0 32px;
}

.contact-details {
  border-top: 1px solid var(--white-line);
  font-style: normal;
}

.contact-row {
  position: relative;
  display: grid;
  min-height: 90px;
  padding: 23px 50px 23px 0;
  align-items: center;
  border-bottom: 1px solid var(--white-line);
  grid-template-columns: 150px 1fr;
  gap: 18px;
  transition: padding-left 180ms ease;
}

.contact-row:hover {
  padding-left: 12px;
}

.contact-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-row strong {
  color: white;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  color: var(--sand);
  font-size: 23px;
  transform: translateY(-50%);
}

.site-footer {
  color: rgba(255, 255, 255, 0.63);
  background: var(--ink-deep);
}

.footer-inner {
  display: grid;
  min-height: 120px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  font-size: 11px;
}

.footer-brand .brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

.footer-brand > span:last-child {
  display: grid;
}

.footer-brand strong {
  color: white;
  font-size: 13px;
}

.footer-brand small {
  font-size: 10px;
}

.footer-inner p {
  margin-bottom: 0;
  text-align: center;
}

.footer-inner > a {
  justify-self: end;
  color: white;
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 13px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  opacity: 0;
  color: white;
  background: var(--clay);
  box-shadow: 0 12px 30px rgba(25, 56, 59, 0.18);
  cursor: pointer;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.reveal-delay-short {
  transition-delay: 80ms;
}

.reveal-delay {
  transition-delay: 160ms;
}

.reveal-delay-long {
  transition-delay: 240ms;
}

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

@media (max-width: 1100px) {
  .main-nav {
    gap: 20px;
  }

  .hero-grid {
    gap: 40px;
  }

  .portrait-note-bottom {
    right: -10px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(3) {
    padding-left: 0;
  }

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

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .section {
    padding: 100px 0;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    padding: 24px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 20px 40px rgba(25, 56, 59, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

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

  .main-nav a {
    padding: 10px 6px;
    font-size: 16px;
  }

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

  .main-nav .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 60px);
  }

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

  .hero-portrait {
    width: min(82%, 470px);
    margin-top: 10px;
    justify-self: center;
  }

  .about-grid,
  .education-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .section-heading,
  .education-intro {
    position: static;
  }

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

  .section-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-summary {
    max-width: 650px;
  }

  .services-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-break {
    min-height: 520px;
  }

  .image-break > img {
    object-position: 60% center;
  }

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

  .timeline-item {
    grid-template-columns: 120px 80px 1fr;
  }

  .contact {
    padding: 100px 0;
  }

  .footer-inner {
    display: flex;
    padding: 35px 0;
    flex-direction: column;
  }

  .footer-inner > a {
    align-self: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 82px 0;
  }

  .brand-copy span {
    display: none;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .hero {
    padding-bottom: 42px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-lead {
    margin-top: 27px;
    font-size: 17px;
  }

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

  .button {
    width: 100%;
  }

  .hero-portrait {
    width: 90%;
  }

  .portrait-arch {
    border-width: 7px;
  }

  .portrait-note-bottom {
    right: -5%;
    bottom: 6%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:nth-child(3) {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .about-columns {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .about-content blockquote {
    padding: 28px 24px 28px 45px;
    font-size: 18px;
  }

  .about-content blockquote::before {
    left: 14px;
  }

  .values-grid {
    margin-top: 60px;
  }

  .value-card {
    min-height: 180px;
    padding: 27px;
  }

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

  .service-card {
    min-height: 340px;
  }

  .image-break {
    min-height: 460px;
  }

  .image-break-content {
    padding-bottom: 48px;
  }

  .image-break-content br {
    display: none;
  }

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

  .timeline-item {
    padding: 40px 0;
    grid-template-columns: 34px 1fr;
  }

  .timeline-period {
    margin-bottom: 10px;
    grid-column: 2;
    grid-row: 1;
  }

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

  .timeline-marker span {
    top: 8px;
    left: 1px;
  }

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

  .timeline-content h3 {
    font-size: 26px;
  }

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

  .compact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .education-card,
  .education-card-primary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .education-card-primary {
    margin: 0 -16px;
    padding: 28px 16px;
  }

  .contact-row {
    min-height: 105px;
    align-items: start;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .back-to-top {
    right: 15px;
    bottom: 15px;
  }
}

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

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

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