/* ==========================================================
   Design tokens (from Figma: Portfolio_UI-kit)
   ========================================================== */
:root {
  /* Color */
  --color-white: #ffffff;
  --color-milk: #f2f2f2;
  --color-sand: #fc9e49;
  --color-green: #9aeb60;
  --color-blue: #003757;
  --color-brown: #823e00;
  --color-dark-brown: #403300;

  /* Type */
  --font-heading: "Domine", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Space & radius */
  --space-200: 8px;
  --space-300: 12px;
  --space-600: 24px;
  --radius-400: 16px;
  --radius-full: 9999px;

  /* Effects */
  --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-big: 0 7px 10px rgba(0, 0, 0, 0.09), 0 40px 80px rgba(0, 0, 0, 0.3);
  --shadow-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  --shadow-thumb: 0 0 8px 3px rgba(0, 0, 0, 0.15);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Type styles */
.heading-1, .greeting, .about-heading, .projects-heading, .contact-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 60px;
  letter-spacing: -3px;
}
.heading-2, .field input, .field textarea, .send-button {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.9px;
}
.heading-3, .about-point h3, .project-copy h3, .scroll-cue-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
}
.body-small, .about-point p, .project-copy p, .footer p {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 18px;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-milk);
  color: var(--color-dark-brown);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 4px; }

/* Mobile-only elements (shown in the mobile block at the end) */
.mobile-header, .slide-dots, .mobile-only { display: none; }
picture { display: block; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Each section fills the viewport so its scroll cue always sits 64px from the bottom.
   The content "stage" keeps the Figma layout and floats in the space above the cue,
   splitting extra space in the same top/bottom ratio as the 1080px design. */
.section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: max(var(--section-min-h), calc(100vh / var(--zoom, 1)));
  height: max(var(--section-min-h), calc(100svh / var(--zoom, 1)));
}
.section::before {
  content: "";
  flex: var(--space-top) 1 0;
  min-height: var(--min-top, 48px);
}
.section-stage { position: relative; flex: none; height: var(--stage-h); }
.section-gap { flex: var(--space-bottom) 1 0; min-height: 40px; }
.about    { --stage-h: 642px; --space-top: 128; --space-bottom: 122; --section-min-h: 945px; --min-top: 72px; }
.projects { --stage-h: 651px; --space-top: 118; --space-bottom: 124; --section-min-h: 930px; }

/* ==========================================================
   Side navigation
   ========================================================== */
.side-nav {
  position: fixed;
  z-index: 10;
  left: 104px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  outline: none;
}
.nav-icon { display: block; position: relative; }
.nav-icon > * { display: none; }
.contact-hover { position: relative; }
.contact-hover-dots { position: absolute; left: 8px; top: 8px; }

/* default */
.nav-item .nav-icon > .s-default { display: block; }
/* hover (not current) */
.nav-item:is(:hover, .is-hinted) .nav-icon > .s-default,
.nav-item[aria-current] .nav-icon > .s-default { display: none; }
.nav-item:is(:hover, .is-hinted):not([aria-current]) .nav-icon > .s-hover { display: block; }
/* selected */
.nav-item[aria-current] .nav-icon > .s-selected { display: block; }
/* focus (keyboard) */
.nav-item:focus-visible:not(:active) .nav-icon > :not(.s-focus) { display: none; }
.nav-item:focus-visible:not(:active) .nav-icon > .s-focus { display: block; }
/* pressed */
.nav-item:active .nav-icon > :not(.s-pressed) { display: none; }
.nav-item:active .nav-icon > .s-pressed { display: block; }

.tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate(-4px, -50%);
  padding: var(--space-200) var(--space-300);
  background: var(--color-white);
  border-radius: 8px;
  filter: drop-shadow(0 1px 2px rgba(12, 12, 13, 0.1)) drop-shadow(0 1px 2px rgba(12, 12, 13, 0.05));
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-dark-brown);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s var(--ease);
}
.tooltip::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-white);
  transform: translateY(-50%) rotate(45deg);
}
.nav-item:hover .tooltip,
.nav-item.is-hinted .tooltip,
.nav-item:focus-visible .tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ==========================================================
   Intro
   ========================================================== */
.intro    { --stage-h: 506px; --space-top: 280; --space-bottom: 106; --section-min-h: 850px; }

/* Quick links, top right of the first screen */
/* Pinned to the screen so they stay visible in every section; the soft milk pill keeps them
   readable over the blue About card and the orange Projects section */
.quick-links {
  position: fixed;
  z-index: 15;
  top: 56px;
  right: calc(50% - 756px - 16px); /* text ends at the intro paragraph container’s right edge (50% + 756px); 16px = pill padding */
  display: flex;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(242, 242, 242, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  gap: 24px;
}
.quick-links a {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--color-dark-brown);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
.quick-links a:hover, .quick-links a:focus-visible { text-decoration-color: currentColor; }

/* Greeting: left-aligned headline and introduction */
.intro-copy {
  position: absolute;
  left: calc(50% - 660px);
  top: 0;
  width: 1416px;
  color: var(--color-dark-brown);
}
.intro .greeting { line-height: 80px; letter-spacing: 0; }
.intro-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 48px;
  line-height: 80px;
}
.intro-text a {
  color: var(--color-dark-brown);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  transition: color 0.2s ease, text-decoration-color 0.5s ease;
}
.intro-text a:hover, .intro-text a:focus-visible { color: var(--color-brown); }
/* Underlines wait until the text has finished appearing, then fade in */
.intro-copy.is-revealing .intro-text a { text-decoration-color: transparent; }
/* Hovering a link swaps the mouse pointer for the orange arrow (tip at its top-left corner) */
.intro-text a { cursor: url("assets/icons/cursor-arrow.svg") 3 3, pointer; }

/* Lines fade in one after another on first load (script.js wraps the words and numbers the lines).
   Spaces sit inside the word spans, so link underlines never show between hidden words. */
.intro-copy.is-revealing .word { opacity: 0; }
.intro-copy.is-revealing.is-measured .word {
  animation: line-in 0.7s ease-out calc(0.15s + var(--line) * 0.28s) forwards;
}
@keyframes line-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll cue (shared) */
.scroll-cue {
  position: relative;
  flex: none;
  align-self: center;
  margin-bottom: 64px;
  width: 253px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--color-dark-brown);
}
.scroll-cue .eyebrow { margin-top: 12px; }
.scroll-cue-arrow { margin-top: 16px; transition: transform 0.3s var(--ease); }
.scroll-cue:hover .scroll-cue-arrow { animation: cue-bounce 0.9s var(--ease) infinite; }
.scroll-cue-title { white-space: nowrap; }
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================
   About
   ========================================================== */
.about-card {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1128px;
  height: 642px;
  background: var(--color-blue);
  border-radius: 24px;
  box-shadow: var(--shadow-big);
  color: var(--color-milk);
}
.about-portrait {
  position: absolute;
  left: 335px;
  top: -35px;
  width: 458px;
  height: 483px;
  overflow: hidden;
  filter: drop-shadow(0 7px 5px rgba(0, 0, 0, 0.09)) drop-shadow(0 40px 40px rgba(0, 0, 0, 0.3));
}
.about-portrait img {
  position: absolute;
  top: 0;
  left: -29.09%;
  width: 158.19%;
  height: 100%;
  max-width: none;
  /* Hidden poses fade out after the new pose fades in, so the head never looks see-through mid-turn */
  transition: opacity 0.25s ease 0.15s;
}
.about-portrait .portrait-front { transition-delay: 0s; }
.about-portrait .portrait-left { left: -29.15%; top: -0.03%; width: 158.3%; height: 100.07%; }
.about-portrait .portrait-left,
.about-portrait .portrait-right { opacity: 0; }

/* Head turns toward the copy being hovered (Figma: Person rotation) */
.about-card:has(.about-point--human:hover) .portrait-left,
.about-card:has(.about-point--process:hover) .portrait-right { opacity: 1; transition-delay: 0s; }
.about-card:has(.about-point--human:hover) .portrait-front,
.about-card:has(.about-point--process:hover) .portrait-front { opacity: 0; transition-delay: 0.15s; }

.about-points { display: contents; } /* desktop: points position against the card */
.about-point {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-origin: left center;
  transition: scale 0.3s var(--ease);
}
.about-point:hover { scale: 1.06; }
.about-point--human { left: 96px; top: 64px; width: 288px; --step: 0; }
.about-point--process { left: 768px; top: 63px; width: 288px; --step: 1; }
.about-point--beyond { left: 62px; top: 421px; width: 249px; --step: 2; }

.connector { position: absolute; pointer-events: none; }
.connector img { position: absolute; max-width: none; }
/* --dot-x / --dot-y: where the green dot starts inside each connector SVG */
.connector--human { left: 238px; top: 179px; width: 237px; height: 73px; --step: 0; --dot-x: 95%; --dot-y: 86%; }
.connector--human img { left: -3.11%; top: -1.37%; }
.connector--beyond { left: 258px; top: 349px; width: 157px; height: 43px; transform: scaleY(-1); --step: 2; --dot-x: 93%; --dot-y: 78%; }
.connector--beyond img { left: -4.69%; top: -2.33%; }
.connector--process { left: 663px; top: 261px; width: 219px; height: 63px; transform: scaleY(-1) rotate(180deg); --step: 1; --dot-x: 95%; --dot-y: 84%; }
.connector--process img { left: -3.36%; top: -1.59%; }

/* Landing reveal: for each point, the dot appears, the line draws to the arrow, then the copy fades in */
.about-card.will-reveal .connector img { opacity: 0; clip-path: inset(var(--dot-y) 0 0 var(--dot-x)); }
.about-card.will-reveal .about-point { opacity: 0; translate: 0 12px; }
.about-card.is-revealed .connector img {
  animation: connector-draw 0.9s linear calc(var(--step) * 1.1s + 0.2s) both;
}
.about-card.is-revealed .about-point {
  animation: point-in 0.5s var(--ease) calc(var(--step) * 1.1s + 0.95s) both;
}
@keyframes connector-draw {
  0%   { opacity: 0; clip-path: inset(var(--dot-y) 0 0 var(--dot-x)); }
  20%  { opacity: 1; clip-path: inset(var(--dot-y) 0 0 var(--dot-x)); }
  65%  { opacity: 1; clip-path: inset(var(--dot-y) 0 0 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes point-in {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}
.about-heading {
  position: absolute;
  top: 516px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 60px;
  color: var(--color-green);
  white-space: nowrap;
}
.download-button {
  position: absolute;
  left: 864px;
  top: 505px;
  width: 192px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  background: var(--color-sand);
  border-radius: 12px;
  box-shadow: var(--shadow-small);
  color: var(--color-dark-brown);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease;
}
.download-button:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); }
.download-button:active { transform: translateY(0); box-shadow: var(--shadow-small); }


/* ==========================================================
   Projects
   ========================================================== */
.projects { background: var(--color-sand); }
.projects-heading {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1152px;
  line-height: 80px;
  text-align: center;
  color: var(--color-milk);
}
.project-grid {
  position: absolute;
  top: 128px;
  left: calc(50% - 660px);
  display: grid;
  grid-template-columns: repeat(3, 456px);
  gap: 24px;
}
.project-card { display: flex; flex-direction: column; color: var(--color-dark-brown); }
.project-thumb {
  position: relative;
  width: 456px;
  height: 304px;
  background: var(--color-blue);
  border-radius: 8px;
  box-shadow: var(--shadow-thumb);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.blend-hard-light { mix-blend-mode: hard-light; }
.blend-screen { mix-blend-mode: screen; }
.project-card:hover .project-thumb { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25); }
.project-card:hover .project-thumb img { opacity: 1; }

.project-copy {
  margin-top: 32px;
  min-height: 107px;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-copy h3 { white-space: nowrap; }
.project-badges { margin-top: 32px; display: flex; gap: 24px; }

.projects-cue { width: 322px; }

/* ==========================================================
   Contact
   ========================================================== */
.contact { display: block; height: 984px; }
.contact::before { content: none; }
.contact-heading {
  position: absolute;
  top: 199px;
  left: 50%;
  transform: translateX(-50%);
  width: 1152px;
  line-height: 60px;
  text-align: center;
  color: var(--color-brown);
}
.contact-form {
  position: absolute;
  top: 324px;
  left: 50%;
  transform: translateX(-50%);
  width: 552px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.field {
  display: flex;
  align-items: center;
  gap: var(--space-200);
  height: 88px;
  padding: var(--space-300) 32px;
  background: var(--color-sand);
  border: 5px solid var(--color-sand);
  border-radius: var(--radius-400);
  cursor: text;
  transition: border-color 0.2s ease;
}
.field-icon { flex: none; }
.field input,
.field textarea {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-dark-brown);
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--color-dark-brown); opacity: 0.4; }
.field--message { align-items: flex-start; height: 216px; padding: var(--space-600) 32px; }
.field textarea { height: 100%; resize: none; }
.field:focus-within { border-color: var(--color-brown); }
.contact-form.was-validated .field:has(:invalid) { border-color: var(--color-blue); }

/* Send button (states: default / hover / pressed / sent) */
.send-button {
  position: absolute;
  left: calc(100% + 115px);
  bottom: -8px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-dark-brown);
  cursor: pointer;
}
.send-label { display: block; transition: color 0.2s ease; }
.send-plane {
  position: absolute;
  left: calc(100% + 20px);
  bottom: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.send-done { display: none; align-items: center; gap: 12px; }
.send-button:hover .send-label,
.send-button:focus-visible .send-label,
.send-button.is-sending .send-label { color: var(--color-brown); }
.send-button:hover .send-plane,
.send-button:focus-visible .send-plane { opacity: 1; }
.send-button.is-sending { cursor: default; }
.send-button.is-sending .send-plane { opacity: 1; animation: send-fly 2s linear forwards; }
.send-button.is-sent .send-label,
.send-button.is-sent .send-plane { display: none; }
.send-button.is-sent .send-done { display: flex; }

/* From Figma motion: Send / Pressed */
@keyframes send-fly {
  0%   { translate: 0 0; opacity: 1; animation-timing-function: ease-in; }
  20%  { translate: 4px -48px; opacity: 1; animation-timing-function: ease-in-out; }
  50%  { translate: 68px -112px; opacity: 0; }
  100% { translate: 68px -112px; opacity: 0; }
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  padding: 24px max(24px, calc(50% - 657px));
  background: var(--color-blue);
  color: var(--color-white);
  white-space: nowrap;
}
.footer-copyright { opacity: 0.8; }
.footer-disclaimer { opacity: 0.6; }

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


/* ==========================================================
   Mobile (Figma: Portfolio overview · Mobile, 375 wide)
   Content column is 24px from the edges, capped at 480px on tablets.
   ========================================================== */
@media (max-width: 1023px) {
  .side-nav { display: none; }
  .mobile-only { display: inline; }

  /* Sticky header */
  .mobile-header {
    display: block;
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    height: 57px;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  .mobile-nav { height: 100%; display: flex; align-items: center; justify-content: center; }
  .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 35px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    color: var(--color-dark-brown);
    white-space: nowrap;
  }
  .mobile-nav-link[aria-current] { font-weight: 700; }
  .mobile-nav-home { position: relative; width: 30px; height: 30px; padding: 0; }
  .mobile-nav-home img { position: absolute; left: -0.75px; top: -0.75px; }

  /* Sections flow naturally on mobile */
  .section { display: block; height: auto; }
  .section::before { content: none; }
  .section-stage { height: auto; }
  .section-gap { display: none; }

  .scroll-cue { width: 100%; max-width: 327px; margin: 0; }
  .scroll-cue-title { font-size: 18px; line-height: 26px; white-space: normal; }
  .scroll-cue .eyebrow { margin-top: 10px; }
  .scroll-cue-arrow { margin-top: 10px; }

  /* Intro: fills the screen so the scroll cue sits at the bottom */
  .intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    min-height: 100vh;
    min-height: 100svh;
    padding: 116px 24px 48px;
  }
  .intro .section-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    width: 100%;
    max-width: 480px;
  }
  .intro .scroll-cue { margin-top: auto; }
  html { scroll-padding-top: 32px; } /* section links land below the quick-links row */
  /* Pinned as a slim second row under the mobile header */
  .quick-links {
    top: 57px;
    left: 0;
    right: 0;
    justify-content: center;
    gap: 24px;
    padding: 8px 16px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.6);
  }
  .intro .section-stage { align-items: stretch; }
  .intro-copy { position: static; width: 100%; }
  .intro .greeting { font-size: 32px; line-height: 44px; margin-bottom: 8px; }
  .intro-text { font-size: 22px; line-height: 36px; }

  /* About: static portrait, points become a slideshow */
  .about {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 120px 24px 56px;
  }
  .about .section-stage { width: 100%; max-width: 480px; }
  .about-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    min-height: 586px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 196px 24px 28px;
    box-shadow: 0 7px 5px rgba(0, 0, 0, 0.09), 0 40px 40px rgba(0, 0, 0, 0.3);
  }
  .about-portrait { left: 50%; top: -57px; width: 217px; height: 229px; transform: translateX(-50%); }
  .about-portrait .portrait-left,
  .about-portrait .portrait-right { display: none; }
  .about-card .about-portrait .portrait-front { opacity: 1; }
  .connector { display: none; }

  .about-heading {
    position: static;
    transform: none;
    order: 1;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -0.9px;
    text-align: center;
  }
  .about-points { order: 2; display: grid; width: 100%; touch-action: pan-y; }
  .about-card .about-points .about-point {
    position: static;
    grid-area: 1 / 1;
    width: auto;
    gap: 10px;
    scale: 1;
    opacity: 0;
    visibility: hidden;
    translate: 24px 0;
    animation: none;
    transition: opacity 0.4s ease, translate 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .about-card .about-points .about-point.is-active {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition: opacity 0.4s ease, translate 0.4s var(--ease), visibility 0s;
  }
  .about-point h3 { font-size: 22px; line-height: 29px; }
  .about-point p { font-size: 16px; line-height: 26px; }

  .slide-dots { order: 3; display: flex; gap: 16px; }
  .slide-dot {
    position: relative;
    width: 6px;
    height: 6px;
    padding: 0;
    border: 1px solid var(--color-green);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  .slide-dot::after { content: ""; position: absolute; inset: -10px; } /* bigger tap target */
  .slide-dot[aria-current="true"] { background: var(--color-green); }

  .download-button { order: 4; position: static; width: auto; height: 52px; gap: 10px; padding: 0 20px; }

  /* Projects */
  .projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 56px 24px 48px;
  }
  .projects .section-stage { display: flex; flex-direction: column; gap: 40px; width: 100%; max-width: 480px; }
  .projects-heading { position: static; transform: none; width: 100%; font-size: 36px; line-height: 40px; letter-spacing: -0.9px; }
  .project-grid { position: static; display: flex; flex-direction: column; gap: 48px; }
  .project-thumb { width: 100%; height: auto; aspect-ratio: 327 / 218; }
  .project-copy { width: 100%; min-height: 0; margin-top: 18px; }
  .project-copy h3 { white-space: normal; }
  .project-copy p { font-size: 16px; line-height: 26px; }
  .project-badges { margin-top: 18px; gap: 14px; flex-wrap: wrap; }
  .badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-brown);
  }
  .badge img { width: 22px; height: 22px; }
  .projects .scroll-cue { margin-top: 8px; }

  /* Contact */
  .contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    height: auto;
    padding: 64px 24px 72px;
  }
  .contact-heading { position: static; transform: none; width: 100%; font-size: 36px; line-height: 40px; letter-spacing: -0.9px; }
  .contact-form { position: static; transform: none; width: 100%; max-width: 480px; gap: 16px; }
  .field { height: 64px; gap: 10px; padding: 0 18px; border-width: 2px; }
  .field--message { height: 176px; padding: 16px 18px; }
  .field-icon img { width: 24px; height: 24px; }
  .field input,
  .field textarea { font-weight: 400; font-size: 22px; line-height: 28px; letter-spacing: 0; }
  .send-button { position: relative; left: auto; bottom: auto; align-self: flex-end; margin-top: 16px; }
  .send-plane { left: auto; right: calc(100% + 12px); } /* keep the plane on screen */

  .footer {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    height: auto;
    min-height: 48px;
    padding: 14px 24px;
    text-align: center;
    white-space: normal;
  }
}
