/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f5f5f3;
  --surface:     #ffffff;
  --text:        #111111;
  --text-muted:  #6b6b6b;
  --accent:      #0071e3;
  --accent-rgb:  0,113,227;
  --border:      rgba(0,0,0,.08);
  --radius:      18px;
  --nav-h:       68px;
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.85,0,.15,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0,0,0,.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              border-color .35s;
}

body.cursor-hover .cursor          { width: 12px; height: 12px; }
body.cursor-hover .cursor-follower { width: 56px; height: 56px; border-color: rgba(0,113,227,.4); }

@media (hover: none) { .cursor, .cursor-follower { display: none; } }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }

.section__eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}

.section__title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--text);
  margin-bottom: 3rem;
}

/* split-title — each line wrapped by JS */
.split-line-wrap {
  display: block;
  overflow: hidden;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section   { padding: 130px 0; }
.section__header { max-width: 560px; }

/* ============================================================
   NAV — Apple-style: centered links, shrinks on scroll
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
  z-index: 200;
  transition: height .45s var(--ease-out),
              background .45s var(--ease-out),
              box-shadow .45s var(--ease-out),
              padding .45s var(--ease-out);
}

/* scrolled: frosted glass + smaller */
.nav.scrolled {
  height: 52px;
  background: rgba(245,245,243,.88);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  box-shadow: 0 1px 0 var(--border);
}

/* hero area: transparent dark nav for readability on shelf photo */
.nav.nav--dark {
  color: #fff;
}
.nav.nav--dark .nav__links a { color: rgba(255,255,255,.8); }
.nav.nav--dark .nav__logo    { color: #fff; }
.nav.nav--dark .nav__cta     { background: #fff; color: #111 !important; }
.nav.nav--dark .nav__burger span { background: #fff; }

.nav__logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.04em;
  justify-self: start;
  transition: font-size .45s var(--ease-out);
}
.nav.scrolled .nav__logo { font-size: .92rem; }

/* centered links — pill/rounded-rectangle container */
.nav__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-self: center;
  padding: .5rem 1.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .35s var(--ease-out),
              border-color .35s var(--ease-out);
}

/* pill inverts for dark (hero) overlay */
.nav--dark .nav__links {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
}

.nav__links a {
  text-decoration: none;
  font-size: .86rem;
  font-weight: 500;
  color: var(--text);
  opacity: .6;
  transition: opacity .25s;
  cursor: none;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
}

/* hover underline — expands from center */
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  right: 50%;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: left .25s var(--ease-out), right .25s var(--ease-out);
}

.nav__links a:not(.nav__cta):hover::after { left: 0; right: 0; }

.nav__links a:hover { opacity: 1; }

.nav__cta {
  background: var(--text);
  color: var(--bg) !important;
  opacity: 1 !important;
  padding: .45rem 1.15rem;
  border-radius: 999px;
  font-size: .82rem !important;
  transition: padding .45s var(--ease-out), font-size .45s var(--ease-out);
}
.nav.scrolled .nav__cta { padding: .38rem 1rem; }

/* right slot — placeholder to keep grid symmetric */
.nav__right {
  justify-self: end;
  display: flex;
  align-items: center;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 199;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at calc(100% - 3rem) 34px);
  transition: clip-path .7s var(--ease-out);
  pointer-events: none;
}

.mobile-menu.open {
  clip-path: circle(150% at calc(100% - 3rem) 34px);
  pointer-events: all;
}

.mobile-menu ul { list-style: none; text-align: center; }

.mobile-menu li { overflow: hidden; margin-bottom: 1.8rem; }

.mobile-menu a {
  display: inline-block;
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.04em;
  transform: translateY(100%);
  transition: transform .6s var(--ease-out), color .2s;
}

.mobile-menu.open a { transform: translateY(0); }

.mobile-menu a:hover { color: var(--accent); }

/* stagger delays */
.mobile-menu li:nth-child(1) a { transition-delay: .1s; }
.mobile-menu li:nth-child(2) a { transition-delay: .16s; }
.mobile-menu li:nth-child(3) a { transition-delay: .22s; }
.mobile-menu li:nth-child(4) a { transition-delay: .28s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .8rem 2rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  cursor: none;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(0,0,0,.2);
}

.btn--large { padding: 1.05rem 2.6rem; font-size: 1rem; }

/* ripple on click */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
  border-radius: inherit;
}

.btn:active::after { transform: scaleX(1); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-image: url('shelf.jpg');
  background-size: cover;
  background-position: center;
}

/* dark overlay on the shelf photo so text remains readable */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,6,4,.68);
  z-index: 1;
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
}

.hero__content {
  position: relative;
  z-index: 50;
  max-width: 860px;
  padding: var(--nav-h) 2rem 0;
  pointer-events: none; /* pass mouse through to canvas, except actions */
}

/* buttons must be clickable over the canvas */
.hero__actions {
  pointer-events: all;
}

/* hero dark bg — invert button colors for legibility */
.hero .btn--primary {
  background: #fff;
  color: #111;
}
.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* hint label */
.hero__hint {
  position: absolute;
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
  white-space: nowrap;
}

.hint-text {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  animation: hintPulse 3.5s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: .25; }
  50%       { opacity: .65; }
}

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #00ff88;
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero__name {
  font-size: clamp(4rem, 10vw, 8.5rem);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .05em;
  color: #f5f5f0;
  text-shadow: 0 2px 40px rgba(0,0,0,.6);
}

.split-line {
  display: block;
  overflow: hidden;
}

.split-line-inner {
  display: block;
  transform: translateY(110%);
}

.hero__tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,.55);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  opacity: 0;
}

.btn--ghost {
  color: rgba(255,255,255,.85) !important;
  border-color: rgba(255,255,255,.25) !important;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

/* scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  opacity: 0;
}

.scroll-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollDrop 2s var(--ease-out) infinite;
  transform-origin: top;
}

@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  background: var(--surface);
}

.marquee {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}

.marquee span {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee .dot { color: var(--accent); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem;
  align-items: center;
}

.about__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
}

.about__img-placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #e2e2e0, #c8c8c6);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: .9rem;
  font-weight: 500;
}

.about__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* cover that slides up to reveal image */
.about__img-cover {
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform-origin: bottom;
  border-radius: var(--radius);
}

.about__bio {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text-muted);
  opacity: 0;
}

.about__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  opacity: 0;
}

.stat__number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--text);
  line-height: 1;
  margin-bottom: .3rem;
}

.stat__label {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .04em;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills { background: var(--surface); }

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: border-color .3s;
  cursor: none;
}

.skill-card:hover { border-color: rgba(var(--accent-rgb),.2); }

/* shine sweep on hover */
.skill-card__shine {
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255,255,255,.45) 50%,
    transparent 60%);
  transform: skewX(-15deg);
  transition: left .6s var(--ease-out), opacity .6s;
  opacity: 0;
  pointer-events: none;
}

.skill-card:hover .skill-card__shine {
  left: 125%;
  opacity: 1;
}

.skill-card__icon {
  width: 40px; height: 40px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.skill-card__icon svg { width: 100%; height: 100%; }

.skill-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .65rem;
  color: var(--text);
}

.skill-card__desc { font-size: .9rem; line-height: 1.65; }

/* ============================================================
   HOW I WORK
   ============================================================ */
.how__steps { display: grid; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
  cursor: none;
}

.step__line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
  transform-origin: left;
  transform: scaleX(0);
}

.step:first-child { border-top: 1px solid var(--border); }

.step__number {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -.06em;
  color: rgba(0,0,0,.07);
  line-height: 1;
  padding-top: .2rem;
  transition: color .4s var(--ease-out);
}

.step:hover .step__number { color: var(--accent); }

.step__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .55rem;
  color: var(--text);
}

.step__desc { font-size: .93rem; line-height: 1.72; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience { background: var(--surface); }

.timeline { display: grid; gap: 0; }

.timeline__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.timeline__item:first-child { border-top: 1px solid var(--border); }

.timeline__year {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-top: .3rem;
}

.timeline__role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}

.timeline__company {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .7rem;
}

.timeline__desc { font-size: .92rem; line-height: 1.72; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%,
    rgba(var(--accent-rgb),.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact__inner { max-width: 680px; margin: 0 auto; position: relative; text-align: left; }

/* ── Contact Form ──────────────────────────────────────────── */
.contact-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.form-group label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group label span[aria-hidden] { color: var(--accent); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(0,0,0,.28); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,.1);
}

/* GDPR checkbox row */
.form-group--check { margin-top: .4rem; }

.check-label {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.check-box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  margin-top: 2px;
  transition: border-color .2s, background .2s;
  display: flex; align-items: center; justify-content: center;
}

.check-label input:checked ~ .check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.check-label input:checked ~ .check-box::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.check-label input:focus-visible ~ .check-box {
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.25);
}

.check-text {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.check-text a { color: var(--accent); }
.check-text strong { color: var(--text); }

.form-legal {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: .8rem 1rem;
  border-left: 2px solid var(--border);
  border-radius: 0 8px 8px 0;
  background: rgba(0,0,0,.02);
}
.form-legal a { color: var(--accent); }

/* feedback banner */
.form-feedback {
  padding: .9rem 1.2rem;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 500;
}
.form-feedback.success {
  background: rgba(0,180,100,.1);
  color: #006d3e;
  border: 1px solid rgba(0,180,100,.25);
}
.form-feedback.error-msg {
  background: rgba(229,62,62,.08);
  color: #c53030;
  border: 1px solid rgba(229,62,62,.2);
}

/* submit button spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spin-arc { transform-origin: center; animation: spin .8s linear infinite; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.contact__title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  letter-spacing: -.04em;
  margin-bottom: 1rem;
}

.contact__sub {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
  opacity: 0;
}

.contact__socials {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
  cursor: none;
}

.social-link svg { width: 17px; height: 17px; }
.social-link:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p { font-size: .83rem; color: var(--text-muted); }

/* ============================================================
   MAGNETIC WRAPPER (JS adds .mag-wrap)
   ============================================================ */
.mag-wrap { display: inline-block; }

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.quote-section {
  background: var(--text);
  color: #f5f5f0;
  padding: 140px 2rem;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.quote-section::before {
  content: '"';
  position: absolute;
  top: -0.15em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28rem;
  font-weight: 800;
  color: rgba(255,255,255,.03);
  line-height: 1;
  pointer-events: none;
  font-family: Georgia, serif;
}

.quote-section__inner { max-width: 860px; margin: 0 auto; position: relative; }

.quote-section__attr {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 2rem;
}

.quote-section__text {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 2.5rem;
  font-style: normal;
}

/* override split-title color on dark bg */
.quote-section .word-inner { color: #fff; }

.quote-section__sub {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.45);
  line-height: 1.75;
}

/* ============================================================
   EDUCATION HORIZONTAL SCROLL
   ============================================================ */
.education {
  padding-bottom: 0;
  overflow: hidden;
}

.edu-track-wrap {
  margin-top: 3rem;
  overflow: hidden;
}

.edu-track {
  display: flex;
  gap: 2rem;
  padding: 0 2rem 5rem;
  width: max-content;
}

.edu-card {
  width: 360px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: box-shadow .35s var(--ease-out);
}

.edu-card:hover {
  box-shadow: 0 24px 64px rgba(0,0,0,.1);
}

.edu-card--accent {
  background: #001a4d;
  border-color: #003087;
  color: #e8edf5;
}

.edu-card--dark {
  background: var(--text);
  border-color: rgba(255,255,255,.08);
  color: #f0f0ee;
}

/* decorative large year behind card */
.edu-card::before {
  content: attr(data-year);
  position: absolute;
  bottom: -1rem;
  right: 1rem;
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: -.06em;
  color: rgba(0,0,0,.04);
  line-height: 1;
  pointer-events: none;
}

.edu-card--accent::before { color: rgba(255,255,255,.04); }
.edu-card--dark::before   { color: rgba(255,255,255,.04); }

.edu-card__year {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.edu-card--accent .edu-card__year { color: #7ba8ff; }
.edu-card--dark   .edu-card__year { color: rgba(255,255,255,.4); }

.uni-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  display: block;
}

.edu-card--accent .uni-mark circle,
.edu-card--accent .uni-mark rect,
.edu-card--accent .uni-mark polygon { stroke: #7ba8ff !important; }
.edu-card--accent .uni-mark text   { fill: #7ba8ff !important; }

.edu-card--dark .uni-mark circle,
.edu-card--dark .uni-mark rect,
.edu-card--dark .uni-mark polygon { stroke: rgba(255,255,255,.4) !important; }
.edu-card--dark .uni-mark text    { fill: rgba(255,255,255,.4) !important; }

.edu-card__uni {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .2rem;
}

.edu-card--accent .edu-card__uni,
.edu-card--dark   .edu-card__uni { color: inherit; }

.edu-card__city {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  letter-spacing: .04em;
}

.edu-card--accent .edu-card__city,
.edu-card--dark   .edu-card__city { color: rgba(255,255,255,.35); }

.edu-card__degree {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.edu-card--accent .edu-card__degree { border-color: rgba(255,255,255,.1); }
.edu-card--dark   .edu-card__degree { border-color: rgba(255,255,255,.08); }

.edu-card__detail {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.edu-card--accent .edu-card__detail,
.edu-card--dark   .edu-card__detail { color: rgba(255,255,255,.45); }

/* ============================================================
   PROGETTI PAGE
   ============================================================ */
.proj-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0 2rem 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #111827 50%, #0a0f1e 100%);
}

.proj-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: .55;
}

.proj-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(8,6,4,.85) 0%,
    rgba(8,6,4,.2) 60%,
    transparent 100%);
  z-index: 1;
}

.proj-hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

.proj-hero__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.proj-hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 1.25rem;
}

.proj-hero__sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
  max-width: 540px;
}

/* projects grid */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .3s var(--ease-out), box-shadow .3s;
  cursor: none;
}

.proj-card:hover {
  border-color: rgba(var(--accent-rgb), .25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.proj-card--wide {
  grid-column: span 2;
}

.proj-card__tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.proj-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
  line-height: 1.25;
}

.proj-card__desc {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.proj-card__kpis {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.proj-kpi {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.proj-kpi__value {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}

.proj-kpi__label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.proj-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}

.chip {
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .08);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), .15);
}

/* accent bar left edge */
.proj-card::before {
  content: '';
  position: absolute;
  left: 0; top: 2rem; bottom: 2rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity .3s;
}

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

@media (max-width: 768px) {
  .projects__grid { grid-template-columns: 1fr; }
  .proj-card--wide { grid-column: span 1; }
  .proj-hero { min-height: 55vh; padding-bottom: 3.5rem; }
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: translateY(16px) scale(0.75);
  transition: opacity .35s var(--ease-out),
              transform .35s var(--ease-out),
              box-shadow .25s;
  pointer-events: none;
  box-shadow: 0 4px 24px rgba(0, 113, 227, 0.35);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 8px 28px rgba(0, 113, 227, 0.5);
}

.scroll-top svg { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid  { grid-template-columns: 1fr; gap: 3rem; }
  .about__img-placeholder { aspect-ratio: 4/3; max-width: 400px; }
}

@media (max-width: 640px) {
  .section { padding: 90px 0; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero__name { font-size: clamp(3rem, 13vw, 5rem); }
  .skills__grid   { grid-template-columns: 1fr; }
  .step           { grid-template-columns: 56px 1fr; }
  .step__number   { font-size: 2rem; }
  .timeline__item { grid-template-columns: 1fr; gap: .4rem; }
  .about__stats   { flex-wrap: wrap; gap: 1.5rem; }
  .hero__actions  { flex-direction: column; align-items: center; }
}
