/* =====================================================================
   Stoked Stitches — "sun-faded surf shop meets handmade craft"
   Palette pulled from Toby's Playa Sámara sunset photo.
   ===================================================================== */

:root {
  /* color */
  --cream:    #f7eedb;
  --cream-2:  #fbf5e8;
  --sand:     #ecddbf;
  --ink:      #0e3b43;   /* deep ocean teal — primary text */
  --teal:     #11505c;
  --teal-deep:#0a3036;
  --sea:      #4f9a93;
  --papaya:   #0fa17a;   /* sea emerald — green accent (was coral) */
  --papaya-d: #0a7d5f;
  --marigold: #1f93b8;   /* ocean blue — secondary accent (was marigold orange) */
  --palm:     #2f7d5b;

  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* misc */
  --maxw: 1160px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 40px -22px rgba(10, 48, 54, .55);
  --shadow-lift: 0 30px 60px -26px rgba(10, 48, 54, .65);
  --stitch: 7px 6px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: clamp(1rem, .95rem + .25vw, 1.12rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* film grain overlay for that sun-faded feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--papaya); }

.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--papaya-d);
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 10000;
  background: var(--ink); color: var(--cream); padding: .6rem 1rem; border-radius: 0 0 12px 12px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: .85em 1.5em; border-radius: 999px; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  position: relative;
}
.btn-primary {
  background: var(--papaya); color: #fff;
  box-shadow: 0 12px 26px -12px var(--papaya-d);
}
.btn-primary:hover { background: var(--papaya-d); transform: translateY(-2px); box-shadow: 0 18px 34px -12px var(--papaya-d); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(14, 59, 67, .06); }
.btn-small { padding: .65em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--marigold); outline-offset: 3px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  border-bottom: 1px dashed color-mix(in srgb, var(--ink) 28%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark { color: var(--papaya); display: grid; place-items: center; }
.brand-mark img { display: block; width: 46px; height: 46px; border-radius: 50%; }
.brand-text {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink);
}
.brand-text span { color: var(--papaya); }

.main-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 1.5rem; padding: 0; }
.nav-list a { font-weight: 600; font-size: .98rem; position: relative; padding: .2rem 0; }
.nav-list a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--papaya); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-list a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { background: var(--ink); color: var(--cream); padding: .55em 1.05em; border-radius: 999px; }
.nav-cta:hover { background: var(--teal); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px;
  margin-inline: auto; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars::before { transform: translateY(-7px); }
.nav-toggle-bars::after { transform: translateY(4.5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 20% 110%, rgba(15,161,122,.30), transparent 55%),
    linear-gradient(180deg, rgba(10,48,54,.18) 0%, rgba(10,48,54,.30) 40%, rgba(10,48,54,.86) 100%);
}
.hero-content { padding-block: 3rem 5rem; color: var(--cream); max-width: 720px; }
.hero .eyebrow { color: var(--marigold); }
.hero h1 {
  font-size: clamp(2.7rem, 1.6rem + 5.2vw, 5.4rem);
  margin: .35rem 0 1rem;
  text-shadow: 0 2px 30px rgba(10,48,54,.4);
}
.hero h1 em { color: var(--papaya); }
.hero-lede { font-size: clamp(1.05rem, .98rem + .5vw, 1.35rem); max-width: 38ch; color: color-mix(in srgb, var(--cream) 92%, transparent); }
.hero-lede strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-actions .btn-ghost { color: var(--cream); }
.hero-actions .btn-ghost:hover { background: rgba(247,238,219,.14); }
.hero-badges {
  list-style: none; padding: 0; margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.8rem;
}
.hero-badges li { display: flex; flex-direction: column; position: relative; padding-left: 1rem; }
.hero-badges li::before {
  content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 3px; border-radius: 3px;
  background: var(--papaya);
}
.hero-badges strong { font-family: var(--display); font-size: 1.15rem; }
.hero-badges span { font-size: .82rem; opacity: .8; }

.scroll-cue { position: absolute; bottom: 1.2rem; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(247,238,219,.6); border-radius: 14px; z-index: 1; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 4px; height: 8px; border-radius: 4px; background: var(--cream); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%{opacity:0; transform:translate(-50%,0);} 30%{opacity:1;} 70%{opacity:1;} 100%{opacity:0; transform:translate(-50%,14px);} }

/* ---------- wave dividers ---------- */
.wave { line-height: 0; }
.wave svg { width: 100%; height: 70px; display: block; }
.wave-down svg path { fill: var(--cream); }       /* hero(dark) -> cream */
.wave.tealbg.wave-up svg path { fill: var(--cream); } /* sits on teal, reveals cream above */
.wave.tealbg.wave-down svg path { fill: var(--cream); }
.wave-up { background: var(--teal-deep); }
.wave.tealbg.wave-down { background: var(--teal-deep); }

/* ---------- about ---------- */
.about { padding-block: clamp(3rem, 6vw, 6rem); background: var(--cream); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.6rem, 4vw, 4rem); align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.about-photo::before {
  content: ""; position: absolute; inset: -14px -14px 26px 14px; border-radius: var(--radius-lg);
  border: 2px dashed var(--sea); z-index: -1;
}
.about-photo figcaption {
  position: absolute; bottom: 14px; left: 14px; background: var(--ink); color: var(--cream);
  font-size: .8rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; letter-spacing: .02em;
}
.about-text h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin: .3rem 0 1rem; }
.about-text p + p { margin-top: 1rem; }
.about-text strong { color: var(--teal); }
.tag-list { list-style: none; padding: 0; margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.tag-list li {
  font-weight: 600; font-size: .9rem; padding: .45rem .9rem; border-radius: 999px;
  background: var(--cream-2); box-shadow: inset 0 0 0 1.5px var(--sand);
}
.tag-list li.tag-link { padding: 0; background: none; box-shadow: none; }
.tag-list li.tag-link a {
  display: block; padding: .45rem .9rem; border-radius: 999px; color: inherit;
  background: var(--cream-2); box-shadow: inset 0 0 0 1.5px var(--sand);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tag-list li.tag-link a:hover, .tag-list li.tag-link a:focus-visible {
  background: var(--papaya); color: #fff; box-shadow: inset 0 0 0 1.5px var(--papaya); transform: translateY(-1px);
}

/* ---------- section heads ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin: .3rem 0 .6rem; }
.section-sub { color: color-mix(in srgb, var(--ink) 78%, transparent); }
.section-head.light h2, .section-head.light .section-sub { color: var(--cream); }
.section-head.light .section-sub { color: color-mix(in srgb, var(--cream) 80%, transparent); }
.section-head.light .eyebrow { color: var(--marigold); }

/* ---------- designs / gallery ---------- */
.designs { padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem); }
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); }
.gallery-item:nth-child(4n+1) { transform: translateY(0); }
.gallery-item button {
  display: block; width: 100%; padding: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--ink); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery-item img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.gallery-item button::after {
  content: ""; position: absolute; inset: 10px; border-radius: 12px; border: 2px dashed rgba(247,238,219,.0);
  transition: border-color .35s var(--ease); pointer-events: none;
}
.gallery-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .8rem;
  font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--cream); text-align: left;
  background: linear-gradient(transparent, rgba(10,48,54,.8)); opacity: 0; translate: 0 8px;
  transition: opacity .35s var(--ease), translate .35s var(--ease);
}
.gallery-item button:hover, .gallery-item button:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.gallery-item button:hover img, .gallery-item button:focus-visible img { transform: scale(1.06); }
.gallery-item button:hover::after, .gallery-item button:focus-visible::after { border-color: rgba(247,238,219,.85); }
.gallery-item button:hover .gallery-label, .gallery-item button:focus-visible .gallery-label { opacity: 1; translate: 0 0; }

/* ---------- patterns (dark teal) ---------- */
.patterns { background: var(--teal-deep); padding-block: clamp(2rem, 4vw, 4rem) clamp(3rem, 6vw, 6rem); position: relative; }
.pattern-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.pattern-card {
  background: var(--cream-2); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pattern-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.pattern-thumb { position: relative; }
.pattern-thumb img { aspect-ratio: 9/11; object-fit: cover; width: 100%; }
.hangtag {
  position: absolute; top: 14px; right: 14px; background: var(--marigold); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: .45rem .75rem; border-radius: 8px;
  box-shadow: 0 6px 14px -6px rgba(10,48,54,.7); rotate: 4deg;
}
.hangtag::before {
  content: ""; position: absolute; top: 8px; left: -7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--cream-2); box-shadow: inset 0 0 0 2px var(--marigold);
}
.pattern-body { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pattern-body h3 { font-size: 1.3rem; }
.pattern-body p { font-size: .92rem; color: color-mix(in srgb, var(--ink) 80%, transparent); flex: 1; }
.pattern-body .btn { margin-top: .4rem; align-self: flex-start; background: var(--ink); color: var(--cream); }
.pattern-body .btn:hover { background: var(--teal); transform: translateY(-2px); }

/* ---------- how it works ---------- */
.how { padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--cream-2); box-shadow: inset 0 0 0 2px var(--papaya);
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--papaya-d); margin-bottom: 1rem;
}
.step h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.step p { color: color-mix(in srgb, var(--ink) 80%, transparent); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 70px; right: -10px; height: 2px;
  background-image: linear-gradient(90deg, var(--sea) 60%, transparent 0);
  background-size: 14px 2px; opacity: .5;
}

/* ---------- order ---------- */
.order { padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 7vw, 7rem); background: linear-gradient(180deg, var(--cream), var(--sand)); }
.order-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.6rem, 4vw, 3.6rem); align-items: start; }
.order-intro { position: sticky; top: 90px; }
.order-intro h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.2rem); margin: .3rem 0 1rem; }
.order-intro p { color: color-mix(in srgb, var(--ink) 82%, transparent); }
.order-intro .order-note { margin-top: 1rem; font-style: italic; color: var(--teal); }

.order-form {
  background: var(--cream-2); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
  border: 2px dashed var(--sand);
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; }
.field .req { font-weight: 400; color: color-mix(in srgb, var(--ink) 60%, transparent); }
.field input, .field select, .field textarea {
  font: inherit; padding: .75rem .9rem; border-radius: 12px; background: var(--cream);
  border: 2px solid transparent; box-shadow: inset 0 0 0 1.5px var(--sand); color: var(--ink);
  transition: box-shadow .2s var(--ease), background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink) 45%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: inset 0 0 0 2px var(--teal); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.order-form .btn-block { grid-column: 1 / -1; margin-top: .2rem; }
.form-status { grid-column: 1 / -1; font-weight: 600; min-height: 1.2em; margin: 0; }
.form-status.ok { color: var(--palm); }
.form-status.err { color: var(--papaya-d); }
.form-fineprint { grid-column: 1 / -1; font-size: .8rem; color: color-mix(in srgb, var(--ink) 55%, transparent); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: clamp(2rem, 4vw, 3rem); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: space-between; align-items: center; }
.footer-brand-row { display: flex; align-items: center; gap: .8rem; }
.footer-logo { display: block; width: 72px; height: 72px; border-radius: 50%; flex: none; }
.footer-brand .brand-text { color: var(--cream); font-size: 1.5rem; }
.footer-brand .brand-text span { color: var(--papaya); }
.footer-brand p { margin-top: .4rem; max-width: 42ch; color: color-mix(in srgb, var(--cream) 75%, transparent); font-size: .95rem; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.footer-meta .btn-ghost { color: var(--cream); }
.copyright { font-size: .82rem; color: color-mix(in srgb, var(--cream) 70%, transparent); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.5rem;
  background: rgba(10,48,54,.92); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure { margin: 0; max-width: 640px; text-align: center; transform: scale(.94); transition: transform .3s var(--ease); }
.lightbox.open .lightbox-figure { transform: scale(1); }
.lightbox-figure img { border-radius: var(--radius); box-shadow: var(--shadow-lift); max-height: 78vh; width: auto; margin-inline: auto; }
.lightbox-figure figcaption { color: var(--cream); font-family: var(--display); font-style: italic; font-size: 1.2rem; margin-top: 1rem; }
.lightbox-close {
  position: absolute; top: 1.1rem; right: 1.3rem; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.8rem; color: var(--cream); background: rgba(247,238,219,.12); line-height: 1;
}
.lightbox-close:hover { background: rgba(247,238,219,.25); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* staggered hero load */
.hero .reveal { transition-delay: 0s; }
.hero .reveal.in { transition-delay: 0s; }
.hero h1.reveal { transition-delay: .08s; }
.hero .hero-lede.reveal { transition-delay: .18s; }
.hero .hero-actions.reveal { transition-delay: .28s; }
.hero .hero-badges.reveal { transition-delay: .38s; }
/* stagger grids */
.gallery .reveal:nth-child(2){transition-delay:.06s}.gallery .reveal:nth-child(3){transition-delay:.12s}
.gallery .reveal:nth-child(4){transition-delay:.18s}.gallery .reveal:nth-child(5){transition-delay:.24s}
.gallery .reveal:nth-child(6){transition-delay:.30s}
.pattern-grid .reveal:nth-child(2){transition-delay:.08s}.pattern-grid .reveal:nth-child(3){transition-delay:.16s}
.pattern-grid .reveal:nth-child(4){transition-delay:.24s}
.steps .reveal:nth-child(2){transition-delay:.12s}.steps .reveal:nth-child(3){transition-delay:.24s}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-cue span { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-list {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column; align-items: flex-start;
    gap: 1.2rem; padding: 5rem 1.8rem 2rem; background: var(--cream-2);
    box-shadow: -20px 0 60px -30px rgba(10,48,54,.6);
    transform: translateX(100%); transition: transform .35s var(--ease); border-left: 2px dashed var(--sand);
  }
  .nav-list.open { transform: none; }
  .nav-list a { font-size: 1.15rem; }
  .nav-cta { width: 100%; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
  .pattern-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .order-grid { grid-template-columns: 1fr; }
  .order-intro { position: static; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .pattern-grid { grid-template-columns: 1fr; }
  .order-form { grid-template-columns: 1fr; }
  .hero-badges { gap: 1.1rem; }
  .footer-meta { align-items: flex-start; }
}

/* ===================== Life in Sámara page ===================== */
.page-hero {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--cream); text-align: center; padding-block: clamp(3rem, 7vw, 5.5rem);
}
.page-hero .eyebrow { color: color-mix(in srgb, var(--cream) 85%, transparent); }
.page-hero h1 { font-family: var(--display); font-weight: 900; letter-spacing: -.02em;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem); margin: .2rem 0 .8rem; }
.page-hero h1 em { font-style: italic; font-weight: 600; color: var(--papaya); }
.page-hero .lede { max-width: 52ch; margin: 0 auto; font-size: clamp(1.05rem,.98rem + .5vw,1.3rem);
  color: color-mix(in srgb, var(--cream) 90%, transparent); }
.back-home { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.4rem;
  color: var(--cream); font-weight: 600; border-bottom: 1px dashed color-mix(in srgb,var(--cream) 50%,transparent); }
.back-home:hover { color: var(--papaya); }

.life-section { padding-block: clamp(2.6rem, 6vw, 4.6rem); scroll-margin-top: 72px; }
.life-section:nth-of-type(even) { background: var(--cream-2); }
.life-section .section-head { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.life-section .section-sub { max-width: 56ch; }

/* ---------- carousel ---------- */
.carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); background: var(--teal-deep); outline: none; }
.carousel:focus-visible { box-shadow: 0 0 0 3px var(--papaya), var(--shadow); }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .55s var(--ease); will-change: transform; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.carousel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.2rem .9rem;
  background: linear-gradient(to top, rgba(10,48,54,.72), transparent); color: var(--cream);
  font-size: .95rem; font-weight: 600; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px;
  border: none; border-radius: 999px; background: color-mix(in srgb, var(--cream) 90%, transparent);
  color: var(--ink); font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 8px 20px -8px rgba(10,48,54,.6); transition: background .2s, transform .2s; }
.carousel-btn:hover { background: var(--papaya); color: #fff; transform: translateY(-50%) scale(1.06); }
.carousel-btn.prev { left: .7rem; } .carousel-btn.next { right: .7rem; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: .7rem; display: flex; gap: .4rem;
  justify-content: center; }
.carousel-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 999px;
  background: color-mix(in srgb, var(--cream) 55%, transparent); cursor: pointer; transition: all .25s var(--ease); }
.carousel-dot.active { background: var(--papaya); width: 24px; }
@media (max-width: 560px) {
  .carousel-slide img { aspect-ratio: 4 / 5; }
  .carousel-btn { width: 40px; height: 40px; font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }

/* ---------- surf videos ---------- */
.surf-clips { display: grid; gap: clamp(1.2rem, 3vw, 2rem); max-width: 760px; margin-inline: auto; }
.surf-clip { margin: 0; }
.surf-clip video {
  width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #000;
}
.surf-clip figcaption { margin-top: .7rem; text-align: center; font-weight: 600; color: var(--ink); font-size: .98rem; }
