/* Figma variant 1: layout after the "Portfolio (Community)" Figma file,
   recolored to a cyan-green → forest-green palette. */

:root {
  /* Palette */
  --cyan-green: #2ee6b6;
  --cyan-green-soft: #8ff3d6;
  --mint: #e4f7ef;
  --mint-line: #cfe6da;
  --forest-bright: #3fbf6f;
  --forest: #1f6b3f;
  --forest-deep: #164d2e;
  --forest-900: #0d2a1c;
  --forest-950: #07190f;
  --card: #143524;
  --well: #0a2016;

  /* Roles */
  --bg: #ffffff;
  --ink: #0b1f16;
  --muted: #4e6b5c;
  --muted-on-dark: #9dbfae;
  --line: var(--mint-line);
  --focus: var(--forest);
  --accent: var(--forest);
  --chip-bg: var(--mint);
  --chip-ink: var(--forest);
  --pill-line: #a9c4b5;
  --footer-bg: var(--forest-950);

  /* Type */
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 5vw, 96px);
  --section-space: clamp(72px, 9vw, 136px);

  color-scheme: light;
}

/* Dark mode (the default): same palette, light sections turn deep forest */
:root[data-theme="dark"] {
  --bg: #08160f;
  --ink: #e6f4ec;
  --muted: #9dbfae;
  --line: #1f3d2d;
  --focus: var(--cyan-green);
  --accent: #4fd08a;
  --chip-bg: var(--card);
  --chip-ink: var(--cyan-green-soft);
  --pill-line: #2f5a44;
  --footer-bg: #040d08;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] {
  scroll-margin-top: 24px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hidden until focused with the keyboard */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 999px;
  font-weight: 500;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: min(100% - 2 * var(--gutter), 1440px);
  margin-inline: auto;
}

.center {
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  --focus: #ffffff;
  /* Hero pieces are placed relative to the photo, as % of the hero's own height */
  --photo: clamp(220px, 27vw, 380px);
  --photo-top: max(104px, 17%);
  position: relative;
  min-height: max(600px, min(100svh, 1000px));
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgb(255 255 255 / 0.22), transparent 70%),
    linear-gradient(172deg, #3ee8bb 0%, #22c193 26%, #1c9563 50%, #1c7444 72%, #154b2d 100%);
}

.hero-bar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: clamp(20px, 2.4vw, 36px) clamp(16px, 3.2vw, 62px) 0;
}

.hero-handle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
}

.hero-tagline {
  max-width: 34ch;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.25;
  text-align: right;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-photo-wrap {
  position: absolute;
  top: var(--photo-top);
  left: 50%;
  transform: translateX(-50%);
  width: var(--photo);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background: rgb(255 255 255 / 0.16);
  box-shadow: 0 30px 80px -30px rgb(7 25 15 / 0.6);
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(1.04);
}

.hero-arrow {
  position: absolute;
  top: calc(var(--photo-top) + var(--photo) * 0.12);
  left: calc(50% + var(--photo) * 0.66);
  display: grid;
  place-items: center;
  width: clamp(64px, 6.2vw, 104px);
  aspect-ratio: 1;
  border: 1.5px solid rgb(255 255 255 / 0.85);
  border-radius: 50%;
  color: #ffffff;
  font-size: clamp(26px, 2.4vw, 40px);
  pointer-events: auto;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.hero-arrow:hover {
  background: #ffffff;
  color: var(--forest);
  transform: rotate(-10deg);
}

.marquee {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: calc(var(--photo-top) + var(--photo) * 0.68);
  overflow: hidden;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-item {
  flex-shrink: 0;
  margin: 0;
  padding-right: 0.3em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(5.5rem, 15vw, 18rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: #ffffff;
  text-shadow: 0 8px 40px rgb(7 25 15 / 0.18);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.hero-status {
  position: absolute;
  z-index: 3;
  left: clamp(16px, 3.2vw, 62px);
  bottom: clamp(28px, 4vw, 48px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 999px;
  background: rgb(7 25 15 / 0.22);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  backdrop-filter: blur(6px);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan-green);
  box-shadow: 0 0 0 0 rgb(46 230 182 / 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgb(46 230 182 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(46 230 182 / 0);
  }
}

/* ---------- Dock (floating section nav) ---------- */

.dock {
  --focus: var(--cyan-green);
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: clamp(14px, 2.4vw, 28px);
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgb(7 25 15 / 0.88);
  border: 1px solid rgb(143 243 214 / 0.14);
  box-shadow: 0 18px 40px -16px rgb(7 25 15 / 0.55);
  backdrop-filter: blur(10px);
}

.dock a,
.dock button {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: #ffffff;
  font: inherit;
  font-size: 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.dock a:hover,
.dock button:hover {
  transform: translateY(-3px);
  background: var(--forest);
}

.dock a[aria-current] {
  background: var(--cyan-green);
  color: var(--forest-950);
}

.dock-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.dock .dock-avatar[aria-current] {
  box-shadow: 0 0 0 2px var(--cyan-green);
}

.dock .tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--forest-950);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}

.dock a:hover .tip,
.dock a:focus-visible .tip,
.dock button:hover .tip,
.dock button:focus-visible .tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Theme toggle: outlined so it reads as a control, not a section */
.dock .theme-toggle {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgb(143 243 214 / 0.3);
  color: var(--cyan-green-soft);
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Fade colors when switching themes */
.theme-anim,
.theme-anim *,
.theme-anim *::before,
.theme-anim *::after {
  transition: background-color 0.35s, color 0.35s, border-color 0.35s !important;
}

/* ---------- Shared type ---------- */

.section {
  padding-block: var(--section-space) 0;
}

.section--tight {
  padding-top: clamp(56px, 6vw, 88px);
}

.eyebrow,
.mono {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--muted);
}

.eyebrow::before {
  content: "(";
}

.eyebrow::after {
  content: ")";
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: clamp(36px, 4.5vw, 66px);
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 6.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display--sm {
  font-size: clamp(2.25rem, 4.2vw, 4.5rem);
}

.display--center {
  max-width: 13ch;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(3rem, 7.4vw, 8.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-note {
  max-width: 30ch;
  margin: 0;
  padding-top: 0.5em;
  font-weight: 300;
  font-size: clamp(1rem, 1.2vw, 1.375rem);
  line-height: 1.3;
  text-transform: uppercase;
}

.subhead {
  margin: clamp(64px, 7vw, 100px) 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  letter-spacing: -0.02em;
}

/* ---------- Intro / About ---------- */

.intro {
  padding-top: clamp(64px, 6vw, 100px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 120px);
  align-items: start;
}

.intro-lead {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.intro-side {
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(1.0625rem, 1.15vw, 1.25rem);
  line-height: 1.45;
  text-align: right;
}

.intro-side p {
  margin: 0 0 14px;
}

.arrow-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.arrow-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.6vw, 1.625rem);
  text-decoration: none;
}

.arrow-links .icon {
  font-size: 1.5em;
  stroke-width: 1.2;
  transition: transform 0.2s, color 0.2s;
}

.arrow-links a:hover .icon {
  color: var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Projects ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 72px) clamp(20px, 2.2vw, 40px);
}

.work-media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 16 / 9;
  padding: clamp(22px, 2.6vw, 40px);
  overflow: hidden;
  border-radius: clamp(24px, 2.4vw, 42px);
  isolation: isolate;
}

/* Soft ring for depth */
.work-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18%;
  top: -40%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(28px, 4vw, 60px) solid currentColor;
  opacity: 0.08;
}

.media-label {
  position: absolute;
  top: clamp(20px, 2.4vw, 36px);
  left: clamp(22px, 2.6vw, 40px);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.media-stat {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 5.4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.media-caption {
  max-width: 34ch;
  margin-top: 12px;
  font-size: clamp(0.9375rem, 1.1vw, 1.125rem);
  line-height: 1.35;
  opacity: 0.9;
}

.media--forest {
  background:
    radial-gradient(circle at 85% 110%, rgb(46 230 182 / 0.25), transparent 55%),
    var(--forest-900);
  color: var(--cyan-green-soft);
}

.media--forest .media-stat {
  color: var(--cyan-green);
}

.media--cyan {
  background: linear-gradient(140deg, #5bf0c8 0%, var(--cyan-green) 40%, #19b98a 100%);
  color: var(--forest-950);
}

.media--blend {
  background: linear-gradient(135deg, #2bd7a8 0%, #1f9a62 45%, var(--forest-deep) 100%);
  color: #ffffff;
}

.media--mint {
  background:
    radial-gradient(circle at 15% 0%, #ffffff, transparent 60%),
    var(--mint);
  color: var(--forest);
}

.media--mint .media-stat {
  color: var(--forest-deep);
}

.work-body {
  padding-top: clamp(20px, 2vw, 28px);
}

.work-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.1vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.work-title .icon {
  font-size: 0.9em;
  stroke-width: 1.4;
  color: var(--accent);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
}

.badges li,
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-ink);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: 0.1em;
}

.work-body p {
  margin: 0 0 12px;
  max-width: 68ch;
}

.work-body strong {
  margin-right: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid var(--pill-line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.pill:hover {
  border-color: var(--accent);
  background: var(--chip-bg);
}

.pill--solid {
  border-color: var(--forest);
  background: var(--forest);
  color: #ffffff;
}

.pill--solid:hover {
  border-color: var(--forest-deep);
  background: var(--forest-deep);
}

.pill .icon {
  font-size: 1.05em;
}

.pill--dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.row-list {
  margin: 0 0 clamp(40px, 4vw, 56px);
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.row-list li {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.row-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  letter-spacing: -0.01em;
}

.row-name a {
  text-decoration-color: var(--cyan-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.row-name a:hover {
  color: var(--accent);
}

.row-desc {
  color: var(--muted);
  font-weight: 300;
}

/* ---------- Experience ---------- */

.job {
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px clamp(24px, 3vw, 56px);
  padding: clamp(24px, 2.6vw, 36px) 0;
  border-top: 1px solid var(--ink);
}

.job:last-child {
  border-bottom: 1px solid var(--line);
}

.job-dates {
  margin: 0;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--muted);
}

.job-role {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.9vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.job-org {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: 0;
  color: var(--accent);
}

.job-points {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.job-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.job-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-green);
}

/* ---------- Dark band: Skills + Education ---------- */

.band {
  --focus: var(--cyan-green);
  margin-top: var(--section-space);
  padding-bottom: var(--section-space);
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgb(46 230 182 / 0.12), transparent 70%),
    var(--forest-900);
  color: #ffffff;
}

.band .display--center {
  margin-bottom: clamp(48px, 6vw, 96px);
}

.band #education .display {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.bento {
  columns: 3 300px;
  column-gap: 20px;
}

.bento-card {
  break-inside: avoid;
  margin-bottom: 20px;
  padding: clamp(28px, 2.6vw, 44px) clamp(24px, 2.2vw, 40px);
  border-radius: clamp(24px, 2vw, 32px);
  background: var(--card);
  border: 1px solid rgb(143 243 214 / 0.06);
}

.bento-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.6vw, 1.75rem);
  line-height: 1.25;
}

.bento-card p {
  margin: 0 0 12px;
  color: var(--muted-on-dark);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.4;
}

.bento-meta {
  font-family: var(--font-mono);
  font-size: 0.875rem !important;
  color: var(--cyan-green) !important;
}

.bento-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.bento-icons li {
  display: grid;
  place-items: center;
  width: clamp(60px, 5vw, 76px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--well);
}

.bento-icons img {
  width: 46%;
  height: 46%;
}

/* Dark logos: flatten to white, or brighten the ones that need their color */
.bento-icons img.mono {
  filter: brightness(0) invert(1);
}

.bento-icons img.lift {
  filter: brightness(2.2);
}

.bento--edu {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.bento--edu .bento-card {
  margin-bottom: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--well);
  color: #ffffff;
  font-weight: 300;
  font-size: 1rem;
}

.chips .chip--accent {
  background: var(--cyan-green);
  color: var(--forest-950);
  font-weight: 500;
}

/* ---------- Contact ---------- */

.contact {
  padding-top: var(--section-space);
  padding-bottom: clamp(56px, 6vw, 88px);
}

.contact-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 4.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.contact-rule {
  position: relative;
  margin-top: clamp(80px, 9vw, 130px);
  border-top: 1px solid var(--ink);
}

.cta-circle {
  position: absolute;
  top: 0;
  right: clamp(0px, 14vw, 240px);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: clamp(140px, 14vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cyan-green);
  color: var(--forest-950);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, transform 0.25s;
}

.cta-circle:hover {
  background: var(--forest);
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(32px, 6vw, 96px);
  margin: clamp(80px, 8vw, 110px) 0 0;
}

.contact-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

.contact-details dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.3vw, 1.375rem);
}

.contact-details a {
  text-decoration-color: var(--cyan-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.contact-details a:hover {
  color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  --focus: var(--cyan-green);
  overflow: hidden;
  padding: clamp(36px, 4vw, 56px) 0 clamp(110px, 9vw, 130px);
  background: var(--footer-bg);
  color: #ffffff;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-inline: clamp(16px, 3.4vw, 68px) clamp(16px, 2vw, 36px);
}

.footer-line {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.75rem, 5.2vw, 6.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.footer-up {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: clamp(64px, 7.4vw, 142px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  color: var(--forest-950);
  font-size: clamp(28px, 3.6vw, 64px);
  transition: background-color 0.2s, transform 0.2s;
}

.footer-up:hover {
  background: var(--cyan-green);
  transform: rotate(-20deg);
}

.footer-name {
  margin: 0;
  padding-inline: 2vw;
  font-weight: 500;
  font-size: 16.6vw;
  line-height: 1.15;
  letter-spacing: -0.045em;
  white-space: nowrap;
  background: linear-gradient(95deg, var(--cyan-green) 0%, #6fe0a0 45%, var(--forest-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-inline: clamp(16px, 3.4vw, 68px);
  margin-top: 12px;
  color: var(--muted-on-dark);
  font-size: 0.9375rem;
}

.footer-meta p {
  margin: 0;
}

.footer-meta a:hover {
  color: var(--cyan-green);
}

/* ---------- Tablet ---------- */

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

  .intro-side {
    text-align: left;
  }

  .arrow-links {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
  }

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

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

  .job-dates {
    padding-top: 0;
  }
}

/* Portrait tablets: the hero is tall, so scale its pieces up */
@media (orientation: portrait) and (min-width: 641px) {
  .hero {
    --photo: min(46vw, 400px);
    --photo-top: 20%;
  }

  .marquee-item {
    font-size: 20vw;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 640px) {
  .hero {
    --photo: min(72vw, 300px);
    --photo-top: max(150px, 26%);
    min-height: max(560px, 100svh);
  }

  .hero-bar {
    flex-direction: column;
    gap: 6px;
  }

  .hero-tagline {
    text-align: left;
    font-size: 0.9375rem;
  }

  .hero-photo-wrap {
    padding: 7px;
  }

  /* Sits beside the status pill instead of over the photo */
  .hero-arrow {
    top: auto;
    bottom: 92px;
    left: auto;
    right: 16px;
    width: 52px;
    font-size: 22px;
  }

  .marquee-item {
    font-size: clamp(5.5rem, 27vw, 9rem);
  }

  .hero-status {
    left: 16px;
    bottom: 96px;
  }

  .dock {
    gap: 4px;
    padding: 6px 8px;
    border-radius: 16px;
  }

  .dock a,
  .dock button {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .section-head {
    flex-direction: column;
    gap: 14px;
  }

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

  .row-list li {
    grid-template-columns: 1fr;
  }

  .cta-circle {
    right: 0;
  }

  .contact-details {
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track,
  .status-dot {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
