@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --white: #ffffff;
  --surface: #f7f9fc;
  --navy: #061831;
  --navy-2: #102b4c;
  --blue: #155dfc;
  --blue-soft: #eef4ff;
  --text: #000000;
  --muted: #59616f;
  --line: #e2e8f0;
  --max: 1080px;

  /* Type — one Swiss grotesque, one scale.
     hero > section heading > card title > label. */
  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.1rem, 3.6vw, 3.5rem);
  --fs-section: clamp(1.85rem, 3.1vw, 2.9rem);
  --fs-card: clamp(1.3rem, 2vw, 1.85rem);
  --fs-sub: clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-label: 0.76rem;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

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

button {
  font: inherit;
}

h1,
h2,
h3,
.brand,
.site-nav,
.kicker,
.section-label,
.button,
.work-row__meta,
.work-row__number,
.site-footer {
  font-family: var(--font);
}

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

h1 {
  margin-bottom: 1rem;
  max-width: 640px;
  color: var(--navy);
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.85rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.2;
}

p {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.58;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 var(--pad);
  background: rgba(6, 24, 49, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.site-nav a:hover {
  color: var(--white);
}

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

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

section {
  padding: clamp(3.25rem, 5vw, 4.75rem) var(--pad);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: 74vh;
  padding-top: 76px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero__copy {
  max-width: 800px;
  animation: fade-up 620ms ease both;
}

.kicker {
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__lede {
  max-width: 570px;
  margin-bottom: 1.2rem;
  color: var(--text);
  font-size: 1rem;
}

.hero__meta,
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero__media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__media::before,
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

/* Moonlit cyanotype wash and soft edge vignette. */
.hero__media::before {
  background:
    radial-gradient(ellipse at center, transparent 34%, rgba(3, 19, 47, 0.24) 70%, rgba(3, 10, 28, 0.78) 100%),
    linear-gradient(145deg, rgba(113, 221, 239, 0.42), rgba(5, 44, 102, 0.76));
  mix-blend-mode: color;
}

/* Fine warm speckles and translucent painterly grain. */
.hero__media::after {
  background:
    radial-gradient(circle at 18% 24%, rgba(227, 190, 126, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 18%, rgba(227, 190, 126, 0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 76%, rgba(227, 190, 126, 0.34) 0 1px, transparent 1.5px),
    radial-gradient(circle at 30% 82%, rgba(227, 190, 126, 0.38) 0 1px, transparent 1.6px),
    linear-gradient(115deg, rgba(210, 232, 239, 0.12), transparent 42%, rgba(5, 22, 53, 0.22));
  background-size: auto, auto, auto, auto, 160% 160%;
  mix-blend-mode: screen;
}

.hero-gloss {
  position: absolute;
  inset: -20% auto -20% -42%;
  z-index: 4;
  width: 34%;
  background: linear-gradient(105deg, transparent 8%, rgba(171, 246, 255, 0.08) 38%, rgba(255, 255, 255, 0.68) 50%, rgba(93, 222, 255, 0.12) 62%, transparent 92%);
  transform: skewX(-18deg) translateX(-140%);
  opacity: 0;
  pointer-events: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.hero-actions__divider {
  width: 1px;
  height: 30px;
  background: var(--line);
}

.hero-socials {
  display: flex;
  gap: 0.75rem;
}

.hero-socials a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #05d9ff;
  background: #050523;
  border: 2px solid #10115a;
  border-radius: 50%;
  font-size: 1.35rem;
  box-shadow: 0 10px 22px rgba(5, 5, 35, 0.16);
}

.hero-socials a:hover {
  background: #0b1f44;
  border-color: var(--blue);
  transform: translateY(-2px);
}

.hero-about-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  min-height: 48px;
  padding: 0 1.45rem;
  color: var(--white);
  background: #2506ad;
  border: 2px solid #1b047f;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37, 6, 173, 0.2);
}

.hero-about-button i {
  font-size: 1.05rem;
}

.hero-about-button:hover {
  background: #1b047f;
  border-color: #0f0250;
  transform: translateY(-1px);
}

.hero__image {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(6, 24, 49, 0.1);
  animation: image-in 720ms ease 120ms both;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    filter 900ms ease;
}

.hero__media:hover::before,
.hero__media:hover::after {
  opacity: 1;
}

.hero__media:hover .hero__image {
  filter: grayscale(1) contrast(1.3) brightness(0.88);
  transform: scale(1.025);
}

.gsap-active .hero__media {
  transform-style: preserve-3d;
  will-change: transform;
}

.hero__image:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 22px 54px rgba(6, 24, 49, 0.14);
}

.section-label {
  display: flex;
  gap: 0.65rem;
  max-width: var(--max);
  margin: 0 auto 1.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.intro,
.capabilities,
.education {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.capabilities__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.9fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 2.4rem;
}

.section-title i {
  color: var(--navy);
  font-size: clamp(1.7rem, 2.7vw, 2.3rem);
}

.section-title h2 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title h2 span {
  color: var(--blue);
}

.about-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 5.5rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.about-image {
  width: 100%;
  max-width: 340px;
}

.about-copy {
  max-width: 680px;
}

.about-copy h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.55rem, 2.5vw, 2.5rem);
}

.about-tag {
  margin-bottom: 1.3rem;
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
}

.about-copy a {
  color: var(--blue);
  font-weight: 800;
}

.about-details {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.35rem;
}

.about-details p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.about-details span {
  color: var(--blue);
  font-family: var(--font);
  font-weight: 800;
}

.intro__photo {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(6, 24, 49, 0.12);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

.button--dark {
  background: var(--navy);
  color: var(--white);
}

.button--light {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
}

.button--inline {
  gap: 0.45rem;
  padding-inline: 0;
  background: transparent;
  color: var(--blue);
  border: 0;
  font-size: 1.05rem;
}

.button--inline i {
  font-size: 1.05rem;
}

.button--inline:hover {
  color: var(--navy);
}

.button:hover {
  transform: translateY(-1px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 1.5rem;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto 1.45rem;
}

.section-heading p {
  margin-bottom: 0.2rem;
}

.work-list,
.timeline {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  row-gap: 0;
  border-top: 0;
  counter-reset: experience;
}

.work-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(180px, 270px) 24px;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition:
    background-color 180ms ease,
    padding-left 180ms ease;
}

.work-row:hover {
  padding-left: 0.5rem;
  background: linear-gradient(90deg, rgba(21, 93, 252, 0.055), transparent 55%);
}

.work-row:hover .work-row__title {
  color: var(--blue);
}

.work-row:hover .work-row__arrow {
  transform: translate(2px, -2px);
  color: var(--blue);
}

.work-row__number,
.work-row__meta {
  padding-top: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-row__title {
  color: var(--navy);
  font-family: var(--font);
  font-size: clamp(1.12rem, 1.65vw, 1.45rem);
  font-weight: 800;
  line-height: 1.15;
}

.work-row__arrow {
  color: var(--muted);
  font-size: 1.05rem;
  transition: transform 160ms ease;
}

.work-row p {
  grid-column: 2 / 4;
  max-width: 760px;
  margin: -0.2rem 0 0;
  font-size: 0.94rem;
}

.capabilities h2 {
  max-width: 620px;
}

.capabilities p {
  max-width: 540px;
}

.stack-grid {
  display: grid;
  border-top: 1px solid var(--line);
}

.stack-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease;
}

.stack-card:hover {
  background: rgba(21, 93, 252, 0.035);
}

.stack-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.skill-cloud {
  align-content: start;
}

.skill-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.skill-cloud img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.skill-cloud span::after {
  content: "/";
  margin-left: 0.25rem;
  color: #b5c0cf;
  font-weight: 600;
}

.skill-cloud span:last-child::after {
  display: none;
}

.timeline-row {
  position: relative;
  display: block;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(6, 24, 49, 0.34);
  border-radius: 0;
  box-shadow: none;
  transition: border-color 220ms ease;
}

.timeline-row:nth-child(-n + 2) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  border-top-width: 2px;
  border-top-color: var(--navy);
}

.timeline-row:hover {
  border-color: var(--blue);
}

.timeline-row::before {
  content: counter(experience, decimal-leading-zero);
  position: absolute;
  top: 1.35rem;
  right: 0;
  color: rgba(6, 24, 49, 0.2);
  font-family: var(--font);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.timeline-row {
  counter-increment: experience;
}

.timeline-row time {
  align-self: start;
  width: fit-content;
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-row h3 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-right: clamp(3rem, 7vw, 6rem);
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-family: var(--font);
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.timeline-row__company {
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.timeline-row p a {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.timeline-row p a:hover {
  color: var(--navy);
}

.timeline-row__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.4rem 0 0.55rem;
}

.timeline-row__tools span {
  padding: 0.38rem 0.7rem;
  color: #ffffff;
  background: #1e3a8a;
  border: 1px solid #1e3a8a;
  border-radius: 0;
  font-family: var(--font);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  will-change: transform, background-color;
}

/* Liquid "Back to top" hill that rises from the bottom edge on scroll. */
.btt {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 16;
  width: 100%;
  height: 120px;
  pointer-events: none;
}

.btt svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.btt__path {
  fill: #ff6a2b;
}

.btt__label {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 20px);
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: color 180ms ease;
}

.btt__label:hover {
  color: #061831;
}

/* With the hill present, drop the redundant back-to-top affordances and
   give the footer clear space above the hill so nothing overlaps. */
.gsap-active .scroll-top,
.gsap-active .site-footer a {
  display: none;
}

.gsap-active .site-footer {
  padding-bottom: 104px;
}

@media (prefers-reduced-motion: reduce) {
  .btt {
    display: none;
  }
}

.timeline-row p:last-child {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.timeline-media {
  margin: 1.1rem 0 0;
}

.timeline-video {
  display: block;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 1440 / 713;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(6, 24, 49, 0.12);
}

.timeline-media figcaption {
  margin-top: 0.55rem;
  max-width: 760px;
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0.72;
}

.education-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.education-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(6, 24, 49, 0.08);
}

.education-card img {
  width: 72px;
}

.education-card h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.education-card p {
  margin-bottom: 0.45rem;
}

.education-card__coursework {
  margin-bottom: 0;
  font-size: 0.96rem;
}

/* Subtle inline text link (e.g. "All projects on GitHub") */
.section-heading__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover {
  color: var(--navy);
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

/* Vlogs — three evenly centered posters. */
.films {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

/* Animated doodle background behind the Vlogs section. */
.films::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("images/doodle.gif") center center / cover no-repeat;
}

.films::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.62);
}

.films > * {
  position: relative;
  z-index: 1;
}

.film-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: var(--max);
  margin: 0 auto;
}

.film-slide {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(6, 24, 49, 0.1);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.film-slide__shine {
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 2;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.film-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.film-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 24, 49, 0.72));
}

.film-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(6, 24, 49, 0.2);
}

.film-slide:hover img {
  transform: scale(1.06);
}

.film-slide__title {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 0.85rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
}

.film-slide__meta {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.film-slide:hover .film-slide__title {
  bottom: 1.6rem;
}

.film-slide:hover .film-slide__meta {
  opacity: 1;
  transform: translateY(0);
}

.film-rail__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--max);
  margin: 0.4rem auto 0;
}

.film-rail__hint {
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.55;
}

@media (max-width: 720px) {
  .film-rail {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

.contact {
  background: var(--navy);
  color: var(--white);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.contact h2 {
  max-width: 740px;
  color: var(--white);
}

.contact .kicker {
  color: #78a7ff;
}

.contact-link {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  font-weight: 800;
  border-bottom: 2px solid var(--blue);
}

.contact__socials {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.contact__socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #05d9ff;
  background: #050523;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  font-size: 1.25rem;
}

.contact__socials a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.contact__socials .social-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--pad);
  background: #041124;
  color: #9fb4d0;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scroll-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--blue);
  border-radius: 8px;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal .timeline-row,
.reveal .stack-card,
.reveal .work-row {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.in-view .timeline-row,
.reveal.in-view .stack-card,
.reveal.in-view .work-row {
  opacity: 1;
  transform: translateY(0);
}

.reveal.in-view > * > *:nth-child(1) { transition-delay: 60ms; }
.reveal.in-view > * > *:nth-child(2) { transition-delay: 160ms; }
.reveal.in-view > * > *:nth-child(3) { transition-delay: 260ms; }
.reveal.in-view > * > *:nth-child(4) { transition-delay: 360ms; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes image-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ------------------------------------------------------------------ */
/* Liquid glass + shine                                                 */
/* ------------------------------------------------------------------ */

/* Keep the opening section clean and white. */
.hero {
  position: relative;
  overflow: hidden;
}

/* Slow, painterly field motion behind About Me. */
.intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--white);
}

.intro::before {
  content: "";
  position: absolute;
  inset: -9%;
  z-index: 0;
  background-image: url("images/hero-field.jpg");
  background-position: center;
  background-size: cover;
  transform: translate3d(-2.5%, -1%, 0) scale(1.08) skewX(-0.45deg);
  transform-origin: center;
  animation: about-field-drift 22s ease-in-out infinite alternate;
  opacity: 0.76;
  will-change: transform, filter;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.34) 46%, rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.intro > * {
  position: relative;
  z-index: 2;
}

@keyframes about-field-drift {
  0% {
    transform: translate3d(-2.5%, -1%, 0) scale(1.08) skewX(-0.45deg);
    filter: saturate(0.98) contrast(1.01);
  }
  50% {
    transform: translate3d(1%, 0.8%, 0) scale(1.115) skewX(0.35deg);
    filter: saturate(1.06) contrast(1.025);
  }
  100% {
    transform: translate3d(2.8%, -0.4%, 0) scale(1.09) skewX(-0.2deg);
    filter: saturate(1.01) contrast(1.015);
  }
}

.hero__copy,
.hero__media {
  position: relative;
  z-index: 2;
}

/* Light-sweep shine across the solid buttons. */
.button--dark,
.button--light,
.hero-about-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.button--dark::after,
.button--light::after,
.hero-about-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.button--dark:hover::after,
.button--light:hover::after,
.hero-about-button:hover::after {
  animation: btn-shine 0.85s ease;
}

.hero-about-button {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 10px 24px rgba(37, 6, 173, 0.24);
}

@keyframes btn-shine {
  from { left: -130%; }
  to { left: 150%; }
}

/* ------------------------------------------------------------------ */
/* GSAP motion layer                                                    */
/* Additive only. The IntersectionObserver + .reveal system still owns  */
/* every section's entrance, so content is never hidden by GSAP. This   */
/* layer just adds the hero masthead, progress rail, timeline spine,    */
/* and magnetic/parallax flourishes on top.                             */
/* ------------------------------------------------------------------ */

.gsap-active .hero__image {
  will-change: transform;
}


/* GSAP owns the Selected Work domino reveal + hover motion. Rows stay
   visible by default (fallback) so nothing hides if the script doesn't run. */
.gsap-active .work-list {
  perspective: 1000px;
}

.gsap-active .reveal .work-row,
.gsap-active .reveal.in-view .work-row {
  opacity: 1;
  transform: none;
  transition: none;
}

.gsap-active .work-row {
  transition: background-color 220ms ease;
}

.gsap-active .work-row:hover {
  padding-left: 0;
}

.gsap-active .work-row__arrow {
  transition: none;
}

/* Masked, line-by-line word reveal for the hero headline. */
.word-mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.08em 0;
  margin: -0.08em 0;
  vertical-align: top;
}

.word-inner {
  display: inline-block;
  will-change: transform;
}

/* Thin precision rail that tracks scroll depth. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #05d9ff, var(--blue) 55%, #2506ad);
  pointer-events: none;
}

/* Self-drawing spine for the experience timeline. */
.gsap-active .timeline {
  padding-left: 0;
}

.gsap-active .reveal .timeline-row,
.gsap-active .reveal.in-view .timeline-row {
  transition: border-color 220ms ease;
}

.experience {
  background-color: #ffffff;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    url("images/oil-canvas-texture.jpg");
  background-repeat: repeat;
  background-size: 768px auto;
}

.experience .section-label {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  color: var(--navy);
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.experience-heading {
  align-items: end;
  margin-bottom: clamp(3rem, 8vw, 6rem);
  padding-top: 1rem;
  border-top: 1px solid var(--navy);
}

.experience-heading h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.experience-heading h2 em {
  display: block;
  color: var(--blue);
  font-style: normal;
  font-weight: 700;
}

.experience-heading p {
  max-width: 340px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline-row,
  .timeline-row:nth-child(-n + 2) {
    grid-column: auto;
    display: block;
  }

  .timeline-row {
    padding: 1.25rem;
  }
}

@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,
  .reveal .timeline-row,
  .reveal .stack-card,
  .reveal .work-row {
    opacity: 1;
    transform: none;
  }

  .scroll-progress,
  .timeline-line {
    display: none;
  }
}

@media (max-width: 860px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 58px;
    left: var(--pad);
    right: var(--pad);
    display: grid;
    gap: 0;
    padding: 0.45rem;
    background: var(--navy);
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.9rem;
    color: var(--white);
  }

  .site-nav a::after {
    bottom: 0.55rem;
  }

  .hero,
  .about-layout,
  .capabilities__grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 360px;
  }

  .intro__photo {
    height: 420px;
  }

  .hero {
    min-height: auto;
  }

  .intro::before {
    inset: -6%;
    background-position: 54% center;
    opacity: 0.62;
  }

  .intro::after {
    background: rgba(255, 255, 255, 0.42);
  }

  .hero__media {
    max-width: 380px;
  }

  .work-row {
    grid-template-columns: 38px minmax(0, 1fr) 22px;
  }

  .work-row__meta,
  .work-row p {
    grid-column: 2 / 4;
  }

  .work-row__arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .stack-card {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

@media (max-width: 560px) {
  section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero {
    padding-top: 72px;
  }

  .hero__image {
    border-radius: 10px;
  }

  .hero-socials a {
    width: 46px;
    height: 46px;
  }

  .hero-about-button {
    min-height: 44px;
    padding: 0 1.2rem;
    font-size: 0.95rem;
  }

  .about-image {
    max-width: 100%;
  }

  .intro__photo {
    height: 320px;
  }

  .work-row {
    grid-template-columns: 1fr 22px;
  }

  .work-row__number {
    grid-column: 1 / 3;
  }

  .work-row__title,
  .work-row__meta,
  .work-row p {
    grid-column: 1 / 3;
  }

  .education-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------------ */
/* Section backgrounds                                                  */
/* Experience carries the drifting About Me field at a light weight;    */
/* its own oil-canvas grain stays off so only one texture reads.        */
/* ------------------------------------------------------------------ */

.experience,
.work {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image: none;
}

.experience::before {
  content: "";
  position: absolute;
  inset: -9%;
  z-index: 0;
  background-image: url("images/hero-field.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(-2.5%, -1%, 0) scale(1.08) skewX(-0.45deg);
  transform-origin: center;
  animation: about-field-drift 22s ease-in-out infinite alternate;
  opacity: 0.34;
  pointer-events: none;
  will-change: transform;
}

.experience::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.experience > *,
.work > * {
  position: relative;
  z-index: 2;
}

/* ------------------------------------------------------------------ */
/* Stack — solid navy panel, same --navy as the contact section        */
/* at the foot of the page. No image; type flips to light.            */
/* ------------------------------------------------------------------ */

.capabilities {
  background: var(--navy);
  border-block-color: rgba(255, 255, 255, 0.1);
}

.capabilities .section-label {
  color: rgba(255, 255, 255, 0.7);
}

.capabilities .section-label span {
  color: #78a7ff;
}

.capabilities h2 {
  color: var(--white);
}

.capabilities p {
  color: rgba(255, 255, 255, 0.78);
}

.capabilities .stack-grid,
.capabilities .stack-card {
  border-color: rgba(255, 255, 255, 0.16);
}

.capabilities .stack-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.capabilities .stack-card h3 {
  color: rgba(255, 255, 255, 0.7);
}

.capabilities .skill-cloud span {
  color: rgba(255, 255, 255, 0.92);
}

.capabilities .skill-cloud span::after {
  color: rgba(255, 255, 255, 0.32);
}

/* ------------------------------------------------------------------ */
/* Selected Work + Education — grain fields                             */
/* Work stays white with neutral grain; Education takes the blue bloom. */
/* Both are drawn in CSS rather than sampled from a photo: a small jpeg */
/* stretched across a full-width panel arrived soft and banded. A       */
/* tiling fractal-noise dither supplies the stipple, masked over a      */
/* coloured layer so it reads as texture rather than a grey wash, and   */
/* it stays crisp at any width because it is generated.                 */
/* ------------------------------------------------------------------ */

.work,
.education {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--white);
  border-block-color: var(--line);
}

.work::before,
.education::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(100deg, #fafbfc 0%, #ffffff 56%, #fcfdfe 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* The grain: a grey bloom carved into speckles by the dither mask. */
.work::after,
.education::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(88% 92% at 6% 52%, #aeb6c2 0%, #c2c9d3 44%, #d8dde4 70%, rgba(216, 221, 228, 0) 88%),
    linear-gradient(100deg, #ccd2db 0%, #dde1e8 48%, #e9ecf1 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0.5 0.85 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23d)'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0.5 0.85 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23d)'/%3E%3C/svg%3E");
  mask-size: 200px 200px;
  -webkit-mask-size: 200px 200px;
  mask-repeat: repeat;
  -webkit-mask-repeat: repeat;
  opacity: 0.75;
  pointer-events: none;
}

/* Education — blue wash. Deep bloom low-left with a cyan lift at the
   bottom corner, falling off to white on the right so the card and the
   dark type over it stay legible. */
.education::before {
  background-image:
    radial-gradient(52% 38% at 3% 98%, rgba(86, 214, 242, 0.2) 0%, rgba(86, 214, 242, 0) 70%),
    radial-gradient(82% 76% at 10% 52%, #d8eaf9 0%, #e8f3fc 44%, #f4fafe 70%, rgba(255, 255, 255, 0) 88%),
    linear-gradient(100deg, #fbfdff 0%, #ffffff 58%, #ffffff 100%);
}

/* Its grain: a copy of the bloom carved by the dither, over a flat neutral
   base so the speckle carries across the white side too — the radials fade
   out before the right edge and left that area untextured. */
.education::after {
  background-image:
    radial-gradient(52% 38% at 3% 98%, rgba(22, 190, 232, 0.6) 0%, rgba(22, 190, 232, 0) 74%),
    radial-gradient(82% 76% at 10% 52%, #5591d2 0%, #86b8e2 42%, #bcd8ee 70%, rgba(255, 255, 255, 0) 88%),
    linear-gradient(100deg, #c6d1dd 0%, #d4dce6 52%, #dee4ec 100%);
  opacity: 0.72;
}

.education > * {
  position: relative;
  z-index: 2;
}

/* Liquid glass card — a translucent surface that blurs and saturates the
   field behind it, a bright 1px rim, and a rim light on the inner
   bottom/right edge. Type stays dark: the reference this came from ran
   white on a dark backdrop, this one sits on a light wash. */
.education-card {
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.14),
    0 0 0 1px rgba(6, 24, 49, 0.05),
    inset 0 4px 20px rgba(255, 255, 255, 0.5);
  transition:
    transform 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

/* The inset highlight streaks that give the edge its wet, beveled look. */
.education-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset -10px -8px 0 -11px rgba(255, 255, 255, 1),
    inset 0 -9px 0 -8px rgba(255, 255, 255, 1);
  opacity: 0.6;
  filter: blur(1px) drop-shadow(10px 4px 6px rgba(28, 18, 6, 0.5)) brightness(115%);
  pointer-events: none;
}

.education-card > * {
  position: relative;
  z-index: 1;
}

.education-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 14px 40px rgba(31, 38, 135, 0.26),
    inset 0 4px 20px rgba(255, 255, 255, 0.42);
}

/* ------------------------------------------------------------------ */
/* Typography — one family, one scale                                   */
/* Before this, the same hierarchy level ranged from 1.85rem to         */
/* 5.25rem across three families at two weights: Experience's heading   */
/* was ~3x Stack's. Everything below collapses onto four steps.         */
/* ------------------------------------------------------------------ */

h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

/* Section headings — Experience., Selected work., Stack., About Me. */
.experience-heading h2,
.section-heading h2,
.capabilities h2,
.section-title h2 {
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.032em;
}

.experience-heading h2 em {
  font-weight: 700;
}

/* Card and row titles. */
.timeline-row h3,
.work-row__title,
.education-card h2,
.about-copy h3,
.film-slide__title {
  font-size: var(--fs-card);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
}

/* Supporting subheads. */
.about-tag,
.contact-link {
  font-size: var(--fs-sub);
  font-weight: 600;
  letter-spacing: -0.012em;
}

/* Every eyebrow label and meta line reads the same. */
.section-label,
.experience .section-label,
.kicker,
.stack-card h3,
.work-row__number,
.work-row__meta,
.timeline-row__company,
.text-link,
.site-footer {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label,
.experience .section-label,
.work-row__number,
.work-row__meta,
.stack-card h3 {
  color: var(--muted);
}

.section-label span,
.experience .section-label span {
  color: var(--blue);
}

/* Body copy — one size, one weight, one colour. */
p,
.hero__lede,
.timeline-row p,
.work-row p,
.education-card p,
.skill-cloud span {
  font-weight: 400;
  letter-spacing: 0;
}

.timeline-row time {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
