/* ============================================================
   SwatchPop! — Design System
   Editorial atelier styling on the original SwatchPop palette.
   Display: Fraunces (variable) / Text: Nunito Sans (variable)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/Fraunces-normal-1.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/Fraunces-italic-0.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 200 1000;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/NunitoSans-normal-3.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 200 1000;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/NunitoSans-italic-2.woff2) format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette, kept from the original site */
  --coral: #EE6557;
  --coral-deep: #D84A3B;
  --coral-soft: #FBE8E5;
  --gold: #C4A354;
  --gold-deep: #A98936;
  --gold-soft: #F4ECDA;
  --ink: #2B2B27;
  --ink-mid: #454540;
  --ink-soft: #6B6A61;
  --mist: #DDDDD8;
  --paper: #FAF8F3;
  --paper-deep: #F3EFE7;
  --white: #FFFFFF;
  --line: #E6E1D5;
  --line-soft: #EFEBE1;

  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;

  --w-wide: 1240px;
  --w-mid: 1040px;
  --w-narrow: 760px;
  --w-prose: 680px;

  --ease-out: cubic-bezier(.22, .61, .21, 1);
  --ease-lux: cubic-bezier(.16, .84, .28, 1);
  --shadow-mat: 0 1px 2px rgba(43,43,39,.06), 0 24px 60px -32px rgba(43,43,39,.28);
  --shadow-lift: 0 2px 4px rgba(43,43,39,.05), 0 34px 70px -34px rgba(43,43,39,.34);
  --radius: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; }

body {
  font-family: var(--sans);
  font-size: 1.125rem;              /* 18px base: clear at every age */
  font-weight: 450;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--coral); color: #fff; }

/* Brand stripe: four paint chips across the very top of every page */
.brand-stripe {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 4px; display: flex;
}
.brand-stripe span { flex: 1 1 25%; }
.brand-stripe span:nth-child(1) { background: var(--coral); }
.brand-stripe span:nth-child(2) { background: var(--gold); }
.brand-stripe span:nth-child(3) { background: var(--mist); }
.brand-stripe span:nth-child(4) { background: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 470;
  font-variation-settings: 'opsz' 90;
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.35rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.14; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; }
h4, h5 { font-family: var(--sans); font-weight: 750; line-height: 1.35; }

p { max-width: var(--w-prose); }
.lede {
  font-size: clamp(1.2rem, 1.7vw, 1.34rem);
  line-height: 1.65; font-weight: 430; color: var(--ink-mid);
}
.muted { color: var(--ink-soft); }
em.accent { font-style: italic; color: var(--coral); }

/* The "pop" period: coral dot that ends key headlines */
.pop-dot { color: var(--coral); }

a { color: inherit; }
p a, li a, .prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .25s var(--ease-out), text-decoration-color .25s var(--ease-out);
}
p a:hover, li a:hover, .prose a:hover { color: var(--coral-deep); text-decoration-color: var(--coral); }

/* Eyebrow: three swatch chips + tracked small caps */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--sans);
  font-size: .8rem; font-weight: 800;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow .chips { display: inline-flex; gap: 3px; }
.eyebrow .chips i {
  width: 9px; height: 13px; border-radius: 2px; display: inline-block;
}
.eyebrow .chips i:nth-child(1) { background: var(--coral); }
.eyebrow .chips i:nth-child(2) { background: var(--gold); }
.eyebrow .chips i:nth-child(3) { background: var(--mist); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 3rem, var(--w-wide)); margin-inline: auto; }
.wrap-mid { width: min(100% - 3rem, var(--w-mid)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 3rem, var(--w-narrow)); margin-inline: auto; }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 + p, .section-head h1 + p { margin-top: 1.15rem; }
.alt-bg { background: var(--paper-deep); }
.ink-bg { background: var(--ink); color: var(--paper); }
.ink-bg h1, .ink-bg h2, .ink-bg h3 { color: var(--paper); }

hr.rule { border: 0; border-top: 1px solid var(--line); margin-block: clamp(3rem, 6vw, 5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans); font-size: .84rem; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  padding: 1.02em 2.3em; line-height: 1; white-space: nowrap;
  transition: transform .3s var(--ease-lux), box-shadow .3s var(--ease-lux),
              background-color .3s var(--ease-out), color .3s var(--ease-out),
              border-color .3s var(--ease-out);
}
.btn-primary {
  background: var(--coral); color: #fff;
  box-shadow: 0 14px 30px -14px rgba(238, 101, 87, .55);
}
.btn-primary:hover {
  background: var(--coral-deep); transform: translateY(-2px);
  box-shadow: 0 20px 36px -14px rgba(216, 74, 59, .6);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-large { padding: 1.2em 3em; font-size: .9rem; }

/* Arrow text link */
.arrow-link {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-size: .84rem; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); padding-bottom: .35em; position: relative;
}
.arrow-link::before {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px;
  width: 100%; background: var(--gold);
  transform-origin: left; transition: transform .35s var(--ease-lux), background .3s;
}
.arrow-link .arr { transition: transform .35s var(--ease-lux); font-weight: 400; }
.arrow-link:hover { color: var(--coral-deep); }
.arrow-link:hover::before { background: var(--coral); transform: scaleX(1.06); }
.arrow-link:hover .arr { transform: translateX(5px); }

/* ---------- Gallery mat (signature image treatment) ---------- */
.mat {
  background: #fff; padding: clamp(8px, 1.1vw, 14px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-mat);
}
.mat .mat-inner { overflow: hidden; border-radius: 2px; }
.mat img { width: 100%; transition: transform 1.2s var(--ease-lux); }
a .mat:hover img, .mat.hover-zoom:hover img { transform: scale(1.03); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink); color: var(--paper);
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; padding: .62em 1rem;
  position: relative; z-index: 90;
}
.announce a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(196,163,84,.5); padding-bottom: 1px; transition: color .25s, border-color .25s; }
.announce a:hover { color: #fff; border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250, 248, 243, .85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(43,43,39,.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 82px; gap: 2rem;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 42px; width: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.main-nav a {
  font-size: .92rem; font-weight: 700; text-decoration: none; color: var(--ink-mid);
  letter-spacing: .015em; position: relative; padding: .4em 0;
  transition: color .25s var(--ease-out);
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--coral); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease-lux);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 1.4rem; }
.header-cta .signin {
  font-size: .92rem; font-weight: 700; text-decoration: none; color: var(--ink-mid);
}
.header-cta .signin:hover { color: var(--coral-deep); }
.header-cta .btn { padding: .9em 1.9em; font-size: .78rem; }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 260;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  margin: 5px auto; border-radius: 2px;
  transition: transform .35s var(--ease-lux), opacity .25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .main-nav, .header-cta .signin, .header-cta .register { display: none; }
  .nav-toggle { display: block; }
  .header-inner { height: 70px; }
  .logo img { height: 36px; }
  .mobile-nav {
    position: fixed; inset: 0; z-index: 250; background: var(--paper);
    display: flex; flex-direction: column; justify-content: flex-start;
    padding: 6.5rem 2rem 3rem; overflow-y: auto;
    opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-out);
  }
  .mobile-nav a { flex: 0 0 auto; }
  .mobile-nav a.btn {
    font-family: var(--sans); font-size: .9rem; letter-spacing: .15em;
    align-self: flex-start; padding: 1.02em 2.3em;
  }
  .nav-open .site-header { z-index: 260; background: var(--paper); }
  .nav-open .mobile-nav { opacity: 1; pointer-events: auto; }
  .mobile-nav a {
    font-family: var(--serif); font-size: 2rem; text-decoration: none;
    color: var(--ink); padding: .55rem 0; border-bottom: 1px solid var(--line-soft);
    opacity: 0; transform: translateY(18px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-lux);
  }
  .nav-open .mobile-nav a { opacity: 1; transform: none; }
  .mobile-nav a.small { font-family: var(--sans); font-size: 1rem; font-weight: 700; border: 0; padding: .8rem 0 .3rem; }
  .mobile-nav .btn { margin-top: 2rem; opacity: 0; transform: translateY(18px); transition: opacity .5s .25s, transform .5s .25s var(--ease-lux); }
  .nav-open .mobile-nav .btn { opacity: 1; transform: none; }
}
@media (min-width: 921px) { .mobile-nav { display: none; } }

/* ---------- Hero (home) ---------- */
.hero-home { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
  transform: scale(1.06);
  animation: heroDrift 14s var(--ease-out) forwards;
}
@keyframes heroDrift { to { transform: scale(1.0); } }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(88deg, rgba(250,248,243,.96) 0%, rgba(250,248,243,.88) 34%, rgba(250,248,243,.35) 62%, rgba(250,248,243,.05) 100%);
}
.hero-inner { position: relative; padding-block: clamp(6rem, 13vw, 11.5rem); max-width: 640px; }
.hero-inner .eyebrow { margin-bottom: 1.4rem; }
.hero-inner h1 { margin-bottom: 1.4rem; }
.hero-inner .lede { margin-bottom: 2.4rem; max-width: 33.5ch; }
.hero-actions { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }

/* staged entrance (only when JS is available) */
.js .hero-stage { opacity: 0; transform: translateY(28px); }
.is-loaded .hero-stage {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-lux);
}
.is-loaded .hero-stage.d1 { transition-delay: .12s; }
.is-loaded .hero-stage.d2 { transition-delay: .26s; }
.is-loaded .hero-stage.d3 { transition-delay: .4s; }
.is-loaded .hero-stage.d4 { transition-delay: .54s; }

/* ---------- Press bar ---------- */
.press { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.press-inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); padding-block: 1.6rem; flex-wrap: wrap; justify-content: center; }
.press-label {
  font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); flex-basis: 100%; text-align: center; margin-bottom: .4rem;
}
.press-logos { display: flex; align-items: center; justify-content: center; gap: clamp(1.6rem, 4vw, 3.4rem); flex-wrap: wrap; }
.press-logos img {
  height: 26px; width: auto; opacity: .5; filter: grayscale(1) contrast(.85);
  transition: opacity .3s, filter .3s;
}
.press-logos img:hover { opacity: .9; filter: grayscale(0); }
@media (min-width: 720px) { .press-label { flex-basis: auto; margin: 0; } }

/* ---------- Compare slider ---------- */
.compare {
  position: relative; overflow: hidden; border-radius: 2px;
  cursor: ew-resize; user-select: none; touch-action: pan-y;
}
.compare img { width: 100%; pointer-events: none; }
.compare .after-wrap { position: absolute; inset: 0; overflow: hidden; width: 50%; }
.compare .after-wrap img { position: absolute; inset: 0; height: 100%; width: auto; max-width: none; }
.compare .handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; left: 50%;
  box-shadow: 0 0 18px rgba(0,0,0,.35);
}
.compare .handle::after {
  content: '\2194'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.compare .tag {
  position: absolute; bottom: 14px; z-index: 2;
  font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(43,43,39,.82); color: #fff; padding: .5em 1.1em; border-radius: 999px;
  pointer-events: none;
}
.compare .tag.before { right: 14px; }
.compare .tag.after { left: 14px; }

/* ---------- Steps (how it works) ---------- */
.step-num {
  font-family: var(--serif); font-size: clamp(4.6rem, 8vw, 7rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.3px var(--gold);
  font-weight: 400; font-variation-settings: 'opsz' 144;
}
.step-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
@media (min-width: 880px) { .step-grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6.5rem); } .step-grid.flip > .step-copy { order: 2; } .step-grid.flip > .step-visual { order: 1; } }
.step-copy .step-num { margin-bottom: .6rem; }
.step-copy h2 { margin-bottom: 1.1rem; }
.step-copy p { margin-bottom: 1.9rem; }

/* pick your pops mock card */
.pop-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lift); padding: 2rem 2.2rem; max-width: 380px; margin-inline: auto;
  position: relative;
}
.pop-card .box-title {
  font-family: var(--serif); font-size: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft); margin-bottom: 1.2rem;
}
.pop-card ul { display: grid; gap: .9rem; }
.pop-card li { display: flex; align-items: center; gap: .9rem; font-weight: 700; font-size: 1.02rem; }
.pop-card li img { width: 34px; height: 34px; }
.pop-card .starting {
  margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line-soft);
  display: flex; align-items: baseline; justify-content: space-between;
}
.pop-card .starting .lbl { font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.pop-card .starting .price { font-family: var(--serif); font-size: 2.6rem; color: var(--coral); }
.pop-card .starting .price sup { font-size: 1.2rem; }

/* floating pop icons around the card */
.pop-float { position: relative; }
.pop-float .orbit {
  position: absolute; width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold-soft); border: 1px solid var(--line); box-shadow: var(--shadow-mat);
  display: flex; align-items: center; justify-content: center;
  animation: bob 5.5s ease-in-out infinite;
}
.pop-float .orbit:nth-child(2n) { background: var(--coral-soft); }
.pop-float .orbit:nth-child(3n) { background: var(--paper-deep); }
.pop-float .orbit img { width: 30px; height: 30px; }
.pop-float .orbit:nth-child(odd) { animation-duration: 6.5s; }
@keyframes bob { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(6px); } }

/* designer match collage */
.match-collage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 460px; margin-inline: auto; }
.match-collage img {
  border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow-mat);
  filter: grayscale(.35); opacity: .8; transition: filter .4s, opacity .4s, transform .4s var(--ease-lux);
}
.match-collage img:hover { filter: none; opacity: 1; transform: scale(1.05); }
.match-collage img.selected {
  grid-column: span 2; grid-row: span 2;
  filter: none; opacity: 1; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,163,84,.35), var(--shadow-lift);
}

/* checklist */
.list-check { display: grid; gap: 1rem; margin-bottom: 2rem; max-width: 56ch; }
.list-check li { display: flex; gap: .95rem; align-items: flex-start; font-size: 1.06rem; }
.list-check li::before {
  content: '\2713'; flex: 0 0 26px; height: 26px; margin-top: .15em;
  background: var(--gold-soft); color: var(--gold-deep); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 900;
}

/* solution example slides */
.solution-showcase { position: relative; }
.solution-slide-card { display: none; }
.solution-slide-card.active { display: block; animation: fadeSlide .7s var(--ease-out); }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.solution-slide-card .caption {
  display: flex; gap: 1.6rem; align-items: flex-start; margin-top: 1.6rem;
}
.solution-slide-card .thumb { flex: 0 0 130px; }
.solution-slide-card .caption p { font-size: 1.02rem; color: var(--ink-mid); }
.showcase-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.showcase-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink);
  background: transparent; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s, transform .3s var(--ease-lux);
}
.showcase-nav button:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.showcase-nav .dots { display: flex; gap: 8px; }
.showcase-nav .dots i {
  width: 8px; height: 8px; border-radius: 999px; background: var(--mist);
  transition: background .3s, width .3s var(--ease-lux); cursor: pointer;
}
.showcase-nav .dots i.on { background: var(--coral); width: 26px; }

/* ---------- Testimonials ---------- */
.quote-panel { position: relative; }
.quote-mark {
  font-family: var(--serif); font-size: 7rem; line-height: .6; color: var(--gold);
  display: block; margin-bottom: 1.6rem; font-variation-settings: 'opsz' 144;
}
.quote-slide { display: none; }
.quote-slide.active { display: block; animation: fadeSlide .8s var(--ease-out); }
.quote-slide blockquote {
  font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.42; font-weight: 420; letter-spacing: -.005em; max-width: 44ch;
}
.quote-slide .signature { margin-top: 2rem; }
.quote-slide .signature img { height: 54px; width: auto; }
.quote-slide cite { display: block; margin-top: .8rem; font-style: normal; font-size: .95rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- Cards: Our Work ---------- */
.work-grid { display: grid; gap: clamp(2rem, 4vw, 3.4rem); }
@media (min-width: 680px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .work-grid { grid-template-columns: 1fr 1fr 1fr; } }
.work-card { text-decoration: none; display: block; }
.work-card .mat { margin-bottom: 1.25rem; }
.work-card .mat-inner { aspect-ratio: 4 / 3; }
.work-card .mat-inner img { width: 100%; height: 100%; object-fit: cover; }
.work-card .meta {
  display: flex; align-items: center; gap: .7em;
  font-size: .76rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: .55rem;
}
.work-card .meta .dotsep { width: 4px; height: 4px; border-radius: 50%; background: var(--mist); }
.work-card h3 { transition: color .3s var(--ease-out); }
.work-card:hover h3 { color: var(--coral-deep); }
.work-card .blurb { font-size: 1rem; color: var(--ink-soft); margin-top: .6rem; }
.work-card .more { margin-top: .9rem; }

/* ---------- Case study ---------- */
.case-hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.case-hero .meta-row {
  display: flex; justify-content: center; align-items: center; gap: 1rem;
  margin-bottom: 1.2rem;
}
.case-hero h1 { text-align: center; margin-bottom: 1.4rem; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: .5em; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 2rem;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; transition: color .25s; }
.breadcrumbs a:hover { color: var(--coral-deep); }
.breadcrumbs .sep { color: var(--mist); }
.room-chip {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--gold-soft); color: var(--gold-deep);
  font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
  padding: .55em 1.2em; border-radius: 999px;
}
.pops-chip { background: var(--coral-soft); color: var(--coral-deep); }

.solution-note {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(2rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-mat); max-width: var(--w-narrow); margin-inline: auto;
}
.solution-note .solution-tag {
  position: absolute; top: -0.95em; left: 50%; transform: translateX(-50%);
  background: var(--coral); color: white; white-space: nowrap;
  font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  padding: .55em 1.4em; border-radius: 999px;
}
.solution-note p { font-size: 1.12rem; line-height: 1.75; margin-inline: auto; }

.design-section { margin-block: clamp(3.5rem, 7vw, 6rem); }
.design-section .imgs { display: grid; gap: 1.2rem; margin-bottom: 1.8rem; }
.design-section .imgs.n2 { grid-template-columns: 1fr 1fr; }
.design-section .imgs.n3 { grid-template-columns: 1fr 1fr 1fr; }
.design-section .imgs.n4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .design-section .imgs.n4 { grid-template-columns: repeat(4, 1fr); } }
.design-section .imgs .mat-inner { aspect-ratio: 1; }
.design-section .imgs.n1 .mat-inner { aspect-ratio: auto; }
.design-section .imgs .mat-inner img { width: 100%; height: 100%; object-fit: cover; }
.design-section h3 { margin-bottom: .9rem; }
.design-section h3::after {
  content: ''; display: block; width: 44px; height: 3px; margin-top: .7rem;
  border-radius: 3px; background: linear-gradient(90deg, var(--coral) 0 33%, var(--gold) 33% 66%, var(--mist) 66%);
}
.design-section p { color: var(--ink-mid); }
.design-section p + p { margin-top: 1em; }

/* option tiles: multi-headed template sections (paint options etc.) */
.option-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.option-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow-mat);
}
.option-tile .mat { padding: 0; border: 0; box-shadow: none; margin-bottom: 1rem; }
.option-tile .mat + .mat { margin-top: 1rem; }
.option-tile h4 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: .5rem; }
.option-tile p { font-size: .97rem; color: var(--ink-mid); }
.option-tile p + p { margin-top: .7em; }

/* products */
.product-grid { display: grid; gap: 1.6rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: 1fr 1fr 1fr; } }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; display: flex; gap: 1.3rem; align-items: flex-start;
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-lux), border-color .35s;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: var(--mist); }
.product-card .pimg { flex: 0 0 108px; height: 108px; display: flex; align-items: center; justify-content: center; position: relative; }
.product-card .qty-flag {
  position: absolute; bottom: 0; right: 0;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  background: var(--ink); color: var(--paper);
  padding: .3em .7em; border-radius: 999px;
}
.product-card .pimg img { max-height: 108px; width: auto; object-fit: contain; }
.product-card .alt-flag {
  position: absolute; top: .9rem; right: .9rem;
  font-size: .62rem; font-weight: 800; letter-spacing: .14em;
  background: var(--gold-soft); color: var(--gold-deep);
  padding: .35em .8em; border-radius: 999px;
}
.product-card h4 { font-size: 1.02rem; margin-bottom: .2rem; }
.product-card .retailer { font-size: .85rem; color: var(--gold-deep); font-weight: 700; }
.product-card .price { font-family: var(--serif); font-size: 1.25rem; margin-top: .35rem; }
.product-card .note { font-size: .85rem; color: var(--ink-soft); margin-top: .3rem; }
.product-card .buy {
  margin-top: .8rem; display: inline-flex;
  font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral-deep); text-decoration: none; border-bottom: 1.5px solid var(--coral);
  padding-bottom: .25em; transition: color .25s, border-color .25s;
}
.product-card .buy:hover { color: var(--ink); border-color: var(--ink); }
.affiliate-note { font-size: .84rem; color: var(--ink-soft); text-align: center; margin-top: 2rem; }

/* case study pager */
.case-pager { display: flex; justify-content: space-between; gap: 1.5rem; }
.case-pager a { max-width: 46%; }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: clamp(2.2rem, 4vw, 3.2rem); }
@media (min-width: 680px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .post-grid { grid-template-columns: 1fr 1fr 1fr; } }
.post-card { text-decoration: none; display: block; }
.post-card .mat { margin-bottom: 1.2rem; }
.post-card .mat-inner { aspect-ratio: 3 / 2; }
.post-card .mat-inner img { width: 100%; height: 100%; object-fit: cover; }
.post-card .meta {
  display: flex; align-items: center; gap: .8em; margin-bottom: .5rem;
  font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.post-card .meta .cat { color: var(--coral-deep); }
.post-card .meta time { color: var(--ink-soft); font-weight: 700; letter-spacing: .1em; }
.post-card h3 { font-size: 1.35rem; transition: color .3s; }
.post-card:hover h3 { color: var(--coral-deep); }
.post-card .excerpt { font-size: .99rem; color: var(--ink-soft); margin-top: .55rem; }

.featured-post { display: grid; gap: 2rem; align-items: center; text-decoration: none; }
@media (min-width: 880px) { .featured-post { grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 5vw, 4.5rem); } }
.featured-post .mat-inner { aspect-ratio: 16 / 10; }
.featured-post .mat-inner img { width: 100%; height: 100%; object-fit: cover; }
.featured-post h2 { margin-block: .7rem 1rem; transition: color .3s; }
.featured-post:hover h2 { color: var(--coral-deep); }
.featured-post p { color: var(--ink-mid); }

.cat-nav { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.cat-nav a {
  font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-mid);
  border: 1.5px solid var(--line); border-radius: 999px; padding: .62em 1.5em;
  transition: all .3s var(--ease-out); background: #fff;
}
.cat-nav a:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.cat-nav a.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Article */
.article-hero { position: relative; }
.article-hero .mat { max-width: var(--w-mid); margin-inline: auto; }
.article-head { text-align: center; padding-top: clamp(2.5rem, 5vw, 4rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.article-head .meta {
  display: flex; justify-content: center; gap: 1em; align-items: center; margin-bottom: 1.1rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.article-head .meta .cat { color: var(--coral-deep); text-decoration: none; }
.article-head .meta time { color: var(--ink-soft); }
.article-head h1 { max-width: 21ch; margin-inline: auto; }

.prose { max-width: var(--w-prose); margin-inline: auto; font-size: 1.15rem; line-height: 1.8; }
.prose p { margin-bottom: 1.5em; max-width: none; }
.prose h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem); margin: 2em 0 .8em; line-height: 1.25;
}
.prose h3 { margin: 1.8em 0 .7em; }
.prose img { border-radius: 3px; margin-block: .6em; }
.prose .img-row { display: grid; gap: 1.2rem; margin-block: 2em; }
.prose .img-row.n2 { grid-template-columns: 1fr 1fr; }
.prose .img-row.n3 { grid-template-columns: 1fr 1fr 1fr; }
.prose .img-row .mat { align-self: start; }
.prose ul, .prose ol { margin: 0 0 1.5em 1.3em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  border-left: 3px solid var(--gold); padding-left: 1.4em; margin-block: 1.8em;
  font-family: var(--serif); font-size: 1.25em; line-height: 1.5; color: var(--ink-mid);
}
.prose .video-embed {
  position: relative; aspect-ratio: 16 / 9; margin-block: 2em;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-mat);
}
.prose .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Legacy blog-body structures, restyled ---- */
.prose .blog-section { margin-block: 2.2em; }
.prose .image-row { display: grid; gap: 1.2rem; margin-block: 1.6em; }
.prose .image-row.cols-2 { grid-template-columns: 1fr 1fr; }
.prose .image-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prose .image-row.cols-4 { grid-template-columns: repeat(2, 1fr); }
.prose .image-row img { width: 100%; border-radius: 3px; margin: 0; }
.prose .text-center { text-align: center; }
.prose .text-muted { color: var(--ink-soft); font-size: .92em; }
.prose .btn { text-decoration: none; margin: .35em .25em; }
.prose .btn-white, .prose .btn.btn-white {
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  font-size: .76rem; padding: .85em 1.8em;
}
.prose .btn-white:hover { background: var(--ink); color: var(--paper); }
.prose .btn-primary { font-size: .76rem; padding: .85em 1.8em; }
.prose .sourced-image { margin-block: 1.6em; }
.prose .sourced-image img { width: 100%; border-radius: 3px; }
.prose .image-source { font-size: .84rem; color: var(--ink-soft); margin-top: .55em; text-align: right; }
.prose .product-masonry .grid { column-count: 2; column-gap: 1.2rem; }
@media (min-width: 720px) { .prose .product-masonry .grid { column-count: 3; } }
.prose .grid-item, .prose .grid-item--width2 {
  break-inside: avoid; margin-bottom: 1.2rem; background: #fff;
  border: 1px solid var(--line); border-radius: 4px; padding: .8rem;
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-lux);
}
.prose .grid-item:hover { box-shadow: var(--shadow-mat); transform: translateY(-2px); }
.prose .grid-item img { margin: 0; width: 100%; }
.prose .gutter-sizer { display: none; }
.prose .featured-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-block: 1.8em; }
@media (min-width: 720px) { .prose .featured-products { grid-template-columns: repeat(4, 1fr); } }
.prose .featured-products > div {
  background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1rem;
  text-align: center; transition: box-shadow .3s, transform .3s var(--ease-lux);
}
.prose .featured-products > div:hover { box-shadow: var(--shadow-mat); transform: translateY(-2px); }
.prose .featured-products img { margin: 0 auto .6em; max-height: 150px; width: auto; }
.prose .price { font-family: var(--serif); font-size: 1.05em; margin-top: .3em; }
.prose .vendor { font-size: .82rem; color: var(--gold-deep); font-weight: 700; }
.prose .vendor a { color: inherit; }
.prose .img-container, .prose .img-container-sm { margin-block: 1.2em; }
.prose .row { display: grid; gap: 1.2rem; margin-block: 1.4em; }
.prose .row.cols-2 { grid-template-columns: 1fr 1fr; }
.prose .row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prose .post-footer {
  margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line);
}
.prose .post-footer .text-muted { font-size: .84rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2em; }
.prose small { font-size: .85em; color: var(--ink-soft); }
@media (max-width: 640px) {
  .prose .image-row.cols-3, .prose .image-row.cols-4 { grid-template-columns: 1fr 1fr; }
  .prose .product-masonry .grid { column-count: 2; }
}

.share-row {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.share-row .lbl { font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.share-row a {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  color: var(--ink-mid); transition: all .3s var(--ease-out); font-size: .9rem;
}
.share-row a:hover { border-color: var(--coral); color: var(--coral-deep); transform: translateY(-2px); }

.related { border-top: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq-list { max-width: var(--w-narrow); margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem .2rem; font-family: var(--serif); font-size: 1.28rem; color: var(--ink);
  transition: color .25s;
}
.faq-q:hover { color: var(--coral-deep); }
.faq-q .ind {
  flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line);
  position: relative; transition: all .35s var(--ease-lux);
}
.faq-q .ind::before, .faq-q .ind::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--ink-mid);
  transition: all .35s var(--ease-lux);
}
.faq-q .ind::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-q .ind::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.faq-item.open .faq-q .ind { background: var(--coral); border-color: var(--coral); }
.faq-item.open .faq-q .ind::before { background: #fff; }
.faq-item.open .faq-q .ind::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; background: #fff; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .5s var(--ease-lux); }
.faq-a-inner { padding: 0 .2rem 1.8rem; color: var(--ink-mid); max-width: 62ch; }
.faq-a-inner p + p { margin-top: 1em; }

/* ---------- Forms ---------- */
.form-shell {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow-mat); padding: clamp(1.8rem, 4vw, 3rem);
}
.field { margin-bottom: 1.5rem; }
.field label {
  display: block; font-size: .8rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-mid); margin-bottom: .55rem;
}
.field label .req { color: var(--coral); }
.field label .hint { font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--ink-soft); font-size: .85rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field input[type="date"], .field input[type="number"],
.field input[type="url"], .field select, .field textarea {
  width: 100%; padding: .95em 1.1em; font-size: 1rem; font-weight: 500;
  border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper);
  color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 4px rgba(196,163,84,.14);
}
.field-row { display: grid; gap: 0 1.4rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .9rem; color: var(--ink-soft); }
.radio-row { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.radio-row label {
  display: inline-flex; align-items: center; gap: .55em; cursor: pointer;
  font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: 0; margin: 0;
}
.radio-row input { accent-color: var(--coral); width: 1.1em; height: 1.1em; }

/* pop picker on start-a-project */
.pop-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 720px) { .pop-picker { grid-template-columns: repeat(4, 1fr); } }
.pop-tile {
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
  padding: 1.2rem .8rem; text-align: center; cursor: pointer;
  transition: all .3s var(--ease-out); user-select: none;
}
.pop-tile:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-mat); }
.pop-tile.on { border-color: var(--coral); background: var(--coral-soft); }
.pop-tile img { width: 44px; height: 44px; margin: 0 auto .6rem; }
.pop-tile .nm { font-weight: 800; font-size: .92rem; line-height: 1.25; }
.pop-tile .ds { font-size: .78rem; color: var(--ink-soft); margin-top: .2rem; }

/* ---------- Newsletter ---------- */
.newsletter-band { background: var(--paper-deep); }
.newsletter-form { display: flex; gap: .8rem; max-width: 520px; margin-inline: auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 260px; padding: 1em 1.3em; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.newsletter-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(196,163,84,.14); }
.newsletter-form .btn { flex: 0 0 auto; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .cta-inner { position: relative; text-align: center; padding-block: clamp(5rem, 9vw, 7.5rem); }
.cta-band h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 1.2rem; }
.cta-band p { margin: 0 auto 2.4rem; }
.cta-band.ink-bg .swatches { display: flex; justify-content: center; gap: 6px; margin-bottom: 2rem; }
.cta-band .swatches i { width: 26px; height: 36px; border-radius: 4px; display: inline-block; transform: rotate(0deg); }
.cta-band .swatches i:nth-child(1) { background: var(--coral); transform: rotate(-6deg); }
.cta-band .swatches i:nth-child(2) { background: var(--gold); transform: rotate(3deg); }
.cta-band .swatches i:nth-child(3) { background: var(--mist); transform: rotate(-2deg); }
.cta-band .swatches i:nth-child(4) { background: var(--paper); transform: rotate(5deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,248,243,.78); font-size: .98rem; }
.footer-main {
  display: grid; gap: 3rem; padding-block: clamp(3.5rem, 6vw, 5.5rem);
}
@media (min-width: 880px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; } }
.footer-brand img { height: 44px; width: auto; margin-bottom: 1.3rem; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-col .ttl {
  font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { text-decoration: none; color: rgba(250,248,243,.78); transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: .9rem; margin-top: 1.6rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(250,248,243,.25);
  display: flex; align-items: center; justify-content: center; color: rgba(250,248,243,.85);
  text-decoration: none; transition: all .3s var(--ease-out);
}
.footer-social a:hover { background: var(--coral); border-color: var(--coral); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(250,248,243,.14); padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .84rem; color: rgba(250,248,243,.55);
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { text-align: center; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero h1 { max-width: 22ch; margin-inline: auto; }
.page-hero .lede { max-width: 52ch; margin: 1.3rem auto 0; }

/* ---------- Auth pages ---------- */
.auth-shell { max-width: 460px; margin-inline: auto; }
.auth-links { text-align: center; font-size: .95rem; margin-top: 1.6rem; color: var(--ink-soft); }

/* ---------- Reveal on scroll (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-lux);
}
.reveal.d1.in { transition-delay: .08s; }
.reveal.d2.in { transition-delay: .16s; }
.reveal.d3.in { transition-delay: .24s; }
.reveal.d4.in { transition-delay: .32s; }
.reveal.d5.in { transition-delay: .4s; }
.reveal.d6.in { transition-delay: .48s; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .8em 1.4em; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.error-hero { text-align: center; padding-block: clamp(6rem, 14vw, 11rem); }
.error-hero .code {
  font-family: var(--serif); font-size: clamp(6rem, 16vw, 11rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero-stage { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .announce { font-size: .66rem; letter-spacing: .08em; }
  .header-cta .btn { padding: .8em 1.3em; font-size: .7rem; }
  .hero-inner { padding-block: 4.5rem; }
  .hero-media::after { background: linear-gradient(180deg, rgba(250,248,243,.94) 0%, rgba(250,248,243,.86) 55%, rgba(250,248,243,.5) 100%); }
  .design-section .imgs.n2, .design-section .imgs.n3 { grid-template-columns: 1fr 1fr; }
  .prose .img-row.n3 { grid-template-columns: 1fr; }
  .prose .img-row.n2 { grid-template-columns: 1fr; }
  .case-pager { flex-direction: column; }
  .case-pager a { max-width: 100%; }
}
