/* ============================================================
   POLYMORPHE — Direction "Rick Owens"
   Mono near-black/off-white. Hanken Grotesk uppercase only.
   Zero color accent, zero ornament. Image-first.
   ============================================================ */

/* RESET ============================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* TOKENS ============================================= */
:root {
  --ink:    #0a0a0a;
  --fg:     #f4f4f2;
  --fg-2:   #c9c9c5;
  --mute:   #807f7c;
  --mute-2: #4a4a47;
  --rule:   #1c1c1b;
  --rule-2: #262624;

  --pad-x:  clamp(20px, 3.5vw, 48px);

  --sans:   'Hanken Grotesk', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;

  --t-9:  9.5px;
  --t-10: 10px;
  --t-11: 11px;
  --t-12: 12px;
  --t-13: 13px;
  --t-14: 14px;
  --t-15: 15px;
}

/* BASE =============================================== */
html { background: var(--ink); }
body {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--t-12);
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
::selection { background: var(--fg); color: var(--ink); }

/* LANG TOGGLE ======================================== */
html:not(.lang-en) [lang="en"] { display: none !important; }
html.lang-en [lang="fr"]      { display: none !important; }

/* Italic emphasis is reset to upright in Rick Owens vocabulary */
em, i { font-style: normal; }

/* ============================================================
   GLOBAL NAV — plain text, always visible
   ============================================================ */
.ro-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px var(--pad-x);
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-11);
  letter-spacing: 0.18em;
  color: var(--fg);
}
.ro-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ro-nav-brand img {
  display: block;
  height: 38px;
  width: auto;
}
.ro-nav-brand .name {
  font-size: var(--t-11);
  letter-spacing: 0.22em;
  color: var(--fg);
}
.ro-nav-mid {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.ro-nav-mid a {
  color: var(--mute);
  transition: color .15s ease;
}
.ro-nav-mid a:hover { color: var(--fg); }
.ro-nav-mid a.is-active { color: var(--fg); }
.ro-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}
.ro-nav-right button { color: var(--mute); transition: color .15s ease; }
.ro-nav-right button[aria-current="true"] { color: var(--fg); }
.ro-nav-right .sep { color: var(--mute-2); margin: 0 2px; }

@media (max-width: 760px) {
  .ro-nav { grid-template-columns: 1fr auto; padding: 14px var(--pad-x); }
  .ro-nav-mid { display: none; }
  .ro-nav-brand .name { display: none; }
}

/* ============================================================
   HOMEPAGE HERO — full-bleed video, no chrome over it
   ============================================================ */
.ro-hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  height: 100dvh;
  margin-left: calc(50% - 50vw); /* break out of any parent constraints */
  overflow: hidden;
  background: #000;
}
.ro-hero-media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: center center;
  border: 0;
  pointer-events: none;
  filter: grayscale(0.18) contrast(1.06) brightness(0.92);
}
.ro-hero-wordmark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(28px, 5vh, 56px) var(--pad-x);
  z-index: 2;
  pointer-events: none;
}
.ro-hero-wordmark img {
  display: block;
  width: clamp(180px, 22vw, 320px);
  height: auto;
  filter: drop-shadow(0 2px 30px rgba(0,0,0,0.35));
  animation: roEmerge 2.2s cubic-bezier(.2,.7,.2,1) both;
}
.ro-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0) 25%, rgba(10,10,10,0) 70%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}
.ro-hero-tag {
  position: absolute;
  bottom: clamp(28px, 5vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: var(--t-10);
  letter-spacing: 0.42em;
  color: var(--fg-2);
  opacity: 0.85;
  white-space: nowrap;
}
@keyframes roEmerge {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   WORKS GRID — homepage 2×2, B&W → color on hover
   ============================================================ */
.ro-grid-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 32px var(--pad-x) 24px;
  font-size: var(--t-10);
  letter-spacing: 0.28em;
  color: var(--mute);
}
.ro-grid-head .count { font-variant-numeric: tabular-nums; }

.ro-works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--ink);
}
.ro-tile {
  position: relative;
  height: 78svh;
  min-height: 520px;
  overflow: hidden;
  display: block;
  background: #000;
}
.ro-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.78);
  transition: filter 1.4s cubic-bezier(.2,.7,.2,1),
              transform 6s cubic-bezier(.2,.7,.2,1);
  transform: scale(1.0);
}
.ro-tile:hover .ro-tile-img,
.ro-tile:focus-visible .ro-tile-img {
  filter: grayscale(0) contrast(1.02) brightness(1);
  transform: scale(1.04);
}
.ro-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,0.7) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity .6s ease;
}
.ro-tile-num {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 3;
  font-size: var(--t-10);
  letter-spacing: 0.32em;
  color: var(--fg-2);
  opacity: 0.7;
}
.ro-tile-kind {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 3;
  font-size: var(--t-10);
  letter-spacing: 0.32em;
  color: var(--fg-2);
  opacity: 0.7;
  text-align: right;
}
.ro-tile-foot {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 28px 28px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.ro-tile-title {
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0.06em;
  font-weight: 500;
  margin: 0;
  color: var(--fg);
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}
.ro-tile-year {
  font-size: var(--t-10);
  letter-spacing: 0.32em;
  color: var(--fg-2);
  opacity: 0.85;
  white-space: nowrap;
  padding-bottom: 4px;
}
@media (max-width: 760px) {
  .ro-works { grid-template-columns: 1fr; }
  .ro-tile { height: 70svh; min-height: 460px; }
  .ro-tile-img { filter: grayscale(0.4) contrast(1.02) brightness(0.85); }
}

/* Empty tile (no image) — centered title */
.ro-tile--empty {
  background: var(--ink);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.ro-tile--empty::after { display: none; }
.ro-tile-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
  z-index: 3;
}
.ro-tile-center .ro-tile-title {
  text-shadow: none;
  letter-spacing: 0.06em;
}
.ro-tile--empty .ro-tile-num,
.ro-tile--empty .ro-tile-kind { opacity: 0.6; }
.ro-tile--empty:hover .ro-tile-title { color: var(--fg); letter-spacing: 0.1em; }
.ro-tile--empty .ro-tile-title { transition: letter-spacing .5s ease; }

/* ============================================================
   PAGE HEAD — small, top-left strip on inner pages
   ============================================================ */
.ro-page-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 32px var(--pad-x);
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-10);
  letter-spacing: 0.28em;
  color: var(--mute);
}
.ro-page-head .center { text-align: center; color: var(--fg); }
.ro-page-head .right  { text-align: right; }

/* For project pages — bigger title sitting under page head */
.ro-proj-title-wrap {
  padding: clamp(40px, 8vh, 96px) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
}
.ro-proj-title {
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: 0.04em;
  font-weight: 500;
  line-height: 0.95;
  margin: 0;
  color: var(--fg);
}
.ro-proj-meta {
  font-size: var(--t-10);
  letter-spacing: 0.28em;
  color: var(--mute);
  text-align: right;
  line-height: 1.9;
}

/* ============================================================
   FULL-BLEED IMAGE STACK
   ============================================================ */
.ro-image {
  width: 100%;
  display: block;
  overflow: hidden;
  background: #000;
}
.ro-image img {
  width: 100%;
  height: auto;
  display: block;
}
.ro-image.tall img,
.ro-image.cover img {
  aspect-ratio: 4/5;
  object-fit: cover;
  height: auto;
}
.ro-image.wide img {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.ro-cap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px var(--pad-x) 0;
  font-size: var(--t-10);
  letter-spacing: 0.28em;
  color: var(--mute);
}
.ro-cap .center { text-align: center; }
.ro-cap .right  { text-align: right; }

.ro-dyptic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
}
.ro-tryptic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--rule);
}
.ro-dyptic img, .ro-tryptic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/5;
}
@media (max-width: 760px) {
  .ro-tryptic { grid-template-columns: 1fr; }
}

/* ============================================================
   TEXT BLOCKS
   ============================================================ */
.ro-text {
  padding: clamp(60px, 10vh, 120px) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 6fr 5fr;
  gap: 48px;
  align-items: start;
}
.ro-text .label {
  font-size: var(--t-10);
  letter-spacing: 0.32em;
  color: var(--mute);
}
.ro-text .body {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: var(--t-15);
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 56ch;
}
.ro-text .body p { margin: 0 0 1.4em; }
.ro-text .body p:first-child { color: var(--fg); }
.ro-text .body em {
  font-style: normal;
  color: var(--fg);
  background: linear-gradient(transparent 62%, var(--rule-2) 62%, var(--rule-2) 92%, transparent 92%);
  padding: 0 2px;
}
.ro-text .aside {
  font-size: var(--t-10);
  letter-spacing: 0.28em;
  color: var(--mute);
  line-height: 2;
}
@media (max-width: 900px) {
  .ro-text { grid-template-columns: 1fr; gap: 32px; }
}

/* Inverted (white bg) section for rhythm */
.ro-invert {
  background: var(--fg);
  color: var(--ink);
}
.ro-invert .label { color: #5a5a57; }
.ro-invert .body  { color: #2a2a28; }
.ro-invert .body p:first-child { color: var(--ink); }
.ro-invert .body em { color: var(--ink); background: linear-gradient(transparent 62%, #d4d4d0 62%, #d4d4d0 92%, transparent 92%); }
.ro-invert .aside { color: #5a5a57; }

/* ============================================================
   CREDIT TABLE (project pages)
   ============================================================ */
.ro-credits {
  padding: clamp(60px, 10vh, 120px) var(--pad-x);
  border-top: 1px solid var(--rule);
}
.ro-credits-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding-bottom: 40px;
  font-size: var(--t-10);
  letter-spacing: 0.32em;
  color: var(--mute);
}
.ro-credits-head h2 {
  font-size: var(--t-10);
  letter-spacing: 0.32em;
  font-weight: 400;
  margin: 0;
  color: var(--mute);
}
.ro-credits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.ro-cred {
  padding: 18px 18px 22px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 18px;
}
.ro-cred:nth-child(4n) { border-right: none; }
.ro-cred .lbl {
  font-size: var(--t-10);
  letter-spacing: 0.28em;
  color: var(--mute);
}
.ro-cred .val {
  font-size: var(--t-12);
  letter-spacing: 0.1em;
  color: var(--fg);
  line-height: 1.55;
}
.ro-cred.span2 { grid-column: span 2; }
.ro-cred.span4 { grid-column: span 4; }
@media (max-width: 900px) {
  .ro-credits-grid { grid-template-columns: 1fr 1fr; }
  .ro-cred:nth-child(4n) { border-right: 1px solid var(--rule); }
  .ro-cred:nth-child(2n) { border-right: none; }
  .ro-cred.span2 { grid-column: span 2; }
}
@media (max-width: 540px) {
  .ro-credits-grid { grid-template-columns: 1fr; }
  .ro-cred { border-right: none !important; }
  .ro-cred.span2 { grid-column: span 1; }
}

/* ============================================================
   NEXT (project navigation)
   ============================================================ */
.ro-next {
  border-top: 1px solid var(--rule);
  padding: clamp(40px, 7vh, 80px) var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  transition: background .35s ease, color .35s ease;
}
.ro-next:hover { background: var(--fg); color: var(--ink); }
.ro-next:hover .ro-next-label,
.ro-next:hover .ro-next-meta { color: #5a5a57; }
.ro-next-label {
  font-size: var(--t-10);
  letter-spacing: 0.32em;
  color: var(--mute);
}
.ro-next-title {
  font-size: clamp(28px, 4.5vw, 56px);
  letter-spacing: 0.04em;
  font-weight: 500;
  line-height: 1;
}
.ro-next-meta {
  font-size: var(--t-10);
  letter-spacing: 0.32em;
  color: var(--mute);
  text-align: right;
}
@media (max-width: 760px) {
  .ro-next { grid-template-columns: 1fr auto; }
  .ro-next-label { display: none; }
}

/* ============================================================
   BIO / CV / CONTACT — common page container
   ============================================================ */
.ro-page {
  padding: 0 var(--pad-x);
  max-width: 1440px;
  margin: 0 auto;
}

/* BIO LAYOUT */
.ro-bio {
  padding: clamp(60px, 10vh, 120px) 0;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.ro-bio-portrait {
  position: sticky;
  top: 100px;
}
.ro-bio-portrait img {
  width: 100%;
  height: auto;
  display: block;
}
.ro-bio-prose {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: var(--t-15);
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 60ch;
}
.ro-bio-prose .lead {
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 1.6em;
}
.ro-bio-prose p { margin: 0 0 1.4em; }
.ro-bio-prose em {
  font-style: normal;
  color: var(--fg);
}
@media (max-width: 900px) {
  .ro-bio { grid-template-columns: 1fr; gap: 40px; }
  .ro-bio-portrait { position: static; }
}

/* BIO TRAJECTORY TABLES */
.ro-tables {
  padding: clamp(40px, 7vh, 80px) 0 clamp(60px, 10vh, 120px);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.ro-tables h3 {
  font-size: var(--t-10);
  letter-spacing: 0.32em;
  color: var(--mute);
  font-weight: 400;
  margin: 0 0 24px;
}
.ro-table-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: var(--t-11);
  letter-spacing: 0.16em;
}
.ro-table-row:last-child { border-bottom: 1px solid var(--rule); }
.ro-table-row .k { color: var(--mute); }
.ro-table-row .v { color: var(--fg); }
@media (max-width: 760px) {
  .ro-tables { grid-template-columns: 1fr; }
  .ro-table-row { grid-template-columns: 80px 1fr; gap: 12px; }
}

/* CV =============================================== */
.ro-cv-section {
  padding: clamp(48px, 8vh, 80px) 0;
  border-top: 1px solid var(--rule);
}
.ro-cv-section:first-of-type { border-top: none; padding-top: clamp(60px, 10vh, 100px); }
.ro-cv-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  margin-bottom: 32px;
  font-size: var(--t-10);
  letter-spacing: 0.32em;
  color: var(--mute);
}
.ro-cv-head h2 {
  font-size: var(--t-11);
  letter-spacing: 0.32em;
  color: var(--fg);
  font-weight: 500;
  margin: 0;
}
.ro-cv-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr 200px;
  gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-size: var(--t-11);
  letter-spacing: 0.14em;
  align-items: baseline;
}
.ro-cv-row:last-child { border-bottom: 1px solid var(--rule); }
.ro-cv-row .date { color: var(--mute); }
.ro-cv-row .title { color: var(--fg); font-weight: 500; }
.ro-cv-row .detail { color: var(--fg-2); }
.ro-cv-row .place { color: var(--mute); text-align: right; }
@media (max-width: 900px) {
  .ro-cv-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .ro-cv-row .place { text-align: left; }
}

/* CONTACT =========================================== */
.ro-contact {
  padding: clamp(80px, 14vh, 160px) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  min-height: 70svh;
}
.ro-contact-label {
  font-size: var(--t-10);
  letter-spacing: 0.32em;
  color: var(--mute);
  margin-bottom: 18px;
}
.ro-contact-mail {
  font-size: clamp(20px, 2.6vw, 36px);
  letter-spacing: 0.04em;
  color: var(--fg);
  text-transform: none;
  font-weight: 500;
  display: inline-block;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 6px;
  transition: border-color .2s;
}
.ro-contact-mail:hover { border-color: var(--fg); }
.ro-contact-info {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--rule);
}
.ro-contact-cell {
  padding: 20px 16px 22px 0;
  border-bottom: 1px solid var(--rule);
}
.ro-contact-cell .lbl {
  font-size: var(--t-10);
  letter-spacing: 0.32em;
  color: var(--mute);
  margin-bottom: 10px;
}
.ro-contact-cell .val {
  font-size: var(--t-12);
  letter-spacing: 0.1em;
  color: var(--fg);
  line-height: 1.55;
}
.ro-contact-cell .val a { transition: color .2s; }
.ro-contact-cell .val a:hover { color: var(--mute); }
.ro-contact-message {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: var(--t-15);
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 44ch;
}
.ro-contact-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  filter: grayscale(0.1) contrast(1.04);
}
@media (max-width: 900px) {
  .ro-contact { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   FOOTER — plain text on one line (wraps if needed)
   ============================================================ */
.ro-foot {
  border-top: 1px solid var(--rule);
  padding: 32px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 28px;
  font-size: var(--t-10);
  letter-spacing: 0.28em;
  color: var(--mute);
}
.ro-foot a { transition: color .15s; }
.ro-foot a:hover { color: var(--fg); }

/* ============================================================
   WATCH — "Captation" button + YouTube modal
   ============================================================ */
.ro-watch-row {
  display: flex;
  justify-content: flex-end;
  padding: 0 var(--pad-x) 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.ro-watch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-family: var(--sans);
  font-size: var(--t-11);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg);
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule-2);
  transition: color .2s, border-color .2s, gap .2s;
}
.ro-watch:hover { color: var(--fg); border-color: var(--fg); gap: 18px; }
.ro-watch .arrow { font-size: 14px; transition: transform .2s; }
.ro-watch:hover .arrow { transform: translateX(4px); }

/* Modal backdrop */
.ro-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vh, 60px) clamp(20px, 5vw, 80px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s .35s;
}
.ro-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility 0s 0s;
}
.ro-modal-frame {
  position: relative;
  width: 100%;
  max-width: 1400px;
  aspect-ratio: 16/9;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.ro-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ro-modal-close {
  position: absolute;
  top: clamp(16px, 3vh, 36px);
  right: clamp(16px, 3vw, 36px);
  font-size: var(--t-11);
  letter-spacing: 0.32em;
  color: var(--fg);
  cursor: pointer;
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  padding: 8px 12px;
  transition: opacity .2s;
}
.ro-modal-close:hover { opacity: 0.7; }
.ro-modal-close::after {
  content: '×';
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}
body.ro-modal-open { overflow: hidden; }
.ro-rule { border-top: 1px solid var(--rule); }
.ro-sep  { color: var(--mute-2); padding: 0 4px; }

/* ============================================================
   THEME-LIGHT — universal inversion on any section
   ============================================================ */
.theme-light {
  background: var(--fg);
  color: var(--ink);
  /* Break out of any constraining parent so the bg goes edge-to-edge */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  max-width: 100vw;
  box-sizing: border-box;
}
.theme-light .label,
.theme-light .ro-grid-head,
.theme-light .ro-page-head,
.theme-light .ro-page-head .right,
.theme-light .ro-proj-meta,
.theme-light .ro-cap,
.theme-light .ro-cred .lbl,
.theme-light .ro-table-row .k,
.theme-light .ro-cv-row .date,
.theme-light .ro-cv-row .detail,
.theme-light .ro-cv-row .place,
.theme-light .ro-cv-head,
.theme-light .ro-cv-head h2,
.theme-light .ro-contact-label,
.theme-light .ro-contact-cell .lbl,
.theme-light .ro-credits-head,
.theme-light .ro-credits-head h2,
.theme-light .ro-credits-head .num,
.theme-light .aside,
.theme-light .ro-tables h3,
.theme-light .ro-next-label,
.theme-light .ro-next-meta { color: #5a5a57; }
.theme-light .ro-page-head .center,
.theme-light .ro-proj-title,
.theme-light .ro-table-row .v,
.theme-light .ro-cv-row .title,
.theme-light .ro-bio-prose .lead,
.theme-light .ro-contact-mail,
.theme-light .ro-credits-grid .val,
.theme-light .ro-cred .val,
.theme-light .ro-next-title,
.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light .body p:first-child { color: var(--ink); }
.theme-light .body,
.theme-light .body p,
.theme-light .ro-bio-prose,
.theme-light .ro-bio-prose p,
.theme-light .ro-contact-message,
.theme-light .ro-contact-message p { color: #2a2a28; }
.theme-light .body em,
.theme-light .ro-bio-prose em,
.theme-light .ro-contact-message em {
  color: var(--ink);
  background: linear-gradient(transparent 62%, #d4d4d0 62%, #d4d4d0 92%, transparent 92%);
}
.theme-light,
.theme-light .ro-table-row,
.theme-light .ro-cv-row,
.theme-light .ro-cv-section,
.theme-light .ro-contact-cell,
.theme-light .ro-contact-info,
.theme-light .ro-credits-grid,
.theme-light .ro-cred,
.theme-light .ro-watch-row,
.theme-light .ro-tables { border-color: #d4d4d0 !important; }
.theme-light .ro-credits-grid { background: #d4d4d0; }
.theme-light .ro-credits-grid .ro-cred { background: var(--fg); }
.theme-light a { color: var(--ink); }
.theme-light .ro-contact-mail { border-bottom-color: #c6c6c2; }
.theme-light .ro-contact-mail:hover { border-bottom-color: var(--ink); }
.theme-light .ro-bio-portrait img { filter: none; }
.theme-light .ro-watch { color: var(--ink); border-bottom-color: #c6c6c2; }
.theme-light .ro-watch:hover { border-bottom-color: var(--ink); }

/* ============================================================
   HAMBURGER MENU
   ============================================================ */
.ro-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.ro-nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--fg);
  transition: all .2s ease;
}
.ro-nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 49;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.ro-nav-mobile.is-open { display: flex; }
.ro-nav-mobile a {
  font-size: var(--t-14);
  letter-spacing: 0.22em;
  color: var(--mute);
  text-decoration: none;
  transition: color .15s ease;
}
.ro-nav-mobile a:hover, .ro-nav-mobile a.is-active { color: var(--fg); }
.ro-nav-mobile .ro-nav-mobile-lang { display: flex; gap: 14px; margin-top: 16px; }
@media (max-width: 760px) {
  .ro-nav-hamburger { display: flex; }
}
