:root {
  --ink: #e8eef6;
  --muted: #8d98aa;
  --paper: #080b12;
  --paper-deep: #111827;
  --forest: #060910;
  --green: #55d8ff;
  --accent: #9b7cff;
  --line: rgba(156, 178, 209, .18);
  --max: 1240px;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(circle at 82% 8%, rgba(85, 216, 255, .08), transparent 28rem),
    radial-gradient(circle at 10% 38%, rgba(155, 124, 255, .065), transparent 32rem);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .8rem 1rem;
  color: white;
  background: var(--forest);
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}

.site-header.scrolled {
  background: rgba(8, 11, 18, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.wordmark {
  width: fit-content;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.05em;
}

.wordmark span { color: var(--accent); }

nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }

nav a {
  font-size: .78rem;
  font-weight: 650;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
}

nav a:hover { color: var(--green); }

.print-button {
  justify-self: end;
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: .64rem 1rem;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(85, 216, 255, .06);
}

.print-button:hover { color: #071018; border-color: var(--green); background: var(--green); }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8.5rem var(--pad) 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  background-image:
    linear-gradient(rgba(85, 216, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 216, 255, .035) 1px, transparent 1px);
  background-size: 52px 52px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(46vw, 680px);
  height: min(46vw, 680px);
  right: 4vw;
  top: 8vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85,216,255,.12), rgba(155,124,255,.04) 46%, transparent 70%);
  filter: blur(18px);
}

.hero-grid {
  width: 100%;
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .65fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 2rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--green);
  font-size: .74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68f7a2;
  box-shadow: 0 0 0 5px rgba(104, 247, 162, .11), 0 0 18px rgba(104, 247, 162, .45);
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 7vw, 7.25rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.065em;
}

h1 em { color: var(--green); font-weight: 400; }

.hero-intro {
  max-width: 630px;
  margin: 2.2rem 0 0;
  color: #9aa7b9;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions { display: flex; gap: .8rem; margin-top: 2.2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .8rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: .83rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: #071018; border-color: var(--green); background: var(--green); box-shadow: 0 0 28px rgba(85,216,255,.14); }
.button-primary:hover { background: #8ee7ff; }
.button-secondary:hover { color: #071018; border-color: var(--ink); background: var(--ink); }

.identity-card {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(21, 30, 47, .78), rgba(11, 16, 27, .7));
  box-shadow: 0 26px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(16px);
}

.identity-card::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  z-index: -1;
  border: 1px solid rgba(85,216,255,.22);
}

.portrait-wrap { overflow: hidden; aspect-ratio: 1; background: var(--paper-deep); border-bottom: 1px solid rgba(85,216,255,.2); }

.portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.76) contrast(1.04);
  transition: transform .6s ease;
}

.identity-card:hover .portrait { transform: scale(1.02); }

.identity-name { margin: 1rem 0 .2rem; font-family: Georgia, serif; font-size: 1.45rem; }
.identity-role { margin: 0; color: var(--muted); font-size: .9rem; }

.quick-facts { margin: 1.2rem 0 0; border-top: 1px solid var(--line); }
.quick-facts div { display: flex; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.quick-facts dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.quick-facts dd { margin: 0; font-size: .82rem; font-weight: 700; }

.scroll-note {
  max-width: var(--max);
  width: 100%;
  margin: 3rem auto 0;
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--muted);
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.scroll-note span { width: 42px; height: 1px; background: var(--muted); }

.section { padding: clamp(6rem, 11vw, 10rem) var(--pad); }

.section-content, .section-heading, .project-list {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  max-width: var(--max);
  margin: 0 auto 3.5rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.section-label span { color: var(--accent); }

.about { background: rgba(13, 18, 29, .94); }
.about-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 10vw, 10rem); }

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.7vw, 5.7rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
}

.about-copy > p { color: #99a5b6; font-size: 1.03rem; line-height: 1.8; }
.about-copy .lead { margin-top: 0; color: var(--ink); font-family: Georgia, serif; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.45; }

.skill-groups {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.skill-groups div { padding: 1.25rem 1.5rem 1.25rem 0; border-bottom: 1px solid var(--line); }
.skill-groups div:nth-child(odd) { border-right: 1px solid var(--line); }
.skill-groups div:nth-child(even) { padding-left: 1.5rem; }
.skill-groups h3 { margin: 0 0 .55rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; }
.skill-groups p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.projects { background: rgba(8, 11, 18, .9); }
.section-heading h2 { max-width: 780px; margin-bottom: 4rem; }
.section-heading .section-label { margin-left: 0; }

.project {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 220px 30px;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  transition: padding .25s, background .25s;
}

.project:last-child { border-bottom: 1px solid var(--line); }
.project > a { position: absolute; inset: 0; z-index: 2; }
.project:hover { padding-left: 1rem; padding-right: 1rem; background: linear-gradient(90deg, rgba(85,216,255,.07), rgba(155,124,255,.035)); }
.project-index { color: var(--accent); font: italic 1rem Georgia, serif; }
.project-type { margin: 0 0 .5rem; color: var(--muted); font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.project h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; letter-spacing: -.035em; }
.project-main > p:last-child { max-width: 620px; margin: .55rem 0 0; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.project-tech { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.project-tech li { padding: .38rem .65rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .68rem; }
.project-arrow { font-size: 1.3rem; transition: transform .2s; }
.project:hover .project-arrow { transform: translate(3px, -3px); }

.journey { color: #e9eef7; background: #0b101a; }
.journey .section-label { color: #96a099; }
.journey .section-content > h2 { max-width: 840px; }
.timeline { margin-top: 5rem; border-top: 1px solid rgba(255,255,255,.17); }
.timeline article { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; padding: 2.3rem 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.timeline-meta { display: flex; flex-direction: column; gap: .35rem; color: #8f9a92; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.timeline h3 { margin: 0; font: 400 clamp(1.6rem, 2.5vw, 2.4rem) Georgia, serif; }
.timeline-place { margin: .35rem 0 1rem; color: #c4cdc7; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.timeline article div:last-child > p:last-child { max-width: 620px; margin-bottom: 0; color: #9ea8a1; line-height: 1.7; }

.modules { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3rem; }
.modules > p { margin: 0; color: #8f9a92; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.modules div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.5rem; }
.modules a { color: #d8ded9; font-size: .82rem; text-decoration: none; border-bottom: 1px solid #526158; padding-bottom: .2rem; }
.modules a:hover { color: white; border-color: var(--accent); }

.education { margin-top: 4rem; }
.education > h3 { margin: 0 0 1.5rem; color: #8f9a92; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.education ul { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; list-style: none; border-top: 1px solid rgba(255,255,255,.17); }
.education li { display: grid; grid-template-columns: 110px 1fr; gap: .35rem 1rem; padding: 1.25rem 1.5rem 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.education li:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.17); }
.education li:nth-child(even) { padding-left: 1.5rem; }
.education span { grid-row: 1 / 3; color: #8f9a92; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.education strong { font: 400 1rem Georgia, serif; }
.education small { color: #8f9a92; font-size: .76rem; }

.contact {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: 8rem var(--pad);
  color: white;
  background: #0d1713;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,8,15,.96), rgba(7,10,19,.66)), url('/assets/workspace-banner.png') center / cover;
  filter: saturate(.8);
}

.contact-content { position: relative; z-index: 1; width: 100%; max-width: var(--max); }
.eyebrow.light { color: #d6ded8; }
.contact h2 { max-width: 800px; font-size: clamp(3.4rem, 7vw, 7rem); }
.contact-content > p:not(.eyebrow) { margin: 1.5rem 0 2rem; color: #c4cdc7; font-size: 1.05rem; }
.button-light { border-color: var(--green); color: #071018; background: var(--green); box-shadow: 0 0 32px rgba(85,216,255,.16); }
.button-light:hover { color: white; background: transparent; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.contact-phone { color: #d2d9d4; font-size: .85rem; text-underline-offset: .35rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--pad);
  color: #aab2ac;
  background: #05070c;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .identity-card { max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .project { grid-template-columns: 34px 1fr 24px; }
  .project-tech { grid-column: 2 / 4; }
  .timeline article { grid-template-columns: 1fr; }
  .modules { flex-direction: column; }
  .modules div { justify-content: flex-start; }
  .education ul { grid-template-columns: 1fr; }
  .education li:nth-child(odd) { border-right: 0; }
  .education li:nth-child(even) { padding-left: 0; }
}

@media (max-width: 560px) {
  .site-header { height: 68px; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero { padding-top: 7rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .identity-card { width: calc(100% - 10px); }
  .skill-groups { grid-template-columns: 1fr; }
  .skill-groups div:nth-child(odd) { border-right: 0; }
  .skill-groups div:nth-child(even) { padding-left: 0; }
  .project { grid-template-columns: 28px 1fr 20px; gap: .8rem; }
  .project-main > p:last-child { font-size: .85rem; }
  footer { flex-direction: column; }
}

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

@media print {
  :root { --paper: white; --ink: #172019; --muted: #68716a; --line: rgba(23,32,25,.16); }
  body { color: var(--ink); background: white; background-image: none; }
  body::before, .site-header, .scroll-note, .hero-actions, .contact-backdrop, .contact, footer { display: none !important; }
  .hero { min-height: auto; padding: 1.5cm 0 1cm; }
  .hero-grid { grid-template-columns: 1fr 140px; gap: 1cm; }
  .identity-card { padding: .2cm; }
  .identity-card::before, .quick-facts { display: none; }
  .identity-name { font-size: 12pt; }
  h1 { font-size: 34pt; }
  .section { padding: 1cm 0; break-inside: avoid; }
  .about-grid { grid-template-columns: .7fr 1.3fr; gap: 1cm; }
  h2 { font-size: 25pt; }
  .project { grid-template-columns: 24px 1fr 140px; padding: .45cm 0; break-inside: avoid; }
  .project-arrow { display: none; }
  .journey { color: var(--ink); background: white; }
  .journey .section-label, .timeline-meta, .timeline-place, .timeline article div:last-child > p:last-child { color: var(--muted); }
  .timeline { margin-top: 1cm; border-color: var(--line); }
  .timeline article { padding: .5cm 0; border-color: var(--line); }
  .modules a { color: var(--ink); }
  .reveal { opacity: 1; transform: none; }
  a { text-decoration: none; }
}
