/* ==========================================================================
   Colorizen — colorizen.app
   Single stylesheet. Mobile-first. No build step.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --cream:        #F5F2EC;
  --cream-warm:   #EFE7DA;
  --white:        #FFFFFF;

  /* Ink & text */
  --ink:          #2A2318;
  --brown-rich:   #8B6F47;
  --brown-soft:   #A8917A;

  /* Gold */
  --gold:         #C29A4B;
  --gold-dark:    #9B7B36;
  --gold-light:   #E8D5A0;
  --gold-gradient: linear-gradient(135deg, #E8D5A0 0%, #C29A4B 50%, #9B7B36 100%);

  /* Accents (reserved) */
  --warm-red:     #C04A3F;

  /* Forest — pulled from the hero banner, used only in footer */
  --forest:       #143D38;
  --forest-deep:  #0E2E2A;

  /* Type scale */
  --font-serif:   Georgia, "Times New Roman", serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Radius */
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;

  /* Shadow */
  --shadow-soft: 0 6px 24px rgba(42, 35, 24, 0.06);
  --shadow-lift: 0 10px 30px rgba(42, 35, 24, 0.08);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset (lean) ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--cream);
  overscroll-behavior-y: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- Layout primitives ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 720px; }

.center { text-align: center; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 18px;
  font-weight: 500;
}
.eyebrow--center { text-align: center; }

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 8vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 22px;
  color: var(--ink);
}

.heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.008em;
  margin: 0 0 16px;
  color: var(--ink);
}
.heading--center { text-align: center; }
.heading--small {
  font-size: clamp(24px, 3.4vw, 32px);
}

.gold-word {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  color: var(--brown-rich);
  margin: 0 0 22px;
}
.subtitle--center { text-align: center; }

.lead {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--brown-soft);
  max-width: 540px;
  margin: 0 0 32px;
}

.body-lead {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--brown-soft);
  margin: 0 0 18px;
}
.body-lead--center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }

.caption {
  font-size: 13px;
  color: var(--brown-soft);
  margin: 14px 0 0;
}
.caption--center { text-align: center; margin-top: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), filter 280ms var(--ease);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--gold-gradient);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(155, 123, 54, 0.28);
}
.btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 10px 28px rgba(155, 123, 54, 0.34);
}
.btn--primary:active { transform: translateY(0); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--brown-rich);
  border-bottom: 1px solid transparent;
  padding: 4px 2px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn-link:hover {
  color: var(--ink);
  border-bottom-color: var(--brown-rich);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(245, 242, 236, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  z-index: 10;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand__wordmark {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.header-link {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--brown-soft);
  letter-spacing: 0.01em;
  transition: color 200ms var(--ease);
}
.header-link:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding-bottom: 80px;
}
.hero__media {
  width: 100%;
  overflow: hidden;
  background: var(--forest);
}
.hero__banner {
  width: 100%;
  height: clamp(280px, 56vh, 620px);
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.hero__content {
  text-align: center;
  padding-top: 56px;
  max-width: 720px;
}

.hero__icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 32px;
  display: block;
  background: transparent;
}
@media (max-width: 640px) {
  .hero__icon {
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
  }
}
.hero__content .eyebrow { text-align: center; }
.hero__content .lead { margin-left: auto; margin-right: auto; }

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
    gap: 28px;
  }
}

/* ---------- Section primitives ---------- */
.section {
  padding: 96px 0;
}
.section--compact { padding: 72px 0; }
.section--narrow .container { max-width: 720px; text-align: center; }
/* .section--warm removed — all sections now share the same cream background */

/* ---------- Why (4 promises) ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--four {
  margin-top: 56px;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 720px) {
  .grid--four { gap: 24px; }
}
@media (min-width: 1024px) {
  .grid--four { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

.promise {
  text-align: center;
  padding: 12px 8px;
}
.promise__icon {
  width: 32px;
  height: 32px;
  color: var(--brown-rich);
  margin: 0 auto 18px;
}
.promise__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--ink);
}
.promise__body {
  font-size: 14.5px;
  color: var(--brown-soft);
  line-height: 1.55;
  margin: 0;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Library (thumbnail grid) ---------- */
.grid--thumbs {
  margin-top: 56px;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 720px) {
  .grid--thumbs { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.thumb {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-soft);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14%;
}

/* ---------- Experience (5 features) ---------- */
.features {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.feature__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 50%;
  color: var(--brown-rich);
}
.feature__icon svg {
  width: 26px;
  height: 26px;
}

.feature__text { flex: 1; }
.feature__title {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--ink);
}
.feature__body {
  font-size: 15px;
  color: var(--brown-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Model (price philosophy) ---------- */
.cta-wrap {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* ---------- Studio / Contact ---------- */
.contact-line {
  margin-top: 24px;
}
.contact-link {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--brown-rich);
  border-bottom: 1px solid var(--brown-soft);
  padding-bottom: 2px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.contact-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding: 96px 0 56px;
  margin-top: 0;
}
.site-footer__inner {
  text-align: center;
}
.site-footer__brand {
  margin-bottom: 36px;
}
.brand__wordmark--footer {
  color: var(--cream);
  font-size: 28px;
}
.site-footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(245, 242, 236, 0.7);
  margin: 8px 0 0;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.site-footer__nav a {
  font-size: 14px;
  color: rgba(245, 242, 236, 0.85);
  letter-spacing: 0.02em;
  transition: color 200ms var(--ease);
}
.site-footer__nav a:hover { color: var(--gold-light); }

.site-footer__rule {
  border: none;
  border-top: 1px solid rgba(245, 242, 236, 0.15);
  max-width: 200px;
  margin: 0 auto 28px;
}

/* Social media icons in footer */
.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.site-footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 242, 236, 0.7);
  background: rgba(245, 242, 236, 0.06);
  border: 1px solid rgba(245, 242, 236, 0.18);
  transition:
    background 280ms var(--ease),
    border-color 280ms var(--ease),
    color 280ms var(--ease),
    transform 240ms var(--ease);
}
.site-footer__social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}
.site-footer__social a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}
.site-footer__social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .site-footer__social {
    gap: 12px;
    margin-bottom: 28px;
  }
  .site-footer__social a {
    width: 40px;
    height: 40px;
  }
}

.site-footer__legal {
  font-size: 12.5px;
  color: rgba(245, 242, 236, 0.55);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section--compact { padding: 56px 0; }
  .hero { padding-bottom: 56px; }
  .hero__content { padding-top: 40px; }

  .features { gap: 24px; }
  .feature__icon { width: 44px; height: 44px; }
  .feature__icon svg { width: 22px; height: 22px; }

  .container { padding: 0 28px; }

  .site-footer { padding: 56px 0 40px; }
  .site-footer__nav { gap: 24px; }
}

/* ==========================================================================
   Legal pages — privacy.html, terms.html
   ========================================================================== */

.legal-hero {
  padding: 72px 0 16px;
  text-align: left;
}
.legal-hero .eyebrow {
  margin-bottom: 14px;
}
.legal-hero .heading {
  margin-bottom: 10px;
}
.legal-hero__meta {
  font-size: 13px;
  color: var(--brown-soft);
  margin: 0;
  letter-spacing: 0.02em;
}

.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 24px 96px;
  color: var(--ink);
}
.prose > *:first-child { margin-top: 0; }

.prose p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 18px;
  color: var(--ink);
}

.prose h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 56px 0 14px;
}

.prose h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  margin: 28px 0 8px;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: disc;
}
.prose ul li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--ink);
}
.prose ul li::marker {
  color: var(--brown-soft);
}

.prose a {
  color: var(--brown-rich);
  border-bottom: 1px solid var(--brown-soft);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.prose a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.prose strong {
  font-weight: 500;
  color: var(--ink);
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(168, 145, 122, 0.3);
  margin: 56px auto;
  max-width: 120px;
}

.prose blockquote {
  border-left: 2px solid var(--brown-soft);
  padding: 4px 0 4px 18px;
  margin: 14px 0 22px;
  font-style: italic;
  font-size: 15.5px;
  color: var(--brown-rich);
}

.prose .summary-card {
  background: var(--cream-warm);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin: 28px 0 44px;
}
.prose .summary-card h2 {
  margin: 0 0 14px;
  font-size: 19px;
  letter-spacing: 0.005em;
}
.prose .summary-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.prose .summary-card li {
  font-size: 15.5px;
  line-height: 1.65;
  padding-left: 0;
  margin-bottom: 6px;
}
.prose .summary-card li:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .prose .summary-card { padding: 22px 22px; margin: 22px 0 36px; }
}

/* ==========================================================================
   Support page
   ========================================================================== */

.support-email-line {
  margin: 32px 0 36px;
}

.support-email {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.6vw, 34px);
  color: var(--brown-rich);
  border-bottom: 1px solid var(--brown-soft);
  padding-bottom: 4px;
  display: inline-block;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.support-email:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.support-sign {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--brown-soft);
  margin-top: 40px;
}

/* ==========================================================================
   ✦ Polish layer — UX/UI refinements
   ========================================================================== */

/* ---------- Typography rendering ---------- */
html {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}
.display, .heading, h1, h2, h3, .subtitle,
.brand__wordmark, .gold-word, .contact-link, .support-email {
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1, "calt" 1;
}

/* ---------- Selection ---------- */
::selection { background: var(--gold-light); color: var(--ink); }
::-moz-selection { background: var(--gold-light); color: var(--ink); }

/* ---------- Scrollbar (WebKit) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
  background: rgba(168, 145, 122, 0.45);
  border-radius: 5px;
  border: 2px solid var(--cream);
}
::-webkit-scrollbar-thumb:hover { background: rgba(168, 145, 122, 0.75); }

/* ---------- Scroll reveal — subtle fade-up on viewport entry ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- CTA arrow that glides on hover ---------- */
.btn__arrow {
  display: inline-block;
  margin-left: 10px;
  transition: transform 320ms var(--ease);
}
.btn--primary:hover .btn__arrow {
  transform: translateX(5px);
}

/* ---------- Animated link underline (replaces solid border) ---------- */
.btn-link {
  border-bottom: none;
  padding-bottom: 8px;
}
.btn-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--brown-rich);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 360ms var(--ease), background 320ms var(--ease);
}
.btn-link {
  position: relative;
}
.btn-link:hover::after {
  transform: scaleX(1);
  background: var(--ink);
}
.btn-link:hover {
  border-bottom-color: transparent;
}

/* ---------- Promise cards — elevated white cards with hover lift ---------- */
.promise {
  background: var(--white);
  border-radius: var(--radius);
  padding: 42px 28px 34px;
  box-shadow: 0 1px 3px rgba(42, 35, 24, 0.04), 0 1px 2px rgba(42, 35, 24, 0.03);
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}
.promise:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(42, 35, 24, 0.08), 0 4px 10px rgba(42, 35, 24, 0.04);
}

/* The .promise__icon class now styles the WRAPPER span (icon container) */
.promise__icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: var(--brown-rich);
  transition: background 360ms var(--ease), color 360ms var(--ease);
}
.promise__icon svg {
  width: 26px;
  height: 26px;
}
.promise:hover .promise__icon {
  background: var(--gold-light);
  color: var(--ink);
}

/* ---------- Feature icon hover (Experience section) ---------- */
.feature__icon {
  transition: background 360ms var(--ease), color 360ms var(--ease);
}
.feature:hover .feature__icon {
  background: var(--gold-light);
  color: var(--ink);
}

/* ---------- Footer link — animated underline ---------- */
.site-footer__nav a {
  position: relative;
  padding-bottom: 3px;
}
.site-footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 280ms var(--ease);
}
.site-footer__nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- Ornament — editorial flourish ✦ ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 28px auto;
  max-width: 200px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.2em;
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(194, 154, 75, 0.35);
}

/* ---------- Mobile tweaks for the polish layer ---------- */
@media (max-width: 640px) {
  .promise { padding: 34px 22px 28px; }
  .promise__icon { width: 50px; height: 50px; }
  .ornament { margin: 22px auto; }
}

/* ==========================================================================
   Showcase section + Gallery carousel — modern dark-stage
   ========================================================================== */

/* The gallery section — inherits .section padding (96px / 72px mobile) */
.section--showcase {
  position: relative;
}

.gallery {
  margin-top: 56px;
  position: relative;
}

.gallery__scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 32px 28px;
  scroll-padding-left: 32px;
  scroll-padding-right: 32px;
  list-style: none;
  margin: 0;
  cursor: grab;

  /* Hide scrollbar — modern, clean */
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.gallery__scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.gallery__scroll.is-dragging .gallery__item {
  pointer-events: none;
}
.gallery__scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Align first card with container's left edge on wide screens */
@media (min-width: 768px) {
  .gallery__scroll {
    padding-left: max(24px, calc((100vw - 1160px) / 2));
    padding-right: max(24px, calc((100vw - 1160px) / 2));
  }
}

.gallery__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(240px, 26vw, 290px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 10px 32px rgba(42, 35, 24, 0.07),
    0 0 0 1px rgba(168, 145, 122, 0.12);
  transition: transform 440ms var(--ease), box-shadow 440ms var(--ease);
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 44px rgba(42, 35, 24, 0.12),
    0 0 0 1px rgba(168, 145, 122, 0.18);
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Arrow navigation buttons (desktop) */
.gallery__nav {
  display: none;
}

@media (min-width: 768px) {
  .gallery__nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
    position: relative;
    z-index: 3;
  }
  .gallery__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(168, 145, 122, 0.4);
    color: var(--brown-rich);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
    transition:
      background 280ms var(--ease),
      border-color 280ms var(--ease),
      transform 280ms var(--ease),
      color 280ms var(--ease),
      opacity 280ms var(--ease);
  }
  .gallery__btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
  }
  .gallery__btn:active {
    transform: scale(0.95);
  }
  .gallery__btn:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
  }
  .gallery__btn:disabled,
  .gallery__btn[disabled] {
    opacity: 0.28;
    cursor: not-allowed;
  }
  .gallery__btn:disabled:hover,
  .gallery__btn[disabled]:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(168, 145, 122, 0.4);
    color: var(--brown-rich);
  }
  .gallery__btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 640px) {
  .gallery { margin-top: 40px; }
  .gallery__scroll { gap: 16px; padding: 8px 48px 20px; scroll-padding-left: 48px; scroll-padding-right: 48px; }
  .gallery__item { width: clamp(200px, 68vw, 260px); border-radius: 24px; }
}

/* ==========================================================================
   Price line — multi-currency display in Model section
   ========================================================================== */

.price-line {
  margin: 36px 0 32px;
  text-align: center;
}
.price-line__amounts {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--brown-soft);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
  font-feature-settings: "kern" 1, "tnum" 1, "lnum" 1;
}
.price-line__label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--brown-rich);
  margin: 0;
}

@media (max-width: 640px) {
  .price-line { margin: 26px 0 24px; }
  .price-line__amounts {
    font-size: 18px;
    line-height: 1.4;
  }
  .price-line__label {
    font-size: 14px;
  }
}


@media (max-width: 640px) {
  .legal-hero { padding: 56px 0 12px; }
  .prose { padding: 12px 28px 72px; }
  .prose h2 { margin: 44px 0 12px; }
  .prose p { font-size: 15.5px; }
  .prose ul li { font-size: 15.5px; }
}

/* ==========================================================================
   ✦ Modernization pass — header breathing, mobile cards, tabs, signed letter
   ========================================================================== */

/* Header on mobile inherits the exact same padding as desktop (18px vertical) */

/* Hero — more vertical space between banner and "Colorizen" eyebrow on mobile */
@media (max-width: 640px) {
  .hero__content {
    padding-top: 64px;
  }
}

/* Promise cards on mobile — tighter padding for 2-col layout */
@media (max-width: 640px) {
  .promise {
    padding: 28px 16px 24px;
  }
  .promise__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }
  .promise__icon svg {
    width: 22px;
    height: 22px;
  }
  .promise__title {
    font-size: 15.5px;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .promise__body {
    font-size: 12.5px;
    line-height: 1.5;
    max-width: 100%;
  }
}

/* Gallery — generous side padding on mobile so cards don't touch edges */
@media (max-width: 640px) {
  .gallery__scroll {
    padding: 8px 48px 20px;
    scroll-padding-left: 48px;
    scroll-padding-right: 48px;
  }
}

/* ==========================================================================
   Gallery tabs — iPhone / iPad switcher
   ========================================================================== */

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.gallery-tab {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 11px 26px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(245, 242, 236, 0.22);
  color: rgba(245, 242, 236, 0.72);
  cursor: pointer;
  transition:
    background 280ms var(--ease),
    border-color 280ms var(--ease),
    color 280ms var(--ease),
    transform 200ms var(--ease);
}
.gallery-tab:hover {
  border-color: rgba(245, 242, 236, 0.5);
  color: var(--cream);
}
.gallery-tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.gallery-tab:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}
.gallery-tab:active {
  transform: scale(0.97);
}

.gallery.is-hidden {
  display: none;
}

/* ==========================================================================
   Invitation card — modern Try Free treatment
   ========================================================================== */

.invitation-card {
  background: var(--cream);
  border: 1px solid rgba(194, 154, 75, 0.32);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 16px 44px rgba(42, 35, 24, 0.07);
}
.invitation-card__mark {
  text-align: center;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin: 0 0 24px;
}
.invitation-card .eyebrow {
  margin-bottom: 14px;
}
.invitation-card .body-lead:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .invitation-card {
    padding: 36px 24px;
    border-radius: var(--radius);
  }
}

/* ==========================================================================
   Studio signature block — "signed letter" treatment
   ========================================================================== */

.signature-block {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(168, 145, 122, 0.28);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 14px;
}

/* Footer wordmark size adjust on mobile */
@media (max-width: 640px) {
  .brand__wordmark--footer { font-size: 24px; }
}

/* ==========================================================================
   ✦ Pass May 18 — big legal titles, languages chips, integrated footer
   ========================================================================== */

/* Legal pages — large editorial display H1 */
.legal-hero {
  padding: 112px 0 24px;
  text-align: left;
}
.legal-hero .display,
.legal-hero h1.display,
.legal-title {
  font-family: var(--font-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(80px, 13vw, 144px) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 16px !important;
  color: var(--ink) !important;
}
@media (max-width: 640px) {
  .legal-hero { padding: 80px 0 20px; }
  .legal-hero .display,
  .legal-hero h1.display,
  .legal-title {
    font-size: clamp(64px, 17vw, 104px) !important;
  }
}

/* Two showcase sections back-to-back — tighten the visual seam */
.section--showcase + .section--showcase {
  padding-top: 16px;
}

/* Tighten the gap between Manifesto (intention) and Why — they're a pair */
#manifesto.section {
  padding-bottom: 56px;
}
section[aria-labelledby="why-title"] {
  padding-top: 56px;
}
@media (max-width: 640px) {
  #manifesto.section { padding-bottom: 40px; }
  section[aria-labelledby="why-title"] { padding-top: 40px; }
}

/* iPad showcase modifier — larger cards so heights ~match iPhone screenshots */
.section--showcase--ipad .gallery__item {
  width: clamp(360px, 40vw, 470px);
}
@media (max-width: 640px) {
  .section--showcase--ipad .gallery__item {
    width: clamp(280px, 82vw, 360px);
  }
}

/* Languages section — inline list with flag emojis + middot separator */
.languages-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0;
  margin: 36px auto 0;
  max-width: 720px;
  padding: 0;
  list-style: none;
  line-height: 2;
}
.languages-list li {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--brown-rich);
  letter-spacing: 0.005em;
  padding: 0 10px;
  white-space: nowrap;
  transition: color 280ms var(--ease);
}
.languages-list li:hover {
  color: var(--ink);
}
.lang-flag {
  display: inline-block;
  font-size: 0.95em;
  margin-right: 4px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.languages-list li:not(:last-child)::after {
  content: "·";
  color: var(--gold);
  margin-left: 20px;
  font-size: 14px;
}
@media (max-width: 640px) {
  .languages-list {
    margin-top: 28px;
    line-height: 1.9;
  }
  .languages-list li {
    font-size: 15px;
    padding: 0 7px;
  }
  .languages-list li:not(:last-child)::after {
    margin-left: 14px;
  }
}

/* Footer studio block — refined editorial treatment on forest green */
.site-footer__studio {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 72px;
}
.site-footer__studio .eyebrow {
  color: var(--gold-light);
  margin: 0 0 22px;
  letter-spacing: 0.28em;
}
.footer-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--cream);
  margin: 0;
  text-align: center;
}
.footer-divider {
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
  margin: 28px auto;
  border: none;
}
.footer-body {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245, 242, 236, 0.72);
  margin: 0 0 14px;
}
.footer-body:last-of-type { margin-bottom: 0; }

.signature-block--footer {
  border-top: 1px solid rgba(245, 242, 236, 0.18);
  margin: 36px auto 0;
  max-width: 320px;
  padding-top: 28px;
}
.signature--footer {
  color: var(--cream);
  margin-bottom: 14px;
}
.contact-link--footer {
  color: var(--gold-light);
  border-bottom-color: rgba(232, 213, 160, 0.4);
}
.contact-link--footer:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.site-footer__divider {
  border: none;
  border-top: 1px solid rgba(245, 242, 236, 0.12);
  max-width: 100%;
  margin: 0 0 48px;
}

@media (max-width: 640px) {
  .site-footer__studio { padding-bottom: 56px; }
  .footer-heading { font-size: clamp(24px, 6.5vw, 30px); }
  .footer-body { font-size: 15.5px; }
  .footer-divider { margin: 22px auto; }
}
