/* ============================================================
   LANCIEN3D — styles.css
   Ovyon-flavored system: neutral grotesque (system / SF Pro,
   the old-site font) + monospace bracket micro-labels.
   Palette: black / white / grays + one electric-blue accent.
   Page rhythm: video hero -> white works -> black block -> white footer.
   ============================================================ */

:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --ink: #000000;
  --gray-100: #f4f4f2;
  --gray-200: #eaeaea;
  --gray-300: #d4d4d1;
  --gray-500: #8a8a87;
  --gray-700: #4a4a48;
  --blue: #000000;            /* accent folded to black — strict B&W */
  --bubble: rgba(255, 255, 255, 0.62);   /* light frosted nav bubble, reads on video + white */
  --bubble-line: rgba(0, 0, 0, 0.10);

  /* Old-site font stack (SF Pro / system) with a loaded grotesque fallback */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, "Roboto Mono",
               "Courier New", monospace;

  --pill-radius: 999px;
  --gutter: clamp(1.1rem, 3.5vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

body.no-scroll { overflow: hidden; }

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

/* ---------- Mono micro-label, used as [ LABEL ] everywhere ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.bracket::before { content: "[ "; }
.bracket::after  { content: " ]"; }

/* ============================================================
   PILLS  (nav, filters, CTAs)
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: var(--pill-radius);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease), opacity 0.3s;
}

.pill:hover { transform: translateY(-1px); }

.pill-round { width: 2.7rem; height: 2.7rem; padding: 0; border-radius: 50%; }

/* CONTACT pill — outline, white, blends via the transparent nav */
.pill-contact {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.pill-contact:hover { opacity: 0.6; }

/* language toggle — same outline/white treatment as the other nav pills */
.pill-lang {
  background: transparent;
  color: #fff;
  border-color: #fff;
  min-width: 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill-lang:hover { opacity: 0.6; }

/* solid black CTA bubble (EXPLORE) */
.pill-solid {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.pill-solid:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* ============================================================
   NAV — single floating frosted bubble (ovyon-style)
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0.9rem var(--gutter);
  pointer-events: none;
}

.nav-bubble {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 4.5vw, 3.4rem);   /* wide, roomy bubble */
  padding: 0.42rem 1.4rem;             /* slimmest pill */
  border-radius: var(--pill-radius);
  /* Apple-style liquid glass: DARK frosted surface — one style that reads on
     the dark video hero AND on white sections ("Selected works", "All works").
     The white logo + white pills + white "+" all stay legible on it. */
  background: rgba(12, 12, 12, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.16);  /* light hairline keeps the bubble defined on dark video */
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #ffffff;                    /* light content reads on the dark glass */
}

.nav-logo-link { display: flex; align-items: center; }
.nav-logo-img { height: 1.55rem; width: auto; display: block; }   /* bigger logo */
.nav-logo-text { display: none; }

.nav-right { display: flex; align-items: center; gap: 0.5rem; }

/* "+" icon, rotates to X when the menu is open */
.plus { position: relative; width: 0.85rem; height: 0.85rem; transition: transform 0.4s var(--ease); }
.plus::before, .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%; left: 0;
  width: 100%; height: 1.5px;
  transform: translateY(-50%);
}
.plus::after { transform: translateY(-50%) rotate(90deg); }
.menu-open #menuToggle .plus { transform: rotate(45deg); }

/* round toggle — outline, white, blends via the transparent nav */
#menuToggle {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
#menuToggle:hover { opacity: 0.6; }

/* ---------- Full-screen menu overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.menu-open .menu-overlay { opacity: 1; visibility: visible; }

.menu-links { list-style: none; text-align: center; }

.menu-links a {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  transition: color 0.3s;
}

.menu-links a:hover { color: var(--gray-500); }

.menu-mail a { color: var(--gray-500); }

/* ============================================================
   HERO — full-screen looping video with overlaid ovyon layout
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--white);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 40%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%);
  pointer-events: none;
}

/* timestamp, top-left under the nav */
.hero-timestamp {
  position: absolute;
  z-index: 2;
  top: clamp(4.5rem, 8vh, 6rem);
  left: var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

/* centered EXPLORE bubble */
.hero-explore {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* big title bottom-left + location */
.hero-content {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: clamp(2.5rem, 7vh, 5rem);
  max-width: 34rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-location {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* eyebrow + statement, mid-right */
.hero-statement {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(2.5rem, 7vh, 5rem);
  max-width: 22rem;
}

.hero-statement .mono { display: block; opacity: 0.7; margin-bottom: 1rem; }

.hero-statement p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.hero-statement strong { font-weight: 500; }

/* ============================================================
   SECTION HEADINGS (shared eyebrow + title rhythm)
   ============================================================ */
.eyebrow {
  display: block;
  color: var(--gray-500);
  margin-bottom: 1.4rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* ============================================================
   MANIFESTO — "how the studio works"
   ============================================================ */
.manifesto {
  padding: clamp(6rem, 14vh, 11rem) var(--gutter);
  max-width: 64rem;
}

.manifesto-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}

.manifesto-text {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--gray-700);
  max-width: 34rem;
}

/* ============================================================
   WORKS
   ============================================================ */
.works { padding: 0 var(--gutter) clamp(5rem, 12vh, 9rem); }

.works-page .works-head { padding-top: clamp(8rem, 16vh, 12rem); }

.works-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.filters .pill { color: var(--black); }

.filters .pill[aria-selected="true"] {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Cards. stack (home) / grid (works page). */
.works-list[data-layout="stack"] {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 9vh, 7rem);
}

.works-list[data-layout="grid"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.work-card { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.work-card.is-hiding { opacity: 0; transform: translateY(14px) scale(0.99); }

.work-cover {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;          /* soft Apple-style rounding, matches the nav bubble */
  border: 1px solid rgba(0, 0, 0, 0.08); /* hairline edge so the rounding reads on white covers (diamond, lipstick) */
  background: var(--gray-100);
  cursor: pointer;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.work-cover:hover img { transform: scale(1.03); }

.works-list[data-layout="stack"] .work-cover { max-height: 86vh; }
.works-list[data-layout="stack"] .work-cover[data-ratio="16/9"] { aspect-ratio: 16 / 9; }
.works-list[data-layout="stack"] .work-cover[data-ratio="4/5"]  { aspect-ratio: 4 / 5; max-width: min(70vh, 100%); margin-inline: auto; }
.works-list[data-layout="stack"] .work-cover[data-ratio="1/1"]  { aspect-ratio: 1 / 1; max-width: min(88vh, 100%); margin-inline: auto; }
.works-list[data-layout="stack"] .work-cover[data-ratio="4/3"]  { aspect-ratio: 4 / 3; }
.works-list[data-layout="stack"] .work-cover[data-ratio="3/2"]  { aspect-ratio: 3 / 2; }

.works-list[data-layout="grid"] .work-cover { aspect-ratio: 4 / 5; }

.work-view {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--white);
  border-radius: var(--pill-radius);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 1;                 /* always visible: signals the cover opens a gallery */
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}

.work-cover:hover .work-view,
.work-cover:focus-visible .work-view {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.5rem;
  margin-top: 1rem;
}

.work-meta dt {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.work-meta dd { font-size: 0.85rem; }
.work-meta > div { display: flex; flex-direction: column; gap: 0.15rem; }

.work-title {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 0.8rem;
}

.work-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  line-height: 1.4;
  color: var(--gray-500);
  margin-top: 0.35rem;
  max-width: 48ch;
}

.works-empty { color: var(--gray-500); font-size: 0.9rem; padding: 3rem 0; }

/* ============================================================
   DARK BLOCK — About + Services
   ============================================================ */
.dark-block {
  background: var(--black);
  color: var(--white);
  padding: clamp(6rem, 14vh, 12rem) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 10vh, 9rem);
}

.dark-eyebrow { color: var(--gray-500); margin-bottom: 1.8rem; }

.about { max-width: 46rem; }

.about-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
}

.about-text {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: #c9c9c6;
  margin-bottom: 2.4rem;
}

.pill-invert { color: var(--white); }
.pill-invert:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.services-list { list-style: none; }

.services-list li {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
  transition: color 0.3s;
}

.svc-strong { color: var(--white); }
.svc-dim { color: var(--gray-700); }
.services-list li:hover { color: var(--white); }

/* ============================================================
   FOOTER — white
   ============================================================ */
.footer {
  background: var(--white);
  color: var(--black);
  padding: clamp(4rem, 8vh, 6rem) var(--gutter) 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
}

.footer-logo { height: 1.6rem; width: auto; }
.footer-up { color: var(--black); }
.footer-up:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.arrow-up {
  width: 0.55rem; height: 0.55rem;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--gray-300);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gray-500); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.footer-bottom a:hover { color: var(--black); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 8, 0.98);
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.lightbox[hidden] { display: none; }

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--gutter);
}

.lightbox-meta { display: flex; align-items: baseline; gap: 1.1rem; }

.lightbox-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.lightbox-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}

.lightbox-close { color: var(--white); }
.lightbox-close:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.cross { position: relative; width: 0.85rem; height: 0.85rem; }
.cross::before, .cross::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
}
.cross::before { transform: translateY(-50%) rotate(45deg); }
.cross::after { transform: translateY(-50%) rotate(-45deg); }

.lightbox-scroll {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 1rem var(--gutter) 5rem;
}

.lightbox-scroll img {
  max-width: min(1200px, 100%);
  max-height: 86vh;
  width: auto;
  object-fit: contain;
}

/* ---- Editorial intro shown above the family media ---- */
.lightbox-intro {
  width: 100%;
  max-width: min(1200px, 100%);
  margin: clamp(1rem, 5vh, 3rem) 0 clamp(0.5rem, 3vh, 1.5rem);
  color: var(--white);
  text-align: left;
}
.lightbox-intro .lb-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 46ch;
}
.lightbox-intro .lb-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.9rem;
}
.lightbox-intro .lb-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 62ch;
  margin-top: 1.1rem;
}

/* ---- Media items (image or video) inside the family scroll ---- */
.lb-item {
  margin: 0;
  width: 100%;
  max-width: min(1200px, 100%);
  display: flex;
  justify-content: center;
}
.lb-item[style*="--r"] {
  aspect-ratio: var(--r);
}
.lb-item video {
  max-width: min(1200px, 100%);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 2px;
  background: #000;
}

.lightbox-nav {
  position: absolute;
  bottom: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.lightbox-nav .pill {
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.lightbox-nav .pill:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero { padding: clamp(9rem, 20vh, 14rem) var(--gutter) clamp(4rem, 9vh, 7rem); }

.contact-eyebrow { color: var(--gray-500); margin-bottom: 1.6rem; }

.contact-mail {
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  word-break: break-word;
  transition: color 0.3s;
}
.contact-mail:hover { color: var(--gray-500); }

.contact-socials { display: flex; gap: 0.5rem; margin-top: 2.4rem; }
.contact-socials .pill { color: var(--black); }
.contact-socials .pill:hover { background: var(--black); color: var(--white); }

.contact-form-wrap { padding: 0 var(--gutter) clamp(6rem, 12vh, 10rem); max-width: 44rem; }

.form-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 2.2rem;
}

.form-row { margin-bottom: 1.7rem; }

.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.55rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-300);
  padding: 0.55rem 0;
  border-radius: 0;
  transition: border-color 0.3s;
}

.form-row input:focus,
.form-row textarea:focus { outline: none; border-bottom-color: var(--blue); }

.form-row textarea { min-height: 8rem; resize: vertical; }

.form-submit { color: var(--black); }
.form-submit:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.form-status { margin-top: 1.3rem; font-size: 0.9rem; color: var(--gray-700); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal {
  padding: clamp(9rem, 18vh, 13rem) var(--gutter) clamp(5rem, 11vh, 8rem);
  max-width: 46rem;
}

.legal h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 2.3rem;
}

.legal h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 2.2rem 0 0.7rem;
}

.legal p, .legal li { font-size: 0.95rem; color: var(--gray-700); margin-bottom: 0.8rem; }
.legal ul { padding-left: 1.2rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .works-list[data-layout="grid"] { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  /* hero: collapse the mid-right statement so the title breathes */
  .hero-statement { display: none; }
  .works-head { flex-direction: column; align-items: flex-start; }
  .works-list[data-layout="stack"] .work-cover[data-ratio="16/9"] { aspect-ratio: 4 / 5; }
  .work-meta { gap: 0.4rem 1.6rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .lightbox-nav { display: none; }

  /* No sideways scroll: keeps the fixed full-screen menu overlay centered
     instead of drifting off to the side on phones. */
  html, body { overflow-x: hidden; }

  /* Nav: shrink gaps/padding so the whole bubble fits inside the phone
     viewport (was overflowing, which both squashed the logo and pushed
     the deployed menu to the side). */
  .nav-bubble { gap: 0.7rem; padding: 0.4rem 0.85rem; max-width: 100%; }
  .nav-right { gap: 0.3rem; }
  .nav-right .pill:not(.pill-round) { padding: 0.5rem 0.8rem; }

  /* Logo: never let flexbox compress it — keep its real aspect ratio. */
  .nav-logo-link { flex-shrink: 0; }
  .nav-logo-img  { flex-shrink: 0; object-fit: contain; width: auto; height: 1.4rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
