/* ==========================================================================
   Nikol Dashanova - personal site
   Design system: warm-black / deep-emerald / brass-gold, dark-only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted fonts (latin subset, woff2). No third-party CDN request:
   faster first paint on mobile, works offline, no external dependency.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Gloock';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/gloock-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/instrument-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/instrument-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/newsreader-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic; font-weight: 500; font-display: swap;
  src: url('fonts/newsreader-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/jetbrains-mono-500.woff2') format('woff2');
}

:root {
  /* ---- color ---- */
  --bg:            #0B0C0A;
  --bg-raised:     #14160F;
  --bg-raised-2:   #191C15;
  --line:          rgba(201, 168, 118, 0.16);
  --line-strong:   rgba(201, 168, 118, 0.32);

  --emerald-deep:    #1F5A44;
  --emerald-deep-70: rgba(31, 90, 68, 0.7);
  --emerald:         #2F7A5C;
  --emerald-bright:  #4ADE9E;

  --gold:      #C9A876;
  --gold-dim:  rgba(201, 168, 118, 0.72);

  --ivory: #F4EFE6;
  --body:  #C9C4BA;
  --body-dim: #948F82;

  /* ---- type ---- */
  --font-display: 'Gloock', Georgia, 'Times New Roman', serif;
  --font-italic:  'Newsreader', Georgia, serif;
  --font-body:    'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-hero:   clamp(2.75rem, 3.4vw + 2rem, 5.75rem);
  --fs-h2:     clamp(2rem, 1.6vw + 1.6rem, 3.25rem);
  --fs-h3:     clamp(1.25rem, 0.5vw + 1.1rem, 1.5rem);
  --fs-lg:     clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem);
  --fs-body:   1.0625rem;
  --fs-body-lg: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  --fs-label:  0.8125rem;
  --fs-stat:   clamp(2.75rem, 3vw + 1.5rem, 4.5rem);

  /* ---- spacing rhythm ---- */
  --space-section: clamp(4.5rem, 6vw + 2rem, 8.5rem);
  --space-label-gap: 1.25rem;
  --space-block: clamp(2rem, 3vw, 3rem);
  --container-w: 1180px;
  --container-pad: clamp(1.25rem, 5.5vw, 3rem);

  /* ---- shape ---- */
  --radius-card: 22px;
  --radius-pill: 999px;

  /* ---- motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.24s;
  --dur-med: 0.6s;
  --dur-slow: 1.1s;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { display: block; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--ivory);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* grain texture overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* custom cursor (desktop, fine-pointer only) */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--emerald-bright);
  transition: opacity var(--dur-fast) var(--ease);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--gold-dim);
  transition: width var(--dur-fast) var(--ease), height var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
html.has-cursor.cursor-hover .cursor-ring {
  width: 52px; height: 52px;
  border-color: var(--emerald-bright);
}
html.has-cursor { cursor: none; }
html.has-cursor a, html.has-cursor button { cursor: none; }
.cursor-dot, .cursor-ring { opacity: 0; }
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { opacity: 1; }

/* ==========================================================================
   Reveal / scroll-triggered motion
   ========================================================================== */

/* Hidden pre-reveal state is scoped to .js so content stays visible when
   JavaScript is unavailable (the observer that reveals it never runs). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* gold underline draw */
.draw-underline {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 1px;
  background: var(--gold);
  margin-top: 1.1rem;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}
.js .draw-underline { transform: scaleX(0); }
.js [data-reveal].is-visible .draw-underline { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .draw-underline { transform: scaleX(1); transition: none; }
}

/* ==========================================================================
   Type helpers
   ========================================================================== */

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gold { color: var(--gold); }
.eyebrow {
  color: var(--gold);
  margin-bottom: var(--space-label-gap);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.hl { color: var(--emerald-bright); }
.accent-italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.15;
  color: var(--ivory);
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.section-subhead {
  font-size: var(--fs-body-lg);
  color: var(--body);
  max-width: 46ch;
  margin-top: 1.4rem;
  line-height: 1.6;
}

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

.section-head { margin-bottom: var(--space-block); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding-block: 1.25rem;
  transition: padding var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease),
              backdrop-filter var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 0.85rem;
  background-color: rgba(11, 12, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-mark svg { width: 26px; height: 26px; }
.nav-mark-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ivory);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .nav-mark-text { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 2rem);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-inline: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--body-dim);
  white-space: nowrap;
  padding-block: 0.3rem;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--emerald-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ivory); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--body);
  flex-shrink: 0;
}
.nav-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-bright);
}
@media (max-width: 720px) {
  .nav-pill { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(7rem, 12vw, 10rem);
  padding-bottom: clamp(5rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -15%;
  width: min(70vw, 900px);
  height: min(70vw, 900px);
  background: radial-gradient(circle, var(--emerald-deep-70) 0%, rgba(31,90,68,0.18) 42%, rgba(31,90,68,0) 70%);
  filter: blur(10px);
  z-index: -2;
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 15rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 239, 230, 0.07);
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.02em;
}

.hero-accent-shape {
  position: absolute;
  top: 14%;
  right: 6%;
  width: clamp(140px, 18vw, 260px);
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 720px) {
  .hero-accent-shape { display: none; }
}

.hero-inner { position: relative; }

.eyebrow.hero-eyebrow {
  flex-wrap: wrap;
  row-gap: 0.35rem;
}
.hero-eyebrow .sep { color: var(--gold-dim); }
/* On phones the eyebrow wraps to several lines and pushes the name down.
   Hide it there so the name leads; the same facts live in the headline,
   About and Education. Stays visible on tablet/desktop. */
@media (max-width: 640px) {
  .hero-eyebrow { display: none; }
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.hero-photo {
  width: clamp(56px, 6vw, 84px);
  height: clamp(56px, 6vw, 84px);
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(11,12,10,0.6), 0 8px 30px rgba(0,0,0,0.45);
  /* nudge down to the name's cap-height centre: align-items:center aligns the
     circle to Gloock's tall line-box, which leaves it optically floating high. */
  transform: translateY(7%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Deliberately not a flex container: h1 needs to wrap like normal text at
   narrow widths, so the glyph rides inline with vertical-align instead. */
.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1.02;
  color: var(--ivory);
  letter-spacing: -0.01em;
  flex: 1 1 0%;
  min-width: 0;
  overflow-wrap: break-word;
}

.glyph-mark {
  display: inline-flex;
  vertical-align: middle;
  width: clamp(1.6rem, 2.8vw, 2.4rem);
  height: clamp(1.6rem, 2.8vw, 2.4rem);
  transition: transform var(--dur-med) var(--ease);
}
.hero-name .glyph-mark {
  transform: translateY(-0.1em);
  margin-left: clamp(0.4rem, 1.2vw, 0.85rem);
}
.glyph-mark svg { width: 100%; height: 100%; }
a:hover .glyph-mark, .nav-mark:hover .glyph-mark { transform: rotate(18deg) scale(1.08); }
.hero-name a:hover .glyph-mark { transform: translateY(-0.1em) rotate(18deg) scale(1.08); }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.4vw + 1.2rem, 2.35rem);
  line-height: 1.28;
  color: var(--ivory);
  max-width: 20ch;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.005em;
}

.hero-subhead {
  font-size: var(--fs-body-lg);
  color: var(--body);
  max-width: 42ch;
  margin-top: 1.5rem;
  line-height: 1.65;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  color: var(--body-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease);
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue svg {
  width: 14px; height: 20px;
  animation: cue-bob 2.2s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none; }
}

.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  line-height: 0;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(3rem, 6vw, 5rem);
  }
  .about-aside { position: sticky; top: 7rem; align-self: start; }
}

.country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.country-chips li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.8rem;
  color: var(--body-dim);
}
.country-chips li.current {
  color: var(--bg);
  background: var(--emerald-bright);
  border-color: var(--emerald-bright);
}

.about-body p {
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: var(--body);
  max-width: 58ch;
}
.about-body p + p { margin-top: 1.4rem; }

.about-pullquote {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 1.6vw + 1rem, 2rem);
  line-height: 1.4;
  color: var(--ivory);
  max-width: 20ch;
  margin: 2.25rem 0 !important;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
}
.about-pullquote .hl { color: var(--emerald-bright); }

/* ==========================================================================
   Venture
   ========================================================================== */

.section-venture { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-raised) 100%); }

.venture-block {
  padding-block: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  position: relative;
}
.venture-block:last-child { border-bottom: 1px solid var(--line); }

.venture-block h3 {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  color: var(--ivory);
}
.venture-block h3 .num {
  color: var(--gold);
  font-size: 0.85rem;
}
.venture-block > p, .venture-block > .strain-intro {
  margin-top: 1.1rem;
  max-width: 62ch;
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: var(--body);
}
.venture-block em { font-style: italic; color: var(--ivory); }

.venture-strain { overflow: hidden; }
.strain-art {
  position: absolute;
  right: -4%;
  top: 10%;
  width: clamp(160px, 22vw, 300px);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.stat-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
@media (min-width: 720px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.stat { max-width: 320px; }
.stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  color: var(--emerald-bright);
  line-height: 1;
  display: inline-block;
  transition: text-shadow 0.5s var(--ease);
}
.stat-num.settled { text-shadow: 0 0 28px rgba(74, 222, 158, 0.55); }
.stat-caption {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--body-dim);
  max-width: 30ch;
}

.done-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}
@media (min-width: 640px) {
  .done-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .done-grid { grid-template-columns: repeat(4, 1fr); }
}
.done-card {
  background: var(--bg-raised-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.4rem;
}
.done-label {
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}
.done-card p:last-child {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--body);
}

/* current-status line: present-tense capstone under "what I've done" */
.venture-now {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 1.05rem 1.35rem;
  background: var(--bg-raised-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ivory);
  font-size: var(--fs-body);
  line-height: 1.55;
}
.venture-now .now-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 10px var(--emerald-bright);
  flex-shrink: 0;
}
.venture-now .now-label { color: var(--gold); }

/* ==========================================================================
   Projects
   ========================================================================== */

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 780px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 2.25rem; }
  .project-card-offset { margin-top: 3.5rem; }
}

.project-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-med) var(--ease);
}
.project-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.project-art { width: 100%; max-width: 220px; opacity: 0.85; margin-bottom: 1.75rem; }
.project-art svg { width: 100%; height: auto; }

.project-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  color: var(--ivory);
  max-width: 22ch;
}
.project-meta { display: block; margin-top: 0.9rem; }
.project-card p:last-child {
  margin-top: 0.9rem;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--body);
  max-width: 44ch;
}

/* ==========================================================================
   Experience
   ========================================================================== */

.experience-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding-block: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}
.experience-list li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) {
  .experience-list li { grid-template-columns: 200px 1fr; gap: 2rem; }
}
.exp-when { color: var(--gold); padding-top: 0.2rem; }
.exp-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  color: var(--ivory);
}
.exp-meta { color: var(--body-dim); font-size: 0.9rem; margin-top: 0.4rem; }
.exp-body > p:last-child {
  margin-top: 0.85rem;
  max-width: 60ch;
  line-height: 1.65;
  color: var(--body);
}

/* ==========================================================================
   Education strip
   ========================================================================== */

.section-compact { padding-block: clamp(3.5rem, 5vw, 5.5rem); }

.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 780px) {
  .edu-grid { grid-template-columns: repeat(3, 1fr); }
}
.edu-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ivory);
  line-height: 1.35;
}
.edu-minor { color: var(--body-dim); font-size: 0.85em; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(2rem, 3vw, 2.5rem);
  padding-top: clamp(2rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--body);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.section-contact { padding-block: clamp(4rem, 6vw, 6rem); }

.contact-panel {
  background: linear-gradient(155deg, var(--emerald-deep) 0%, #163d30 55%, var(--bg-raised) 100%);
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(2.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,168,118,0.22);
}
.contact-panel::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(74,222,158,0.22) 0%, transparent 70%);
  pointer-events: none;
}
/* lighter champagne so the mono label clears WCAG AA on the emerald panel */
.contact-panel .eyebrow { color: #E4CDA6; }
.contact-panel .section-title { color: var(--ivory); max-width: 16ch; }
.contact-panel .section-subhead { color: rgba(244,239,230,0.82); }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2rem, 3vw, 2.75rem);
  position: relative;
  z-index: 1;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ivory);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.pill-link:hover {
  background: var(--gold);
  color: var(--bg);
}
/* the email address is a long unbreakable token; let it wrap inside the pill
   and give both pills the full width on narrow phones so nothing clips. */
.contact-email { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .contact-links { flex-direction: column; align-items: stretch; }
  .pill-link { border-radius: 18px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { padding-block: clamp(2.5rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: var(--body-dim);
  font-size: 0.85rem;
}
.footer-inner .glyph-mark { width: 1.15rem; height: 1.15rem; }
.footer-year { margin-left: auto; font-family: var(--font-mono); font-size: 0.75rem; }
