/* =========================================================
   Carlos Villanueva — Portfolio
   Execoore-inspired light theme
   Deep teal-navy (#004767) + bright cyan (#03BFCB)
   Montserrat + JetBrains Mono · mobile-first · vanilla CSS
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (from Execoore skin.css) */
  --navy:          #004767;
  --navy-deep:     #00374f;
  --navy-700:      #013c57;
  --navy-soft:     rgba(0, 71, 103, 0.06);

  --cyan:          #03bfcb;
  --cyan-bright:   #25d6e0;
  --cyan-deep:     #02a3ae;
  --cyan-soft:     rgba(3, 191, 203, 0.12);
  --cyan-line:     rgba(3, 191, 203, 0.38);

  --ink:           #06283b;
  --text:          #404d60;
  --text-dim:      #6b7888;
  --text-faint:    #94a1ae;
  --white:         #ffffff;

  --bg:            #ffffff;
  --bg-alt:        #e4edf3;   /* light blue-gray sections */
  --bg-soft:       #f2f7fa;
  --bg-hero:       linear-gradient(160deg, #eaf3f8 0%, #f6fafc 48%, #ffffff 100%);

  --border:        rgba(0, 71, 103, 0.10);
  --border-strong: rgba(0, 71, 103, 0.18);

  --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1180px;
  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 18px;

  --shadow-sm: 0 8px 22px -12px rgba(0, 71, 103, 0.30);
  --shadow-md: 0 22px 45px -22px rgba(0, 71, 103, 0.38);
  --shadow-lg: 0 34px 70px -28px rgba(0, 71, 103, 0.45);
  --shadow-cyan: 0 16px 34px -14px rgba(3, 191, 203, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }

::selection { background: var(--cyan); color: #03283b; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.accent { color: var(--cyan); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: var(--navy-deep);
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.6);
}

.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--cyan);
  border-radius: 8px;
  padding: 7px 9px;
  line-height: 1;
  box-shadow: 0 0 0 0 var(--cyan-line);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.brand:hover .brand__mark {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px var(--cyan);
}
.brand__name {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* Hamburger */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu — mobile drawer */
.nav__menu {
  position: fixed;
  inset: 68px 0 auto 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 22px 22px;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.nav__link {
  display: block;
  padding: 12px 6px;
  font-size: 0.96rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--cyan); }

.nav__link--cta {
  color: var(--navy);
  background: var(--cyan);
  text-align: center;
  border-radius: 8px;
  margin-top: 8px;
  font-weight: 700;
}
.nav__link--cta:hover { color: var(--navy); background: var(--cyan-bright); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              color 0.25s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--cyan);
  color: #053040;
  box-shadow: var(--shadow-cyan);
}
.btn--primary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -14px rgba(0, 71, 103, 0.6);
}

.btn--ghost {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}

.btn--light {
  background: var(--white);
  color: var(--navy);
}
.btn--light:hover {
  background: var(--cyan);
  color: #053040;
  transform: translateY(-3px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--bg-hero);
  padding: 124px 0 120px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 10%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 10%, #000 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 30px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.5rem, 9vw, 4.6rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 20px 0 0;
}
.hero__title .accent { color: var(--cyan); }

.hero__role {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 600;
  color: var(--navy-700);
  margin-top: 18px;
  max-width: 34ch;
}
.hero__role strong { color: var(--cyan-deep); }

.hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  color: var(--text-dim);
  margin-top: 16px;
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Hero figure (Carlos) — circular portrait */
.hero__figure {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hero__ring {
  position: absolute;
  z-index: 0;
  width: min(84%, 432px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed var(--cyan-line);
  transform: scale(1.085);
  opacity: 0.55;
  pointer-events: none;
}
.hero__circle {
  position: relative;
  z-index: 1;
  width: min(84%, 432px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, var(--cyan) 0%, var(--cyan-deep) 50%, var(--navy) 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  will-change: transform;
}
/* Soft navy floor so the body melts into the orb's lower edge */
.hero__circle::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, var(--navy) 0%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__badge {
  position: absolute;
  z-index: 2;
  left: 2%;
  bottom: 15%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.hero__badge i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--cyan-soft);
  color: var(--cyan-deep);
}
.hero__badge i svg { width: 20px; height: 20px; }
.hero__badge b { display: block; font-size: 0.92rem; color: var(--navy); }
.hero__badge span { font-size: 0.74rem; color: var(--text-faint); }

/* =========================================================
   FEATURE CARDS (overlap hero)
   ========================================================= */
.features {
  position: relative;
  z-index: 5;
  margin-top: -64px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.feature:hover::before { transform: scaleX(1); }

.feature__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--cyan-deep);
  background: var(--cyan-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature__icon svg { width: 30px; height: 30px; }
.feature:hover .feature__icon {
  background: var(--navy);
  color: var(--cyan-bright);
  transform: rotate(-6deg);
}
.feature__title { font-size: 1.18rem; margin-bottom: 10px; }
.feature__text { font-size: 0.92rem; color: var(--text-dim); }

/* =========================================================
   METRICS BAND (navy)
   ========================================================= */
.metrics {
  background:
    radial-gradient(120% 160% at 100% 0%, var(--navy-700), transparent 60%),
    var(--navy);
  color: var(--white);
  padding: 64px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 18px;
}
.stat {
  position: relative;
  padding-left: 18px;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.stat.is-visible::before { transform: scaleY(1); }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
  color: var(--cyan-bright);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__label {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.01em;
}

/* =========================================================
   SECTION SCAFFOLD
   ========================================================= */
.section {
  padding: 80px 0;
  position: relative;
}
.section--alt { background: var(--bg-alt); }

.section__head { margin-bottom: 30px; }
.section__index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
}
.section__title .accent { color: var(--cyan); }
.section__lead {
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 1rem;
  max-width: 60ch;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  display: grid;
  gap: 28px;
  margin-top: 6px;
}
.about__body p { color: var(--text); margin-bottom: 16px; }
.about__body p:last-child { margin-bottom: 0; }
.about__body strong { color: var(--navy); font-weight: 700; }

.about__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: fit-content;
}
.about__card-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 18px;
}
.facts { display: flex; flex-direction: column; gap: 15px; }
.facts li {
  display: grid;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.facts li:last-child { border-bottom: none; padding-bottom: 0; }
.facts__key {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 600;
}
.facts__val { font-size: 0.92rem; color: var(--navy); font-weight: 600; }

/* =========================================================
   SKILLS
   ========================================================= */
.skills {
  display: grid;
  gap: 26px;
}
.skill-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.skill-group:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.skill-group__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.skill-group__name::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--cyan);
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), background 0.2s var(--ease);
  cursor: default;
}
.chip:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-line);
  color: var(--navy);
  background: var(--cyan-soft);
}
.chip--expert { color: var(--navy); border-color: var(--border-strong); }
.chip--expert::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
  flex: none;
}

/* =========================================================
   EXPERIENCE — pipeline timeline (signature)
   ========================================================= */
.timeline {
  position: relative;
  margin-top: 6px;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--cyan-line) 26%, var(--border) 100%);
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-node {
  position: absolute;
  left: -32px;
  top: 10px;
  width: 16px;
  height: 16px;
  transform: translateX(-1px) rotate(45deg);
  background: var(--white);
  border: 2px solid var(--cyan);
  border-radius: 3px;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tl-item:hover .tl-node {
  background: var(--cyan);
  box-shadow: 0 0 0 5px var(--cyan-soft);
}

.tl-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 18px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid transparent;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              box-shadow 0.28s var(--ease);
}
.tl-card:hover {
  transform: translateX(5px);
  border-left-color: var(--cyan);
  box-shadow: var(--shadow-md);
}
.tl-period {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan-deep);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.tl-role { font-size: 1.14rem; font-weight: 700; }
.tl-org {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 600;
  margin: 4px 0 14px;
}
.tl-points { display: flex; flex-direction: column; gap: 9px; }
.tl-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}
.tl-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-line);
}

/* =========================================================
   PROJECTS
   ========================================================= */
.projects {
  display: grid;
  gap: 20px;
  margin-top: 4px;
}
.project {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.project:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.project:hover::after { transform: scaleX(1); }

.project__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  font-weight: 600;
  margin-bottom: 12px;
}
.project__title { font-size: 1.24rem; font-weight: 700; margin-bottom: 12px; }
.project__desc {
  font-size: 0.93rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.project__stack { display: flex; flex-wrap: wrap; gap: 8px; }
.project__stack li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan-deep);
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-line);
  padding: 4px 10px;
  border-radius: 6px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(130% 150% at 0% 0%, var(--navy-700), transparent 55%),
    var(--navy);
  color: var(--white);
  padding: 56px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 100%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 90% at 80% 100%, #000, transparent 70%);
  pointer-events: none;
}
.contact > * { position: relative; }
.contact__title { color: var(--white); font-size: clamp(1.6rem, 5vw, 2.3rem); }
.contact__lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 48ch;
  margin: 14px auto 26px;
  font-size: 1rem;
}
.contact__email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 4.5vw, 1.7rem);
  font-weight: 600;
  color: var(--cyan-bright);
  letter-spacing: -0.01em;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--cyan-line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  word-break: break-all;
}
.contact__email:hover { color: var(--white); border-color: var(--cyan); }
.contact__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 44px 0 30px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  color: var(--white);
}
.site-footer__brand .brand__mark { color: var(--navy); }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
}
.site-footer__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s var(--ease);
}
.site-footer__links a:hover { color: var(--cyan); }
.site-footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* =========================================================
   SCROLL TO TOP
   ========================================================= */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--cyan);
  color: #053040;
  cursor: pointer;
  box-shadow: var(--shadow-cyan);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy); color: var(--white); }
.to-top svg { width: 20px; height: 20px; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE — tablet & up
   ========================================================= */
@media (min-width: 640px) {
  .container { padding-inline: 30px; }
  .nav { padding-inline: 30px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .skills { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 980px) {
  .hero { padding: 150px 0 130px; }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .hero__figure { min-height: 560px; }
  .hero__ring,
  .hero__circle { width: min(92%, 470px); }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .features { margin-top: -80px; }
  .about { grid-template-columns: 1.5fr 1fr; gap: 44px; }
  .section { padding: 100px 0; }

  /* Desktop nav — inline, no drawer */
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__link { padding: 8px 14px; font-size: 0.9rem; }
  .nav__link:not(.nav__link--cta)::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 2px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav__link:not(.nav__link--cta):hover::after,
  .nav__link.is-active:not(.nav__link--cta)::after { transform: scaleX(1); }
  .nav__link--cta { margin-top: 0; margin-left: 8px; padding: 9px 18px; }
}

@media (min-width: 1180px) {
  .hero__title { font-size: 4.8rem; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
