:root {
  --charcoal: #241A14;
  --charcoal-deep: #17100C;
  --cream: #F7F0E6;
  --cream-alt: #F0E7D8;
  --rust: #6B3A24;
  --rust-deep: #4E2A19;
  --orange: #CD7F45;
  --orange-soft: rgba(205, 127, 69, 0.16);
  --sage: #A9C9B8;
  --text-muted: #8A7563;
  --card-border: rgba(107, 58, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--rust-deep);
  background: var(--cream);
  line-height: 1.65;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: inherit;
  margin: 0 0 12px;
}

a {
  color: var(--rust);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(36, 26, 20, var(--header-reveal, 0));
  z-index: 30;
}

.site-header.scrolled {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(23, 16, 12, 0.18), 0 1px 3px rgba(23, 16, 12, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #FFFFFF;
}

.site-header nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  margin-left: 30px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-header nav a:hover {
  color: #FFFFFF;
}

.site-header nav a:active {
  color: var(--orange);
}

.site-header nav a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 3px;
}

.site-header nav a.active {
  color: #FFFFFF;
  font-weight: 700;
}

/* ---------- Hero photo ---------- */
.hero {
  position: relative;
  background: var(--charcoal);
}

.hero-photo {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(0.3) contrast(1.06) brightness(0.82);
}

.hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(36, 26, 20, 0.2) 0%, rgba(23, 16, 12, 0.8) 100%);
  mix-blend-mode: multiply;
}

.hero-curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-curves path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.65;
}

.hero-curves path:nth-child(2) {
  opacity: 0.4;
}

.hero-curves path:nth-child(4) {
  opacity: 0.3;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  flex-shrink: 0;
}

/* ---------- Statement ---------- */
.statement {
  background: var(--cream);
  padding: 32px 0 24px;
}

.statement .container {
  position: relative;
}

.statement .container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: var(--card-border);
}

.statement-grid {
  display: grid;
  grid-template-columns: 1.3fr 1px 1.2fr;
  gap: 28px;
  align-items: start;
}

.grid-line {
  align-self: stretch;
  background: var(--card-border);
}

.headline-row {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.statement h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--rust);
  margin: 0;
  padding-top: 4px;
}

.text-highlight {
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.text-highlight-sage {
  background-image: linear-gradient(to top, var(--sage) 46%, transparent 46%);
}

.text-highlight-orange {
  background-image: linear-gradient(to top, var(--orange) 46%, transparent 46%);
}

.statement-side {
  padding-top: 6px;
}

.profile-photo {
  flex-shrink: 0;
  width: 190px;
  height: 240px;
  border-radius: 8px 42px 8px 8px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(75, 45, 25, 0.08),
    0 16px 36px rgba(75, 45, 25, 0.18);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.body-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--rust);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid var(--rust);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.contact-link-outline {
  background: transparent;
  color: var(--rust);
}

.contact-link .arrow {
  transition: transform 0.15s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

.contact-link:hover .arrow {
  transform: translateX(3px);
}

@media (max-width: 720px) {
  .statement-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .grid-line,
  .statement .container::after {
    display: none;
  }

  .headline-row {
    flex-direction: column;
    gap: 20px;
  }

  .profile-photo {
    width: 160px;
    height: 200px;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 76px 0;
  background: var(--cream);
}

.section-curved {
  position: relative;
  overflow: hidden;
}

.section-curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.section-curves path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.18;
}

.section-curves path:nth-child(2) {
  opacity: 0.12;
}

.section-curves path:nth-child(4) {
  opacity: 0.1;
}

.section-alt {
  background: var(--cream-alt);
}

.section h2 {
  font-size: 2rem;
  color: var(--rust);
  margin-bottom: 36px;
}

/* Featured education entry (flat, same layer as the rest) */
.edu-featured {
  position: relative;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--card-border);
}

.edu-featured h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.edu-featured-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 18px 0 20px;
}

.edu-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.edu-stat-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  color: var(--rust);
  line-height: 1;
}

.edu-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.edu-stat-divider {
  width: 1px;
  align-self: stretch;
  background: var(--card-border);
}

/* Secondary education entries (flat, line-based layer) */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 8px;
}

.edu-divider {
  width: 1px;
  align-self: stretch;
  background: var(--card-border);
}

.edu-card h3 {
  font-size: 1.05rem;
  color: var(--rust);
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.edu-card:hover h3 {
  color: var(--orange);
}

@media (max-width: 560px) {
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .edu-divider {
    display: none;
  }
}

.edu-tag {
  display: inline-block;
  background-image: linear-gradient(to top, var(--sage) 46%, transparent 46%);
  color: var(--charcoal-deep);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0 3px;
  margin-bottom: 10px;
}

.edu-tag-current {
  background-image: linear-gradient(to top, var(--orange) 46%, transparent 46%);
}

/* Panels (flat, line-based) */
.panel {
  background: none;
  border: none;
  border-top: 1px solid var(--card-border);
  border-radius: 0;
  padding: 28px 0 4px;
  margin-bottom: 0;
}

.panel:last-child {
  margin-bottom: 0;
}

.panel h3 {
  font-size: 1.1rem;
  color: var(--rust);
  margin-bottom: 6px;
}

.interest-list {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.interest-list span {
  color: var(--orange);
  margin: 0 10px;
}

/* Projects (flat, line-based) */
.project {
  position: relative;
  display: flex;
  gap: 22px;
  background: none;
  border: none;
  border-top: 1px solid var(--card-border);
  border-radius: 0;
  padding: 32px 8px 32px 24px;
  margin-bottom: 0;
  transition: transform 0.2s ease;
}

.project:first-child {
  border-top: none;
  padding-top: 4px;
}

.project:hover {
  transform: translateX(6px);
}

.project:hover .project-accent {
  width: 7px;
}

.project-accent {
  position: absolute;
  left: 0;
  top: 32px;
  bottom: 32px;
  width: 4px;
  border-radius: 2px;
  transition: width 0.2s ease;
}

.project:first-child .project-accent {
  top: 4px;
}

.project-accent-1 {
  background: var(--orange);
}

.project-accent-2 {
  background: var(--sage);
}

.project-accent-3 {
  background: var(--rust);
}

.project-accent-4 {
  background: var(--rust-deep);
}

.project-index {
  flex-shrink: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--card-border);
  line-height: 1.2;
}

.project-body {
  min-width: 0;
}

.project h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

@media (max-width: 560px) {
  .project {
    flex-direction: column;
    gap: 8px;
    padding: 24px 22px 24px 26px;
  }

  .project-index {
    font-size: 1.5rem;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.entry-sub {
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.entry-detail {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.entry-detail strong {
  color: var(--rust);
}

/* ---------- Accent swatches ---------- */
.accent-bar {
  position: relative;
  background: var(--cream);
  padding: 0;
}

.accent-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 25px;
  height: 1px;
  background: var(--card-border);
}

.swatch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 60px;
}

.swatch-row span {
  border-radius: 4px;
}

.swatch-1 {
  width: 34px;
  height: 22px;
  margin: 0 22px 0 0;
  transform: translateY(13px);
  background: var(--sage);
}

.swatch-2 {
  width: 50px;
  height: 42px;
  margin: 0 30px 14px 0;
  background: var(--orange);
}

.swatch-3 {
  width: 60px;
  height: 60px;
  margin: 0 18px 0 0;
  transform: translateY(4px);
  border-radius: 10px;
  background: var(--rust);
}

.swatch-4 {
  width: 38px;
  height: 28px;
  margin: 0 34px 24px 0;
  background: var(--rust-deep);
}

.swatch-5 {
  width: 46px;
  height: 48px;
  margin: 0 16px 0 0;
  transform: translateY(9px);
  border-radius: 8px;
  background: var(--sage);
}

.swatch-6 {
  width: 28px;
  height: 18px;
  margin: 0 0 6px 0;
  background: var(--orange);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .header-inner {
    padding: 14px 20px;
  }

  .site-header nav a {
    margin-left: 16px;
    font-size: 0.85rem;
  }

  .hero-photo {
    height: 340px;
  }

  .statement {
    padding: 72px 0 56px;
  }

  .section {
    padding: 56px 0;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  padding-top: 64px;
}

.footer-curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.footer-curves path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.4;
}

.footer-curves path:nth-child(2) {
  opacity: 0.25;
}

.footer-curves path:nth-child(3) {
  opacity: 0.3;
}

.footer-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  display: block;
  margin-bottom: 10px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(247, 240, 230, 0.55);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: rgba(247, 240, 230, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: #FFFFFF;
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 3px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-email {
  color: var(--orange);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.footer-email:hover {
  border-color: var(--orange);
}

.footer-email:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 3px;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(247, 240, 230, 0.12);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 32px;
}

.footer-bottom-inner p {
  margin: 0;
  color: rgba(247, 240, 230, 0.5);
  font-size: 0.82rem;
}

.footer-bottom .tag-dot {
  border-color: var(--orange);
}

@media (max-width: 560px) {
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-contact {
    align-items: flex-start;
  }
}
