/* GOBO site styles — header, nav, hero, content, portfolio, footer (Phase 4 build) */

/* ===== header ===== */
/* Inside-page header: black bar, white logo + white nav, content anchored left.
   Home overrides all of this below (.page-home) for its transparent hero look. */
.site-header {
  background: var(--color-black);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  position: sticky; top: 0; z-index: 100;
}
.site-header__row {
  display: flex; align-items: center; justify-content: flex-start; /* logo + nav, both left */
  gap: clamp(2rem, 6vw, 5rem); padding-top: .45rem; padding-bottom: .6rem;
}
.site-header__logo { flex: 0 0 auto; }
.site-header__logo .gobo-logo { display: block; line-height: 0; }
.site-header__logo .gobo-logo svg { display: block; width: 68px; height: 68px; }
/* brand badge is white on the black header */
.site-header__logo .gobo-logo svg path, .site-header__logo .gobo-logo svg circle { fill: #fff; }

/* ===== nav ===== */
.menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.75rem; margin: 0; padding: 0; }
.menu a {
  font-family: 'Oswald-Medium', sans-serif; text-transform: uppercase; font-weight: 500;
  letter-spacing: 2px; font-size: 1.05rem; text-decoration: none; color: rgba(255, 255, 255, .94);
  padding: .25rem 0;
  /* smooth 'lava-lamp' underline: a line that swells in from the left
     instead of a border that snaps on/off */
  background-image: linear-gradient(var(--color-blue), var(--color-blue));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size var(--dur-base) var(--ease-out), color var(--dur-quick) var(--ease);
}
.menu a:hover { color: #fff; background-size: 100% 2px; }
/* current page — green text to match the underline accent */
.menu li.currentpage a { color: var(--color-blue); background-size: 100% 2px; }

/* ===== hero (home) ===== */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 72vh; overflow: hidden; color: var(--color-white); padding: 0;
  background-color: #0b0f16;
}
.hero__bg {
  position: absolute;
  top: -25%; left: 0; right: 0;   /* over-scan: lets the image travel slower than the page without showing gaps */
  height: 150%;
  opacity: .9;                    /* slightly darker over the hero's dark backing */
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero__rain {
  /* faint canvas rain over the artwork, under the hero text (z 2) */
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; text-align: center; padding: var(--space-gutter); max-width: 900px; transform: translateY(-5vh); }
.hero__logo { display: inline-block; width: min(40vw, 320px); height: auto; color: var(--color-black); }
.hero__logo path { fill: currentColor; }
.hero h1, .hero .hero-heading {
  font-family: var(--font-light); text-transform: none; letter-spacing: 0;
  font-weight: 300; color: var(--color-white); font-size: clamp(1.4rem, 3vw, 2.2rem);
}
.hero .hero-heading { margin: 1.25rem auto 0; max-width: 46ch; text-shadow: 0 1px 14px rgba(0,0,0,.6); font-size: clamp(1.15rem, 2.4vw, 1.7rem); }

/* ===== content ===== */
/* generous section padding — the single biggest thing that makes a layout
   read as considered rather than crowded */
.inside { padding: var(--space-xl) 0; }
.inside .heading { margin-bottom: var(--space-md); }
.inside h2, .inside h3, .inside h4 { font-family: var(--font-condensed); text-transform: uppercase; }
/* section leads get air above them — but never at the very top of a page */
.inside h2:not(:first-child),
.inside h3:not(:first-child),
.inside h4:not(:first-child) { margin-top: var(--space-lg); }
/* h4 content headings lead at the same size on every inside page (About's
   columns and single-column pages like Terms alike) — no underline */
.inside h4 { font-size: clamp(1.6rem, 3.3vw, 2.375rem); }
/* deeper content headings (h5) switch to the body sans (Libre Franklin) at a
   semibold weight, normal case — a distinct, softer hierarchy for nested
   headings on pages like Terms. */
.inside h5 {
  font-family: var(--font-regular);
  font-weight: 600;
  text-transform: none;
  letter-spacing: .2px;
  font-size: 1.2rem;
}
.inside p { color: var(--color-dark-grey); }
/* single-column pages (Terms, category intros): keep the line length readable
   instead of running the full width of the container.
   NOT the two UI lines that carry a rule across them — .page-back (the closing
   back link) and .page-updated — because constraining those cuts their border
   short: the back link's rule was rendering at 72% of the container. */
.inside > .container-fluid > p:not(.page-back):not(.page-updated),
.inside > .container-fluid > ul:not(.portfolio-grid):not(.ramblings-grid),
.inside > .container-fluid > ol { max-width: var(--measure); }

/* ===== portfolio index ===== */
/* The portfolio + ramblings indexes share ONE tile grid (three-up, big thumbs). */
.portfolio-grid,
.ramblings-grid {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;                       /* airy — the whitespace does the work */
}
.portfolio-grid li,
.ramblings-grid li { display: flex; }        /* lets the white panel stretch to the
                                               tallest tile in the same row */
.portfolio-grid li a,
.ramblings-grid li a {
  flex: 1; display: flex; flex-direction: column;  /* thumbnail, then the panel */
  text-decoration: none; color: var(--color-black);
}
.portfolio-grid .thumb,
.ramblings-grid .thumb {
  flex: none;                                /* flex must never squash the image */
  aspect-ratio: 4 / 3; overflow: hidden;
  /* placeholder tone, NOT --color-light-grey: that is the page backdrop, so an
     item with no image would show no box at all */
  background: var(--color-hairline); position: relative;
}
/* Per-project colour wash, revealed over the thumbnail on hover. The colour is
   each item's own `colour` field, written inline by tileGrid(), so every tile
   lights up in its own brand colour — the effect the previous site had.
   pointer-events:none so it never blocks the link it sits inside.
   The copy sits at the TOP-LEFT of the wash, over the image, the way the
   previous site's did. */
.tile-tint {
  position: absolute; inset: 0;
  opacity: 0;
  display: flex; align-items: flex-start;
  padding: clamp(1.1rem, 3vw, 1.9rem);
  transition: opacity var(--dur-quick) var(--ease);
  pointer-events: none;
}
.tile-excerpt {
  display: block;
  color: #fff;                               /* white ON the colour, as before */
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  line-height: 1.45;
}
/* Fallback wash for an item whose `colour` is empty or not a valid hex — a new
   project someone forgot to fill in. Uses --color-mid-grey, the same tone as the
   quote band and footer, so an unconfigured tile still reads as part of the
   design rather than broken.
   Grey rather than the mint for a measurable reason: the copy on this wash is
   WHITE, and white on this grey is 3.5:1 whereas white on the mint accent is only
   1.8:1 — the same unreadable pairing the contact button's hover has. */
.tile-tint--fallback { background: var(--color-mid-grey); }
.portfolio-grid li a:hover .tile-tint,
.ramblings-grid li a:hover .tile-tint,
.portfolio-grid li a:focus-visible .tile-tint,
.ramblings-grid li a:focus-visible .tile-tint { opacity: .9; }
.portfolio-grid img,
.ramblings-grid img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.2, .6, .2, 1);   /* slow, unhurried drift */
}
.portfolio-grid li a:hover img,
.ramblings-grid li a:hover img { transform: scale(1.045); }
/* The white panel under every thumbnail — the tile treatment the previous site
   had: categories lead in the larger, LIGHTER line and the title sits under them.
   Both lines are blockified already (they are flex items), so no display needed.
   --font-light is a real drawn Light face, not a synthesised one.
   flex:1 is what stops a one-line panel leaving a stub of white beside a
   two-line one in the same row. */
.tile-text {
  flex: 1;
  display: flex; flex-direction: column; gap: .5rem;
  background: #fff;
  padding: clamp(1.1rem, 1.8vw, 1.45rem) clamp(1.05rem, 1.7vw, 1.35rem) clamp(1.2rem, 2vw, 1.6rem);
}
.tile-cats {
  font-family: var(--font-light); text-transform: uppercase;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.22;
  letter-spacing: 1.1px; color: var(--color-dark-grey);
}
/* The title is deliberately INERT — no accent rule, no colour change, no hover
   styling at all. The wash on the thumbnail is the entire hover response for a
   tile. (The rule that used to sit under here existed only to draw out on hover,
   so taking away the hover took the rule with it.) */
.tile-title {
  font-family: var(--font-condensed); text-transform: uppercase;
  font-size: clamp(.82rem, 1.1vw, .95rem); line-height: 1.2;
  letter-spacing: 1.6px; color: var(--color-black);
}

/* ===== portfolio detail ===== */
/* One big full-width image per row, each at its own proportions — not cropped
   into a grid of squares. (.portfolio-categories retired; the categories now
   sit in the heading band, see .heading-body / .heading-panel.) */
.portfolio-gallery { margin: 0; }
.portfolio-gallery figure { margin: 0 0 clamp(1.5rem, 3.5vw, 3rem); }
.portfolio-gallery figure:last-child { margin-bottom: 0; }
.portfolio-gallery img { display: block; width: 100%; height: auto; }

/* ===== footer ===== */
.site-footer {
  background: var(--color-mid-grey);      /* #888 — matches the quote-block bar */
  color: #fff;
  border-top: 0;                          /* dark footer needs no light border */
  margin-top: 0;                          /* content above already provides spacing */
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.site-footer p, .site-footer .footer-message { text-align: center; color: rgba(255, 255, 255, .85); margin-top: 1.5rem; font-size: .7rem; }
.site-footer .footer-message { max-width: 60ch; margin: 0 auto 1rem; }

/* ===== page interior heading (inner pages) ===== */
.page-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 1.5px;
  padding-bottom: .6rem;
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-blue);
}

/* (home content grid + column colours live in the .home-grid section below) */

/* ===== hero scroll cue — mouse with animated wheel (pure CSS) ===== */
.hero__cue {
  position: absolute;
  right: var(--hero-edge, clamp(1.25rem, 4vw, 3rem));
  bottom: clamp(1.5rem, 5vh, 3rem);
  width: 24px;
  height: 40px;
  display: block;
  opacity: .95;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35));
}
/* mouse body */
.hero__cue::before {
  content: "";
  position: absolute; inset: 0;
  border: 2.5px solid rgba(255, 255, 255, .92);
  border-radius: 13px;
}
/* animated scroller wheel — kept at its original size */
.hero__cue::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: rgba(255, 255, 255, .92);
  border-radius: 3px;
  animation: mousewheel 1.6s ease-in-out infinite;
}
@keyframes mousewheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ===== footer nav ===== */
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.25rem, 3vw, 2.25rem); margin: 0; padding: 0; }
.footer-nav a { font-family: 'Oswald-Medium', sans-serif; text-transform: uppercase; font-weight: 500; letter-spacing: 1.5px; font-size: .85rem; text-decoration: none; color: #fff; opacity: .9; transition: color var(--dur-quick) var(--ease), opacity var(--dur-quick) var(--ease); }
.footer-nav a:hover { color: var(--color-blue); opacity: 1; }
.footer-nav li.currentpage a { color: var(--color-blue); opacity: 1; }

/* ===== portfolio category page ===== */
.portfolio-cat-intro { color: var(--color-dark-grey); }

/* ===== portfolio detail extras ===== */
/* The closing "Back to …" link — used by BOTH the portfolio project pages and
   the Ramblings articles — carries NO bespoke styling on purpose: it is an
   ordinary content link, so it takes the standard `a` colour (--color-link) and
   the standard hover.
   It used to be a small condensed uppercase grey link, which made the same kind
   of destination look like a different species from every other link on the site.
   Left unstyled rather than re-declared in green, so it can never drift out of
   step with the standard link colour. */

/* ===== last-reviewed line ===== */
.page-updated { color: var(--color-mid-grey); font-size: .85rem; font-style: italic; border-top: 1px solid var(--color-hairline); padding-top: 1rem; margin-top: 2rem; }

/* ===== ramblings / articles ===== */
/* a written resource: a touch larger than body copy, a contained measure,
   and quiet inline links marked by a brand-green hairline rather than colour */
.article-body { font-size: 1.1875rem; }
.article-body p { color: var(--color-dark-grey); }
.article-body p,
.article-body ul,
.article-body ol { max-width: var(--measure); }
.article-body > :first-child { margin-top: 0; }
.article-body h2, .article-body h3, .article-body h4 { margin-top: var(--space-lg); }
.article-body a {
  color: var(--color-dark-grey);
  border-bottom: 1px solid var(--color-blue);
  padding-bottom: 1px;
  transition: color var(--dur-quick) var(--ease), border-color var(--dur-quick) var(--ease);
}
.article-body a:hover { color: var(--color-black); border-bottom-color: var(--color-black); }

/* ===== contact form ===== */
.contact-form__form { display: grid; gap: 1rem; margin-top: .25rem; }
.contact-form__form label {
  font-family: var(--font-condensed); text-transform: uppercase;
  letter-spacing: 1.5px; font-size: .8rem; color: var(--color-dark-grey);
  margin-bottom: -0.6rem;
}
.contact-form__form input[type='text'],
.contact-form__form input[type='email'],
.contact-form__form input[type='tel'],
.contact-form__form textarea {
  width: 100%; padding: .7rem 1.1rem; font: inherit;
  color: var(--color-dark-grey); background: #fff;
  border: 1px solid var(--color-mid-grey); border-radius: 0;
}
.contact-form__form input:focus,
.contact-form__form textarea:focus { outline: none; border-color: var(--color-blue); }
.contact-form__form textarea { min-height: 180px; resize: vertical; }
.contact-form__submit {
  justify-self: start; font-family: var(--font-condensed); text-transform: uppercase;
  letter-spacing: 2px; font-size: .9rem; font-weight: 500; color: #fff;
  background: var(--color-black); border: 1px solid var(--color-black);
  padding: .6rem 1.6rem; cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease;
}
.contact-form__submit:hover { background: var(--color-blue); border-color: var(--color-blue); }
.contact-note { margin: 0 0 1rem; padding: .7rem 1rem; font-size: 1rem; }
.contact-note.error { color: var(--color-error); border-left: 3px solid var(--color-error); }
.contact-note.ok { color: var(--color-dark-grey); border-left: 3px solid var(--color-blue); }
.gobo-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.home-grid__col .contact-form h4 { margin-top: 0; }               /* line up with the Location heading in column 1 */
.home-grid__col .contact-form__heading { margin-bottom: 1.5rem; }
.contact-form__form label em {
  font-style: normal; text-transform: none; letter-spacing: 0;
  font-family: var(--font-regular); font-size: .75rem; color: var(--color-mid-grey);
}

/* ===== error 404 ===== */
.error-404__body { font-size: 1.1rem; }
.error-404__body p { color: var(--color-dark-grey); }
.error-404__body a { font-family: var(--font-condensed); text-transform: uppercase; letter-spacing: 1px; text-decoration: none; color: var(--color-black); border-bottom: 2px solid var(--color-blue); padding-bottom: 1px; }
.error-404__body a:hover { color: var(--color-link); }

/* ============================================================
   HOME — transparent header floating over the full-bleed hero,
   scrolling away with it like the hero logo. No bar, no logo,
   white nav at the left edge over the image.
   ============================================================ */

/* edge distance shared by the hero mouse-cue (right) — locked to the site
   gutter so the hero cues, header and content all sit on the same margin */
.page-home { --hero-edge: var(--space-gutter); }

/* header overlays the top of the hero and scrolls off with it
   (absolute, not fixed, so it leaves with the page) */
.page-home .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

/* nav anchors at the left edge (where the logo used to sit) */
.page-home .site-header__row {
  justify-content: flex-start;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: none;
  margin: 0;
  padding: 1.75rem var(--space-gutter) .75rem var(--hero-edge);
}

/* no header logo on the home page — the hero wordmark is the logo there */
.page-home .site-header__logo { display: none; }

/* brand nav reads white over the hero art */
.page-home .menu a { color: rgba(255, 255, 255, .94); }
.page-home .menu a:hover,
.page-home .menu li.currentpage a { color: #fff; }

/* hero fills the whole viewport, sitting behind the header */
.page-home .hero {
  width: 100%;
  min-height: 100vh;      /* desktop */
  min-height: 100svh;     /* mobile browser-chrome safe */
}

/* ===== page-load entrances (subtle; reduced-motion collapses these) =====
   Movement and opacity are animated SEPARATELY on purpose. Sharing one
   aggressive ease-out curve made the fade front-loaded — the wordmark hit
   68% opacity inside its first 158ms, so it "popped" into existence and then
   glided, rather than materialising. Split apart:
     · gobo-rise — a gentle decelerate, so it settles instead of landing
     · gobo-fade — a slower, more even ramp that finishes just after the
       movement, so the element arrives and then completes fading in.
   Same two animations everywhere, so home and inside pages share one rhythm. */
@keyframes gobo-rise {
  from { transform: translateY(2rem); }
  to   { transform: none; }
}
@keyframes gobo-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* nav rises up first, then the hero wordmark follows — the same rise rhythm
   the inside pages use (header row → quote type) */
.page-home .menu ul {
  animation: gobo-rise .7s var(--ease) both,
             gobo-fade .9s cubic-bezier(.4, 0, .2, 1) both;
}
.page-home .hero__logo {
  animation: gobo-rise .85s var(--ease) .35s both,
             gobo-fade 1.05s cubic-bezier(.4, 0, .2, 1) .35s both;
}

/* ===== inside-page entrances (rise up like the home logo) ===== */
body:not(.page-home) .site-header__row {
  /* nav lands first */
  animation: gobo-rise .7s var(--ease) both,
             gobo-fade .9s cubic-bezier(.4, 0, .2, 1) both;
}
/* the quote type rises in over the (already-present) grey band: h3 then author */
body:not(.page-home) .heading-body h3 {
  animation: gobo-rise .85s var(--ease) .35s both,
             gobo-fade 1.05s cubic-bezier(.4, 0, .2, 1) .35s both;
}
body:not(.page-home) .heading-body p {
  animation: gobo-rise .85s var(--ease) .5s both,
             gobo-fade 1.05s cubic-bezier(.4, 0, .2, 1) .5s both;
}

/* ============================================================
   Quote band — .quote-block > .container-fluid > .heading-body
   Outer wrapper spaces it from the hero/header. The grey panel
   (.heading-body) sits inside the same fluid container as the
   body content below, so its edges marry up with the main group.
   ============================================================ */
.quote-block {
  margin: clamp(2.5rem, 6vw, 5rem) 0 0;   /* space above the band */
  /* Height of the DARK half of the band. One value drives both cases, so an
     empty bar under a quote is exactly as tall as the panel holding a project
     body (measured: 118px at 1440px wide for one line of body text). */
  --band-dark-h: clamp(4.5rem, 10vw, 7.375rem);
}
.heading-body {
  background: var(--color-grey);            /* #ccc, as the original */
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--space-gutter);
  border-bottom: var(--band-dark-h, 6.25rem) solid var(--color-mid-grey); /* #888 bar */
}
.heading-body h3 {
  margin: 0;
  color: #fff;
  font-family: 'Oswald-Medium', sans-serif;             /* medium — lighter than semibold */
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 2px;                      /* a little air so it isn't chunky */
  word-spacing: -.02em;
  max-width: 75%;                           /* keep the type to 75% of the panel */
}
.heading-body p {
  margin: 1rem 0 0;
  color: #fff;
  font-family: var(--font-regular);
  font-size: clamp(.95rem, 1.2vw, 1.15rem);
  letter-spacing: .5px;
  max-width: 75%;
}

/* ---- heading band with content in the DARK part -------------------------
   The quote block's dark half is a plain border-bottom. When there is real
   content to show there the border collapses and a sibling panel takes over,
   so it reads as one band in two tones rather than a bar under a panel.
   (Portfolio detail pages: light = title + category, dark = the body copy.) */
.heading-body--flush {
  border-bottom: 0;
  padding-bottom: clamp(1.5rem, 3.5vw, 2.75rem);   /* tighten up to the panel */
}
.heading-panel {
  background: var(--color-mid-grey);               /* #888 — the same bar colour */
  color: #fff;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) var(--space-gutter);
  min-height: var(--band-dark-h, 6.25rem);        /* never shorter than the empty bar */
}
.heading-panel > :last-child { margin-bottom: 0; }
.heading-panel p { color: rgba(255, 255, 255, .93); max-width: 75%; }
.heading-panel a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.heading-panel a:hover { color: #fff; border-bottom-color: #fff; }

/* heading band / closing back link --------------------------------------- */
/* .page-back = the link that CLOSES a page (portfolio project, Ramblings
   article) — a hairline rule, then the way back. Shared by both. */
.page-back {
  margin-top: var(--space-xl);
  padding-top: var(--space-sm);
  /* WHITE hairline, not the grey --color-hairline: against the #eaeaea page a
     lighter-than-background rule reads as a soft highlight rather than a
     divider, which closes the page off more gently before the grey footer. */
  border-top: 1px solid var(--color-white);
}

/* ============================================================
   HOME: two-column content grid
   The home page body section does NOT use .inside (no big
   vertical padding) — spacing lives on the section instead.
   Body 1 and body 2 are grid columns inside the fluid container.
   ============================================================ */
.page-home .home-content {
  padding: var(--space-xl) 0;   /* vertical rhythm without .inside */
}
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);   /* generous gap between the two columns */
  align-items: start;
}
.home-grid__col > :first-child { margin-top: 0; }
.home-grid__col > :last-child  { margin-bottom: 0; }
.home-grid__col h2,
.home-grid__col h3,
.home-grid__col h4 {
  margin-top: 1.5rem;
}
.home-grid__col .home-body p,
.home-grid__col .home-about p { color: var(--color-dark-grey); }

/* ============================================================
   SCROLL REVEAL — the site's one motion device.
   A quiet rise + fade as a block enters view. The .reveal class is
   added by init.js and ONLY to blocks that start below the fold, so
   nothing can flash in above the fold and a JS-off page renders
   complete (nothing is ever hidden by the stylesheet alone).
   ============================================================ */
.reveal {
  opacity: 0;
  /* travel/duration/curve are custom properties so a variant can retune them
     WITHOUT re-declaring transform or transition. Overriding those directly
     would tie with `.reveal.is-in { transform: none }` on specificity and win
     by source order, freezing the element at its offset. */
  transform: translateY(var(--reveal-rise, 2rem));
  transition: opacity var(--reveal-dur, var(--dur-base)) var(--reveal-ease, var(--ease-out)),
              transform var(--reveal-dur, var(--dur-base)) var(--reveal-ease, var(--ease-out));
}
.reveal.is-in { opacity: 1; transform: none; }

/* Full-width portfolio images get a LONGER, gentler, deeper reveal than grid
   tiles — the jigsaw feel: a piece slides up and settles into place.
   Three reasons the shared timing read as a blink here:
     · there is far more of the page moving, so 0.6s is over before the eye
       has travelled with it;
     · --ease-out is heavily front-loaded (it reaches ~75% at 20% of the
       duration), so most of the fade happened in the first fraction;
     · a 32px rise is barely a seventh of these images, so it read as a fade.
   Bigger pieces travel further — that keeps the proportions in step with the
   smaller tiles rather than only scaling the duration. Tiles are left alone. */
.portfolio-gallery .reveal {
  --reveal-rise: 4rem;
  --reveal-dur: 1.1s;
  --reveal-ease: var(--ease);
}
