/* ==========================================================================
   Wear Your Best Friend — Custom Pet-Portrait Apparel (Portfolio)
   Shared design system + site styles
   --------------------------------------------------------------------------
   Table of contents
   1.  Fonts
   2.  Design tokens (custom properties)
   3.  Reset & base
   4.  Typography
   5.  Layout: container, sections, paper bands
   6.  Buttons & links
   7.  Polaroid / framed image component
   8.  Site header & navigation (responsive)
   9.  Site footer
   10. Home: hero
   11. Home: transformation (photo -> artwork -> shirt)
   12. Home: value props
   13. Home: gallery teaser
   14. Home: closing CTA
   16. Gallery: page header, filters, masonry wall
   17. Lightbox
   18. Process
   19. The Pack (+ shared placeholder box)
   20. About
   21. Contact
   22. Products
   15. Utilities & motion preferences (kept last on purpose)
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Mulish:wght@300;400;500;600;700&family=Allura&display=swap');

/* 2. Design tokens -------------------------------------------------------- */
:root {
  /* Palette — pulled from the About mockup: warm cream paper, soft beige
     bands, deep cocoa ink for headers, muted clay for the heart accent. */
  --color-paper:        #f4ecdf; /* primary cream background            */
  --color-paper-warm:   #ece0cb; /* warmer beige band                  */
  --color-paper-deep:   #e3d4ba; /* deepest band / subtle contrast     */
  --color-card:         #fbf8f1; /* polaroid / card surface            */

  --color-ink:          #463526; /* deep cocoa — display headers       */
  --color-text:         #5b4a39; /* warm brown — body copy             */
  --color-text-soft:    #7a6750; /* muted brown — secondary copy       */

  --color-accent:       #b0492f; /* muted clay/terracotta — the heart  */
  --color-accent-deep:  #93371f; /* darker clay for hover               */
  --color-sage:         #8a9479; /* optional muted sage secondary       */

  --color-line:         #d8c7a9; /* hairline rules / borders            */
  --color-line-soft:    #e6d9c1; /* faint dividers                      */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script:  'Allura', 'Brush Script MT', cursive;

  /* Modular type scale (~1.25) */
  --fs-100: 0.78rem;
  --fs-200: 0.875rem;
  --fs-300: 1rem;       /* body base */
  --fs-400: 1.15rem;
  --fs-500: 1.45rem;
  --fs-600: 1.85rem;
  --fs-700: 2.4rem;
  --fs-800: 3.1rem;
  --fs-900: 4rem;       /* hero display */

  --lh-tight: 1.12;
  --lh-snug:  1.3;
  --lh-body:  1.7;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container:      1180px;
  --container-text: 720px;  /* comfortable measure for prose */

  /* Radius & shadow */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --shadow-soft:  0 10px 30px -12px rgba(70, 53, 38, 0.28);
  --shadow-lift:  0 22px 48px -20px rgba(70, 53, 38, 0.40);
  --shadow-frame: 0 14px 34px -14px rgba(70, 53, 38, 0.45);

  --transition: 220ms ease;
}

/* 3. Reset & base --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-300);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-paper);
  /* Soft layered "paper" texture: faint warm mottling + fine grain.       */
  background-image:
    radial-gradient(at 20% 18%, rgba(255, 252, 244, 0.7) 0, transparent 55%),
    radial-gradient(at 82% 8%,  rgba(221, 206, 178, 0.45) 0, transparent 45%),
    radial-gradient(at 70% 92%, rgba(221, 206, 178, 0.40) 0, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: clip; /* guard against any horizontal spill on small screens */
}

img,
picture,
video { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

ul[role='list'] { list-style: none; padding: 0; }

/* 4. Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: var(--lh-tight);
  font-weight: 600;
  letter-spacing: 0.01em;
}

p { max-width: 68ch; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
}

/* Script accent — used sparingly, as in the mockup */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--color-text-soft);
  line-height: 1;
}

/* Small caps-style eyebrow label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* Section heading block with the mockup's "— heading —" flanking rules */
.section-heading {
  text-align: center;
  /* Wider than the prose measure so a flanked heading and its two rules fit on one
     line (a wrapped heading stretches full width and pushes the rules apart).
     Paragraphs inside still keep their own 68ch measure. */
  max-width: 880px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}
.section-heading h2 {
  font-size: clamp(var(--fs-600), 4vw, var(--fs-700));
  margin-bottom: var(--space-sm);
}
.section-heading .flank {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-ink);
}
.section-heading .flank::before,
.section-heading .flank::after {
  content: '';
  width: clamp(40px, 12vw, 96px);
  height: 1px;
  background: var(--color-line);
}
/* On phones a flanked heading often wraps, and a wrapped heading pushes its rules
   to the screen edges. Drop the decorative rules there instead. */
@media (max-width: 560px) {
  .section-heading .flank::before,
  .section-heading .flank::after { display: none; }
}
.section-heading p {
  margin-inline: auto;
  margin-top: var(--space-sm);
  color: var(--color-text-soft);
  font-size: var(--fs-400);
}

/* 5. Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }

/* Alternating warm "paper bands" echo the horizontal striping in the mockup */
.band-warm { background-color: var(--color-paper-warm); }
.band-deep { background-color: var(--color-paper-deep); }

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -3rem;
  z-index: 100;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: var(--space-sm); }

/* 6. Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-300);
  letter-spacing: 0.02em;
  padding: 0.85em 1.9em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), background-color var(--transition),
              color var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
.btn:focus-visible {
  outline: 3px solid var(--color-sage);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-ink);
  color: var(--color-paper);
}
.btn--primary:hover {
  background-color: var(--color-accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Accent variant — clay at rest, cocoa on hover (the inverse of primary) */
.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-paper);
}
.btn--accent:hover {
  background-color: var(--color-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}
.btn--ghost:hover {
  border-color: var(--color-ink);
  background-color: rgba(70, 53, 38, 0.04);
  transform: translateY(-2px);
}

/* Quiet inline text link with animated underline */
.link-quiet {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--color-line);
  padding-bottom: 1px;
  transition: border-color var(--transition), color var(--transition);
}
.link-quiet:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* 7. Polaroid / framed image --------------------------------------------- */
.polaroid {
  background: var(--color-card);
  padding: 0.8rem 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-frame);
  transition: transform var(--transition), box-shadow var(--transition);
}
.polaroid img {
  border-radius: 2px;
  width: 100%;
  object-fit: cover;
}
.polaroid figcaption {
  font-family: var(--font-script);
  font-size: var(--fs-500);
  color: var(--color-text-soft);
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1;
}
/* Gentle hand-pinned tilt; straightens on hover */
.polaroid--tilt-l { transform: rotate(-2.2deg); }
.polaroid--tilt-r { transform: rotate(2.2deg); }
.polaroid--tilt-l:hover,
.polaroid--tilt-r:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* 8. Site header & navigation -------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(244, 236, 223, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--color-ink);
}
.brand__mark {
  font-family: var(--font-script);
  font-size: var(--fs-600);
  line-height: 1;
  color: var(--color-accent);
}
.brand__name {
  font-family: var(--font-display);
  font-size: var(--fs-400);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-sm), 2.5vw, var(--space-lg));
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  position: relative;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--fs-200);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-block: 0.5rem;
  transition: color var(--transition);
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--color-ink); }
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current='page']::after { transform: scaleX(1); }
.primary-nav a[aria-current='page'] { color: var(--color-ink); }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-ink);
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms ease;
  }
  .primary-nav.is-open { max-height: 70vh; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }
  .primary-nav a {
    display: block;
    font-size: var(--fs-400);
    padding-block: var(--space-sm);
    border-bottom: 1px solid var(--color-line-soft);
  }
  .primary-nav a::after { display: none; }

  /* Hamburger -> X when open */
  .nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* 9. Site footer ---------------------------------------------------------- */
.site-footer {
  background-color: var(--color-paper-deep);
  border-top: 1px solid var(--color-line);
  padding-block: var(--space-xl) var(--space-lg);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.site-footer__brand .brand { margin-bottom: var(--space-sm); }
.site-footer__brand p {
  color: var(--color-text-soft);
  max-width: 38ch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--fs-200);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-nav a:hover { color: var(--color-accent); }

.site-footer__made {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-line-soft);
}
.site-footer__made .script {
  font-size: clamp(var(--fs-600), 5vw, var(--fs-800));
  color: var(--color-ink);
}
.site-footer__made .heart { color: var(--color-accent); font-style: normal; }
.site-footer__legal {
  margin-top: var(--space-sm);
  color: var(--color-text-soft);
  font-size: var(--fs-100);
}

/* 10. Home: hero ---------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-2xl);
  padding-block: var(--space-2xl) var(--space-2xl);
}
.hero__tagline {
  font-family: var(--font-script);
  font-size: clamp(var(--fs-600), 5vw, var(--fs-800));
  color: var(--color-text-soft);
  margin-bottom: var(--space-2xs);
}
.hero__title {
  font-size: clamp(1.85rem, 7.4vw, var(--fs-900));
  margin-bottom: var(--space-md);
  overflow-wrap: break-word;
  text-wrap: balance;
  letter-spacing: 0;
}
.hero__title .accent { color: var(--color-accent); font-style: italic; }
.hero__lede {
  font-size: var(--fs-400);
  color: var(--color-text-soft);
  margin-bottom: var(--space-lg);
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* Stacked, overlapping framed art on the right side of the hero */
.hero__art {
  position: relative;
  min-height: 460px;
}
.hero__art .polaroid { position: absolute; }
.hero__art-main {
  width: 66%;
  top: 0;
  right: 4%;
  z-index: 2;
}
.hero__art-sub {
  width: 46%;
  bottom: 0;
  left: 2%;
  z-index: 3;
}
.hero__art-sub img { aspect-ratio: 4 / 5; }

/* 11. Home: transformation ------------------------------------------------ */
.transform__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: end;
}
.transform__step { text-align: center; }
.transform__step .polaroid { margin-bottom: var(--space-sm); }
.transform__step img { aspect-ratio: 4 / 5; }
.transform__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-display);
  font-size: var(--fs-200);
  margin-bottom: var(--space-2xs);
}
.transform__step h3 {
  font-size: var(--fs-500);
  margin-bottom: var(--space-3xs);
}
.transform__step p {
  color: var(--color-text-soft);
  font-size: var(--fs-200);
  max-width: 26ch;
  margin-inline: auto;
}
/* Connector arrows between the three steps (desktop only) */
.transform__steps .transform__step:not(:last-child) { position: relative; }
.transform__steps .transform__step:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  top: 38%;
  right: calc(var(--space-md) * -0.5 - 0.5ch);
  transform: translate(50%, -50%);
  font-size: var(--fs-600);
  color: var(--color-line);
  z-index: 4;
}

/* 12. Home: value props --------------------------------------------------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.value { text-align: center; }
.value__icon {
  font-size: var(--fs-700);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.value h3 { font-size: var(--fs-500); margin-bottom: var(--space-2xs); }
.value p { color: var(--color-text-soft); margin-inline: auto; max-width: 30ch; }

/* 13. Home: gallery teaser ------------------------------------------------ */
.teaser__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.teaser__grid figure { margin: 0; }
.teaser__grid img { aspect-ratio: 4 / 5; }
.teaser__grid .polaroid:nth-child(odd) { transform: rotate(-1.5deg); }
.teaser__grid .polaroid:nth-child(even) { transform: rotate(1.5deg); }
.teaser__grid .polaroid:hover { transform: rotate(0) translateY(-4px); }
.teaser__cta { text-align: center; }

/* 14. Home: closing CTA --------------------------------------------------- */
.closing {
  text-align: center;
}
.closing__card {
  max-width: 760px;
  margin-inline: auto;
  background: var(--color-card);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-soft);
}
.closing__card .script {
  font-size: clamp(var(--fs-600), 4vw, var(--fs-700));
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}
.closing__card h2 {
  font-size: clamp(var(--fs-600), 4vw, var(--fs-700));
  margin-bottom: var(--space-sm);
}
.closing__card p {
  color: var(--color-text-soft);
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  font-size: var(--fs-400);
}

/* 16. Gallery ------------------------------------------------------------- */
/* Page intro header (shared pattern for inner pages) */
.page-header { text-align: center; padding-block: var(--space-2xl) var(--space-lg); }
.page-header .eyebrow { margin-bottom: var(--space-sm); }
.page-header__script {
  font-family: var(--font-script);
  font-size: clamp(var(--fs-700), 7vw, var(--fs-900));
  color: var(--color-ink);
  line-height: 0.9;
  margin-bottom: var(--space-2xs);
}
.page-header h1 {
  font-size: clamp(var(--fs-600), 4vw, var(--fs-700));
  margin-bottom: var(--space-sm);
}
.page-header p {
  max-width: 56ch;
  margin-inline: auto;
  color: var(--color-text-soft);
  font-size: var(--fs-400);
}

/* Filter bar */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs) var(--space-sm);
  margin-bottom: var(--space-xl);
}
.filter-btn {
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  background: transparent;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 0.6em 1.4em;
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.filter-btn:hover {
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.filter-btn[aria-pressed='true'] {
  color: var(--color-paper);
  background: var(--color-ink);
  border-color: var(--color-ink);
}
.filter-btn:focus-visible {
  outline: 3px solid var(--color-sage);
  outline-offset: 3px;
}

/* Masonry wall. A CSS grid (not multi-column: Chrome mis-paints shadows and
   nudges items inside multicol boxes when a column item animates — phantom
   shadow bands and staggered card tops). Masonry packing comes from
   main.js, which sets each card's grid-row span from its rendered height
   once the wall has the .is-masonry class. Without JS it is a plain grid
   with aligned tops. */
.gallery-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-md);
  align-items: start;
}
.gallery-wall.is-masonry {
  grid-auto-rows: 8px;   /* fine row unit; JS spans each card across N of them */
  grid-auto-flow: row dense;
}
.art-card {
  margin: 0;
  background: var(--color-card);
  padding: 0.7rem 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  overflow: hidden; /* contain the image zoom on hover */
  transition: box-shadow var(--transition);
}
.art-card img {
  width: 100%;
  display: block;
  border-radius: 2px;
  background: var(--color-paper-warm);
  transition: transform 320ms ease;
}
.art-card figcaption {
  padding: 0.7rem 0.3rem 0.4rem;
  text-align: center;
}
.art-card .art-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-400);
  color: var(--color-ink);
  line-height: 1.2;
}
.art-card .art-card__meta {
  display: block;
  font-size: var(--fs-100);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-top: 0.2rem;
}
.art-card:hover {
  box-shadow: var(--shadow-lift);
}
.art-card:hover img {
  transform: scale(1.08);
}

/* Filtering: hidden items leave the grid so it reflows */
.art-card.is-hidden { display: none; }

/* Empty-measure spacer so a "no results" message could sit centered */
.gallery-empty {
  text-align: center;
  color: var(--color-text-soft);
  padding-block: var(--space-xl);
}

/* Make gallery images read as activatable (set up by JS) */
.art-card img[role='button'],
.pack-collage img[role='button'],
.same-strip img[role='button'] { cursor: zoom-in; }

/* Gallery hero: full-bleed crossfading portraits with the page copy laid over
   the empty paper on the left (every source has the pet on the right). */
.gallery-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 46vw, 620px);
  display: grid;
  align-items: center;
  background: var(--color-paper-warm);
}
.hero-slider,
.hero-slider__stage { position: absolute; inset: 0; }
.hero-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1200ms ease;
}
.hero-slider__slide.is-active { opacity: 1; }
.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}
/* For a source whose subject's head sits near the top edge: crop from the bottom only */
.hero-slider__slide--top img { object-position: right top; }
/* Soft cream wash on the left so the copy stays legible over the paper texture */
.gallery-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 236, 223, 0.92) 0%, rgba(244, 236, 223, 0.75) 38%, rgba(244, 236, 223, 0) 65%);
  pointer-events: none;
}
.gallery-hero__copy {
  position: relative;
  max-width: 44ch;
  margin-left: max(var(--space-md), calc((100% - var(--container)) / 2 + var(--space-md)));
  padding-block: var(--space-2xl);
}
.gallery-hero__copy .eyebrow { display: block; margin-bottom: var(--space-sm); }
.gallery-hero__copy h1 { font-size: clamp(var(--fs-700), 4.5vw, var(--fs-800)); margin-bottom: var(--space-sm); }
.gallery-hero__copy p { color: var(--color-text); font-size: var(--fs-400); }

@media (max-width: 760px) {
  /* Not enough room for copy over the image: stack copy above a 16:9 banner */
  .gallery-hero { min-height: 0; display: block; }
  .hero-slider { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .gallery-hero__scrim { display: none; }
  .gallery-hero__copy { max-width: none; margin: 0; padding: var(--space-xl) var(--space-md) var(--space-lg); text-align: center; }
  .gallery-hero__copy p { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide { transition: none; }
}

/* 17. Lightbox ------------------------------------------------------------ */
.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(40, 30, 22, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  animation: lb-fade 200ms ease both;
}
.lightbox[hidden] { display: none; }

.lightbox__stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  cursor: default;
  animation: lb-pop 260ms cubic-bezier(0.16, 0.84, 0.44, 1) both;
}
.lightbox__img {
  display: block;
  max-width: min(900px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--color-card);
  padding: clamp(0.5rem, 1.5vw, 0.9rem);
  box-shadow: 0 36px 70px -24px rgba(0, 0, 0, 0.65);
}
.lightbox__caption {
  color: var(--color-paper);
  font-family: var(--font-display);
  font-size: var(--fs-400);
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Control buttons (close + prev/next) */
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(244, 236, 223, 0.5);
  background: rgba(244, 236, 223, 0.12);
  color: var(--color-paper);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition),
              transform var(--transition);
}
.lightbox__btn:hover {
  background: var(--color-paper);
  color: var(--color-ink);
  border-color: var(--color-paper);
}
.lightbox__btn:focus-visible {
  outline: 3px solid var(--color-sage);
  outline-offset: 3px;
}
.lightbox__close { top: clamp(1rem, 3vw, 1.6rem); right: clamp(1rem, 3vw, 1.6rem); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: clamp(0.5rem, 2.5vw, 2rem); }
.lightbox__nav--next { right: clamp(0.5rem, 2.5vw, 2rem); }
.lightbox__btn[hidden] { display: none; }

@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-pop {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* 18. Process: editorial step rows + before/after feature ----------------- */
.process-steps {
  display: grid;
  gap: var(--space-2xl);
}

.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-lg), 5vw, var(--space-2xl));
  align-items: center;
}
/* Alternate the image side on even rows for an editorial rhythm */
.process-step:nth-child(even) .process-step__media { order: 2; }

.process-step__media { position: relative; }
.process-step__media .polaroid { max-width: 480px; margin-inline: auto; }
.process-step__media img { aspect-ratio: 4 / 5; }
.process-step__media--wide img { aspect-ratio: 3 / 2; }

.process-step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(var(--fs-800), 8vw, 5rem);
  line-height: 0.9;
  color: var(--color-line);
  margin-bottom: var(--space-xs);
}
.process-step__eyebrow { margin-bottom: var(--space-2xs); }
.process-step__body h2 {
  font-size: clamp(var(--fs-600), 4vw, var(--fs-700));
  margin-bottom: var(--space-sm);
}
.process-step__body p {
  color: var(--color-text-soft);
  font-size: var(--fs-400);
  max-width: 46ch;
}

/* Before / after feature */
.compare {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
}
.compare__frame {
  background: var(--color-card);
  padding: clamp(0.6rem, 2vw, 1rem);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-frame);
}
.compare__frame img {
  width: 100%;
  border-radius: 2px;
  display: block;
}
/* "Photo / Portrait" tags sitting over each half of the side-by-side image */
.compare__tag {
  position: absolute;
  top: clamp(1.2rem, 3vw, 2rem);
  font-family: var(--font-body);
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink);
  background: rgba(251, 248, 241, 0.9);
  padding: 0.4em 1em;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}
.compare__tag--before { left: clamp(1.2rem, 4vw, 2.4rem); }
.compare__tag--after  { right: clamp(1.2rem, 4vw, 2.4rem); }
.compare__caption {
  text-align: center;
  margin-top: var(--space-md);
}
.compare__caption .script {
  font-size: clamp(var(--fs-600), 5vw, var(--fs-700));
  color: var(--color-ink);
}
.compare__caption p { color: var(--color-text-soft); margin-inline: auto; margin-top: var(--space-2xs); }

@media (max-width: 760px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  /* Always show the image above the copy on small screens */
  .process-step__media,
  .process-step:nth-child(even) .process-step__media { order: -1; }
  .process-step__num { font-size: var(--fs-700); }
  .compare__tag { top: 0.8rem; font-size: 0.62rem; padding: 0.35em 0.8em; }
}

/* 19. The Pack: featured-pet stories, alternating ------------------------- */
.pack-list {
  display: grid;
  gap: var(--space-3xl);
}

.pack-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-lg), 5vw, var(--space-2xl));
  align-items: center;
}
/* Alternate the collage side on every other story */
.pack-entry:nth-child(even) .pack-entry__media { order: 2; }

/* Scrapbook collage: tall artwork + owner photo + tee */
.pack-collage {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-sm);
  align-items: start;
}
.pack-collage figure {
  margin: 0;
  background: var(--color-card);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pack-collage img {
  width: 100%;
  display: block;
  border-radius: 2px;
  object-fit: cover;
  background: var(--color-paper-warm);
}
.pack-collage .pack-art   { grid-column: 1; grid-row: 1 / 3; }
.pack-collage .pack-owner { grid-column: 2; grid-row: 1; }
.pack-collage .pack-tee   { grid-column: 2; grid-row: 2; }
.pack-collage .pack-art img   { aspect-ratio: 4 / 5; }
.pack-collage .pack-owner img,
.pack-collage .pack-tee img   { aspect-ratio: 4 / 3; }
/* For portraits whose subject sits to one side of a landscape source,
   shift the crop's focal point so the pet stays in frame. */
.pack-collage .pack-art--focus-right img { object-position: right center; }
.pack-collage figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.pack-collage figcaption {
  font-family: var(--font-script);
  font-size: var(--fs-300);
  color: var(--color-text-soft);
  text-align: center;
  line-height: 1;
  margin-top: 0.35rem;
}

/* Placeholder box — stands in for an image that hasn't been generated yet
   (used on The Pack and in the Gallery). Holds the target filename and the
   Midjourney prompt; sized like the image it replaces via a ratio modifier,
   but grows if the prompt needs more room. Not an <img>, so the gallery
   lightbox ignores it. */
.placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: var(--space-xs);
  border: 1px dashed var(--color-line);
  border-radius: 2px;
  background: var(--color-paper-warm);
  color: var(--color-text-soft);
  overflow-wrap: anywhere;
}
.placeholder--4x5 { aspect-ratio: 4 / 5; }
.placeholder--3x4 { aspect-ratio: 3 / 4; }
.placeholder--1x1 { aspect-ratio: 1 / 1; }
.placeholder--4x3 { aspect-ratio: 4 / 3; }
.placeholder__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.placeholder__file,
.placeholder__prompt {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.66rem;
  line-height: 1.45;
  user-select: all; /* one click selects the whole prompt for copying */
}
.placeholder__file { color: var(--color-accent-deep); }
.pack-art .placeholder__prompt { font-size: 0.74rem; }

/* Story copy */
/* (.pack-entry__body prefix so this outranks the `.pack-entry__body p` rule below) */
.pack-entry__body .pack-entry__name {
  font-family: var(--font-script);
  font-size: clamp(var(--fs-700), 6vw, 4rem);
  line-height: 0.9;
  color: var(--color-ink);
  margin-bottom: var(--space-2xs);
}
.pack-entry__eyebrow { margin-bottom: var(--space-sm); }
.pack-entry__body p {
  color: var(--color-text);
  font-size: var(--fs-400);
  max-width: 48ch;
}
.pack-entry__body p + p { margin-top: var(--space-sm); }
.pack-entry__quote {
  margin-top: var(--space-md);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-400);
  color: var(--color-text-soft);
}

@media (max-width: 760px) {
  .pack-list { gap: var(--space-2xl); }
  .pack-entry {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  /* Collage above the story on small screens */
  .pack-entry__media,
  .pack-entry:nth-child(even) .pack-entry__media { order: -1; }
}

/* 20. About: banner, story, studio polaroids, value props, tee band ------- */
.about-header {
  text-align: center;
  padding-block: var(--space-2xl) var(--space-lg);
}
.about-header h1 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.2rem, 12vw, 7rem);
  line-height: 0.85;
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}
.about-header__sub {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--fs-400), 2.5vw, var(--fs-600));
  color: var(--color-text-soft);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-line);
}

/* Full-bleed two-up banner (woman + cat | artist at work) */
.about-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4px, 1vw, 10px);
  margin-block: var(--space-lg);
}
.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* Studio + Happy Customers polaroids */
.about-polaroids {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(var(--space-md), 4vw, var(--space-xl));
  margin-top: var(--space-lg);
}
.about-polaroids .polaroid { width: min(360px, 80vw); }
.about-polaroids .polaroid img { aspect-ratio: 4 / 3; object-fit: cover; }
.about-polaroids .polaroid figcaption { font-size: var(--fs-600); margin-top: var(--space-2xs); }

/* Value props: icon + text, side by side with a divider (as in the mockup) */
.about-values {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: clamp(var(--space-md), 4vw, var(--space-xl));
  max-width: 820px;
  margin-inline: auto;
}
.about-values__divider { width: 1px; height: 64px; background: var(--color-line); }
.about-value {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.about-value__icon {
  flex: none;
  width: clamp(40px, 6vw, 56px);
  height: clamp(40px, 6vw, 56px);
  color: var(--color-ink);
}
.about-value h3 { font-size: var(--fs-500); line-height: 1.1; }
.about-value p { color: var(--color-text-soft); font-style: italic; margin-top: 0.15rem; }

/* Closing tee band + signature */
.about-teeband { margin-top: var(--space-lg); }
.about-teeband img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;   /* keep the tees' collars and neck labels in frame */
  aspect-ratio: 16 / 7;
}
.about-signoff {
  text-align: center;
  padding-block: var(--space-xl);
}
.about-signoff .script {
  font-size: clamp(var(--fs-700), 6vw, var(--fs-900));
  color: var(--color-ink);
}
.about-signoff .heart { color: var(--color-accent); font-style: normal; }
.about-signoff p { color: var(--color-text-soft); margin-inline: auto; margin-top: var(--space-2xs); }

@media (max-width: 680px) {
  .about-banner { grid-template-columns: 1fr; }
  .about-banner img { aspect-ratio: 16 / 11; }
  .about-values { grid-template-columns: 1fr; gap: var(--space-lg); }
  .about-values__divider { width: 64px; height: 1px; justify-self: center; }
  .about-value { justify-content: flex-start; max-width: 22rem; margin-inline: auto; }
}

/* 21. Contact: form + aside ----------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(var(--space-lg), 4vw, var(--space-2xl));
  align-items: start;
}

.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: clamp(var(--space-md), 4vw, var(--space-xl));
}

.field { margin-bottom: var(--space-md); }
.field > label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-200);
  letter-spacing: 0.04em;
  color: var(--color-ink);
  margin-bottom: 0.4rem;
}
.field .req { color: var(--color-accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--color-text);
  background: var(--color-paper);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.8em 0.9em;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-soft); opacity: 0.7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-ink);
  box-shadow: 0 0 0 3px rgba(138, 148, 121, 0.35); /* sage focus ring */
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field__hint {
  font-size: var(--fs-100);
  color: var(--color-text-soft);
  margin-top: 0.35rem;
}

/* Two fields side by side */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Styled file input (kept for the parked photo-upload field) */
.field input[type='file'] {
  padding: 0.6em 0.7em;
  cursor: pointer;
}
.field input[type='file']::file-selector-button {
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-100);
  letter-spacing: 0.04em;
  color: var(--color-ink);
  background: var(--color-paper-warm);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 0.5em 1.1em;
  margin-right: 0.8em;
  cursor: pointer;
  transition: background-color var(--transition);
}
.field input[type='file']::file-selector-button:hover {
  background: var(--color-line);
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.contact-form__note { font-size: var(--fs-100); color: var(--color-text-soft); }

/* Contact Form Kit v2: the rules the form needs to work (from the kit's contact-form.css) */
/* Keep hidden things hidden, even if the site styles forms or divs with display:flex/grid */
.ct-form[hidden],
.ct-done[hidden],
.ct-error[hidden] { display: none; }
/* The honeypot: off-screen, not display:none (some bots skip hidden inputs) */
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* A field contact.js has flagged (bad email, message too short) */
.ct-form .is-bad { border-color: #b3202a; }
/* The error line under the button */
.ct-error { color: #b3202a; }
/* While sending */
.ct-submit:disabled { opacity: 0.6; cursor: progress; }
/* "Message sent." receives focus so screen readers announce it; no outline needed */
.ct-done h2:focus { outline: none; }

/* contact.js focuses the field it flags; keep the red border over the site's focus style */
.ct-form .field .is-bad,
.ct-form .field .is-bad:focus { border-color: #b3202a; box-shadow: 0 0 0 3px rgba(179, 32, 42, 0.15); }

/* Site styling for the form's error line and its "Message sent" state */
.contact-form__error {
  margin-top: var(--space-sm);
  font-size: var(--fs-200);
  font-weight: 600;
}
.contact-done { text-align: center; padding-block: var(--space-lg); }
.contact-done__script {
  font-size: clamp(var(--fs-600), 4vw, var(--fs-700));
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2xs);
}
.contact-done h2 { font-size: clamp(var(--fs-600), 4vw, var(--fs-700)); margin-bottom: var(--space-sm); }
.contact-done p:not(.contact-done__script) { color: var(--color-text-soft); max-width: 42ch; margin: 0 auto var(--space-lg); }

/* Aside */
.contact-aside { display: grid; gap: var(--space-lg); }
.contact-aside__block h3 {
  font-size: var(--fs-500);
  margin-bottom: var(--space-sm);
}
.contact-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
  counter-reset: step;
}
.contact-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm);
  align-items: start;
  color: var(--color-text-soft);
}
.contact-steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-display);
  font-size: var(--fs-200);
}
.contact-aside__email a {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--color-line);
}
.contact-aside__email a:hover { color: var(--color-accent); border-color: var(--color-accent); }

.contact-aside .polaroid { max-width: 260px; }
.contact-aside .polaroid img { aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { gap: var(--space-md); }
}
@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* 22. Products: grouped product grid, "one portrait" strip, guide --------- */
/* Every product image on this page is square (1:1) so card titles share a
   baseline across a row. Real images are center-cropped; placeholders and
   prompts are authored at 1:1. */
.products-group { padding-block: var(--space-xl); }
.products-group .section-heading { margin-bottom: var(--space-xl); }
.products-group .section-heading .eyebrow { display: block; margin-bottom: var(--space-2xs); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-xl) var(--space-md);
  align-items: stretch;
}
.product { display: flex; flex-direction: column; }
.product__media {
  margin: 0 0 var(--space-sm);
  background: var(--color-card);
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.product__media img,
.product__media .placeholder { aspect-ratio: 1 / 1; }
.product__media img {
  width: 100%;
  display: block;
  border-radius: 2px;
  object-fit: cover;
  background: var(--color-paper-warm);
  transition: transform 320ms ease;
}
.product:hover .product__media { box-shadow: var(--shadow-lift); }
.product:hover .product__media img { transform: scale(1.06); }
.product__body { display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: var(--fs-500); margin-bottom: 0.2rem; }
.product__body > p:first-of-type { color: var(--color-text); }
.product__specs {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-line-soft);
  font-size: var(--fs-200);
  line-height: 1.5;
  color: var(--color-text-soft);
}
.product__styles {
  margin-top: auto;              /* pin to the card bottom so rows align */
  padding-top: var(--space-xs);
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.product__styles span { color: var(--color-accent-deep); font-weight: 700; }

.products-group__more { text-align: center; margin-top: var(--space-xl); max-width: none; } /* base p has a prose max-width */
.products-group__more .btn { font-size: var(--fs-300); padding: 0.8em 1.9em; }

/* One portrait, every product — five square polaroids in a row */
.same-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  align-items: start;
}
.same-strip .polaroid img,
.same-strip .polaroid .placeholder { aspect-ratio: 1 / 1; }
.same-strip .polaroid .placeholder__prompt { font-size: 0.58rem; }
.same-strip figcaption {
  font-family: var(--font-script);
  font-size: var(--fs-400);
  color: var(--color-text-soft);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1;
}

/* Style guide + gift sets */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.guide-block h2 { font-size: clamp(var(--fs-500), 3vw, var(--fs-600)); margin: var(--space-2xs) 0 var(--space-xs); }
.guide-block > p { color: var(--color-text-soft); }
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-sm);
  font-size: var(--fs-200);
}
.guide-table th,
.guide-table td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}
.guide-table th {
  font-family: var(--font-body);
  font-size: var(--fs-100);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.guide-table td:first-child { font-family: var(--font-display); color: var(--color-ink); white-space: nowrap; }
.gift-list { list-style: none; margin: var(--space-sm) 0 0; padding: 0; }
.gift-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text);
}
.gift-list strong { font-family: var(--font-display); font-weight: 600; color: var(--color-ink); }
.guide-note { margin-top: var(--space-sm); font-style: italic; color: var(--color-text-soft); }

@media (max-width: 900px) {
  .same-strip { grid-template-columns: repeat(3, 1fr); }
  .guide-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
}
@media (max-width: 560px) {
  .same-strip { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg) var(--space-sm); }
  .product__body h3 { font-size: var(--fs-400); }
}

/* 23. 404 page ------------------------------------------------------------- */
.notfound {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-lg), 5vw, var(--space-2xl));
  align-items: center;
  min-height: 60vh;
}
.notfound h1 { font-size: clamp(var(--fs-700), 5vw, var(--fs-800)); margin-bottom: var(--space-sm); text-wrap: balance; }
.notfound__copy p:not(.page-header__script) { color: var(--color-text-soft); font-size: var(--fs-400); max-width: 40ch; }
.notfound__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-lg); }
.notfound__art { max-width: 360px; justify-self: center; }
.notfound__art img { aspect-ratio: 4 / 5; }
@media (max-width: 760px) {
  .notfound { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .notfound__copy p:not(.page-header__script) { margin-inline: auto; }
  .notfound__actions { justify-content: center; }
  .notfound__art { max-width: 260px; }
}

/* 15. Utilities & motion -------------------------------------------------- */
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Reveal-on-scroll (progressive enhancement; visible by default) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive breakpoints -------------------------------------------- */
@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
    padding-block: var(--space-xl);
  }
  .hero__lede { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { min-height: 420px; max-width: 480px; margin-inline: auto; width: 100%; }

  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (max-width: 680px) {
  .transform__steps { grid-template-columns: 1fr; gap: var(--space-lg); max-width: 360px; margin-inline: auto; }
  .transform__steps .transform__step:not(:last-child)::after {
    content: '\2193';
    top: auto;
    bottom: calc(var(--space-lg) * -0.5);
    right: 50%;
  }
  .values { grid-template-columns: 1fr; gap: var(--space-md); }
  .teaser__grid { grid-template-columns: repeat(2, 1fr); }
}

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