/* =========================================================
   Francesco Alexander — Portfolio
   Complete rewrite: warm cream palette, editorial typography,
   clean cascade, no legacy overrides.
   ========================================================= */



/* ── DESIGN TOKENS ───────────────────────────────────────── */

:root {

  /* Backgrounds */
  --bg:       #F0E6D3;
  --panel:    #F9F3E9;
  --surface:  #E8DBCA;
  --raised:   #DECDBA;
  --border:   #C8B99E;
  --border-hi:#A89480;

  /* Ink / Text — high readability & solid contrast */
  --ink:      #161311;
  --ink-2:    #2B241E;
  --ink-3:    #4E4338;
  --ink-4:    #635548;

  /* Aliases for backwards compatibility */
  --text:     var(--ink);
  --text-2:   var(--ink-2);
  --text-3:   var(--ink-3);
  --text-4:   var(--ink-4);

  /* Accents — Forest Green: calm, grounded, and distinct from purple-heavy themes */
  --accent:   #315C46;
  --accent-hi:#416E57;
  --accent-bg:rgba(49,92,70,.10);
  --green:    #315C46;
  --green-bg: rgba(49,92,70,.11);
  --amber:    #9A7042;
  --amber-bg: rgba(154,112,66,.10);

  /* Typography */
  --display:  "Manrope", sans-serif;
  --body:     "Plus Jakarta Sans", sans-serif;
  --mono:     "DM Mono", monospace;

  /* Motion */
  --ease:       cubic-bezier(.22, 1, .36, 1);
  --ease-back:  cubic-bezier(.34, 1.56, .64, 1);

  /* Radius */
  --r:    8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

}



/* ── RESET ───────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink-2);
}

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button { background: none; border: none; font: inherit; cursor: none; }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.04em;
  text-wrap: pretty;
}

p, li { text-wrap: pretty; }

::selection { background: var(--accent); color: #fff; }

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



/* ── SCROLL PROGRESS ─────────────────────────────────────── */

.scroll-progress {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
}

#progressBar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transition: width .1s linear;
}



/* ── CUSTOM CURSOR ───────────────────────────────────────── */

.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--ink);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(22,19,17,.32);
  transition:
    width .3s var(--ease),
    height .3s var(--ease),
    background .3s,
    border-color .3s,
    border-radius .3s;
}

.cursor-ring.hover {
  width: 54px;
  height: 54px;
  background: rgba(148,66,40,.08);
  border-color: var(--accent);
}



/* ── UTILITIES ───────────────────────────────────────────── */

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .07em;
}

.section-shell {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

.eyebrow-line {
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* Section h2 em — accent colored, not italic */
h2 em { color: var(--accent); font-style: normal; }



/* ── HEADER ──────────────────────────────────────────────── */

.site-header {
  height: 76px;
  padding: 0 clamp(20px, 3vw, 52px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240,230,211,.95);
  backdrop-filter: blur(20px) saturate(1.3);
  transition: height .3s var(--ease), background .3s;
}

.site-header.shrunk {
  height: 62px;
  background: rgba(240,230,211,.98);
}

/* Wordmark */
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.mark {
  font: 800 24px var(--display);
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--accent);
}

.mark span { color: var(--border-hi); }

.wordmark-text {
  font: 500 10px var(--mono);
  letter-spacing: .14em;
  line-height: 1.7;
  color: var(--ink-2);
}

.wordmark-text span {
  display: block;
  color: var(--ink-3);
  font-size: 8px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font: 500 13.5px var(--body);
  color: var(--ink-3);
  transition: color .2s;
  letter-spacing: .01em;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-links a span {
  font: 400 9px var(--mono);
  color: var(--ink-4);
  margin-right: 5px;
}

/* Availability badge */
.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 10px var(--mono);
  letter-spacing: .07em;
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 100px;
  white-space: nowrap;
  color: var(--ink-2);
  background: rgba(249,243,233,.8);
  flex-shrink: 0;
  transition: border-color .25s, background .25s;
}

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

.availability i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.availability b { color: var(--green); margin-left: 2px; }

/* Mobile menu button */
.mobile-menu { display: none; }



/* ── HERO ────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(16px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 3.5vw, 48px) 0 clamp(36px, 4.5vw, 60px);
}

/* Typing line */
.hero-roleline {
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin: 0 0 18px;
}

#typingRole {
  display: inline-block;
  color: var(--accent);
  min-width: 1ch;
}

.typing-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: -4px;
  animation: blink .9s steps(1) infinite;
}

/* Hero heading */
.hero h1 {
  font: 800 clamp(52px, 5.5vw, 88px)/.94 var(--display);
  letter-spacing: -.045em;
  color: var(--ink);
  margin: 0;
  max-width: 740px;
}

.headline-outline {
  /* Filled like the “practice.” accent — no hollow/outlined lettering */
  color: var(--accent);
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 0 rgba(49,92,70,.04);
}

.hero-description {
  max-width: 520px;
  color: var(--ink-2);
  font-size: clamp(15.5px, 1.1vw, 17px);
  line-height: 1.95;
  margin: 26px 0 30px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: manual;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--ink-3);
  margin-top: 36px;
  font: 500 10.5px var(--mono);
  letter-spacing: .09em;
}

.hero-footnote span { display: flex; align-items: center; gap: 8px; }
.hero-footnote span::before { content: "—"; color: var(--accent); }

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 24px;
  color: var(--ink-3);
  font: 500 11px var(--mono);
  letter-spacing: .08em;
}

.scroll-line {
  height: 1.5px;
  width: 90px;
  background: var(--border-hi);
  position: relative;
  overflow: hidden;
}

.scroll-line i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  transform: translateX(-100%);
  animation: scan 2.4s ease-in-out infinite;
}



/* ── BUTTONS ─────────────────────────────────────────────── */

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 100px;
  font: 600 13px var(--body);
  letter-spacing: .02em;
  transition:
    transform .3s var(--ease-back),
    background .2s,
    border-color .2s,
    box-shadow .25s,
    color .2s;
  will-change: transform;
  position: relative;
  overflow: hidden;
  cursor: none;
}

.button span {
  font-size: 16px;
  transition: transform .25s var(--ease);
  display: inline-block;
}

.button:hover span { transform: translate(3px, -2px); }

.button-light {
  background: var(--ink);
  color: #FAF7F2;
  border-color: var(--ink);
  box-shadow: 0 4px 18px rgba(22,19,17,.20);
}

.button-light:hover {
  background: #2E2824;
  border-color: #2E2824;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(22,19,17,.28);
}

.button-text {
  color: var(--ink-2);
  border-color: var(--border-hi);
  background: rgba(249,243,233,.85);
}

.button-text:hover {
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent-bg);
}

.button-outline {
  color: var(--ink-2);
  border-color: var(--border-hi);
  background: rgba(249,243,233,.75);
}

.button-outline:hover {
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent-bg);
}



/* ── HERO PORTRAIT ───────────────────────────────────────── */

.hero-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-self: end;
  align-self: center;
  width: min(100%, 460px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--panel);
  box-shadow: 0 20px 56px rgba(60,42,20,.12);
  overflow: hidden;
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.8;
  overflow: hidden;
  background: var(--raised);
}

.portrait-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

.portrait-topline {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  right: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
}

.portrait-topline span {
  padding: 6px 10px;
  color: var(--ink-2);
  border: 1px solid rgba(200,185,158,.9);
  border-radius: var(--r);
  background: rgba(249,243,233,.94);
  backdrop-filter: blur(8px);
}

.hero-portrait-caption {
  padding: 16px 20px;
  background: var(--panel);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.portrait-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.portrait-info strong {
  color: var(--ink);
  font: 700 18px/1.2 var(--display);
  letter-spacing: -.03em;
}

.portrait-info .mono {
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: .08em;
}

.portrait-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  color: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  font-size: 8.5px;
  letter-spacing: .06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.portrait-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* Constellation canvas */
#constellation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: .08;
}

/* Noise overlay (kept minimal) */
.noise {
  position: fixed;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}



/* ── SIGNAL STRIP ────────────────────────────────────────── */

.signal-strip {
  border-block: 1.5px solid var(--border-hi);
  overflow: hidden;
  background: var(--surface);
  padding: 16px 0;
}

.signal-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.signal-track span {
  font: 500 11px var(--mono);
  letter-spacing: .15em;
  color: var(--ink-2);
}

.signal-track i {
  font-style: normal;
  color: var(--accent);
  font-size: 11px;
}



/* ── WORK SECTION ────────────────────────────────────────── */

.work-section { padding: clamp(80px, 7vw, 120px) 0; }

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 56px;
  margin-bottom: 48px;
}

.section-top h2,
.capabilities-head h2 {
  font: 800 clamp(44px, 5.2vw, 72px)/1.02 var(--display);
  letter-spacing: -.045em;
  color: var(--ink);
  margin: 0;
}

.section-intro {
  max-width: 400px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
}

/* Work filter */
.work-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-block: 1px solid var(--border);
  margin-bottom: 32px;
}

.work-filter > span { color: var(--ink-4); font-size: 10px; }

.filter-buttons { display: flex; gap: 7px; flex-wrap: wrap; }

.filter-btn {
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--ink-3);
  font: 500 12px var(--body);
  padding: 8px 15px;
  cursor: none;
  transition: all .2s;
  border-radius: 100px;
  letter-spacing: .02em;
}

.filter-btn span {
  color: var(--ink-4);
  margin-left: 5px;
  font: 400 10px var(--mono);
}

.filter-btn:hover {
  background: var(--panel);
  border-color: var(--border);
  color: var(--ink-2);
}

.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.filter-btn.active span { color: var(--accent-hi); }



/* ── PROJECT ROWS ────────────────────────────────────────── */

.project-list { display: flex; flex-direction: column; gap: 40px; }

.project-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, .95fr);
  gap: 28px;
  align-items: center;
  padding: 0 0 40px;
  border-bottom: 1px solid var(--border);
  transition: opacity .3s;
  width: 100%;
}

/* Reverse layout */
.project-row.reverse .project-number  { order: 0; grid-column: 1; grid-row: 1; }
.project-row.reverse .project-detail  { order: 0; grid-column: 2; grid-row: 1; align-self: center; }
.project-row.reverse .project-art     { order: 0; grid-column: 3; grid-row: 1; }

.project-row.is-hidden { display: none; }

.project-number {
  color: var(--accent);
  font: 400 12px var(--mono);
  align-self: start;
  padding-top: 6px;
  letter-spacing: .06em;
}

.project-number span {
  display: block;
  color: var(--ink-3);
  margin-top: 5px;
}

/* Project art panel */
.project-art {
  height: clamp(340px, 28vw, 420px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(50,35,15,.08);
}

.project-art:hover {
  border-color: rgba(148,66,40,.45);
  box-shadow: 0 20px 56px rgba(50,35,15,.12);
}

.art-top {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font: 500 10.5px var(--mono);
}

.art-stamp {
  position: absolute;
  bottom: 14px; right: 16px;
  color: var(--ink-3);
  font: 500 10.5px var(--mono);
  z-index: 4;
}

/* Art backgrounds — warm cream tones */
.art-mypskd  { background: linear-gradient(135deg, #DCE6E8, #CDD8DC); }
.art-uccd    { background: linear-gradient(135deg, #E4EAD8, #F2EDDD); }
.art-toko    { background: linear-gradient(135deg, #EADDC8, #D9C9A9); }
.art-loyalty { background: linear-gradient(135deg, #EFE2D8, #DECAC0); }



/* ── MOCK DEVICE — MyPSKD ────────────────────────────────── */

.mock-device {
  position: absolute;
  left: 50%; top: 52%;
  transform: translate(-50%, -46%) rotate(-5deg);
  width: 232px; height: 336px;
  border: 3px solid #2E3040;
  border-radius: 28px;
  background: #060A12;
  padding: 8px;
  box-shadow: 20px 26px 56px rgba(0,0,0,.55), 0 0 0 1px rgba(148,66,40,.12);
  transition: transform .6s var(--ease);
}

.project-art:hover .mock-device {
  transform: translate(-50%, -49%) rotate(-1deg) scale(1.03);
}

.device-notch {
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 66px; height: 12px;
  background: #030507;
  border-radius: 10px;
  z-index: 3;
}

.device-app {
  height: 100%;
  border-radius: 20px;
  background: #0E1521;
  padding: 26px 12px 10px;
  overflow: hidden;
}

.mock-greeting small { font: 400 9px var(--mono); color: #6E8EA8; display: block; }
.mock-greeting b { display: block; font: 700 20px/1.1 var(--display); letter-spacing: -.04em; margin-top: 10px; color: #E8F0FF; }
.mock-greeting em { font-style: normal; color: #7DD3FC; }

.mock-metrics { display: flex; gap: 7px; margin: 14px 0; }
.mock-metrics div { background: #162030; border: 1px solid #1E3048; border-radius: 8px; flex: 1; padding: 9px; }
.mock-metrics small, .mock-metrics b { display: block; }
.mock-metrics small { font: 400 8px var(--mono); color: #6E8EA8; }
.mock-metrics b { font: 700 18px var(--display); margin-top: 5px; color: #E8F0FF; }

.mock-course { display: flex; align-items: center; gap: 8px; background: #162030; border-radius: 7px; padding: 8px 6px; margin-bottom: 6px; }
.course-icon { width: 28px; height: 28px; display: grid; place-items: center; background: #1E3F6A; color: #7DD3FC; border-radius: 7px; font: 700 12px var(--display); flex-shrink: 0; }
.course-purple { background: #3A2A60; color: #C4B5FD; }
.mock-course > div { flex: 1; min-width: 0; }
.mock-course small, .mock-course b { display: block; }
.mock-course small { font: 400 8px var(--mono); color: #6E8EA8; }
.mock-course b { font: 500 9px var(--body); margin: 3px 0 6px; color: #C8D4E8; }
.mock-course i { display: block; height: 3px; background: #1E3048; border-radius: 3px; }
.mock-course i span { display: block; width: 67%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); border-radius: 3px; }
.mock-course > span:last-child { font-size: 10px; color: #7DD3FC; }
.mock-nav { display: flex; justify-content: space-around; color: #7DD3FC; margin-top: 10px; font-size: 14px; }



/* ── MOCK WINDOW — UCCD ──────────────────────────────────── */

.uccd-window {
  position: absolute;
  left: 8%; right: 8%; top: 60px; bottom: 32px;
  background: #F5F3EA; color: #1A2318;
  box-shadow: 0 22px 70px rgba(0,0,0,.5);
  transform: rotate(1.5deg);
  transition: transform .6s var(--ease);
  border-radius: 4px;
  overflow: hidden;
}

.project-art:hover .uccd-window { transform: rotate(0) translateY(-5px); }

.uccd-nav { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #DDD9CA; font-size: 8px; color: #557050; }
.uccd-nav b { font: 700 13px var(--display); color: #1A2318; }
.uccd-nav b span { color: #6AB030; }
.uccd-nav button { font: 500 7px var(--mono); background: #1A2318; color: #F0EDE0; border: none; padding: 7px 10px; border-radius: 3px; cursor: default; }
.uccd-hero { padding: 22px 20px 12px; background: linear-gradient(130deg, #F5F3EA, #E8EDDF); }
.uccd-hero small { font: 400 8px var(--mono); color: #6B7868; letter-spacing: .1em; display: block; }
.uccd-hero b { display: block; font: 700 34px/.9 var(--display); letter-spacing: -.06em; margin: 12px 0; }
.uccd-hero b i { color: #4A8020; font-style: normal; }
.uccd-hero p { font-size: 9px; color: #5A6458; line-height: 1.5; }
.uccd-pills { display: flex; gap: 5px; margin-top: 14px; }
.uccd-pills span { font: 400 7px var(--mono); border: 1px solid #A8BEA0; padding: 5px 8px; color: #4A6044; border-radius: 2px; }
.uccd-foot { display: flex; justify-content: space-between; padding: 12px 16px; font: 400 7px var(--mono); color: #7A8878; }



/* ── MOCK WINDOW — Tokoclone ─────────────────────────────── */

.shop-window {
  position: absolute;
  inset: 60px 7% 30px;
  background: #F2EAD8; color: #26231A;
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  transform: rotate(-1.3deg);
  transition: transform .6s var(--ease);
  border-radius: 4px; overflow: hidden;
}

.project-art:hover .shop-window { transform: rotate(0) translateY(-5px); }

.shop-nav { height: 33px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid #D8CDB8; font-size: 7px; color: #6E6254; }
.shop-nav > b { font: 700 13px var(--display); color: #26231A; }
.shop-nav > b span { color: #C05A2E; }
.shop-search { padding: 5px 8px; background: #E6DAC5; border-radius: 3px; font-size: 7px; color: #8A7A68; }

.shop-hero { height: 126px; margin: 9px; background: #D9CAB0; position: relative; padding: 14px; overflow: hidden; border-radius: 3px; }
.shop-hero small { font: 400 7px var(--mono); letter-spacing: .12em; color: #6E5F4E; display: block; }
.shop-hero b { display: block; font: 700 27px/.92 var(--display); letter-spacing: -.05em; margin: 9px 0; }
.shop-hero > div:first-child > span { font: 400 7px var(--mono); border-bottom: 1px solid #5F4C38; padding-bottom: 4px; }
.shop-orb { position: absolute; width: 135px; height: 135px; border-radius: 50%; right: -8px; top: 8px; background: radial-gradient(circle at 32% 28%, #F5C880, #C06040 70%); display: grid; place-items: center; box-shadow: inset -10px -10px 25px rgba(80,30,20,.4); }
.shop-orb span { font: 400 10px var(--mono); color: #fff; text-align: center; letter-spacing: .1em; }

.shop-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; padding: 0 9px; margin-top: 5px; }
.shop-grid > div { min-width: 0; }
.shop-product { height: 52px; display: grid; place-items: center; font-size: 24px; background: #E4D8C2; color: #9A6A42; border-radius: 3px; }
.p2 { background: #C8D0BE; color: #627060; }
.p3 { background: #D8C8C2; color: #885858; }
.shop-grid small { font: 400 7px var(--mono); color: #857565; margin-top: 5px; display: block; }
.shop-grid b { font-size: 8px; margin-top: 3px; display: block; }



/* ── MOCK PHONE — Loyalty ────────────────────────────────── */

.loyalty-phone {
  position: absolute;
  left: 50%; top: 54%;
  transform: translate(-50%, -48%) rotate(4deg);
  width: 212px; height: 322px;
  border: 3px solid #3A3650;
  border-radius: 28px;
  background: #0E0C18;
  padding: 10px 11px;
  box-shadow: 20px 26px 56px rgba(0,0,0,.65);
  transition: transform .6s var(--ease);
}

.project-art:hover .loyalty-phone { transform: translate(-50%, -52%) rotate(0) scale(1.03); }

.loyalty-notch { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); height: 12px; width: 65px; border-radius: 10px; background: #060509; }
.loyalty-brand { font: 800 20px var(--display); letter-spacing: -.06em; margin-top: 18px; text-align: center; color: #E8E0FF; }
.loyalty-brand span { color: var(--accent-hi); }
.loyalty-brand small { display: block; font: 400 8px var(--mono); letter-spacing: .12em; color: #8A85A8; margin-top: 2px; }
.loyalty-card { position: relative; margin-top: 16px; height: 94px; padding: 12px; border-radius: 10px; background: linear-gradient(135deg, #A85838, #823D24 55%, #421D12); overflow: hidden; }
.loyalty-card small, .loyalty-card b, .loyalty-card span { display: block; font: 400 8px var(--mono); position: relative; z-index: 2; color: rgba(255,255,255,.8); }
.loyalty-card b { font: 700 12px var(--display); margin-top: 16px; color: #fff; }
.loyalty-card span { margin-top: 6px; }
.loyalty-card i { position: absolute; right: 10px; top: 12px; font-style: normal; font-size: 52px; color: rgba(255,255,255,.12); }
.loyalty-section { margin-top: 16px; }
.loyalty-section span { font: 400 8px var(--mono); color: #8A85A8; display: block; }
.loyalty-section b { display: block; font: 600 13px/1.2 var(--display); margin-top: 6px; color: #D4D0F0; }
.loyalty-tiles { display: flex; gap: 7px; margin-top: 12px; }
.loyalty-tiles div { flex: 1; height: 45px; border: 1px solid rgba(148,66,40,.3); border-radius: 7px; display: grid; place-items: center; color: var(--accent-hi); font-size: 14px; background: rgba(148,66,40,.08); }
.loyalty-tiles small { font: 400 7px var(--mono); color: #8A85A8; display: block; }
.loyalty-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 10px; padding-top: 8px; text-align: center; font: 400 8px var(--mono); color: #8A85A8; }



/* ── PROJECT DETAIL ──────────────────────────────────────── */

.project-detail { padding: 16px 0 12px; }

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  color: var(--ink-3);
  font: 500 10.5px var(--mono);
}

.project-meta span:first-child { color: var(--accent); }

.project-detail h3 {
  font: 800 clamp(28px, 3.2vw, 44px)/1.06 var(--display);
  letter-spacing: -.042em;
  color: var(--ink);
  margin: 16px 0 12px;
}

.project-arrow {
  color: var(--ink-4);
  font-size: .5em;
  vertical-align: super;
  margin-left: 8px;
  transition: color .2s, transform .2s;
  display: inline-block;
}

.project-row:hover .project-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.project-lead {
  font: 600 16px/1.55 var(--body);
  color: var(--ink);
  margin: 0 0 10px;
}

.project-copy {
  font: 400 14.5px/1.9 var(--body);
  color: var(--ink-2);
  margin: 0;
  max-width: 540px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.tech-stack { display: flex; gap: 7px; flex-wrap: wrap; margin: 20px 0; }

.tech-stack span,
.experience-tags span,
.modal-tech span {
  font: 400 11px var(--mono);
  color: var(--ink-2);
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 100px;
  background: rgba(249,243,233,.7);
  transition: border-color .2s, color .2s;
}

.tech-stack span:hover { border-color: var(--accent); color: var(--accent); }

.project-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.case-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font: 600 13px var(--body);
  cursor: none;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-link span { transition: transform .25s var(--ease); display: inline-block; }
.case-link:hover span { transform: translate(4px, -3px); }

.repo-link {
  color: var(--ink-3);
  font: 400 13px var(--body);
  cursor: none;
  transition: color .2s;
}

.repo-link:hover { color: var(--ink); }
.repo-link.muted { color: var(--ink-4); cursor: default; }

.visual-note {
  margin: 28px 0 0;
  color: var(--ink-3);
  font: 500 10.5px var(--mono);
}



/* ── MANIFESTO / ABOUT ───────────────────────────────────── */

.manifesto-section {
  background: var(--surface);
  border-block: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.manifesto-section::before {
  content: "";
  position: absolute;
  right: -160px; top: -240px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(148,66,40,.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.manifesto-shell {
  padding: clamp(80px, 7vw, 120px) 0;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 80px;
  position: relative;
}

.manifesto-side { display: flex; flex-direction: column; align-items: flex-start; }

/* About snapshot card */
.about-snapshot {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--panel), #F1E7D5);
  box-shadow: 0 14px 38px rgba(50,35,15,.06);
  width: 100%;
}

.about-snapshot-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-4);
  font-size: 9px;
  letter-spacing: .07em;
}

.about-monogram {
  margin: 22px 0 16px;
  color: var(--ink);
  font: 800 clamp(56px, 7vw, 96px)/.9 var(--display);
  letter-spacing: -.12em;
}

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

.about-snapshot-kicker {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .12em;
}

.about-snapshot h3 {
  margin: 10px 0 12px;
  color: var(--ink);
  font: 800 clamp(22px, 2.5vw, 32px)/1.12 var(--display);
  letter-spacing: -.045em;
}

.about-snapshot h3 em { color: var(--accent); font-style: normal; }

.about-snapshot-copy {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.about-stats > div { display: flex; flex-direction: column; gap: 2px; }

.about-stats strong {
  color: var(--ink);
  font: 800 26px/1.1 var(--display);
  letter-spacing: -.04em;
}

.about-stats span { color: var(--ink-3); font-size: 11px; line-height: 1.5; font-weight: 500; }

.about-values {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink-3);
  font: 500 9.5px var(--mono);
  letter-spacing: .08em;
}

.about-values i { color: var(--accent); font-style: normal; }

/* Manifesto copy */
.manifesto-copy { min-width: 0; align-self: center; }

.manifesto-label {
  font: 500 10px var(--mono);
  color: var(--accent);
  letter-spacing: .14em;
  margin: 5px 0 26px;
}

.manifesto-copy h2 {
  font: 800 clamp(36px, 4.6vw, 58px)/1.05 var(--display);
  letter-spacing: -.045em;
  color: var(--ink);
  margin: 0 0 26px;
  max-width: 740px;
}

.manifesto-body {
  max-width: 680px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.95;
  margin: 0 0 16px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.manifesto-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
  margin-top: 34px;
}

.signature-mark {
  font: 800 34px var(--display);
  letter-spacing: -.08em;
  color: var(--accent);
}

.manifesto-signature b { display: block; font: 600 14px var(--body); color: var(--ink); }

.manifesto-signature small {
  display: block;
  font: 400 10px var(--mono);
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: .07em;
}



/* ── EXPERIENCE ──────────────────────────────────────────── */

.experience-section { padding: clamp(80px, 7vw, 120px) 0; }

.experience-list { border-top: 1px solid var(--border); }

.experience-item {
  display: grid;
  grid-template-columns: 150px 50px 1fr 66px;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background .3s;
  border-radius: 4px;
}

.experience-item:hover {
  background: linear-gradient(90deg, rgba(148,66,40,.04), transparent 60%);
}

.experience-date {
  color: var(--ink-3);
  font: 500 11px var(--mono);
  padding-top: 8px;
  letter-spacing: .06em;
}

.experience-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148,66,40,.25);
  color: var(--accent);
  font-size: 20px;
  border-radius: 10px;
  background: var(--accent-bg);
}

.symbol-lime   { color: var(--green);  border-color: rgba(42,114,88,.3);  background: var(--green-bg); }
.symbol-purple { color: var(--accent); border-color: rgba(148,66,40,.25); background: var(--accent-bg); }
.symbol-orange { color: var(--amber);  border-color: rgba(143,94,22,.3);  background: var(--amber-bg); }

.experience-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.experience-title h3 {
  font: 700 19px var(--display);
  margin: 0;
  letter-spacing: -.02em;
  color: var(--ink);
}

.experience-title span { font: 500 13px var(--body); color: var(--ink-3); }

.experience-content p {
  max-width: 740px;
  font: 400 14.5px/1.88 var(--body);
  color: var(--ink-2);
  margin: 10px 0 14px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.experience-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.experience-tags span { background: rgba(249,243,233,.8); color: var(--ink-2); font-weight: 500; }
.experience-index { color: var(--ink-3); font: 500 10.5px var(--mono); padding-top: 9px; text-align: right; }



/* ── GALLERY ─────────────────────────────────────────────── */

.gallery-section { padding: clamp(80px, 7vw, 120px) 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .25s, box-shadow .3s;
  box-shadow: 0 8px 24px rgba(50,35,15,.06);
}

.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(50,35,15,.10);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item[data-label]::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px 16px;
  background: linear-gradient(0deg, rgba(28,25,23,.72) 0%, transparent 100%);
  color: rgba(255,255,255,.9);
  font: 500 12px var(--mono);
  letter-spacing: .06em;
  z-index: 3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}

.gallery-item:hover[data-label]::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, var(--panel), var(--surface));
  border-radius: 14px;
  text-align: center;
  padding: 24px 20px;
}

.gallery-tag {
  display: inline-block;
  font: 500 9.5px var(--mono);
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(148,66,40,.22);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.gallery-icon {
  font-size: 26px;
  color: var(--accent);
  opacity: .85;
  display: block;
  margin-bottom: 2px;
}

.gallery-placeholder p {
  font: 600 13.5px var(--body);
  color: var(--ink-2);
  margin: 0;
}

.gallery-placeholder small {
  font: 500 11px var(--mono);
  color: var(--ink-3);
  letter-spacing: .05em;
  margin: 0;
}

.gallery-note {
  margin-top: 28px;
  color: var(--ink-3);
  font: 500 10.5px var(--mono);
  letter-spacing: .1em;
}



/* ── CAPABILITIES / TOOLKIT ──────────────────────────────── */

.capabilities-section {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding: clamp(80px, 7vw, 120px) 0;
}

.capabilities-inner {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 80px;
  align-items: start;
}

.capabilities-head {
  position: sticky;
  top: 96px;
}

.capabilities-head h2 { font-size: clamp(40px, 4.8vw, 62px); }

.capabilities-head > p:not(.eyebrow) {
  font: 400 15px/1.85 var(--body);
  color: var(--ink-2);
  max-width: 340px;
  margin-top: 20px;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.capability-card {
  position: relative;
  padding: 24px 22px 22px;
  background: linear-gradient(150deg, var(--panel), #F1E5D4);
  border: 1px solid var(--border);
  min-height: 230px;
  transition: transform .3s var(--ease-back), border-color .25s, box-shadow .25s;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(50,35,15,.04);
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-bg), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  border-radius: inherit;
}

.capability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(148,66,40,.35);
  box-shadow: 0 16px 40px rgba(50,35,15,.08);
}

.capability-card:hover::before { opacity: 1; }

.cap-num {
  font: 500 10.5px var(--mono);
  color: var(--ink-3);
  letter-spacing: .08em;
  position: relative;
}

.cap-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 20px;
  margin-top: 20px;
  border-radius: 10px;
  border: 1px solid rgba(148,66,40,.25);
  position: relative;
}

.cap-purple { background: var(--accent-bg); color: var(--accent); border-color: rgba(148,66,40,.25); }
.cap-orange { background: var(--amber-bg); color: var(--amber); border-color: rgba(143,94,22,.25); }
.cap-lime   { background: var(--green-bg); color: var(--green); border-color: rgba(42,114,88,.25); }

.capability-card h3 {
  font: 700 16px var(--display);
  margin: 14px 0 8px;
  color: var(--ink);
  position: relative;
}

.capability-card p {
  font: 400 13px/1.75 var(--body);
  color: var(--ink-2);
  margin: 0 0 14px;
  position: relative;
}

.cap-tags { display: flex; flex-wrap: wrap; gap: 5px; position: relative; }

.cap-tags span {
  font: 500 10.5px var(--mono);
  padding: 5px 9px;
  color: var(--ink-2);
  background: rgba(249,243,233,.85);
  color: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: 100px;
}



/* ── EDUCATION ───────────────────────────────────────────── */

.education-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: clamp(80px, 7vw, 120px) 0;
}

.education-left h2 {
  font: 800 clamp(42px, 5.2vw, 66px)/1.03 var(--display);
  letter-spacing: -.045em;
  color: var(--ink);
  margin: 24px 0 0;
}

.education-right { border-top: 1px solid var(--border); }

.education-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.education-item > span {
  font: 500 11px var(--mono);
  color: var(--ink-3);
  letter-spacing: .07em;
}

.education-item h3 {
  font: 700 19px var(--display);
  margin: 12px 0 6px;
  color: var(--ink);
}

.education-item p { font: 400 14px var(--body); color: var(--ink-2); }

.education-item small {
  display: block;
  color: var(--ink-3);
  font: 500 11px var(--mono);
  margin-top: 8px;
}

.education-note {
  font: 400 13px/1.9 var(--body);
  color: var(--ink-3);
  padding-top: 24px;
  max-width: 440px;
}



/* ── CONTACT ─────────────────────────────────────────────── */

.contact-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(80px, 7vw, 120px) 0 clamp(64px, 5.5vw, 96px);
  text-align: center;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 560px 420px at 50% 90%, rgba(148,66,40,.08), transparent),
    radial-gradient(ellipse 380px 280px at 18% 14%, rgba(42,114,88,.05), transparent);
  pointer-events: none;
}

.contact-orb {
  position: absolute;
  border-radius: 50%;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: .22;
}

.orb-one {
  width: 440px; height: 440px;
  border: 1px solid rgba(148,66,40,.18);
  animation: orbit 36s linear infinite;
}

.orb-two {
  width: 620px; height: 310px;
  transform: translate(-50%, -50%) rotate(25deg);
  border: 1px solid rgba(148,66,40,.09);
  animation: orbit 46s linear infinite reverse;
}

.contact-inner { position: relative; }

.contact-inner .eyebrow { justify-content: center; }

.contact-inner h2 {
  font: 800 clamp(48px, 7vw, 88px)/.96 var(--display);
  letter-spacing: -.045em;
  color: var(--ink);
  margin: 0 0 22px;
}

.contact-inner > p:not(.eyebrow):not(.contact-note) {
  max-width: 480px;
  margin: 0 auto;
  color: var(--ink-2);
  font: 400 16px/1.85 var(--body);
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
  color: var(--ink-3);
  font: 500 11px var(--mono);
  letter-spacing: .08em;
}

.contact-links a:hover,
.contact-links button:hover { color: var(--accent); }

.contact-links button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: none;
}

.contact-links button span { margin-left: 5px; color: var(--accent); }

.contact-note { font-size: 11px; color: var(--ink-3); margin-top: 20px; }



/* ── FOOTER ──────────────────────────────────────────────── */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 3vw, 52px);
  border-top: 1px solid var(--border);
  background: var(--raised);
}

.footer-wordmark { min-width: 0; }
.footer-wordmark .mark { font-size: 20px; }

.footer-note,
.back-top {
  font: 500 11px var(--mono);
  color: var(--ink-3);
  letter-spacing: .07em;
}

.back-top:hover { color: var(--accent); }



/* ── MODAL ───────────────────────────────────────────────── */

.case-modal {
  width: min(800px, calc(100% - 28px));
  max-height: 88vh;
  overflow: auto;
  background: var(--panel);
  color: var(--ink-2);
  border: 1px solid var(--border-hi);
  padding: 48px;
  box-shadow: 0 30px 100px rgba(50,35,15,.28);
  border-radius: var(--r-lg);
}

.case-modal::backdrop {
  background: rgba(28,25,23,.72);
  backdrop-filter: blur(14px);
}

.modal-close {
  position: sticky;
  float: right;
  top: 0;
  width: 38px; height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink-2);
  font-size: 20px;
  cursor: none;
  display: grid;
  place-items: center;
  transition: background .2s, color .2s, border-color .2s;
}

.modal-close:hover {
  background: var(--raised);
  color: var(--ink);
  border-color: var(--accent);
}

.modal-kicker {
  font: 500 10.5px var(--mono);
  letter-spacing: .13em;
  color: var(--accent);
}

.modal-title {
  font: 800 clamp(32px, 5vw, 50px)/1.04 var(--display);
  letter-spacing: -.04em;
  color: var(--ink);
  margin: 14px 0;
}

.modal-summary {
  color: var(--ink-2);
  font: 400 15px/1.9 var(--body);
  max-width: 660px;
  text-align: justify;
  text-justify: inter-word;
}

.modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.modal-columns > div { border-top: 1px solid var(--border); padding-top: 16px; }

.modal-columns h4 {
  font: 500 11px var(--mono);
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: .09em;
}

.modal-columns p,
.modal-columns li {
  font: 400 13px/1.88 var(--body);
  color: var(--ink-2);
  text-align: justify;
  text-justify: inter-word;
}

.modal-columns ul { padding-left: 18px; }

.modal-tech { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 22px; }



/* ── TOAST ───────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #FAF7F2;
  box-shadow: 0 8px 32px rgba(22,19,17,.32);
  color: #fff;
  padding: 12px 20px;
  font: 600 11px var(--mono);
  letter-spacing: .08em;
  z-index: 200;
  border-radius: 100px;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 8px 32px rgba(109,79,194,.4);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }



/* ── REVEAL ANIMATIONS ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.project-row.reveal { transition-delay: .06s; }
.project-row:nth-child(even).reveal { transition-delay: .12s; }

.gallery-item.reveal:nth-child(2) { transition-delay: .06s; }
.gallery-item.reveal:nth-child(3) { transition-delay: .12s; }
.gallery-item.reveal:nth-child(4) { transition-delay: .06s; }
.gallery-item.reveal:nth-child(5) { transition-delay: .12s; }
.gallery-item.reveal:nth-child(6) { transition-delay: .18s; }

.capability-card.reveal:nth-child(2) { transition-delay: .08s; }
.capability-card.reveal:nth-child(3) { transition-delay: .16s; }
.capability-card.reveal:nth-child(4) { transition-delay: .24s; }

/* Section-to-section rhythm: a soft color wash and animated editorial rule. */
main > section[id] {
  position: relative;
  isolation: isolate;
}
main > section[id]::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 -4vw;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(49,92,70,.105), transparent 66%);
  transition: opacity 1.1s ease;
}
main > section[id]::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%) scaleX(.18);
  transform-origin: center;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(49,92,70,.4), rgba(49,92,70,.12), transparent);
  transition: transform 1s cubic-bezier(.2,.75,.25,1), opacity .6s ease;
}
main > section[id].section-in-view::before { opacity: 1; }
main > section[id].section-in-view::after { transform: translateX(-50%) scaleX(1); opacity: 1; }

/* More dimensional staggered reveals for the existing content groups. */
.reveal {
  transform: translate3d(0, 34px, 0) scale(.985);
  filter: blur(5px);
  transition: opacity .85s var(--ease), transform .95s var(--ease), filter .85s ease;
  will-change: opacity, transform, filter;
}
.reveal.is-visible { filter: blur(0); }
.project-art, .gallery-item, .capability-card, .experience-card {
  transition: transform .55s cubic-bezier(.2,.75,.25,1), box-shadow .55s ease, border-color .35s ease;
}
.project-art:hover, .gallery-item:hover, .capability-card:hover, .experience-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 50px rgba(35,57,42,.12);
}
.signal-strip { position: relative; }
.signal-strip::before, .signal-strip::after {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; height: 14px; pointer-events: none;
  background: linear-gradient(180deg, rgba(49,92,70,.08), transparent);
}
.signal-strip::before { top: 0; }
.signal-strip::after { bottom: 0; transform: rotate(180deg); }
@keyframes sectionDrift { 0%,100% { background-position: 50% 0%; } 50% { background-position: 50% 18px; } }
main > section[id].section-in-view::before { animation: sectionDrift 8s ease-in-out infinite; }



/* ── KEYFRAMES ───────────────────────────────────────────── */

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes orbit   { to { rotate: 360deg; } }

@keyframes float   { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@keyframes blink   { 50% { opacity: 0; } }

@keyframes scan    { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

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

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,122,95,.4); }
  50%       { box-shadow: 0 0 0 5px rgba(45,122,95,0); }
}



/* ── RESPONSIVE 1200px ───────────────────────────────────── */

@media (max-width: 1200px) {
  .section-shell { width: min(1100px, calc(100% - 64px)); }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 32px; }
  .hero-portrait { width: min(100%, 420px); }
  .manifesto-shell { grid-template-columns: minmax(280px, .84fr) minmax(0, 1.16fr); gap: 48px; }
  .capabilities-inner { grid-template-columns: minmax(240px, .76fr) minmax(0, 1.24fr); gap: 40px; }
  .capabilities-head { position: static; }
}



/* ── RESPONSIVE 900px ────────────────────────────────────── */

@media (max-width: 900px) {
  .section-shell { width: calc(100% - 48px); }

  .hero-grid { grid-template-columns: minmax(0, 1fr); padding: 32px 0 28px; gap: 28px; }
  .hero-portrait { justify-self: center; width: min(100%, 420px); }

  .section-top { align-items: flex-start; }
  .section-top h2 { font-size: clamp(40px, 6vw, 58px); }
  .section-intro { max-width: 380px; font-size: 14px; }

  .project-row,
  .project-row.reverse {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .project-number,
  .project-row.reverse .project-number {
    order: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0;
  }

  .project-art,
  .project-row.reverse .project-art {
    order: 1;
    width: 100%;
    height: clamp(280px, 58vw, 380px);
  }

  .project-detail,
  .project-row.reverse .project-detail {
    order: 2;
    width: 100%;
    padding: 18px 0 4px;
  }

  .manifesto-shell { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .capabilities-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-item--tall { grid-row: span 1; }
  .gallery-item--wide { grid-column: span 1; }

  .education-section { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}



/* ── RESPONSIVE 768px ────────────────────────────────────── */

@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }

  body { cursor: auto; }
  button { cursor: pointer; }
  .cursor { display: none; }

  .site-header {
    height: 66px;
    padding-inline: 18px;
    gap: 10px;
  }

  .site-header.shrunk { height: 58px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    left: 0; right: 0;
    background: rgba(240,230,211,.98);
    padding: 10px 20px 22px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 49;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--ink-2);
  }

  .nav-links a::after { display: none; }

  .availability { display: none; }

  .mobile-menu {
    display: flex;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border);
    background: rgba(249,243,233,.7);
    border-radius: var(--r);
    cursor: pointer;
  }

  .mobile-menu span {
    width: 16px;
    height: 1.5px;
    background: var(--ink-2);
    display: block;
    transition: transform .25s, opacity .25s;
  }

  .section-shell { width: calc(100% - 36px); }

  .hero { padding-top: 12px; }
  .hero h1 { font-size: clamp(42px, 10vw, 62px); }
  .hero-description { font-size: 15px; margin: 18px 0 22px; }
  .hero-footnote { margin-top: 22px; }
  .hero-bottom { padding: 12px 0 18px; }

  .work-section,
  .experience-section { padding: 64px 0; }

  .section-top { display: block; margin-bottom: 28px; }
  .section-intro { max-width: 100%; margin-top: 14px; }

  .work-filter { display: block; }
  .work-filter > span { display: block; margin-bottom: 10px; }
  .filter-buttons { gap: 5px; }

  .project-list { gap: 26px; }
  .project-detail h3 { font-size: clamp(28px, 7vw, 40px); }
  .project-copy { font-size: 14px; }

  .manifesto-shell { padding: 64px 0 72px; }
  .manifesto-copy h2 { font-size: clamp(32px, 8vw, 48px); }
  .manifesto-body { font-size: 15px; }

  .experience-section { padding: 64px 0; }
  .experience-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }
  .experience-index { display: none; }

  .gallery-section { padding: 64px 0; }

  .capabilities-section { padding: 64px 0; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .capability-card { min-height: 0; padding: 18px; }

  .education-section { padding: 64px 0; }
  .education-left h2 { font-size: clamp(40px, 10vw, 56px); }

  .contact-section { padding: 64px 0 54px; }
  .contact-inner h2 { font-size: clamp(40px, 9vw, 60px); }

  .site-footer { padding: 20px 18px; gap: 12px; flex-wrap: wrap; }
  .footer-wordmark { width: 100%; }

  .case-modal { padding: 28px 20px; border-radius: var(--r-md); }
  .modal-columns { grid-template-columns: 1fr; gap: 14px; }
  .modal-title { font-size: clamp(28px, 7.5vw, 40px); }
}



/* ── RESPONSIVE 480px ────────────────────────────────────── */

@media (max-width: 480px) {
  .section-shell { width: calc(100% - 28px); }
  .site-header { padding-inline: 14px; }

  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .hero-portrait { width: 100%; max-width: 360px; }
  .hero-portrait-caption { padding: 12px 14px; }
  .portrait-info strong { font-size: 16px; }

  .section-top h2,
  .capabilities-head h2 { font-size: clamp(34px, 9vw, 46px); }

  .project-art,
  .project-row.reverse .project-art { height: clamp(260px, 70vw, 320px); }

  .about-stats strong { font-size: 22px; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
    gap: 12px;
  }

  .capability-grid { grid-template-columns: minmax(0, 1fr); }
  .capability-card { padding: 20px; }

  .contact-inner h2 { font-size: 38px; }
  .contact-actions { gap: 8px; }

  .case-modal { width: calc(100% - 20px); padding: 22px 16px; }
}



/* ── RESPONSIVE 380px ────────────────────────────────────── */

@media (max-width: 380px) {
  .section-shell { width: calc(100% - 24px); }
  .hero h1 { font-size: 34px; }
}



/* ── REDUCED MOTION ──────────────────────────────────────── */

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

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  body { cursor: auto; }
  .cursor { display: none; }
}


/* ── FOREST GREEN ACCENT PASS ─────────────────────────────── */
:root {
  --accent: #315C46;
  --accent-hi: #416E57;
  --accent-bg: rgba(49,92,70,.10);
  --green: #315C46;
  --green-bg: rgba(49,92,70,.11);
}
.hero h1 .headline-outline {
  color: #315C46;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
h2 em,
.about-snapshot h3 em {
  color: #315C46;
}
::selection { background: #315C46; color: #FFFFFF; }
:focus-visible { outline-color: rgba(49,92,70,.6); }
.filter-btn.active {
  color: #244936;
  border-color: rgba(69,107,89,.35);
  background: rgba(49,92,70,.11);
}


/* ── V17: NAVBAR SEPARATION + HERO MICRO-TYPOGRAPHY ──────── */

/* Give the navigation its own soft sage-cream surface, distinct from the page. */
.site-header {
  background: rgba(226, 232, 220, .97);
  border-bottom: 1px solid #C4D0C1;
  box-shadow: 0 5px 22px rgba(42, 63, 48, .055);
  backdrop-filter: blur(18px) saturate(1.15);
}
.site-header.shrunk {
  background: rgba(226, 232, 220, .985);
  border-bottom-color: #B8C8B7;
  box-shadow: 0 7px 24px rgba(42, 63, 48, .075);
}
.site-header .wordmark .mark {
  color: #315C46;
}
.site-header .nav-links a {
  color: #38473C;
}
.site-header .nav-links a span {
  color: #6D806F;
}
.site-header .nav-links a:hover,
.site-header .nav-links a.active {
  color: #244936;
}
.site-header .availability,
.site-header .header-availability {
  border-color: #B8C8B7;
}

/* Make the three principles feel designed, not like plain footer text. */
.hero-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  color: #315C46;
  font: 600 10px/1.4 var(--mono);
  letter-spacing: .065em;
}
.hero-footnote span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid rgba(49, 92, 70, .22);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255,255,255,.58), rgba(226,232,220,.64));
  box-shadow: 0 3px 10px rgba(49, 92, 70, .035);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.hero-footnote span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #456B59;
  box-shadow: 0 0 0 3px rgba(69,107,89,.12);
}
.hero-footnote span:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 92, 70, .48);
  background: #F9F5EC;
  box-shadow: 0 8px 18px rgba(49, 92, 70, .09);
}

/* Turn the scroll cue into a deliberate editorial footer row. */
.hero-bottom {
  margin-top: 12px;
  padding: 18px 0 25px;
  border-top: 1px solid rgba(49, 92, 70, .17);
  color: #536B59;
  font: 600 10px/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-bottom > span:first-child,
.hero-bottom > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-bottom > span:first-child::before {
  content: "↓";
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(49,92,70,.3);
  border-radius: 50%;
  color: #315C46;
  font-size: 13px;
  letter-spacing: 0;
}
.hero-bottom > span:last-child {
  color: #315C46;
}
.scroll-line {
  width: clamp(56px, 8vw, 110px);
  height: 2px;
  border-radius: 2px;
  background: rgba(49,92,70,.2);
}
.scroll-line i {
  background: linear-gradient(90deg, transparent, #315C46, transparent);
}

/* Small screens: keep the principles readable and avoid cramped chips. */
@media (max-width: 768px) {
  .site-header {
    background: rgba(226, 232, 220, .985);
  }
  .hero-footnote {
    gap: 8px;
    margin-top: 24px;
  }
  .hero-footnote span {
    padding: 9px 10px;
    font-size: 9px;
    letter-spacing: .025em;
  }
  .hero-bottom {
    gap: 12px;
    flex-wrap: wrap;
    letter-spacing: .07em;
  }
  .scroll-line {
    flex: 1 1 32px;
    min-width: 32px;
  }
}
@media (max-width: 420px) {
  .hero-footnote {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-footnote span {
    width: 100%;
  }
  .hero-bottom > span:last-child {
    display: none;
  }
}

/* Header identity and icon-led navigation */
.site-header .wordmark .mark {
  width: 39px;
  height: 39px;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid #315C46;
  border-radius: 50%;
  font: 800 15px/1 var(--display);
  letter-spacing: -.08em;
  color: #315C46;
  box-shadow: inset 0 0 0 3px rgba(49,92,70,.07);
}
.site-header .nav-links { gap: clamp(14px, 2.1vw, 30px); }
.site-header .nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.site-header .nav-links a span { display: none; }
.site-header .nav-links a svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .78;
  transition: transform .25s ease, opacity .25s ease;
}
.site-header .nav-links a:hover svg,
.site-header .nav-links a.active svg { transform: translateY(-2px); opacity: 1; }
.footer-wordmark .mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid #315C46;
  border-radius: 50%;
  font-size: 13px;
  letter-spacing: -.08em;
}

/* Hero role line: give the rotating introduction a clear focal point below the headline. */
.hero-copy .hero-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 9px 13px 9px 0;
  color: #456B59;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
}
.hero-eyebrow i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7D9A83;
}
.hero-copy .hero-roleline {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 20px auto 18px;
  padding: 10px 18px;
  border: 1px solid rgba(49,92,70,.19);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(255,255,255,.64), rgba(226,232,220,.72));
  box-shadow: 0 7px 24px rgba(42,63,48,.07);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.25;
  font-weight: 600;
}
.hero-roleline .role-prefix { color: #38473C; }
.hero-roleline #typingRole { font-weight: 800; }
.hero-roleline .typing-caret { height: 1em; margin-left: -5px; }
@media (max-width: 900px) {
  .hero-copy .hero-roleline { margin-inline: 0; }
}
@media (max-width: 560px) {
  .hero-copy .hero-eyebrow { gap: 7px; font-size: 8px; letter-spacing: .1em; }
  .hero-copy .hero-roleline { padding: 9px 13px; font-size: 17px; }
}

/* Portrait frame treatment: a quiet editorial viewfinder around the profile photo. */
.hero-portrait {
  border: 1px solid rgba(49,92,70,.28);
  box-shadow: 0 22px 60px rgba(42,63,48,.15), 0 0 0 7px rgba(255,255,255,.38), 0 0 0 8px rgba(49,92,70,.13);
  transition: transform .55s cubic-bezier(.2,.75,.25,1), box-shadow .55s ease;
}
.hero-portrait:hover {
  transform: translateY(-5px) rotate(-.35deg);
  box-shadow: 0 30px 72px rgba(42,63,48,.2), 0 0 0 7px rgba(255,255,255,.52), 0 0 0 8px rgba(49,92,70,.24);
}
.portrait-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 150px;
  height: 150px;
  right: -54px;
  bottom: -58px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255,255,255,.08), 0 0 0 28px rgba(255,255,255,.06);
  pointer-events: none;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 14px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 9px;
  box-shadow: inset 0 0 30px rgba(15,24,18,.08);
  opacity: .85;
}
.portrait-topline span:first-child {
  font-weight: 500;
  letter-spacing: .12em;
  color: #315C46;
}
.portrait-topline span:last-child {
  letter-spacing: .1em;
}
.hero-portrait-caption {
  position: relative;
  z-index: 2;
  background: linear-gradient(115deg, #F9F5EC, #E8EEE4);
}
@media (max-width: 560px) {
  .hero-portrait { box-shadow: 0 15px 40px rgba(42,63,48,.14), 0 0 0 4px rgba(255,255,255,.38), 0 0 0 5px rgba(49,92,70,.12); }
  .portrait-frame::after { inset: 9px; }
  .portrait-topline { left: 9px; right: 9px; top: 9px; }
  .portrait-topline span { padding: 5px 7px; font-size: 7px; }
}

/* Social micro-interactions on the profile card (browser-only, no service required). */
.portrait-social {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 91px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(249,247,240,.84);
  box-shadow: 0 8px 26px rgba(16,28,20,.18);
  backdrop-filter: blur(14px) saturate(1.15);
  transform: translateY(8px);
  opacity: .88;
  transition: transform .35s cubic-bezier(.2,.75,.25,1), opacity .3s ease, box-shadow .3s ease;
}
.hero-portrait:hover .portrait-social,
.hero-portrait:focus-within .portrait-social { transform: translateY(0); opacity: 1; }
.social-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #35433A;
  font: 600 9px/1 var(--mono);
  letter-spacing: .025em;
  cursor: pointer;
  transition: color .22s ease, background .22s ease, transform .22s cubic-bezier(.2,.8,.25,1), box-shadow .22s ease;
}
.social-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: fill .2s ease, transform .3s cubic-bezier(.2,.8,.25,1); }
.social-action:hover { transform: translateY(-2px); background: rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(29,42,33,.1); }
.heart-action:hover, .heart-action.is-active { color: #E44759; }
.heart-action:hover svg, .heart-action.is-active svg { fill: #E44759; stroke: #E44759; transform: scale(1.12); }
.heart-action.is-active svg { animation: heartPop .48s cubic-bezier(.2,.8,.25,1); }
.repost-action:hover, .repost-action.is-active { color: #27865D; }
.repost-action:hover svg, .repost-action.is-active svg { transform: rotate(-12deg) scale(1.08); }
.repost-action.is-active svg { animation: repostTurn .45s cubic-bezier(.2,.8,.25,1); }
.comment-action:hover { color: #315C46; }
.comment-action[aria-expanded="true"] { color: #315C46; background: rgba(49,92,70,.11); }
.comment-action[aria-expanded="true"] svg { fill: rgba(49,92,70,.15); }
.social-action:focus-visible { outline: 2px solid #315C46; outline-offset: 2px; }
.profile-note {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 145px;
  width: min(260px, calc(100% - 36px));
  padding: 16px 17px;
  border: 1px solid rgba(49,92,70,.2);
  border-radius: 16px;
  background: rgba(249,247,240,.96);
  box-shadow: 0 18px 48px rgba(20,36,25,.2);
  backdrop-filter: blur(16px);
  animation: notePop .28s cubic-bezier(.2,.8,.25,1) both;
}
.profile-note[hidden] { display: none; }
.profile-note-kicker { color: #567260; font-size: 8px; letter-spacing: .13em; }
.profile-note p { margin: 8px 0 12px; color: #38473C; font: 600 13px/1.5 var(--body); }
.profile-note a { display: inline-flex; align-items: center; gap: 8px; color: #315C46; font: 700 12px var(--body); }
.profile-note a span { transition: transform .2s ease; }
.profile-note a:hover span { transform: translate(2px,-2px); }
@keyframes heartPop { 0% { transform: scale(.65); } 55% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes repostTurn { 0% { transform: rotate(0) scale(.75); } 65% { transform: rotate(-28deg) scale(1.2); } 100% { transform: rotate(-12deg) scale(1.08); } }
@keyframes notePop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 560px) {
  .portrait-social { right: 10px; bottom: 82px; opacity: 1; transform: none; gap: 2px; }
  .social-action { padding: 8px; }
  .social-action span { font-size: 8px; }
  .profile-note { right: 10px; bottom: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-social, .social-action, .social-action svg, .profile-note { animation: none !important; transition: none !important; }
}

/* A playful, floating birthday fact tucked into the profile card. */
.profile-fact {
  position: absolute;
  z-index: 3;
  left: 15px;
  bottom: 145px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px 10px 10px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 15px;
  color: #34443A;
  background: rgba(249,247,240,.91);
  box-shadow: 0 10px 30px rgba(16,28,20,.2);
  backdrop-filter: blur(14px) saturate(1.15);
  animation: factFloat 4s ease-in-out infinite;
  transition: transform .35s cubic-bezier(.2,.8,.25,1), box-shadow .35s ease;
}
.profile-fact:hover { transform: translateY(-5px) rotate(-1deg) scale(1.035); box-shadow: 0 17px 38px rgba(16,28,20,.26); }
.fact-cake {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #FFF8E9;
  background: linear-gradient(145deg, #D78455, #B95548);
  font-size: 20px;
  box-shadow: 0 5px 14px rgba(185,85,72,.28);
  animation: cakeTwinkle 2.8s ease-in-out infinite;
}
.fact-copy { display: grid; gap: 2px; }
.fact-copy small { color: #718275; font-size: 7px; letter-spacing: .15em; }
.fact-copy strong { color: #29382E; font: 700 11px/1.25 var(--body); white-space: nowrap; }
.fact-copy em { color: #54715E; font-size: 8px; font-style: normal; letter-spacing: .09em; }
.fact-spark { position: absolute; right: -5px; top: -8px; color: #D78655; font-size: 14px; animation: sparkSpin 5s linear infinite; }
@keyframes factFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes cakeTwinkle { 0%,100% { box-shadow: 0 5px 14px rgba(185,85,72,.22); } 50% { box-shadow: 0 5px 20px rgba(185,85,72,.5), 0 0 0 5px rgba(215,132,85,.12); } }
@keyframes sparkSpin { 0%,100% { transform: rotate(0) scale(.9); } 50% { transform: rotate(25deg) scale(1.18); } }

/* Make each reaction state read clearly, even at a glance. */
.portrait-social { opacity: 1; transform: translateY(0); }
.social-action { padding: 9px 11px; }
.social-action:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 7px 16px rgba(29,42,33,.16); }
.heart-action:hover svg { animation: heartBeat .72s ease-in-out infinite; }
.heart-action.is-active { background: rgba(228,71,89,.11); box-shadow: 0 0 0 3px rgba(228,71,89,.1), 0 5px 15px rgba(228,71,89,.16); }
.heart-action.is-active svg { animation: heartPop .48s cubic-bezier(.2,.8,.25,1), heartBeat 1s .5s ease-in-out infinite; }
.repost-action.is-active { background: rgba(39,134,93,.12); box-shadow: 0 0 0 3px rgba(39,134,93,.09), 0 5px 15px rgba(39,134,93,.14); }
.repost-action.is-active svg { stroke-width: 2.3; }
.comment-action[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(49,92,70,.12); }
@keyframes heartBeat { 0%,100% { transform: scale(1); } 18% { transform: scale(1.24); } 36% { transform: scale(.98); } 54% { transform: scale(1.17); } }
@media (max-width: 560px) {
  .profile-fact { left: 9px; bottom: 132px; gap: 8px; padding: 8px 10px 8px 8px; }
  .fact-cake { width: 30px; height: 30px; }
  .fact-copy strong { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-fact, .fact-cake, .fact-spark, .heart-action:hover svg, .heart-action.is-active svg { animation: none !important; }
}

/* Stronger, unmistakable profile-card and social reaction feedback. */
.hero-portrait {
  transition: transform .7s cubic-bezier(.16,1,.3,1), box-shadow .7s cubic-bezier(.16,1,.3,1), border-color .4s ease;
  transform-style: preserve-3d;
}
.hero-portrait:hover {
  transform: translateY(-9px) rotate(-.65deg) scale(1.012);
  border-color: rgba(49,92,70,.48);
  box-shadow: 0 34px 82px rgba(42,63,48,.27), 0 0 0 7px rgba(255,255,255,.62), 0 0 0 9px rgba(49,92,70,.24);
}
.portrait-frame > img {
  transition: transform 1s cubic-bezier(.16,1,.3,1), filter .7s ease;
}
.hero-portrait:hover .portrait-frame > img {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.025);
}
.portrait-topline span {
  transition: transform .4s cubic-bezier(.16,1,.3,1), background .3s ease, box-shadow .3s ease;
}
.hero-portrait:hover .portrait-topline span:first-child {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(26,42,31,.14);
}
.hero-portrait:hover .portrait-topline span:last-child { transform: translateY(3px); }
.portrait-topline b { color: #315C46; font-weight: 600; }
.portrait-social { transition: transform .55s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, opacity .3s ease; }
.hero-portrait:hover .portrait-social {
  transform: translateY(-5px) scale(1.035);
  box-shadow: 0 15px 34px rgba(16,28,20,.28);
}
.social-action {
  isolation: isolate;
  overflow: visible;
  transition: color .25s ease, background .25s ease, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.social-action svg { transform-origin: center; }
.social-action:hover { transform: translateY(-5px) scale(1.13); }
.heart-action:hover svg { animation: heartBeat .62s ease-in-out infinite; }
.heart-action.is-active {
  color: #E23B54;
  background: #FFE8EB;
  box-shadow: 0 0 0 4px rgba(226,59,84,.13), 0 8px 18px rgba(226,59,84,.24);
  animation: actionImpact .42s cubic-bezier(.16,1,.3,1);
}
.heart-action.is-active svg { fill: #E23B54; stroke: #E23B54; animation: heartBeat .72s ease-in-out infinite; }
.repost-action:hover svg { animation: repostSwing .55s cubic-bezier(.16,1,.3,1); }
.repost-action.is-active {
  color: #168451;
  background: #E2F5E9;
  box-shadow: 0 0 0 4px rgba(22,132,81,.13), 0 8px 18px rgba(22,132,81,.22);
  animation: actionImpact .42s cubic-bezier(.16,1,.3,1);
}
.repost-action.is-active svg { stroke-width: 2.5; animation: repostSwing .65s cubic-bezier(.16,1,.3,1); }
.comment-action:hover svg { animation: commentBounce .55s cubic-bezier(.16,1,.3,1); }
.comment-action[aria-expanded="true"] {
  color: #315C46;
  background: #E4EEE5;
  box-shadow: 0 0 0 4px rgba(49,92,70,.13), 0 8px 18px rgba(49,92,70,.18);
}
.profile-note { animation: notePop .42s cubic-bezier(.16,1,.3,1) both; }
@keyframes actionImpact { 0% { transform: scale(.78); } 68% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes repostSwing { 0% { transform: rotate(0) scale(.8); } 55% { transform: rotate(-24deg) scale(1.24); } 100% { transform: rotate(0) scale(1); } }
@keyframes commentBounce { 0%,100% { transform: translateY(0); } 45% { transform: translateY(-5px) rotate(-5deg); } 70% { transform: translateY(1px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-portrait, .portrait-frame > img, .portrait-topline span, .portrait-social, .social-action, .social-action svg { transition: none !important; animation: none !important; }
}

/* Birthday card back in the upper-left corner; profile label stays upper-right. */
.portrait-topline {
  left: auto;
  right: 13px;
  justify-content: flex-end;
}
.portrait-topline span { padding: 7px 11px; }
.portrait-topline span:first-child {
  color: #315C46;
  font-weight: 600;
  letter-spacing: .12em;
}
.profile-fact {
  top: 13px;
  left: 13px;
  bottom: auto;
  gap: 9px;
  padding: 8px 12px 8px 8px;
  animation: birthdayWiggle 4.2s ease-in-out infinite;
  transform-origin: 15% 50%;
}
.profile-fact:hover { animation: birthdayHover .65s cubic-bezier(.2,.8,.25,1); }
.fact-cake {
  width: 34px;
  height: 34px;
  color: #FFF8E9;
  background: linear-gradient(145deg, #D78455, #B95548);
}
.fact-cake svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fact-copy small { color: #718275; font-size: 7px; letter-spacing: .15em; }
.fact-copy strong { font-size: 10px; }
.fact-copy em { font-size: 8px; }
.fact-spark { color: #D78655; }
@keyframes birthdayWiggle {
  0%, 100% { transform: translateY(0) rotate(0); }
  18% { transform: translateY(-2px) rotate(-1.5deg); }
  38% { transform: translateY(0) rotate(1deg); }
  58% { transform: translateY(-3px) rotate(-.7deg); }
  78% { transform: translateY(0) rotate(.5deg); }
}
@keyframes birthdayHover {
  0%,100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-5deg) scale(1.06); }
  55% { transform: rotate(4deg) scale(1.06); }
  80% { transform: rotate(-2deg) scale(1.03); }
}
@media (max-width: 560px) {
  .portrait-topline { top: 9px; right: 9px; }
  .portrait-topline span { padding: 6px 8px; font-size: 7px; }
  .profile-fact { top: 9px; left: 9px; bottom: auto; gap: 6px; padding: 6px 8px 6px 6px; }
  .fact-cake { width: 28px; height: 28px; }
  .fact-copy strong { font-size: 9px; }
  .fact-copy small, .fact-copy em { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-fact, .fact-cake, .fact-spark { animation: none !important; }
}

/* A high-contrast chapter break between the hero marquee and the Work section. */
#work::after { display: none; }
.work-section { padding-top: clamp(28px, 4vw, 52px); }
.work-divider {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin: 0 calc(50% - 50vw) clamp(54px, 6vw, 82px);
  overflow: hidden;
  color: #F4F3EF;
  background: linear-gradient(110deg, #203E30 0%, #315C46 54%, #254733 100%);
  border-block: 1px solid rgba(49,92,70,.75);
  box-shadow: 0 18px 44px rgba(35,57,42,.14);
}
.work-divider::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .8;
  background: radial-gradient(ellipse at 72% 120%, rgba(167,201,163,.24), transparent 42%), linear-gradient(120deg, transparent 0 68%, rgba(255,255,255,.035) 68.1% 68.4%, transparent 68.5%);
}
.work-divider-inner {
  width: min(1120px, calc(100% - 96px));
  min-height: 108px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto minmax(90px, 1fr) auto auto;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}
.work-divider-index {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(230,241,226,.45);
  border-radius: 50%;
  color: #E5EDE3;
  font: 500 12px var(--mono);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.045);
}
.work-divider-index i {
  position: absolute;
  width: 6px;
  height: 6px;
  right: -2px;
  top: 4px;
  border-radius: 50%;
  background: #C7D895;
  box-shadow: 0 0 0 4px rgba(199,216,149,.13), 0 0 16px rgba(199,216,149,.8);
}
.work-divider-title { display: grid; gap: 5px; white-space: nowrap; }
.work-divider-title small { color: #BCD0BE; font-size: 8px; letter-spacing: .18em; }
.work-divider-title strong { color: #FFFDF6; font: 800 clamp(17px, 2vw, 24px)/1 var(--display); letter-spacing: .04em; }
.work-divider-rail {
  height: 1px;
  position: relative;
  overflow: hidden;
  background: rgba(232,242,227,.24);
}
.work-divider-rail span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #C7D895, #F7F2D7);
  box-shadow: 0 0 12px rgba(199,216,149,.9);
  transition: width 1.2s cubic-bezier(.16,1,.3,1) .22s;
}
.work-divider.is-visible .work-divider-rail span { width: 100%; }
.work-divider-note { color: #D1DCCE; font-size: 9px; letter-spacing: .12em; white-space: nowrap; }
.work-divider-note b { margin: 0 4px; color: #C7D895; font-size: 14px; }
.work-divider-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #203E30;
  background: #D9E4C9;
  border-radius: 50%;
  font-size: 18px;
  transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s ease;
}
.work-divider:hover .work-divider-arrow { transform: rotate(-45deg) scale(1.12); background: #F2F0D6; }
.work-divider:hover .work-divider-index { box-shadow: inset 0 0 0 4px rgba(255,255,255,.07), 0 0 22px rgba(199,216,149,.18); }
@media (max-width: 700px) {
  .work-section { padding-top: 22px; }
  .work-divider { margin-bottom: 42px; }
  .work-divider-inner { width: calc(100% - 40px); min-height: 88px; grid-template-columns: auto 1fr auto; gap: 14px; }
  .work-divider-rail { display: none; }
  .work-divider-note { grid-column: 2; grid-row: 2; margin-top: -18px; font-size: 8px; }
  .work-divider-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .work-divider-index { width: 40px; height: 40px; grid-row: 1 / span 2; }
  .work-divider-title { align-self: end; }
}
@media (max-width: 420px) {
  .work-divider-inner { width: calc(100% - 32px); gap: 10px; }
  .work-divider-title strong { font-size: 16px; }
  .work-divider-note { letter-spacing: .08em; }
}

/* Softer shaded transition into Work: atmospheric, full-width and integrated with the page. */
#work::before {
  inset: 0 -50vw;
  opacity: .92;
  background:
    radial-gradient(ellipse at 16% 2%, rgba(94,137,103,.2), transparent 34%),
    radial-gradient(ellipse at 84% 4%, rgba(193,211,171,.28), transparent 37%),
    linear-gradient(180deg, rgba(218,230,215,.72) 0%, rgba(231,237,225,.42) 210px, rgba(244,243,239,0) 560px);
  animation: none !important;
}
.work-section { padding-top: 0; }
.work-divider {
  isolation: isolate;
  min-height: 78px;
  margin: 0 calc(50% - 50vw) clamp(45px, 5vw, 68px);
  overflow: hidden;
  color: #315C46;
  background: linear-gradient(180deg, rgba(200,218,198,.34), rgba(248,247,240,.82) 48%, rgba(229,237,224,.48));
  border-block: 1px solid rgba(49,92,70,.13);
  box-shadow: 0 14px 30px rgba(47,75,54,.08), inset 0 1px rgba(255,255,255,.8), inset 0 -1px rgba(255,255,255,.7);
}
.work-divider::before {
  opacity: 1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.9), transparent 54%),
    radial-gradient(ellipse at 50% 100%, rgba(91,132,99,.11), transparent 60%);
}
.work-divider-inner {
  width: min(1120px, calc(100% - 96px));
  min-height: 78px;
  grid-template-columns: auto auto minmax(90px, 1fr) auto auto;
  gap: clamp(18px, 3vw, 42px);
}
.work-divider-index {
  width: 35px;
  height: 35px;
  color: #315C46;
  border-color: rgba(49,92,70,.25);
  background: rgba(255,255,255,.56);
  box-shadow: inset 0 0 0 3px rgba(49,92,70,.035);
}
.work-divider-index i {
  background: #6E9C76;
  box-shadow: 0 0 0 4px rgba(110,156,118,.12), 0 0 12px rgba(110,156,118,.42);
}
.work-divider-title small { color: #6C826F; }
.work-divider-title strong { color: #294A36; font-size: clamp(15px, 1.7vw, 20px); letter-spacing: .09em; }
.work-divider-rail { background: rgba(49,92,70,.16); }
.work-divider-rail span { background: linear-gradient(90deg, #8EAF8A, #315C46 70%, #B9C998); box-shadow: 0 0 10px rgba(49,92,70,.32); }
.work-divider-note { color: #6A7C6C; }
.work-divider-note b { color: #315C46; }
.work-divider-arrow { color: #315C46; background: rgba(255,255,255,.72); border: 1px solid rgba(49,92,70,.17); }
.work-divider:hover .work-divider-arrow { background: #E4EEE2; }
.work-divider:hover { box-shadow: 0 18px 38px rgba(47,75,54,.12), inset 0 1px rgba(255,255,255,.9), inset 0 -1px rgba(255,255,255,.8); }
@media (max-width: 700px) {
  .work-section { padding-top: 0; }
  .work-divider { min-height: 72px; margin-bottom: 38px; }
  .work-divider-inner { width: calc(100% - 40px); min-height: 72px; }
  .work-divider-index { width: 33px; height: 33px; }
}

/* Stronger sage shading so the transition reads clearly without a dark block. */
#work::before {
  opacity: 1;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(101,146,108,.25), transparent 38%),
    radial-gradient(ellipse at 92% 8%, rgba(187,207,155,.36), transparent 42%),
    linear-gradient(180deg, rgba(198,217,198,.86) 0%, rgba(218,230,211,.68) 180px, rgba(232,236,222,.34) 400px, transparent 680px);
}
.work-divider {
  min-height: 88px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.78), transparent 62%),
    linear-gradient(100deg, #C2D6C1 0%, #DFE7D5 48%, #CBD9C2 100%);
  border-top: 3px solid #759577;
  border-bottom: 1px solid rgba(49,92,70,.28);
  box-shadow: 0 18px 34px rgba(46,75,53,.16), inset 0 1px rgba(255,255,255,.8), inset 0 -8px 18px rgba(91,130,88,.08);
}
.work-divider::before {
  background:
    radial-gradient(ellipse at 18% 50%, rgba(255,255,255,.52), transparent 30%),
    radial-gradient(ellipse at 82% 50%, rgba(255,255,255,.4), transparent 33%),
    repeating-linear-gradient(115deg, transparent 0 56px, rgba(255,255,255,.11) 57px 58px, transparent 59px 112px);
}
.work-divider-inner { min-height: 88px; }
.work-divider-index { background: rgba(250,250,242,.74); border-color: rgba(49,92,70,.34); }
.work-divider-title small { color: #4D6B54; }
.work-divider-title strong { color: #203F2D; text-shadow: 0 1px rgba(255,255,255,.5); }
.work-divider-note { color: #405D46; }
.work-divider-rail { background: rgba(49,92,70,.24); }
.work-divider-rail span { background: linear-gradient(90deg, #547A5D, #315C46, #88A36D); }
.work-divider-arrow { background: rgba(249,248,238,.82); border-color: rgba(49,92,70,.28); }
@media (max-width: 700px) {
  .work-divider, .work-divider-inner { min-height: 78px; }
}

/* Make the Projects intro, filter and project index feel deliberate and easy to scan. */
.work-section .section-top h2 {
  font-size: clamp(48px, 5.8vw, 78px);
  line-height: .98;
  text-wrap: balance;
}
.work-section .section-intro {
  max-width: 470px;
  color: #3F4941;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.8;
}
.work-filter {
  min-height: 82px;
  padding: 15px 18px;
  border: 1px solid rgba(49,92,70,.2);
  border-radius: 16px;
  background: linear-gradient(105deg, rgba(220,232,218,.92), rgba(242,242,229,.94));
  box-shadow: 0 10px 26px rgba(42,63,48,.09), inset 0 1px rgba(255,255,255,.85);
}
.work-filter > span {
  color: #46634D;
  font: 600 9px/1.4 var(--mono);
  letter-spacing: .12em;
}
.filter-buttons { gap: 8px; }
.filter-btn {
  min-height: 38px;
  padding: 8px 15px;
  border-color: rgba(49,92,70,.14);
  background: rgba(255,255,255,.55);
  color: #435147;
  font-weight: 600;
}
.filter-btn:hover { background: rgba(255,255,255,.94); border-color: rgba(49,92,70,.32); transform: translateY(-2px); }
.filter-btn.active {
  border-color: #315C46;
  color: #FFFDF7;
  background: #315C46;
  box-shadow: 0 5px 14px rgba(49,92,70,.22);
}
.filter-btn.active span { color: #D5E6D3; }
.project-row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, .95fr); }
.project-number {
  width: 48px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 1px solid rgba(49,92,70,.2);
  border-radius: 13px;
  color: #315C46;
  background: linear-gradient(150deg, rgba(222,234,220,.96), rgba(248,247,239,.92));
  box-shadow: 0 5px 14px rgba(42,63,48,.08), inset 0 1px rgba(255,255,255,.9);
  font: 700 17px/1 var(--display);
  letter-spacing: -.04em;
}
.project-number span {
  display: block;
  margin: 0;
  color: #6E8070;
  font: 500 8px/1 var(--mono);
  letter-spacing: .06em;
}
.project-award {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 0 16px;
  padding: 9px 12px;
  border: 1px solid rgba(143,112,42,.3);
  border-radius: 10px;
  color: #735D27;
  background: linear-gradient(100deg, #F5EBC9, #FBF6E5);
  box-shadow: 0 5px 14px rgba(119,93,38,.09), inset 0 1px rgba(255,255,255,.8);
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-award:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 9px 20px rgba(119,93,38,.16); }
.award-icon { font-size: 16px; color: #A77A26; }
.award-icon svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.project-award > span:last-child { display: grid; gap: 3px; }
.project-award b { font: 600 8px/1.2 var(--mono); letter-spacing: .09em; }
.project-award small { color: #857346; font: 500 9px/1.2 var(--body); }
@media (max-width: 900px) {
  .project-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .work-filter { display: block; padding: 14px; }
  .work-filter > span { display: block; margin-bottom: 10px; }
  .project-number,
  .project-row.reverse .project-number {
    width: auto;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 9px;
  }
  .project-number span { display: inline; }
}

/* Keep the one-line Projects title inside the viewport at every breakpoint. */
.work-section .section-top h2 { white-space: nowrap; }
@media (max-width: 1100px) {
  .work-section .section-top { gap: 30px; }
  .work-section .section-top h2 { font-size: clamp(40px, 5vw, 54px); }
  .work-section .section-intro { max-width: 390px; }
}
@media (max-width: 560px) {
  .work-section .section-top h2 { font-size: clamp(28px, 8vw, 44px); }
  .work-section .section-top { overflow: visible; }
}

/* Real screenshots replace the CSS interface recreations in project cards. */
.project-art { background: #E4EADF; }
.project-cover {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px 16px 22px;
  display: block;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.8), rgba(220,230,218,.92));
  transition: transform .7s cubic-bezier(.16,1,.3,1), filter .5s ease;
}
.project-art:hover .project-cover { transform: scale(1.035); filter: saturate(1.06); }
.project-art > :not(.project-cover):not(.art-top) { display: none !important; }
.art-top { z-index: 3; color: #304536; font-size: 8px; }
.art-top span {
  padding: 7px 9px;
  border: 1px solid rgba(49,92,70,.16);
  border-radius: 8px;
  background: rgba(249,247,240,.88);
  box-shadow: 0 5px 15px rgba(25,42,30,.08);
  backdrop-filter: blur(10px);
}

/* Screenshot tour, descriptions, progress timer and demo player in the case modal. */
.case-modal {
  width: min(1000px, calc(100% - 24px));
  max-height: 92vh;
  padding: clamp(20px, 4vw, 44px);
  scroll-behavior: smooth;
}
.case-gallery { clear: both; margin: 28px 0 34px; }
.gallery-heading, .case-video-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #52705B;
  font: 600 9px/1.4 var(--mono);
  letter-spacing: .13em;
}
.gallery-counter { color: #718274; }
.gallery-stage {
  position: relative;
  height: clamp(260px, 48vh, 540px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(49,92,70,.17);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(163,189,157,.22), transparent 50%),
    linear-gradient(145deg, #EDF1E8, #FAF8F0 54%, #E5ECDF);
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 10px 32px rgba(42,63,48,.1);
  touch-action: pan-y;
}
.gallery-stage::before, .gallery-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 36px;
  height: 36px;
  border-color: rgba(49,92,70,.3);
  pointer-events: none;
}
.gallery-stage::before { top: 13px; left: 13px; border-top: 1px solid; border-left: 1px solid; border-radius: 8px 0 0; }
.gallery-stage::after { bottom: 13px; right: 13px; border-bottom: 1px solid; border-right: 1px solid; border-radius: 0 0 8px; }
.gallery-image {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  opacity: 1;
  transform: scale(1);
  transition: opacity .32s ease, transform .45s cubic-bezier(.2,.75,.25,1);
}
.gallery-image.is-changing { opacity: .45; transform: scale(.985); }
.gallery-controls { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 14px; padding: 12px 2px 6px; }
.gallery-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49,92,70,.2);
  border-radius: 50%;
  color: #315C46;
  background: #F5F6EF;
  font-size: 20px;
  cursor: pointer;
  transition: transform .22s ease, color .22s ease, background .22s ease, box-shadow .22s ease;
}
.gallery-arrow:hover { transform: scale(1.08); color: #fff; background: #315C46; box-shadow: 0 6px 16px rgba(49,92,70,.22); }
.gallery-caption { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 7px 10px; color: #344239; text-align: center; font: 500 14px/1.55 var(--body); }
.gallery-caption-title { color: #315C46; font: 500 9px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.gallery-caption-detail { max-width: 72ch; color: #50584f; font: 400 12px/1.5 var(--body); }
.gallery-timer { height: 3px; overflow: hidden; border-radius: 5px; background: rgba(49,92,70,.12); }
.gallery-timer span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #779B79, #315C46); box-shadow: 0 0 12px rgba(49,92,70,.45); }
.gallery-hint { margin: 9px 0 0; color: #7A887C; font-size: 8px; letter-spacing: .1em; text-align: right; }
.case-video { margin: 32px 0; padding: 16px; border: 1px solid rgba(49,92,70,.14); border-radius: 16px; background: linear-gradient(140deg, rgba(225,235,221,.68), rgba(250,248,240,.92)); }
.case-video-heading { justify-content: flex-start; margin: 0 0 12px; }
.video-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #B44D40; box-shadow: 0 0 0 4px rgba(180,77,64,.1); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px; background: #17251C; box-shadow: 0 8px 24px rgba(24,36,27,.16); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) {
  .case-modal { max-height: 94vh; padding: 22px 15px; }
  .gallery-stage { height: min(52vh, 420px); border-radius: 13px; }
  .gallery-image { padding: 8px; }
  .gallery-controls { grid-template-columns: 38px minmax(0,1fr) 38px; gap: 8px; }
  .gallery-arrow { width: 36px; height: 36px; }
  .gallery-caption { font-size: 12px; }
  .gallery-hint { font-size: 7px; letter-spacing: .06em; }
  .case-video { margin: 24px 0; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-cover, .gallery-image, .gallery-arrow { transition: none !important; }
  .gallery-timer span { transition: none !important; }
}

/* ── RESPONSIVE REFINEMENT ───────────────────────────────── */
/* Keep the editorial layout readable on real laptops, tablets, and phones. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body,
main,
.section-shell,
.project-row,
.project-detail,
.experience-content,
.manifesto-copy,
.capabilities-inner,
.contact-inner {
  min-width: 0;
}

/* Left aligned copy keeps word spacing natural at every width. */
p,
li,
.hero-description,
.project-copy,
.modal-summary,
.modal-columns p,
.modal-columns li {
  text-align: left;
  text-justify: auto;
  word-spacing: normal;
  hyphens: none;
}

.contact-inner > p:not(.eyebrow):not(.contact-note) { text-align: center; }

.signal-strip { overflow: clip; }
.contact-section { contain: paint; }
.contact-orb { max-width: 100vw; }

/* The full bleed chapter bar should not create a viewport-width scrollbar. */
.work-divider {
  max-width: 100%;
}

/* Give project rows more room before switching from the editorial split to stack. */
@media (min-width: 1281px) {
  .project-row { grid-template-columns: 56px minmax(0, 1.08fr) minmax(360px, .92fr); gap: 34px; }
  .project-art { height: clamp(390px, 31vw, 500px); }
}

@media (max-width: 1080px) {
  .section-shell { width: calc(100% - 64px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 32px 38px; }
  .hero-copy { max-width: 760px; }
  .hero-portrait { justify-self: center; width: min(100%, 480px); }
  .project-row,
  .project-row.reverse {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .project-row .project-number,
  .project-row.reverse .project-number {
    order: 0;
    align-self: flex-start;
    width: auto;
    height: auto;
    flex-direction: row;
    gap: 7px;
    margin: 0 0 14px;
    padding: 7px 10px;
    border-radius: 10px;
  }
  .project-row .project-number span,
  .project-row.reverse .project-number span { display: inline; margin: 0; }
  .project-row .project-art,
  .project-row.reverse .project-art {
    order: 1;
    width: 100%;
    height: clamp(320px, 52vw, 500px);
  }
  .project-row .project-detail,
  .project-row.reverse .project-detail {
    order: 2;
    width: 100%;
    padding: 22px 0 8px;
  }
  .project-list { gap: 34px; }
  .section-top { gap: 32px; }
}

/* Tablet navigation uses the same tested menu interaction as mobile. */
@media (max-width: 960px) {
  html { scroll-padding-top: 76px; }
  .site-header { height: 68px; padding-inline: 24px; gap: 16px; }
  .site-header.shrunk { height: 62px; }
  .availability,
  .header-availability { display: none !important; }
  .mobile-menu {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(49,92,70,.22);
    border-radius: 12px;
    background: rgba(249,243,233,.82);
    cursor: pointer;
  }
  .mobile-menu span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink-2);
    transition: transform .25s ease, opacity .2s ease;
  }
  .mobile-menu[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .mobile-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
    border: 1px solid rgba(49,92,70,.16);
    border-radius: 16px;
    background: rgba(239,239,226,.98);
    box-shadow: 0 18px 42px rgba(39,57,43,.17);
    backdrop-filter: blur(18px);
  }
  .nav-links.open { display: flex; }
  .site-header .nav-links a {
    min-height: 48px;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(49,92,70,.12);
    font-size: 14px;
  }
  .site-header .nav-links a:last-child { border-bottom: 0; }
  .site-header .nav-links a svg { width: 17px; height: 17px; }
}

@media (max-width: 700px) {
  .section-shell { width: calc(100% - 36px); }
  .hero { padding-top: 10px; }
  .hero-grid { padding-block: 24px 30px; gap: 28px; }
  .hero h1 { font-size: clamp(40px, 10.5vw, 64px); line-height: .98; }
  .hero-description { max-width: 58ch; line-height: 1.75; }
  .hero-portrait { width: min(100%, 430px); }
  .hero-bottom { gap: 12px; }
  .scroll-line { flex: 1 1 40px; }

  .work-section,
  .experience-section,
  .gallery-section,
  .capabilities-section,
  .education-section,
  .contact-section { padding-block: 60px; }
  .work-section { padding-top: 0; }
  .work-divider { margin-bottom: 38px; }
  .section-top { display: block; margin-bottom: 28px; }
  .section-top h2,
  .work-section .section-top h2,
  .capabilities-head h2 { font-size: clamp(36px, 9vw, 54px); line-height: 1.02; white-space: normal; }
  .section-intro { max-width: 60ch; margin-top: 14px; font-size: 14px; line-height: 1.75; }
  .work-filter { display: block; padding: 14px; }
  .work-filter > span { display: block; margin-bottom: 10px; }
  .filter-buttons { display: flex; flex-wrap: nowrap; gap: 7px; overflow-x: auto; padding: 0 0 3px; scrollbar-width: none; }
  .filter-buttons::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; min-height: 40px; padding-inline: 13px; }
  .project-list { gap: 26px; }
  .project-row { padding-bottom: 26px; }
  .project-row .project-art,
  .project-row.reverse .project-art { height: clamp(240px, 68vw, 370px); border-radius: 16px; }
  .project-cover { padding: 34px 12px 18px; }
  .art-top { top: 10px; left: 10px; right: 10px; font-size: 7px; }
  .art-top span { padding: 6px 7px; }
  .project-detail { padding-top: 18px !important; }
  .project-detail h3 { font-size: clamp(28px, 7.8vw, 38px); line-height: 1.08; }
  .project-lead { font-size: 15px; line-height: 1.55; }
  .project-copy { font-size: 14px; line-height: 1.75; }
  .tech-stack { gap: 7px; }
  .project-actions { flex-wrap: wrap; gap: 12px 18px; }
  .project-award { max-width: 100%; }

  .manifesto-shell { gap: 30px; padding-block: 56px; }
  .about-snapshot { width: 100%; }
  .manifesto-copy h2 { font-size: clamp(34px, 8.5vw, 48px); }
  .manifesto-body { font-size: 14px; line-height: 1.8; }
  .experience-item { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; padding: 20px 0; }
  .experience-date { grid-column: 1 / -1; }
  .experience-symbol { grid-column: 2; grid-row: 2; }
  .experience-content { grid-column: 1 / -1; grid-row: 3; }
  .experience-title { display: block; }
  .experience-title span { display: block; margin-top: 4px; }
  .experience-content p { font-size: 14px; line-height: 1.75; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 45vw, 220px); gap: 10px; }
  .gallery-item--tall,
  .gallery-item--wide { grid-row: auto; grid-column: auto; }
  .capabilities-inner { gap: 24px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .capability-card { padding: 16px; }
  .education-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .education-right { min-width: 0; }
  .education-item h3 { font-size: 20px; }
  .contact-inner h2 { font-size: clamp(40px, 10vw, 60px); }
  .contact-links { gap: 16px 22px; }
  .site-footer { padding: 20px 18px; gap: 14px; flex-wrap: wrap; }
  .case-modal { width: calc(100vw - 20px); max-width: 1000px; max-height: 94dvh; padding: 22px 16px; }
  .modal-columns { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .modal-summary,
  .modal-columns p,
  .modal-columns li { font-size: 14px; line-height: 1.75; }
}

@media (max-width: 420px) {
  .section-shell { width: calc(100% - 28px); }
  .site-header { padding-inline: 14px; }
  .site-header .wordmark { gap: 8px; }
  .site-header .wordmark-text { font-size: 8px; letter-spacing: .1em; }
  .site-header .wordmark-text span { font-size: 7px; }
  .hero h1 { font-size: clamp(36px, 10.8vw, 44px); }
  .hero-roleline { flex-wrap: wrap; font-size: 15px; }
  .hero-portrait-caption { align-items: flex-start; padding: 12px; }
  .portrait-info strong { font-size: 15px; }
  .portrait-info .mono { font-size: 7px; }
  .portrait-status { padding: 6px 8px; font-size: 7px; }
  .work-divider-inner { width: calc(100% - 28px); gap: 10px; }
  .work-divider-note { font-size: 7px; }
  .project-row .project-art,
  .project-row.reverse .project-art { height: clamp(220px, 66vw, 280px); }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 190px; }
  .capability-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .contact-actions .button { width: 100%; }
  .footer-note,
  .back-top { font-size: 8px; }
  .gallery-controls { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 8px; }
  .gallery-caption { font-size: 12px; }
  .gallery-hint { font-size: 6.5px; letter-spacing: .04em; }
}

@media (max-width: 340px) {
  .section-shell { width: calc(100% - 24px); }
  .site-header { padding-inline: 12px; }
  .site-header .wordmark-text { display: none; }
  .portrait-topline span:last-child { display: none; }
  .hero-footnote span { font-size: 8px; }
  .art-top span { font-size: 6px; }
  .project-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signal-track { animation: none !important; }
}

/* MyPSKD screen tour: compare paired web/mobile screens without stretching them. */
.case-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  margin: 0;
  width: min(920px, calc(100vw - 40px));
  max-width: 920px;
  max-height: min(90dvh, 900px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: clamp(20px, 3.4vw, 38px);
}
.case-modal::-webkit-scrollbar { display: none; }
.case-modal #modalContent,
.case-gallery,
.gallery-stage,
.gallery-controls,
.gallery-timer,
.gallery-hint { width: 100%; max-width: 100%; }
.gallery-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(49,92,70,.16);
  border-radius: 999px;
  color: #526453;
  background: rgba(255,255,255,.6);
  font: 600 11px/1 var(--body);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.gallery-filter-btn span { color: #819083; font: 500 9px/1 var(--mono); }
.gallery-filter-btn:hover { transform: translateY(-1px); border-color: rgba(49,92,70,.38); }
.gallery-filter-btn.active { color: #fff; border-color: #315C46; background: #315C46; }
.gallery-filter-btn.active span { color: #DDE9DB; }
.gallery-stage {
  height: min(54dvh, 580px);
  min-height: 300px;
  padding: 18px;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.gallery-stage[data-platform="web"] { height: min(52dvh, 560px); }
.gallery-stage[data-platform="mobile"] { height: min(66dvh, 650px); min-height: 390px; }
.gallery-image {
  width: auto;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-self: center;
  justify-self: center;
  padding: 0;
  object-fit: contain;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .case-modal {
    inset: 50% auto auto 50%;
    translate: -50% -50%;
    width: calc(100vw - 24px);
    max-width: 560px;
    max-height: 94dvh;
    padding: 20px 14px;
  }
  .gallery-filters { gap: 6px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .gallery-filter-btn { flex: 0 0 auto; min-height: 36px; padding-inline: 11px; }
  .gallery-stage { height: min(54dvh, 450px); min-height: 250px; padding: 10px; }
  .gallery-stage[data-platform="web"] { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .gallery-stage[data-platform="mobile"] { height: min(62dvh, 520px); min-height: 340px; }
  .gallery-image { padding: 0; }
}
@media (max-width: 380px) {
  .case-modal { padding: 18px 12px; }
  .gallery-stage { min-height: 230px; }
  .gallery-stage[data-platform="mobile"] { min-height: 310px; }
}

/* Dedicated project route: spacious, balanced reading layout instead of a modal. */
body.project-view { min-height: 100vh; overflow-x: hidden; background: #f4f1e8; }
body.project-view > .scroll-progress,
body.project-view > #constellation,
body.project-view > .noise,
body.project-view > .cursor,
body.project-view > .site-header,
body.project-view > .site-footer,
body.project-view main > section:not(#projectPage) { display: none !important; }
body.project-view main { min-height: 100vh; padding: 0; }
body.project-view .project-page[hidden] { display: none !important; }
body.project-view .project-page:not([hidden]) { display: block; }
.project-page { min-height: 100vh; color: #201f1b; }
.project-page-shell { width: min(1320px, calc(100% - clamp(32px, 8vw, 144px))); margin: 0 auto; padding: clamp(24px, 4vw, 56px) 0 80px; }
.project-page-back { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; margin-bottom: clamp(30px, 5vw, 64px); color: #315c46; font: 500 12px/1 var(--mono); text-decoration: none; transition: gap .25s var(--ease), color .25s ease; }
.project-page-back:hover { gap: 16px; color: #203d2f; }
.project-page-back span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(49,92,70,.28); border-radius: 50%; font-size: 19px; }
.project-page-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(250px, .55fr); gap: 16px 8vw; align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.project-page-kicker { grid-column: 1/-1; margin: 0; color: #47735a; font-size: 11px; letter-spacing: .13em; }
.project-page-heading h1 { max-width: 900px; margin: 0; font-size: clamp(38px, 6.5vw, 82px); line-height: .98; letter-spacing: -.065em; }
.project-page-heading > p:last-child { max-width: 440px; margin: 0 0 7px; color: #55544d; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.8; }
.project-page-gallery { padding: clamp(17px, 2.4vw, 30px); border: 1px solid rgba(49,92,70,.2); border-radius: clamp(18px, 2.5vw, 30px); background: linear-gradient(135deg, rgba(226,235,220,.8), rgba(250,248,240,.96) 55%, rgba(231,237,224,.86)); box-shadow: 0 25px 70px rgba(66,68,48,.1), inset 0 1px 0 rgba(255,255,255,.8); }
.project-page-gallery .gallery-heading { margin-bottom: 18px; }
.project-page-gallery .gallery-stage { height: min(68vh, 760px); min-height: 360px; border-radius: 20px; background: rgba(247,246,239,.9); }
.project-page-gallery .gallery-stage[data-platform="web"] { height: min(68vh, 760px); }
.project-page-gallery .gallery-stage[data-platform="mobile"] { height: min(76vh, 850px); }
.project-page-gallery .gallery-image { transition: opacity .45s ease, transform .45s var(--ease); opacity: 1; }
.project-page-gallery .gallery-image.is-changing { opacity: .12; transform: scale(.985); }
.project-page-gallery .gallery-controls { padding: 12px 2px 0; }
.project-page-gallery .gallery-arrow { width: 48px; height: 48px; }
.project-page-gallery .gallery-caption { font-size: clamp(14px, 1.3vw, 18px); }
.project-page-gallery .gallery-caption-detail { font-size: clamp(12px, 1vw, 14px); }
.project-page-gallery .gallery-timer { margin-top: 16px; }
.project-page-gallery .gallery-hint { margin-top: 10px; }
.project-page-lower { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(24px, 5vw, 72px); align-items: start; margin-top: clamp(36px, 6vw, 82px); }
.project-page-lower .case-video { margin: 0; }
.project-page-lower .video-frame { border-radius: 18px; overflow: hidden; }
.project-page-story { padding-top: 8px; }
.project-page-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.project-page-columns article { position: relative; min-height: 138px; padding: 20px 18px 18px; overflow: hidden; border: 1px solid rgba(35,35,31,.11); border-radius: 16px; background: rgba(255,255,255,.52); box-shadow: 0 8px 24px rgba(40,38,32,.025); transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.project-page-columns article::before { display: none; }
.project-page-columns article:hover { transform: translateY(-2px); border-color: rgba(35,35,31,.2); box-shadow: 0 12px 28px rgba(40,38,32,.07); }
.project-page-columns article h2 { margin: 0 0 12px; color: #34342f; font: 500 9px/1.4 var(--mono); letter-spacing: .12em; }
.project-page-columns article p { margin: 0; color: #50504a; font-size: 12px; line-height: 1.7; }
.project-page-story .modal-tech { margin-top: 28px; }
.project-page-repo { display: inline-flex; gap: 14px; align-items: center; margin-top: 28px; color: #34342f; font-weight: 700; text-decoration: none; }
.project-page-repo span { transition: transform .2s ease; }
.project-page-repo:hover span { transform: translate(3px,-3px); }
@media (max-width: 760px) {
  .project-page-shell { width: calc(100% - 32px); padding-top: 20px; padding-bottom: 48px; }
  .project-page-back { margin-bottom: 30px; }
  .project-page-heading { grid-template-columns: minmax(0,1fr); gap: 14px; margin-bottom: 25px; }
  .project-page-kicker { grid-column: auto; }
  .project-page-heading h1 { font-size: clamp(38px, 10vw, 62px); }
  .project-page-heading > p:last-child { max-width: 600px; font-size: 15px; }
  .project-page-gallery { padding: 12px; border-radius: 18px; }
  .project-page-gallery .gallery-stage,
  .project-page-gallery .gallery-stage[data-platform="web"] { height: auto; min-height: 0; aspect-ratio: 16/10; padding: 10px; }
  .project-page-gallery .gallery-stage[data-platform="mobile"] { height: min(66dvh, 600px); min-height: 360px; }
  .project-page-gallery .gallery-controls { grid-template-columns: 40px minmax(0,1fr) 40px; gap: 8px; }
  .project-page-gallery .gallery-arrow { width: 40px; height: 40px; }
  .project-page-gallery .gallery-caption { min-height: 72px; gap: 3px; padding-inline: 2px; }
  .project-page-gallery .gallery-caption-title { font-size: 8px; }
  .project-page-gallery .gallery-caption-detail { font-size: 11px; line-height: 1.4; }
  .project-page-lower { grid-template-columns: minmax(0,1fr); gap: 34px; margin-top: 38px; }
}
@media (max-width: 430px) {
  .project-page-shell { width: calc(100% - 24px); }
  .project-page-columns { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .project-page-gallery .gallery-stage[data-platform="mobile"] { height: min(62dvh, 520px); min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-page-back, .project-page-gallery .gallery-image, .project-page-repo span { transition: none !important; }
}

/* Keep a native pointer whenever the custom cursor is unavailable or hidden. */
body:not(.has-custom-cursor),
body:not(.has-custom-cursor) * { cursor: auto !important; }
body:not(.has-custom-cursor) a,
body:not(.has-custom-cursor) button,
body:not(.has-custom-cursor) [role="button"] { cursor: pointer !important; }
body.has-custom-cursor,
body.has-custom-cursor * { cursor: none; }
body.project-view,
body.project-view * { cursor: auto !important; }
body.project-view a,
body.project-view button { cursor: pointer !important; }

/* Warm editorial depth for the projects archive and approach chapter. */
.work-section {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 88% 16%, rgba(218, 190, 143, .20), transparent 34%),
    radial-gradient(ellipse at 8% 54%, rgba(202, 178, 137, .12), transparent 31%);
}
.work-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 220px;
  right: -150px;
  width: clamp(300px, 42vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(145, 117, 78, .10);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(145, 117, 78, .025), 0 0 0 76px rgba(145, 117, 78, .018);
  pointer-events: none;
}
.work-section > :not(.work-divider) { position: relative; z-index: 1; }
.project-list { gap: clamp(22px, 3vw, 38px); }
.project-row {
  position: relative;
  isolation: isolate;
  padding: clamp(16px, 2.3vw, 30px);
  border: 1px solid rgba(118, 91, 54, .15);
  border-radius: clamp(20px, 2.4vw, 30px);
  background:
    radial-gradient(ellipse at 3% 4%, rgba(255, 255, 255, .82), transparent 44%),
    linear-gradient(118deg, rgba(239, 231, 211, .88), rgba(249, 246, 236, .94) 48%, rgba(231, 224, 206, .74));
  box-shadow: 0 18px 48px rgba(77, 59, 35, .075), inset 0 1px 0 rgba(255,255,255,.85);
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .3s ease;
}
.project-row::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(150px, 23vw, 300px);
  aspect-ratio: 1;
  top: -56%;
  right: -3%;
  border: 1px solid rgba(150, 112, 63, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(150, 112, 63, .025), 0 0 0 48px rgba(150, 112, 63, .018);
  pointer-events: none;
}
.project-row:hover {
  transform: translateY(-4px);
  border-color: rgba(136, 99, 48, .27);
  box-shadow: 0 26px 60px rgba(77, 59, 35, .12), inset 0 1px 0 rgba(255,255,255,.9);
}
.project-row.reverse {
  background:
    radial-gradient(ellipse at 96% 5%, rgba(255, 255, 255, .84), transparent 43%),
    linear-gradient(242deg, rgba(239, 231, 211, .84), rgba(249, 246, 236, .95) 54%, rgba(231, 224, 206, .72));
}
.project-number {
  display: grid;
  align-content: start;
  justify-items: center;
  width: 48px;
  min-height: 54px;
  padding: 8px 4px;
  border: 1px solid rgba(127, 98, 57, .2);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(235,225,204,.72));
  box-shadow: 0 7px 18px rgba(77,59,35,.06), inset 0 1px rgba(255,255,255,.9);
}
.project-number span { margin-top: 2px; font-size: 9px; }
.project-detail { padding-inline: clamp(0px, 1.2vw, 14px); }
.project-detail h3 { text-wrap: balance; }
.project-art { box-shadow: 0 18px 42px rgba(50,35,15,.14), inset 0 1px rgba(255,255,255,.7); }
.manifesto-side { position: relative; isolation: isolate; }
.manifesto-side::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(360px, 48vw, 680px);
  aspect-ratio: 1;
  top: -240px;
  left: 50%;
  transform: translateX(-54%);
  border: 1px solid rgba(145, 117, 78, .10);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.38), rgba(216,195,157,.09) 58%, transparent 70%);
  box-shadow: 0 0 0 28px rgba(145,117,78,.025), 0 0 0 76px rgba(145,117,78,.018);
  pointer-events: none;
}
@media (max-width: 1080px) {
  .project-row { padding: 18px; }
  .project-row .project-detail,
  .project-row.reverse .project-detail { padding: 22px 8px 8px; }
}
@media (max-width: 700px) {
  .work-section { background: radial-gradient(ellipse at 90% 8%, rgba(218,190,143,.16), transparent 36%); }
  .work-section::after { top: 330px; right: -220px; width: 380px; }
  .project-row,
  .project-row.reverse {
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(77,59,35,.08), inset 0 1px 0 rgba(255,255,255,.88);
  }
  .project-row::after { top: -70px; right: -65px; width: 200px; }
  .project-row:hover { transform: translateY(-2px); }
  .project-row .project-number,
  .project-row.reverse .project-number { width: auto; min-height: 0; padding: 7px 10px; }
  .project-row .project-detail,
  .project-row.reverse .project-detail { padding: 18px 6px 6px !important; }
  .project-number { display: flex; align-items: center; }
  .project-number span { margin: 0; }
  .manifesto-side::before { top: -105px; width: min(115vw, 500px); }
}
@media (prefers-reduced-motion: reduce) {
  .project-row { transition: none; }
}

/* Project actions should read as controls at a glance. */
.project-actions { gap: 12px; }
.case-link,
.project-actions > .repo-link:not(.muted) {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid rgba(93, 67, 38, .28);
  border-radius: 999px;
  background: linear-gradient(135deg, #35291f, #59422f);
  box-shadow: 0 6px 16px rgba(52, 39, 27, .16), inset 0 1px rgba(255,255,255,.2);
  color: #fffaf0;
  font: 650 12px/1 var(--body);
  letter-spacing: .015em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--ease), background .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.case-link { padding-right: 15px; }
.case-link span { font-size: 15px; }
.case-link:hover,
.project-actions > .repo-link:not(.muted):hover {
  transform: translateY(-3px);
  border-color: rgba(93, 67, 38, .52);
  background: linear-gradient(135deg, #4b3828, #735538);
  box-shadow: 0 12px 24px rgba(52, 39, 27, .24), inset 0 1px rgba(255,255,255,.22);
}
.case-link:active,
.project-actions > .repo-link:not(.muted):active { transform: translateY(0) scale(.97); }
.case-link:focus-visible,
.project-actions > .repo-link:not(.muted):focus-visible { outline: 3px solid rgba(154,112,66,.42); outline-offset: 4px; }
.case-link::after {
  content: "CLICK ME";
  position: absolute;
  top: -10px;
  right: -8px;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: #e3bf7b;
  box-shadow: 0 3px 9px rgba(54,39,24,.2);
  color: #33271b;
  font: 600 7px/1 var(--mono);
  letter-spacing: .06em;
  animation: click-me-nudge 2.8s ease-in-out infinite;
}
.case-link:hover::after { animation-play-state: paused; }
.project-actions > .repo-link:not(.muted) { background: rgba(255,252,245,.78); color: #382d22; box-shadow: 0 4px 12px rgba(52,39,27,.07), inset 0 1px #fff; }
.project-actions > .repo-link:not(.muted):hover { background: #fffaf0; color: #211a14; }
.project-actions .repo-link.muted { cursor: default; }
@keyframes click-me-nudge {
  0%, 78%, 100% { transform: rotate(0) scale(1); }
  82% { transform: rotate(-7deg) scale(1.08); }
  87% { transform: rotate(7deg) scale(1.08); }
  92% { transform: rotate(-4deg) scale(1.04); }
}
@media (max-width: 700px) {
  .project-actions { gap: 14px 10px; }
  .case-link,
  .project-actions > .repo-link:not(.muted) { min-height: 44px; padding-inline: 14px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-link,
  .project-actions > .repo-link:not(.muted),
  .case-link::after { animation: none !important; transition: none !important; }
}

/* A more personal, magazine-like profile and approach chapter. */
.manifesto-section {
  background:
    radial-gradient(ellipse at 12% 25%, rgba(255,255,255,.48), transparent 38%),
    radial-gradient(ellipse at 92% 78%, rgba(210,184,143,.22), transparent 42%),
    linear-gradient(120deg, #eee5d6, #f4eddf 48%, #eadfce);
}
.manifesto-shell { gap: clamp(40px, 6vw, 92px); }
.about-snapshot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 2.4vw, 34px);
  border-color: rgba(132,101,62,.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(230,207,168,.48), transparent 30%),
    linear-gradient(148deg, rgba(255,252,244,.95), rgba(240,229,210,.94) 62%, rgba(249,244,232,.96));
  box-shadow: 0 25px 65px rgba(76,56,31,.11), inset 0 1px 0 rgba(255,255,255,.92);
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.about-snapshot:hover { transform: translateY(-5px) rotate(-.35deg); box-shadow: 0 32px 76px rgba(76,56,31,.16), inset 0 1px 0 #fff; }
.about-snapshot::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 220px;
  aspect-ratio: 1;
  top: -110px;
  right: -80px;
  border: 1px solid rgba(151,112,60,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(151,112,60,.035), 0 0 0 46px rgba(151,112,60,.022);
}
.about-snapshot-top { align-items: center; padding-bottom: 14px; border-color: rgba(132,101,62,.25); }
.about-snapshot-top span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.about-snapshot-top span:first-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a76e45; box-shadow: 0 0 0 4px rgba(167,110,69,.12); }
.about-monogram {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(118px, 10vw, 150px);
  aspect-ratio: 1;
  margin: 24px 0 20px;
  border: 1px solid rgba(49,92,70,.36);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #fffdf5, #eadbc1 72%);
  box-shadow: 0 10px 26px rgba(75,57,35,.1), inset 0 0 0 7px rgba(255,255,255,.55), inset 0 0 0 8px rgba(49,92,70,.13);
  color: #201a15;
  font-size: clamp(48px, 5vw, 66px);
  letter-spacing: -.12em;
}
.about-monogram::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 18px;
  width: 11px;
  height: 11px;
  border: 2px solid #f7f0e3;
  border-radius: 50%;
  background: #315c46;
  box-shadow: 0 0 0 4px rgba(49,92,70,.12);
}
.about-snapshot-kicker { display: flex; align-items: center; gap: 9px; }
.about-snapshot-kicker::after { content: ""; width: 30px; height: 1px; background: rgba(49,92,70,.42); }
.about-snapshot h3 { font-size: clamp(25px, 2.6vw, 34px); }
.about-snapshot-copy { max-width: 38ch; text-align: left; }
.about-stats { gap: 10px; border-color: rgba(132,101,62,.23); }
.about-stats > div {
  padding: 12px 14px;
  border: 1px solid rgba(132,101,62,.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(231,218,195,.46));
}
.about-stats strong { font-size: 28px; }
.about-values { gap: 7px; }
.about-values i { display: none; }
.about-values { color: #5d4c39; }
.manifesto-copy { padding: clamp(24px, 3.4vw, 48px); border: 1px solid rgba(132,101,62,.14); border-radius: 28px; background: linear-gradient(145deg, rgba(255,252,245,.45), rgba(255,252,245,.16)); box-shadow: inset 0 1px rgba(255,255,255,.6); }
.manifesto-label { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.manifesto-label::before { content: ""; width: 30px; height: 1px; background: #a76e45; }
.manifesto-copy h2 { max-width: 760px; margin-bottom: 22px; font-size: clamp(36px, 4.3vw, 60px); line-height: 1.04; }
.manifesto-copy h2 em { text-decoration: underline; text-decoration-color: rgba(167,110,69,.5); text-decoration-thickness: .08em; text-underline-offset: .1em; }
.manifesto-body { max-width: 62ch; font-size: clamp(15px, 1.12vw, 17px); line-height: 1.8; text-align: left; hyphens: none; }
.manifesto-body + .manifesto-body { margin-top: 20px; padding-left: 16px; border-left: 2px solid rgba(167,110,69,.36); color: #4b4136; }
.manifesto-signature { gap: 14px; margin-top: 28px; padding: 20px 0 0; border-color: rgba(132,101,62,.25); }
.signature-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(49,92,70,.24); border-radius: 50%; background: rgba(255,252,245,.65); }
@media (max-width: 700px) {
  .manifesto-copy { padding: 22px 18px; border-radius: 22px; }
  .about-snapshot { border-radius: 22px; }
  .about-snapshot:hover { transform: translateY(-2px); }
  .about-monogram { width: 124px; }
  .manifesto-copy h2 { font-size: clamp(34px, 8.6vw, 48px); }
}
@media (prefers-reduced-motion: reduce) {
  .about-snapshot { transition: none; }
  .about-snapshot:hover { transform: none; }
}

/* Approach section v2: contrast-led profile dossier, open editorial copy. */
.manifesto-section {
  background:
    radial-gradient(ellipse at 72% 0%, rgba(255,255,255,.72), transparent 38%),
    radial-gradient(ellipse at 12% 94%, rgba(190,151,98,.17), transparent 40%),
    #f1e8d9;
}
.manifesto-shell { align-items: center; gap: clamp(42px, 7vw, 108px); }
.manifesto-side { gap: 22px; }
.manifesto-side > .eyebrow { margin: 0; padding-left: 2px; color: #765b3c; }
.about-snapshot {
  min-height: 560px;
  padding: clamp(25px, 3vw, 38px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 26px;
  color: #f7f0e5;
  background:
    radial-gradient(circle at 90% 10%, rgba(181,135,78,.25), transparent 27%),
    radial-gradient(circle at 8% 100%, rgba(145,104,58,.19), transparent 36%),
    linear-gradient(155deg, #332b23 0%, #211d19 55%, #2c261f 100%);
  box-shadow: 0 30px 70px rgba(43,32,21,.22), inset 0 1px 0 rgba(255,255,255,.16);
}
.about-snapshot:hover { transform: translateY(-5px) rotate(-.25deg); box-shadow: 0 38px 82px rgba(43,32,21,.28), inset 0 1px 0 rgba(255,255,255,.2); }
.about-snapshot::before {
  top: 52px;
  right: -118px;
  width: 270px;
  border-color: rgba(222,183,124,.13);
  box-shadow: 0 0 0 22px rgba(222,183,124,.035), 0 0 0 58px rgba(222,183,124,.025);
}
.about-snapshot-top { position: relative; z-index: 1; color: #c7b8a2; border-color: rgba(242,228,207,.2); }
.about-snapshot-top span:first-child::before { background: #d8a966; box-shadow: 0 0 0 4px rgba(216,169,102,.15); }
.about-snapshot-top span:last-child { color: #e4d3bc; }
.about-monogram {
  width: 140px;
  margin: 32px 0 24px;
  border-color: rgba(224,184,125,.6);
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.025));
  box-shadow: 0 14px 35px rgba(0,0,0,.2), inset 0 0 0 7px rgba(255,255,255,.035), inset 0 0 0 8px rgba(224,184,125,.22);
  color: #fff5e6;
}
.about-monogram::after { background: #d7a15c; border-color: #332b23; box-shadow: 0 0 0 4px rgba(215,161,92,.18); }
.about-snapshot-kicker { color: #d6ad72; }
.about-snapshot-kicker::after { background: rgba(214,173,114,.55); }
.about-snapshot h3 { color: #fff8ed; }
.about-snapshot h3 em { color: #d7ad72; }
.about-snapshot-copy { color: #ded3c3; }
.about-stats { border-color: rgba(242,228,207,.2); }
.about-stats > div { border-color: rgba(242,228,207,.12); background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); }
.about-stats strong { color: #fff8ed; }
.about-stats span { color: #cbbca8; }
.about-values { color: #d6c5ac; }
.manifesto-copy {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.manifesto-label { margin-bottom: 25px; color: #765b3c; }
.manifesto-label::before { width: 38px; height: 2px; background: #a76e45; }
.manifesto-copy h2 { max-width: 780px; font-size: clamp(42px, 5.2vw, 72px); letter-spacing: -.06em; line-height: .99; }
.manifesto-copy h2 em { color: #315c46; text-decoration: none; }
.manifesto-body { max-width: 64ch; color: #4b4136; font-size: clamp(15px, 1.13vw, 17px); line-height: 1.85; }
.manifesto-body + .manifesto-body { margin-top: 23px; padding: 3px 0 3px 18px; border-left: 2px solid #b99566; color: #594a39; }
.manifesto-signature { max-width: 640px; margin-top: 34px; padding-top: 22px; border-color: rgba(117,91,60,.28); }
.signature-mark { border-color: rgba(49,92,70,.25); background: rgba(255,252,245,.72); }
@media (max-width: 700px) {
  .manifesto-side { gap: 16px; }
  .about-snapshot { min-height: auto; padding: 23px; }
  .about-monogram { width: 118px; margin-block: 24px 19px; }
  .manifesto-copy { padding: 0; }
  .manifesto-copy h2 { font-size: clamp(38px, 10vw, 54px); }
}
@media (prefers-reduced-motion: reduce) {
  .about-snapshot:hover { transform: none; }
}

/* Compact About: useful proof points, restrained layout. */
.manifesto-section {
  overflow: hidden;
  background: radial-gradient(ellipse at 8% 0%, rgba(255,255,255,.72), transparent 42%), #f0e7d8;
}
.manifesto-section::before { right: -300px; top: -360px; width: 720px; height: 720px; opacity: .55; }
.about-compact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
  padding-block: clamp(56px, 6.5vw, 88px);
}
.about-compact-intro { max-width: 650px; }
.about-compact-intro .eyebrow { margin: 0 0 22px; color: #765b3c; }
.about-compact-intro h2 {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--ink);
  font: 800 clamp(40px, 5.1vw, 68px)/1 var(--display);
  letter-spacing: -.06em;
}
.about-compact-intro h2 em { color: var(--accent); font-style: normal; }
.about-compact-intro > p:not(.eyebrow) { max-width: 58ch; color: #51483d; font-size: 15px; line-height: 1.8; }
.about-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; color: #6e5a42; font-size: 9px; letter-spacing: .1em; }
.about-focus i { width: 3px; height: 3px; border-radius: 50%; background: #aa7950; }
.about-proof { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.about-proof-item {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid rgba(117,91,60,.2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,253,247,.82), rgba(236,226,208,.7));
  box-shadow: 0 8px 22px rgba(70,52,30,.045), inset 0 1px rgba(255,255,255,.82);
}
.about-proof-item > span { color: #765b3c; font-size: 8px; letter-spacing: .12em; }
.about-proof-item strong { color: #241f19; font: 800 clamp(27px, 3vw, 38px)/1 var(--display); letter-spacing: -.055em; }
.about-proof-item p { color: #5f5447; font-size: 12px; line-height: 1.45; }
.about-proof-award { grid-column: 1 / -1; min-height: 112px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; background: linear-gradient(105deg, rgba(255,253,247,.9), rgba(231,219,197,.78)); }
.about-proof-award > span { max-width: 115px; line-height: 1.6; }
.about-proof-award strong { font-size: clamp(23px, 2.5vw, 32px); }
.about-proof-award p { align-self: center; }
@media (max-width: 760px) {
  .about-compact { grid-template-columns: minmax(0,1fr); gap: 28px; padding-block: 52px; }
  .about-compact-intro h2 { font-size: clamp(38px, 10vw, 54px); }
  .about-proof-item { min-height: 132px; padding: 15px; }
  .about-proof-award { min-height: 96px; gap: 12px; }
}
@media (max-width: 430px) {
  .about-proof { gap: 8px; }
  .about-proof-item { min-height: 122px; padding: 13px 12px; }
  .about-proof-item > span { font-size: 7px; }
  .about-proof-item strong { font-size: 26px; }
  .about-proof-award { align-items: flex-start; flex-direction: column; gap: 6px; }
  .about-proof-award p { align-self: flex-start; }
}

/* Architectural doorway frame around the profile portrait. */
.hero-portrait {
  overflow: visible;
  border: 1px solid rgba(49,92,70,.3);
  border-radius: 190px 190px 30px 30px;
  background: #f7f3e9;
  box-shadow: 0 20px 54px rgba(38,53,42,.16), 0 0 0 7px rgba(248,246,238,.84), 0 0 0 9px rgba(49,92,70,.24);
  isolation: isolate;
  transition: transform .55s cubic-bezier(.2,.75,.25,1), box-shadow .55s ease;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14px -13px -11px;
  border: 1px solid rgba(49,92,70,.43);
  border-radius: 210px 210px 40px 40px;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.32), 0 0 0 7px rgba(255,255,255,.25);
  pointer-events: none;
  transition: inset .55s cubic-bezier(.2,.75,.25,1), border-color .4s ease, box-shadow .4s ease;
}
.hero-portrait:hover {
  transform: translateY(-6px) rotate(-.25deg);
  box-shadow: 0 30px 72px rgba(38,53,42,.22), 0 0 0 7px rgba(255,255,255,.92), 0 0 0 9px rgba(49,92,70,.36);
}
.hero-portrait:hover::before {
  inset: -18px -16px -14px;
  border-color: rgba(49,92,70,.6);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.4), 0 0 0 8px rgba(255,255,255,.3);
}
.portrait-frame { border-radius: 189px 189px 0 0; }
.portrait-frame::after { border-radius: 175px 175px 8px 8px; }
.profile-fact {
  top: clamp(48px, 8vw, 72px);
  bottom: auto;
  left: clamp(30px, 7vw, 58px);
}
.portrait-topline {
  top: 82px;
  left: auto;
  right: 42px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.portrait-topline span:first-child { position: static; transform: none; white-space: nowrap; }
.hero-portrait:hover .portrait-topline span:first-child { transform: none; }
@media (max-width: 560px) {
  .hero-portrait { border-radius: 125px 125px 25px 25px; }
  .hero-portrait::before { inset: -10px -9px -8px; border-radius: 140px 140px 34px 34px; }
  .portrait-frame { border-radius: 124px 124px 0 0; }
  .portrait-frame::after { border-radius: 115px 115px 7px 7px; }
  .profile-fact { top: 48px; bottom: auto; left: 30px; }
  .portrait-topline {
    top: 76px;
    left: auto;
    right: auto;
    right: 30px;
    display: flex;
    justify-content: flex-end;
    transform: none;
  }
  .portrait-topline span:first-child { position: static; transform: none; }
}
.cursor-ring.quiet { opacity: 0; }

/* Tighten the About chapter around its strongest proof points. */
.about-compact {
  gap: clamp(32px, 5vw, 76px);
  padding-block: clamp(52px, 5.5vw, 72px);
}
.about-compact-intro h2 {
  max-width: 680px;
  font-size: clamp(43px, 4.6vw, 62px);
}
.about-compact-intro > p:not(.eyebrow) {
  max-width: 54ch;
  font-size: 14px;
  line-height: 1.7;
}
.about-focus { margin-top: 19px; }
.about-proof { gap: 10px; }
.about-proof-item {
  min-height: 132px;
  padding: 17px 19px;
  border-radius: 14px;
  box-shadow: 0 7px 20px rgba(70,52,30,.04), inset 0 1px rgba(255,255,255,.88);
}
.about-proof-item strong { font-size: clamp(31px, 2.8vw, 40px); }
.about-proof-award {
  display: grid;
  grid-template-columns: minmax(74px, .45fr) max-content minmax(0, 1fr);
  align-items: center;
  justify-content: initial;
  gap: clamp(14px, 2.4vw, 26px);
  min-height: 98px;
  border-left: 3px solid #a8794d;
  background: linear-gradient(105deg, rgba(255,253,247,.96), rgba(239,231,215,.8));
}
.about-proof-award > span { max-width: 82px; color: #806b54; line-height: 1.55; }
.about-proof-award strong {
  min-width: max-content;
  white-space: nowrap;
  font-size: clamp(20px, 2.2vw, 31px);
  line-height: 1;
}
.about-proof-award p { max-width: 25ch; margin: 0; color: #665e53; line-height: 1.55; }
@media (max-width: 760px) {
  .about-compact { gap: 24px; padding-block: 48px; }
  .about-compact-intro h2 { font-size: clamp(38px, 9vw, 54px); }
  .about-proof-item { min-height: 120px; }
}
@media (max-width: 430px) {
  .about-proof-award { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .about-proof-award > span { max-width: none; }
  .about-proof-award p { max-width: none; }
}

/* Experience becomes a visual field journal instead of a text-heavy CV list. */
.experience-section {
  width: 100%;
  max-width: none;
  padding: clamp(64px, 7vw, 96px) max(32px, calc((100% - 1420px) / 2));
  background: linear-gradient(180deg, #f1e9da, #f5f0e6 72%, #eee5d5);
  overflow: hidden;
}
.experience-section .section-top {
  max-width: 1420px;
  margin: 0 auto 28px;
  align-items: end;
}
.experience-section .section-top h2 { font-size: clamp(45px, 5vw, 68px); }
.experience-aside {
  margin: 0 0 8px;
  color: #80735f;
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: .13em;
}
.experience-aside span { margin-left: 10px; color: #a8794d; font-size: 16px; }
.experience-list {
  width: min(1420px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(220px, 25vw));
  gap: 14px;
  border: 0;
}
.experience-photo-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(69,58,43,.16);
  border-radius: 17px;
  background: #d8d8ce;
  box-shadow: 0 12px 32px rgba(57,48,34,.09);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
.experience-photo-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(57,48,34,.17); }
.experience-teaching { grid-column: span 7; grid-row: span 2; }
.experience-business { grid-column: span 5; }
.experience-tutoring { grid-column: span 5; }
.experience-campus { grid-column: 1 / -1; min-height: 180px; }
.experience-photo-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16,1,.3,1), filter .5s ease;
}
.experience-business > img { object-position: center; background: #fff; }
.experience-photo-card:hover > img { transform: scale(1.035); filter: saturate(1.06); }
.experience-teaching > img { object-position: center 48%; }
.experience-photo-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,18,17,.22), transparent 34%, rgba(15,18,17,.78));
  pointer-events: none;
}
.experience-card-top, .experience-card-copy { position: absolute; z-index: 1; left: 20px; right: 20px; }
.experience-card-top {
  top: 17px;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 8px;
  letter-spacing: .12em;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.experience-card-top span:last-child { opacity: .78; }
.experience-card-copy { bottom: 18px; color: #fff; }
.experience-card-copy > p { margin: 0 0 9px; color: rgba(255,255,255,.78); font-size: 8px; letter-spacing: .12em; }
.experience-card-copy h3 { margin: 0; font: 700 clamp(22px,2.6vw,36px)/1.08 var(--display); letter-spacing: -.045em; }
.experience-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: rgba(255,255,255,.76); font-size: 10px; }
.experience-card-foot b { padding: 7px 10px; border: 1px solid rgba(255,255,255,.34); border-radius: 99px; background: rgba(20,24,21,.3); color: #fff; font: 500 8px var(--mono); white-space: nowrap; backdrop-filter: blur(8px); }
.experience-placeholder { display: block; background: #d9dfd1; }
.experience-placeholder::after { background: linear-gradient(180deg, rgba(33,45,36,.05), transparent 44%, rgba(21,34,27,.76)); }
.experience-placeholder-art { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 72% 20%, rgba(255,255,255,.76), transparent 28%), linear-gradient(135deg,#dfe5d8,#bac8b8 48%,#e8dec9); }
.experience-placeholder-art::before { content: ""; position: absolute; inset: 12% 15%; border: 1px solid rgba(49,92,70,.23); border-radius: 48% 48% 12px 12px; transform: rotate(-8deg); }
.placeholder-orbit { position: absolute; width: 58%; aspect-ratio: 1; right: -3%; top: -32%; border: 1px solid rgba(49,92,70,.2); border-radius: 50%; box-shadow: 0 0 0 20px rgba(255,255,255,.12),0 0 0 46px rgba(49,92,70,.05); }
.placeholder-mark { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); color: rgba(49,92,70,.68); font: 300 clamp(78px,12vw,150px)/1 var(--display); }
.placeholder-caption { position: absolute; top: 19px; left: 20px; color: rgba(38,59,44,.72); font-size: 7px; line-height: 1.6; letter-spacing: .12em; }
@media (max-width: 760px) {
  .experience-section { padding: 54px 18px; }
  .experience-section .section-top { display: flex; }
  .experience-section .section-top h2 { font-size: clamp(40px,9vw,56px); }
  .experience-list { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: auto; gap: 10px; }
  .experience-teaching { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
  .experience-business, .experience-tutoring { grid-column: span 1; min-height: 250px; }
  .experience-campus { grid-column: 1 / -1; min-height: 220px; }
  .experience-card-top, .experience-card-copy { left: 14px; right: 14px; }
  .experience-card-top { top: 13px; font-size: 7px; }
  .experience-card-copy { bottom: 14px; }
  .experience-card-copy h3 { font-size: clamp(19px,5vw,26px); }
  .experience-card-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 430px) {
  .experience-aside { display: none; }
  .experience-list { grid-template-columns: 1fr; }
  .experience-teaching, .experience-business, .experience-tutoring, .experience-campus { grid-column: 1; min-height: 275px; }
  .experience-teaching { min-height: 340px; }
}

/* Alternating experience case studies: human impact, not a second project list. */
.experience-section { padding: clamp(66px, 7vw, 100px) max(28px, calc((100% - 1420px) / 2)); }
.experience-section .section-top { margin-bottom: 20px; }
.experience-list {
  display: block;
  width: min(1420px, 100%);
  border: 0;
}
.experience-case {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  padding: 30px 0 38px;
  border-bottom: 1px solid rgba(103,83,57,.2);
}
.experience-case:last-child { border-bottom: 0; }
.experience-case:nth-child(even) { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.experience-case:nth-child(even) .experience-visual { grid-column: 2; grid-row: 1; }
.experience-case:nth-child(even) .experience-story { grid-column: 1; grid-row: 1; }
.experience-visual {
  position: relative;
  min-width: 0;
  height: clamp(270px, 29vw, 390px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(65,57,43,.16);
  border-radius: 15px;
  background: #d9ded5;
  box-shadow: 0 18px 42px rgba(58,48,32,.13);
}
.experience-visual > img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .75s cubic-bezier(.16,1,.3,1), filter .5s ease; }
.experience-case:hover .experience-visual > img { transform: scale(1.035); filter: saturate(1.06); }
.experience-business .experience-visual > img { object-fit: contain; padding: 0; background: #fff; }
.experience-tutor-gallery { background: #e3dbc9; }
.experience-tutor-gallery > img { object-fit: contain; background: #e3dbc9; }
.experience-eventcrew .experience-visual > img { object-fit: contain; background: #211c17; }
.experience-visual::after { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(180deg,rgba(15,20,17,.18),transparent 28%,transparent 58%,rgba(15,20,17,.65)); pointer-events: none; }
.experience-visual-tag, .experience-visual-caption, .experience-placeholder-note { position: absolute; z-index: 1; }
.experience-visual-tag { top: 14px; left: 15px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 99px; background: rgba(248,246,238,.88); color: #3f5144; font-size: 7px; letter-spacing: .11em; backdrop-filter: blur(8px); }
.experience-visual-caption { left: 20px; bottom: 18px; color: #fff; font: 700 clamp(19px,2.2vw,29px)/1.15 var(--display); letter-spacing: -.035em; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.experience-visual-caption i { color: #e8d6b7; font-style: normal; }
.experience-story { max-width: 490px; padding: 10px 0; }
.experience-case-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding-bottom: 13px; border-bottom: 1px solid rgba(103,83,57,.2); color: #796d5c; font-size: 8px; letter-spacing: .1em; }
.experience-kicker { margin: 24px 0 10px; color: #a06c45; font-size: 8px; letter-spacing: .15em; }
.experience-story h3 { margin: 0; color: #211f1b; font: 800 clamp(32px,4vw,52px)/.98 var(--display); letter-spacing: -.065em; }
.experience-story h3 em { color: #315c46; font-style: normal; }
.experience-description { max-width: 45ch; margin: 17px 0 22px; color: #5d564c; font-size: 14px; line-height: 1.75; }
.experience-impact { display: flex; align-items: center; gap: 13px; padding-top: 16px; border-top: 1px solid rgba(103,83,57,.2); }
.experience-impact strong { color: #315c46; font: 800 27px/1 var(--display); letter-spacing: -.05em; }
.experience-impact span { color: #766a58; font: 8px/1.55 var(--mono); letter-spacing: .04em; }
.experience-placeholder { background: linear-gradient(135deg,#dfe5d8,#c5d1c1 55%,#e9dfcf); }
.experience-placeholder::before { content: ""; position: absolute; z-index: -1; width: 72%; aspect-ratio: 1; right: -12%; top: -48%; border: 1px solid rgba(49,92,70,.2); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.12),0 0 0 65px rgba(49,92,70,.045); }
.experience-placeholder-math { background: radial-gradient(ellipse at 22% 78%,rgba(248,246,236,.85),transparent 32%),linear-gradient(135deg,#d9e1d5,#bacbb9 57%,#e9dec9); }
.experience-placeholder-campus { background: radial-gradient(ellipse at 78% 24%,rgba(255,255,255,.76),transparent 25%),linear-gradient(135deg,#e9dfcd,#d5c4a7 55%,#d7e0d4); }
.experience-placeholder-symbol { position: absolute; z-index: 0; top: 50%; left: 50%; transform: translate(-50%,-55%); color: rgba(49,92,70,.57); font: 300 clamp(100px,15vw,190px)/1 var(--display); }
.experience-placeholder-note { right: 15px; top: 17px; color: rgba(56,69,55,.7); font: 7px var(--mono); letter-spacing: .12em; }
.experience-case-meta { color: #51483c; font-size: 10px; letter-spacing: .08em; border-color: rgba(83,67,46,.28); }
.experience-kicker { color: #80522f; font-size: 10px; font-weight: 500; letter-spacing: .12em; }
.experience-description { max-width: 48ch; color: #403a33; font-size: 16px; line-height: 1.7; }
.experience-impact { border-color: rgba(83,67,46,.28); }
.experience-impact strong { color: #28533d; font-size: 34px; }
.experience-impact span { color: #4f483d; font-size: 10px; line-height: 1.6; }
.experience-visual-tag { color: #293b2f; font-size: 9px; font-weight: 500; border-color: rgba(49,65,50,.25); }
.experience-award {
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(151,108,49,.44);
  border-radius: 12px;
  background: linear-gradient(110deg,#fbf0d7,#f3e2bd);
  box-shadow: 0 7px 18px rgba(107,77,35,.1), inset 0 1px rgba(255,255,255,.8);
}
.experience-award > svg { flex: 0 0 28px; width: 28px; height: 28px; fill: none; stroke: #9b6b27; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.experience-award > span { display: grid; gap: 4px; }
.experience-award small { color: #76521f; font-size: 8px; letter-spacing: .11em; }
.experience-award b { color: #342719; font: 700 15px/1.2 var(--display); }
.experience-award > i { margin-left: auto; color: #996b2b; font-style: normal; font-size: 17px; }
@media (max-width: 760px) {
  .experience-case-meta { font-size: 9px; }
  .experience-kicker { font-size: 9px; }
  .experience-description { font-size: 15px; }
  .experience-impact span { font-size: 10px; }
  .experience-award { margin-top: 16px; }
}
.experience-visual[data-hover-images] { cursor: auto; }
.experience-visual > img.experience-slide {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease, transform .75s cubic-bezier(.16,1,.3,1), filter .45s ease;
}
.experience-visual > img.experience-slide.is-visible { opacity: 1; }
.experience-visual > img.experience-slide-back { pointer-events: none; }
.experience-gallery-hint {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 19px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 99px;
  background: rgba(22,28,23,.38);
  color: rgba(255,255,255,.86);
  font-size: 7px;
  letter-spacing: .1em;
  opacity: .85;
  backdrop-filter: blur(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.experience-gallery-hint b { margin-left: 6px; color: #f0d5af; font-size: 12px; }
.experience-visual:hover .experience-gallery-hint,
.experience-visual:focus-visible .experience-gallery-hint { opacity: 1; transform: translateY(-2px); }
.experience-visual:focus-visible { outline: 2px solid #315c46; outline-offset: 4px; }
.experience-gallery-hint { display: none; }
.experience-gallery-controls {
  position: absolute;
  z-index: 3;
  right: 17px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 99px;
  background: rgba(20,25,22,.45);
  color: white;
  backdrop-filter: blur(10px);
}
.experience-gallery-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.experience-gallery-arrow:hover { transform: scale(1.08); background: rgba(255,255,255,.25); }
.experience-gallery-count { min-width: 44px; text-align: center; color: rgba(255,255,255,.9); font-size: 7px; letter-spacing: .08em; }
.experience-gallery-timer { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; height: 3px; overflow: hidden; background: rgba(255,255,255,.32); }
.experience-gallery-timer i { display: block; width: 0; height: 100%; background: #f0d5af; }
@media (max-width: 760px) {
  .experience-section { padding: 54px 20px; }
  .experience-section .section-top { display: flex; }
  .experience-case, .experience-case:nth-child(even) { grid-template-columns: minmax(0,1fr); gap: 22px; padding: 22px 0 30px; }
  .experience-case:nth-child(even) .experience-visual,
  .experience-case:nth-child(even) .experience-story { grid-column: 1; grid-row: auto; }
  .experience-visual { height: clamp(240px,55vw,350px); }
  .experience-story { max-width: 620px; }
  .experience-kicker { margin-top: 10px; }
  .experience-story h3 { font-size: clamp(34px,7vw,46px); }
  .experience-description { margin-block: 12px 16px; }
}
@media (max-width: 430px) {
  .experience-section { padding-inline: 16px; }
  .experience-section .section-top { display: block; }
  .experience-visual { height: 230px; }
  .experience-visual-tag { top: 10px; left: 10px; }
  .experience-visual-caption { left: 14px; bottom: 14px; }
  .experience-case-meta { font-size: 8px; letter-spacing: .06em; }
  .experience-gallery-controls { right: 10px; bottom: 10px; gap: 5px; }
  .experience-gallery-arrow { width: 30px; height: 30px; }
}

/* Toolkit as a compact, scannable skill index. */
.capabilities-section { padding: clamp(72px, 8vw, 112px) 0; background: #eee5d7; }
.capabilities-inner {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(36px, 6vw, 88px);
}
.capabilities-head { position: sticky; top: 112px; }
.capabilities-head h2 { max-width: 540px; margin: 0 0 17px; font-size: clamp(48px, 5.3vw, 70px); line-height: .98; letter-spacing: -.07em; }
.capabilities-head h2 em { color: #315c46; }
.capabilities-head > p:not(.eyebrow) { max-width: 38ch; color: #4d473e; font-size: 15px; line-height: 1.75; }
.toolkit-head-note { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: #675b4a; font-size: 8px; letter-spacing: .13em; }
.toolkit-head-note i { color: #9c673c; font-size: 16px; font-style: normal; }
.capability-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.capability-card {
  position: relative;
  min-height: 105px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 39px minmax(190px, .75fr) minmax(0, 1.25fr) 18px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(90,73,49,.18);
  border-radius: 13px;
  background: rgba(255,252,245,.78);
  box-shadow: 0 5px 15px rgba(70,55,34,.035), inset 0 1px rgba(255,255,255,.9);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, background .3s, box-shadow .3s;
}
.capability-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #a87348; transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.capability-card:hover { transform: translateX(5px); border-color: rgba(49,92,70,.34); background: #fffdf8; box-shadow: 0 13px 28px rgba(70,55,34,.09); }
.capability-card:hover::before { transform: scaleY(1); }
.cap-num { color: #756952; font-size: 10px; font-weight: 500; letter-spacing: .06em; }
.capability-label { min-width: 0; display: flex; align-items: center; gap: 12px; }
.cap-icon { flex: 0 0 39px; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(49,92,70,.22); border-radius: 11px; background: #e5eadd; color: #315c46; font-size: 17px; }
.cap-icon.cap-purple { border-color: rgba(102,90,125,.2); background: #ece7f0; color: #67577d; }
.cap-icon.cap-orange { border-color: rgba(166,109,69,.24); background: #f3e6d6; color: #9e673c; }
.cap-icon.cap-lime { border-color: rgba(99,126,79,.24); background: #e7eadb; color: #607847; }
.capability-label h3 { margin: 0; color: #211f1b; font: 700 16px/1.2 var(--display); letter-spacing: -.025em; }
.capability-label p { margin: 4px 0 0; color: #655d51; font-size: 10px; line-height: 1.4; }
.cap-tags { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.cap-tags span { padding: 6px 9px; border: 1px solid rgba(90,73,49,.23); border-radius: 99px; background: #f8f3e9; color: #3f3a33; font: 500 10px/1.2 var(--mono); transition: background .25s, transform .25s, border-color .25s; }
.capability-card:hover .cap-tags span { border-color: rgba(49,92,70,.22); background: #f0f3e9; }
.capability-arrow { color: #937757; font-size: 17px; transition: transform .25s ease, color .25s; }
.capability-card:hover .capability-arrow { transform: translate(2px,-2px); color: #315c46; }
@media (max-width: 900px) {
  .capabilities-inner { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 28px; }
  .capability-card { grid-template-columns: 30px minmax(160px, .85fr) minmax(0, 1.15fr) 14px; gap: 9px; padding: 13px; }
  .capability-label { gap: 8px; }
  .cap-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .cap-tags span { font-size: 9px; }
}
@media (max-width: 700px) {
  .capabilities-section { padding: 58px 0; }
  .capabilities-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .capabilities-head { position: static; }
  .capabilities-head h2 { font-size: clamp(42px, 9vw, 58px); }
  .toolkit-head-note { margin-top: 16px; }
  .capability-card { grid-template-columns: 32px minmax(0, .8fr) minmax(0, 1.2fr) 14px; min-height: 96px; }
}
@media (max-width: 520px) {
  .capability-card { grid-template-columns: 28px minmax(0, 1fr) 14px; gap: 9px; }
  .capability-label { grid-column: 2; grid-row: 1; }
  .cap-tags { grid-column: 2 / 4; grid-row: 2; }
  .capability-arrow { grid-column: 3; grid-row: 1; justify-self: end; }
  .cap-num { grid-column: 1; grid-row: 1; align-self: start; padding-top: 11px; }
  .capability-label h3 { font-size: 15px; }
}

/* Give the toolkit a more deliberate, tactile skill-board feel. */
.capabilities-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 9% 14%, rgba(255,255,255,.62), transparent 31%),
    radial-gradient(ellipse at 92% 84%, rgba(185,143,97,.13), transparent 35%),
    #eee5d7;
}
.capabilities-section::before {
  content: "";
  position: absolute;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  left: -23vw;
  bottom: -34%;
  border: 1px solid rgba(111,91,63,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255,255,255,.12), 0 0 0 76px rgba(111,91,63,.035);
  pointer-events: none;
}
.capabilities-inner { position: relative; z-index: 1; }
.capabilities-head h2 { max-width: 460px; }
.capabilities-head > p:not(.eyebrow) { max-width: 32ch; }
.toolkit-head-note { padding-top: 13px; border-top: 1px solid rgba(90,73,49,.22); }
.capability-grid { gap: 12px; }
.capability-card {
  --skill-accent: #956744;
  min-height: 112px;
  padding: 17px 19px;
  grid-template-columns: 48px minmax(195px, .78fr) minmax(0, 1.22fr) 18px;
  gap: 15px;
  border-color: rgba(90,73,49,.21);
  border-radius: 15px;
  background: linear-gradient(108deg, rgba(255,253,247,.97), rgba(250,246,237,.84));
  box-shadow: 0 8px 22px rgba(70,55,34,.045), inset 0 1px rgba(255,255,255,.95);
}
.capability-card.capability-data { --skill-accent: #6e6888; background: linear-gradient(108deg, #f8f5f4, rgba(255,253,247,.92)); }
.capability-card.capability-ai { --skill-accent: #a66e43; background: linear-gradient(108deg, #faf3e9, rgba(255,253,247,.92)); }
.capability-card.capability-people { --skill-accent: #8f704c; background: linear-gradient(108deg, #f8f3ea, rgba(255,253,247,.92)); }
.capability-card.capability-people .cap-icon { border-color: rgba(143,112,76,.25); background: #f0e7d8; color: #8f704c; }
.capability-card.capability-people .cap-icon svg { fill: currentColor; stroke: none; }
.capability-card::before { width: 4px; background: var(--skill-accent); }
.capability-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -34px;
  right: 28px;
  width: 95px;
  height: 95px;
  border: 1px solid color-mix(in srgb, var(--skill-accent) 17%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--skill-accent) 4%, transparent);
  opacity: .72;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s;
  pointer-events: none;
}
.capability-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--skill-accent) 43%, #b9aa91); box-shadow: 0 17px 34px rgba(70,55,34,.11), inset 0 1px rgba(255,255,255,.95); }
.capability-card:hover::after { transform: scale(1.28) translate(-5px, 4px); opacity: 1; }
.cap-index { position: relative; z-index: 1; color: var(--skill-accent); font-size: 9px; font-weight: 500; letter-spacing: .1em; }
.capability-label, .cap-tags, .capability-arrow { z-index: 1; }
.cap-icon { border-color: color-mix(in srgb, var(--skill-accent) 28%, transparent); background: color-mix(in srgb, var(--skill-accent) 10%, #fff); color: var(--skill-accent); font-size: 15px; font-weight: 600; }
.capability-label h3 { font-size: 17px; }
.capability-label p { color: #554d42; font-size: 11px; }
.cap-tags { gap: 7px; }
.cap-tags span { padding: 7px 10px; border-color: rgba(90,73,49,.26); background: rgba(255,252,245,.84); color: #302d28; font-size: 10px; }
.capability-card:hover .cap-tags span { background: color-mix(in srgb, var(--skill-accent) 8%, #fffdf8); border-color: color-mix(in srgb, var(--skill-accent) 28%, #d5c8b3); }
.capability-card:hover .cap-tags span:nth-child(2n) { transform: translateY(-2px); }
.capability-card:hover .cap-tags span:nth-child(2n + 1) { transform: translateY(2px); }
.capability-arrow { color: var(--skill-accent); }
@media (max-width: 900px) {
  .capability-card { grid-template-columns: 43px minmax(165px, .86fr) minmax(0, 1.14fr) 14px; }
}
@media (max-width: 700px) {
  .capabilities-section::before { width: 78vw; left: -46vw; bottom: -20%; }
  .capability-card { grid-template-columns: 42px minmax(0, .8fr) minmax(0, 1.2fr) 14px; }
}
@media (max-width: 520px) {
  .capability-card { grid-template-columns: 42px minmax(0, 1fr) 14px; gap: 10px 12px; padding: 15px; }
  .cap-index { grid-column: 1; grid-row: 1; align-self: center; }
  .capability-label { grid-column: 2; grid-row: 1; }
  .capability-label .cap-icon { display: grid; width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; }
  .capability-label { gap: 8px; }
  .capability-label p { font-size: 10px; }
  .cap-tags { grid-column: 2 / 4; grid-row: 2; }
  .capability-arrow { grid-column: 3; grid-row: 1; }
}

/* Featured stack turns the Toolkit heading into a useful visual entry point. */
.toolkit-featured { margin-top: 25px; }
.toolkit-featured > p { margin: 0 0 9px; display: flex; align-items: center; gap: 8px; color: #75634d; font-size: 8px; letter-spacing: .12em; }
.toolkit-featured > p::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a66e43; box-shadow: 0 0 0 4px rgba(166,110,67,.12); }
.toolkit-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.toolkit-feature {
  min-height: 52px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(90,73,49,.19);
  border-radius: 11px;
  background: linear-gradient(115deg, rgba(255,253,248,.88), rgba(243,235,221,.82));
  box-shadow: 0 4px 12px rgba(70,55,34,.035), inset 0 1px rgba(255,255,255,.9);
  color: #37332c;
  font: 600 11px/1.2 var(--display);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.toolkit-feature:hover { transform: translateY(-3px); border-color: rgba(153,106,68,.45); box-shadow: 0 10px 22px rgba(70,55,34,.09); }
.toolkit-badge { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; background: #e7eadd; color: #315c46; font: 700 12px/1 var(--display); }
.toolkit-badge-flutter { background: #e4edf0; color: #347b9b; }
.toolkit-badge-node { background: #e5eadf; color: #547449; }
.toolkit-badge-chatgpt { background: #e9ece7; color: #252b27; }
.toolkit-badge-chatgpt svg { width: 19px; height: 19px; display: block; fill: currentColor; }
.toolkit-feature > span { white-space: nowrap; }
.cap-icon { margin-top: 0; }
.cap-icon svg { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cap-icon.cap-chatgpt svg { fill: currentColor; stroke: none; }
@media (max-width: 700px) {
  .toolkit-featured { max-width: 460px; margin-top: 20px; }
  .toolkit-feature { min-height: 48px; }
}
@media (max-width: 360px) {
  .toolkit-feature { gap: 7px; padding-inline: 7px; font-size: 10px; }
  .toolkit-badge { width: 28px; height: 28px; flex-basis: 28px; }
}

/* Use Francesco's supplied skills artwork as the Toolkit visual anchor. */
.toolkit-illustration {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(280px, 30vw, 390px);
  margin: 0 0 20px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.toolkit-illustration::before,
.toolkit-illustration::after { content: none; }
.toolkit-illustration img {
  display: block;
  width: 110%;
  height: 110%;
  max-width: none;
  object-fit: contain;
  transform: translateY(-40px);
  filter: drop-shadow(0 10px 12px rgba(24,35,27,.1));
  transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}
.toolkit-illustration:hover img { transform: translateY(-44px) scale(1.025); filter: drop-shadow(0 15px 17px rgba(24,35,27,.15)); }
@media (max-width: 700px) {
  .capabilities-head { display: flex; flex-direction: column; }
  .toolkit-illustration { order: 2; height: clamp(245px, 67vw, 325px); margin: 5px 0 0; }
  .capabilities-head .eyebrow { order: 0; }
  .capabilities-head h2 { order: 1; }
  .toolkit-illustration img { width: 106%; height: 106%; transform: none; }
  .toolkit-illustration:hover img { transform: translateY(-3px) scale(1.02); }
}

/* Balanced editorial composition: copy and artwork share the left rail. */
@media (min-width: 1001px) {
  .capabilities-inner {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(28px, 3vw, 54px);
  }
  .capabilities-head {
    position: relative;
    top: auto;
    min-height: 545px;
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    grid-template-rows: auto auto 1fr;
    align-content: start;
    align-items: start;
    column-gap: 0;
  }
  .capabilities-head > .eyebrow { grid-column: 1; grid-row: 1; margin-top: 42px; }
  .capabilities-head > h2 { position: relative; z-index: 2; grid-column: 1; grid-row: 2; align-self: start; width: max-content; max-width: 430px; margin-top: 17px; font-size: clamp(42px, 4.2vw, 64px); }
  .capabilities-head > .eyebrow { position: relative; z-index: 3; }
  .capabilities-head > .toolkit-illustration {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    justify-self: center;
    width: 145%;
    height: min(100%, 480px);
    margin: 0 0 0 -22%;
  }
  .capabilities-head > .toolkit-illustration img { width: 116%; height: 116%; transform: none; }
  .capabilities-head > .toolkit-illustration:hover img { transform: translateY(-4px) scale(1.025); }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .capabilities-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .capabilities-head {
    position: relative;
    top: auto;
    min-height: 420px;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
  }
  .capabilities-head > .eyebrow { grid-column: 1; grid-row: 1; margin-top: 26px; }
  .capabilities-head > h2 { grid-column: 1; grid-row: 2; align-self: start; margin-top: 16px; font-size: clamp(42px, 7vw, 60px); }
  .capabilities-head > .toolkit-illustration { grid-column: 2; grid-row: 1 / 4; align-self: center; width: 125%; height: 390px; margin: 0 0 0 -10%; }
  .capabilities-head > .toolkit-illustration img { width: 112%; height: 112%; transform: none; }
  .capabilities-head > .toolkit-illustration:hover img { transform: translateY(-3px) scale(1.02); }
}
@media (max-width: 700px) {
  .capabilities-head > .eyebrow { order: 0; }
  .capabilities-head > h2 { order: 1; }
  .capabilities-head > .toolkit-illustration { order: 2; }
}

/* Keep the title readable beside the artwork; add a concise skills summary. */
.toolkit-description { color: #514a3f; font-size: 15px; line-height: 1.7; }
@media (min-width: 1401px) {
  .capabilities-inner { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(32px, 2.8vw, 48px); }
  .capabilities-head {
    min-height: 545px;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  }
  .capabilities-head > .eyebrow,
  .capabilities-head > h2,
  .capabilities-head > .toolkit-description { position: relative; z-index: 2; transform: translateX(-10px); }
  .capabilities-head > .eyebrow { grid-column: 1; grid-row: 1; margin-top: 42px; }
  .capabilities-head > h2 { grid-column: 1; grid-row: 2; width: auto; max-width: 100%; margin-top: 17px; font-size: clamp(40px, 3.8vw, 58px); }
  .capabilities-head > .toolkit-description { grid-column: 1; grid-row: 3; max-width: 31ch; margin: 15px 0 0; }
  .capabilities-head > .toolkit-illustration { grid-column: 2; grid-row: 1 / 4; width: 100%; height: min(100%, 470px); margin: 0; }
  .capabilities-head > .toolkit-illustration img { width: 110%; height: 110%; justify-self: start; transform: none; }
  .capabilities-head > .toolkit-illustration:hover img { transform: translateY(-4px) scale(1.02); }
}
@media (min-width: 701px) and (max-width: 1400px) {
  .capabilities-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .capabilities-head {
    position: relative;
    top: auto;
    min-height: 420px;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
  }
  .capabilities-head > .eyebrow { grid-column: 1; grid-row: 1; margin-top: 26px; }
  .capabilities-head > h2 { grid-column: 1; grid-row: 2; align-self: start; width: auto; max-width: 100%; margin-top: 16px; font-size: clamp(40px, 6vw, 60px); }
  .capabilities-head > .toolkit-description { grid-column: 1; grid-row: 3; max-width: 34ch; margin: 14px 0 0; }
  .capabilities-head > .toolkit-illustration { grid-column: 2; grid-row: 1 / 4; align-self: center; width: 100%; height: 390px; margin: 0; }
  .capabilities-head > .toolkit-illustration img { width: 105%; height: 105%; justify-self: start; transform: none; }
  .capabilities-head > .toolkit-illustration:hover img { transform: translateY(-3px) scale(1.02); }
}
@media (max-width: 700px) {
  .capabilities-head > .eyebrow { order: 0; }
  .capabilities-head > h2 { order: 1; }
  .capabilities-head > .toolkit-description { order: 2; max-width: 36ch; margin: 12px 0 0; }
  /* Keep the artwork centered behind the card stack instead of giving it a
     separate tall row that leaves an awkward gap above the first card. */
  .capabilities-head > .toolkit-illustration { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
  .capability-grid { position: relative; isolation: isolate; }
  .capability-grid::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: url("assets/skill.png") center / min(100%, 520px) auto no-repeat;
    pointer-events: none;
  }
  .capability-grid > .capability-card {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 251, 243, .86);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }
}

/* Education: one current chapter, with the campus and FTI Reel as proof. */
.education-section {
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(68px, 7vw, 104px);
}
.education-intro { max-width: 480px; }
.education-intro h2 {
  margin: 20px 0 15px;
  color: #211f1b;
  font: 800 clamp(44px, 5.2vw, 68px)/.99 var(--display);
  letter-spacing: -.065em;
}
.education-intro h2 em { color: #315c46; font-style: normal; }
.education-program { margin: 0; color: #554e44; font-size: 15px; line-height: 1.7; }
.education-metrics { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); margin-top: 28px; border-block: 1px solid rgba(103,83,57,.25); }
.education-metric { min-width: 0; padding: 17px 12px 17px 0; display: flex; flex-direction: column; justify-content: space-between; gap: 11px; }
.education-metric + .education-metric { padding-left: 18px; border-left: 1px solid rgba(103,83,57,.25); }
.education-metric > span { color: #796a55; font-size: 8px; letter-spacing: .13em; }
.education-metric strong { color: #211f1b; font: 750 clamp(23px, 2.7vw, 36px)/1 var(--display); letter-spacing: -.055em; white-space: nowrap; }
.education-gpa strong { color: #315c46; font-size: clamp(30px, 3.5vw, 46px); }
.education-gpa strong small { color: #756b5d; font: 500 .45em/1 var(--mono); letter-spacing: 0; }
.education-watch-link { display: inline-flex; align-items: center; gap: 13px; margin-top: 22px; color: #28533d; font: 700 14px var(--display); text-decoration: none; }
.education-watch-link span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(49,92,70,.32); border-radius: 50%; transition: transform .22s ease, background .22s ease; }
.education-watch-link:hover span { transform: translate(2px,-2px); background: rgba(49,92,70,.08); }
.education-media { min-width: 0; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); align-items: stretch; gap: 14px; }
.education-campus {
  position: relative;
  min-width: 0;
  height: clamp(420px, 38vw, 500px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(103,83,57,.2);
  border-radius: 17px;
  background: #e9e1d3;
  box-shadow: 0 14px 34px rgba(70,55,34,.09);
}
.education-campus::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(20,23,19,.65)); pointer-events: none; }
.education-campus img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 43%; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.education-campus:hover img { transform: scale(1.04); }
.education-campus-tag { position: absolute; z-index: 1; top: 13px; left: 13px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.6); border-radius: 99px; background: rgba(250,247,239,.9); color: #374639; font-size: 8px; letter-spacing: .1em; backdrop-filter: blur(8px); }
.education-campus figcaption { position: absolute; z-index: 1; right: 18px; bottom: 18px; left: 18px; color: white; font: 700 21px/1.2 var(--display); letter-spacing: -.035em; }
.education-campus figcaption em { color: #f0d9b6; font-style: normal; }
.education-reel { min-width: 0; padding: 11px; display: flex; flex-direction: column; border: 1px solid rgba(103,83,57,.22); border-radius: 17px; background: rgba(255,252,246,.85); box-shadow: 0 14px 34px rgba(70,55,34,.07), inset 0 1px rgba(255,255,255,.95); }
.education-reel-head { min-height: 31px; padding: 0 2px 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #655942; font-size: 8px; letter-spacing: .1em; }
.education-reel-live { display: inline-flex; align-items: center; gap: 6px; color: #716b5c; font-size: 7px; white-space: nowrap; }
.education-reel-live i { width: 6px; height: 6px; border-radius: 50%; background: #a85e45; box-shadow: 0 0 0 3px rgba(168,94,69,.12); }
.education-reel-frame { min-height: 0; height: clamp(365px, 34vw, 430px); overflow: hidden; border-radius: 10px; background: #f0e9dc; }
.education-reel-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.education-reel-link { padding: 11px 2px 1px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #28533d; font-size: 8px; font-weight: 500; letter-spacing: .08em; text-decoration: none; }
.education-reel-link:hover span { transform: translate(2px,-2px); }
.education-reel-link span { display: inline-block; transition: transform .2s ease; }
@media (max-width: 1100px) {
  .education-section { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .education-intro { max-width: 660px; }
  .education-intro h2 { font-size: clamp(44px, 6vw, 62px); }
  .education-metrics { max-width: 520px; }
  .education-media { grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); }
  .education-campus { height: clamp(390px, 55vw, 500px); }
  .education-reel-frame { height: clamp(340px, 48vw, 430px); }
}
@media (max-width: 680px) {
  .education-section { padding-block: 58px; }
  .education-intro h2 { font-size: clamp(42px, 10vw, 58px); }
  .education-media { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .education-campus { width: 100%; height: clamp(330px, 92vw, 440px); }
  .education-reel { width: min(100%, 430px); justify-self: center; }
  .education-reel-frame { height: clamp(390px, 118vw, 490px); }
}
@media (max-width: 390px) {
  .education-section { padding-block: 48px; }
  .education-metric { padding-right: 8px; }
  .education-metric + .education-metric { padding-left: 12px; }
  .education-metric strong { font-size: 21px; }
  .education-gpa strong { font-size: 29px; }
  .education-campus { height: 320px; }
}

/* The FTI Reel is a clear, self-contained outbound action instead of an embed. */
.education-reel-cta {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 38vw, 500px);
  padding: 16px;
  justify-content: space-between;
  overflow: hidden;
  border-color: rgba(69,51,38,.3);
  background:
    radial-gradient(circle at 95% 20%, rgba(194,105,65,.4), transparent 30%),
    radial-gradient(circle at 7% 90%, rgba(160,88,63,.3), transparent 34%),
    linear-gradient(148deg, #282b28, #3b3933 55%, #60463a);
  color: #f9f4ea;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(65,47,34,.17), inset 0 1px rgba(255,255,255,.16);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .3s ease;
}
.education-reel-cta::before,
.education-reel-cta::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgba(248,230,204,.12); border-radius: 50%; pointer-events: none; }
.education-reel-cta::before { width: 280px; height: 280px; top: 53px; right: -145px; box-shadow: 0 0 0 22px rgba(255,255,255,.025), 0 0 0 52px rgba(255,255,255,.02); }
.education-reel-cta::after { width: 190px; height: 190px; left: -115px; bottom: 20px; border-color: rgba(216,143,94,.2); }
.education-reel-cta:hover { transform: translateY(-6px) rotate(-.4deg); border-color: rgba(228,157,113,.65); box-shadow: 0 26px 48px rgba(65,47,34,.24), inset 0 1px rgba(255,255,255,.2); }
.education-reel-cta:focus-visible { outline: 3px solid #bd805b; outline-offset: 5px; }
.education-reel-cta .education-reel-head { position: relative; z-index: 1; min-height: 30px; padding: 0 0 10px; border-bottom: 1px solid rgba(250,241,222,.2); color: rgba(250,241,222,.8); }
.education-reel-cta .education-reel-live { color: #f4d8c2; }
.education-reel-cta .education-reel-live i { background: #e17b56; box-shadow: 0 0 0 4px rgba(225,123,86,.18); }
.education-reel-art { position: relative; z-index: 1; height: 118px; margin: 13px 0 4px; display: flex; align-items: center; justify-content: center; }
.education-reel-orbit { position: absolute; width: 114px; height: 114px; border: 1px dashed rgba(255,234,209,.38); border-radius: 50%; animation: educationOrbit 18s linear infinite; }
.education-reel-orbit::before { content: ""; position: absolute; top: 14px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #e99768; box-shadow: 0 0 0 5px rgba(233,151,104,.14); }
.education-instagram-mark { position: relative; z-index: 1; width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.48); border-radius: 22px; background: linear-gradient(145deg,#f5b44d 0%,#e96562 47%,#a84091 100%); box-shadow: 0 10px 28px rgba(221,101,87,.3), inset 0 1px rgba(255,255,255,.55); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.education-instagram-mark svg { width: 34px; height: 34px; fill: none; stroke: white; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.education-instagram-mark .instagram-flash { fill: white; stroke: none; }
.education-reel-play { position: absolute; right: calc(50% - 65px); bottom: 7px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: #f8f2e8; color: #49372f; font-size: 12px; padding-left: 2px; box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .3s ease; }
.education-reel-cta:hover .education-instagram-mark { transform: rotate(-8deg) scale(1.07); }
.education-reel-cta:hover .education-reel-play { transform: scale(1.12); }
.education-reel-copy { position: relative; z-index: 1; }
.education-reel-copy > span { color: #e8b891; font-size: 8px; letter-spacing: .12em; }
.education-reel-copy h3 { margin: 10px 0 9px; color: #fffaf0; font: 800 clamp(26px, 2.5vw, 34px)/.98 var(--display); letter-spacing: -.055em; }
.education-reel-copy h3 em { color: #f0b27d; font-style: normal; }
.education-reel-copy p { max-width: 28ch; margin: 0; color: rgba(250,244,232,.77); font-size: 12px; line-height: 1.6; }
.education-reel-click { position: relative; z-index: 1; min-height: 43px; margin-top: 17px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,239,220,.58); border-radius: 99px; background: rgba(255,248,236,.96); color: #3d3027; font-size: 8px; font-weight: 500; letter-spacing: .1em; box-shadow: 0 0 0 0 rgba(239,181,130,.42); animation: educationClickPulse 2.1s ease-out infinite; }
.education-reel-click i { width: 23px; height: 23px; margin-left: auto; display: grid; place-items: center; border-radius: 50%; background: #d87b53; color: white; font: normal 14px/1 var(--display); transition: transform .25s ease; }
.education-reel-click b { display: none; }
.education-reel-cta:hover .education-reel-click i { transform: translate(2px,-2px); }
@keyframes educationClickPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,181,130,.28); } 55% { box-shadow: 0 0 0 7px rgba(239,181,130,0); } }
@keyframes educationOrbit { to { transform: rotate(360deg); } }
@media (max-width: 1100px) {
  .education-reel-cta { min-height: clamp(420px, 50vw, 500px); }
  .education-reel-copy h3 { font-size: clamp(28px, 4vw, 36px); }
}
@media (max-width: 680px) {
  .education-reel-cta { width: min(100%, 430px); min-height: 455px; justify-self: center; }
  .education-reel-art { height: 122px; }
  .education-reel-copy h3 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .education-reel-cta, .education-reel-orbit, .education-reel-click { animation: none; }
  .education-reel-cta, .education-instagram-mark, .education-reel-play, .education-reel-click i { transition: none; }
}

/* Let the UNTAR campus photo own the media side; keep Instagram as one direct link. */
.education-media { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.education-campus {
  width: min(100%, 500px);
  height: clamp(500px, 44vw, 660px);
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.education-campus::after { content: none; }
.education-campus img { object-fit: contain; object-position: center; border-radius: 8px; filter: drop-shadow(0 18px 28px rgba(56,42,29,.14)); }
.education-watch-link {
  min-height: 52px;
  margin-top: 24px;
  padding: 7px 8px 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(130,91,58,.28);
  border-radius: 999px;
  background: rgba(255,251,244,.72);
  color: #39332c;
  font: 600 9px/1 var(--mono);
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(70,55,34,.055), inset 0 1px rgba(255,255,255,.9);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.education-watch-link svg { width: 32px; height: 32px; flex: 0 0 32px; padding: 7px; border: 1px solid rgba(174,99,73,.23); border-radius: 50%; background: linear-gradient(145deg,#f3c778,#e77f62 55%,#b74f8c); fill: none; stroke: white; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: educationIconPulse 2.2s ease-in-out infinite; }
.education-watch-link i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #315c46; color: #fffaf0; font: normal 16px/1 var(--display); transition: transform .25s ease; }
.education-watch-link:hover { transform: translateY(-3px); border-color: rgba(130,91,58,.55); box-shadow: 0 12px 24px rgba(70,55,34,.11); }
.education-watch-link:hover i { transform: translate(2px,-2px); }
@keyframes educationIconPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(231,127,98,.2); } 50% { box-shadow: 0 0 0 6px rgba(231,127,98,0); } }
@media (max-width: 1100px) {
  .education-campus { height: clamp(500px, 58vw, 660px); }
}
@media (max-width: 680px) {
  .education-campus { width: min(100%, 500px); height: clamp(480px, 140vw, 650px); }
  .education-watch-link { min-height: 50px; font-size: 8px; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .education-watch-link, .education-watch-link svg, .education-watch-link i { animation: none; transition: none; }
}

/* UNTAR study profile: bold campus artwork, information at left. */
.education-intro > .eyebrow { display: flex; align-items: center; gap: 13px; color: #315c46; }
.education-intro > .eyebrow::after { content: ""; width: clamp(48px, 8vw, 112px); height: 1px; background: rgba(141,113,80,.48); }
.education-media { display: block; min-width: 0; }
.education-campus-stage { position: relative; isolation: isolate; width: 100%; height: clamp(520px, 42vw, 660px); }
.education-campus-backplate { position: absolute; z-index: -1; inset: 7% 8% 8% 12%; border: 1px solid rgba(255,255,255,.33); border-radius: 56px 32px 52px 35px; background: linear-gradient(145deg,#879785,#526c5b 72%); box-shadow: 0 28px 65px rgba(49,67,52,.2); transform: rotate(-3deg); }
.education-campus-orbit { position: absolute; z-index: 0; border: 1px solid rgba(106,126,99,.42); border-radius: 50%; pointer-events: none; }
.education-campus-orbit-one { width: 112%; height: 64%; top: 22%; left: -7%; transform: rotate(27deg); }
.education-campus-orbit-two { width: 96%; height: 80%; top: 10%; left: 3%; border-color: rgba(161,131,91,.3); transform: rotate(-22deg); }
.education-campus { position: absolute; z-index: 1; inset: 3% 0 8%; width: min(100%, 640px); height: auto; max-width: none; margin: auto; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 32px 17px 35px 20px; background: transparent; box-shadow: 0 22px 48px rgba(41,37,29,.14); transform: rotate(1.2deg); }
.education-campus::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,rgba(22,28,23,.2)); pointer-events: none; }
.education-campus img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; border-radius: inherit; filter: saturate(.9) contrast(1.02); transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.education-campus-stage:hover .education-campus img { transform: scale(1.035); filter: saturate(1.02) contrast(1.03); }
.education-campus-brand { position: absolute; z-index: 3; top: 15%; right: 0; min-height: 68px; padding: 11px 16px 11px 12px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(116,85,55,.13); border-radius: 18px; background: rgba(255,251,243,.97); box-shadow: 0 12px 26px rgba(49,39,27,.14); }
.education-brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(161,56,57,.38); border-radius: 12px; color: #a33d3c; font: 800 21px/1 var(--display); }
.education-campus-brand > span:last-child { display: grid; gap: 3px; }
.education-campus-brand b { color: #a33d3c; font: 800 20px/1 var(--display); letter-spacing: -.045em; }
.education-campus-brand small { color: #64594b; font: 6px/1.2 var(--mono); letter-spacing: .07em; }
.education-campus-cap { position: absolute; z-index: 3; right: 5%; bottom: 12%; width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 19px; background: rgba(249,245,235,.94); box-shadow: 0 12px 25px rgba(49,39,27,.12); transform: rotate(3deg); }
.education-campus-cap svg { width: 36px; height: 36px; fill: #315c46; stroke: #315c46; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.education-campus-dots { position: absolute; z-index: 2; top: 8%; right: 1%; color: #7f8b72; font: 700 19px/1.3 var(--mono); letter-spacing: .2em; }
.education-watch-link { position: relative; }
.education-watch-link span { display: block; width: auto; height: auto; border: 0; border-radius: 0; line-height: 1.4; white-space: nowrap; }
.education-watch-link:hover { transform: translateY(-3px); }
@media (max-width: 1100px) {
  .education-campus-stage { width: min(100%, 760px); height: clamp(500px, 62vw, 650px); margin-inline: auto; }
  .education-campus { inset: 3% 0 8%; width: min(100%, 640px); }
  .education-campus-brand { right: 1%; }
}
@media (max-width: 680px) {
  .education-intro > .eyebrow::after { width: 44px; }
  .education-campus-stage { height: clamp(400px, 118vw, 520px); }
  .education-campus-backplate { inset: 8% 5% 9% 10%; border-radius: 38px 24px 36px 26px; }
  .education-campus-orbit-one { width: 116%; height: 58%; top: 26%; left: -8%; }
  .education-campus-orbit-two { width: 102%; height: 76%; top: 13%; left: 0; }
  .education-campus { inset: 4% 0 9%; width: 100%; border-radius: 24px 14px 26px 17px; }
  .education-campus-brand { top: 14%; right: -1%; min-height: 54px; padding: 8px 10px; gap: 7px; border-radius: 14px; }
  .education-brand-mark { width: 31px; height: 31px; border-radius: 9px; font-size: 17px; }
  .education-campus-brand b { font-size: 16px; }
  .education-campus-brand small { font-size: 5px; }
  .education-campus-cap { right: 4%; bottom: 12%; width: 52px; height: 52px; border-radius: 15px; }
  .education-campus-cap svg { width: 29px; height: 29px; }
  .education-campus-dots { right: 0; top: 7%; font-size: 15px; }
  .education-watch-link { gap: 9px; padding: 7px 8px 7px 10px; font-size: 8px; letter-spacing: .06em; }
}

/* Contact: editorial intro, orbital connector, and five clear destinations. */
.contact-redesign {
  min-height: 700px;
  padding-block: clamp(80px, 9vw, 132px);
  text-align: left;
  background:
    radial-gradient(ellipse 500px 420px at 49% 48%, rgba(49,92,70,.055), transparent 72%),
    linear-gradient(115deg, #f5efe3, #eee4d4 56%, #f5efe3);
}
.contact-redesign::before { background: radial-gradient(ellipse 420px 300px at 18% 80%, rgba(176,133,91,.07), transparent); }
.contact-redesign .contact-orb { left: auto; right: -190px; top: 45%; opacity: .5; }
.contact-redesign .orb-one { width: 430px; height: 430px; border-color: rgba(145,115,78,.2); }
.contact-redesign .orb-two { width: 650px; height: 390px; border-color: rgba(145,115,78,.12); }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .72fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(8px, 1.6vw, 28px);
  max-width: 1540px;
}
.contact-copy { position: relative; z-index: 1; }
.contact-inner .contact-copy .eyebrow { justify-content: flex-start; gap: 14px; margin-bottom: 35px; color: #315c46; font-size: 10px; letter-spacing: .22em; }
.contact-copy .eyebrow-line { width: 40px; height: 2px; background: #315c46; }
.contact-inner .contact-copy h2 { margin: 0 0 22px; font-size: clamp(58px, 6.7vw, 104px); line-height: .88; letter-spacing: -.075em; }
.contact-inner .contact-copy h2 em { color: #315c46; font-style: normal; }
.contact-inner .contact-copy > p:not(.eyebrow) { max-width: 36ch; margin: 0; color: #655c50; font: 400 clamp(16px, 1.25vw, 19px)/1.6 var(--body); text-align: left; }
.contact-location { display: flex; align-items: center; gap: 12px; margin-top: 34px; color: #615a4f; font: 500 10px/1 var(--mono); letter-spacing: .16em; }
.contact-location svg { width: 17px; height: 17px; fill: none; stroke: #315c46; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-location i { width: min(90px, 16vw); height: 1px; background: rgba(141,113,80,.32); }
.contact-network { position: relative; z-index: 1; min-width: 0; min-height: 540px; display: grid; place-items: center; }
.contact-network > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.contact-network > svg circle:nth-of-type(1), .contact-network > svg circle:nth-of-type(2) { fill: none; stroke: rgba(147,126,93,.24); stroke-width: 1; }
.contact-network > svg circle:nth-of-type(2) { stroke-dasharray: 2 7; }
.contact-network > svg path { fill: none; stroke: rgba(93,121,97,.46); stroke-width: 1.15; }
.contact-network > svg circle:nth-of-type(n+3) { fill: #315c46; stroke: #f3eadb; stroke-width: 3; }
.contact-core { position: relative; z-index: 1; width: clamp(116px, 10vw, 168px); aspect-ratio: 1; display: grid; place-items: center; border: 9px solid rgba(255,251,242,.78); border-radius: 50%; background: radial-gradient(circle at 35% 28%, #557765, #234736 72%); box-shadow: 0 15px 40px rgba(43,67,51,.2), 0 0 0 1px rgba(49,92,70,.16); color: #f8f1e5; font: 800 clamp(33px, 4vw, 55px)/1 var(--display); letter-spacing: -.08em; animation: contactCoreFloat 5s ease-in-out infinite; }
.contact-network-note { position: absolute; top: 11%; left: 2%; color: #64725f; font: 600 8px/1 var(--mono); letter-spacing: .15em; transform: rotate(-8deg); }
.contact-list { position: relative; z-index: 2; display: grid; gap: 13px; min-width: 0; }
.contact-card { min-height: 82px; padding: 13px 17px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 42px; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.82); border-radius: 999px; background: rgba(255,251,243,.76); box-shadow: 0 10px 26px rgba(66,51,32,.07), inset 0 1px rgba(255,255,255,.9); color: #211f1b; text-decoration: none; backdrop-filter: blur(12px); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease; }
.contact-card:hover { transform: translateX(7px); border-color: rgba(49,92,70,.26); background: rgba(255,253,247,.96); box-shadow: 0 15px 32px rgba(66,51,32,.12), inset 0 1px rgba(255,255,255,.95); }
.contact-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #e4e7da; color: #264c3b; }
.contact-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-icon-text { font: 800 22px/1 Arial,sans-serif; letter-spacing: -.08em; }
.contact-card-copy { display: grid; gap: 5px; min-width: 0; }
.contact-card-copy strong { font: 750 18px/1.1 var(--display); letter-spacing: -.035em; }
.contact-card-copy small { overflow: hidden; color: #766d60; font: 400 14px/1.3 var(--body); text-overflow: ellipsis; white-space: nowrap; }
.contact-card > i { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(124,103,77,.14); border-radius: 50%; background: rgba(255,253,247,.72); box-shadow: 0 4px 11px rgba(60,48,32,.07); color: #211f1b; font: normal 23px/1 var(--display); transition: transform .28s ease, background .28s ease, color .28s ease; }
.contact-card:hover > i { transform: translate(2px,-2px); background: #315c46; color: #fffaf0; }
@keyframes contactCoreFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 1100px) {
  .contact-redesign { min-height: 0; }
  .contact-inner { grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: 28px; }
  .contact-network { display: none; }
  .contact-inner .contact-copy h2 { font-size: clamp(58px, 7.6vw, 82px); }
}
@media (max-width: 700px) {
  .contact-redesign { padding-block: 68px 58px; }
  .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .contact-inner .contact-copy .eyebrow { margin-bottom: 24px; }
  .contact-inner .contact-copy h2 { font-size: clamp(58px, 16vw, 86px); }
  .contact-inner .contact-copy > p:not(.eyebrow) { max-width: 38ch; font-size: 16px; }
  .contact-location { margin-top: 23px; }
  .contact-list { gap: 10px; }
  .contact-card { min-height: 74px; padding: 10px 12px; grid-template-columns: 46px minmax(0, 1fr) 38px; gap: 11px; }
  .contact-icon { width: 46px; height: 46px; }
  .contact-card-copy strong { font-size: 16px; }
  .contact-card-copy small { font-size: 12px; }
  .contact-card > i { width: 38px; height: 38px; font-size: 21px; }
}
@media (max-width: 390px) {
  .contact-inner .contact-copy h2 { font-size: 56px; }
  .contact-card-copy small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-core { animation: none; }
  .contact-card, .contact-card > i { transition: none; }
}

/* Footer navigation: a clear final stop with working section shortcuts. */
.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(20px, 5.2vw, 96px);
  border-top: 1px solid rgba(132, 108, 77, .34);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 251, 242, .7), transparent 68%),
    linear-gradient(110deg, #e8dbc9, #f0e6d3 48%, #e4d2bd);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(49,92,70,.55) 22%, rgba(177,128,76,.5) 78%, transparent);
}
.footer-wordmark { width: max-content; }
.footer-wordmark .mark { width: 38px; height: 38px; border: 1px solid rgba(49,92,70,.62); border-radius: 50%; background: rgba(255,251,242,.46); color: var(--accent); font: 700 14px/1 var(--display); }
.back-top { justify-self: end; display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 5px 6px 5px 17px; border: 1px solid rgba(49,92,70,.34); border-radius: 999px; background: rgba(255,251,242,.7); box-shadow: 0 5px 16px rgba(66,51,32,.06); color: #315c46; font: 600 10px/1 var(--mono); letter-spacing: .09em; text-decoration: none; transition: transform .24s var(--ease), background .24s ease, box-shadow .24s ease; }
.back-top i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #315c46; color: #fffaf0; font: normal 20px/1 var(--body); transition: transform .24s var(--ease-back); }
.back-top:hover { transform: translateY(-2px); background: #fffdf7; box-shadow: 0 9px 22px rgba(66,51,32,.12); }
.back-top:hover i { transform: translateY(-2px); }
.footer-note, .footer-bottom-note { color: #625748; font: 500 9px/1.4 var(--mono); letter-spacing: .12em; }
@media (max-width: 760px) {
  .site-footer { gap: 12px; padding: 18px; flex-wrap: wrap; }
  .footer-wordmark { flex: 1 1 100%; }
  .footer-note { margin-right: auto; }
}
@media (max-width: 390px) {
  .back-top { gap: 7px; min-height: 42px; padding-left: 11px; font-size: 9px; }
  .back-top i { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-top, .back-top i { transition: none; }
}

/* Keep the six-section navigation inside the header as it narrows. */
@media (min-width: 901px) and (max-width: 1200px) {
  .site-header { gap: 16px; padding-inline: 22px; }
  .nav-links { gap: 15px; }
  .site-header .nav-links a { gap: 5px; font-size: 12px; }
  .site-header .nav-links a svg { width: 14px; height: 14px; }
  .availability { gap: 6px; padding: 8px 10px; font-size: 9px; }
}
@media (min-width: 769px) and (max-width: 900px) {
  .site-header { gap: 12px; padding-inline: 18px; }
  .site-header.shrunk { height: 62px; }
  .availability { display: none; }
  .mobile-menu { display: flex; width: 42px; height: 42px; flex: 0 0 auto; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: var(--r); background: rgba(249,243,233,.7); cursor: pointer; }
  .mobile-menu span { display: block; width: 16px; height: 1.5px; background: var(--ink-2); transition: transform .25s, opacity .25s; }
  .nav-links { display: none; position: absolute; top: 65px; left: 0; right: 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 20px; border-bottom: 1px solid var(--border); background: rgba(240,230,211,.98); backdrop-filter: blur(20px); }
  .site-header.shrunk .nav-links { top: 61px; }
  .nav-links.open { display: flex; }
  .site-header .nav-links a { min-height: 48px; padding: 12px 4px; border-bottom: 1px solid rgba(49,92,70,.12); font-size: 14px; }
  .site-header .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
}
