/* ============================================================
   nazim.com.ar — style.css (consolidated)
   Fixed header + always-visible right-stacked menu, fullscreen
   parallax video sections with a 3-layer media stack, About
   "Solid Design" (landscape + portrait layouts) with long-form
   bio, Contact with pinned footer.
   Full Helvetica Neue LT Std family.
   ============================================================ */

/* ---------- Helvetica Neue LT Std — full family ---------- */
@font-face {
  font-family: "Helvetica Neue LT Std";
  src: url("../assets/fonts/HelveticaNeueLTStd-UltLt.woff2") format("woff2");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue LT Std";
  src: url("../assets/fonts/HelveticaNeueLTStd-Th.woff2") format("woff2");
  font-weight: 250; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue LT Std";
  src: url("../assets/fonts/HelveticaNeueLTStd-Lt.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue LT Std";
  src: url("../assets/fonts/HelveticaNeueLTStd-Roman.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue LT Std";
  src: url("../assets/fonts/HelveticaNeueLTStd-Md.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
/* Stopgap for Bold 700: the family zip has no upright 75 Bold, so the
   old Helvetica LT Std Bold fills the slot (visually near-identical).
   When you get HelveticaNeueLTStd-Bd.otf, convert and swap this file. */
@font-face {
  font-family: "Helvetica Neue LT Std";
  src: url("../assets/fonts/HelveticaLTStd-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue LT Std";
  src: url("../assets/fonts/HelveticaNeueLTStd-Blk.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}


/*
200 → 25 Ultra Light   (nuevo, para tipografía gigante)
250 → 35 Thin
300 → 45 Light
400 → 55 Roman
500 → 65 Medium
700 → Bold (el stopgap de la familia vieja)
900 → 95 Black
*/


/* ---------- tokens ---------- */
:root {
  --bg:        #0d2a47;
  --text:      #ffffff;
  --text-dim:  rgba(255, 255, 255, 0.78);
  --line:      rgba(255, 255, 255, 0.25);
  --accent:    #9ec9f5;

  --font-sans: "Helvetica Neue LT Std", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max-w: 1100px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
img, video { max-width: 100%; display: block; }

/* ============================================================
   4-POINT RAMP — one base colour, four lightness stops
   Edit --ramp-h to re-tint the WHOLE site; the four --ramp-l*
   values are lightness adjustments of that same colour.
   Flip with .flip-h / .flip-v (independent, can combine).
   ============================================================ */
:root {
  --ramp-h:  205;    /* hue: the colour of the whole site */
  --ramp-s:  57%;    /* saturation */

  --ramp-l1: 55;     /* corner A — TOP LEFT     */
  --ramp-l2: 30;     /* corner B   TOP RIGHT    */
  --ramp-l3: 35;     /* corner C   BOTTOM LEFT  */
  --ramp-l4: 50;     /* corner D — BOTTOM RIGHT */
  --ramp-lb: 21;     /* base fill (centre)   */

  /* --ramp-lo shifts every stop up or down together, so the whole
     ramp gets lighter or darker while keeping its internal contrast.
     The three pickers in Contact write --ramp-h, --ramp-s and this. */
  --ramp-lo: 0;

  --ramp-c1: hsl(var(--ramp-h), var(--ramp-s), calc((var(--ramp-l1) + var(--ramp-lo)) * 1%));
  --ramp-c2: hsl(var(--ramp-h), var(--ramp-s), calc((var(--ramp-l2) + var(--ramp-lo)) * 1%));
  --ramp-c3: hsl(var(--ramp-h), var(--ramp-s), calc((var(--ramp-l3) + var(--ramp-lo)) * 1%));
  --ramp-c4: hsl(var(--ramp-h), var(--ramp-s), calc((var(--ramp-l4) + var(--ramp-lo)) * 1%));
  --ramp-cb: hsl(var(--ramp-h), var(--ramp-s), calc((var(--ramp-lb) + var(--ramp-lo)) * 1%));

  /* corner anchors — the flip classes swap these */
  --rx-a: 0%;   --rx-b: 100%;
  --ry-a: 0%;   --ry-b: 100%;
}

/* The gradient must live HERE, not in :root: a custom property's
   var() references resolve on the element where it's DECLARED, so
   a pre-composed --ramp-bg would freeze the :root anchors and the
   flip classes would have no effect. Written literally, each .ramp
   element reads its own --rx-* / --ry-* values. */
.ramp,
.project.ramp {
  /* corner anchors — the flip classes swap these */
  --rx-a: 0%;   --rx-b: 100%;
  --ry-a: 0%;   --ry-b: 100%;

  background-color: var(--ramp-cb);
  background-image:
    radial-gradient(at var(--rx-a) var(--ry-a), var(--ramp-c1) 0%, transparent 65%),
    radial-gradient(at var(--rx-b) var(--ry-a), var(--ramp-c2) 0%, transparent 65%),
    radial-gradient(at var(--rx-a) var(--ry-b), var(--ramp-c3) 0%, transparent 65%),
    radial-gradient(at var(--rx-b) var(--ry-b), var(--ramp-c4) 0%, transparent 65%);
}

.ramp.flip-h { --rx-a: 100%; --rx-b: 0%; }
.ramp.flip-v { --ry-a: 100%; --ry-b: 0%; }

/* page-level ramp (work pages): stays put while the page scrolls */
body.ramp { background-attachment: fixed; }

/* screen-reader-only text (keeps the H1 keyword-rich, invisible) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   FIXED HEADER — logo left, menu stacked top-right
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  /* the menu is a vertical stack of three items: centring would push
     the logo down against it, so both columns start at the top and the
     logo lines up with "Works" */
  align-items: flex-start;
  justify-content: space-between;
  min-height: 4.5rem;
  /* 1.45rem places the first line exactly where the work pages put it:
     there the line is centred inside 4.5rem, which lands at that offset */
  padding: 1.45rem var(--pad) 0.75rem;
  background: linear-gradient(to bottom, rgba(8, 25, 45, 0.45), rgba(8, 25, 45, 0));
}
.logo {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.logo .light  { font-weight: 250; }
.logo strong  { font-weight: 400; } /* "Design Portfolio" in Roman */

/* ---------- menu: always visible, 3 stacked items ---------- */
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}
.menu a {
  display: block;
  padding: 0.05rem 0;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
.menu a:hover { color: #fff; }
.menu a.active { font-weight: 700; color: #fff; } /* current section, set by scrollspy */

/* ============================================================
   PROJECT FEED — fullscreen parallax sections
   ============================================================ */
.project {
  position: relative;
  height: 100svh;
  overflow: hidden;          /* clips the oversized parallax media */
  background: var(--bg);
}
/* Media wrapper is 130% tall; JS slides it -15%..+15% while scrolling */
.media {
  position: absolute;
  left: 0; right: 0;
  top: 0%;
  height: 100%;
  will-change: transform;
}

/* ---------- 3-LAYER MEDIA STACK ----------
   Bottom to top, each layer is the fallback for the next:
     1. gradient ramp  -> the section's own background (class "ramp")
     2. still image    -> <img class="still">, removed by JS if missing
     3. video          -> fades in only once it actually plays
   Backgrounds stay transparent so a missing layer reveals the one below. */
.media .still,
.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

/* per-video framing: each section sets its own custom properties.
   --v-pos     = object-position "X% Y%"  (shifts only on the axis that overflows)
   --v-x/--v-y = translation, % of the box (works on BOTH axes; needs zoom)
   --v-scale   = zoom (1 = none)
   The -p variants apply on PORTRAIT viewports; if omitted,
   they fall back to the landscape values.
   Still and video share them, so both layers stay aligned. */
.media .still,
.media video {
  object-position: var(--v-pos, 50% 50%);
  transform: translate(var(--v-x, 0%), var(--v-y, 0%)) scale(var(--v-scale, 1));
}
@media (orientation: portrait) {
  .media .still,
  .media video {
    object-position: var(--v-pos-p, var(--v-pos, 50% 50%));
    transform: translate(var(--v-x-p, var(--v-x, 0%)),
                         var(--v-y-p, var(--v-y, 0%)))
               scale(var(--v-scale-p, var(--v-scale, 1)));
  }
}

/* the video appears once it actually starts playing (JS adds .ready).
   A single video fades in over the still; a SPLIT one cuts, because a
   crossfade would put two parts on screen at once and let frames of
   the next one bleed through at the handover. */
.media video { opacity: 0; transition: opacity 0.6s ease; }
.media video.ready { opacity: 1; }
.media video[data-seq],
.media video[data-seq] ~ video { transition: none; }

.project-title {
  position: absolute;
  left: var(--pad);
  bottom: 1.25rem;
  z-index: 2;
  margin: 0;
  font-size: clamp(1.1rem, 1vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.project-title a { color: var(--text); text-decoration: none; }
.project-title a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ============================================================
   ABOUT — point cloud over the ramp, "Solid Design" composition
   Base rules = LANDSCAPE layout:
     tagline above the display title, photo on the right with the
     caption and short bio to its left, long-form bio underneath.
   The portrait layout is restored in the responsive block at the
   end of this file.
   ============================================================ */
.about {
  height: auto;              /* can grow past 100svh on small screens */
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.about-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 6rem var(--pad) 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2.25rem;
}

/* flex so the tagline can be reordered above the title */
.solid {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.solid .display {
  display: block;
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.solid .thin { display: block; font-weight: 200; }
.solid .bold { display: block; font-weight: 500; }

/* Contact only: "GET IN TOUCH" reads as ONE line in landscape.
   display:inline lets both words flow together; the space already
   present between the two spans in the HTML separates them.
   The responsive block further down puts them back on two lines. */
.contact .solid .thin,
.contact .solid .bold { display: inline; }
.solid .tagline {
  display: block;
  order: -1;                 /* landscape: sits ABOVE the big title */
  margin-bottom: 1.1rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;          /* Medium: mas que Roman, menos que Bold */
  line-height: 1.45;
}

/* the "_" signature under each block */
.solid .tagline::after,
.portrait-caption::after,
.bio::after {
  content: "_";
  display: block;
  font-weight: 100;
  line-height: 0.5;
}

/* ---------- photo + caption + short bio ---------- */
.about-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;   /* text | photo */
  align-items: end;        /* text sits on the photo's bottom edge */
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
}
.about-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-bottom: 0.5rem;   /* nudge the whole text block up */
}

/* landscape: text left, photo right.
   The DOM has the photo FIRST (so the portrait layout can stack it
   on top), so the columns are assigned explicitly here. */
.about-row .portrait { grid-column: 2; grid-row: 1; }
.about-col           { grid-column: 1; grid-row: 1; }

.portrait { margin: 0; }
.portrait img {
  width: min(320px, 70vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(1);       /* any color photo becomes b/w */
  margin-left: auto;
}

.portrait-caption { margin: 0; }
.portrait-caption .name,
.portrait-caption .role {
  display: block;
  font-size: clamp(1.25rem, 1.6vw, 2.125rem);
  line-height: 1.3;
  letter-spacing: 0.025em;
}
.portrait-caption .name { font-weight: 250; color: var(--text-dim); }
.portrait-caption .role { font-weight: 500; }

.bio {
  max-width: 34ch;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 250;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.01em;
}
.bio strong { font-weight: 700; }

/* rule between the caption and the short bio (landscape only) */
.about-col .bio {
  border-top: 0px solid var(--line);
  padding-top: 1.75rem;
  margin-top: 1.75rem;
}

/* ---------- long-form biography ---------- */
.about-bio {
  width: 100%;
  margin-top: clamp(2rem, 7vh, 4.5rem);
}
.about-bio .label {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about-bio p {
  max-width: 78ch;
  margin: 0 0 1.25rem auto;   /* auto on the left keeps it right-aligned */
  font-weight: 250;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.about-bio p:last-child { margin-bottom: 0; }

/* ============================================================
   CONTACT — reuses .about layout, footer pinned at the bottom
   ============================================================ */
.contact .about-content { padding-bottom: 7rem; } /* room for the footer */

.contact-links {
  margin: 0;
  font-size: 1.25rem;
  line-height: 2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.contact-links a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.contact-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* WhatsApp glyph next to the phone number: same colour as the text,
   sized in em so it always matches whatever the line is set at */
.contact-links .wa {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  white-space: nowrap;
}
.contact-links .wa svg {
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
  flex: none;
}

/* footer lives INSIDE the contact section, anchored at its bottom,
   text aligned to the same right edge as the About/Contact content */
.footbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  font-size: 0.9rem;
  color: var(--text-dim);
  background: linear-gradient(to top, rgba(8, 25, 45, 0.45), rgba(8, 25, 45, 0));
}
.footbar p {
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 1.25rem var(--pad);
  text-align: right;
}

/* ============================================================
   INNER PAGES (assets/work/ archive + project pages)
   ============================================================ */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem var(--pad);
  background: rgba(10, 34, 60, 0.55);
}
.site-header .logo { font-size: 1rem; }
.site-header a.logo, .site-header .logo a { color: var(--text); text-decoration: none; }
.site-header nav a { margin-left: 1.5rem; text-decoration: none; color: var(--text-dim); }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--text); }

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) var(--pad) 2rem;
}
.hero--small { padding-top: 2.5rem; }
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.08; margin: 0 0 1rem; }
.lede { max-width: 58ch; color: var(--text-dim); font-size: 1.1rem; margin: 0; }

.work-grid { max-width: var(--max-w); margin: 0 auto; padding: 2rem var(--pad) 3rem; }
.work-grid h2 { font-size: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin: 0 0 1.5rem; }
.projects {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card a {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease;
}
.project-card a:hover { border-color: var(--text); }
.project-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.project-card h3 { margin: 0.9rem 1rem 0.25rem; font-size: 1.05rem; }
.project-card .meta { margin: 0 1rem 1rem; font-size: 0.8rem; color: var(--text-dim); }
.project-card .k { color: var(--accent); margin-right: 0.25em; }
.project-card .k:not(:first-child) { margin-left: 0.9em; }
.all-link { font-size: 0.9rem; }

.project-page { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad) 3rem; }
.breadcrumb { font-size: 0.85rem; color: var(--text-dim); padding: 1.5rem 0; }
.breadcrumb a { color: var(--text-dim); }
.project-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin: 0; }

.specs {
  margin: 1.5rem 0 2.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}
.specs > div { display: grid; grid-template-columns: 9rem 1fr; border-bottom: 1px solid var(--line); }
.specs > div:last-child { border-bottom: none; }
.specs dt {
  padding: 0.6rem 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  border-right: 1px solid var(--line);
}
.specs dd { margin: 0; padding: 0.55rem 1rem; }

figure { margin: 2rem 0; }
figcaption { font-size: 0.8rem; color: var(--text-dim); padding-top: 0.5rem; }
.project-body { max-width: 65ch; }
.project-body h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.project-body p { color: var(--text-dim); }
.project-nav { padding: 2rem 0; }
.project-nav a { font-size: 0.9rem; text-decoration: none; }

/* let pointer events pass through to the globe canvas,
   but keep links and buttons clickable */
.about-content { pointer-events: none; }
.about-content a { pointer-events: auto; }

/* ---------- interactive point-cloud scenes ---------- */
.cloud {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
  touch-action: pan-y;
}
.cloud.grabbing { cursor: grabbing; }
.cloud canvas { display: block; width: 100%; height: 100%; }

.site-footer { border-top: 1px solid var(--line); padding: 1.5rem var(--pad); font-size: 0.85rem; color: var(--text-dim); }

/* ============================================================
   PORTRAIT / NARROW — single stacked column
   The comma means: portrait screens of ANY width, or any narrow
   screen. Overrides repeat the exact base selectors, because a
   media query adds NO specificity of its own.
   ============================================================ */
@media (max-width: 800px) {
  /* inner pages: spec table collapses to one column */
  .specs > div { grid-template-columns: 1fr; }
  .specs dt { border-right: none; padding-bottom: 0; }

  /* header: smaller logo and menu (the menu is 3 tall lines) */
  .logo { font-size: 0.95rem; }
  .menu a { font-size: 0.95rem; }

  /* clear the fixed menu at the top */
  .about-content {
    padding-top: 8rem;
    gap: 1.5rem;
  }
  .contact .about-content {
    padding-bottom: 5.5rem;
  }

  /* display type: smaller ceiling so long words like ANIMATION breathe */
  .solid .display { font-size: clamp(2.4rem, 20.5vw, 4rem); }

  /* tagline goes back BELOW the big title */
  .solid .tagline {
    order: 0;
    margin-top: 1.1rem;
    margin-bottom: 0;
    font-size: 1.15rem;
  }

  /* photo, then caption, then bio — one column */
  .about-row {
    grid-template-columns: 1fr;
    justify-items: end;
    gap: 1.25rem;
  }
  .about-row .portrait { grid-column: auto; grid-row: auto; order: -1; }
  .about-col           { grid-column: auto; grid-row: auto; }

  /* portrait photo: was eating half the screen */
  .portrait img { width: min(210px, 52vw); }
  .portrait-caption .name,
  .portrait-caption .role { font-size: 1.3rem; }

  /* no rule above the short bio in this layout */
  .about-col .bio {
    border-top: none;
    padding-top: 0;
    margin-top: 0.75rem;
  }

  .about-bio p { font-size: 0.95rem; }

  /* narrow screens: "GET IN TOUCH" goes back to two lines */
  .contact .solid .thin,
  .contact .solid .bold { display: block; }

  /* keep the point cloud from competing with the text */
  /*.cloud { opacity: 0.65; }*/
}

/* ============================================================
   SITE FOOTER — cold data, black background, white type
   ============================================================ */
.site-footer-full {
  background: #000;
  color: #fff;
  padding: clamp(3rem, 8vh, 5.5rem) var(--pad) 2rem;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
}
.footer-label {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 250;
  line-height: 1.9;
}
.footer-col a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.footer-col a:hover { opacity: 0.6; text-decoration: underline; text-underline-offset: 4px; }
.footer-plain { color: rgba(255, 255, 255, 0.65); }

.footer-bottom {
  max-width: var(--max-w);
  margin: clamp(2.5rem, 6vh, 4rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 250;
  color: rgba(255, 255, 255, 0.55);
}
.footer-copy, .footer-meta { margin: 0; }
.footer-meta a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.footer-meta a:hover { color: #fff; }

@media (max-width: 900px) {
  .site-footer-full { padding-top: 3rem; }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

/* ============================================================
   COLOUR PICKERS (Contact) — hue, saturation, lightness
   Each writes a custom property on <html>, so every gradient in
   the site recomputes at once. Top level on purpose: nested in a
   media query they only styled narrow screens.
   ============================================================ */
.hue-picker {
  width: 100%;
  max-width: none;
  margin: 0 0 3.5rem auto;
  pointer-events: auto;      /* .about-content disables events; re-enable here */
}
.hue-label {
  margin: 0 0 2.5rem;
  font-size: clamp(1.6rem, 6vw, 3.75rem);
  font-weight: 250;
  line-height: 1.15;
  color: var(--text-dim);
}

.hue-picker .row + .row { margin-top: 1.6rem; }

#hue, #sat, #lig {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 2px;
  margin: 0;
  border: none;
  cursor: pointer;
}

/* each track previews what its own slider does, using the values the
   other two currently hold */
#hue {
  background: linear-gradient(to right,
    hsl(0, 70%, 60%), hsl(60, 70%, 60%), hsl(120, 70%, 60%),
    hsl(180, 70%, 60%), hsl(240, 70%, 60%), hsl(300, 70%, 60%), hsl(360, 70%, 60%));
}
#sat {
  background: linear-gradient(to right,
    hsl(var(--ramp-h), 0%, calc((var(--ramp-l3) + var(--ramp-lo)) * 1%)),
    hsl(var(--ramp-h), 100%, calc((var(--ramp-l3) + var(--ramp-lo)) * 1%)));
}
#lig {
  background: linear-gradient(to right,
    hsl(var(--ramp-h), var(--ramp-s), 12%),
    hsl(var(--ramp-h), var(--ramp-s), 50%),
    hsl(var(--ramp-h), var(--ramp-s), 88%));
}

#hue:focus-visible,
#sat:focus-visible,
#lig:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; }

/* the thumb needs one rule per engine: a single selector list would
   invalidate the whole rule in the browser that knows only the other */
#hue::-webkit-slider-thumb,
#sat::-webkit-slider-thumb,
#lig::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: none;
  background: var(--text);
  cursor: grab;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
#hue::-moz-range-thumb,
#sat::-moz-range-thumb,
#lig::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: none;
  background: var(--text);
  cursor: grab;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
#hue:active::-webkit-slider-thumb,
#sat:active::-webkit-slider-thumb,
#lig:active::-webkit-slider-thumb { cursor: grabbing; }
#hue:active::-moz-range-thumb,
#sat:active::-moz-range-thumb,
#lig:active::-moz-range-thumb { cursor: grabbing; }

@media (max-width: 900px) {
  .hue-label { font-size: clamp(1.4rem, 10vw, 2rem); margin-bottom: 1.6rem; }
  .hue-picker { margin-bottom: 2.5rem; }
  .hue-picker .row + .row { margin-top: 1.3rem; }
}

/* ============================================================
   DEBUG OVERLAY (main.js - debugMedia)
   ============================================================ */
.media-debug {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 90;
  max-width: 92%;
  padding: 0.45rem 0.8rem;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.8);
  color: #b8ff9e;
  font: 12px/1.5 "Cascadia Code", Consolas, monospace;
  white-space: pre;
  text-align: left;
  pointer-events: none;
  text-shadow: none;
}
.debug-media .cloud { opacity: 0.35; }


/* social icons: official glyphs in white, sized in em so they follow
   the surrounding text if the footer type ever changes */
.footer-social {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-social a {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover { opacity: 1; transform: translateY(-2px); }
.footer-social svg { width: 100%; height: 100%; fill: currentColor; display: block; }