:root {
  --ink: #173f3a;
  --ink-deep: #0d2c29;
  --cream: #f7f1e8;
  --paper: #fffdf9;
  --sand: #d8b98b;
  --coral: #d87355;
  --text: #243532;
  --muted: #65716e;
  --line: rgba(23, 63, 58, 0.15);
  --display: "Playfair Display", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

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

button {
  color: inherit;
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 253, 249, 0.9);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 78px;
  left: 0;
  padding: 0 clamp(24px, 5vw, 80px);
  position: fixed;
  right: 0;
  top: 0;
  backdrop-filter: blur(18px);
  z-index: 20;
}

.brand,
.header-actions,
.desktop-nav {
  align-items: center;
  display: flex;
}

.brand {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  gap: 11px;
  width: max-content;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-family: var(--display);
  height: 36px;
  justify-content: center;
  width: 36px;
}

.desktop-nav {
  gap: 34px;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease;
}

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

.header-actions {
  gap: 18px;
  justify-content: flex-end;
}

.language-switch {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 8px;
}

.language-option {
  color: #a4aaa8;
}

.language-option.active {
  color: var(--ink);
}

.button {
  align-items: center;
  background: var(--coral);
  border: 1px solid var(--coral);
  color: white;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.02em;
  min-height: 52px;
  padding: 0 25px;
  transition: transform 180ms ease, background 180ms ease;
}

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

.button-small {
  min-height: 40px;
  padding: 0 19px;
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 760px;
  overflow: hidden;
  padding: 150px clamp(24px, 8vw, 130px) 80px;
  position: relative;
}

.hero::before {
  border: 1px solid rgba(23, 63, 58, 0.08);
  border-radius: 50%;
  content: "";
  height: 500px;
  left: -260px;
  position: absolute;
  top: 170px;
  width: 500px;
}

.hero-copy {
  align-self: center;
  max-width: 730px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0 0 21px;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.education h2,
.contact h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.07;
  margin: 0;
}

.hero h1 {
  color: var(--ink);
  font-size: clamp(52px, 6vw, 92px);
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 span {
  font-size: 0.58em;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero h1 strong {
  font-weight: 700;
}

.hero-lead {
  color: #52625e;
  font-size: 18px;
  margin: 28px 0 34px;
  max-width: 640px;
}

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

.text-link {
  align-items: center;
  border-bottom: 1px solid var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 15px;
  padding: 8px 0;
}

.hero-stats {
  border-top: 1px solid var(--line);
  display: flex;
  gap: clamp(25px, 4vw, 60px);
  margin-top: 55px;
  padding-top: 25px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 28px;
}

.hero-stats .stat-format {
  font-size: 23px;
  white-space: nowrap;
}

.hero-stats span {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 500px;
  position: relative;
}

.portrait-frame {
  background: #e1d2bf;
  border-radius: 48% 48% 8px 8px;
  height: min(590px, 67vw);
  max-height: 590px;
  max-width: 455px;
  overflow: hidden;
  position: relative;
  width: 82%;
  z-index: 2;
}

.portrait-frame img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.portrait-fallback {
  align-items: center;
  background: linear-gradient(145deg, #e7d8c5, #c9ae89);
  color: var(--ink);
  display: none;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.portrait-fallback span {
  font-family: var(--display);
  font-size: 92px;
  font-weight: 700;
}

.portrait-fallback small {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.availability-card {
  align-items: center;
  background: white;
  bottom: 28px;
  box-shadow: 0 18px 50px rgba(13, 44, 41, 0.15);
  display: flex;
  gap: 13px;
  left: 0;
  padding: 18px 21px;
  position: absolute;
  z-index: 3;
}

.availability-card div {
  display: flex;
  flex-direction: column;
}

.availability-card strong {
  font-size: 13px;
}

.availability-card span {
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  background: #40aa7b;
  border: 4px solid #dff3e9;
  border-radius: 50%;
  height: 16px;
  width: 16px;
}

.decorative-word {
  color: transparent;
  font-size: 70px;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.13;
  position: absolute;
  right: -260px;
  top: 50%;
  transform: rotate(90deg);
  -webkit-text-stroke: 1px var(--ink);
}

.section {
  padding: 120px clamp(24px, 8vw, 130px);
}

.intro {
  display: grid;
  gap: clamp(50px, 10vw, 150px);
  grid-template-columns: 1fr 1fr;
}

.section-heading {
  max-width: 670px;
}

.section-heading h2,
.education h2,
.contact h2 {
  color: var(--ink);
  font-size: clamp(38px, 4.2vw, 62px);
}

.intro-copy {
  color: #55635f;
  font-size: 18px;
  max-width: 650px;
}

.intro-copy p:first-child {
  color: var(--text);
  font-size: 23px;
  margin-top: 0;
}

.section-dark {
  background: var(--ink);
  color: white;
}

.section-dark .section-heading h2 {
  color: white;
}

.eyebrow-light {
  color: var(--sand);
}

.experience {
  display: grid;
  gap: 90px;
  grid-template-columns: 0.8fr 1.2fr;
}

.timeline-item {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 30px;
  grid-template-columns: 150px 1fr;
  padding: 45px 0 55px;
}

.timeline-date {
  display: flex;
  flex-direction: column;
}

.timeline-date span {
  color: var(--sand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-date small {
  color: rgba(255, 255, 255, 0.55);
}

.timeline-content h3 {
  font-family: var(--display);
  font-size: 30px;
  margin: 3px 0 16px;
}

.timeline-content > p:not(.role-tag, .result) {
  color: rgba(255, 255, 255, 0.67);
  margin: 0;
}

.role-tag {
  color: var(--sand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin: 0;
  text-transform: uppercase;
}

.result {
  border-left: 2px solid var(--coral);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  margin: 25px 0 0;
  padding-left: 18px;
}

.result > span:first-child {
  color: white;
  font-weight: 700;
}

.skills {
  background: #f3ece2;
}

.skill-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 65px;
}

.skill-card {
  background: var(--paper);
  min-height: 320px;
  padding: 37px 30px;
  transition: background 180ms ease, transform 180ms ease;
}

.skill-card:hover {
  background: white;
  transform: translateY(-7px);
}

.skill-card > span {
  color: var(--coral);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.skill-card h3 {
  color: var(--ink);
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.25;
  margin: 70px 0 17px;
}

.skill-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.education {
  background: var(--paper);
}

.education-card {
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 80px;
  grid-template-columns: 1.5fr 0.5fr;
  padding: 70px 0;
}

.education h2 {
  max-width: 800px;
}

.education-details {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

.education-details p {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}

.education-details span {
  color: var(--muted);
}

.education-details strong {
  color: var(--coral);
  margin-top: 22px;
}

.contact {
  align-items: center;
  background: var(--ink-deep);
  color: white;
  display: grid;
  gap: 90px;
  grid-template-columns: 1fr 0.8fr;
}

.contact h2 {
  color: white;
  max-width: 720px;
}

.contact-copy > p:last-child {
  color: rgba(255, 255, 255, 0.63);
  max-width: 600px;
}

.trial-form {
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
}

.trial-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.trial-form label span,
.trial-form legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.trial-form input,
.trial-form textarea {
  background: white;
  border: 1px solid rgba(23, 63, 58, 0.18);
  color: var(--text);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.trial-form textarea {
  min-height: 92px;
  resize: vertical;
}

.trial-form input:focus,
.trial-form textarea:focus {
  border-color: var(--coral);
  outline: 2px solid rgba(216, 115, 85, 0.18);
}

.trial-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.trial-form fieldset p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 12px;
}

.form-grid,
.schedule-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

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

.choice-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.choice {
  align-items: center;
  background: white;
  border: 1px solid rgba(23, 63, 58, 0.18);
  cursor: pointer;
  flex: 1;
  flex-direction: row !important;
  gap: 10px !important;
  min-height: 46px;
  padding: 10px 12px;
}

.choice input {
  accent-color: var(--coral);
  min-height: auto;
  width: auto;
}

.submit-button {
  border: 0;
  cursor: pointer;
  margin-top: 4px;
  width: 100%;
}

.form-status {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  min-height: 22px;
}

.form-status.success {
  color: #1f7d52;
}

.form-status.error {
  color: #b94a33;
}

footer {
  align-items: center;
  background: #092320;
  color: rgba(255, 255, 255, 0.56);
  display: grid;
  font-size: 12px;
  grid-template-columns: 1fr auto 1fr;
  padding: 34px clamp(24px, 8vw, 130px);
}

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

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

.back-to-top {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: white;
  height: 38px;
  justify-self: end;
  line-height: 35px;
  text-align: center;
  width: 38px;
}

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

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

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr 1fr;
  }

  .desktop-nav,
  .header-actions .button-small {
    display: none;
  }

  .menu-button {
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 9px 0 9px 9px;
  }

  .menu-button span {
    background: var(--ink);
    display: block;
    height: 2px;
    transition: transform 180ms ease;
    width: 23px;
  }

  .menu-button.active span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    left: 0;
    opacity: 0;
    padding: 20px 24px 32px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 78px;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .mobile-nav a {
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    padding: 13px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 135px;
  }

  .hero-visual {
    margin-top: 70px;
  }

  .portrait-frame {
    height: 590px;
  }

  .experience {
    gap: 55px;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .site-header {
    height: 68px;
    padding: 0 20px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    height: 32px;
    width: 32px;
  }

  .header-actions {
    gap: 8px;
  }

  .mobile-nav {
    top: 68px;
  }

  .hero {
    min-height: auto;
    padding: 120px 22px 70px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero-stats {
    gap: 24px;
    justify-content: space-between;
  }

  .hero-stats strong {
    font-size: 22px;
  }

  .hero-stats .stat-format {
    font-size: 17px;
    white-space: normal;
  }

  .hero-stats span {
    max-width: 85px;
  }

  .hero-visual {
    min-height: auto;
  }

  .portrait-frame {
    height: 460px;
    width: 100%;
  }

  .availability-card {
    bottom: -20px;
    left: 12px;
  }

  .section {
    padding: 85px 22px;
  }

  .intro,
  .contact {
    gap: 45px;
    grid-template-columns: 1fr;
  }

  .form-grid,
  .choice-row {
    grid-template-columns: 1fr;
  }

  .choice-row {
    flex-direction: column;
  }

  .intro-copy p:first-child {
    font-size: 20px;
  }

  .timeline-item {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .timeline-date {
    flex-direction: row;
    gap: 10px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
    margin-top: 45px;
  }

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

  .skill-card h3 {
    margin-top: 35px;
  }

  .education-card {
    align-items: start;
    gap: 45px;
    grid-template-columns: 1fr;
  }

  footer {
    gap: 25px;
    grid-template-columns: 1fr auto;
  }

  footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
