/* ============================================================
   SRE Resume — design tokens
   ============================================================ */
:root {
  /* surfaces */
  --bg: #060912;
  --bg-2: #0a0f1c;
  --bg-3: #11172a;
  --line: rgba(220, 230, 255, 0.07);
  --line-strong: rgba(220, 230, 255, 0.14);

  /* ink */
  --fg: #e8e6df;
  --fg-2: #b9bbc2;
  --fg-3: #6e7280;
  --fg-4: #4a4e58;

  /* accents */
  --cyan: oklch(0.82 0.14 200);
  --cyan-dim: oklch(0.82 0.14 200 / 0.55);
  --magenta: oklch(0.72 0.22 340);
  --magenta-dim: oklch(0.72 0.22 340 / 0.55);

  /* type */
  --f-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --f-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* rhythm */
  --gutter: clamp(24px, 5vw, 88px);
  --maxw: 1240px;
  --nav-h: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* film grain + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
}


/* ============================================================
   Top nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.78) 0%, rgba(6, 9, 18, 0.55) 100%);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav__brand {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__brand .dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.nav__brand b {
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__links a {
  padding: 8px 14px;
  color: var(--fg-3);
  border-radius: 999px;
  transition: color .25s ease, background .25s ease;
  position: relative;
}

.nav__links a:hover {
  color: var(--fg);
}

.nav__links a.is-active {
  color: var(--fg);
}

.nav__links a.is-active::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-dim);
}

.nav__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .25s ease, background .25s ease;
}

.nav__cta:hover {
  border-color: var(--cyan);
  background: rgba(77, 212, 232, 0.06);
}

.nav__cta .arrow {
  width: 14px;
  height: 14px;
  position: relative;
}

.nav__cta .arrow::before,
.nav__cta .arrow::after {
  content: "";
  position: absolute;
  background: var(--cyan);
}

.nav__cta .arrow::before {
  left: 6px;
  top: 1px;
  width: 1px;
  height: 10px;
}

.nav__cta .arrow::after {
  left: 2px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
  transform: rotate(45deg);
  background: transparent;
}

/* layout */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  scroll-margin-top: var(--nav-h);
}

.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}

.section__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 56px;
}

.section__label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--magenta);
  box-shadow: 0 0 6px var(--magenta-dim);
}

.section__label span {
  color: var(--cyan);
}


/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + clamp(80px, 14vw, 180px));
  padding-bottom: clamp(80px, 12vw, 160px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero__bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.hero__bg .glow-cyan {
  top: -260px;
  left: 12%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, oklch(0.75 0.18 200) 0%, transparent 65%);
}

.hero__bg .glow-magenta {
  top: -180px;
  right: 6%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, oklch(0.65 0.24 340) 0%, transparent 65%);
  opacity: 0.4;
}

.hero__bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  opacity: 0.6;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 40px;
}

.hero__meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg-2);
}

.hero__meta .pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.hero__meta .sep {
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

.hero__name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--fg);
}

.hero__name em {
  font-style: italic;
  color: var(--fg-2);
}

.hero__role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero__role-title {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__role-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta-dim);
}

.hero__tagline {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}

.hero__tagline span {
  color: var(--fg);
  font-style: normal;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.85em;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: var(--gutter);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.hero__scroll::before {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
}


/* ============================================================
   About
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about__lead {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}

.about__lead em {
  font-style: italic;
  color: var(--fg-2);
}

.about__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
}

.about__body p+p {
  margin-top: 1em;
}

.about__metrics {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--line);
  position: relative;
}

.metric:last-child {
  border-right: 0;
  padding-right: 0;
}

.metric:nth-child(n+2) {
  padding-left: 24px;
}

.metric__value {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.metric__value sub {
  font-size: 0.45em;
  font-family: var(--f-mono);
  color: var(--cyan);
  margin-left: 4px;
  vertical-align: baseline;
}

.metric__label {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ============================================================
   Experience
   ============================================================ */
.exp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.role {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding: 48px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.role:first-child {
  border-top: 0;
  padding-top: 0;
}

.role::after {
  content: "";
  position: absolute;
  left: 0;
  top: 48px;
  width: 16px;
  height: 1px;
  background: var(--magenta);
  opacity: 0;
  transition: opacity .4s ease, width .4s ease;
}

.role:first-child::after {
  top: 0;
}

.role:hover::after {
  opacity: 1;
  width: 28px;
}

.role__years {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  padding-top: 8px;
}

.role__years b {
  color: var(--fg);
  font-weight: 500;
}

.role__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.role__title {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
  color: var(--fg);
  margin: 0;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* .role__title em {
  font-style: italic;
  color: var(--fg-2);
} */

.role__company {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.role__summary {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0 0 22px;
  max-width: 62ch;
}

.role__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.role__bullets li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
}

.role__bullets li::before {
  content: "→";
  font-family: var(--f-mono);
  color: var(--magenta);
  font-size: 14px;
  line-height: 1.7;
}

.role__bullets b {
  color: var(--fg);
  font-weight: 500;
}

.role__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.role__tags span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}


/* ============================================================
   Stack / Tooling
   ============================================================ */
.stack__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  margin-bottom: 64px;
  align-items: end;
}

.stack__lead {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}

.stack__lead em {
  font-style: italic;
  color: var(--fg-2);
}

.stack__hint {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin: 0;
  align-self: end;
}

.stack__hint::before {
  content: "// ";
  color: var(--cyan);
}

.stack__group {
  margin-bottom: 56px;
}

.stack__group:last-child {
  margin-bottom: 0;
}

.stack__group-title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.stack__group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.stack__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tool {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.tool:hover {
  background: var(--bg-2);
}

.tool__mark {
  font-family: var(--f-mono);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-weight: 500;
  transition: color .25s ease, transform .25s ease;
}

.tool:hover .tool__mark {
  color: var(--cyan);
  transform: translateY(-3px);
}

.tool__name {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: center;
  padding: 0 6px;
  transition: color .25s ease, opacity .25s ease;
}

.tool:hover .tool__name {
  color: var(--fg-2);
}

.tool__tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  padding: 10px 14px;
  white-space: nowrap;
  z-index: 10;
  display: grid;
  gap: 4px;
  min-width: 140px;
}

.tool:hover .tool__tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tool__tip-name {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--fg);
  font-weight: 500;
}

.tool__tip-years {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
}

.tool__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--line-strong);
}


/* ============================================================
   Focus areas
   ============================================================ */
.focus__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.focus__item {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
}

.focus__item:nth-child(even) {
  padding-left: clamp(24px, 4vw, 64px);
  border-left: 1px solid var(--line);
}

.focus__item:nth-child(odd) {
  padding-right: clamp(24px, 4vw, 64px);
}

.focus__num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.focus__title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  color: var(--fg);
  margin: 0 0 8px;
  font-weight: 400;
}

.focus__title em {
  font-style: italic;
  color: var(--fg-2);
}

.focus__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-3);
  margin: 0;
  max-width: 48ch;
}

/* ============================================================
   Contact / Footer
   ============================================================ */
.contact {
  text-align: left;
}

.contact__pretext {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact__pretext::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cyan);
}

.contact__line {
  font-family: var(--f-display);
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
}

.contact__line em {
  font-style: italic;
  color: var(--fg-2);
}

.contact__line a {
  position: relative;
  display: inline-block;
  color: var(--fg);
  transition: color .25s ease;
}

.contact__line a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 2px;
  background: var(--magenta);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.6, .04, .2, 1);
}

.contact__line a:hover {
  color: var(--cyan);
}

.contact__line a:hover::after {
  background: var(--cyan);
}

.contact__socials {
  margin-top: clamp(56px, 8vw, 96px);
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.contact__socials a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color .25s ease, border-color .25s ease;
}

.contact__socials a:hover {
  color: var(--fg);
  border-top-color: var(--cyan);
}

.contact__socials a::after {
  content: "↗";
  color: var(--magenta);
  font-size: 14px;
}

footer {
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

footer .colo {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* ============================================================
   Section reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s cubic-bezier(.2, .6, .2, 1), transform .9s cubic-bezier(.2, .6, .2, 1);
}

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .nav__inner {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    padding: 7px 12px;
    font-size: 11px;
  }

  .hero__role {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about__grid,
  .stack__head {
    grid-template-columns: 1fr;
  }

  .about__metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__metrics .metric:nth-child(2) {
    border-right: 0;
    padding-right: 0;
  }

  .about__metrics .metric:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .about__metrics .metric:nth-child(4) {
    padding-left: 24px;
    border-top: 1px solid var(--line);
  }

  .role {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .focus__item:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .focus__item:nth-child(odd) {
    padding-right: 0;
  }
}