/* ==========================================================================
   Chloe Andrieux-Amadei — portfolio
   Visual language adapted from cadenkraft.com
   ========================================================================== */

@font-face {
  font-family: "Overused Grotesk";
  src: url("../fonts/OverusedGrotesk-VF.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --color-brand: #c5322e;
  --color-ink: #181818;
  --color-muted: #687385;
  --color-line: #e5eff5;
  --color-border: #ececec;
  --color-accent: #72c7ff;
  --color-accent-ink: #0b3346;
  --bg: #d2d7ff;
  --bg-soft: #f6f9fc;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 6px rgba(3, 27, 78, 0.05);
  --shadow-md: 0 12px 30px rgba(3, 27, 78, 0.1), 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 40px 100px rgba(79, 140, 255, 0.18), 0 20px 60px rgba(34, 211, 238, 0.12);
  --font: "Overused Grotesk", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  color: var(--color-ink);
  background-color: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--color-accent);
  color: var(--color-ink);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

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

.section {
  margin-top: 104px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head__text {
  max-width: 720px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.section-desc {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 17px;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 26px 24px 0;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--container);
  padding: 14px 18px 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(3, 27, 78, 0.1);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--color-accent), #a7dcff);
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 6px 16px rgba(114, 199, 255, 0.45);
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-ink);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--color-brand);
  background: rgba(197, 50, 46, 0.06);
}

.nav-link.is-current {
  color: var(--color-brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  color: var(--color-ink);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  color: var(--color-brand);
  border-color: rgba(197, 50, 46, 0.35);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform 0.25s var(--ease), opacity 0.25s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--primary {
  background: var(--color-ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.btn--primary:hover {
  background: var(--color-brand);
  box-shadow: 0 12px 28px rgba(197, 50, 46, 0.28);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--color-line);
  color: var(--color-ink);
}

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

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn--small {
  padding: 10px 16px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
  margin-top: 132px;
  padding: 44px;
  border: 1px solid rgba(229, 239, 245, 0.9);
  border-radius: 56px;
  background:
    radial-gradient(120% 140% at 18% 16%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.7)),
    linear-gradient(120deg, #f7fbff 0%, #ffffff 55%, #f2f9ff 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 199, 255, 0.35), transparent 65%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(114, 199, 255, 0.25);
}

.hero h1 {
  margin: 20px 0 16px;
  color: #2f6fd1;
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero h1 em {
  font-style: normal;
  color: inherit;
}

.hero-lede {
  max-width: 54ch;
  color: var(--color-muted);
  font-size: 18.5px;
  line-height: 1.6;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

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

.hero-media {
  position: relative;
  z-index: 1;
  padding: 12px;
  border-radius: 36px;
  background: radial-gradient(120% 160% at 10% 10%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.6), var(--shadow-lg);
}

.hero-media svg,
.hero-media img {
  width: 100%;
  height: 440px;
  border-radius: 28px;
  object-fit: cover;
  background: #eef7fd;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-stat {
  padding: 12px 16px;
  border: 1px solid rgba(229, 239, 245, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.hero-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Tags / chips
   -------------------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(114, 199, 255, 0.2);
  color: var(--color-accent-ink);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--outline {
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Experience strip
   -------------------------------------------------------------------------- */

.scroll-hint {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

.scroll-hint span {
  color: var(--color-accent-ink);
}

.exp-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(114, 199, 255, 0.5) transparent;
}

.exp-scroll::-webkit-scrollbar {
  height: 6px;
}

.exp-scroll::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: rgba(114, 199, 255, 0.5);
}

.exp-card {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.exp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 23px rgba(3, 27, 78, 0.08), 0 3px 6px rgba(0, 0, 0, 0.02);
}

.exp-date {
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.exp-role {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.exp-org {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-brand);
}

.exp-points {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.55;
}

.exp-points li {
  position: relative;
  padding-left: 14px;
}

.exp-points li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.exp-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-muted);
}

.exp-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-brand);
}

.exp-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.25s var(--ease);
}

.exp-link:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Project cards
   -------------------------------------------------------------------------- */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.project-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 360px;
  border: 1px solid var(--color-line);
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(3, 27, 78, 0.12);
}

.project-media {
  position: relative;
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: #f4f8fb;
}

.project-media svg,
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-media svg,
.project-card:hover .project-media img {
  transform: scale(1.035);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px 26px 26px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.project-meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

.project-title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.project-title a:hover {
  color: var(--color-brand);
}

.project-excerpt {
  color: var(--color-muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 6px;
}

.view-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.view-more svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.25s var(--ease);
}

.project-card:hover .view-more {
  color: var(--color-brand);
}

.project-card:hover .view-more svg {
  transform: translateX(4px);
}

/* Larger project cards and type in the STEM projects section */
#projects .projects-grid {
  gap: 26px;
}

#projects .project-body {
  gap: 15px;
  padding: 32px 40px;
}

#projects .project-meta {
  font-size: 12.5px;
}

#projects .project-title {
  font-size: 27px;
}

#projects .project-excerpt {
  max-width: 60ch;
  font-size: 17.5px;
  line-height: 1.6;
}

#projects .project-footer {
  margin-top: 0;
}

#projects .view-more {
  font-size: 14.5px;
}

#projects .tag {
  padding: 7px 13px;
  font-size: 12.5px;
}

#projects .section-title {
  font-size: clamp(32px, 3.8vw, 46px);
}

#projects .section-desc {
  font-size: 18.5px;
}

/* --------------------------------------------------------------------------
   Skills
   -------------------------------------------------------------------------- */

.skills-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: 28px;
  background:
    radial-gradient(90% 130% at 10% 0%, rgba(114, 199, 255, 0.12), transparent 60%),
    #fff;
  box-shadow: var(--shadow-sm);
}

.skill-group h3 {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 12px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}

/* --------------------------------------------------------------------------
   Leadership / list rows
   -------------------------------------------------------------------------- */

.rows {
  border-top: 1px solid var(--color-line);
}

.row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--color-line);
}

.row-date {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.row-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.row-sub {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--color-muted);
}

.row-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  background: rgba(114, 199, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  position: relative;
  margin-top: 104px;
  padding: 56px;
  border: 1px solid rgba(229, 239, 245, 0.9);
  border-radius: 44px;
  background:
    radial-gradient(90% 140% at 80% 0%, rgba(114, 199, 255, 0.28), transparent 60%),
    linear-gradient(120deg, #ffffff 0%, #f5fbff 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact h2 {
  max-width: 16ch;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.contact p {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 17px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
}

.contact-details a:hover {
  color: var(--color-brand);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 64px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--color-line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--color-muted);
}

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

.footer-nav a:hover {
  color: var(--color-brand);
}

/* --------------------------------------------------------------------------
   Project detail page
   -------------------------------------------------------------------------- */

.project-hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 44px;
  margin-top: 136px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.back-link:hover {
  color: var(--color-brand);
}

.back-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.project-hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-transform: uppercase;
}

.project-hero .project-meta {
  margin-bottom: 14px;
}

.project-hero .project-lede {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.6;
}

.project-hero .tags {
  margin-top: 22px;
}

.project-hero-media {
  padding: 12px;
  border-radius: 36px;
  background: radial-gradient(120% 160% at 10% 10%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.6), var(--shadow-lg);
}

.project-hero-media svg,
.project-hero-media img {
  width: 100%;
  height: 440px;
  border-radius: 28px;
  object-fit: cover;
  background: #eef7fd;
}

.project-body-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  margin-top: 72px;
}

.prose h2 {
  margin: 44px 0 14px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

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

.prose p {
  margin-bottom: 16px;
  color: #3a424e;
  font-size: 17px;
  line-height: 1.68;
}

.prose ul {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.prose li {
  position: relative;
  padding-left: 24px;
  color: #3a424e;
  font-size: 17px;
  line-height: 1.6;
}

.prose li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(114, 199, 255, 0.18);
}

.project-aside {
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: 120px;
}

.aside-card {
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.aside-card h3 {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.aside-list {
  display: grid;
  gap: 12px;
}

.aside-list dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.aside-list dd {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-weight: 600;
}

.aside-cta {
  padding: 22px;
  border: 1px solid rgba(229, 239, 245, 0.9);
  border-radius: 20px;
  background: radial-gradient(100% 140% at 20% 0%, rgba(114, 199, 255, 0.22), transparent 65%), #fff;
  box-shadow: var(--shadow-sm);
}

.aside-cta p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.project-gallery figure {
  margin: 0;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.project-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-gallery figure:hover img {
  transform: scale(1.06);
}

.project-gallery figcaption {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
}

.project-nav a {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-nav a:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.project-nav span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.project-nav strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.project-nav .next {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Resume page
   -------------------------------------------------------------------------- */

.resume-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 136px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-line);
}

.resume-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-transform: uppercase;
}

.resume-hero p {
  max-width: 46ch;
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 17px;
}

.resume-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  margin-top: 56px;
}

.resume-section {
  margin-bottom: 44px;
}

.resume-section > h2 {
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resume-item {
  margin-bottom: 26px;
}

.resume-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.resume-item-head h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.resume-item-head .when {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: right;
}

.resume-item .where {
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-brand);
}

.resume-item .desc {
  margin-top: 9px;
  color: var(--color-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.resume-item ul {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.resume-item ul li {
  position: relative;
  padding-left: 15px;
}

.resume-item ul li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.resume-link-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-line);
}

.resume-link-item a {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.resume-link-item a:hover {
  color: var(--color-brand);
}

.resume-link-item span {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.resume-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.side-card {
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.side-card h3 {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.side-card p,
.side-card li {
  font-size: 14px;
  line-height: 1.55;
  color: #3a424e;
}

.side-card ul {
  display: grid;
  gap: 8px;
}

.side-card a:hover {
  color: var(--color-brand);
}

.side-card .contact-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--color-line);
  font-size: 13.5px;
}

.side-card .contact-line:last-child {
  border-bottom: 0;
}

.side-card .contact-line span {
  color: var(--color-muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Creative practice
   -------------------------------------------------------------------------- */

.creative-board {
  position: relative;
  padding: 46px 40px 40px;
  border: 1px solid #efe1d3;
  border-radius: 40px;
  background:
    radial-gradient(110% 130% at 12% 0%, #fff9f3 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(158deg, #fdf7f1, #f7f0e7);
  box-shadow: var(--shadow-sm);
}

.creative-board::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1.5px dashed #e4cbb4;
  border-radius: 28px;
  pointer-events: none;
}

.creative-hoops {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.creative-hoop-card {
  margin: 0;
  text-align: center;
}

.creative-hoop {
  width: min(100%, 290px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 30px rgba(96, 63, 38, 0.16);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.creative-hoop img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.creative-hoop-card:nth-child(1) .creative-hoop {
  transform: rotate(-1.5deg);
}

.creative-hoop-card:nth-child(2) .creative-hoop {
  transform: rotate(1deg);
}

.creative-hoop-card:nth-child(3) .creative-hoop {
  transform: rotate(-1deg);
}

.creative-hoop-card:hover .creative-hoop {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 24px 44px rgba(96, 63, 38, 0.22);
}

.creative-hoop-card figcaption {
  margin-top: 20px;
}

.creative-hoop-card h3 {
  margin: 0 0 4px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.creative-hoop-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.creative-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1.5px dashed #e4cbb4;
}

.creative-feature h3 {
  margin: 10px 0 12px;
  font-size: 30px;
  letter-spacing: -0.015em;
}

.creative-feature p {
  margin: 0 0 18px;
  max-width: 46ch;
  color: var(--color-muted);
}

.creative-feature-media {
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: 26px;
  box-shadow: 0 20px 40px rgba(96, 63, 38, 0.16);
}

.creative-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .creative-board {
    padding: 36px 26px 32px;
  }

  .creative-hoops {
    gap: 16px;
  }

  .creative-feature {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 560px) {
  .creative-board {
    padding: 30px 20px 26px;
  }

  .creative-hoops {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .creative-hoop {
    width: min(100%, 260px);
  }

  .creative-feature h3 {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero,
  .project-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-media svg,
  .hero-media img,
  .project-hero-media svg,
  .project-hero-media img {
    height: 380px;
  }

  .project-body-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 860px) {
  .nav,
  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-md);
  }

  .site-header.nav-open .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    margin-top: 118px;
    padding: 30px;
    border-radius: 36px;
  }

  .hero-media svg,
  .hero-media img,
  .project-hero-media svg,
  .project-hero-media img {
    height: 320px;
  }

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

  .project-card {
    flex-direction: column;
    min-height: 0;
  }

  .project-media {
    flex: none;
    aspect-ratio: 1 / 1;
    padding: 18px;
  }

  .skills-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .row-badge {
    justify-self: start;
  }

  .contact {
    padding: 34px 28px;
    border-radius: 32px;
  }

  .resume-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .resume-side {
    grid-template-columns: 1fr;
  }

  .project-aside {
    grid-template-columns: 1fr;
  }

  .project-nav {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 18px;
  }

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

  .header-inner {
    padding: 10px 12px;
    border-radius: 16px;
  }

  .brand-name {
    display: none;
  }

  .hero {
    margin-top: 100px;
    padding: 22px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lede {
    font-size: 16.5px;
  }

  .hero-media svg,
  .hero-media img,
  .project-hero-media svg,
  .project-hero-media img {
    height: 250px;
  }

  .exp-card {
    flex-basis: 84vw;
  }

  .section {
    margin-top: 76px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  #projects .project-body {
    padding: 24px;
  }

  #projects .project-title {
    font-size: 25px;
  }

  #projects .project-meta {
    font-size: 11.5px;
  }

  #projects .tag {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  #projects .tags {
    gap: 6px;
  }

  #projects .view-more {
    white-space: nowrap;
  }

  .contact {
    padding: 28px 22px;
    border-radius: 26px;
  }

  .project-body {
    padding: 20px;
  }
}

/* --------------------------------------------------------------------------
   Print (resume)
   -------------------------------------------------------------------------- */

@media print {
  body {
    background: #fff;
  }
  .site-header,
  .site-footer,
  .resume-actions,
  .reveal {
    display: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .resume-hero {
    margin-top: 0;
  }
  .resume-layout {
    display: block;
  }
  .resume-side {
    margin-top: 24px;
  }
}
