/* Asmaa Shafi Fashion House + Bridal Couture Lab
   Shared styles. Mobile-first; component grids use auto-fit so they reflow without breakpoints. */

:root {
  --bg: #F6F2EA;
  --ink: #1B1A18;
  --ink-hover: #3A3733;
  --text-2: #3A3733;
  --text-3: #4A4640;
  --muted: #6B655D;
  --sand: #EDE7DC;
  --hero: #26241F;
  --line: #DDD5C7;
  --line-soft: #E6DFD2;
  --field-border: #A69E90;
  --placeholder: #E6DFD2;
  --on-dark: #F6F2EA;
  --on-dark-2: #E9E3D7;
  --on-dark-3: #BDB5A8;
  --on-dark-4: #A69E90;
  --header-border: #DDD5C7;
  --menu-line: #E6DFD2;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --wrap: 1320px;
  --gutter: 24px;
  --section-y: clamp(72px, 10vw, 140px);
  --anchor-offset: 90px;
}

/* Bridal Couture Lab: same palette, slightly deeper ink and cooler ivory, more editorial. */
body.lab {
  --bg: #F4F0E8;
  --ink: #161514;
  --muted: #5A554E;
  --line: #D6CFC2;
  --placeholder: #E3DDD1;
  --header-border: #161514;
  --menu-line: #D6CFC2;
  --section-y: clamp(80px, 11vw, 160px);
  --anchor-offset: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
input, select, textarea, button { font: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 12px 18px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
[id] { scroll-margin-top: var(--anchor-offset); }
.bg-sand { background: var(--sand); }
.bg-dark { background: var(--ink); color: var(--on-dark); }

/* ---------- Type ---------- */
.eyebrow { margin: 0; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.bg-dark .eyebrow { color: var(--on-dark-3); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; }
.lead { margin: 0; font-size: 17px; line-height: 1.8; color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.body { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-3); }
.balance { text-wrap: balance; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.stack { display: flex; flex-direction: column; }

/* ---------- Buttons ---------- */
.btn {
  min-height: 44px;
  transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 30px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  border: 0; cursor: pointer; line-height: 1.3; text-align: center;
}
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-hover); color: var(--bg); }
.btn-light { background: var(--on-dark); color: #1B1A18; }
.btn-light:hover { background: #FFFFFF; color: #1B1A18; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 17px 26px; }
.btn-outline:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
.btn-outline-dark { background: transparent; color: var(--on-dark); border: 1px solid #8A8377; padding: 17px 26px; }
.btn-outline-dark:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27, 26, 24, .14); }
.btn:active { transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-underline {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 6px; align-self: flex-start;
}

/* ---------- Top bar + header ---------- */
.site-top { position: sticky; top: 0; z-index: 50; }

.header { background: var(--bg); border-bottom: 1px solid var(--header-border); }
.header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body.lab .header .wrap { padding-top: 12px; padding-bottom: 12px; gap: 20px; }

.wordmark { padding: 6px 0; display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.wordmark-name { font-family: var(--serif); font-size: 22px; letter-spacing: .42em; margin-right: -.42em; font-weight: 500; }
.wordmark-sub { font-family: var(--serif); font-size: 12px; letter-spacing: .14em; margin-top: 6px; color: var(--text-3); font-style: italic; }

.lab-mark { display: flex; align-items: center; gap: 14px; }
.lab-mark img { width: 52px; height: 52px; object-fit: cover; object-position: center 28%; mix-blend-mode: multiply; }
.lab-mark-text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.lab-mark-name { font-family: var(--serif); font-size: 15px; letter-spacing: .22em; }
.lab-mark-sub { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }

.nav-main a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; padding-bottom: 6px; transition: background-size .35s ease, color .25s ease; }
.nav-main a:hover { background-size: 100% 1px; }
.nav-main { display: none; gap: 26px; white-space: nowrap; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
body.lab .nav-main { gap: 24px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { padding: 13px 20px; font-size: 11.5px; letter-spacing: .2em; white-space: nowrap; }
.cta-long { display: none; }

.menu-btn {
  width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; padding: 0;
  display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn span { width: 18px; height: 1px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile { max-height: calc(100svh - 76px); overflow-y: auto; display: flex; flex-direction: column; border-top: 1px solid var(--menu-line); font-family: var(--serif); font-size: 22px; }
.nav-mobile a { padding: 16px var(--gutter); border-bottom: 1px solid var(--menu-line); }
.nav-mobile a:last-child { border-bottom: 0; }

@media (min-width: 520px) {
  .cta-short { display: none; }
  .cta-long { display: inline; }
}
@media (min-width: 1080px) {
  .nav-main { display: flex; }
  .menu-btn, .nav-mobile { display: none !important; }
}

/* ---------- Media ---------- */
.media { overflow: hidden; background: var(--placeholder); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.mono img, img.mono { filter: grayscale(1); }
.ar-4-5 { aspect-ratio: 4 / 5; }
.ar-3-4 { aspect-ratio: 3 / 4; }
.ar-3-2 { aspect-ratio: 3 / 2; }
.ar-16-10 { aspect-ratio: 16 / 10; }

/* ---------- Home: hero ---------- */
.hero {
  background: var(--hero); color: var(--on-dark);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  min-height: calc(100vh - 80px); min-height: calc(100svh - 80px);
}
.hero-copy { padding: clamp(48px, 8vw, 120px) clamp(24px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.hero-kicker { margin: 0; line-height: 1.7; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: #CFC6B6; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.2vw, 92px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.hero-lede { margin: 0; max-width: 30em; font-size: 17px; line-height: 1.7; font-weight: 300; color: #E4DDD0; text-wrap: pretty; }
.hero .btn-row { margin-top: 8px; }
.hero-media { position: relative; min-height: 520px; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-video-toggle {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; min-height: 44px; padding: 0 16px; cursor: pointer;
  background: rgba(27, 26, 24, .72); color: var(--on-dark); border: 1px solid rgba(246, 242, 234, .45);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.hero-video-toggle:hover { background: rgba(27, 26, 24, .92); }

/* ---------- Home: two paths ---------- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 4vw, 56px); }
.path { display: flex; flex-direction: column; gap: 24px; color: var(--ink); }
.path:hover { color: var(--ink); }
.path .media img { transition: transform .8s ease; }
.path:hover .media img { transform: scale(1.03); }
.path h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; }
.path h2 em { font-size: .6em; color: var(--muted); }
.path .body { max-width: 32em; }

/* ---------- Home: about ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(40px, 6vw, 96px); }
.about .split { align-items: center; }
.about .media { max-width: 520px; background: transparent; }
.about-copy { display: flex; flex-direction: column; gap: 28px; }
.rating { display: flex; align-items: baseline; gap: 14px; padding-top: 12px; border-top: 1px solid #CFC6B6; max-width: 34em; }
.rating-num { font-family: var(--serif); font-size: 40px; }
.rating-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.about-more { align-self: flex-start; }

/* ---------- Home: couture steps ---------- */
.couture-head { margin-bottom: clamp(40px, 5vw, 72px); }
.couture-head .stack { gap: 20px; max-width: 640px; }
.couture-head .body { max-width: 26em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 32px 28px 36px 0; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--serif); font-size: 15px; color: var(--muted); }
.steps h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.steps p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-3); max-width: 22em; }
.couture-actions { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }

/* ---------- Home: gallery ---------- */
.gallery-head { margin-bottom: 40px; }
.gallery-head .stack { gap: 20px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  min-height: 44px; padding: 0 20px; background: transparent; color: var(--on-dark);
  border: 1px solid var(--muted); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
}
.filter:hover { border-color: var(--on-dark); }
.filter[aria-pressed="true"] { background: var(--on-dark); color: #1B1A18; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.gallery-item { padding: 0; border: 0; background: #2A2826; aspect-ratio: 3 / 4; overflow: hidden; cursor: zoom-in; display: block; width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-more { margin: 40px 0 0; font-size: 14px; color: var(--on-dark-3); }
.gallery-more a { color: var(--on-dark); border-bottom: 1px solid var(--muted); }

/* ---------- Reviews ---------- */
.reviews-head { margin-bottom: 56px; }
.reviews-head .stack { gap: 20px; }
.reviews-score { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 4vw, 56px); }
.review { margin: 0; display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--ink); padding-top: 28px; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.45; font-style: italic; text-wrap: pretty; }
.review figcaption { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px 20px; align-content: start; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.field input, .field select, .field textarea {
  border: 1px solid var(--field-border); background: var(--bg); font-size: 16px; letter-spacing: 0; text-transform: none;
  color: var(--ink); border-radius: 0; width: 100%;
}
.field input, .field select { height: 52px; padding: 0 14px; }
.field select { padding: 0 12px; }
.field textarea { padding: 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .btn { min-height: 56px; padding: 0 30px; }
.form-actions .btn-outline { padding: 0 24px; }
.form-status { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------- Home: booking ---------- */
.book-intro { display: flex; flex-direction: column; gap: 28px; }
.book-intro .lead { max-width: 28em; }
.book-intro .media { max-width: 420px; background: transparent; }

/* ---------- Home: contact ---------- */
.contact-info { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.contact-list { margin: 0; display: grid; grid-template-columns: 1fr; justify-items: center; gap: 6px; font-size: 18px; }
.contact-list dt { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0 0 14px; }
.contact-list dd:last-child { margin-bottom: 0; }
.contact-list a { border-bottom: 1px solid var(--field-border); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-actions .btn { min-height: 52px; padding: 0 24px; font-size: 12px; letter-spacing: .2em; }

/* ---------- Designer page ---------- */
.designer-h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 88px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.designer-meta { margin: 0; display: flex; flex-direction: column; gap: 8px 14px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 1360px) {
  .designer-meta { flex-direction: row; flex-wrap: wrap; }
  .designer-meta span + span::before { content: "\00B7"; margin-right: 14px; }
}
.designer-intro .designer-grid { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: 1fr; gap: 28px; }
.designer-title { display: flex; flex-direction: column; gap: 18px; }
.designer-photo { background: transparent; max-width: 460px; }
.story-card { background: var(--bg); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.story-h { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; }
.story-card p:not(.eyebrow) { margin: 0; font-size: 16px; line-height: 1.8; color: var(--text-2); max-width: 40em; text-wrap: pretty; }
.story-card p.story-quote { margin-top: 6px; padding: 20px 24px; background: var(--ink); color: var(--on-dark); font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; max-width: none; }
@media (min-width: 900px) {
  .designer-intro .designer-grid { grid-template-columns: 1.45fr 1fr; grid-template-areas: "title photo" "card photo"; column-gap: clamp(40px, 6vw, 96px); row-gap: 32px; align-items: start; }
  .designer-title { grid-area: title; }
  .story-card { grid-area: card; }
  .designer-photo { grid-area: photo; justify-self: end; width: 100%; }
}
.cred-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.cred-list li { display: flex; flex-direction: column; gap: 6px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.cred-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.cred-year { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cred-title { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.cred-note { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-3); max-width: 34em; }

.journey-head { margin-bottom: clamp(40px, 5vw, 72px); gap: 20px; }
.journey-list { --year-w: 0px; position: relative; padding-left: 28px; }
.journey-track { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.journey-track::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--p, 0) * 100%); background: var(--ink); }
.chapter { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; padding-bottom: clamp(56px, 8vw, 112px); }
.chapter:last-child { padding-bottom: 0; }
.chapter::before {
  content: ""; position: absolute; left: -32px; top: 14px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--ink); transition: background-color .4s ease;
}
.chapter.passed::before { background: var(--ink); }
.chapter-year { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(36px, 5vw, 68px); line-height: .9; color: var(--ink); }
.chapter-year small { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.chapter-body { display: flex; flex-direction: column; gap: 20px; }
.chapter-kicker { margin: 0; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.chapter-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; text-wrap: balance; }
.chapter-text { margin: 0; font-size: 17px; line-height: 1.8; color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.text-link { border-bottom: 1px solid var(--ink); }
.chapter-credits { margin-top: 4px; max-width: 34em; }
.chapter-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; max-width: 520px; margin-top: 8px; }
.chapter-body .btn-row { margin-top: 8px; }
@media (min-width: 900px) {
  .journey-list { --year-w: clamp(200px, 26%, 360px); padding-left: 0; }
  .journey-track { left: var(--year-w); }
  .chapter { grid-template-columns: var(--year-w) 1fr; gap: 0; }
  .chapter::before { left: calc(var(--year-w) - 4px); }
  .chapter-year { position: sticky; top: 130px; align-self: start; padding-right: 32px; }
  .chapter-body { padding-left: clamp(32px, 4.5vw, 72px); }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-2); }
.footer a:hover { color: var(--on-dark-3); }
.footer .wrap { padding-top: clamp(64px, 8vw, 112px); padding-bottom: 40px; display: flex; flex-direction: column; gap: 56px; }
body.lab .footer .wrap { padding-top: clamp(56px, 7vw, 96px); gap: 48px; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid #3A3733; }
.footer-cta h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 54px); line-height: 1.1; color: var(--on-dark); max-width: 12em; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; font-size: 14px; line-height: 1.9; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-4); margin-bottom: 8px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.footer-brand .wordmark-name { font-size: 20px; color: var(--on-dark); margin-right: 0; font-weight: 400; }
.footer-brand .wordmark-sub { margin-top: 8px; color: var(--on-dark-3); }
.footer-copy { margin: 0; font-size: 12px; color: var(--on-dark-4); }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; min-height: 52px; padding: 0 22px;
  display: flex; align-items: center; background: #1B1A18; color: #F6F2EA; border: 1px solid #6B655D;
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.float-wa:hover { background: #3A3733; color: #F6F2EA; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 19, 18, .94);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; background: transparent; border: 1px solid #6B655D;
  color: #F6F2EA; font-size: 20px; cursor: pointer;
}
.lb-btn:hover { border-color: #F6F2EA; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; font-size: 18px; }
body.no-scroll { overflow: hidden; }

/* ---------- Lab page ---------- */
.lab-hero { padding-top: clamp(40px, 6vw, 80px); }
.lab-kicker { margin: 0 0 28px; line-height: 1.7; font-size: 11.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.lab-hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 10.5vw, 172px); line-height: .92; letter-spacing: -.02em; }
.lab-intro {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--ink); align-items: start;
}
.lab-statement { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; text-wrap: pretty; }
.lab-intro .stack { gap: 24px; }
.lab-intro .body { line-height: 1.75; color: var(--text-2); max-width: 30em; }
.lab-intro .btn-row { gap: 12px; }
.lab-images { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: clamp(48px, 6vw, 88px); }
.lab-images .media:first-child img { object-position: center 20%; }

.lab-h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 76px); line-height: 1; }
.modules-head { margin-bottom: clamp(40px, 5vw, 72px); }
.modules-note { margin: 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.module {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--ink); align-items: center;
}
.module-text { display: flex; gap: clamp(20px, 3vw, 40px); align-items: baseline; }
.module-n { font-family: var(--serif); font-size: clamp(56px, 7vw, 112px); line-height: .8; font-style: italic; }
.module-text .stack { gap: 16px; }
.module h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; }
.module p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--text-2); max-width: 28em; text-wrap: pretty; }
.module .media img { object-position: center 35%; }

.lab-reviews-head { margin-bottom: 64px; }
.lab-score { display: flex; align-items: baseline; gap: 14px; }
.lab-score-num { font-family: var(--serif); font-size: 48px; }
.lab-score-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #CFC6B6; }
.bg-dark .review { gap: 22px; border-top-color: #5A554E; }
.review-theme { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #CFC6B6; }
.bg-dark .review figcaption { color: var(--on-dark-3); }

.join { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(40px, 6vw, 96px); }
.join-intro { display: flex; flex-direction: column; gap: 28px; }
.join-intro h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 88px); line-height: .98; }
.join-intro .lead { max-width: 28em; }
.join-intro .media { max-width: 400px; background: transparent; }
body.lab .field input, body.lab .field select, body.lab .field textarea { border-color: var(--ink); background: transparent; }
.module-picks { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.module-picks legend { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; padding: 0; }
.check { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.check-n { font-family: var(--serif); font-style: italic; width: 28px; }
.footer-lab-brand { display: flex; flex-direction: column; gap: 6px; line-height: 1.2; }
.footer-lab-brand .name { font-family: var(--serif); font-size: 17px; letter-spacing: .22em; color: var(--bg); }
.footer-lab-brand .sub { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-3); }
.footer .btn-light { padding: 14px 20px; font-size: 11.5px; letter-spacing: .2em; }
.lab-images .media:last-child { position: relative; }
.lab-images .media:last-child img { position: absolute; inset: 0; }
body.lab .bg-dark, body.lab .footer-lab-brand .name { color: var(--bg); }
.footer-col .btn-light { margin-top: 6px; }
@media (max-width: 419px) {
  .header .wrap { gap: 12px; }
  .wordmark-name { font-size: 17px; letter-spacing: .36em; margin-right: -.36em; }
  .wordmark-sub { font-size: 11px; }
  .lab-mark { gap: 10px; }
  .lab-mark img { width: 44px; height: 44px; }
  .lab-mark-name { font-size: 13px; letter-spacing: .16em; }
}

/* ---------- Motion ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: none; } }
.hero-copy > *, .lab-hero > *, .designer-title > * { animation: fade-up .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2), .designer-title > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3), .designer-title > :nth-child(3) { animation-delay: .24s; }
.hero-copy > :nth-child(4), .designer-title > :nth-child(4) { animation-delay: .36s; }
.hero-media { overflow: hidden; }
.hero-media img, .hero-media video { animation: settle 1.8s cubic-bezier(.2, .7, .2, 1) both; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .lab-hero > *, .designer-title > *, .hero-media img, .hero-media video { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Responsive refinements ---------- */
/* Hero buttons fill the row when they wrap (tablet / narrow desktop columns). */
@media (max-width: 1099px) {
  .hero .btn-row .btn, .lab-intro .btn-row .btn { flex: 1 1 auto; }
}
/* Touch devices: 44px tap targets without changing the look. */
@media (max-width: 1023px) {
  .footer-col a:not(.btn) { padding: 9px 0; min-width: 44px; }
  .contact-list a, .link-underline, .text-link, .gallery-more a { position: relative; }
  .contact-list a::after, .link-underline::after, .text-link::after, .gallery-more a::after { content: ""; position: absolute; inset: -12px -8px; }
}
/* Phones */
@media (max-width: 599px) {
  .float-wa { right: 12px; bottom: 12px; min-height: 44px; padding: 0 16px; }
  .footer .wrap { padding-bottom: 96px; }
}
@media (max-width: 519px) {
  .btn-row .btn, .form-actions .btn { flex: 1 1 100%; width: 100%; }
  .lab-mark-name { font-size: 12px; letter-spacing: .14em; }
  .lab-mark-sub { font-size: 9.5px; letter-spacing: .2em; }
}
/* Very small phones (320px) */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .header .wrap, body.lab .header .wrap { gap: 8px; }
  .header-actions { gap: 8px; }
  .wordmark-name { font-size: 14px; letter-spacing: .28em; margin-right: -.28em; }
  .wordmark-sub { font-size: 10px; }
  .header-cta { padding: 0 12px; }
  .wordmark { min-height: 44px; justify-content: center; }
  .lab-mark { gap: 8px; min-height: 44px; }
  .lab-mark img { width: 36px; height: 36px; }
  .lab-mark-name { font-size: 11px; letter-spacing: .08em; }
  .lab-mark-sub { display: none; }
}
/* Landscape phones: a sticky header would eat a quarter of the screen. */
@media (max-height: 520px) and (orientation: landscape) {
  .site-top { position: static; }
}
