:root {
  --ink: #17211a;
  --forest: #123f2d;
  --forest-deep: #08281d;
  --lime: #d9f36d;
  --paper: #f4f0e7;
  --muted: #647068;
  --line: rgba(23, 33, 26, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(217, 243, 109, 0.22), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

.landing-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  padding: 0 5vw;
}

.site-nav,
.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.wordmark span {
  color: #628c2e;
}

.nav-caption,
.landing-footer,
.demo-note {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 8rem);
  padding: 6vh 4vw 7vh 0;
}

.intro-copy {
  max-width: 760px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 1.4rem;
  color: #527222;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.7vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.lede {
  max-width: 38rem;
  margin: 2rem 0;
  color: #465149;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.8;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  padding: 1rem 1.2rem 1rem 1.5rem;
  font-size: 0.92rem;
  transition: transform 180ms ease, background 180ms ease;
}

.primary-link span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest-deep);
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--forest-deep);
  transform: translateY(-2px);
}

.demo-note {
  margin: 1.4rem 0 0;
  letter-spacing: 0.04em;
  text-transform: none;
}

.profile-card {
  display: block;
  overflow: hidden;
  border-radius: 1.8rem;
  background: var(--forest-deep);
  box-shadow: 0 24px 70px rgba(8, 40, 29, 0.18);
  color: white;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.profile-card:hover,
.profile-card:focus-visible {
  transform: translateY(-7px) rotate(0.4deg);
  box-shadow: 0 34px 90px rgba(8, 40, 29, 0.24);
}

.portrait-placeholder {
  display: grid;
  aspect-ratio: 4 / 3.4;
  place-items: center;
  background:
    linear-gradient(145deg, transparent 45%, rgba(217, 243, 109, 0.72) 45% 55%, transparent 55%),
    linear-gradient(35deg, #214f3a, #0e3325);
}

.portrait-placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 8rem);
  font-style: italic;
  letter-spacing: -0.12em;
}

.portrait-photo-frame {
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: #1d4c75;
}

.portrait-photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 24%;
}

.card-content {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 1.7rem;
}

.card-kicker {
  margin-bottom: 0.75rem;
  color: var(--lime);
}

.card-content h2 {
  margin: 0 0 0.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.card-content p:last-child {
  margin: 0;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
}

.card-arrow {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 50%;
  font-size: 1.2rem;
}

.landing-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .landing-grid {
    grid-template-columns: 1fr;
    padding: 4rem 0;
  }

  .profile-card {
    max-width: 540px;
  }

  .landing-footer {
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 520px) {
  .landing-shell {
    padding: 0 1.2rem;
  }

  .nav-caption,
  .landing-footer span:last-child {
    display: none;
  }

  .intro-copy h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }
}

*:focus-visible {
  outline: 3px solid #759c35;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Profile detail */
.profile-shell {
  min-height: 100vh;
  background: var(--paper);
}

.profile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--forest-deep);
  color: white;
  padding: 1.4rem 5vw;
}

.wordmark-light span {
  color: var(--lime);
}

.back-link {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: rgba(255,255,255,0.72);
  font-size: 0.84rem;
}

.back-link:hover,
.back-link:focus-visible {
  color: white;
}

.profile-hero {
  position: relative;
  display: grid;
  min-height: 72vh;
  grid-template-columns: minmax(290px, 0.82fr) minmax(0, 1.18fr);
  align-items: end;
  overflow: hidden;
  background: var(--forest-deep);
  color: white;
  padding: 4vh 5vw 7vh;
}

.profile-hero::after {
  position: absolute;
  top: 12%;
  right: -9rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(217, 243, 109, 0.28);
  border-radius: 50%;
  content: '';
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  height: min(60vh, 660px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-bottom: 0;
  border-radius: 1.8rem 1.8rem 0 0;
  background: #1d4c75;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-left: 2rem;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sample-badge {
  border: 1px solid rgba(217, 243, 109, 0.5);
  border-radius: 999px;
  color: var(--lime);
  padding: 0.35rem 0.6rem;
}

.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  max-width: 9ch;
  font-size: clamp(3.6rem, 7.3vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.hero-role {
  margin: 1.5rem 0 0.4rem;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
}

.hero-company {
  margin: 0.65rem 0 0;
  color: rgba(255,255,255,0.58);
  font-size: 1rem;
}

.hero-index {
  position: absolute;
  right: 5vw;
  bottom: 7vh;
  color: rgba(255,255,255,0.38);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.profile-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.7fr);
  gap: 7vw;
  padding: 7rem 5vw;
}

.profile-facts {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.fact-block {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
}

.fact-block span,
.section-label {
  display: block;
  margin: 0 0 0.6rem;
  color: #657269;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact-block strong {
  font-size: 0.95rem;
  line-height: 1.5;
}

.independent-note {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.profile-content > section {
  border-top: 1px solid var(--line);
  padding: 2rem 0 7rem;
}

.profile-content h2 {
  max-width: 18ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.story-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.story-columns p,
.contact-section > p {
  margin: 0;
  color: #465149;
  font-size: 1rem;
  line-height: 1.9;
}

.responsibility-list {
  margin-top: 3rem;
}

.responsibility-item {
  display: grid;
  grid-template-columns: 4rem 0.6fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 1.8rem 0;
}

.responsibility-item > span {
  color: #6a8d35;
  font-family: Georgia, "Times New Roman", serif;
}

.responsibility-item h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.responsibility-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.expertise-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.expertise-list {
  display: flex;
  align-content: start;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.expertise-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  color: #36433a;
  font-size: 0.88rem;
}

.selected-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.selected-work-card {
  min-height: 17rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.6rem;
}

.selected-work-card > span {
  color: #6a8d35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
}

.selected-work-card h3 {
  max-width: 16ch;
  margin: 2.5rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.15;
}

.selected-work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.profile-content > .contact-section {
  border-radius: 1.8rem;
  background: var(--forest);
  color: white;
  padding: clamp(2rem, 5vw, 5rem);
}

.contact-section .section-label {
  color: var(--lime);
}

.contact-section > p {
  max-width: 42rem;
  margin-top: 2rem;
  color: rgba(255,255,255,0.62);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 0.45rem;
}

.contact-link span {
  color: var(--lime);
}

@media (max-width: 900px) {
  .profile-hero {
    min-height: 56vh;
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-photo {
    width: min(100%, 460px);
    height: 54vh;
  }

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

  .profile-body {
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }

  .profile-facts {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .independent-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .profile-hero {
    padding-bottom: 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 17vw, 5.4rem);
  }

  .hero-index {
    display: none;
  }

  .profile-body {
    padding: 3rem 1.2rem;
  }

  .profile-nav {
    padding-inline: 1.2rem;
  }

  .profile-facts,
  .story-columns,
  .expertise-section {
    grid-template-columns: 1fr;
  }

  .responsibility-item {
    grid-template-columns: 2.5rem 1fr;
  }

  .responsibility-item p {
    grid-column: 2;
  }

  .selected-work-grid {
    grid-template-columns: 1fr;
  }

  .profile-content > section {
    padding-bottom: 5rem;
  }
}
