@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap");

:root {
  color-scheme: light;
  --paper: #f5f1e7;
  --ink: #1c1b19;
  --accent: #bc3b45;
  --accent-deep: #7a232b;
  --stone: #efe7da;
  --line: #d2c4b3;
  --glow: rgba(188, 59, 69, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 241, 231, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.06);
}

.site-logo-image {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.nav-link {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: #4c3d34;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.is-active {
  color: var(--accent-deep);
}

.nav-link.is-active::after {
  width: 100%;
  background: var(--accent);
}

/* ── Hero ── */
.hero {
  padding: 60px 0 40px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.hero-copy h1 strong,
.hero-copy h1 em {
  color: var(--accent);
  font-style: normal;
}

.lead {
  font-size: 1.1rem;
  color: #4a3b32;
  max-width: 540px;
  line-height: 1.6;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.82rem;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(188, 59, 69, 0.3);
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent-deep);
}

.btn-ghost:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-header {
  padding: 8px 18px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.btn-footer {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* ── Portrait ── */
.hero-media {
  display: flex;
  justify-content: center;
}

.portrait-frame {
  width: min(300px, 65vw);
  aspect-ratio: 3 / 4;
  border-radius: 180px 180px 36px 36px;
  overflow: hidden;
  border: 5px solid var(--stone);
  box-shadow:
    0 30px 60px rgba(28, 27, 25, 0.18),
    0 0 0 1px var(--line);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portrait-frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 40px 80px rgba(28, 27, 25, 0.22),
    0 0 0 1px var(--line);
}

/* ── Sections ── */
.section {
  padding: 50px 0;
}

.section h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.8rem;
  margin-top: 28px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section h2:first-child {
  margin-top: 0;
}

.page-hero {
  padding: 50px 0 24px;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.page-hero h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(28, 27, 25, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(28, 27, 25, 0.12);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.card p {
  color: #4a3b32;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ── Animation ── */
@keyframes riseFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero,
.hero-copy,
.hero-media,
.card,
.company-group,
.skill-card,
.contact-form,
.metric {
  animation: riseFade 0.6s ease both;
}

.hero-media {
  animation-delay: 0.15s;
}

.card-grid .card:nth-child(2),
.skills-grid .skill-card:nth-child(2),
.experience-groups .company-group:nth-child(2) {
  animation-delay: 0.12s;
}

.card-grid .card:nth-child(3),
.skills-grid .skill-card:nth-child(3),
.experience-groups .company-group:nth-child(3) {
  animation-delay: 0.24s;
}

.metrics-grid .metric:nth-child(2) { animation-delay: 0.08s; }
.metrics-grid .metric:nth-child(3) { animation-delay: 0.16s; }
.metrics-grid .metric:nth-child(4) { animation-delay: 0.24s; }

/* ── Text links ── */
.text-link {
  color: var(--accent-deep);
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}

.text-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.text-link:hover {
  color: var(--accent);
}

.text-link:hover::after {
  width: 100%;
}

/* ── Lists ── */
.list {
  list-style: disc;
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-left: 20px;
  color: #4a3b32;
  font-size: 0.95rem;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.skill-card h3 {
  margin-bottom: 6px;
}

.skill-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
}

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.skill-row:last-child {
  border-bottom: none;
}

.skill-name {
  font-weight: 600;
  color: #3c2f28;
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.star {
  width: 16px;
  height: 16px;
  background: transparent;
  border: 1.5px solid var(--accent-deep);
  clip-path: polygon(
    50% 0%,
    62% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    38% 35%
  );
  transition: transform 0.2s ease;
}

.star.is-filled {
  background: var(--accent);
  border-color: var(--accent);
}

.skill-row:hover .star.is-filled {
  transform: scale(1.15);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Split grid ── */
.split-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

/* ── Timeline ── */
.timeline {
  display: grid;
  gap: 32px;
}

.timeline-item {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  padding: 24px;
  border-radius: 16px;
  background: #fffaf2;
  border: 1px solid var(--line);
}

.timeline-meta {
  color: #6b4c3b;
  font-weight: 600;
}

.timeline-role {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ── Experience ── */
.experience-groups {
  display: grid;
  gap: 24px;
}

.company-group {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(28, 27, 25, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.company-group:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(28, 27, 25, 0.12);
}

.company-group:hover::before {
  opacity: 1;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.company-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.company-name {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 2px;
}

.company-meta {
  color: #6b4c3b;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
}

.role-list {
  position: relative;
  margin-top: 18px;
  padding-left: 26px;
  display: grid;
  gap: 20px;
}

.role-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--line));
}

.role-item {
  position: relative;
  padding-left: 12px;
}

.role-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px #fffaf2;
}

.role-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.role-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.role-dates {
  color: #6b4c3b;
  font-weight: 600;
  font-size: 0.9rem;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(188, 59, 69, 0.12);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ── Contact form ── */
.contact-form label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  margin-top: 14px;
  font-size: 0.92rem;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(188, 59, 69, 0.1);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  background: #faf5ec;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: #5f4c40;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

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

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

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

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

@media (prefers-reduced-motion: reduce) {
  .page-hero,
  .hero-copy,
  .hero-media,
  .card,
  .company-group,
  .skill-card,
  .contact-form,
  .metric {
    animation: none;
  }

  .pulse {
    animation: none;
  }
}

/* ── Availability badge ── */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 139, 34, 0.1);
  color: #1a7a1a;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  border: 1px solid rgba(34, 139, 34, 0.2);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a822;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 168, 34, 0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 168, 34, 0); }
}

/* ── Impact metrics bar ── */
.metrics-bar {
  padding: 36px 0;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.metrics-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.metrics-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.metric {
  padding: 8px 0;
}

.metric-value {
  display: block;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a89888;
  margin-top: 6px;
}

/* ── Section divider ── */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 0;
}

/* ── Contact details styling ── */
.contact-details p {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}

.contact-details p:last-child {
  border-bottom: none;
}
