/* ============================================================
   YASMINE BADAWI — Portfolio site styles
   Built on the design-system tokens (tokens.css).
   Editorial, warm, type-driven. Square corners; pills + circles
   are the only exceptions. Slow, expensive ease-outs.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- shared type helpers ---------- */
.wordmark { font-family: var(--font-wordmark); font-weight: 500; letter-spacing: -0.02em; }
.display  { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--track-tight); }
.serif    { font-family: var(--font-wordmark); }
.italic   { font-family: var(--font-wordmark); font-style: italic; font-weight: 400; }
.meta {
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-meta);
  letter-spacing: var(--track-meta); text-transform: uppercase;
}
.label {
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-small);
  letter-spacing: var(--track-label); text-transform: uppercase;
}
.lead { font-family: var(--font-wordmark); font-weight: 400; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); }
.body { font-size: var(--fs-body); line-height: 1.65; color: var(--ink-soft); }
.ar { font-family: var(--font-wordmark); font-weight: 400; direction: rtl; unicode-bidi: isolate; }

/* ============================================================
   CORNER NAV — fixed, four corners, tiny tracked uppercase
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  pointer-events: none;
  padding: 24px 34px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.nav__links { display: flex; gap: 6px; align-items: center; pointer-events: auto; flex-wrap: nowrap; }
.nav__mark  {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%);
  pointer-events: auto; font-family: var(--font-display); font-size: 22px; line-height: 1; text-decoration: none;
}
.nav__right { display: flex; gap: 20px; align-items: center; pointer-events: auto; flex-wrap: nowrap; }
.nav a {
  text-decoration: none;
  font-family: var(--font-sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 7px 6px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease), opacity var(--dur) var(--ease);
  color: var(--ink);
}
.nav__right a { opacity: 0.72; }
.nav__right a:hover { opacity: 1; }
.nav a.is-active { padding: 7px 16px; box-shadow: inset 0 0 0 1.5px currentColor; }
.nav a:not(.is-active):hover { opacity: 0.6; }

/* nav color adapts to the field currently under it (set by site.js) */
body.nav-on-dark .nav a { color: var(--paper-2); }
/* burgundy band behind the fixed nav on every page */
.nav { background: var(--wine); }
.nav a, body.nav-on-dark .nav a { color: var(--paper-2); }

/* mobile nav: collapse social, wrap links */
@media (max-width: 720px) {
  .nav { padding: 14px 16px; gap: 10px; align-items: flex-start; }
  .nav__mark { display: none; }
  .nav__links { flex-wrap: wrap; }
  .nav__right { font-size: 11px; gap: 12px; }
  .nav a { font-size: 10.5px; letter-spacing: 0.13em; padding: 5px 3px; }
  .nav a.is-active { padding: 5px 10px; }
}

/* ============================================================
   PAGE FIELDS — full-bleed signature backgrounds
   ============================================================ */
.field { position: relative; width: 100%; overflow: hidden; }
.field--alice  { background: var(--alice); color: var(--ink); }
.field--petal  { background: var(--petal); color: var(--ink); }
.field--paper  { background: var(--paper); color: var(--ink); }
.field--bone   { background: var(--bone);  color: var(--ink); }
.field--indigo { background: var(--indigo); color: var(--paper-2); }
.field--wine   { background: var(--wine);   color: var(--paper-2); }

/* the hero band that opens every page */
.hero {
  min-height: 100svh; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(96px, 14vh, 180px) clamp(24px, 5vw, 64px) clamp(40px, 7vh, 72px);
}
.hero__index {
  position: absolute; right: clamp(24px, 5vw, 64px); bottom: clamp(28px, 5vh, 56px);
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(40px, 6vw, 84px); opacity: 0.9;
}
.hero__kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 4vh, 38px); }
.hero__rule { width: 46px; height: 1px; background: currentColor; opacity: 0.5; }
.hero__title {
  margin: 0; font-family: var(--font-wordmark); font-weight: 500;
  font-size: clamp(56px, 13vw, 188px); line-height: 0.86; letter-spacing: -0.025em;
}
.hero__title sup { font-style: italic; font-weight: 400; font-size: 0.16em; vertical-align: super; margin-left: 0.08em; opacity: 0.7; }
.hero__sub { margin-top: clamp(22px, 4vh, 40px); max-width: 640px; }

/* bilingual wordmark lockup — large Arabic name + smaller English Badawi */
.lockup { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(8px, 1.4vh, 16px); }
.hero__title--ar {
  font-family: 'Amiri', var(--font-wordmark);
  font-weight: 700; direction: rtl; unicode-bidi: isolate;
  white-space: nowrap; width: fit-content; max-width: 100%;
  font-size: clamp(60px, 11.5vw, 168px); line-height: 1.0; letter-spacing: 0;
}
.hero__roman {
  display: inline-flex; align-items: baseline; gap: 0.5em;
  font-family: var(--font-wordmark); font-weight: 500; font-style: italic;
  font-size: clamp(22px, 3.4vw, 48px); letter-spacing: 0.01em; line-height: 1;
  opacity: 0.92;
}
.hero__roman::before { content: ""; width: clamp(28px, 4vw, 64px); height: 1px; background: currentColor; opacity: 0.5; align-self: center; }

/* About hero \u2014 English wordmark layered over a ghosted Arabic underlay */
.lockup--overlay { position: relative; }
.wm-stack { position: relative; display: inline-block; }
.wm-ar {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  font-family: 'Amiri', var(--font-wordmark); direction: rtl; white-space: nowrap;
  font-size: clamp(132px, 23vw, 320px); line-height: 1; letter-spacing: 0;
  color: var(--paper-2); opacity: 0.13; z-index: 0; pointer-events: none; user-select: none;
}
.hero__title--en {
  position: relative; z-index: 1; margin: 0;
  font-family: var(--font-wordmark); font-weight: 500;
  font-size: clamp(72px, 16vw, 240px); line-height: 0.9; letter-spacing: -0.02em;
}
.lockup--overlay .hero__roman { align-self: flex-start; margin-top: clamp(2px, 1vh, 12px); margin-left: clamp(8px, 3vw, 40px); }

/* stacked meta groups (About) \u2014 columns that pair a primary + secondary fact */
.metastack { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 60px); }
.metacol { display: flex; flex-direction: column; gap: clamp(16px, 2.4vh, 26px); }
.metaitem { font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); max-width: 26ch; }
.metaitem .k { color: var(--ink-mute); margin-bottom: 7px; font-weight: 600; }

/* metarow legibility on the deep fields */
.field--indigo .metarow > div, .field--wine .metarow > div { color: var(--paper-2); }
.field--indigo .metarow .k, .field--wine .metarow .k { color: rgba(243,237,228,0.72); }

/* ============================================================
   CV TIMELINE + SPEECHES (About \u2014 two-column)
   ============================================================ */
.cv-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 88px); align-items: start; }
@media (max-width: 880px) { .cv-split { grid-template-columns: 1fr; gap: clamp(48px, 7vh, 72px); } }

.cv { position: relative; padding-left: 30px; }
.cv::before { content: ""; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.cv__item { position: relative; padding-bottom: clamp(26px, 3.6vh, 40px); }
.cv__item:last-child { padding-bottom: 0; }
.cv__item::before {
  content: ""; position: absolute; left: -31px; top: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 4px var(--paper);
}
.field--bone .cv__item::before { box-shadow: 0 0 0 4px var(--bone); }
.cv__item--edu::before { background: var(--paper); border: 1.5px solid var(--wine); left: -32px; top: 4px; width: 10px; height: 10px; box-sizing: border-box; }
.field--bone .cv__item--edu::before { background: var(--bone); }
.cv__date { font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine); }
.cv__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.14; margin: 7px 0 4px; }
.cv__org { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.01em; color: var(--ink-mute); }
.cv__desc { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin-top: 9px; max-width: 46ch; }
.cv__subs { display: flex; flex-direction: column; gap: 16px; margin: 18px 0 0; padding-left: 18px; border-left: 1px solid var(--line); }
.cv__sub { position: relative; padding-left: 14px; }
.cv__sub::before { content: ""; position: absolute; left: -1px; top: 8px; width: 9px; height: 1px; background: var(--line); }
.cv__sub .cv__date { font-size: 10px; letter-spacing: 0.13em; color: var(--ink-mute); }
.cv__sub h4 { font-family: var(--font-sans); font-weight: 600; font-size: 14px; letter-spacing: 0.01em; line-height: 1.3; margin: 4px 0 0; }
.cv__sub .cv__desc { font-size: 13.5px; margin-top: 6px; }

.speeches { display: flex; flex-direction: column; }
.speech { display: grid; grid-template-columns: 92px 1fr; gap: clamp(14px, 1.4vw, 20px); padding: clamp(18px, 2.4vh, 24px) 0; border-top: 1px solid var(--line); align-items: start; }
.speech:first-child { border-top: 0; padding-top: 0; }
.speech image-slot { width: 92px; }
.speech__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.18; }
.speech__meta { font-family: var(--font-sans); font-weight: 600; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 5px; display: block; }
.speech__desc { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 8px 0 0; }

/* ============================================================
   RESEARCH hero meta \u2014 legible label/value pairs on indigo
   ============================================================ */
.research-meta { display: flex; flex-wrap: wrap; gap: clamp(26px, 3vw, 60px); margin-top: clamp(28px, 4vh, 46px); }
.research-meta > div { max-width: 32ch; font-family: var(--font-sans); font-weight: 500; font-size: 15px; line-height: 1.45; letter-spacing: 0.005em; color: var(--paper-2); }
.research-meta .k { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(243,237,228,0.72); margin-bottom: 8px; }

/* ============================================================
   ART hero \u2014 split text + portrait
   ============================================================ */
.hero--split { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.hero--split .hero__media { width: 100%; }
@media (max-width: 860px) { .hero--split { display: flex; flex-direction: column; align-items: stretch; } }

/* ============================================================
   TRAVEL MARQUEE — auto-scrolling photo row (Personal Photography)
   ============================================================ */
.marquee {
  position: relative; width: 100%; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; gap: clamp(12px, 1.2vw, 18px); padding-right: clamp(12px, 1.2vw, 18px); }
.marquee__group image-slot { flex: none; height: clamp(190px, 26vh, 264px); }
/* lift the empty-state chrome so placeholders read on the wine field */
.marquee__group image-slot::part(empty) { color: rgba(243,237,228,0.55); }
.marquee__group image-slot::part(ring) { border-color: rgba(243,237,228,0.22); }
.marquee__group image-slot::part(frame) { background: rgba(243,237,228,0.06); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee-x 150s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee-x { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
}

/* corner bio / edge label, hung on the left edge */
.edge-label {
  position: absolute; left: clamp(24px, 5vw, 64px); top: 50%; transform: translateY(-50%);
  font-family: var(--font-wordmark); font-style: italic; font-size: 15px; opacity: 0.7;
  writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 0.04em;
}
@media (max-width: 860px) { .edge-label { display: none; } }

/* ============================================================
   CONTENT SECTIONS on paper
   ============================================================ */
.section { padding: clamp(52px, 8vh, 100px) clamp(24px, 5vw, 64px); position: relative; }
.section--tight { padding-top: clamp(32px, 4.5vh, 56px); }
.wrap { max-width: 1240px; margin: 0 auto; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.field-dark .rule, .field--indigo .rule, .field--wine .rule { background: var(--line-on-field); }

.eyebrow { display: flex; align-items: baseline; gap: 14px; margin-bottom: clamp(28px, 5vh, 52px); }
.eyebrow__num { font-family: var(--font-display); font-weight: 700; font-size: 13px; opacity: 0.45; }
.eyebrow__txt { font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }
.eyebrow__line { flex: 1; height: 1px; background: var(--line); }
.field-dark .eyebrow__line { background: var(--line-on-field); }

.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.12; margin: 0; }
.big-statement {
  font-family: var(--font-wordmark); font-weight: 400;
  font-size: clamp(30px, 5.4vw, 74px); line-height: 1.08; letter-spacing: -0.015em; margin: 0;
}
.big-statement em { font-style: italic; }

/* a two-column editorial grid (image + text) */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--portrait { grid-template-columns: 0.82fr 1.18fr; }
.split--wide     { grid-template-columns: 1.2fr 0.8fr; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr !important; } }

/* meta rows (Based / Focus / Since) */
.metarow { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); }
.metarow > div { font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.metarow .k { color: var(--ink-mute); margin-bottom: 7px; font-weight: 600; }
.field-dark .metarow > div { color: var(--paper-2); }
.field-dark .metarow .k { color: rgba(243,237,228,0.6); }

/* ============================================================
   IMAGE SLOTS / PLATES
   ============================================================ */
image-slot { display: block; --slot-ph: var(--ink-mute); }
.plate { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.plate image-slot { width: 100%; }

/* <image-slot> hard-codes height:160px in its shadow :host, which overrides
   an inline aspect-ratio (aspect-ratio only fills an AUTO dimension). These
   light-DOM rules win by specificity and free the height so aspect-ratio can
   compute it from the width. */
image-slot[style*="aspect-ratio"] { height: auto; }
.project__media image-slot, .hero--split .hero__media image-slot { width: 100%; }
.plate__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.plate__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.5vw, 21px); }
.plate__meta { font-family: var(--font-sans); font-weight: 600; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.plate__desc { font-size: 14px; line-height: 1.55; color: var(--ink-soft); max-width: 52ch; }

/* circular portrait */
.portrait-wrap { display: flex; justify-content: center; }

/* ============================================================
   PROJECT ROWS (Architecture) — large alternating
   ============================================================ */
.project { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.project--flip .project__media { order: 2; }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; } .project--flip .project__media { order: 0; } }
.project__index { font-family: var(--font-display); font-weight: 700; font-size: 13px; opacity: 0.4; letter-spacing: 0.1em; }
.project__title { font-family: var(--font-wordmark); font-weight: 500; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.0; letter-spacing: -0.02em; margin: 14px 0 0; }

/* ============================================================
   GALLERY GRID — Panels & Speeches / Art works
   ============================================================ */
.grid { display: grid; gap: clamp(28px, 3.2vw, 48px) clamp(24px, 2.4vw, 36px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* tags / filters */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 15px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink); background: transparent;
}
.tag sup { font-size: 8.5px; opacity: 0.55; margin-left: 2px; }

/* ============================================================
   LINKS — animated underline
   ============================================================ */
.ulink { position: relative; text-decoration: none; padding-bottom: 2px; display: inline-block; }
.ulink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.ulink:hover::after { transform: scaleX(1); }
.ulink--shown::after { transform: scaleX(1); }
.ulink--shown:hover::after { transform: scaleX(0); }

/* portfolio / CTA link */
.cta-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; width: fit-content;
  font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 5px; border-bottom: 1px solid currentColor; transition: opacity var(--dur) var(--ease); }
.cta-link .arrow { font-family: var(--font-display); font-size: 15px; line-height: 1; }
.cta-link:hover { opacity: 0.65; }

/* portfolio / CTA link end */
.email-link {
  font-family: var(--font-wordmark); font-weight: 400;
  font-size: clamp(26px, 4.6vw, 56px); letter-spacing: -0.01em;
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 6px; width: fit-content;
}

/* ============================================================
   FLOATING MOTIFS — feathers / petals
   ============================================================ */
.motif {
  position: absolute; pointer-events: none; z-index: 1;
  width: 56px; height: 22px; border-radius: 60% 40% 55% 45%;
  background: linear-gradient(120deg, #FBF8F2, #E8DECE);
  box-shadow: 0 10px 24px -12px rgba(35,34,32,0.4);
  opacity: 0.9;
}
.field--indigo .motif, .field--wine .motif { background: linear-gradient(120deg, rgba(251,248,242,0.95), rgba(232,222,206,0.8)); }
.sparkle { display: inline-block; font-family: var(--font-display); }

/* ============================================================
   FOOTER (per page, compact)
   ============================================================ */
.foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: clamp(40px, 7vh, 72px) clamp(24px, 5vw, 64px) clamp(28px, 5vh, 44px);
}
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }

/* ============================================================
   MOTION — reveal on scroll + gentle floats
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-d="1"] { transition-delay: 0.08s; }
  .reveal[data-d="2"] { transition-delay: 0.16s; }
  .reveal[data-d="3"] { transition-delay: 0.24s; }
  .reveal[data-d="4"] { transition-delay: 0.32s; }

  @keyframes floatY { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-12px) rotate(var(--r,0deg)); } }
  .motif { animation: floatY 7s ease-in-out infinite; }
}

/* ============================================================
   GALLERY SLIDER — 5-image auto-cycling carousel (9:16 vertical)
   Used for project imagery and personal travel photography.
   ============================================================ */
.gallery { position: relative; width: 100%; }
.gallery__viewport {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  background: rgba(35,34,32,0.05);
}
.field-dark .gallery__viewport, .field--wine .gallery__viewport, .field--indigo .gallery__viewport {
  background: rgba(243,237,228,0.06);
}
.gallery__track { display: flex; width: 100%; height: 100%; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .gallery__track { transition: transform 0.7s var(--ease); }
}
.gallery__slide { flex: 0 0 100%; width: 100%; height: 100%; display: block; }
.gallery__track image-slot { width: 100%; height: 100%; display: block; }

.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(35,34,32,0.40); color: var(--paper);
  font-family: var(--font-display); font-size: 20px; line-height: 1; padding: 0 0 3px;
  opacity: 0; backdrop-filter: blur(4px);
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.gallery:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
.gallery__nav:hover { background: rgba(35,34,32,0.7); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.gallery__dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--line-strong); opacity: 0.4;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field--wine .gallery__dot, .field--indigo .gallery__dot { background: var(--paper-2); }
.gallery__dot.is-active { opacity: 1; background: var(--wine); transform: scale(1.3); }
.field--wine .gallery__dot.is-active, .field--indigo .gallery__dot.is-active { background: var(--paper-2); }

/* tame the height inside the two-column project rows + center it */
.project__media .gallery { max-width: 560px; margin-inline: auto; }

/* ============================================================
   TRAVEL BAR — continuous smooth-scrolling strip of small 9:16
   photos with arrow nudges (Personal Photography & Travels)
   ============================================================ */
.travel-bar { position: relative; width: 100%; }
.travel-bar__viewport { width: 100%; overflow: hidden; }
.travel-bar__track { display: flex; gap: clamp(8px, 0.8vw, 12px); width: max-content; }
.travel-bar__track image-slot {
  flex: 0 0 auto; height: clamp(118px, 16vh, 168px); width: auto; aspect-ratio: 9 / 16;
  display: block;
}
.travel-bar__track image-slot::part(empty) { color: rgba(243,237,228,0.5); font-size: 10px; }
.travel-bar__track image-slot::part(ring) { border-color: rgba(243,237,228,0.22); }
.travel-bar__track image-slot::part(frame) { background: rgba(243,237,228,0.06); }
.travel-bar__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(243,237,228,0.14); color: var(--paper-2);
  font-family: var(--font-display); font-size: 19px; line-height: 1; padding: 0 0 3px;
  opacity: 0.7; backdrop-filter: blur(4px);
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.travel-bar:hover .travel-bar__nav, .travel-bar__nav:focus-visible { opacity: 1; }
.travel-bar__nav:hover { background: rgba(243,237,228,0.26); }
.travel-bar__nav--prev { left: clamp(10px, 2vw, 22px); }
.travel-bar__nav--next { right: clamp(10px, 2vw, 22px); }

/* ============================================================
   PROJECT META — professional CV rows (skills columns)
   ============================================================ */
.proj-skills { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 48px); margin-top: clamp(22px, 3.2vh, 34px); }
@media (max-width: 520px) { .proj-skills { grid-template-columns: 1fr; gap: 24px; } }
.proj-skills .k { font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.field--wine .proj-skills .k, .field--indigo .proj-skills .k { color: rgba(243,237,228,0.62); }
.skill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.skill-list li { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); padding-left: 16px; position: relative; }
.skill-list li::before { content: "—"; position: absolute; left: 0; color: var(--wine); }
.field--wine .skill-list li, .field--indigo .skill-list li { color: var(--paper-2); }
.field--wine .skill-list li::before, .field--indigo .skill-list li::before { color: var(--paper-2); opacity: 0.7; }


/* ============================================================
   LIGHTBOX — click any filled image to view it large
   ============================================================ */
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: clamp(20px, 4vw, 64px); background: rgba(35,34,32,0.88); opacity: 0; transition: opacity var(--dur) var(--ease); }
.lb.is-open { display: flex; opacity: 1; }
.lb__img { max-width: min(1500px, 94vw); max-height: 88vh; width: auto; height: auto; object-fit: contain; display: block; box-shadow: 0 30px 90px rgba(0,0,0,0.45); background: var(--paper); }
.lb__cap { position: absolute; left: 0; right: 0; bottom: clamp(14px, 2.4vh, 26px); text-align: center; font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(251,248,242,0.72); pointer-events: none; }
.lb__btn { position: absolute; border: 0; cursor: pointer; background: rgba(251,248,242,0.12); color: var(--paper-2); font-family: var(--font-display); line-height: 1; backdrop-filter: blur(4px); transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.lb__btn:hover { background: rgba(251,248,242,0.26); }
.lb__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; font-size: 22px; padding: 0 0 3px; }
.lb__nav--prev { left: clamp(10px, 2vw, 28px); }
.lb__nav--next { right: clamp(10px, 2vw, 28px); }
.lb__close { top: clamp(14px, 2vh, 26px); right: clamp(14px, 2vw, 26px); width: 42px; height: 42px; border-radius: 50%; font-size: 18px; }
.lb[data-single] .lb__nav { display: none; }
image-slot[data-filled] { cursor: zoom-in; }
@media (max-width: 620px) { .lb__nav { width: 40px; height: 40px; font-size: 19px; } }
