/* ================================================================
   PREMIUM PORTFOLIO - theme.css
   Melanie Leemans | 3D Modeler, Unity Generalist & Instructional Designer
   ================================================================ */

/* ---- VARIABLES ---- */
:root {
  --bg:          #0c0908;
  --surface:     #14100c;
  --card:        #1c1611;
  --card-hover:  #241c15;
  --border:      #2e2419;
  --border-mid:  #423527;

  --text:        #f5efe6;
  --text-soft:   #a89684;
  /* #8a7a68 measured 4.32:1 on --card, just under the 4.5:1 AA floor for small
     text. #968573 lifts it to 5.03:1. */
  --muted:       #968573;

  --accent:      #f4874b;
  --cyan:        #f5b942;
  --purple:      #c77dff;
  --green:       #8bc76a;
  --red:         #ef6461;

  --glow-accent: 0 0 32px rgba(244, 135, 75, 0.32);

  --font:  'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono:  var(--font);

  --nav-h:  64px;
  --max-w:  1040px;
  --r:      10px;
  --r-lg:   16px;

  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { background: none; border: none; font-family: inherit; color: inherit; }
input, textarea { font-family: var(--font); }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }


/* ---- LAYOUT ---- */
.container {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 2rem;
}

/* ---- SECTION STRUCTURE ---- */
section { padding: 96px 0; position: relative; }
section:nth-of-type(even) { background: var(--surface); }

.section-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.s-num {
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--accent); letter-spacing: 0.08em; opacity: 0.8;
}
.s-label {
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-soft);
}
.s-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border-mid), transparent);
}

.section-heading {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 48px;
}

/* ---- NAVIGATION ---- */
header#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
header#nav.scrolled {
  background: rgba(6, 6, 11, 0.88);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: var(--nav-h);
}

.nav-brand {
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.02em; white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.65; }
.nav-brand .dot { color: var(--accent); }

.nav-desktop { display: flex; align-items: center; gap: 2px; }
.nav-desktop .nav-link {
  padding: 7px 13px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-soft); border-radius: 8px;
  transition: color 0.2s, background 0.2s; letter-spacing: 0.01em;
}
.nav-desktop .nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-desktop .nav-link.active { color: var(--cyan); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 10px; border-radius: 8px; transition: background 0.2s;
}
.nav-burger:hover { background: rgba(255,255,255,0.06); }
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.35s var(--spring), opacity 0.25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  transform: translateX(100%);
  transition: transform 0.5s var(--spring);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile .nav-link {
  font-size: clamp(1.8rem, 8vw, 3rem); font-weight: 700;
  letter-spacing: -0.04em; color: var(--text);
  padding: 6px 24px; border-radius: var(--r);
  transition: color 0.2s, transform 0.4s var(--spring), opacity 0.4s;
  opacity: 0; transform: translateX(50px);
}
.nav-mobile.open .nav-link { opacity: 1; transform: translateX(0); }
.nav-mobile.open .nav-link:nth-child(1) { transition-delay: 0.08s; }
.nav-mobile.open .nav-link:nth-child(2) { transition-delay: 0.13s; }
.nav-mobile.open .nav-link:nth-child(3) { transition-delay: 0.18s; }
.nav-mobile.open .nav-link:nth-child(4) { transition-delay: 0.23s; }
.nav-mobile.open .nav-link:nth-child(5) { transition-delay: 0.28s; }
.nav-mobile.open .nav-link:nth-child(6) { transition-delay: 0.33s; }
.nav-mobile .nav-link:hover { color: var(--accent); }

/* ---- HERO ---- */
#section-about {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h); padding-bottom: 0;
  overflow: hidden;
}

#section-about::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 85% at 48% 50%,
    transparent 20%, rgba(6,6,11,0.6) 100%);
  pointer-events: none; z-index: 1;
}

#section-about > .container {
  position: relative; z-index: 2;
  padding-top: 40px; padding-bottom: 80px; width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center; gap: 64px;
}

.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }

.hero-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(244, 135, 75, 0.1);
  border: 1px solid rgba(244, 135, 75, 0.28);
  border-radius: 100px;
}
.hero-chip i { font-size: 0.72rem; }

.hero-avail {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 500; color: var(--green);
}
.hero-avail::before {
  content: ''; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

.hero-name {
  font-size: clamp(3.8rem, 9.5vw, 7.5rem);
  font-weight: 700; letter-spacing: -0.045em;
  line-height: 0.95; margin-bottom: 18px;
}
.hero-name-line { display: block; }
.hn-gradient {
  background: linear-gradient(110deg, var(--accent) 0%, var(--cyan) 55%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hn-gradient { color: transparent; }
}

.hero-subtitle {
  font-size: 1.15rem; font-weight: 500;
  color: var(--text-soft); letter-spacing: -0.01em; margin-bottom: 18px;
}

.hero-bio {
  font-size: 0.93rem; color: var(--text-soft);
  line-height: 1.78; max-width: 500px; margin-bottom: 34px;
}
.hero-bio p { margin-bottom: 0.6em; }
.hero-bio p:last-child { margin-bottom: 0; }

.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--accent); color: #fff;
  font-family: var(--font); font-weight: 600; font-size: 0.88rem;
  border-radius: var(--r); border: 1px solid transparent;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s var(--spring);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #d9703a;
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: transparent; color: var(--text);
  font-family: var(--font); font-weight: 500; font-size: 0.88rem;
  border-radius: var(--r); border: 1px solid var(--border-mid);
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.2s var(--spring);
}
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(244, 135, 75, 0.07);
  transform: translateY(-2px);
}
.btn-ghost i { transition: transform 0.2s; }
.btn-ghost:hover i { transform: translateX(3px); }

/* Hero photo frame */
.hero-visual { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }

.hero-photo-frame {
  position: relative; width: 270px; height: 270px;
}

.hero-photo-caption {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.76rem; font-weight: 500; color: var(--text-soft);
  letter-spacing: 0.01em; text-align: center;
}
.hero-photo-caption span { display: inline-flex; align-items: center; gap: 6px; }
.hero-photo-caption i { color: var(--accent); font-size: 0.82rem; }

.hero-photo {
  width: 270px; height: 270px;
  object-fit: cover; border-radius: var(--r-lg);
  position: relative; z-index: 1;
  filter: grayscale(25%) contrast(1.05);
  transition: filter 0.5s;
}
.hero-photo-frame:hover .hero-photo { filter: grayscale(0%) contrast(1); }

.photo-bg-glow {
  position: absolute; inset: -32px;
  background: radial-gradient(circle at 50% 50%,
    rgba(244,135,75,0.22) 0%, rgba(245,185,66,0.08) 45%, transparent 70%);
  z-index: 0; pointer-events: none; border-radius: 50%;
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.45; transition: opacity 0.3s; text-decoration: none;
}
.hero-scroll:hover { opacity: 0.9; }
.scroll-bar {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--text-soft));
}
.scroll-label {
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.22em; color: var(--text-soft); text-transform: uppercase;
}

/* ---- EXPERIENCE SUBSECTIONS ---- */
.experience-subsection-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 40px 0 14px;
}
.experience-subsection-heading:first-of-type { margin-top: 0; }

/* ---- ACCORDION ---- */
.accordion-list { display: flex; flex-direction: column; gap: 8px; }

.accordion-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.accordion-item:hover { border-color: var(--border-mid); }
.accordion-item.open {
  border-color: rgba(244, 135, 75, 0.35);
  box-shadow: 0 0 0 1px rgba(244,135,75,0.07),
              inset 0 0 50px rgba(244,135,75,0.022);
}

.accordion-trigger {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 20px 24px;
  text-align: left; color: var(--text); transition: background 0.2s;
}
.accordion-trigger:hover { background: rgba(255,255,255,0.015); }

.accordion-left { flex: 1; min-width: 0; }
.accordion-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.accordion-title {
  font-size: 1rem; font-weight: 600;
  letter-spacing: -0.015em; display: block;
}
.accordion-sub-row {
  display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap;
}
.accordion-sub { font-size: 0.82rem; color: var(--text-soft); }
.accordion-sub a { color: var(--cyan); transition: opacity 0.2s; }
.accordion-sub a:hover { opacity: 0.7; }

.role-badge {
  display: inline-flex; align-items: center; padding: 2px 9px;
  font-size: 0.68rem; font-weight: 600; border-radius: 100px;
  background: rgba(245,185,66,0.08); color: var(--cyan);
  border: 1px solid rgba(245,185,66,0.2); letter-spacing: 0.04em;
  white-space: nowrap;
}

.exp-dates {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--muted); white-space: nowrap; letter-spacing: 0.02em;
}

.accordion-chevron {
  font-size: 0.85rem; color: var(--muted);
  transition: transform 0.4s var(--spring), color 0.3s; flex-shrink: 0;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); color: var(--accent); }

.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--spring); }
.accordion-body-inner { padding: 0 24px 24px; border-top: 1px solid var(--border); }
.accordion-body-inner p {
  font-size: 0.91rem; color: var(--text-soft); line-height: 1.78; margin-bottom: 0.7em;
}
.accordion-body-inner p:last-child { margin-bottom: 0; }
.accordion-body-inner ul { padding-left: 1.25em; list-style: disc; margin-bottom: 0.7em; }
.accordion-body-inner li { font-size: 0.91rem; color: var(--text-soft); line-height: 1.72; margin-bottom: 0.3em; }
.accordion-body-inner strong { color: var(--text); }
.accordion-body-inner h3, .accordion-body-inner h4 {
  font-size: 0.88rem; font-weight: 600; color: var(--text); margin: 1em 0 0.5em;
}

.skill-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.skill-badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  font-size: 0.7rem; font-weight: 500; font-family: var(--mono);
  color: var(--purple); background: rgba(199,125,255,0.07);
  border: 1px solid rgba(199,125,255,0.18); border-radius: 6px;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.skill-badge:hover {
  background: rgba(199,125,255,0.14); border-color: rgba(199,125,255,0.3); transform: translateY(-1px);
}

/* Reviews */
.review-body blockquote {
  border-left: 2px solid var(--accent); padding-left: 16px; margin-bottom: 16px;
}
.review-body blockquote p {
  font-size: 0.93rem; color: var(--text-soft); line-height: 1.78;
  font-style: italic; margin-bottom: 0.5em;
}
.review-body blockquote p:last-child { margin-bottom: 0; }
.review-footer { font-size: 0.76rem; color: var(--muted); font-family: var(--mono); letter-spacing: 0.02em; }

/* ---- EDUCATION ---- */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.edu-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 26px;
  transition: border-color 0.3s, transform 0.38s var(--spring), box-shadow 0.38s;
}
.edu-card:hover {
  border-color: var(--border-mid); transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}

.edu-icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 18px;
}
.edu-card:nth-child(3n+1) .edu-icon { background: rgba(244,135,75,0.1);   border: 1px solid rgba(244,135,75,0.22);   color: var(--accent); }
.edu-card:nth-child(3n+2) .edu-icon { background: rgba(245,185,66,0.08);  border: 1px solid rgba(245,185,66,0.2);   color: var(--cyan);   }
.edu-card:nth-child(3n+3) .edu-icon { background: rgba(199,125,255,0.08); border: 1px solid rgba(199,125,255,0.2); color: var(--purple); }

.edu-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 6px; letter-spacing: -0.01em; line-height: 1.35; }
.edu-org   { font-size: 0.8rem; color: var(--cyan); font-weight: 500; margin-bottom: 8px; }
.edu-desc  { font-size: 0.82rem; color: var(--text-soft); line-height: 1.65; margin-bottom: 14px; }
.edu-link  {
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 5px;
  transition: gap 0.2s, color 0.2s; letter-spacing: 0.02em;
}
.edu-link:hover { gap: 9px; color: var(--cyan); }

/* ---- WORKS ---- */
.works-slider-wrap { position: relative; }

.works-doc-link {
  margin: 28px 0 0;
  text-align: center;
}

.works-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -2px;
  padding: 2px;
}
.works-slider::-webkit-scrollbar { display: none; }

.work-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
}

.work-slide-media img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r);
}

/* ---- WORKS GRID (3D Work) ---- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.work-card:hover,
.work-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.work-card img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  display: block;
}
.work-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}
.work-card-body .work-desc { flex: 1; }
.work-card-link {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .works-grid { grid-template-columns: 1fr; }
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.work-gallery img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
}

.work-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.work-client {
  font-size: 0.85rem; color: var(--text-soft); margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px;
}
.work-client span {
  color: var(--muted); text-transform: uppercase; font-size: 0.68rem;
  font-weight: 600; letter-spacing: 0.08em;
}
.work-desc { font-size: 0.92rem; color: var(--text-soft); line-height: 1.75; margin-bottom: 0.6em; }
.work-desc:last-of-type { margin-bottom: 18px; }

.work-services-heading {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-soft); margin-bottom: 10px;
}
.work-services-list {
  display: flex; flex-wrap: wrap; gap: 7px;
  list-style: none; padding: 0; margin-bottom: 24px;
}
.work-services-list li {
  font-size: 0.76rem; font-weight: 500; padding: 4px 11px;
  background: rgba(199,125,255,0.07); border: 1px solid rgba(199,125,255,0.18);
  border-radius: 100px; color: var(--purple); letter-spacing: 0.01em;
}

.works-slider-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; margin-top: 28px;
}
.works-nav-btn {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s var(--spring);
}
.works-nav-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(244,135,75,0.08); transform: translateY(-1px); }
.works-nav-btn:disabled { opacity: 0.3; pointer-events: none; }

.works-dots { display: flex; align-items: center; gap: 2px; }
.works-dot {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
}
.works-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-mid); transition: background 0.25s, transform 0.25s;
}
.works-dot.active::before { background: var(--accent); transform: scale(1.4); }
.works-dot:hover::before { background: var(--muted); }

@media (max-width: 900px) {
  .work-slide { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
}
@media (max-width: 600px) {
  .work-slide { padding: 20px; border-radius: var(--r); }
  .works-nav-btn { width: 38px; height: 38px; }
}

/* ---- CONTACT ---- */
#section-contact .contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start;
}

.contact-label {
  font-size: 0.73rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-soft); margin-bottom: 10px;
}
.contact-kicker { font-size: 0.9rem; color: var(--text-soft); line-height: 1.72; margin-bottom: 28px; max-width: 280px; }

.social-list { display: flex; flex-direction: column; gap: 10px; }
.social-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text-soft);
  font-size: 0.88rem; font-weight: 500;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.2s var(--spring);
}
.social-list-item span { display: flex; align-items: center; gap: 10px; }
.social-list-item i:first-child { font-size: 1.05rem; color: var(--accent); }
.social-list-item .bi-arrow-up-right {
  font-size: 0.8rem; opacity: 0; transform: translate(-3px, 3px);
  transition: opacity 0.2s, transform 0.2s; color: var(--cyan);
}
.social-list-item:hover {
  border-color: var(--accent); color: var(--text); background: var(--card-hover); transform: translateX(4px);
}
.social-list-item:hover .bi-arrow-up-right { opacity: 1; transform: translate(0, 0); }

.contact-form-wrap { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-soft); }
.form-label span { color: var(--accent); }
.form-control {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 15px; font-size: 0.9rem; color: var(--text);
  outline: none; resize: none;
  transition: border-color 0.25s, box-shadow 0.25s; -webkit-appearance: none;
}
.form-control::placeholder { color: var(--muted); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244,135,75,0.12); }
textarea.form-control { min-height: 130px; }

.btn-submit {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
  background: var(--accent); color: #fff;
  font-family: var(--font); font-weight: 600; font-size: 0.9rem;
  border-radius: var(--r); border: 1px solid transparent;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s var(--spring);
  letter-spacing: 0.01em;
}
.btn-submit:hover { background: #d9703a; box-shadow: var(--glow-accent); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.5; transform: none; }

#form-message { display: none; font-size: 0.84rem; padding: 10px 14px; border-radius: var(--r); }
#form-message.success { display: block; color: var(--green); background: rgba(139,199,106,0.08); border: 1px solid rgba(139,199,106,0.22); }
#form-message.error   { display: block; color: var(--red);   background: rgba(239,100,97,0.08); border: 1px solid rgba(239,100,97,0.22); }

/* ---- FOOTER ---- */
footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { font-size: 0.9rem; font-weight: 600; color: var(--text-soft); }
.footer-brand .dot { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--text-soft); }
.footer-version { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-burger  { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .hero-photo-frame, .hero-photo { width: 190px; height: 190px; }
  .edu-grid { grid-template-columns: 1fr; gap: 14px; }
  #section-contact .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  section { padding: 72px 0; }
  .section-heading { margin-bottom: 36px; }
  .hero-name { font-size: clamp(3rem, 15vw, 4.5rem); }
  .accordion-trigger { padding: 16px 18px; gap: 10px; }
  .accordion-body-inner { padding: 0 18px 20px; }
  .accordion-right { flex-direction: column; align-items: flex-end; gap: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 400px) {
  .hero-photo-frame, .hero-photo { width: 150px; height: 150px; }
}

/* ================================================================
   SKILLS PAGES
   ================================================================ */

/* ---- Linked skill badge ---- */
a.skill-badge-link {
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
a.skill-badge-link:hover {
  background: rgba(244, 135, 75, 0.2);
  color: var(--accent);
  border-color: rgba(244, 135, 75, 0.5);
  box-shadow: 0 0 0 1px rgba(244,135,75,0.2);
}
.skill-badge-active {
  background: rgba(244, 135, 75, 0.18) !important;
  color: var(--accent) !important;
  border-color: rgba(244, 135, 75, 0.5) !important;
  font-weight: 600;
}

/* ---- Skills index section ---- */
.skills-index-section {
  padding: 120px 0 80px;
  min-height: 100vh;
}
.skills-index-intro {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 48px;
  max-width: 560px;
}

/* ---- Skills grid ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}
.skill-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.skill-card:hover {
  background: var(--card-hover);
  border-color: rgba(244, 135, 75, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}
.skill-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.skill-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.skill-years-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(244, 135, 75, 0.12);
  color: var(--accent);
  border: 1px solid rgba(244, 135, 75, 0.3);
  border-radius: 20px;
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 500;
  white-space: nowrap;
}
.skill-years-lg {
  font-size: 0.8rem;
  padding: 5px 14px;
}
.skill-card-summary {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}
.skill-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.skill-project-count {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}
.skill-arrow {
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.skill-card:hover .skill-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ---- Skills back row ---- */
.skills-back-row {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

/* ---- Breadcrumb ---- */
.skill-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 40px;
  padding-top: calc(var(--nav-h) + 24px);
}
.skill-breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.skill-breadcrumb a:hover { color: var(--accent); }
.skill-breadcrumb i { font-size: 0.65rem; opacity: 0.5; }
.skill-breadcrumb span { color: var(--text); }

/* ---- Skill page header ---- */
.skill-page { padding-bottom: 80px; }
.skill-page .container { max-width: 860px; }
.skill-page-header {
  margin-bottom: 52px;
}
.skill-page-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.skill-page-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.1;
}
.skill-page-summary {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}

/* ---- Skill page sections ---- */
.skill-page-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.skill-section {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.skill-section-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.skill-section-heading i { font-size: 0.9rem; }

/* ---- Project list ---- */
.skill-project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-project-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
}
.skill-project-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 160px;
}
.skill-project-client {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-family: var(--mono);
}

/* ---- Experience cards within skill page ---- */
.skill-exp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skill-exp-card {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.skill-exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.skill-exp-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.skill-exp-client {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
}
.skill-exp-dates {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
  padding-top: 2px;
}
.skill-wrap-sm { margin-top: 4px; }

/* ---- Course list ---- */
.skill-course-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-course-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
}
.skill-course-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  min-width: 200px;
}
.skill-course-platform {
  font-size: 0.78rem;
  color: var(--cyan);
  font-family: var(--mono);
  border: 1px solid rgba(245, 185, 66, 0.25);
  border-radius: 4px;
  padding: 2px 8px;
  background: rgba(245, 185, 66, 0.06);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .skills-index-section { padding: 90px 0 60px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-breadcrumb { padding-top: calc(var(--nav-h) + 12px); }
  .skill-page-title-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .skill-exp-card-header { flex-direction: column; gap: 4px; }
  .skills-back-row { flex-direction: column; }
  .skill-project-item, .skill-course-item { flex-direction: column; gap: 4px; }
}

/* ================================================================
   LAYOUT PASS: hero disclosure, service tags, secondary nav,
   recommendations page
   ================================================================ */

/* ---- Hero "more about how I work" disclosure ---- */
.bio-more { margin-top: 14px; }
.bio-more > summary {
  display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; list-style: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent);
  border-radius: 6px;
}
.bio-more > summary::-webkit-details-marker { display: none; }
.bio-more > summary::after {
  content: "\F282"; /* bi-chevron-down */
  font-family: "bootstrap-icons"; font-size: 0.72rem; font-weight: 400;
  transition: transform 0.3s var(--spring);
}
.bio-more[open] > summary::after { transform: rotate(180deg); }
.bio-more > summary:hover { color: var(--cyan); }
.bio-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bio-more-body { padding-top: 12px; }

/* ---- Centred call to action below a section's content ---- */
.section-cta { margin: 28px 0 0; text-align: center; }

/* ---- Service tool tags (collapsed accordion row) ---- */
.service-tags { gap: 6px; margin-top: 10px; }
.service-tags .skill-badge:hover { transform: none; }

/* ---- Mobile nav secondary group ---- */
.nav-mobile-sep {
  width: 56px; height: 1px; margin: 14px 0 6px;
  background: var(--border-mid);
}
.nav-mobile .nav-link-sub {
  font-size: 1rem; font-weight: 500;
  letter-spacing: 0.01em; color: var(--text-soft);
  padding: 4px 24px;
}
.nav-mobile.open .nav-link-sub { transition-delay: 0.38s; }
.nav-mobile .nav-link-sub:hover { color: var(--accent); }

/* ---- Footer secondary links ---- */
.footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.footer-links a {
  font-size: 0.8rem; color: var(--text-soft);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ---- Recommendations page ---- */
.recs-section { padding: 120px 0 80px; }
.recs-intro {
  color: var(--text-soft); font-size: 1rem;
  margin-bottom: 48px; max-width: 560px;
}
.recs-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.rec-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 28px;
  transition: border-color 0.3s;
}
.rec-card:hover { border-color: var(--border-mid); }
.rec-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.rec-role {
  font-size: 1rem; font-weight: 600;
  letter-spacing: -0.015em; color: var(--text);
}
.rec-company { font-size: 0.82rem; color: var(--cyan); margin-top: 2px; }
.rec-card .review-footer { margin-top: 14px; }

@media (max-width: 600px) {
  .recs-section { padding: 90px 0 60px; }
  .rec-card { padding: 20px 18px; }
  .rec-card-head { flex-direction: column; gap: 6px; }
}

/* ---- Hero discipline chip separator ---- */
.hero-chip-sep { opacity: 0.45; }

/* ---- Work card evidence lines (discipline + tools) ---- */
.work-discipline {
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 8px;
}
.work-tools {
  font-family: var(--mono); font-size: 0.76rem;
  color: var(--text-soft); letter-spacing: 0.01em;
  margin-top: 12px;
}
.work-tools span { color: var(--muted); }

/* ---- Service "see the work that backs this up" link ---- */
.service-evidence { margin-top: 18px; }
.service-evidence a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--accent); transition: gap 0.2s, color 0.2s;
}
.service-evidence a:hover { gap: 11px; color: var(--cyan); }

/* ---- Recommendations page: discipline groups ---- */
.recs-list + .experience-subsection-heading { margin-top: 44px; }

/* ---- Contact banner (heading over the artwork) ---- */
.contact-banner { margin-bottom: 48px; }
.contact-banner .section-heading { margin-bottom: 14px; }
.contact-banner-kicker {
  font-size: 0.95rem; color: var(--text-soft);
  line-height: 1.7; max-width: 42ch;
}

.contact-banner.has-image {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.contact-banner-img {
  display: block; width: 100%;
  aspect-ratio: 16 / 9; object-fit: cover;
}

/* Stacked on narrow screens: artwork on top, text beneath it, no overlay.
   There is no room to put type over the character at phone widths. */
.contact-banner.has-image .contact-banner-text { padding: 26px 22px 28px; }

@media (min-width: 901px) {
  /* Wide screens: text sits over the empty left side of the artwork, with a
     scrim so it stays legible whatever the image behind it is doing. */
  .contact-banner.has-image:not(.text-in-image)::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg,
      rgba(12, 9, 8, 0.94) 0%,
      rgba(12, 9, 8, 0.86) 34%,
      rgba(12, 9, 8, 0.45) 58%,
      rgba(12, 9, 8, 0) 76%);
  }
  .contact-banner.has-image .contact-banner-text {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 46% 0 clamp(30px, 5%, 60px);
  }
  .contact-banner.has-image .section-heading {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
  }
}

/* Screen-reader-only text: kept in the accessibility tree, out of the layout. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Artwork with the heading already painted in: no live text to scrim, and the
   image is the whole banner. */
.contact-banner.text-in-image { line-height: 0; }

/* ---- Education status pill (e.g. "In progress") ---- */
.edu-status { margin-left: 8px; vertical-align: middle; }

/* ---- Recommendations carousel (reuses .works-slider machinery) ---- */
/* Three portrait cards per view, scrolling one at a time. .works-slider has a
   24px gap, so three cards share (100% - 48px). */
.review-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 24px;
  min-height: 400px;
}
.review-quote {
  flex: 1;                       /* pushes attribution to the card foot */
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.review-quote p {
  font-size: 0.89rem; font-style: italic;
  color: var(--text-soft); line-height: 1.75;
  /* Quotes vary from one sentence to four paragraphs; clamp so every card
     is the same shape and send people to the full text. */
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-attrib {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.review-attrib .role-badge { font-size: 0.62rem; padding: 2px 7px; }
.review-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.review-meta {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--muted); margin-top: 3px; line-height: 1.5;
}
.review-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; font-weight: 600; color: var(--accent);
  transition: gap 0.2s, color 0.2s;
}
.review-more:hover { gap: 10px; color: var(--cyan); }

/* Two up on tablet, one up on phones. */
@media (max-width: 900px) {
  .review-slide { flex: 0 0 calc((100% - 24px) / 2); min-height: 360px; }
}
@media (max-width: 600px) {
  .review-slide { flex: 0 0 100%; min-height: 0; padding: 22px; }
  .review-quote { padding-left: 14px; }
  .review-quote p { font-size: 0.92rem; -webkit-line-clamp: 12; }
}

/* ---- Footer build credit ---- */
.footer-credit { font-size: 0.8rem; color: var(--text-soft); }
.footer-credit a { color: var(--text-soft); transition: color 0.2s; }
.footer-credit a:hover { color: var(--accent); }
