:root {
  --ink: #f6fbff;
  --muted: #9eacba;
  --paper: #071014;
  --surface: #101a22;
  --surface-strong: #162530;
  --line: rgba(255, 255, 255, 0.12);
  --teal: #36d3bd;
  --teal-dark: #0f766e;
  --coral: #ff765f;
  --gold: #f0bd55;
  --blue: #7ba7ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(54, 211, 189, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 22%, rgba(123, 167, 255, 0.16), transparent 24rem),
    linear-gradient(180deg, #071014 0%, #0a1118 46%, #071014 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(54, 211, 189, 0.08) 48%, transparent 54%),
    linear-gradient(65deg, transparent 0 58%, rgba(123, 167, 255, 0.07) 63%, transparent 68%);
  background-size: 220% 220%, 180% 180%;
  animation: ambientSweep 18s ease-in-out infinite alternate;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(7, 16, 20, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  position: relative;
  padding: 8px 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover,
footer a:hover,
.contact-links a:hover {
  color: var(--teal);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: clamp(0px, 1vw, 8px);
}

nav .social-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

nav .social-link::after {
  display: none;
}

nav .social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

nav .social-link:hover {
  color: var(--teal);
  border-color: rgba(54, 211, 189, 0.38);
  background: rgba(54, 211, 189, 0.1);
  box-shadow: 0 12px 28px rgba(54, 211, 189, 0.12);
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 72px) 36px;
}

.hero-copy {
  max-width: 760px;
  animation: riseIn 760ms ease-out both;
}

.eyebrow,
.profile-label,
.project-card p {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  max-width: 880px;
  font-size: clamp(3.1rem, 7.8vw, 7.1rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  line-height: 1.25;
}

.intro {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
}

.community-line {
  display: inline-flex;
  max-width: 680px;
  margin: 4px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(54, 211, 189, 0.08);
  box-shadow: inset 0 0 0 1px rgba(54, 211, 189, 0.12);
}

.community-line strong {
  font-weight: 900;
}

.community-line a {
  color: #7ce7d7;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.community-line a:hover {
  color: var(--ink);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--teal), #7ce7d7);
  color: #061014;
  box-shadow: 0 14px 34px rgba(54, 211, 189, 0.24);
}

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

.button:hover,
.contact-links a:hover {
  transform: translateY(-2px);
}

.button.primary:hover {
  box-shadow: 0 20px 46px rgba(54, 211, 189, 0.32);
}

.button.secondary:hover,
.contact-links a:hover {
  border-color: rgba(54, 211, 189, 0.38);
  background: rgba(54, 211, 189, 0.08);
}

.profile-panel {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
}

.portrait-photo {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(68%, 390px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.44);
  animation: portraitFloat 6.5s ease-in-out infinite;
}

.signal-grid {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
  transform: rotate(-4deg);
}

.signal-grid span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  animation: tileFloat 5.5s ease-in-out infinite;
}

.signal-grid span:nth-child(2n) {
  animation-delay: -1.8s;
}

.signal-grid span:nth-child(3n) {
  animation-delay: -3.2s;
}

.signal-grid span:nth-child(3n) {
  background: rgba(54, 211, 189, 0.18);
}

.signal-grid span:nth-child(4n) {
  background: rgba(255, 118, 95, 0.16);
}

.signal-grid span:nth-child(5n) {
  background: rgba(240, 189, 85, 0.18);
}

.profile-card {
  position: relative;
  z-index: 2;
  justify-self: start;
  margin-top: -72px;
  width: min(88%, 420px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(14, 25, 33, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: cardDrift 7s ease-in-out infinite;
}

.profile-card strong {
  display: block;
  margin-bottom: 24px;
  font-size: 1.55rem;
  line-height: 1.18;
}

dl,
dd {
  margin: 0;
}

.profile-card dl {
  display: grid;
  gap: 16px;
}

.profile-card dt,
.time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.band {
  margin: 0 clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.highlights article {
  padding: 28px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.highlights article:last-child {
  border-right: 0;
}

.highlights span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
}

.highlights .highlight-title {
  max-width: 9ch;
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  line-height: 1.04;
}

.highlights p,
.timeline p,
.split-band p,
.education-list p,
.contact p {
  color: var(--muted);
}

.highlights article:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-3px);
}

.section {
  scroll-margin-top: 88px;
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.two-column,
.split-band,
.contact {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 7vw, 92px);
}

.timeline {
  display: grid;
  position: relative;
  gap: 0;
  padding-left: 34px;
}

.timeline article,
.skill-groups article,
.value-grid article,
.workflow article {
  transition: transform 220ms ease, color 220ms ease, opacity 220ms ease;
}

.timeline article:hover,
.skill-groups article:hover,
.value-grid article:hover,
.workflow article:hover {
  transform: translateY(-3px);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), rgba(123, 167, 255, 0.36));
}

.timeline article {
  position: relative;
  padding: 0 0 36px;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -34px;
  width: 14px;
  height: 14px;
  border: 3px solid #071014;
  border-radius: 50%;
  background: var(--teal);
  box-shadow:
    0 0 0 1px rgba(54, 211, 189, 0.42),
    0 0 20px rgba(54, 211, 189, 0.24);
}

.timeline article:nth-child(2)::before {
  background: var(--blue);
  box-shadow:
    0 0 0 1px rgba(123, 167, 255, 0.42),
    0 0 20px rgba(123, 167, 255, 0.22);
}

.timeline article:last-child {
  padding-bottom: 0;
}

.time {
  margin-bottom: 10px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.professional {
  padding-top: clamp(76px, 8vw, 104px);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
}

.value-grid article {
  min-height: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(54, 211, 189, 0.24);
}

.value-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  aspect-ratio: 1;
  margin-bottom: 22px;
  border: 1px solid rgba(54, 211, 189, 0.24);
  border-radius: 50%;
  padding: 6px 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(54, 211, 189, 0.08);
}

.workflow span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.value-grid p,
.workflow p {
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(54, 211, 189, 0.12), rgba(4, 42, 42, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 16px),
    #082626;
  border: 1px solid rgba(54, 211, 189, 0.2);
  background-size: auto, 220% 220%, auto;
  transition: transform 240ms ease, filter 240ms ease, border-color 240ms ease;
}

.project-card > p,
.project-card > h3,
.project-card > span {
  position: relative;
  z-index: 3;
}

.project-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: clamp(92px, 32%, 148px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 24%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
    url("assets/safeacqua-logo.png") 50% 50% / 238% auto no-repeat,
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.36),
    0 0 34px rgba(54, 211, 189, 0.2);
  transform: rotate(2deg);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.project-catalog {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  z-index: 1;
  height: 132px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
  opacity: 0.92;
  transform: rotate(-1deg);
  transition: transform 240ms ease, opacity 240ms ease;
}

.project-catalog::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(75, 26, 32, 0.2)),
    linear-gradient(90deg, transparent 48%, rgba(75, 26, 32, 0.24));
  pointer-events: none;
}

.project-catalog-safeacqua::after {
  background:
    linear-gradient(180deg, transparent 40%, rgba(4, 42, 42, 0.2)),
    linear-gradient(90deg, transparent 48%, rgba(4, 42, 42, 0.24));
}

.project-catalog-disasteraid::after {
  background:
    linear-gradient(180deg, transparent 34%, rgba(62, 43, 7, 0.22)),
    linear-gradient(90deg, transparent 48%, rgba(62, 43, 7, 0.22));
}

.project-catalog-concert::after {
  background:
    linear-gradient(180deg, transparent 36%, rgba(10, 19, 50, 0.28)),
    linear-gradient(90deg, transparent 48%, rgba(10, 19, 50, 0.22));
}

.project-catalog-air {
  background:
    radial-gradient(circle at 82% 22%, rgba(240, 189, 85, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(54, 211, 189, 0.2), rgba(11, 28, 46, 0.92)),
    #0c2230;
}

.project-catalog-air::after {
  background:
    linear-gradient(180deg, transparent 44%, rgba(6, 28, 37, 0.32)),
    linear-gradient(90deg, transparent 48%, rgba(6, 28, 37, 0.22));
}

.project-catalog img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

.project-catalog-safeacqua img {
  object-position: 56% 50%;
}

.project-catalog-disasteraid img {
  object-position: 52% 38%;
}

.project-catalog-concert img {
  object-position: 50% 50%;
}

.air-forecast-visual {
  position: absolute;
  inset: 14px;
  overflow: hidden;
  border: 1px solid rgba(124, 231, 215, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    rgba(3, 15, 24, 0.54);
  background-size: 100% 24px, 34px 100%, auto;
}

.air-forecast-visual::before {
  content: "Turin PM2.5 forecast";
  position: absolute;
  top: 10px;
  left: 12px;
  color: rgba(246, 251, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.air-bars {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 58px;
}

.air-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
  opacity: 0.78;
}

.air-chart {
  position: absolute;
  right: 12px;
  bottom: 22px;
  left: 12px;
  width: calc(100% - 24px);
  height: 76px;
  fill: none;
  stroke: #d9fff8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  filter: drop-shadow(0 0 9px rgba(54, 211, 189, 0.38));
}

.air-chart path {
  stroke: var(--gold);
  stroke-dasharray: 8 7;
}

.project-badge {
  position: absolute;
  top: 108px;
  right: 26px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(240, 189, 85, 0.34);
  border-radius: 8px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: rgba(28, 21, 6, 0.88);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(240, 189, 85, 0.14);
  transform: rotate(2deg);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.project-badge-jmt {
  color: #b9ccff;
  border-color: rgba(123, 167, 255, 0.38);
  background: rgba(10, 19, 50, 0.9);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(123, 167, 255, 0.14);
}

.project-badge-air {
  width: 76px;
  color: #7ce7d7;
  border-color: rgba(54, 211, 189, 0.38);
  background: rgba(4, 33, 39, 0.9);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(54, 211, 189, 0.16);
}

.project-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.project-logo-learning {
  width: clamp(82px, 27%, 120px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
    url("assets/data-science-learning-logo.png") 50% 50% / 226% auto no-repeat,
    rgba(255, 255, 255, 0.94);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.36),
    0 0 34px rgba(123, 167, 255, 0.18);
  transform: rotate(-2deg);
}

.project-card-safeacqua,
.project-card-learning,
.project-card-disasteraid,
.project-card-concert,
.project-card-air {
  min-height: 330px;
  padding-top: 182px;
}

.project-card-safeacqua:hover .project-logo,
.project-card-learning:hover .project-logo {
  transform: translateY(-4px) rotate(0deg) scale(1.03);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.project-card-safeacqua:hover .project-catalog,
.project-card-learning:hover .project-catalog,
.project-card-disasteraid:hover .project-catalog,
.project-card-concert:hover .project-catalog,
.project-card-air:hover .project-catalog {
  opacity: 1;
  transform: translateY(-3px) rotate(0deg);
}

.project-card-disasteraid:hover .project-badge,
.project-card-concert:hover .project-badge,
.project-card-air:hover .project-badge {
  transform: translateY(-4px) rotate(0deg) scale(1.03);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.42);
}

.project-card-learning {
  background:
    linear-gradient(180deg, rgba(255, 118, 95, 0.14), rgba(75, 26, 32, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 16px),
    #30131a;
  border-color: rgba(255, 118, 95, 0.22);
}

.project-card-disasteraid {
  background:
    linear-gradient(180deg, rgba(240, 189, 85, 0.14), rgba(62, 43, 7, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 16px),
    #302306;
  border-color: rgba(240, 189, 85, 0.24);
}

.project-card-concert {
  background:
    linear-gradient(180deg, rgba(123, 167, 255, 0.16), rgba(10, 19, 50, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0 2px, transparent 2px 16px),
    #101832;
  border-color: rgba(123, 167, 255, 0.25);
}

.project-card-air {
  background:
    linear-gradient(180deg, rgba(54, 211, 189, 0.12), rgba(7, 37, 48, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 16px),
    #0b2230;
  border-color: rgba(54, 211, 189, 0.24);
}

.project-card:hover {
  transform: translateY(-8px);
  filter: saturate(1.08);
  animation: cardPattern 5s linear infinite;
}

.project-card p,
.project-card span {
  color: rgba(246, 251, 255, 0.78);
}

.project-card > .project-link-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 38px;
  margin-top: 18px;
  border: 1px solid rgba(124, 231, 215, 0.42);
  border-radius: 8px;
  padding: 8px 13px;
  color: #061014;
  font-size: 0.84rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), #7ce7d7);
  box-shadow: 0 14px 32px rgba(54, 211, 189, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card-air:hover .project-link-button {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(54, 211, 189, 0.28);
}

.workflow-section {
  padding-top: 0;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  gap: clamp(18px, 4vw, 56px);
  counter-reset: workflow-step;
  padding-top: 62px;
}

.workflow::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), rgba(123, 167, 255, 0.6), rgba(240, 189, 85, 0.55));
  opacity: 0.72;
}

.workflow article {
  position: relative;
  min-height: 0;
  counter-increment: workflow-step;
  padding: 0 6px;
  text-align: center;
}

.workflow article::before {
  content: "";
  position: absolute;
  top: -62px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(7, 16, 20, 0.95);
  border-radius: 50%;
  color: #061014;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow:
    0 0 0 1px rgba(54, 211, 189, 0.36),
    0 14px 34px rgba(54, 211, 189, 0.18);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  transform: translateX(-50%);
}

.workflow article::before {
  content: counter(workflow-step);
}

.tool-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 0;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.tool-strip span {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 0;
  padding: 0 24px 0 0;
  margin-right: 20px;
  color: rgba(246, 251, 255, 0.84);
  background: transparent;
  transition: transform 180ms ease, color 180ms ease;
}

.tool-strip span:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: 7px;
  color: rgba(54, 211, 189, 0.42);
}

.tool-strip span:hover {
  transform: translateY(-2px);
  color: var(--teal);
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.skill-groups article {
  padding: 22px 0 22px 18px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid rgba(54, 211, 189, 0.36);
}

.skill-groups article:nth-child(2),
.skill-groups article:nth-child(4) {
  border-left-color: rgba(123, 167, 255, 0.42);
}

.skill-groups h3 {
  color: var(--ink);
}

.education-list {
  display: grid;
  gap: 14px;
}

.education {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 12%, rgba(123, 167, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 18% 92%, rgba(54, 211, 189, 0.12), transparent 22rem);
}

.education .section-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.education-list {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  gap: 0;
  padding-left: 48px;
}

.education-list::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 38px;
  left: 13px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), rgba(123, 167, 255, 0.45), rgba(54, 211, 189, 0.08));
  box-shadow: 0 0 28px rgba(54, 211, 189, 0.2);
}

.education-list article {
  position: relative;
  min-height: 210px;
  padding: 0 0 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.education-list article::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -43px;
  width: 16px;
  height: 16px;
  border: 3px solid #071014;
  border-radius: 50%;
  background: var(--teal);
  box-shadow:
    0 0 0 1px rgba(54, 211, 189, 0.42),
    0 0 24px rgba(54, 211, 189, 0.32);
}

.education-list article:nth-child(2)::before {
  background: var(--blue);
  box-shadow:
    0 0 0 1px rgba(123, 167, 255, 0.42),
    0 0 24px rgba(123, 167, 255, 0.28);
}

.education-list article:nth-child(3)::before {
  background: var(--gold);
  box-shadow:
    0 0 0 1px rgba(240, 189, 85, 0.42),
    0 0 24px rgba(240, 189, 85, 0.26);
}

.education-list article:last-child {
  min-height: 0;
  padding-bottom: 0;
}

.education-list article:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.education-list h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.education-list h3 span {
  color: var(--muted);
  font-size: 0.74em;
  font-weight: 700;
}

.education-list h3 span::before {
  content: "| ";
}

.education-date {
  margin-bottom: 20px;
  color: var(--gold);
  font-weight: 900;
}

.education-list article > p:not(.education-date) {
  max-width: 840px;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.education-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.education-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(54, 211, 189, 0.16);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
  background: rgba(54, 211, 189, 0.08);
}

.education-list article:nth-child(2) .education-tags span {
  border-color: rgba(123, 167, 255, 0.18);
  color: #b9ccff;
  background: rgba(123, 167, 255, 0.08);
}

.education-list article:nth-child(3) .education-tags span {
  border-color: rgba(240, 189, 85, 0.2);
  color: var(--gold);
  background: rgba(240, 189, 85, 0.08);
}

.contact {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(54, 211, 189, 0.12), rgba(123, 167, 255, 0.08)),
    #071014;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.contact .eyebrow {
  color: #f1be72;
}

.contact p {
  max-width: 640px;
  color: rgba(246, 251, 255, 0.78);
}

.contact-links a {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.cv-preview {
  display: block;
  justify-self: end;
  width: min(360px, 100%);
  max-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.cv-preview img {
  width: 100%;
}

.cv-preview:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientSweep {
  from {
    background-position: 0% 50%, 100% 50%;
  }
  to {
    background-position: 100% 50%, 0% 50%;
  }
}

@keyframes portraitFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes cardDrift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes tileFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.78;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@keyframes cardPattern {
  from {
    background-position: 0 0, 0% 50%, 0 0;
  }
  to {
    background-position: 0 0, 100% 50%, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .two-column,
  .split-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .profile-panel {
    min-height: 460px;
  }

  .portrait-photo {
    justify-self: center;
    width: min(82%, 340px);
  }

  .profile-card {
    left: auto;
    right: auto;
    justify-self: center;
    margin-top: -52px;
    width: calc(100% - 44px);
  }

  .highlights,
  .value-grid,
  .project-grid,
  .workflow,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .workflow {
    gap: 26px;
    padding: 0 0 0 50px;
  }

  .workflow::before {
    top: 0;
    bottom: 0;
    left: 18px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--teal), rgba(123, 167, 255, 0.6), rgba(240, 189, 85, 0.55));
  }

  .workflow article {
    padding: 0 0 20px;
    text-align: left;
  }

  .workflow article::before {
    top: 0;
    left: -50px;
    transform: none;
  }

  .workflow article::after {
    display: none;
  }

  .highlights article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .highlights article:last-child {
    border-bottom: 0;
  }

  .cv-preview {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .contact-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .contact-links a {
    width: 100%;
  }

  .education-list {
    padding-left: 44px;
  }

  .education-list h3 span {
    display: block;
    margin-top: 4px;
  }

  .education-list h3 span::before {
    content: "";
  }

  .profile-panel {
    min-height: 430px;
  }

  .signal-grid {
    inset: 24px;
    gap: 8px;
  }

  .profile-card {
    padding: 22px;
  }

  .project-card {
    min-height: 220px;
  }

  .project-card-safeacqua,
  .project-card-learning,
  .project-card-disasteraid,
  .project-card-concert,
  .project-card-air {
    padding-top: 142px;
  }

  .project-card-learning,
  .project-card-disasteraid,
  .project-card-concert,
  .project-card-air {
    min-height: 350px;
    padding-top: 190px;
  }

  .project-catalog {
    top: 20px;
    left: 20px;
    right: 20px;
    height: 142px;
  }

  .project-logo {
    top: 20px;
    right: 20px;
    width: 116px;
  }

  .project-badge {
    top: 104px;
    right: 22px;
    width: 58px;
    height: 58px;
  }
}
