/* ==========================================================================
   Meldroch — Design layer
   --------------------------------------------------------------------------
   Loaded last on every page, after styles / animations / responsive.

   Two passes live here:
     2026-10-15  Apple-inspired type, the liquid-glass material, floating chrome.
     2026-10-30  The compact system: tighter rhythm, a corner-radius scale,
                 editorial page headers, bento and tile layouts, and a
                 smaller footer. Pages use less height without using
                 smaller reading text.

   Tokens (type, spacing, radius, glass) live in styles.css :root, with the
   phone scale in responsive.css. This file only consumes them.

   Rules of the system
     - Glass is for surfaces that float or group (nav, menus, cards that
       hold several things). Plain sections sit on the page, not in a box.
     - Radius steps down as surfaces nest: 30 featured › 24 large › 18 card
       › 12 well › 10 control, so inner corners stay concentric.
     - Gold marks what you can act on and what is selected. Never a wash.
   ========================================================================== */

/* ==========================================================================
   1. TYPOGRAPHY
   Tracking is size-specific and leading moves inversely to size.
   ========================================================================== */

body {
  letter-spacing: var(--track-body);
  font-optical-sizing: auto;
}

.hero-headline,
.page-hero h1,
h1 {
  letter-spacing: var(--track-h1);
  line-height: var(--lh-display);
  text-wrap: balance;
}

h2 {
  letter-spacing: var(--track-h2);
  line-height: var(--lh-h2);
  text-wrap: balance;
}

h3,
.card h3 {
  letter-spacing: var(--track-h3);
  line-height: var(--lh-h3);
}

p {
  text-wrap: pretty;
}

/* Small caps labels are the one place tracking opens up. */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--track-label);
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.section p,
.hero-sub,
.page-hero p {
  max-width: var(--measure);
}

/* ==========================================================================
   2. LIQUID GLASS
   One material. Saturation is what makes a translucent surface read as
   glass rather than a grey blur.
   ========================================================================== */

.glass,
.site-nav .nav-inner,
.nav-menu,
.nav-links.open {
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}

.site-nav.scrolled,
.store-pill,
.reel-modal,
.showcase-modal,
.lightbox,
.toast {
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) !important;
}

/* ==========================================================================
   3. FLOATING CHROME — the navigation
   A slim pill the content scrolls underneath. ~49px tall, 10px off the top.
   ========================================================================== */

.site-nav {
  padding-top: clamp(0.5rem, 1vw, 0.75rem);
  border-bottom: 0 !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.site-nav .nav-inner {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    var(--glass-shadow);
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.nav-brand { font-size: 0.95rem; }
.nav-brand img { width: 1.75rem; height: 1.75rem; }

.site-nav.scrolled .nav-inner {
  background: var(--glass-bg-strong);
  border-color: rgba(255, 255, 255, 0.17);
}

.site-nav.menu-open .nav-inner,
.site-nav.menu-open.scrolled .nav-inner {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-links { gap: 0.15rem; }

.nav-links a,
.nav-dropdown-toggle {
  letter-spacing: var(--track-body);
}

.nav-links a:not(.btn) { padding: 0.45rem 0.7rem; }
.nav-links a:not(.btn)::after { left: 0.7rem; right: 0.7rem; }
.nav-cta-item { margin-left: 0.5rem; }

.nav-menu {
  border-radius: var(--radius);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--glass-shadow);
  transform-origin: top center;
}

/* ==========================================================================
   4. HOME HERO
   Editorial, left-aligned, and only as tall as it needs to be: the
   headline, one short line, the inquiry box and two buttons. It no longer
   claims the whole first screen — the services bento peeks in below it on
   a laptop, which tells a visitor at once that there is more.
   ========================================================================== */

.hero {
  min-height: min(46rem, 86svh);
  padding-top: 6rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.hero-scroll { display: none; }

.hero-inner {
  text-align: left;
  align-items: flex-start;
  max-width: min(var(--container), 100%);
}

.hero-badge {
  margin-inline: 0;
  margin-bottom: 1.1rem;
}

.hero-headline {
  margin-inline: 0;
  max-width: none;
}

.hero h1.hero-headline {
  font-size: calc(var(--fs-hero) * 1.22);
  margin-bottom: 1.1rem;
}

.hero-sub {
  margin-inline: 0;
  margin-bottom: 1.6rem;
  max-width: 33rem;
  font-size: clamp(1rem, 0.45vw + 0.9rem, 1.1rem);
  line-height: 1.6;
  /* Brighter than --text-muted: this paragraph sits over the brand
     animation, where the muted grey measured 3.05:1. */
  color: #c9c9d4;
}

.hero-actions {
  justify-content: flex-start;
}

.hero-inquiry {
  margin-inline: 0;
}

/* The brand animation is a hero element, not a page-wide wallpaper. It
   fades as the hero leaves. `--bg-video` is set by js/video-bg.js. */
.video-bg {
  opacity: calc(var(--bg-video, 1) * var(--bg-video-max, 1));
  transition: opacity 320ms var(--ease-out);
}

.video-bg::after {
  background:
    linear-gradient(100deg, rgba(8, 8, 11, 0.92) 0%, rgba(8, 8, 11, 0.8) 26%, rgba(8, 8, 11, 0.5) 46%, rgba(8, 8, 11, 0.08) 72%, rgba(8, 8, 11, 0.36) 100%),
    radial-gradient(60rem 40rem at 50% 118%, rgba(8, 8, 11, 0.6), transparent 72%),
    rgba(8, 8, 11, 0.1);
}

/* ==========================================================================
   5. PAGE HEADERS (interior pages)
   Editorial split instead of a centred stack: the title on the left, the
   one-line lede on the right, bottom-aligned. On a laptop the whole header
   is ~210px tall instead of ~330px, and it reads as a deliberate layout
   rather than the default centred agency banner.
   ========================================================================== */

.page-hero {
  text-align: left;
  /* The floating nav ends ~60px down; 4.25rem clears it at every width. */
  padding-top: calc(4.25rem + clamp(1.5rem, 3vw, 2.75rem));
  padding-bottom: clamp(1.5rem, 2.8vw, 2.25rem);
}

.page-hero-grid {
  display: grid;
  gap: 0.9rem clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.page-hero-grid > * { min-width: 0; }

@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

.page-hero h1 {
  font-size: var(--fs-h1);
  margin-bottom: 0;
}

.page-hero .eyebrow { margin-bottom: 0.7rem; }

.page-hero p:not(.eyebrow) {
  margin-inline: 0;
  max-width: 34rem;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-hero .hero-actions {
  margin-top: 1.1rem;
  justify-content: flex-start;
}

/* ==========================================================================
   6. CONTROLS
   Feedback belongs on the press, not the release.
   ========================================================================== */

.btn {
  letter-spacing: var(--track-body);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

.btn:active,
.nav-dropdown-toggle:active,
.card-link:active {
  transform: scale(0.975);
  transition-duration: 110ms;
}

.btn-primary {
  background: var(--gold);
  color: #140f06;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 10px 30px -14px var(--gold-glow);
}

.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 34px -16px var(--gold-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px) saturate(var(--glass-sat));
  backdrop-filter: blur(12px) saturate(var(--glass-sat));
}

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

/* A quiet text action: an arrow link for "see more" rows, where a pill
   would compete with the primary button in the same card. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  min-height: 2.75rem;
  transition: color var(--dur-fast) var(--ease-out), gap var(--dur-fast) var(--ease-out);
}
.link-arrow:hover { color: var(--gold-soft); gap: 0.6rem; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   7. SURFACES
   ========================================================================== */

.glass { border-radius: var(--radius); }

.card {
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 45px -30px rgba(0, 0, 0, 0.9);
}

/* A small lift, not a jump: cards in a dense grid that leap 5px read as
   jittery when the pointer crosses several of them. */
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 184, 75, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 26px 60px -32px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(232, 184, 75, 0.08);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.97rem; line-height: 1.6; }
/* `.card p` outranks `.eyebrow`, which turned a label inside a card into
   grey body text. */
.card p.eyebrow { color: var(--gold); font-size: 0.72rem; line-height: 1.4; }

.cta-band { border-radius: var(--radius-xl); }

/* ==========================================================================
   8. SECTION RHYTHM
   ========================================================================== */

.section-head { margin-bottom: clamp(1.25rem, 2.4vw, 2rem); }
.section .section-head h2,
.section h2.section-title { margin-bottom: 0.55rem; }
.section-sub { font-size: 1.02rem; line-height: 1.6; }

/* Title on the left, the sentence or action on the right: uses the width
   a centred stack leaves empty, and saves a line of height on every band. */
@media (min-width: 900px) {
  .section-head.split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 3rem;
  }
  .section-head.split > :first-child { flex: 1 1 auto; min-width: 0; }
  .section-head.split > :last-child:not(:first-child) { flex: 0 1 26rem; }
  .section-head.split .section-title { margin-bottom: 0; }
  .section-head.split .section-sub { margin: 0; }
}

/* Consecutive bands that belong together close up the gap between them. */
.section.tight-top { padding-top: 0; }

/* ==========================================================================
   9. LAYOUT PRIMITIVES — bento, tiles, rows
   ========================================================================== */

/* Bento: a 12-track grid. Children say how many tracks they take with
   .span-N. Tablets get two balanced columns; phones get one. */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--stack-gap);
}

.bento > * { grid-column: span 12; min-width: 0; }

@media (min-width: 721px) {
  .bento > .span-3,
  .bento > .span-4,
  .bento > .span-5,
  .bento > .span-6 { grid-column: span 6; }
}

@media (min-width: 961px) {
  .bento > .span-3 { grid-column: span 3; }
  .bento > .span-4 { grid-column: span 4; }
  .bento > .span-5 { grid-column: span 5; }
  .bento > .span-6 { grid-column: span 6; }
  .bento > .span-7 { grid-column: span 7; }
  .bento > .span-8 { grid-column: span 8; }
  .bento > .row-2 { grid-row: span 2; }
}

/* A card that holds a column of content and a footer action keeps the
   action on its bottom edge, so neighbouring cards line up. */
.card.stack {
  display: flex;
  flex-direction: column;
}
.card.stack > .card-foot { margin-top: auto; padding-top: 1rem; }

.card-lg { border-radius: var(--radius-lg); }

/* Tile: icon beside a heading and one line. A feature in a list, not a
   feature card — roughly half the height of a .card for the same text. */
.tile-grid {
  display: grid;
  gap: var(--stack-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 0.9rem;
  align-items: start;
  /* Tiles in a row stretch to the tallest; without this the spare height
     is shared out between the rows and a short tile's heading drifts down. */
  align-content: start;
  padding: var(--pad-compact) calc(var(--pad-compact) + 0.15rem);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.075);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.tile:hover { border-color: rgba(232, 184, 75, 0.24); background: rgba(255, 255, 255, 0.045); }

/* The icon sits in row 1 only, level with the heading. Spanning both rows
   let its 36px height inflate the heading row whenever the heading was a
   single line, which opened a gap above the text. */
.tile-icon {
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  color: var(--gold);
  background: rgba(232, 184, 75, 0.1);
  border: 1px solid rgba(232, 184, 75, 0.22);
}

.tile-icon svg { width: 18px; height: 18px; }

.tile h3 {
  align-self: center;
  font-size: 1.02rem;
  line-height: 1.3;
  margin: 0;
}

.tile p {
  grid-column: 2;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* Numbered step: a tile whose lead is a small gold index instead of an
   icon. Used for the About timeline and the "what happens next" list. */
.tile-step .tile-icon {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Price row: a compact line item — name, note, price. Used where three
   tiers need to sit inside one card rather than in three cards. */
.price-rows { list-style: none; display: grid; gap: 0.5rem; margin-top: 1rem; }

.price-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.price-rows .pr-name { font-weight: 600; color: var(--text); font-size: 0.97rem; }
.price-rows .pr-note { display: block; color: var(--text-faint); font-size: 0.82rem; font-weight: 400; }
.price-rows .pr-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-rows .pr-price small { font-size: 0.75rem; font-weight: 500; color: var(--text-faint); margin-left: 0.15rem; }
.price-rows li.is-popular { border-color: rgba(232, 184, 75, 0.3); background: rgba(232, 184, 75, 0.05); }

/* A short list of facts, separated by hairlines rather than boxes. */
.fact-list { list-style: none; display: grid; gap: 0.55rem; margin-top: 0.9rem; }
.fact-list li {
  display: flex;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.fact-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   10. CALL TO ACTION
   A row, not a banner: the sentence on the left, the action on the right.
   About 140px tall on a laptop instead of 320px.
   ========================================================================== */

.cta-band {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.35rem, 3.4vw, 2.75rem);
  text-align: left;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 1.9rem);
  margin-bottom: 0.4rem;
}

.cta-band p { margin: 0; max-width: 40rem; }

.cta-band .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 821px) {
  .cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
  }
  .cta-band > .cta-copy { flex: 1 1 auto; min-width: 0; }
  .cta-band > .cta-actions,
  .cta-band > .btn { flex: none; }
}

@media (max-width: 820px) {
  .cta-band .cta-actions,
  .cta-band > .btn { margin-top: 1.1rem; }
}

.cta-band .cta-copy { position: relative; z-index: 1; }
.cta-band::after { inset: -60% -20% auto; }

/* ==========================================================================
   11. FOOTER
   One band: brand and socials, three link groups, and the legal line.
   The logo badge is smaller — it is a signature, not a second hero.
   ========================================================================== */

.site-footer {
  padding: clamp(2.25rem, 4vw, 3rem) 0 1.4rem;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin-bottom: 1.75rem;
}

.footer-brand { margin-bottom: 0.85rem; }

.footer-brand img {
  width: clamp(6.25rem, 9vw, 7.5rem);
  height: auto;
  padding: 0.55rem;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.85);
}

.footer-brand:hover img {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
}

.footer-tagline { font-size: 0.92rem; max-width: 22rem; }

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Icon buttons: 44px targets, quiet until hovered. */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.footer-social a:hover { color: var(--gold); border-color: rgba(232, 184, 75, 0.4); background: rgba(232, 184, 75, 0.06); }
.footer-social svg { width: 1.1rem; height: 1.1rem; }

.footer-col h2 {
  font-size: 0.72rem;
  letter-spacing: var(--track-label);
  margin-bottom: 0.75rem;
}

.footer-col ul { gap: 0.15rem; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-size: 0.92rem;
}

.footer-bottom {
  padding-top: 1.1rem;
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
}

/* ==========================================================================
   12. MOBILE MENU
   The sheet is a modal: everything behind it is made inert while it is
   open (js/navigation.js), so Tab cannot wander into the page underneath.
   ========================================================================== */

@media (max-width: 840px) {
  .nav-links { gap: 0.25rem; padding-block: 5rem 2rem; overflow-y: auto; }

  /* Visible the moment it opens (so focus can move into it), hidden only
     after the fade when it closes. Interpolating visibility over the whole
     transition left the links unfocusable for the first frame. */
  .nav-links {
    transition:
      opacity var(--dur) var(--ease-out),
      transform var(--dur) var(--ease-out),
      visibility 0s linear var(--dur);
  }
  .nav-links.open { transition-delay: 0s, 0s, 0s; }
  .nav-links a:not(.btn) { font-size: 1.3rem; padding: 0.6rem 1.4rem; min-height: 2.75rem; }
}

/* ==========================================================================
   12b. PAGE COMPONENTS
   ========================================================================== */

/* Services: the six financial terms and the three support terms. Contract
   wording is verbatim, so the grid does the compacting, not the copy. */
.terms-grid,
.support-terms {
  display: grid;
  gap: var(--stack-gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-layout { display: grid; gap: var(--stack-gap); }

:is(.terms-grid, .support-terms) .term-item {
  padding: var(--pad-compact) calc(var(--pad-compact) + 0.2rem);
  border-radius: var(--radius);
}

:is(.terms-grid, .support-terms) .term-item h3 { font-size: 0.98rem; }
:is(.terms-grid, .support-terms) .term-item p { font-size: 0.92rem; line-height: 1.58; }

@media (max-width: 960px) {
  .terms-grid,
  .support-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .terms-grid,
  .support-terms { grid-template-columns: minmax(0, 1fr); }
}

/* The combined chart sits on a large surface. */
.table-wrap { border-radius: var(--radius-lg); }

/* About: brand panel and timeline */
.brand-panel { min-height: 0; }
.bento > .brand-panel img { width: clamp(7rem, 55%, 12rem); }

.about-lead {
  font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem);
  margin-bottom: 0.65rem;
}

.card .about-lead + p,
.card p + p { margin-top: 0.6rem; }

.timeline {
  list-style: none;
  display: grid;
  gap: var(--stack-gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
}

.timeline-step {
  position: relative;
  padding: var(--pad-compact) calc(var(--pad-compact) + 0.2rem) calc(var(--pad-compact) + 0.2rem);
  border-radius: var(--radius);
}

/* A gold rule across the top of each step reads as one line through time. */
.timeline-step::before {
  content: "";
  position: absolute;
  inset: 0 1.1rem auto;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(232, 184, 75, 0.15));
}

.timeline-step .jr-date {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.35rem 0 0.4rem;
}

.timeline-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.timeline-step p:not(.jr-date) { color: var(--text-muted); font-size: 0.93rem; line-height: 1.58; }
.timeline-step .jr-closer { margin-top: 0.55rem; color: var(--gold-soft) !important; font-style: italic; }

@media (max-width: 960px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
}

/* Reviews: published reviews lead; the form and the status panel share a row. */
/* auto-fit, not auto-fill: two reviews share the row instead of leaving an
   empty third column beside them. */
.review-wall {
  gap: var(--stack-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.review-intro-grid {
  gap: var(--stack-gap);
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
@media (max-width: 960px) {
  .review-intro-grid { grid-template-columns: minmax(0, 1fr); }
}
.review-form-card { padding: var(--pad-card); border-radius: var(--radius-lg); }
.review-form-card .section-head { margin-bottom: 1.1rem; }
.review-form-card .review-form-title { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.review-form-card .section-sub { font-size: 0.95rem; }
.review-intro-grid .reviews-empty {
  padding: var(--pad-card);
  border-radius: var(--radius-lg);
}
.review-intro-grid .reviews-empty h2 { margin: 0.25rem auto 0.75rem; }
.review-intro-grid .reviews-empty p:not(.quote-mark) { margin-bottom: 1.4rem; }
.review-intro-grid .reviews-empty .quote-mark { font-size: clamp(2.6rem, 5vw, 3.6rem); }

/* Contact: the form leads in the wider column, the aside sits beside it. */
.contact-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: var(--stack-gap);
}
.contact-form { border-radius: var(--radius-lg); }
.contact-aside { border-radius: var(--radius-lg); }

/* The aside column: "What happens next", then the payment card under it. */
.contact-side { display: grid; gap: var(--stack-gap); align-content: start; min-width: 0; }

.contact-pay { padding: var(--pad-card); border-radius: var(--radius-lg); }
.contact-pay h2 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.contact-pay p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.contact-pay-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.contact-pay-actions .btn { flex: 1 1 10rem; }
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Video: capability tiles sit four across on a laptop. */
.tile-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tile-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tile-grid.four { grid-template-columns: minmax(0, 1fr); } }

.tile-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .tile-grid.three { grid-template-columns: minmax(0, 1fr); } }

/* Two price cards: kept to a comfortable width rather than stretched across
   the whole container. */
.price-grid { max-width: 52rem; }

/* Access sign-in: the Show toggle is a 44px target on touch screens. */
@media (pointer: coarse) {
  .pw-toggle { min-height: 2.75rem; min-width: 2.75rem; right: 0.25rem; }
}

/* ==========================================================================
   13. ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-transparency: reduce) {
  .site-nav .nav-inner,
  .nav-menu,
  .btn-ghost,
  .inquiry-box,
  .glass {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: #101016 !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
  }
  .inquiry-box:focus-within { border-color: rgba(232, 184, 75, 0.62) !important; }
  :root { --bg-video-max: 0.2; }
}

@media (prefers-contrast: more) {
  .site-nav .nav-inner,
  .nav-menu,
  .card,
  .tile {
    background: #0b0b10 !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
  }
  .inquiry-box { background: #0b0b10; border-color: rgba(255, 255, 255, 0.45); }
  .inquiry-box textarea::placeholder { color: #b4b4c0; }
  .hero-headline .hl-bloom { background: none; -webkit-text-fill-color: var(--gold-soft); }
  .hero-sub,
  .section p,
  .tile p { color: #e6e6ee; }
}

@media (prefers-reduced-motion: reduce) {
  .video-bg { transition: none; }
  .btn:active,
  .nav-dropdown-toggle:active,
  .card-link:active { transform: none; }
  .card:hover,
  .btn-primary:hover,
  .btn-ghost:hover { transform: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-nav .nav-inner,
  .nav-menu,
  .inquiry-box,
  .btn-ghost {
    background: #101016;
  }
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .site-nav .nav-inner {
    padding: 0.35rem 0.4rem 0.35rem 0.9rem;
  }
}

@media (max-width: 720px) {
  .site-nav {
    padding-top: 0.5rem;
  }
  .site-nav .nav-inner {
    width: calc(100% - (var(--gutter) * 1.2));
    border-radius: var(--radius-lg);
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 2.5rem;
  }

  .hero-headline {
    max-width: 100%;
  }

  /* Phones: "Bloom." stays inline and the headline balances over two
     lines — "Make Your / Business Bloom." */
  .hero h1.hero-headline {
    font-size: calc(clamp(1.4rem, 7.1vw, 2.1rem) * 1.32);
    margin-bottom: 0.9rem;
  }

  .hero-sub {
    max-width: 100%;
    margin-bottom: 1.35rem;
  }

  .inquiry-box textarea {
    max-height: 8.5rem;
  }

  .hero-actions {
    width: 100%;
    gap: 0.625rem;
  }
  .hero-actions .btn {
    flex: 0 0 auto;
    padding-inline: 1.25rem;
    white-space: nowrap;
  }

  .page-hero {
    padding-top: calc(4.1rem + 1.35rem);
    padding-bottom: 1.25rem;
  }
  .page-hero p:not(.eyebrow) { font-size: 1rem; }

  .card {
    box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.9);
  }

  .video-bg::after {
    background:
      linear-gradient(
        180deg,
        rgba(8, 8, 11, 0.72) 0%,
        rgba(8, 8, 11, 0.55) 26%,
        rgba(8, 8, 11, 0.78) 58%,
        rgba(8, 8, 11, 0.93) 100%
      ),
      rgba(8, 8, 11, 0.16);
  }

  .site-footer { padding-top: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.35rem; }
}

/* Under 360px the hero pair no longer fits one row. Must stay after the
   <=720 block: both match at 320 with equal specificity. */
@media (max-width: 360px) {
  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
