/* ============================================================
   AMBRE BANNY — PORTFOLIO
   Product Designer × IA
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0a0c0a;
  --bg-2: #0e110e;
  --surface: #12161200;
  --surface-1: #141914;
  --surface-2: #1a1f1a;
  --line: #1f261f;
  --line-2: #2a322a;

  /* Foreground */
  --fg: #ecefea;
  --fg-2: #b3b9b1;
  --muted: #6b746a;
  --muted-2: #4a504a;

  /* Brand */
  --green: #1f8a5b;
  --green-2: #2db573;
  --green-glow: #5af487;
  --green-soft: rgba(45, 181, 115, 0.12);
  --green-line: rgba(45, 181, 115, 0.35);

  /* Type */
  --display: 'Bricolage Grotesque', 'Space Grotesk', system-ui, sans-serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--green); color: #000; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Background grain + grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 88px 88px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none; z-index: 0; opacity: 0.4;
  mix-blend-mode: overlay;
}

.shell { position: relative; z-index: 1; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 12, 10, 0.55);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.01em;
}
.nav__brand-mark {
  width: 28px; height: 28px;
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--green-2);
  letter-spacing: -0.05em;
}
.nav__brand-name { color: var(--fg); font-weight: 500; }
.nav__brand-sep { color: var(--muted-2); }
.nav__brand-role { color: var(--muted); }

.nav__links {
  display: flex; gap: 4px;
  font-family: var(--mono);
  font-size: 12px;
}
.nav__link {
  padding: 8px 14px;
  color: var(--fg-2);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.nav__link:hover { color: var(--fg); background: var(--surface-1); }
.nav__link-num { color: var(--green-2); font-size: 10px; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--green-2);
  color: #062013;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: transform 0.15s, background 0.15s;
}
.nav__cta:hover { background: var(--green-glow); transform: translateY(-1px); }
.nav__cta svg { width: 12px; height: 12px; }

@media (max-width: 800px) {
  .nav { padding: 14px 18px; }
  .nav__links { display: none; }
  .nav__brand-role, .nav__brand-sep { display: none; }
}

/* ============================================================
   STATUS BAR (top-right corner, terminal feel)
   ============================================================ */
.status-floater {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(10, 12, 10, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--green-glow);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--green-glow);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(90, 244, 135, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(90, 244, 135, 0); }
  100% { box-shadow: 0 0 0 0 rgba(90, 244, 135, 0); }
}

/* ============================================================
   SECTION FRAME
   ============================================================ */
section { position: relative; padding: 0 32px; }
.container { max-width: 1440px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-2);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--green-2);
}
.eyebrow--no-line::before { display: none; }

.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 80px 0 48px;
  border-top: 1px solid var(--line);
}
.section-head__label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 8px;
}
.section-head__label span { color: var(--green-2); }
.section-head__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-head__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green-2);
}

@media (max-width: 800px) {
  section { padding: 0 18px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; padding: 56px 0 32px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: 96px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.hero__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.hero__meta-left {
  display: flex; flex-direction: column; gap: 8px;
}
.hero__meta-line {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.hero__meta-line strong { color: var(--fg-2); font-weight: 500; }

.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green-2);
  letter-spacing: -0.01em;
}
.hero__pill .dot {
  width: 6px; height: 6px;
  background: var(--green-glow);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}

.hero__h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(56px, 11vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero__h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green-2);
  letter-spacing: -0.02em;
}
.hero__h1 .underline {
  position: relative;
  display: inline-block;
}
.hero__h1 .underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.04em;
  background: var(--green-2);
}

.hero__sub-row {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero__sub {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.45;
  color: var(--fg-2);
  max-width: 36ch;
  text-wrap: pretty;
}
.hero__sub strong { color: var(--fg); font-weight: 500; }

.hero__stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
}
.hero__stat {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.hero__stat span:first-child { color: var(--muted); }
.hero__stat span:last-child { color: var(--fg); }

.hero__actions {
  display: flex; gap: 12px;
  align-items: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg);
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--green-2); color: var(--green-glow); }
.btn--primary {
  background: var(--green-2);
  border-color: var(--green-2);
  color: #062013;
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--green-glow);
  border-color: var(--green-glow);
  color: #062013;
  transform: translateY(-1px);
}
.btn svg { width: 14px; height: 14px; }

@media (max-width: 1000px) {
  .hero__sub-row { grid-template-columns: 1fr; gap: 32px; }
}

/* Marquee ticker under hero */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  display: flex;
  margin-top: 64px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.ticker__track {
  display: flex;
  gap: 48px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 48px;
}
.ticker__item {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 48px;
}
.ticker__item::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-2);
  border-radius: 50%;
}
.ticker__item em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--green-2);
  font-weight: 400;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  padding-bottom: 96px;
}
.about__copy {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: pretty;
  max-width: 26ch;
}
.about__copy em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green-2);
}
.about__copy .keyword {
  color: var(--green-2);
}

.about__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about__card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
}
.about__card-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex; justify-content: space-between;
}
.about__card-label .pill {
  background: var(--green-soft);
  color: var(--green-2);
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--green-line);
}
.about__card-body {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.about__list {
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
}
.about__list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.about__list li:first-child { border-top: 0; }
.about__list span:first-child { color: var(--muted); }
.about__list span:last-child { color: var(--fg); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 64px; }
}

/* ============================================================
   COMPETENCES
   ============================================================ */
.skills {
  padding-bottom: 96px;
}
.skills__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.skill-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: border-color 0.2s, background 0.2s;
}
.skill-card:hover { border-color: var(--green-line); }
.skill-card--lg { grid-column: span 6; min-height: 320px; }
.skill-card--md { grid-column: span 4; }
.skill-card--sm { grid-column: span 3; }
.skill-card--wide { grid-column: span 6; }

.skill-card__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: auto;
}
.skill-card__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 12px;
}
.skill-card__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green-2);
}
.skill-card--lg .skill-card__title { font-size: 40px; }
.skill-card__desc {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 40ch;
}
.skill-card__tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-card__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg-2);
}

/* Featured AI card */
.skill-card--ai {
  grid-column: span 6;
  min-height: 320px;
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 181, 115, 0.18), transparent 50%),
    var(--surface-1);
  border-color: var(--green-line);
  overflow: hidden;
}
.skill-card--ai .skill-card__num { color: var(--green-2); }
.terminal {
  margin-top: 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--fg-2);
}
.terminal .prompt { color: var(--green-2); }
.terminal .cmt { color: var(--muted); }
.terminal .ok { color: var(--green-glow); }
.terminal .caret {
  display: inline-block;
  width: 7px; height: 12px;
  background: var(--green-glow);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Tools strip */
.tools {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.tools__label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.tool {
  padding: 18px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.15s;
}
.tool:hover { background: var(--surface-1); }
.tool__name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.tool__cat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1000px) {
  .skill-card--lg, .skill-card--ai, .skill-card--wide { grid-column: span 12; }
  .skill-card--md { grid-column: span 6; }
  .skill-card--sm { grid-column: span 6; }
}
@media (max-width: 600px) {
  .skill-card--md, .skill-card--sm { grid-column: span 12; }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.work { padding-bottom: 96px; }
.work__filters {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.work__filter {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.work__filter span { color: var(--green-2); font-size: 10px; }
.work__filter:hover { color: var(--fg); }
.work__filter.is-active {
  background: var(--green-soft);
  color: var(--green-2);
  border: 1px solid var(--green-line);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.project {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.2s;
  display: block;
  isolation: isolate;
}
.project:hover { border-color: var(--green-line); }
.project:hover .project__img { transform: scale(1.04); }
.project:hover .project__overlay { opacity: 1; }

.project__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}
.project__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.project__num {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(10,12,10,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg-2);
  z-index: 2;
}
.project__tag {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 8px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  color: var(--green-2);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,12,8,0.92) 0%, rgba(6,12,8,0.4) 50%, transparent 100%);
  opacity: 0.6;
  transition: opacity 0.3s;
  z-index: 1;
}
.project__info {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  z-index: 2;
}
.project__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.project__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  margin-top: 6px;
  display: flex; gap: 8px;
}
.project__meta span:not(:last-child)::after {
  content: '·';
  color: var(--green-2);
  margin-left: 8px;
}

/* layout sizing */
.project--wide { grid-column: span 8; }
.project--tall { grid-column: span 4; }
.project--md  { grid-column: span 6; }
.project--sm  { grid-column: span 4; }
.project--xs  { grid-column: span 3; }
.project--wide .project__media { aspect-ratio: 16 / 10; }
.project--tall .project__media { aspect-ratio: 4 / 5; }
.project--xs .project__media { aspect-ratio: 1 / 1; }

@media (max-width: 1000px) {
  .project--wide, .project--tall, .project--md { grid-column: span 12; }
  .project--sm { grid-column: span 6; }
  .project--xs { grid-column: span 6; }
}
@media (max-width: 600px) {
  .project--sm, .project--xs { grid-column: span 12; }
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.xp { padding-bottom: 96px; }
.xp__list {
  display: flex;
  flex-direction: column;
}
.xp__item {
  display: grid;
  grid-template-columns: 180px 1fr 1.2fr 80px;
  gap: 32px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  transition: background 0.2s;
  cursor: default;
}
.xp__item:hover { background: var(--surface); }
.xp__item:hover .xp__title { color: var(--green-glow); }
.xp__date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.xp__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.xp__company {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green-2);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.xp__desc {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 44ch;
}
.xp__arrow {
  justify-self: end;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.xp__item:hover .xp__arrow { color: var(--green-2); transform: translateX(4px); }
.xp__arrow { transition: all 0.2s; }

/* Education */
.edu {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.edu__title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.edu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.edu__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 24px 16px 0;
  border-bottom: 1px solid var(--line);
}
.edu__date {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--green-2);
}
.edu__name {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.edu__school {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .xp__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .xp__arrow { display: none; }
  .edu__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT / CTA / FOOTER
   ============================================================ */
.cta {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(45, 181, 115, 0.18), transparent 60%);
  pointer-events: none;
}
.cta__small {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green-2);
  margin-bottom: 24px;
  position: relative;
}
.cta__big {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  position: relative;
  text-wrap: balance;
}
.cta__big em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green-2);
}
.cta__actions {
  margin-top: 48px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand-mark {
  width: 24px; height: 24px;
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  color: var(--green-2);
}
.footer__socials {
  display: flex; gap: 8px;
  justify-content: center;
}
.footer__social {
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--fg-2);
  transition: all 0.2s;
}
.footer__social:hover {
  border-color: var(--green-2);
  color: var(--green-glow);
  transform: translateY(-2px);
}
.footer__social svg { width: 14px; height: 14px; }
.footer__right { text-align: right; }
.footer__right .ts { color: var(--green-2); }

@media (max-width: 700px) {
  .footer {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .footer__right, .footer__socials { justify-content: center; text-align: center; }
}

/* ============================================================
   ABOUT — PHOTO
   ============================================================ */
.about__grid--with-photo {
  grid-template-columns: 1fr 1.3fr 1fr;
}
.about__photo-wrap { display: flex; flex-direction: column; gap: 12px; }
.about__photo {
  width: 100%;
  aspect-ratio: 5 / 5;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-1);
  display: block;
}
.about__photo img,
.about__photo picture,
.about__photo image,
.about__photo > * {
  width: 150%;
  height: 160%;
}

.about__photo img {
  object-fit: cover;
  object-position: center 18%;
}
.about__photo-cap {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .about__grid--with-photo { grid-template-columns: 1fr; }
}

/* ============================================================
   VIDEOS
   ============================================================ */
/* ============================================================
   VIDEOS
   ============================================================ */
.videos {
  padding-bottom: 96px;
}

.videos__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

/* Carte vidéo */
.video-card {
  position: relative;
  grid-column: span 6;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-1);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.video-card:hover {
  border-color: var(--green-line);
  transform: translateY(-2px);
}

/* Grande vidéo */
.video-card--lg {
  grid-column: span 12;
}

/* Zone vidéo */
.video-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

/* Vidéo réelle */
.video-card__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Si tu veux remplir la carte en coupant légèrement, remplace contain par cover */
.video-card__video.is-cover {
  object-fit: cover;
}

/* Ancien placeholder conservé si besoin */
.video-card__placeholder {
  background-size: cover;
  background-position: center;
  position: relative;
  display: grid;
  place-items: center;
}

.video-card__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,12,8,0.85), rgba(6,12,8,0.25));
}

/* Bouton play custom : masqué car on utilise controls */
.video-card__play {
  display: none;
}

/* Texte placeholder ancien */
.video-card__drop {
  display: none;
}

/* Numéro */
.video-card__num {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(10,12,10,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg-2);
  z-index: 3;
}

/* Tag */
.video-card__tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 8px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  color: var(--green-2);
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Légende */
.video-card__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  gap: 16px;
  background: var(--surface-1);
}

.video-card__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.video-card__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

/* Hint */
.videos__hint {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.videos__hint code {
  background: var(--surface-1);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--green-2);
  border: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 800px) {
  .video-card,
  .video-card--lg {
    grid-column: span 12;
  }

  .video-card__cap {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .video-card__meta {
    text-align: left;
  }
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.twk {
  position: fixed; right: 20px; bottom: 20px;
  width: 300px;
  max-height: calc(100vh - 100px);
  z-index: 2000;
  background: rgba(14, 17, 14, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-family: var(--mono);
  color: var(--fg);
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.95);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.twk.is-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.twk__hd {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.twk__title {
  font-family: var(--display);
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.02em;
}
.twk__sub { font-size: 10px; color: var(--muted); margin-top: 2px; }
.twk__close {
  width: 24px; height: 24px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 0;
}
.twk__close:hover { border-color: var(--green-line); color: var(--green-2); }
.twk__body {
  padding: 8px 16px 16px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.twk__sect {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.twk__swatches {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.twk__swatch {
  width: 36px; height: 28px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  transition: border-color 0.15s;
}
.twk__swatch span {
  display: block;
  width: 100%; height: 100%;
  border-radius: 3px;
}
.twk__swatch.is-active { border-color: var(--green-glow); }
.twk__radio {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--surface-1);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
}
.twk__radio--col { flex-direction: column; }
.twk__opt {
  flex: 1;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--fg-2);
  border-radius: 4px;
  text-align: center;
  text-transform: capitalize;
  transition: all 0.15s;
}
.twk__opt:hover { color: var(--fg); }
.twk__opt.is-active {
  background: var(--green-2);
  color: #062013;
  font-weight: 600;
}
.twk__toggle {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--fg-2);
  cursor: pointer;
}
.twk__toggle input { position: absolute; opacity: 0; pointer-events: none; }
.twk__sw {
  width: 34px; height: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  position: relative;
  transition: background 0.15s;
}
.twk__sw::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--fg-2);
  border-radius: 50%;
  transition: all 0.15s;
}
.twk__toggle input:checked + .twk__sw {
  background: var(--green-soft);
  border-color: var(--green-line);
}
.twk__toggle input:checked + .twk__sw::after {
  left: 16px;
  background: var(--green-glow);
}

/* Light mode override */
body.is-light {
  --bg: #f6f4ef;
  --bg-2: #edebe5;
  --surface: #ffffff00;
  --surface-1: #ffffff;
  --surface-2: #edebe5;
  --line: #e3e0d8;
  --line-2: #d3d0c7;
  --fg: #1a1d1a;
  --fg-2: #4a504a;
  --muted: #8a907f;
  --muted-2: #b3b9b1;
}
body.is-light .nav { background: rgba(246, 244, 239, 0.7); }

/* No grid */
body.no-grid::before { display: none; }

/* Density */
body[data-density="compact"] section { padding-left: 24px; padding-right: 24px; }
body[data-density="compact"] .hero { padding-top: 80px; padding-bottom: 56px; min-height: 90vh; }
body[data-density="compact"] .section-head { padding: 56px 0 32px; }

body[data-density="comfy"] .section-head { padding: 120px 0 64px; }
body[data-density="comfy"] .hero { padding-bottom: 120px; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
