/* ==========================================================================
   Olga Galanomati - portfolio
   Sections: 1 tokens · 2 base · 3 layout · 4 components · 5 pages
             6 utilities · 7 motion · 8 print
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  --ultramarine: #1A1FD1;   /* titles, links, active states - signature colour */
  --navy: #0B1F4D;          /* scene labels, headings */
  --terracotta: #C8674F;    /* accent: Parenthesis, Nea Elvetia */
  --signal-red: #D90000;    /* accent: Exhibition, Movement Studies */
  --paper: #F4F2EE;         /* page background */
  --white: #FFFFFF;         /* drawing backgrounds */
  --stone: #8C8680;         /* hairlines, decorative */
  --stone-text: #6B655F;    /* stone darkened for small text (WCAG AA on paper) */
  --ink: #1C1C1C;           /* body text */
  --accent: var(--ultramarine); /* overridden per project page */

  --hairline: 1px solid rgb(140 134 128 / .4);
  --ease: cubic-bezier(.2, .7, .1, 1);

  --f-display: "Archivo", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-quote: "Cormorant Garamond", Georgia, serif;
  --stretch: 125%;

  --margin: 6vw;
  --gutter: 24px;
  --section: 88px;
  --header-h: 64px;
}

/* Greek: Archivo and Cormorant have no Greek glyphs */
html:lang(el) {
  --f-display: "Inter", system-ui, sans-serif;
  --f-quote: "GFS Didot", Georgia, serif;
  --stretch: 100%;
}

@media (min-width: 1024px) {
  :root { --section: 160px; --header-h: 80px; }
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color .9s var(--ease);
}

img, video, svg { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

a { color: var(--ultramarine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ultramarine); outline-offset: 3px; }

::selection { background: var(--ultramarine); color: var(--white); }


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* 12-column grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.grid > * { grid-column: 1 / -1; }

.section { margin-block: var(--section); }
.section--flush { margin-block: 0; }

main { display: block; padding-top: var(--header-h); }
.page--home main { padding-top: 0; }

/* Column helpers (desktop) - mobile everything is full width */
@media (min-width: 768px) {
  .col-2-7  { grid-column: 2 / 8 !important; }
  .col-7-12 { grid-column: 7 / 13 !important; }
  .col-1-5  { grid-column: 1 / 6 !important; }
  .col-1-6  { grid-column: 1 / 7 !important; }
  .col-8-12 { grid-column: 8 / 13 !important; }
}

/* Full-bleed: breaks out of the container to the viewport edges */
.bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}


/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* ---- 4.1 Typography roles ---------------------------------------------- */

.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: var(--stretch);
  /* Archivo at 125% width + .3em tracking is ~1.5em per letter: sized so the longest
     title in any language (EXPERIENCIAS., 13 letters) fits on one line */
  font-size: clamp(1rem, 4.2vw, 4rem);
  line-height: 1.1;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  overflow-wrap: break-word;
}
.display--s { font-size: clamp(1.4rem, 4vw, 3rem); letter-spacing: .25em; }

.label {
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: var(--stretch);
  font-size: .8rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--navy);
}

.meta {
  font: 500 .75rem/1.5 var(--f-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone-text);
}

.quote {
  font-family: var(--f-quote);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--navy);
}
.quote cite { display: block; margin-top: 1.2rem; font: 500 .75rem/1.5 var(--f-body); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--stone-text); }

.prose { max-width: 62ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h3 {
  margin-top: 2.4em;
  font: 600 .8rem/1.4 var(--f-display);
  font-stretch: var(--stretch);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--navy);
}
.prose h3:first-child { margin-top: 0; }

.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; max-width: 40ch; }

.link-arrow {
  display: inline-flex; gap: .5em; align-items: baseline;
  font: 500 .75rem/1.5 var(--f-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ultramarine);
  border-bottom: 1px solid currentColor;
  padding-bottom: .25em;
}
.link-arrow:hover { text-decoration: none; }

.button {
  display: inline-block;
  padding: .9em 1.6em;
  border: 1px solid var(--ultramarine);
  color: var(--ultramarine);
  font: 500 .75rem/1 var(--f-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.button:hover { background: var(--ultramarine); color: var(--white); }

/* ---- 4.2 Skip link ----------------------------------------------------- */

.skip {
  position: fixed; left: 16px; top: -100px; z-index: 200;
  padding: .75em 1em; background: var(--ultramarine); color: var(--white);
}
.skip:focus { top: 16px; }

/* ---- 4.3 Header -------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--margin);
  background: var(--paper);
  border-bottom: var(--hairline);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}

.site-header__brand {
  font: 600 .8rem/1 var(--f-display);
  font-stretch: var(--stretch);
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative; z-index: 2;
}

.site-header__menu {
  font: 500 .75rem/1 var(--f-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 0;
  position: relative; z-index: 2;
}

.site-nav { display: none; }

.site-nav__link, .lang-switch__link {
  color: var(--ink);
  text-decoration: none;
}
.site-nav__link[aria-current="page"] { color: var(--ultramarine); }

.lang-switch { display: flex; gap: .9em; font: 500 .75rem/1 var(--f-body); letter-spacing: .12em; }
.lang-switch li + li::before { content: "·"; margin-right: .9em; color: var(--stone); }
.lang-switch__link[aria-current="true"] {
  color: var(--ultramarine);
  text-decoration: underline; text-underline-offset: .35em;
}

/* Mobile: full-screen paper overlay */
.site-header.is-open .site-nav {
  display: flex; flex-direction: column; justify-content: space-between;
  position: fixed; inset: 0; z-index: 1;
  padding: calc(var(--header-h) + 40px) var(--margin) 40px;
  background: var(--paper);
}
.site-header.is-open .site-nav__list { display: grid; gap: .4em; }
.site-header.is-open .site-nav__link {
  font: 700 clamp(1.2rem, 5.6vw, 2.6rem)/1.3 var(--f-display);
  font-stretch: var(--stretch);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-header.is-open .lang-switch { padding-top: 24px; border-top: var(--hairline); font-size: .9rem; }
.site-header.is-open, .site-header.is-open .site-header__brand { color: var(--ink); }

@media (min-width: 1024px) {
  .site-header__menu { display: none; }
  .site-nav { display: flex; align-items: center; gap: 40px; }
  .site-nav__list { display: flex; gap: 28px; font: 500 .8rem/1 var(--f-body); letter-spacing: .06em; }
  .site-nav__link:hover { color: var(--ultramarine); }
  .lang-switch { padding-left: 28px; border-left: var(--hairline); }
}

/* Transparent header over the home hero */
.site-header--over:not(.is-solid):not(.is-open) {
  background: transparent;
  border-color: transparent;
}
.site-header--over:not(.is-solid):not(.is-open) :is(.site-header__brand, .site-header__menu, .site-nav__link, .lang-switch__link) { color: var(--white); }
.site-header--over:not(.is-solid):not(.is-open) .lang-switch { border-color: rgb(255 255 255 / .35); }
.site-header--over:not(.is-solid):not(.is-open) .lang-switch__link[aria-current="true"] { text-decoration-color: var(--white); }

/* ---- 4.4 Footer -------------------------------------------------------- */

.site-footer {
  margin-top: var(--section);
  padding-block: 56px 40px;
  border-top: var(--hairline);
  font-size: .9rem;
}
.site-footer__grid { row-gap: 40px; }
.site-footer__name {
  font: 600 .8rem/1 var(--f-display);
  font-stretch: var(--stretch);
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer__statement { max-width: 32ch; color: var(--ink); }
.site-footer__list { display: grid; gap: .5rem; }
.site-footer__list a { color: var(--ink); text-decoration: none; }
.site-footer__list a:hover { color: var(--ultramarine); }
.site-footer__list .meta { display: inline-block; min-width: 6.5em; }
.site-footer__tools { display: grid; gap: .5rem; justify-items: start; }
.site-footer__tools a, .site-footer__tools button { color: var(--ink); text-decoration: none; }
.site-footer__tools a:hover, .site-footer__tools button:hover { color: var(--ultramarine); }
@media (min-width: 768px) {
  .site-footer__grid > :nth-child(1) { grid-column: 1 / 6; }
  .site-footer__grid > :nth-child(2) { grid-column: 6 / 10; }
  .site-footer__grid > :nth-child(3) { grid-column: 10 / 13; }
}

/* ---- 4.5 Figures ------------------------------------------------------- */

.fig img, .fig video { width: 100%; }
.fig figcaption { margin-top: .9rem; font: 500 .75rem/1.5 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--stone-text); }
.fig--photo img { object-fit: cover; }

/* Drawings: always on white, padded, never cropped */
.fig--drawing .fig__frame { background: var(--white); padding: clamp(12px, 3vw, 40px); }
.fig--drawing img { object-fit: contain; margin-inline: auto; }
.fig__frame { display: block; }

.fig--bleed figcaption { padding-inline: var(--margin); }

[data-zoom] { cursor: zoom-in; }
button[data-zoom] { display: block; width: 100%; }

/* ---- 4.6 Hairline title block (meta strip) ------------------------------ */

.titleblock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--hairline);
  border-left: var(--hairline);
}
.titleblock > div {
  padding: 14px 16px 18px;
  border-right: var(--hairline);
  border-bottom: var(--hairline);
}
.titleblock dt { font: 500 .75rem/1.5 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--stone-text); margin-bottom: .35rem; }
.titleblock dd { font-size: .95rem; line-height: 1.45; }
@media (min-width: 1024px) { .titleblock { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- 4.7 Numbers strip ------------------------------------------------- */

.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gutter); border-top: var(--hairline); padding-top: 40px; }
@media (min-width: 1024px) { .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.numbers__n {
  display: block;
  font: 700 clamp(2.4rem, 6vw, 5rem)/1 var(--f-display);
  font-stretch: var(--stretch);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.numbers__n--word { font-size: clamp(1.1rem, 2.4vw, 2rem); letter-spacing: .2em; text-transform: uppercase; line-height: 1.2; overflow-wrap: anywhere; min-height: 1em; display: flex; align-items: flex-end; }
.numbers__l { display: block; margin-top: .8rem; }

/* ---- 4.8 Construction lines, grid overlay, cursor, progress ------------ */

.construct { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.construct__h, .construct__v { position: absolute; background: var(--ultramarine); opacity: 0; }
.construct__h { left: 0; right: 0; top: calc(var(--header-h) - 1px); height: 1px; transform-origin: left; }
.construct__v { top: 0; bottom: 0; left: calc(var(--margin) - 12px); width: 1px; transform-origin: top; }

.grid-overlay {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  display: none;
}
.grid-overlay.is-on { display: block; }
.grid-overlay .container, .grid-overlay .grid { height: 100%; }
.grid-overlay span { background: rgb(26 31 209 / .06); border-inline: 1px solid rgb(26 31 209 / .12); grid-column: auto; }

.grid-hint kbd { font: inherit; }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 160; pointer-events: none;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ultramarine); color: var(--white);
  font: 500 .65rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; scale: .6;
  transition: opacity .4s var(--ease), scale .4s var(--ease);
}
.cursor.is-on { opacity: 1; scale: 1; }

.progress {
  position: fixed; right: 20px; top: 50%; z-index: 80;
  height: 40vh; width: 1px; translate: 0 -50%;
  background: rgb(140 134 128 / .4);
  display: none;
}
.progress__fill { position: absolute; inset: 0; background: var(--ultramarine); transform-origin: top; transform: scaleY(0); }
.progress__scene {
  position: absolute; right: 10px; top: 0;
  font: 600 .7rem/1 var(--f-display); font-stretch: var(--stretch); letter-spacing: .3em;
  color: var(--ultramarine);
  writing-mode: vertical-rl; transform: rotate(180deg);
}
@media (min-width: 900px) { .progress { display: block; } }

/* ---- 4.9 Lightbox ------------------------------------------------------ */

.lightbox {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(12, 14, 30, .92);
  color: var(--white);
  display: grid; grid-template-rows: auto 1fr auto; align-items: center;
  padding: 16px var(--margin) 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; font: 500 .75rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.lightbox__stage { position: relative; min-height: 0; height: 100%; display: grid; place-items: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; background: var(--white); }
.lightbox__caption { text-align: center; font: 500 .75rem/1.5 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .8); min-height: 1.5em; margin-top: 12px; }
.lightbox button { color: var(--white); font: 500 .75rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; padding: 12px; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; font-size: 1.4rem !important; }
.lightbox__prev { left: -12px; }
.lightbox__next { right: -12px; }
@media (min-width: 768px) { .lightbox__prev { left: calc(var(--margin) * -1 + 4px); } .lightbox__next { right: calc(var(--margin) * -1 + 4px); } }
.lightbox button:focus-visible { outline-color: var(--white); }

/* ---- 4.10 Scenes (project pages) --------------------------------------- */

.scene { margin-block: var(--section); }
.scene__label { margin-bottom: 24px; }
.scene__label span { color: var(--accent); }
.scene__body { display: grid; gap: 48px var(--gutter); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.scene__body > * { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .scene { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--gutter); }
  .scene__label {
    position: sticky; top: calc(var(--header-h) + 32px);
    align-self: start;
    writing-mode: vertical-rl; transform: rotate(180deg);
    margin: 0; white-space: nowrap;
  }
  .scene__body { gap: 64px var(--gutter); }
  .scene__body > .w-8   { grid-column: 1 / 9; }
  .scene__body > .w-8r  { grid-column: 5 / 13; }
  .scene__body > .w-6l  { grid-column: 1 / 7; }
  .scene__body > .w-6r  { grid-column: 7 / 13; }
  .scene__body > .w-10  { grid-column: 2 / 12; }
  .scene__body > .prose { grid-column: 1 / 7; }
  .scene__body > .prose--r { grid-column: 7 / 13; }
  /* the label column shifts the body right by (40px + gutter) / 2 */
  .scene__body > .bleed { margin-left: calc(-50vw - 32px); }
}

/* Drawing grid (white sheets) */
.drawings { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 768px) { .drawings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.drawings .fig__frame { height: 100%; display: grid; place-items: center; }
.drawings .fig { display: grid; grid-template-rows: 1fr auto; }
.drawings img { max-height: 520px; width: auto; }

/* ---- 4.11 Horizontal scroll strip -------------------------------------- */

.strip {
  display: flex; gap: var(--gutter);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  cursor: grab;
  scrollbar-width: thin; scrollbar-color: var(--stone) transparent;
}
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.strip > * { flex: 0 0 auto; scroll-snap-align: start; }
.strip img { pointer-events: none; }


/* ==========================================================================
   5. PAGES
   ========================================================================== */

/* ---- 5.1 Home ---------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(11 31 77 / .45) 0%, rgb(11 31 77 / 0) 30%, rgb(11 31 77 / .1) 55%, rgb(11 31 77 / .7) 100%);
}

.hero__inner {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr);
  padding: calc(var(--header-h) + 24px) var(--margin) 32px;
}
.hero__themes { align-self: start; display: grid; gap: .15rem; font-size: .85rem; }
.hero__themes a {
  color: rgb(255 255 255 / .75); text-decoration: none;
  display: inline-flex; gap: .8em; align-items: baseline;
  transition: color .4s var(--ease);
}
.hero__themes a .meta { color: inherit; }
.hero__themes a:hover, .hero__themes a:focus-visible, .hero__themes a.is-current { color: var(--white); }
.hero__themes a.is-current .hero__theme-name { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.hero__themes-title { color: rgb(255 255 255 / .75) !important; margin-bottom: .6rem; }

.hero__caption { max-width: 60rem; }
.hero__inner > * { min-width: 0; }
.hero__name { color: var(--white); font-size: clamp(1.25rem, 4.6vw, 4.2rem); }
.hero__statement { margin-top: 1.2rem; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.45; max-width: 34ch; }
.hero__titleline { margin-top: .6rem; color: rgb(255 255 255 / .85); }
.hero__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 28px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .35);
}
.hero__counter, .hero__foot a { color: var(--white); }
.hero__counter { font-variant-numeric: tabular-nums; }
.hero__foot a { text-decoration: none; }
.hero__foot a:hover { text-decoration: underline; }
.hero__controls { display: flex; gap: 4px; }
.hero__controls button { padding: 6px 10px; color: var(--white); font-size: 1rem; }

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; column-gap: 48px; }
  .hero__themes { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: .95rem; gap: .4rem; }
  .hero__caption { grid-column: 1; grid-row: 2; }
}

/* Intro */
.intro { row-gap: 40px; align-items: start; }
@media (min-width: 768px) {
  .intro .quote { grid-column: 1 / 6; }
  .intro .prose { grid-column: 7 / 13; }
}

/* Section headings */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 20px; border-bottom: var(--hairline); margin-bottom: 56px; }

/* Selected work - alternating rows */
.feature { row-gap: 20px; align-items: end; margin-bottom: clamp(72px, 10vw, 140px); }
.feature__media { display: block; overflow: hidden; background: var(--white); }
.feature__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .9s var(--ease); }
.feature__media:hover img { transform: scale(1.02); }
.feature__num { font: 700 1.1rem/1 var(--f-display); font-stretch: var(--stretch); letter-spacing: .2em; color: var(--accent); }
.feature__title { margin-top: 1rem; font: 600 clamp(1.4rem, 2.4vw, 2rem)/1.15 var(--f-display); font-stretch: var(--stretch); letter-spacing: .02em; }
.feature__title a { color: var(--ink); text-decoration: none; }
.feature__title a:hover { color: var(--ultramarine); }
.feature__sub { margin-top: .6rem; max-width: 36ch; }
.feature__info { margin-top: 1rem; padding-top: 1rem; border-top: var(--hairline); }
.feature__text .link-arrow { margin-top: 1.4rem; }
@media (min-width: 768px) {
  .feature__media { grid-column: 1 / 8; grid-row: 1; }
  .feature__text  { grid-column: 9 / 13; grid-row: 1; }
  .feature:nth-child(even) .feature__media { grid-column: 6 / 13; }
  .feature:nth-child(even) .feature__text  { grid-column: 1 / 5; }
}

/* Two practices - split screen */
.split { display: flex; flex-direction: column; min-height: 80vh; }
.split__half {
  position: relative; flex: 1 1 50%;
  min-height: 50vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px var(--margin);
  color: var(--white); text-decoration: none;
  overflow: hidden;
  transition: flex-grow .9s var(--ease), flex-basis .9s var(--ease);
}
.split__half img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.split__half::after { content: ""; position: absolute; inset: 0; background: rgba(11, 31, 77, .55); transition: background-color .9s var(--ease); }
.split__half > :not(img) { position: relative; z-index: 1; }
.split__half:hover::after, .split__half:focus-visible::after { background: rgba(11, 31, 77, .42); }
.split__title { color: var(--white); font-size: clamp(1rem, 4.2vw, 2.6rem); }
@media (min-width: 768px) { .split__title { font-size: clamp(1rem, 2.2vw, 2.6rem); } }
.split__text { margin-top: 1rem; max-width: 34ch; font-size: 1.1rem; line-height: 1.5; }
.split__more { margin-top: 1.4rem; color: var(--white); }
@media (min-width: 768px) {
  .split { flex-direction: row; min-height: 88vh; }
  .split__half { min-height: auto; }
  .split:hover .split__half { flex-basis: 40%; }
  .split:hover .split__half:hover { flex-basis: 60%; }
}
.split-head { margin-bottom: 40px; }

/* Contact line */
.contact-line { text-align: left; }
.contact-line__text { font-family: var(--f-quote); font-style: italic; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.1; color: var(--navy); max-width: 18ch; }
.contact-line__links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 40px; font-size: clamp(1.05rem, 1.8vw, 1.4rem); }

/* ---- 5.2 Page heads (inner pages) --------------------------------------- */

.page-head { padding-top: clamp(56px, 9vw, 128px); }
.page-head .lead { margin-top: 32px; }

/* ---- 5.3 Work index ---------------------------------------------------- */

.filters { margin-top: 56px; display: grid; gap: 14px; border-top: var(--hairline); padding-top: 20px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
.filters__row .meta { margin-right: 4px; }
.filter {
  font-size: .9rem; color: var(--ink); padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.filter:hover { color: var(--ultramarine); }
.filter[aria-pressed="true"] { color: var(--ultramarine); border-bottom-color: var(--ultramarine); }
.filters__view { margin-left: auto; }

.index { margin-top: 32px; border-top: 1px solid var(--ink); }
.index__item {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows .6s var(--ease), opacity .6s var(--ease), visibility 0s;
}
.index__item > * { min-height: 0; overflow: hidden; }
.index__item.is-out { grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .6s var(--ease), opacity .4s var(--ease), visibility 0s .6s; }

.index-row {
  display: grid; align-items: center;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 4px 16px;
  min-height: 88px; padding-block: 16px;
  border-bottom: var(--hairline);
  color: var(--ink); text-decoration: none;
  transition: color .4s var(--ease), padding-left .6s var(--ease);
}
.index-row:hover, .index-row:focus-visible { color: var(--ultramarine); }
@media (hover: hover) { .index-row:hover { padding-left: 12px; } }
.index-row__num { font: 700 .9rem/1 var(--f-display); font-stretch: var(--stretch); letter-spacing: .2em; }
.index-row__title { font: 600 clamp(1.15rem, 2.4vw, 2rem)/1.15 var(--f-display); font-stretch: var(--stretch); }
.index-row__type { grid-column: 2; }
.index-row__year { grid-column: 3; grid-row: 1; justify-self: end; }
.index-row__thumb { display: none; }
@media (min-width: 768px) {
  .index-row { grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 3fr) 7rem; }
  .index-row__type { grid-column: 3; }
  .index-row__year { grid-column: 4; }
}
/* Touch: small thumbnail at the start of each row */
@media (hover: none) {
  .index-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .index-row__thumb { display: block; grid-row: 1 / 3; grid-column: 1; width: 64px; height: 48px; object-fit: cover; }
  .index-row__num { display: none; }
}
@media (hover: none) and (min-width: 768px) {
  .index-row { grid-template-columns: 80px minmax(0, 5fr) minmax(0, 3fr) 7rem; }
  .index-row__thumb { grid-row: 1; width: 80px; height: 56px; }
}

.index__empty { padding: 32px 0; border-bottom: var(--hairline); }

/* Grid view */
.index--grid { display: grid; grid-template-columns: 1fr; gap: 48px var(--gutter); border-top: 0; }
@media (min-width: 768px) { .index--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.index--grid .index-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; min-height: 0; padding: 0 0 16px; }
.index--grid .index-row:hover { padding-left: 0; }
.index--grid .index-row__thumb { display: block; grid-column: 1 / -1; grid-row: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px; background: var(--white); }
.index--grid .index-row__num { display: block; grid-row: 2; }
.index--grid .index-row__title { grid-column: 2; grid-row: 2; font-size: 1.15rem; }
.index--grid .index-row__year { grid-column: 3; grid-row: 2; }
.index--grid .index-row__type { grid-column: 2 / -1; grid-row: 3; }
.index--grid .index__item.is-out { display: none; }

/* Floating hover preview */
.preview {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: min(32vw, 460px); height: auto;
  opacity: 0; transition: opacity .5s var(--ease);
  box-shadow: 0 20px 60px rgb(11 31 77 / .15);
}
.preview.is-on { opacity: 1; }

/* ---- 5.4 Project pages ------------------------------------------------- */

.project-head { padding-top: clamp(56px, 9vw, 128px); }
.project-head__title { margin-top: 28px; font: 600 clamp(1.8rem, 4vw, 3.4rem)/1.1 var(--f-display); font-stretch: var(--stretch); color: var(--ink); max-width: 22ch; }
.project-head__original { margin-top: .6rem; font-family: var(--f-quote); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--navy); }
html:lang(el) .project-head__original { font-family: "GFS Didot", Georgia, serif; }
.project-head__sub { margin-top: 1rem; max-width: 46ch; }
.project-head .titleblock { margin-top: 56px; }

.project-intro { row-gap: 48px; }
.project-cover img { width: 100%; max-height: 92vh; object-fit: cover; }

.project-end { margin-top: var(--section); }
.boards-link { margin-top: 32px; }

.next-project {
  display: grid; gap: 24px var(--gutter);
  padding-block: 56px;
  border-top: 1px solid var(--ink);
  color: var(--ink); text-decoration: none;
}
.next-project__title { font: 700 clamp(1.8rem, 5vw, 4.4rem)/1.05 var(--f-display); font-stretch: var(--stretch); letter-spacing: .04em; margin-top: 1rem; transition: color .4s var(--ease); }
.next-project:hover .next-project__title { color: var(--ultramarine); }
.next-project__media { overflow: hidden; background: var(--white); }
.next-project__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .9s var(--ease); }
.next-project:hover img { transform: scale(1.03); }
@media (min-width: 768px) {
  .next-project { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .next-project__text { grid-column: 1 / 6; }
  .next-project__media { grid-column: 6 / 13; }
}

/* Idea / reality toggle (exhibition) */
.toggle-pair { position: relative; }
.toggle-pair__stack { position: relative; display: block; }
.toggle-pair__stack img:last-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.toggle-pair.is-b .toggle-pair__stack img:last-child { opacity: 1; }
.toggle-pair__controls { display: flex; gap: 18px; margin-bottom: 14px; }

/* Variations strip */
.var-strip .fig { width: min(78vw, 1100px); }
.var-strip .fig__frame { padding: clamp(16px, 3vw, 48px); }
@media (max-width: 767px) {
  .var-strip { flex-direction: column; overflow: visible; cursor: auto; scroll-snap-type: none; }
  .var-strip .fig { width: 100%; }
}

/* Nea Elvetia pedestrian axis line */
.axis-wrap { position: relative; }
/* the line meanders through the left margin, beside the scene labels */
.axis-line { position: absolute; top: 0; left: calc(var(--margin) * -1 + 4px); width: calc(var(--margin) - 8px); height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.axis-line path { fill: none; stroke: var(--terracotta); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.axis-wrap .scene { position: relative; z-index: 1; }

/* Light slider */
.light { display: grid; gap: 24px; }
.light__stage { position: relative; background: var(--white); }
.light__stage img { width: 100%; height: auto; }
.light__stage img + img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; }
.light__time { font: 700 clamp(2.4rem, 13vw, 5rem)/1 var(--f-display); font-stretch: var(--stretch); color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.light__range { width: 100%; accent-color: var(--ultramarine); height: 32px; cursor: pointer; }
.light__ticks { display: flex; justify-content: space-between; }
@media (min-width: 900px) {
  .light { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .light__stage { grid-column: 1 / 8; grid-row: 1 / 3; }
  .light__time { grid-column: 9 / 13; font-size: 4.2vw; }
  .light__controls { grid-column: 9 / 13; }
}

/* Video */
.video-frame { background: #000; padding-block: clamp(24px, 5vw, 72px); }
.video-frame video { width: 100%; max-height: 80vh; margin-inline: auto; }
.sound-toggle { margin-top: 14px; }
.stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .stills { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.walking-strip img { height: clamp(420px, 85vh, 1100px); width: auto; max-width: none; background: var(--white); }

/* ---- 5.5 Experiences --------------------------------------------------- */

.timeline { position: relative; margin-top: 40px; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 5px; width: 1px; background: rgb(140 134 128 / .4); }
@media (min-width: 768px) { .timeline::before { left: 7.5rem; } }

.xp { position: relative; display: grid; grid-template-rows: auto 1fr; transition: grid-template-rows .6s var(--ease), opacity .5s var(--ease), visibility 0s; }
.xp.is-out { grid-template-rows: 0fr 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .6s var(--ease), opacity .4s var(--ease), visibility 0s .6s; }
.xp.is-out > * { min-height: 0; overflow: hidden; }
.xp__head {
  width: 100%; text-align: left;
  display: grid; gap: 6px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 22px 0 22px 28px;
  border-bottom: var(--hairline);
  transition: color .4s var(--ease);
}
.xp__head::before { content: ""; position: absolute; left: 1px; top: 30px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ultramarine); transition: background-color .4s var(--ease); }
.xp__head:hover .xp__title, .xp__head[aria-expanded="true"] .xp__title { color: var(--ultramarine); }
.xp__head[aria-expanded="true"]::before { background: var(--ultramarine); }
.xp__year { grid-column: 1 / -1; color: var(--stone-text); }
.xp__title { font: 600 clamp(1.05rem, 1.8vw, 1.45rem)/1.25 var(--f-display); font-stretch: var(--stretch); transition: color .4s var(--ease); }
.xp__place { grid-column: 1; font-size: .92rem; color: var(--ink); }
.xp__badge { grid-column: 1 / -1; margin-top: 4px; align-self: start; justify-self: start; padding: .45em .8em; border: 1px solid var(--ultramarine); color: var(--ultramarine); font: 500 .68rem/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; max-width: 16em; }
.xp h2 { font: inherit; }
.xp__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--ease); }
.js .xp__panel:not(.is-open) { grid-template-rows: 0fr; }
.xp__panel > div { min-height: 0; overflow: hidden; }
.xp__text { padding: 20px 0 28px 28px; max-width: 62ch; }
.xp__text p + p { margin-top: .8em; }
.xp__links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; }

@media (min-width: 768px) {
  .xp__head { grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, .8fr) 13rem; padding-left: 0; align-items: baseline; }
  .xp__head::before { left: calc(7.5rem - 4px); top: 30px; }
  .xp__year { grid-column: 1; grid-row: 1; padding-right: 24px; }
  .xp__title { grid-column: 2; padding-left: 28px; }
  .xp__place { grid-column: 3; grid-row: 1; }
  .xp__badge { grid-column: 4; grid-row: 1; justify-self: end; text-align: right; margin-top: 0; }
  .xp__text { padding-left: calc(7.5rem + 28px); }
}

.programmes { background: var(--white); border-top: var(--hairline); padding-block: 48px; margin-top: var(--section); }
.programmes__inner { display: grid; gap: 28px; align-items: center; }
.programmes p { max-width: 62ch; font-size: .92rem; }
.programmes__logos { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.programmes__logos img { height: 64px; width: auto; } /* EU emblem: at least 60px tall */
@media (min-width: 900px) { .programmes__inner { grid-template-columns: 1.4fr 1fr; } .programmes__logos { justify-content: flex-end; } }
main:has(> .programmes:last-child) + .site-footer { margin-top: 0; }

/* ---- 5.6 About --------------------------------------------------------- */

.about { row-gap: 48px; align-items: start; }
.about__portrait { overflow: hidden; }
.about__portrait img { width: 100%; will-change: transform; }
@media (min-width: 768px) {
  .about__portrait { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 32px); }
  .about__text { grid-column: 7 / 13; }
}

.principles { display: grid; grid-template-columns: 1fr; border-top: var(--hairline); border-left: var(--hairline); }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principle { position: relative; padding: 40px clamp(20px, 3vw, 48px) 48px; border-right: var(--hairline); border-bottom: var(--hairline); }
.principle::before { content: ""; position: absolute; left: -1px; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width .9s var(--ease); }
.principle:hover::before { width: calc(100% + 1px); }
.principle__n { display: block; font: 700 clamp(3rem, 7vw, 5.6rem)/1 var(--f-display); font-stretch: var(--stretch); color: var(--accent); }
.principle__t { margin-top: 1.4rem; font: 600 1.3rem/1.25 var(--f-display); font-stretch: var(--stretch); }
.principle p { margin-top: .8rem; max-width: 44ch; }

.quote-strip { position: relative; overflow: hidden; padding-block: clamp(96px, 14vw, 200px); background: var(--paper); }
.quote-strip__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .12; }
.quote-strip .quote { position: relative; max-width: 26ch; font-size: clamp(1.8rem, 3.6vw, 3rem); }

.contact-block { row-gap: 40px; }
.contact-block__lines { display: grid; gap: 32px; }
.contact-block__lines > div { border-top: var(--hairline); padding-top: 16px; display: grid; gap: .35rem; }
@media (min-width: 768px) {
  .contact-block__intro { grid-column: 1 / 7; }
  .contact-block__lines { grid-column: 8 / 13; }
}

/* ---- 5.7 CV ------------------------------------------------------------ */

.cv-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: end; }
.cv-contact { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .95rem; }
.cv-section { margin-top: 72px; }
.cv-section__title { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.cv-row { display: grid; gap: 6px var(--gutter); padding-block: 18px; border-bottom: var(--hairline); }
.cv-row ul { list-style: none; }
.cv-row li + li { margin-top: .35em; }
@media (min-width: 768px) {
  .cv-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cv-row > :first-child { grid-column: 1 / 4; }
  .cv-row > :last-child { grid-column: 4 / 13; }
}
.cv-row strong { font-weight: 500; }


/* ==========================================================================
   6. UTILITIES
   ========================================================================== */

.todo {
  background: #FFE14D;
  color: var(--ink);
  padding: 0 .3em;
  font-style: normal;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.mt-s { margin-top: 24px; }
.mt-m { margin-top: 48px; }
.mt-l { margin-top: 80px; }
.on-white { background: var(--white); }
.no-scroll { overflow: hidden; }


/* ==========================================================================
   7. MOTION - only when the visitor has not asked for reduced motion
   ========================================================================== */

@keyframes draw-x { from { transform: scaleX(0); opacity: 1; } to { transform: scaleX(1); opacity: 1; } }
@keyframes draw-y { from { transform: scaleY(0); opacity: 1; } to { transform: scaleY(1); opacity: 1; } }
@keyframes line-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Simple fade for everyone (also under reduced motion) */
.js main { animation: fade .6s var(--ease) both; }
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; }
html.is-leaving body { opacity: 0; transition: opacity .25s linear; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Construction lines: the first lines of a drawing */
  .construct__h { animation: draw-x .9s var(--ease) forwards, line-out .9s 1.3s var(--ease) forwards; }
  .construct__v { animation: draw-y .9s .1s var(--ease) forwards, line-out .9s 1.3s var(--ease) forwards; }
  .js main { animation: rise .8s .55s var(--ease) both; }

  /* Scroll reveal: fade + rise; images wipe from bottom to top */
  .js [data-reveal] { transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-in { transform: none; }
  .js figure[data-reveal] img { clip-path: inset(100% 0 0 0); transition: clip-path .9s .1s var(--ease); }
  .js figure[data-reveal].is-in img { clip-path: inset(0 0 0 0); }

  /* Very slow Ken Burns on the hero */
  .hero__slide img { transform: scale(1); transition: transform 8.2s linear; }
  .hero__slide.is-active img { transform: scale(1.04); }

  .split__half:hover img { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .construct { display: none; }
  .cursor, .preview { display: none !important; }
  .index__item, .xp, .xp__panel, .split__half { transition: opacity .3s linear !important; }
}


/* ==========================================================================
   8. PRINT - the CV prints as a neat one-to-two page document
   ========================================================================== */

@media print {
  @page { margin: 16mm 16mm 18mm; }
  :root { --section: 24px; --margin: 0; }
  body { background: #fff; font-size: 10pt; line-height: 1.45; color: #000; }
  .site-header, .site-footer, .skip, .construct, .grid-overlay, .cursor, .progress, .lightbox, .preview, .no-print { display: none !important; }
  main { padding-top: 0; animation: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  a { color: #000; text-decoration: none; }
  .page-head { padding-top: 0; }
  .display { font-size: 22pt; color: var(--ultramarine); }
  .cv-section { margin-top: 12px; break-inside: auto; }
  .mt-s { margin-top: 6px; }
  .cv-section__title { padding-bottom: 4px; }
  .cv-row { grid-template-columns: 30mm 1fr; padding-block: 4px; break-inside: avoid; }
  .cv-row > :first-child, .cv-row > :last-child { grid-column: auto; }
  .cv-contact { margin-top: 8px; font-size: 9pt; }
  .todo { background: none; }
}



/* ==========================================================================
   9. ERASMUS+ / Y-CYCLE FOOTER, LEGAL PAGES, COOKIE CONSENT
   ========================================================================== */

.site-footer__eu {
  margin-top: 48px;
  padding-top: 32px;
  border-top: var(--hairline);
  display: grid;
  gap: 20px;
  font-size: .82rem;
  line-height: 1.6;
}
.eu-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
  justify-items: center;
  background: var(--white);
  padding: 16px;
}
.eu-logos li { display: flex; align-items: center; justify-content: center; }
.eu-logos img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.eu-logos a { display: block; }
.site-footer__made, .site-footer__disclaimer { max-width: 100ch; color: var(--ink); }
.site-footer__disclaimer { color: var(--stone-text); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer__legal a, .site-footer__legal button {
  display: inline-block; padding-block: 10px; color: var(--ink); text-decoration: none;
  font: 500 .75rem/1.5 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
}
.site-footer__legal a:hover, .site-footer__legal button:hover { color: var(--ultramarine); }
@media (min-width: 768px) {
  .eu-logos { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 24px 48px; padding: 20px 32px; width: fit-content; max-width: 100%; }
}

/* Legal pages */
.legal h2 {
  margin-top: 2.4em;
  font: 600 .8rem/1.4 var(--f-display);
  font-stretch: var(--stretch);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--navy);
}
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal li + li { margin-top: .6em; }
.legal-table { overflow-x: auto; width: calc(100vw - 2 * var(--margin)); max-width: 1100px; border: var(--hairline); background: var(--white); }
.prose > .legal-table { max-width: min(1100px, calc(100vw - 2 * var(--margin))); }
.legal-table table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: .88rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .6em .8em; border-bottom: var(--hairline); }
.legal-table th { font: 500 .75rem/1.5 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--stone-text); }

/* Cookie consent banner: does not block the page, Accept and Reject look the same */
.consent {
  position: fixed; z-index: 150;
  left: 12px; right: 12px; bottom: 12px;
  max-height: 70vh; overflow-y: auto;
  padding: 20px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--stone);
  box-shadow: 0 10px 40px rgb(28 28 28 / .18);
  font-size: .88rem; line-height: 1.55;
}
.consent[hidden] { display: none; }
.consent__title { font: 600 .95rem/1.35 var(--f-body); color: var(--navy); margin-bottom: .5em; }
.consent__actions { display: flex; gap: 12px; margin-top: 16px; }
.consent__btn {
  flex: 1 1 0; min-height: 44px; padding: .8em 1.2em;
  border: 1px solid var(--ultramarine); color: var(--ultramarine); background: var(--white);
  font: 500 .75rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
}
.consent__btn:hover { background: var(--ultramarine); color: var(--white); }
@media (min-width: 768px) {
  .consent { left: 24px; right: auto; bottom: 24px; max-width: 34rem; padding: 24px 28px; }
}
@media print { .consent, .site-footer__eu { display: none !important; } }


/* ==========================================================================
   10. PHONE & TABLET FIXES (mobile-first pass, 2026-10-07)
   Everything here sits inside max-width queries, so the desktop layout
   (1024px and wider) is untouched.
   ========================================================================== */

@media (max-width: 1023px) {
  /* Header: bigger tap areas for the name and the Menu button */
  .site-header__brand { padding-block: 15px; }
  .site-header__menu { min-height: 44px; min-width: 44px; padding: 0; text-align: right; }
  .site-header.is-open .site-nav__link { display: inline-block; padding-block: 4px; }
  .site-header.is-open .lang-switch__link { display: inline-block; padding: 12px 4px; }
  /* The cookie banner waits while the full-screen menu is open, so the language switch stays visible */
  body.no-scroll .consent { visibility: hidden; }

  /* Home hero: theme list rows tall enough to tap (WCAG 2.5.8) */
  .hero__themes { gap: 0; }
  .hero__themes a { min-height: 30px; align-items: center; }
  .hero__themes-title { margin-bottom: .3rem; }
  .hero__controls button { min-width: 44px; min-height: 44px; padding: 0 10px; }
  .hero__foot a { display: inline-block; padding-block: 12px; }

  /* Filters (Work, Experiences, project toggles, sound) */
  .filter { padding-block: 10px; }

  /* Experiences: role badges were 10.9px */
  .xp__badge { font-size: .75rem; }

  /* Buttons and small links */
  .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .link-arrow { padding-top: .9em; }
  .cv-contact a { display: inline-block; padding-block: 8px; }
  .site-footer__list a { display: inline-block; padding-block: 10px; }
  .site-footer__tools a, .site-footer__tools button { padding-block: 10px; }
  .site-footer__legal a, .site-footer__legal button { padding-block: 12px; }
  .contact-line__links a { display: inline-block; padding-block: 8px; }
  .xp__links a { display: inline-block; padding-block: 8px; }
}

@media (max-width: 767px) {
  /* Cookies table becomes one card per row, so nothing is cut off on a phone */
  .legal-table { width: 100%; overflow: visible; border: 0; background: none; }
  .prose > .legal-table { max-width: 100%; }
  .legal-table table { min-width: 0; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal-table table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table tr { background: var(--white); border: var(--hairline); padding: .4em 0; margin-bottom: 12px; }
  .legal-table td { border: 0; padding: .35em 1em; overflow-wrap: anywhere; }
  .legal-table td::before { content: attr(data-label); display: block; font: 500 .75rem/1.5 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--stone-text); }
}

/* Small phones: the hero needs a little more room for the theme list and the caption */
@media (max-width: 1023px) and (max-height: 700px) {
  .hero { min-height: 600px; }
}
