/* ============ Palette ============ */
:root {
  --navy: #14244a;
  --navy-deep: #0b1633;
  --navy-line: #25375f;
  --burgundy: #7b1e3a;
  --burgundy-hover: #641630;
  --lavender: #c9b8ec;
  --lavender-soft: #f3effb;
  --white: #ffffff;
  --ink: #1a2238;
  --muted: #5b6480;
  --line: #e4e1ee;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 14px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 0.75rem;
}
.eyebrow--light { color: var(--lavender); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20, 36, 74, 0.06); }
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--navy); text-decoration: none;
}
.nav__brand span { color: var(--burgundy); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--navy);
  position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--lavender); transition: width .25s;
}
.nav__links a:not(.nav__cta):hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__cta {
  background: var(--burgundy); color: var(--white) !important;
  padding: 8px 18px; border-radius: 999px; transition: background .2s;
}
.nav__cta:hover { background: var(--burgundy-hover); }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px;
}
.nav__toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 184, 236, 0.45), transparent 45%),
    linear-gradient(180deg, var(--white) 0%, var(--lavender-soft) 100%);
}
.hero__inner {
  max-width: var(--max); margin: 0 auto; padding: 72px 24px 96px;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--burgundy); }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.hero__lead strong { color: var(--navy); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.97rem;
  text-decoration: none; transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--ghost { border: 2px solid var(--burgundy); color: var(--burgundy); }
.btn--ghost:hover { background: var(--burgundy); color: var(--white); }

.hero__photo { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.hero__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; background: var(--navy);
  box-shadow: 18px 18px 0 var(--lavender);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.25); transform-origin: 62% 38%; }
.hero__badge {
  position: absolute; left: -28px; bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius); padding: 14px 18px;
  box-shadow: 0 12px 30px rgba(20, 36, 74, 0.15);
  border-left: 4px solid var(--burgundy);
}
.hero__badge-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--burgundy); line-height: 1; }
.hero__badge-num sup { font-size: 0.9rem; }
.hero__badge-label { font-size: 0.78rem; line-height: 1.35; color: var(--muted); }

/* ============ Sections ============ */
.section { padding: 104px 0; }
.section--tint { background: var(--lavender-soft); }
.section--navy { background: var(--navy); color: #d9dcea; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__head { margin-bottom: 48px; max-width: 40rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.about .section__head { margin-bottom: 0; }
.about__body p { color: var(--muted); }
.stats { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats li { border-top: 2px solid var(--navy); padding-top: 14px; }
.stats__num { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--burgundy); line-height: 1.1; }
.stats__label { font-size: 0.88rem; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 200px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--burgundy), var(--lavender));
}
.timeline__item { display: grid; grid-template-columns: 200px 1fr; gap: 48px; position: relative; padding-bottom: 40px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: 194px; top: 8px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--white); border: 3px solid var(--burgundy);
}
.timeline__meta { text-align: right; padding-right: 8px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.timeline__date { font-family: var(--font-mono); font-size: 0.82rem; color: var(--navy); font-weight: 500; }
.timeline__card {
  background: var(--white); border-radius: var(--radius); padding: 28px 30px;
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.timeline__card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 36, 74, 0.09); }
.timeline__org { font-weight: 600; color: var(--burgundy); margin: 4px 0 0; }
.timeline__note { font-size: 0.9rem; color: var(--muted); font-style: italic; margin: 2px 0 0; }
.timeline__callout {
  margin-top: 14px; padding: 14px 16px; border-radius: 10px;
  background: var(--lavender-soft); border-left: 4px solid var(--burgundy);
  font-size: 0.92rem; color: var(--ink); line-height: 1.55;
}
.timeline__callout strong { display: block; color: var(--burgundy); margin-bottom: 2px; }
.timeline__callout em { font-style: normal; font-weight: 600; color: var(--navy); }
.about__body strong { color: var(--navy); }
.timeline__card ul { margin: 14px 0 0; padding-left: 1.1rem; color: var(--muted); }
.timeline__card li { margin-bottom: 6px; }
.timeline__card li::marker { color: var(--lavender); }

.tag {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 999px;
}
.tag--live { background: var(--burgundy); color: var(--white); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span {
  font-family: var(--font-mono); font-size: 0.76rem;
  background: var(--lavender-soft); color: var(--navy);
  border: 1px solid var(--lavender); padding: 4px 11px; border-radius: 999px;
}

/* Projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: var(--white); position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.project::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--navy); transition: background .2s;
}
.project:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 36, 74, 0.1); border-color: var(--lavender); }
.project:hover::before { background: var(--burgundy); }
.project h3 { margin-bottom: 12px; font-size: 1.35rem; }
.project p { color: var(--muted); }
.project .chips { margin-top: auto; padding-top: 8px; }
.project__kind { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--burgundy) !important; margin-bottom: 8px; }

.project--feature {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 0; padding: 44px;
}
.project--feature::before { background: var(--lavender); }
.project--feature:hover::before { background: var(--lavender); }
.project--feature h3 { color: var(--white); font-size: 1.9rem; }
.project--feature p { color: #c8cde0; max-width: 42rem; }
.project--feature .project__kind { color: var(--lavender) !important; }
.project--feature .chips span { background: rgba(201, 184, 236, 0.12); color: var(--lavender); border-color: rgba(201, 184, 236, 0.35); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skills__group {
  border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 26px;
  background: rgba(255, 255, 255, 0.03);
}
.skills__group h3 {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--lavender);
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--navy-line);
}
.skills__group ul { list-style: none; padding: 0; margin: 0; }
.skills__group li { padding: 5px 0; color: var(--white); font-weight: 500; }
.skills__group li::before { content: "▸"; color: #d4708f; margin-right: 10px; font-size: 0.8rem; }
.languages {
  margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding-top: 28px; border-top: 1px solid var(--navy-line); color: var(--white);
}
.languages__label { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--lavender); }
.languages em { font-style: normal; color: #9aa3c0; font-size: 0.88rem; margin-left: 4px; }

/* Education */
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.edu__item { border-left: 3px solid var(--lavender); padding: 4px 0 4px 22px; margin-bottom: 28px; }
.edu__date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--burgundy); }
.edu__item h3 { margin: 4px 0 4px; }
.edu__item p { color: var(--muted); margin: 0; }
.certs { list-style: none; padding: 0; margin: 0; }
.certs li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.certs li:first-child { padding-top: 0; }
.certs__icon { color: var(--burgundy); font-size: 0.9rem; line-height: 1.8; }
.certs strong { display: block; color: var(--navy); }
.certs span { font-size: 0.9rem; color: var(--muted); }

/* Community */
.community { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.community__card { background: var(--white); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.community__card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.community__card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.community__card--accent { background: var(--burgundy); border-color: var(--burgundy); }
.community__card--accent h3 { color: var(--white); }
.community__card--accent p { color: #f0d6de; }

/* Contact */
.contact {
  background:
    radial-gradient(circle at 15% 110%, rgba(123, 30, 58, 0.55), transparent 50%),
    radial-gradient(circle at 90% -10%, rgba(201, 184, 236, 0.25), transparent 45%),
    var(--navy-deep);
  color: #d9dcea; padding: 120px 0; text-align: center;
}
.contact__inner { max-width: 760px; }
.contact h2 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.contact__lead { color: #b9c0d8; }
.contact__email {
  display: inline-block; margin: 1.5rem 0; font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--lavender); text-decoration: none;
  border-bottom: 2px solid var(--burgundy); padding-bottom: 4px; word-break: break-all;
  transition: color .2s;
}
.contact__email:hover { color: var(--white); }
.contact__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; color: #b9c0d8; }
.contact__row a { color: var(--white); text-decoration: none; }
.contact__row a:hover { color: var(--lavender); }
.contact__refs { margin-top: 2rem; font-size: 0.85rem; color: #8790b0; }

.footer {
  background: var(--navy-deep); color: #8790b0; border-top: 1px solid var(--navy-line);
  display: flex; justify-content: space-between; padding: 22px 24px; font-size: 0.85rem;
}
.footer p { margin: 0; }
.footer a { color: var(--lavender); text-decoration: none; }

/* Hero links */
.hero__lead a { color: var(--burgundy); font-weight: 600; text-decoration-color: var(--lavender); text-underline-offset: 3px; }
.hero__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 1.4rem; font-size: 0.93rem; }
.hero__links a { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 500; text-decoration: none; }
.hero__links a:hover { color: var(--burgundy); }
.hero__links svg { width: 18px; height: 18px; }

/* Extra buttons */
.btn--light { background: var(--lavender); color: var(--navy); }
.btn--light:hover { background: var(--white); }
.btn--outline-light { border: 2px solid rgba(201, 184, 236, 0.5); color: var(--white); }
.btn--outline-light:hover { border-color: var(--lavender); color: var(--lavender); }
.btn--burgundy { background: var(--burgundy); color: var(--white); white-space: nowrap; }
.btn--burgundy:hover { background: var(--burgundy-hover); }

/* Featured project */
.showcase {
  display: grid; grid-template-columns: 1fr; margin-bottom: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius); overflow: hidden; color: #c8cde0;
  box-shadow: 0 24px 60px rgba(20, 36, 74, 0.18);
}
.showcase__shot { display: block; position: relative; overflow: hidden; background: var(--navy-deep); aspect-ratio: 16 / 7; border-bottom: 4px solid var(--lavender); }
.showcase__shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .6s ease; }
.showcase__shot:hover img { transform: scale(1.04); }
.showcase__shot::after {
  content: "theclaypotzm.com ↗"; position: absolute; left: 16px; bottom: 16px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--white);
  background: rgba(11, 22, 51, 0.8); padding: 6px 12px; border-radius: 999px;
}
.showcase__body { padding: 44px 48px 40px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.showcase__intro, .showcase__detail { min-width: 0; }
.showcase__body h3 { color: var(--white); font-size: 1.9rem; margin-bottom: 14px; }
.showcase__body .project__kind { color: var(--lavender) !important; display: flex; align-items: center; gap: 8px; }
.showcase__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 4px 0 8px; }
.showcase__cols h4 { margin: 0 0 8px; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lavender); }
.showcase__cols ul { margin: 0; padding-left: 1rem; font-size: 0.92rem; }
.showcase__cols li { margin-bottom: 5px; }
.showcase__cols li::marker { color: #d4708f; }
.showcase__eng { font-size: 0.92rem; border-left: 3px solid var(--burgundy); padding-left: 14px; }
.showcase__eng strong { color: var(--white); }
.showcase .chips span { background: rgba(201, 184, 236, 0.12); color: var(--lavender); border-color: rgba(201, 184, 236, 0.35); }
.showcase__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }

/* Services */
.section__sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 36, 74, 0.1); }
.service__num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--lavender); line-height: 1; }
.service h3 { margin: 14px 0 10px; }
.service p { color: var(--muted); margin: 0; }
.service--accent { background: var(--navy); border-color: var(--navy); }
.service--accent h3 { color: var(--white); }
.service--accent p { color: #c8cde0; }
.service--accent .service__num { color: #d4708f; }
.services__cta {
  margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 28px; border-radius: var(--radius); border: 2px dashed var(--lavender); background: var(--white);
}
.services__cta p { margin: 0; color: var(--navy); font-weight: 500; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .showcase__body { grid-template-columns: 1fr; }
  .showcase__detail { margin-top: 32px; }
  .services { grid-template-columns: 1fr; }
  .skills, .community { grid-template-columns: 1fr 1fr; }
  .about, .edu { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container, .nav__inner, .hero__inner { padding-left: 16px; padding-right: 16px; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__cta { margin-top: 12px; text-align: center; border-bottom: 0 !important; }

  /* Phone hero: same two-column layout as desktop, scaled down */
  .hero__inner {
    grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: center;
    padding-top: 32px; padding-bottom: 48px;
  }
  .hero .eyebrow { font-size: 0.6rem; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
  .hero h1 { font-size: 1.2rem; margin-bottom: 0.7rem; }
  .hero__lead { font-size: 0.78rem; line-height: 1.5; }
  .hero__actions { flex-direction: column; gap: 8px; margin-top: 0.9rem; }
  .hero__actions .btn { padding: 9px 12px; font-size: 0.76rem; }
  .hero__links { flex-direction: column; gap: 6px; margin-top: 0.9rem; font-size: 0.74rem; }
  .hero__links svg { width: 14px; height: 14px; }
  .hero__photo { max-width: none; margin-right: 8px; }
  .hero__frame { box-shadow: 8px 8px 0 var(--lavender); }
  .hero__frame img { object-position: 60% 15%; transform: none; }
  .hero__badge { left: -10px; bottom: 14px; padding: 6px 9px; gap: 6px; border-left-width: 3px; }
  .hero__badge-num { font-size: 1.15rem; }
  .hero__badge-num sup { font-size: 0.6rem; }
  .hero__badge-label { font-size: 0.58rem; }
  .section { padding: 72px 0; }

  .timeline::before { left: 6px; }
  .timeline__item { grid-template-columns: 1fr; gap: 10px; padding-left: 32px; }
  .timeline__item::before { left: 0; }
  .timeline__meta { text-align: left; align-items: flex-start; flex-direction: row; padding: 0; }
  .timeline__card { padding: 22px; }

  .projects, .skills, .community { grid-template-columns: 1fr; }
  .showcase__body { padding: 28px 22px; }
  .showcase__shot { aspect-ratio: 16 / 10; }
  .showcase__cols { grid-template-columns: 1fr; gap: 8px; }
  .services__cta { flex-direction: column; align-items: flex-start; }
  .project--feature { padding: 30px; }
  .stats__num { font-size: 1.8rem; }
  .footer { flex-direction: column; gap: 8px; text-align: center; }
}
