::selection {
  background: rgba(35, 91, 69, 0.18);
  color: #18231f;
}

:root {
  --bg: #f7f1e7;
  --bg-soft: #fdf8f1;
  --bg-deep: #efe5d8;
  --paper: rgba(255, 251, 246, 0.82);
  --paper-strong: rgba(255, 251, 246, 0.94);
  --ink: #18231f;
  --muted: #606661;
  --line: rgba(24, 35, 31, 0.1);
  --line-strong: rgba(24, 35, 31, 0.17);
  --accent: #235b45;
  --accent-warm: #a86a48;
  --shadow: 0 24px 60px rgba(58, 46, 34, 0.08);
  --container: min(1200px, calc(100vw - 32px));
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(168, 106, 72, 0.18), transparent 20%),
    radial-gradient(circle at 88% 10%, rgba(35, 91, 69, 0.15), transparent 18%),
    linear-gradient(180deg, #fbf6ef 0%, #f7f1e7 44%, #faf6ef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(24, 35, 31, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 35, 31, 0.022) 1px, transparent 1px);
  background-size: 94px 94px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 86%);
}

img,
video {
  display: block;
  width: 100%;
}

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

button,
.button {
  font: inherit;
}

.page-shell {
  width: var(--container);
  margin: 0 auto;
  padding-bottom: 40px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.8);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(58, 46, 34, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #193f32);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

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

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(35, 91, 69, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto 4px;
  border-radius: 999px;
  background: var(--ink);
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

.section {
  padding-top: 88px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 130px);
}

.kicker,
.section-tag,
.note-title {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.proof-copy h3,
.gallery-copy h3,
.timeline-item h3,
.resume-copy h2,
.contact-copy h2,
.point-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 6vw, 6.8rem);
}

.hero-text,
.statement-lead p,
.point-card p,
.proof-copy p,
.gallery-copy p,
.timeline-item p,
.detail-list,
.resume-copy p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.82;
}

.hero-text {
  max-width: 60ch;
  margin: 26px 0 0;
  font-size: 1.04rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent), #183f31);
  color: #fff;
  box-shadow: 0 14px 28px rgba(35, 91, 69, 0.2);
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 251, 246, 0.78);
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
}

.portrait-panel,
.insight-note,
.signal-strip,
.statement-lead,
.point-card,
.featured-proof,
.gallery-card,
.profile-panel,
.resume-layout,
.contact-layout {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--paper);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.portrait-panel {
  position: relative;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.portrait-media {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
  background: var(--bg-deep);
}

.portrait-media img {
  aspect-ratio: 0.88;
  object-fit: cover;
  object-position: center top;
}

.portrait-panel figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(24, 35, 31, 0.82);
  color: #fff;
}

.portrait-panel strong,
.contact-grid strong {
  display: block;
}

.portrait-panel span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.insight-note {
  max-width: 340px;
  margin-left: auto;
  padding: 20px 22px;
  border-radius: 24px;
  transform: translateY(-42px);
}

.insight-note p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: -10px;
  padding: 18px 22px;
  border-radius: 999px;
}

.signal-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-strip strong {
  font-size: 0.97rem;
  line-height: 1.55;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.section-heading h2,
.resume-copy h2,
.contact-copy h2 {
  max-width: 15ch;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
}

.statement-layout,
.gallery-layout,
.experience-layout,
.contact-grid {
  display: grid;
  gap: 20px;
}

.statement-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.statement-lead {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.statement-lead p {
  margin: 0;
  font-size: 1.1rem;
}

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

.point-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 28px;
}

.point-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(24, 35, 31, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.point-card h3 {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.featured-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.proof-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.proof-copy h3 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.proof-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.proof-media {
  display: grid;
  grid-template-columns: 1.08fr 0.8fr 0.8fr;
  gap: 16px;
}

.proof-main,
.proof-tall,
.gallery-card img,
.duo-grid img {
  overflow: hidden;
  border-radius: 24px;
  background: var(--bg-deep);
}

.proof-main img {
  aspect-ratio: 1.16;
  object-fit: cover;
}

.proof-tall img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.proof-link {
  position: relative;
  display: block;
}

.proof-link span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(24, 35, 31, 0.78);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.gallery-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 30px;
}

.gallery-copy h3 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

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

.duo-grid img {
  aspect-ratio: 1;
  object-fit: cover;
}

.experience-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(35, 91, 69, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.profile-panel {
  align-self: start;
  padding: 24px;
  border-radius: 30px;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
}

.detail-list li + li {
  margin-top: 10px;
}

.resume-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 32px;
}

.resume-layout {
  background:
    radial-gradient(circle at top right, rgba(35, 91, 69, 0.1), transparent 24%),
    var(--paper-strong);
}

.contact-layout {
  background:
    radial-gradient(circle at top left, rgba(168, 106, 72, 0.12), transparent 22%),
    var(--paper-strong);
}

.contact-section {
  padding-bottom: 24px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.contact-grid a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.contact-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 26px rgba(58, 46, 34, 0.07);
}

.contact-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-grid strong {
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 2px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

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

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

.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero,
  .statement-layout,
  .featured-proof,
  .experience-layout,
  .resume-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: unset;
    padding-top: 20px;
  }

  .signal-strip,
  .statement-points,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof-media {
    grid-template-columns: 1fr;
  }

  .proof-main img {
    aspect-ratio: 1.4;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 251, 246, 0.96);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(24, 35, 31, 0.04);
  }

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

  .signal-strip,
  .statement-points,
  .gallery-layout,
  .duo-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .insight-note {
    max-width: none;
    margin-left: 0;
    transform: translateY(0);
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 22px, 100%);
  }

  .section {
    padding-top: 66px;
  }

  .site-header {
    padding: 12px 14px;
  }

  .hero {
    gap: 24px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .portrait-panel,
  .insight-note,
  .signal-strip,
  .statement-lead,
  .point-card,
  .featured-proof,
  .gallery-card,
  .profile-panel,
  .resume-layout,
  .contact-layout {
    border-radius: 24px;
  }

  .portrait-panel,
  .insight-note,
  .signal-strip,
  .statement-lead,
  .point-card,
  .featured-proof,
  .gallery-card,
  .profile-panel,
  .resume-layout,
  .contact-layout {
    padding: 20px;
  }

  .portrait-media,
  .portrait-panel figcaption,
  .proof-main,
  .proof-tall,
  .gallery-card img,
  .duo-grid img {
    border-radius: 20px;
  }

  .resume-actions {
    width: 100%;
  }

  .resume-actions .button {
    width: 100%;
  }
}

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

  .reveal,
  .button,
  .contact-grid a {
    transition: none;
  }

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