/* =========================================
   FONTS — self-hosted (variable DM Sans covers 300–500)
   ========================================= */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
  /* Brand palette */
  --powder:       #EAEAEC;   /* Primary   60–70% */
  --slate:        #2E2E2E;   /* Secondary 20–30%, text */
  --surge:        #C4D82E;   /* Accent     5–10% */
  --white:        #FFFFFF;   /* Accent     5–10% */

  --bg:           var(--powder);
  --bg-subtle:    var(--white);
  --text:         var(--slate);
  --text-muted:   #66666A;
  --border:       #D6D6D9;
  --nav-bg:       var(--powder);   /* solid so the background texture doesn't show through */
  --photo-bg:     var(--powder);

  --font-display: 'Outfit', var(--font-sans);
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  --accent:      var(--surge);
  --on-accent:   var(--slate);   /* text on accent fills — white fails contrast on Surge */

  /* Text on Slate surfaces */
  --on-slate:        var(--powder);
  --on-slate-muted:  rgba(234, 234, 236, 0.62);

  /* Claymorphism shadow recipes */
  --clay-powder:
    inset 6px 6px 12px rgba(255, 255, 255, 0.85),
    inset -6px -6px 14px rgba(46, 46, 46, 0.08),
    10px 14px 28px -8px rgba(46, 46, 46, 0.22),
    -6px -6px 16px rgba(255, 255, 255, 0.7);
  --clay-slate:
    inset 6px 6px 12px rgba(255, 255, 255, 0.09),
    inset -6px -6px 14px rgba(0, 0, 0, 0.35),
    10px 16px 30px -8px rgba(46, 46, 46, 0.45),
    -6px -6px 16px rgba(255, 255, 255, 0.7);
  --clay-slate-sm:
    inset 2px 2px 4px rgba(255, 255, 255, 0.12),
    inset -2px -2px 5px rgba(0, 0, 0, 0.4),
    4px 6px 12px -4px rgba(46, 46, 46, 0.4),
    -3px -3px 8px rgba(255, 255, 255, 0.7);
  --clay-powder-sm:
    inset 2px 2px 4px rgba(255, 255, 255, 0.9),
    inset -2px -2px 5px rgba(46, 46, 46, 0.1),
    4px 6px 12px -4px rgba(46, 46, 46, 0.22),
    -3px -3px 8px rgba(255, 255, 255, 0.7);
  --clay-surge-sm:
    inset 2px 2px 4px rgba(255, 255, 255, 0.5),
    inset -2px -2px 5px rgba(46, 46, 46, 0.22),
    4px 6px 12px -4px rgba(46, 46, 46, 0.3),
    -3px -3px 8px rgba(255, 255, 255, 0.7);
  /* Debossed: pressed INTO the surface — inner shade top-left, inner light bottom-right,
     a bright rim on the outer bottom-right lip, no drop shadow */
  --deboss-powder:
    inset 6px 6px 14px rgba(46, 46, 46, 0.16),
    inset -6px -6px 14px rgba(255, 255, 255, 0.8),
    1px 1px 0 rgba(255, 255, 255, 0.9),
    -1px -1px 0 rgba(46, 46, 46, 0.06);
  --deboss-brand:
    inset 2px 2px 0 rgba(0, 0, 0, 0.35),           /* crisp cut edge, top-left */
    inset -1px -1px 0 rgba(255, 255, 255, 0.16),   /* crisp lit edge, bottom-right */
    inset 8px 8px 18px rgba(0, 0, 0, 0.4),
    inset -8px -8px 18px rgba(255, 255, 255, 0.12),
    1px 1px 0 rgba(255, 255, 255, 0.9),
    -1px -1px 0 rgba(46, 46, 46, 0.08);
  /* Engraved logo inside a debossed panel (use as a filter: follows the logo's shape) */
  --deboss-logo: drop-shadow(-1px -1px 0 rgba(0, 0, 0, 0.35)) drop-shadow(1px 1px 0 rgba(255, 255, 255, 0.14));

  /* Pressed (:active) — the clay pushes in */
  --clay-pressed:
    inset 3px 3px 6px rgba(0, 0, 0, 0.22),
    inset -2px -2px 5px rgba(255, 255, 255, 0.25);

  --radius:      6px;
  --content-pad: 3rem;
  --nav-h:       4rem;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline:        2px solid var(--text);
  outline-offset: 2px;
  border-radius:  4px;
}

body {
  font-family:             var(--font-sans);
  font-size:               1rem;
  font-weight:             400;
  line-height:             1.65;
  background-color:        var(--bg);
  color:                   var(--text);
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:              background-color 0.25s ease, color 0.25s ease;
  overflow-x:              hidden;
  display:                 flex;
  flex-direction:          column;
  min-height:              100vh;
}

/* ── Background texture: soft gradient washes + fine grain, fixed behind everything ──
   Kept very low-contrast so Powder still reads as the base colour. */
body::before,
body::after {
  content:        '';
  position:       fixed;
  inset:          var(--nav-h) 0 0 0;   /* starts below the nav — the nav stays plain Powder */
  z-index:        -1;
  pointer-events: none;
  /* fade in over the first 6rem so there's no seam under the nav */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6rem);
  mask-image:         linear-gradient(to bottom, transparent 0, #000 6rem);
}
body::before {
  background:
    radial-gradient(60% 55% at 8% 15%,   rgba(255, 255, 255, 0.75) 0%, transparent 70%),
    radial-gradient(45% 40% at 92% 18%,  rgba(196, 216, 46, 0.07)  0%, transparent 70%),
    radial-gradient(55% 50% at 100% 100%, rgba(46, 46, 46, 0.06)   0%, transparent 70%),
    radial-gradient(50% 45% at 0% 85%,   rgba(255, 255, 255, 0.45) 0%, transparent 70%);
}
body::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.18  0 0 0 0 0.18  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:  180px 180px;
  opacity:          0.18;
}

img    { max-width: 100%; display: block; }
a      { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Pages with a <main> (inner pages) grow to fill the viewport, pinning the footer to the bottom */
main { flex: 1 0 auto; }

/* =========================================
   NAVIGATION — full viewport width
   ========================================= */
.nav {
  position:                fixed;
  top: 0; left: 0; right: 0;
  z-index:                 100;
  background:              var(--nav-bg);
  backdrop-filter:         blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:              background-color 0.35s ease;
}

.nav__inner {
  width:           100%;
  max-width:       100vw;
  height:          var(--nav-h);
  margin:          0 auto;
  padding:         0 var(--content-pad);
  border-radius:   0;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  transition:
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* ── Scrolled: the bar lifts into a floating clay pill (class toggled in main.js) ──
   Pill edges sit 1.25rem outside the content column, and its 1.25rem padding keeps
   the logo and links on the same x as before. */
.nav--scrolled {
  background:              transparent;
  backdrop-filter:         none;
  -webkit-backdrop-filter: none;
}
.nav--scrolled .nav__inner {
  width:                   calc(100% - 2 * (var(--content-pad) - 1.25rem));
  max-width:               100vw;   /* no cap — pill edges track the content column at every width */
  height:                  3.75rem;
  margin-top:              0.75rem;
  padding:                 0 0.5rem 0 1.25rem;
  border-radius:           999px;
  /* Frosted clay: translucent Powder + heavy blur so content behind reads as a soft smear */
  background:              rgba(234, 234, 236, 0.4);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  backdrop-filter:         blur(8px) saturate(160%);
  box-shadow:
    inset 4px 4px 10px rgba(255, 255, 255, 0.7),
    inset -4px -4px 10px rgba(46, 46, 46, 0.08),
    8px 14px 28px -10px rgba(46, 46, 46, 0.3),
    -4px -4px 12px rgba(255, 255, 255, 0.6);
}
/* No backdrop-filter support: fall back to a near-solid fill so links stay legible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav--scrolled .nav__inner { background: rgba(234, 234, 236, 0.96); }
}
.nav--scrolled .nav__logo-img[src$=".svg"] { height: 1.9rem; }
.nav__logo-img[src$=".svg"] { transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease; }

.nav__logo {
  display:    flex;
  align-items: center;
}
.nav__logo-img {
  height: 1.75rem;
  width:  auto;
  display: block;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
/* SVG renders smaller than the GIF at the same height — scale up and nudge left to match */
.nav__logo-img[src$=".svg"] {
  height: 2.205rem;
  transform: translateX(-3px);
}
/* Logo is Slate (NH_Logo_Slate.*); hover: subtle fade */
.nav__logo:hover .nav__logo-img { opacity: 0.75; }
.nav__center {
  display:      flex;
  align-items:  center;
  gap:          0.25rem;
  margin-left:  auto;
  margin-right: 0.75rem;
}

.nav__link {
  position:      relative;
  font-size:     0.875rem;
  padding:       0.375rem 0.75rem;
  color:         var(--text-muted);
  transition:    color 0.2s ease;
}
.nav__link:hover        { color: var(--text); }
.nav__link.active:hover { color: var(--on-slate); }
/* Current page: Slate clay pill */
.nav__link { border-radius: 999px; transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
.nav__link.active {
  color:       var(--on-slate);
  font-weight: 500;
  background:  var(--slate);
  box-shadow:  var(--clay-slate-sm);
}
.nav__right {
  display:     flex;
  align-items: center;
  gap:         0.75rem;
}

/* Contact: styled exactly like the page links */
.nav__cta {
  font-size:     0.875rem;
  padding:       0.375rem 0.75rem;
  border-radius: 999px;
  color:         var(--text-muted);
  transition:    color 0.2s ease;
}
.nav__cta:hover { color: var(--text); }

/* Sits between the page links and Contact */
.nav__divider { order: -1; width: 2px; height: 1.25rem; border-radius: 1px; background: var(--accent); }

/* ── Hamburger button (mobile only) ── */
.nav__hamburger {
  display:         none;
  width:           2rem;
  height:          2rem;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             5px;
  border-radius:   8px;
  color:           var(--text-muted);
  transition:      color 0.2s ease, background-color 0.2s ease;
}
.nav__hamburger { background: var(--powder); box-shadow: var(--clay-powder-sm); }
.nav__hamburger:hover { color: var(--text); background-color: var(--powder); }
.nav__hamburger:active { box-shadow: var(--clay-pressed); }
.nav__hamburger span {
  display:          block;
  width:            16px;
  height:           1.5px;
  background:       currentColor;
  border-radius:    1px;
  transition:       transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Backdrop ── */
.nav__backdrop {
  display:        none;
  position:       fixed;
  top:            var(--nav-h);
  right:          0;
  bottom:         0;
  left:           0;
  z-index:        98;
  background:     rgba(0, 0, 0, 0.25);
  opacity:        0;
  pointer-events: none;
  transition:     opacity 0.3s ease;
}
.nav--open .nav__backdrop {
  opacity:        1;
  pointer-events: auto;
}

/* ── Mobile menu — right drawer ── */
.nav__mobile-menu {
  position:                fixed;
  top:                     0;
  right:                   0;
  height:                  100vh;
  width:                   260px;
  background:              var(--nav-bg);
  backdrop-filter:         blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left:             1px solid var(--border);
  padding:                 calc(var(--nav-h) + 2rem) 1.75rem 2rem;
  z-index:                 99;
  display:                 flex;
  flex-direction:          column;
  gap:                     0.25rem;
  overflow-y:              auto;
  transform:               translateX(100%);
  visibility:              hidden;
  transition:              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                           visibility 0s 0.3s;
}
.nav--open .nav__mobile-menu {
  transform:  translateX(0);
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0s;
}

.nav__mobile-link {
  display:    block;
  padding:    0.75rem 0;
  font-size:  0.9375rem;
  color:      var(--text-muted);
  transition: color 0.2s ease;
}
.nav__mobile-link:hover,
.nav__mobile-link.active { color: var(--text); text-decoration: underline 3px var(--accent); text-underline-offset: 6px; }

.nav__mobile-close {
  position:        absolute;
  top:             calc((var(--nav-h) - 2rem) / 2);
  right:           1.75rem;
  width:           2rem;
  height:          2rem;
  display:         flex;
  align-items:     center;
  justify-content: center;
  border-radius:   8px;
  color:           var(--text-muted);
  transition:      color 0.2s ease, background-color 0.2s ease;
}
.nav__mobile-close:hover { color: var(--text); background-color: var(--bg-subtle); }

@media (max-width: 820px) {
  .nav__hamburger                 { display: flex; }
  .nav__center,
  .nav__cta,
  .nav__divider                   { display: none; }
  .nav__backdrop                  { display: block; }
}

@media (min-width: 821px) {
  .nav__mobile-menu { display: none; }
}

/* =========================================
   HERO — full viewport, editorial split
   Text block on the left; the scroll rail
   sits on the right edge.
   ========================================= */
.hero {
  position:    relative;
  min-height:  100vh;
  display:     flex;
  align-items: center;
  padding:     var(--nav-h) var(--content-pad) 0;
  overflow:    hidden;
}

/* ── Content ── */
.hero__content {
  position:  relative;
  max-width: 34rem;
  padding:   4rem 0 4rem calc(var(--content-pad) + 2rem);
}

.hero__greeting {
  font-family:    var(--font-sans);
  font-weight:    400;
  font-size:      clamp(2.75rem, 5.5vw, 4.75rem);
  line-height:    1.08;
  letter-spacing: -0.025em;
  color:          var(--text);
  margin-bottom:  1.75rem;
}

.hero__greeting-wordmark {
  display:        inline-block;
  height:         0.85em;
  width:          auto;
  vertical-align: middle;
  position:       relative;
  top:            -0.05em;
}

.hero__sub {
  font-size:   0.9375rem;
  color:       var(--text);
  max-width:   26rem;
  line-height: 1.9;
}

/* CTA: Surge clay pill; hover keeps the colour, lifts 1px and nudges the arrow */
.hero__cta {
  display:        inline-flex;
  align-items:    center;
  align-self:     flex-start;
  gap:            0.75rem;
  margin-top:     3rem;
  padding:        0.875rem 1.5rem;
  border-radius:  999px;
  background:     var(--accent);
  font-size:      0.875rem;
  font-weight:    500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          var(--on-accent);
  transition:     background-color 0.2s ease;
}
.hero__cta { box-shadow: var(--clay-surge-sm); transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.hero__cta:hover { transform: translateY(-1px); } /* stays Surge — lift + arrow nudge only */
.hero__cta svg  { transition: transform 0.25s ease; }
.hero__cta:hover svg { transform: translateX(3px); }

.hero__social {
  display:     flex;
  align-items: center;
  gap:         0.875rem;
  margin-top:  4.5rem;
  font-size:   0.875rem;
  color:       var(--text-muted);
}

/* Hero links: bold Outfit Slate, no underline; fade on hover. Surge | separators echo the nav divider */
.hero-link {
  font-family:    var(--font-display);
  font-size:      0.9375rem;
  font-weight:    700;
  letter-spacing: -0.01em;
  color:          var(--text);
  transition:     color 0.2s ease, opacity 0.2s ease;
}
.hero-link:hover { opacity: 0.6; }
.hero__sep { color: var(--accent); font-weight: 600; }

/* ── Scroll rail (right edge) ── */
/* Scroll prompt: a Surge clay circle with a bobbing Slate arrow (label is aria-only) */
.hero__scroll {
  position:        absolute;
  right:           var(--content-pad);
  bottom:          2.5rem;
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           3.25rem;
  height:          3.25rem;
  border-radius:   50%;
  background:      var(--accent);
  color:           var(--on-accent);
  box-shadow:      var(--clay-surge-sm);
  transition:      transform 0.2s ease, box-shadow 0.2s ease;
}
.hero__scroll-knob { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll-knob svg { animation: scroll-bob 1.8s ease-in-out infinite; }
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(-2px); }
  50%      { transform: translateY(3px); }
}
.hero__scroll:hover  { transform: translateY(-2px); }
.hero__scroll:active { transform: translateY(1px); box-shadow: var(--clay-pressed); }

/* ── Mobile ── */
@media (max-width: 820px) {
  .hero {
    flex-direction: column;
    align-items:    stretch;
    padding:        var(--nav-h) 1.5rem 3rem;
    min-height:     auto;
  }
  .hero__content { padding: 2rem 0 0; }
  .hero__greeting { font-size: clamp(2.5rem, 11vw, 3.75rem); }
  .hero__cta     { margin-top: 2rem; }
  .hero__social  { margin-top: 2.5rem; }
  .hero__scroll  { display: none; }
}

/* =========================================
   SITE-WIDE CONTENT ALIGNMENT
   All sections below the hero share the same
   left offset as the hero's content column:
   var(--content-pad)
   A pseudo-element continues the side line.
   ========================================= */

/* Shared content wrapper used on home below-fold */
.below-hero {
  position: relative;
  padding:  0 var(--content-pad);
}

/* Inner pages: same alignment */
.page-wrap {
  position: relative;
  padding:  0 var(--content-pad);
}

@media (max-width: 820px) {
  .nav__inner,
  .below-hero,
  .page-wrap { padding: 0 1.5rem; }
}
@media (max-width: 820px) {
  .nav--scrolled .nav__inner {
    width:      calc(100% - 1.5rem);
    margin-top: 0.5rem;
    padding:    0 0.5rem 0 0.75rem;
  }
}

/* Footer — same alignment */
.footer {
  margin:        2rem var(--content-pad) 1.5rem;
  padding:       2.5rem 0;
  border-radius: 28px;
  background:    var(--slate);
  box-shadow:    var(--clay-slate);
}
.footer__inner {
  position:        relative;
  padding:         0 2.5rem;
  display:         flex;
  flex-direction:  column;
  gap:             1rem;
  align-items:     flex-start;
}
@media (min-width: 600px) {
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 820px) {
  .footer { margin: 2rem 1rem 1rem; padding: 2rem 0; border-radius: 24px; }
  .footer__inner { padding: 0 1.75rem; }
}

.footer__brand { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 1rem; color: var(--on-slate); }
.footer__copy  { font-size: 0.75rem; color: var(--on-slate-muted); margin-top: 0.2rem; }
.footer__links { display: flex; align-items: center; gap: 1.5rem; }
.footer__link  {
  font-size:  0.875rem;
  color:      var(--on-slate-muted);
  position:   relative;
  transition: color 0.2s ease;
}
.footer__link::after {
  content:    '';
  position:   absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--on-slate);
  transition: width 0.25s ease;
}
.footer__link:hover { color: var(--on-slate); }
.footer__link:hover::after { width: 100%; background: var(--accent); }
.footer__icon {
  display:    flex;
  color:      var(--on-slate-muted);
  transition: color 0.2s ease;
}
.footer__icon:hover { color: var(--accent); }

/* =========================================
   LABELS & DIVIDERS
   ========================================= */
.label {
  display:        block;
  font-size:      0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          var(--text-muted);
  margin-bottom:  1rem;
}
.divider { border: none; border-top: 1px solid var(--border); }

/* =========================================
   SCROLL-TRIGGERED ANIMATIONS
   ========================================= */
.animate-on-scroll {
  opacity:    0;
  transform:  translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }
.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }

/* =========================================
   HOME: SECTIONS
   ========================================= */
.section { padding: 6rem 0; }
.section + .section { padding-top: 0; }

.section-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   2rem;
}
.section-header .label { margin-bottom: 0; }

.section-header__link {
  font-size:  0.875rem;
  color:      var(--text-muted);
  transition: color 0.2s ease;
}
.section-header__link:hover { color: var(--text); }

/* ── About grid ── */
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 600px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.about-col p { color: var(--text); line-height: 1.75; }

.about-email {
  display:    inline-block;
  margin-top: 1rem;
  font-size:  0.875rem;
  color:      var(--text);
  position:   relative;
}
.about-email::after {
  content:    '';
  position:   absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 0.25s ease;
}
.about-email:hover { color: var(--text); }
.about-email:hover::after { width: 100%; background: var(--accent); }

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-page-grid { display: grid; gap: 3rem; }

.about-page-text .label { margin-bottom: 0.75rem; }
.about-page-text .label:not(:first-child) { margin-top: 2.5rem; }
.about-page-text p {
  color:       var(--text);
  line-height: 1.75;
  max-width:   34rem;
}
.about-page-text p + p { margin-top: 1rem; }

.about-facts {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   1.5rem 2rem;
  margin-top:            4rem;
  padding-top:           2.5rem;
  border-top:            1px solid var(--border);
}
@media (min-width: 700px) { .about-facts { grid-template-columns: repeat(4, 1fr); } }

.about-fact__label {
  display:        block;
  font-size:      0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          var(--text-muted);
  margin-bottom:  0.375rem;
}
.about-fact__value { font-size: 0.9375rem; color: var(--text); }

/* =========================================
   INNER PAGE HEADER
   ========================================= */
.page-header {
  padding:   1.5rem 0 4rem;
  opacity:   0;
  animation: fade-up 0.45s 0.05s ease forwards;
}
.page-wrap > .page-header:first-child { padding-top: calc(var(--nav-h) + 3.5rem); }
.page-header h1 {
  font-family:    var(--font-sans);
  font-weight:    300;
  font-size:      clamp(2.8rem, 7vw, 5rem);
  line-height:    0.95;
  letter-spacing: -0.04em;
  color:          var(--text);
}
/* Brand wordmark in place of the h1 text (e.g. n-labs). Height tracks the h1 type scale. */
.page-header h1.page-header__logo-heading { line-height: 0; }
.page-header__logo {
  height: clamp(2.6rem, 6.5vw, 4.5rem);
  width:  auto;
}
.page-header p {
  color:       var(--text-muted);
  max-width:   28rem;
  line-height: 1.7;
  margin-top:  1.25rem;
}
.page-header__tags { margin-top: 1.25rem; }

.page-body {
  opacity:        0;
  animation:      fade-up 0.45s 0.15s ease forwards;
  padding-bottom: 2rem;
}

/* =========================================
   PROJECT GRID & CARD
   ========================================= */
.projects-grid { display: grid; gap: 1.5rem; }
@media (min-width: 500px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .projects-grid.col-3 { grid-template-columns: repeat(3, 1fr); } }

/* Clay card — solid Powder, puffy: big radius, soft outer drop shadow, plus inner
   highlight (top-left) and inner shade (bottom-right) so it reads as a soft moulded tile.
   Hover only lifts it — colour and shadow stay the same. */
.project-card {
  position:        relative;
  display:         flex;
  flex-direction:  column;
  gap:             1rem;
  padding:         1.75rem;
  border-radius:   28px;
  background:      var(--powder);
  color:           var(--text);
  box-shadow:      var(--clay-powder);
  transition:      transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, opacity 0.25s ease;
}
.project-card:hover { transform: translateY(-4px); }

.project-card__header {
  display:         flex;
  align-items:     flex-start;
  justify-content: space-between;
  gap:             1rem;
}
/* Brand logo in the footer's bottom-right (replaces the hover arrow), knocked to solid black.
   Slot hugs the logo: square marks stay square, wordmarks cap at 5rem wide. */
.project-card__logo {
  flex-shrink:  0;
  display:      flex;
  align-items:  center;
  height:       2rem;
  margin-left:  auto;
  padding-left: 1rem;
}
.project-card__logo img {
  height:     2rem;
  width:      auto;
  max-width:  5rem;
  object-fit: contain;
  filter:     brightness(0);
  transition: filter 0.3s ease;
}
/* Already black-and-white artwork (white detail would be lost to the filter) */
.project-card__logo--mono img { filter: none; }
/* Logos already in site colours (e.g. n-labs: Slate + Surge dash) keep them */
.project-card__logo--brand img { filter: none; }

.project-card__title {
  font-family:    var(--font-display);
  font-weight:    700;
  letter-spacing: -0.015em;
  font-size:      1.25rem;
  line-height:    1.15;
  color:       var(--text);
  transition:  color 0.3s ease;
}

.project-card__year  { transition: color 0.3s ease; font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; margin-top: 0.2rem; }
.project-card__desc  { transition: color 0.3s ease; font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.project-card__footer { display: flex; align-items: center; justify-content: space-between; }
.project-card__tags   { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.tag {
  font-size:     0.6875rem;
  padding:       0.2rem 0.5rem;
  border-radius: 6px;
  background:    var(--bg);
  border:        1px solid var(--border);
  color:         var(--text-muted);
}
/* Clay chips inside clay cards */
.project-card .tag {
  background:    var(--powder);
  border:        0;
  box-shadow:    inset 2px 2px 4px rgba(46, 46, 46, 0.1), inset -2px -2px 4px rgba(255, 255, 255, 0.9);
  color:         var(--text-muted);
  border-radius: 999px;
  transition:    background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  padding:       0.2rem 0.6rem;
}

.project-card__arrow {
  color:       var(--text);
  opacity:     0;
  transition:  opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}
.project-card:hover .project-card__arrow { opacity: 1; transform: translate(2px, -2px); }

/* =========================================
   PROJECT DETAIL PAGE
   ========================================= */
.back-link {
  display:       inline-block;
  margin-top:    calc(var(--nav-h) + 2rem);
  font-size:     0.8125rem;
  color:         var(--text-muted);
  transition:    color 0.2s ease;
}
.back-link:hover { color: var(--text); }

.project-cover {
  position:        relative;
  height:          20rem;
  margin-bottom:   3rem;
  border-radius:   28px;
  border:          0;   /* inline brand border-colors are now inert */
  background:      var(--bg-subtle);
  box-shadow:      var(--deboss-powder);   /* hero panels are debossed into the page */
  overflow:        hidden;
  display:         flex;
  align-items:     center;
  justify-content: center;
}
.project-cover--brand {
  background: #2F4C39;
  /* Debossed on any brand colour: black/white alpha insets adapt to the fill underneath */
  box-shadow: var(--deboss-brand);
}
.project-cover--brand::before {
  content:           '';
  position:          absolute;
  inset:              0;
  background-image:  radial-gradient(circle, rgba(255,250,235,0.16) 1.6px, transparent 1.6px);
  background-size:   22px 22px;
}
/* Buff (iOS app) — the app's deep green-blue with a soft glow and the lime logo, the dotted texture in lime */
.project-cover--buff {
  background:   radial-gradient(ellipse at 50% 50%, #122222 0%, #0B1A1A 38%, #061414 75%);
  /* Near-black panel: soft shadows vanish, so lean on crisp cut edges and a lime-tinted
     inner light (from the Buff mark) catching the bottom-right wall of the cut */
  box-shadow:
    inset 3px 3px 0 rgba(0, 0, 0, 0.6),
    inset -1.5px -1.5px 0 rgba(188, 255, 0, 0.22),
    inset 14px 14px 24px rgba(0, 0, 0, 0.65),
    inset -10px -10px 22px rgba(188, 255, 0, 0.08),
    inset -4px -4px 10px rgba(255, 255, 255, 0.08),
    1px 1px 0 rgba(255, 255, 255, 0.95),
    -1px -1px 0 rgba(46, 46, 46, 0.18);
}
.project-cover--buff::before {
  background-image: radial-gradient(circle, rgba(188,255,0,0.07) 1.6px, transparent 1.6px);
}
/* Icon left of the wordmark, as on the app's home screen: the letters are half the icon's
   height (they fill ~82% of the wordmark artwork). The icon artwork has empty space at its
   sides, so the gap is small to look like the app's. */
.buff-lockup {
  --buff-mark: clamp(4.5rem, 12vw, 8.5rem);
  position:    relative;
  display:     flex;
  align-items: center;
  gap:         calc(var(--buff-mark) * 0.1);
}
.buff-lockup { filter: var(--deboss-logo); }
.buff-lockup__mark { height: var(--buff-mark); width: auto; }
.buff-lockup__word { height: calc(var(--buff-mark) * 0.61); width: auto; }

/* n-labs — plain Slate panel (no texture; hides the brand dot pattern too) */
.project-cover--nlabs { background: var(--slate); }
.project-cover--nlabs::before { display: none; }
.project-cover--nlabs .project-cover__logo { width: min(55%, 360px); }

.project-cover__placeholder {
  font-size:      0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          var(--text-muted);
}

.project-cover__photo {
  width:      100%;
  height:     100%;
  object-fit: cover;
}

.project-cover__logo {
  position: relative;
  width:    min(60%, 380px);
  height:   auto;
  filter:   var(--deboss-logo);
}
.project-cover__submark {
  position: absolute;
  bottom:   -1.5rem;
  right:    -1.5rem;
  width:    9rem;
  height:   9rem;
  opacity:  0.16;
  transform: rotate(8deg);
}

.project-detail-grid {
  display: grid;
  gap:     2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 700px) { .project-detail-grid { grid-template-columns: 1fr 1fr; } }
.project-detail-col p { color: var(--text-muted); line-height: 1.75; }

.project-detail-list { display: flex; flex-direction: column; gap: 0.625rem; }
.project-detail-list li {
  color:       var(--text);
  font-size:   0.9375rem;
  line-height: 1.5;
}

.project-detail-stack { margin-bottom: 1rem; }

/* Links under a project (privacy policy, support…) */
.project-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.75rem; }

/* =========================================
   LEGAL / LONG-FORM PAGES (privacy policies)
   ========================================= */
/* Centres the whole page (back link, header, text) as one column; text stays left-aligned */
.legal-column { max-width: 40rem; margin: 0 auto; }
.legal { max-width: 40rem; }
.legal h2 {
  font-family:    var(--font-sans);
  font-weight:    400;
  font-size:      1.25rem;
  letter-spacing: -0.01em;
  color:          var(--text);
  margin:         2.5rem 0 0.75rem;
}
.legal p,
.legal li     { color: var(--text); line-height: 1.75; }
.legal p + p  { margin-top: 1rem; }
.legal ul     { margin: 0.75rem 0 1rem; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.375rem; }
.legal strong { font-weight: 500; }
.legal a {
  color:                 var(--text);
  text-decoration:       underline;
  text-underline-offset: 3px;
  transition:            color 0.2s ease;
}
.legal a:hover { color: var(--text); }
.legal__summary {
  padding:       1.5rem;
  border-radius: var(--radius);
  border:        1px solid var(--border);
  background:    var(--bg-subtle);
}

/* =========================================
   BUFF · PLAN WITH AI (projects/buff/ai-plan)
   ========================================= */
.ai-note {
  font-size:     0.875rem;
  line-height:   1.6;
  color:         var(--text-muted);
  padding:       1rem 1.25rem;
  border-radius: var(--radius);
  border:        1px solid var(--border);
  background:    var(--bg-subtle);
}
.ai-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.ai-step {
  position:      relative;
  margin-top:    2rem;
  padding:       1.75rem 1.25rem;
  border-radius: 28px;
  background:    var(--powder);
  box-shadow:    var(--clay-powder);
}
@media (min-width: 600px) { .ai-step { padding: 2.25rem 2.5rem; } }
.ai-step__num {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           2rem;
  height:          2rem;
  border-radius:   999px;
  background:      var(--accent);
  color:           var(--on-accent);
  box-shadow:      var(--clay-surge-sm);
  font-family:     var(--font-display);
  font-weight:     700;
  font-size:       0.9375rem;
}
.ai-step__title {
  font-family:    var(--font-sans);
  font-weight:    400;
  font-size:      1.25rem;
  letter-spacing: -0.01em;
  color:          var(--text);
  margin:         0.875rem 0 0.5rem;
}
.ai-step__text { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }

.ai-form {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   1rem;
  margin-top:            1.25rem;
}
@media (min-width: 600px) {
  .ai-form { grid-template-columns: repeat(2, 1fr); gap: 1.125rem 1.25rem; }
  .ai-field--wide { grid-column: 1 / -1; }
}
.ai-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.ai-field[hidden] { display: none; }
.ai-field__label { font-size: 0.8125rem; font-weight: 500; color: var(--text); }
.ai-field__hint  { font-weight: 400; color: var(--text-muted); }

.ai-field select,
.ai-field input,
.ai-field textarea,
.ai-code {
  width:         100%;
  font:          inherit;
  font-size:     1rem;   /* 16px stops iOS zooming on focus */
  color:         var(--text);
  background:    var(--white);
  border:        1px solid var(--border);
  border-radius: 12px;
  padding:       0.7rem 0.875rem;
  transition:    border-color 0.2s ease, box-shadow 0.2s ease;
}
.ai-field select {
  appearance:          none;
  -webkit-appearance:  none;
  padding-right:       2.25rem;
  background-image:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232E2E2E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:   no-repeat;
  background-position: right 0.9rem center;
  cursor:              pointer;
}
.ai-field textarea, .ai-code { resize: vertical; line-height: 1.5; }
.ai-code {
  display:     block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:   0.8125rem;
}
@media (max-width: 599px) { .ai-code { font-size: 1rem; } }
.ai-field select:focus,
.ai-field input:focus,
.ai-field textarea:focus,
.ai-code:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(46, 46, 46, 0.12); }

.ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.ai-actions [hidden] { display: none; }
.ai-actions button { font: inherit; font-size: 0.875rem; font-weight: 500; border: 0; cursor: pointer; }
.ai-textbtn {
  background:            none;
  color:                 var(--text);
  padding:               0.7rem 0.25rem;
  text-decoration:       underline;
  text-underline-offset: 3px;
}

.ai-output { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.ai-output__lead { color: var(--text); line-height: 1.7; margin-bottom: 1rem; }
.ai-output__lead strong { font-weight: 500; }

.ai-error {
  margin-top:    1rem;
  padding:       0.875rem 1rem;
  border-radius: 12px;
  border:        1px solid #C9A9A6;
  background:    #F6ECEB;
  color:         #7A2E27;
  font-size:     0.9375rem;
  line-height:   1.6;
}
.ai-error[hidden], .ai-result[hidden] { display: none; }

.ai-result {
  margin-top:    1.5rem;
  padding:       1.5rem;
  border-radius: 20px;
  background:    var(--white);
  border:        1px solid var(--border);
}
.ai-result__name {
  font-family:    var(--font-display);
  font-weight:    700;
  font-size:      1.5rem;
  letter-spacing: -0.02em;
  color:          var(--text);
  margin-top:     0.5rem;
}
.ai-result__summary { color: var(--text-muted); font-size: 0.9375rem; margin-top: 0.25rem; }
.ai-result__notes {
  margin:      1rem 0 0;
  padding-left: 1.25rem;
  font-size:   0.875rem;
  line-height: 1.6;
  color:       var(--text);
}
.ai-result__notes[hidden] { display: none; }
.ai-result__notes li + li { margin-top: 0.25rem; }
.ai-result__help { margin-top: 1rem; font-size: 0.8125rem; line-height: 1.6; color: var(--text-muted); }
.ai-result__help strong { font-weight: 500; color: var(--text); }

.page-body > .legal { margin-top: 1rem; }

/* Results: embossed Powder clay card (raised, like the project cards) */
.results-card {
  padding:       2rem;
  border-radius: 28px;
  background:    var(--powder);
  box-shadow:    var(--clay-powder);
}
@media (min-width: 600px) { .results-card { padding: 2.5rem; } }

.results-stats {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   1.75rem 2rem;
  margin-top:            1.5rem;
}
@media (min-width: 700px) { .results-stats { grid-template-columns: repeat(3, 1fr); } }

.results-stat__num {
  display:        block;
  font-family:    var(--font-display);
  font-weight:    800;
  letter-spacing: -0.02em;
  font-size:      2rem;
  line-height:    1;
  color:          var(--text);
}
.results-stat__label {
  display:     block;
  font-size:   0.8125rem;
  color:       var(--text-muted);
  line-height: 1.4;
  margin-top:  0.375rem;
}

/* =========================================
   WIDGET GRID & CARD
   ========================================= */
.widget-grid { display: grid; gap: 1rem; }
@media (min-width: 500px) { .widget-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .widget-grid { grid-template-columns: repeat(3, 1fr); } }

.widget-card {
  display:        flex;
  flex-direction: column;
  border-radius:  var(--radius);
  border:         1px solid var(--border);
  background:     var(--bg);
  overflow:       hidden;
  transition:     border-color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}
.widget-card:hover { border-color: rgba(46,46,46,0.3); background: var(--white); }

.widget-preview {
  height:          11rem;
  display:         flex;
  align-items:     center;
  justify-content: center;
  overflow:        hidden;
  position:        relative;
  transition:      transform 0.4s ease;
}
.widget-card:hover .widget-preview { transform: scale(1.03); }

.widget-preview__mockup {
  width:           72%;
  border-radius:   10px;
  background:      rgba(255,255,255,0.1);
  border:          1px solid rgba(255,255,255,0.18);
  padding:         1rem;
  backdrop-filter: blur(4px);
}
.widget-preview__title-line {
  height:        8px; width: 60%;
  border-radius: 4px;
  background:    rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}
.widget-preview__lines { display: flex; flex-direction: column; gap: 5px; }
.widget-preview__line  { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.22); }
.widget-preview__line:nth-child(2) { width: 80%; }
.widget-preview__line:nth-child(3) { width: 60%; }

.widget-body     { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; gap: 0.75rem; }
.widget-header   { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.widget-category { font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.2rem; }
.widget-name     { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 1.125rem; line-height: 1.2; color: var(--text); }
.widget-desc     { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; flex: 1; }

.price-badge { font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.625rem; border-radius: 6px; flex-shrink: 0; margin-top: 0.1rem; white-space: nowrap; }
.price-badge--free { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.price-badge--paid { background: var(--text); color: var(--bg); }

.widget-btn {
  margin-top:    0.25rem;
  width:         100%;
  padding:       0.625rem 1rem;
  border-radius: 999px;
  border:        0;
  background:    var(--powder);
  color:         var(--text);
  box-shadow:    var(--clay-powder-sm);
  font-size:     0.875rem;
  font-weight:   500;
  transition:    background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.widget-btn:hover { background: var(--slate); color: var(--on-slate); box-shadow: var(--clay-slate-sm); }

/* =========================================
   FILTER PILLS
   ========================================= */
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-pill {
  font-size:     0.75rem;
  padding:       0.375rem 0.875rem;
  border-radius: 999px;
  border:        0;
  color:         var(--text-muted);
  background:    var(--powder);
  box-shadow:    var(--clay-powder-sm);
  transition:    color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.filter-pill:hover { color: var(--text); }
.filter-pill.active { background: var(--slate); color: var(--on-slate); box-shadow: var(--clay-slate-sm); }

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display:       inline-flex;
  align-items:   center;
  gap:           0.5rem;
  font-size:     0.875rem;
  font-weight:   500;
  padding:       0.7rem 1.4rem;
  border-radius: 999px;
  background:    var(--accent);
  color:         var(--on-accent);
  box-shadow:    var(--clay-surge-sm);
  transition:    background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: var(--slate); color: var(--on-slate); box-shadow: var(--clay-slate-sm); transform: translateY(-1px); }

.btn-outline {
  display:       inline-flex;
  align-items:   center;
  gap:           0.5rem;
  font-size:     0.875rem;
  font-weight:   500;
  padding:       0.7rem 1.4rem;
  border-radius: 999px;
  background:    var(--slate);
  color:         var(--on-slate);
  box-shadow:    var(--clay-slate-sm);
  transition:    background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-outline:hover { background: var(--accent); color: var(--on-accent); box-shadow: var(--clay-surge-sm); transform: translateY(-1px); }

/* Pressed state shared by every clay button */
.btn-primary:active, .btn-outline:active, .hero__cta:active,
.widget-btn:active, .filter-pill:active {
  transform:  translateY(1px);
  box-shadow: var(--clay-pressed);
}

/* =========================================
   WIDGETS CTA BLOCK (home)
   ========================================= */
.widgets-cta {
  position:      relative;
  padding:       3rem;
  border-radius: 28px;
  background:    var(--slate);
  box-shadow:    var(--clay-slate);
  overflow:      hidden;
}
@media (min-width: 600px) { .widgets-cta { padding: 3.5rem; } }

.widgets-cta__blob { display: none; }
.widgets-cta h2 {
  font-family:    var(--font-display);
  font-weight:    800;
  letter-spacing: -0.025em;
  font-size:      clamp(1.75rem, 4vw, 2.5rem);
  line-height:    1.05;
  color:        var(--on-slate);
  margin:       0.5rem 0 1rem;
  position:     relative;
}
.widgets-cta > p {
  color:         var(--on-slate-muted);
  max-width:     24rem;
  line-height:   1.7;
  margin-bottom: 2rem;
  position:      relative;
}

/* =========================================
   BOTTOM CTA (widgets page)
   ========================================= */
/* No container — sits straight on the page background */
.bottom-cta {
  margin-top:     4rem;
  display:        flex;
  flex-direction: column;
  gap:            1.25rem;
  align-items:    flex-start;
}
.bottom-cta--flush { margin-top: 2rem; }
@media (min-width: 600px) {
  .bottom-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}
.bottom-cta__text p:first-child { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.bottom-cta__text p + p { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.2rem; }
/* Button on the Slate widgets panel: Surge clay, hover to Powder */
.widgets-cta .btn-primary {
  background: var(--accent);
  color:      var(--on-accent);
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.5), inset -2px -2px 5px rgba(46, 46, 46, 0.22), 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}
.widgets-cta .btn-primary:hover { background: var(--powder); color: var(--text); }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Page load sequence ── */
.nav {
  /* backwards, not both: a held opacity animation makes .nav a backdrop root, which
     stops the scrolled pill's backdrop-filter from seeing (and blurring) the page */
  animation: fade-in 0.4s ease backwards;
}

.hero__greeting {
  animation: fade-up 0.5s 0.1s ease-out both;
}

.hero__sub {
  animation: fade-up 0.4s 0.2s ease-out both;
}

.hero__cta {
  animation: fade-up 0.4s 0.28s ease-out backwards; /* backwards so hover/press transforms still apply */
}

.hero__social,
.hero__scroll {
  animation: fade-in 0.5s 0.34s ease both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
