:root {
  --bg: #f3efe6;
  --panel: rgba(255, 250, 242, 0.82);
  --panel-strong: #f7f4ed;
  --surface: #dfe4d8;
  --surface-alt: #dae3e9;
  --text: #252321;
  --muted: #645d56;
  --line: rgba(37, 35, 33, 0.12);
  --accent: #c96c45;
  --accent-soft: rgba(201, 108, 69, 0.12);
  --shadow: 0 24px 60px rgba(53, 46, 40, 0.08);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(201, 108, 69, 0.15), transparent 30%),
    radial-gradient(circle at top right, rgba(126, 162, 185, 0.18), transparent 28%),
    linear-gradient(180deg, #ece8de 0%, var(--bg) 22%, #eeece4 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 35, 33, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 35, 33, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 80%);
}

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

body,
a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.4rem;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  font-weight: 700;
}

.brand-mark {
  width: 12px;
  aspect-ratio: 1;
  background: var(--accent);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(37, 35, 33, 0.22);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.8px) rotate(-45deg);
}

.site-nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: var(--shadow);
}

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

.site-nav a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.contact a:hover,
.contact a:focus-visible {
  color: var(--accent);
  background: rgba(201, 108, 69, 0.08);
}

.nav-cta {
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(201, 108, 69, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(201, 108, 69, 0.18);
  box-shadow: 0 10px 20px rgba(201, 108, 69, 0.12);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--text);
  background: rgba(201, 108, 69, 0.28);
}

main {
  display: grid;
  gap: 1.5rem;
}

.section-card,
.quick-stats,
.section-split {
  position: relative;
  overflow: hidden;
}

.section-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
}

/* .section-card::after{
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -40px;
  top: -48px;
  background: var(--accent-soft);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  opacity: 0.9;
} */

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  min-height: 520px;
}

.eyebrow,
.section-kicker,
.timeline-meta p,
.timeline-meta span,
.hero-meta span,
.credentials-grid p,
.contact dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);

.credential-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.credential-link:hover,
.credential-link:focus-visible {
  color: var(--accent);
  border-bottom-color: currentColor;
}
}

.hero h1,
.section-heading-wrap h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(3.4rem, 12vw, 5.1rem);
  /* max-width: 8ch; */
}

.hero h1 span {
  display: block;
  margin-top: 0.7rem;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2rem);
  line-height: 0.95;
}

.hero-summary,
.section-copy p,
.strength-card p,
.timeline-content p,
.contact p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.6rem 0;
}

.hero-meta span {
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: #f7f4ed;
  box-shadow: 0 14px 30px rgba(37, 35, 33, 0.18);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.hero-visual {
  display: grid;
  gap: 1rem;
  min-height: 320px;
}

.portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--surface), var(--surface-alt));
  overflow: hidden;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(243, 239, 230, 0.08), rgba(243, 239, 230, 0.1)),
    linear-gradient(0deg, rgba(243, 239, 230, 0.22), transparent 34%);
  pointer-events: none;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: auto auto 1.2rem 1.2rem;
  width: 84px;
  height: 84px;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  border: 1px solid rgba(37, 35, 33, 0.16);
}

.hex-outline {
  position: absolute;
  border: 1px solid rgba(37, 35, 33, 0.14);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
}

.hex-outline-large {
  width: min(62vw, 340px);
  aspect-ratio: 1;
  top: 2rem;
  right: -2rem;
}

.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  border-radius: var(--radius-xl);
}

.portrait-badge {
  position: absolute;
  z-index: 2;
  left: 1.2rem;
  bottom: 1.2rem;
  max-width: 220px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(244, 238, 226, 0.92);
  box-shadow: 0 16px 30px rgba(37, 35, 33, 0.14);
  backdrop-filter: blur(12px);
}

.portrait-role,
.portrait-name {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.portrait-name {
  margin-top: 0.45rem;
  color: var(--text);
}

.hero-stats-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-stats-panel div,
.quick-stats article,
.strength-card,
.timeline-item,
.skills-grid article,
.credentials-grid article,
.contact-grid dl {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.hero-stats-panel div {
  padding: 1rem;
}

.hero-stats-panel strong,
.quick-stats strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stats-panel div:last-child strong {
  font-size: clamp(1.6rem, 4.2vw, 2.3rem);
}

.hero-stats-panel span,
.quick-stats span {
  color: var(--muted);
  line-height: 1.5;
}

.quick-stats {
  display: grid;
  gap: 1rem;
}

.quick-stats article {
  padding: 1.25rem;
}

.section-heading-wrap {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.section-heading-wrap h2 {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  max-width: 900px;
}

.strength-grid,
.skills-grid,
.credentials-grid,
.contact-grid,
.section-split {
  display: grid;
  gap: 1rem;
}

.strength-card,
.skills-grid article,
.credentials-grid article {
  padding: 1.2rem;
}

.hex-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-bottom: 0.9rem;
  background: var(--accent);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
}

.strength-card h3,
.timeline-content h3,
.skills-grid h3,
.credentials-grid h3 {
  margin: 0 0 0.7rem;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.6rem;
}

.section-split {
  align-items: start;
  padding: 0.4rem 0;
}

.timeline {
  --timeline-axis: 1rem;
  --timeline-dot-size: 0.7rem;
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--timeline-axis);
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: calc(var(--timeline-axis) - (var(--timeline-dot-size) / 2) + 0.5px);
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(201, 108, 69, 0.12);
}

.timeline-meta,
.timeline-content {
  padding-left: 1rem;
}

.skills-grid ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.9;
}

.credentials-grid p,
.contact dd,
.contact a {
  margin: 0;
  /* color: var(--muted); */
}

.credential-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.credentials-grid .credential-clickable {
  transition: background 180ms ease, border-color 180ms ease;
}

.credentials-grid .credential-clickable:hover,
.credentials-grid .credential-clickable:focus-within {
  background: rgba(201, 108, 69, 0.14);
  border-color: rgba(201, 108, 69, 0.28);
}

.contact-grid {
  align-items: start;
}

.contact-grid dl {
  margin: 0;
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.contact-grid div {
  display: grid;
  gap: 0.4rem;
}

.contact dd {
  font-size: 1.08rem;
}

.orange-bullet{
    color: var(--accent);
}

@media (min-width: 760px) {
  .page-shell {
    width: min(calc(100% - 3rem), var(--max-width));
    padding-top: 1.2rem;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 1.25rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0;
    border-radius: 0;
  }

  .site-nav .nav-cta {
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    background: rgba(201, 108, 69, 0.18);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: transparent;
  }

  .site-nav .nav-cta:hover,
  .site-nav .nav-cta:focus-visible {
    background: rgba(201, 108, 69, 0.28);
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    padding: 1.8rem;
  }

  .quick-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .strength-grid,
  .credentials-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section-split {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
    gap: 2rem;
  }

  .timeline-item {
    grid-template-columns: var(--timeline-axis) minmax(0, 1fr);
    gap: 1.4rem;
  }

  .timeline {
    --timeline-axis: clamp(220px, 27vw, 300px);
  }

  .timeline-meta,
  .timeline-content {
    padding-left: 0;
  }
}

@media (min-width: 1024px) {
  .page-shell {
    width: min(calc(100% - 4rem), var(--max-width));
  }

  .section-card {
    padding: 1.8rem;
  }

  .strength-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .skills-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portrait-frame {
    min-height: 560px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-visual,
  .quick-stats article,
  .strength-card,
  .timeline-item,
  .skills-grid article,
  .credentials-grid article,
  .contact-grid > * {
    animation: rise 700ms ease both;
  }

  .hero-visual {
    animation-delay: 120ms;
  }

  .quick-stats article:nth-child(2),
  .strength-card:nth-child(2),
  .skills-grid article:nth-child(2) {
    animation-delay: 120ms;
  }

  .quick-stats article:nth-child(3),
  .strength-card:nth-child(3),
  .skills-grid article:nth-child(3) {
    animation-delay: 180ms;
  }

  .quick-stats article:nth-child(4),
  .strength-card:nth-child(4),
  .skills-grid article:nth-child(4) {
    animation-delay: 240ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO PROFILE LAYOUT FIX */
.hero.section-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 420px;
}
.hero-copy {
  flex: 1 1 0;
  min-width: 0;
}
.hero-visual {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 320px;
  height: 100%;
}
.portrait-frame {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--surface), var(--surface-alt));
  overflow: hidden;
}
.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  border-radius: var(--radius-xl);
}
@media (max-width: 900px) {
  .hero.section-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .portrait-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--surface), var(--surface-alt));
  }
  .portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
    border-radius: var(--radius-xl);
    display: block;
    background: var(--surface);
  }
}
