/* Public website — the house language from brand.css: warm paper, photos set
   inside the margins, captions on paper, hairlines and quiet type. */

html { scroll-padding-top: 92px; }

/* ---------- announcement + header ---------- */
.announce { margin: 0; padding: 9px 20px; text-align: center; font-size: .8rem; background: var(--tint); color: var(--plum); border-bottom: 1px solid var(--line); }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.site-header.is-solid { border-color: var(--line); }
.site-header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 80px; gap: 24px; }
.site-header__logo { justify-self: center; display: block; }
.site-header .logo { width: 92px; color: var(--maroon); }
.site-nav { display: flex; gap: 26px; }
.site-nav a { text-decoration: none; color: var(--plum); font-size: .9rem; position: relative; }
.site-nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: -5px; height: 1px; background: var(--maroon); transform: scaleX(0); transition: transform .3s var(--ease); }
.site-nav a:hover { color: var(--maroon); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-header__cta { justify-self: end; display: flex; align-items: center; gap: 24px; }
.site-header__cta .text-link { font-size: .9rem; }
.menu-toggle { display: none; justify-self: end; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 12px 8px; }
.menu-toggle span { display: block; height: 1px; background: var(--maroon); transition: transform .25s ease; }
.menu-toggle span + span { margin-top: 8px; }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu { display: grid; max-height: calc(100dvh - 70px); overflow-y: auto; padding: 6px 24px 28px; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { font-family: var(--font-display); font-size: 1.5rem; color: var(--maroon); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 22px; }

/* ---------- hero: the shop's photos inside the margins, a caption on paper ---------- */
.hero { position: relative; padding: 0 24px; }
.hero__frames { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 4px; height: clamp(540px, calc(100svh - 150px), 860px); overflow: hidden; }
.hero__frame { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; animation: hero-settle 1.8s var(--ease) both; }
.hero__caption { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(480px, calc(100% - 48px)); padding: 30px 36px 26px; background: var(--paper); text-align: center; animation: hero-rise 1.3s .35s var(--ease) both; }
.hero__caption .eyebrow { margin-bottom: 10px; }
.hero__title { font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1.1; margin: 0 0 .15em; }
.hero__lead { color: var(--muted); margin-bottom: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center; }
@keyframes hero-settle { from { transform: scale(1.06); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes hero-rise { from { opacity: 0; } to { opacity: 1; } }

/* ---------- intro statement ---------- */
.intro { max-width: 820px; margin: 0 auto; padding: clamp(80px, 12vw, 140px) 24px; text-align: center; }
.intro .emblem { width: 30px; color: var(--gold); margin-bottom: 28px; }
.intro__text { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.7; color: var(--maroon); margin: 0 0 30px; }
.intro .motif { width: 150px; color: var(--gold); opacity: .7; }

/* ---------- shared section type ---------- */
.section { padding: clamp(76px, 10vw, 120px) 0; }
.section h2 { font-size: clamp(2.1rem, 3.8vw, 3rem); margin-bottom: .3em; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; }
.section__bar h2 { margin: 0; }

/* ---------- collection rail: tiles like a shop window ---------- */
.collection { padding-top: 0; }
.rail-nav { display: flex; align-items: center; gap: 18px; color: var(--plum); }
.rail-nav__btn { width: 36px; height: 36px; border: 0; background: none; color: var(--plum); font-size: 1.05rem; cursor: pointer; transition: color .2s ease; }
.rail-nav__btn:hover { color: var(--maroon); }
.rail:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.rail { --gutter: max(24px, calc((100% - var(--wrap)) / 2)); display: grid; grid-auto-flow: column; grid-auto-columns: clamp(232px, 23vw, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.look { scroll-snap-align: start; text-decoration: none; color: var(--ink); text-align: center; }
.look__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tint); }
.look__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1.2s var(--ease); }
.look:hover .look__media img { transform: scale(1.04); }
.look__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 8px; margin-top: 16px; }
.look__swatch { width: 12px; height: 12px; background-size: cover; box-shadow: 0 0 0 1px var(--line); }
.look__name { font-size: 1rem; color: var(--ink); }
.look__note { width: 100%; font-size: .86rem; color: var(--maroon); }
.look__price { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ---------- fabrics & patterns ---------- */
.fabrics { background: var(--tint); }
.fabrics__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.fabrics__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.fabrics__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.fabrics__lead { color: var(--plum); }
.fabric-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.fabric-list li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fabric-list__num { font-size: .76rem; color: var(--gold-text); }
.fabric-list__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--maroon); line-height: 1.3; }
.fabric-list__name small { display: block; font-family: var(--font-body); font-size: .85rem; color: var(--muted); }
.fabrics__sub { font-size: 1.6rem; margin: 46px 0 .2em; }
.pattern-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 14px; margin: 22px 0 28px; }

/* ---------- how it works: photo beside a tinted panel ---------- */
.how { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(76px, 10vw, 120px); }
.how__photo { margin: 0; min-height: 620px; overflow: hidden; }
.how__photo img { width: 100%; height: 100%; object-fit: cover; }
.how__panel { background: var(--tint); padding: clamp(48px, 7vw, 100px) clamp(28px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.how__panel h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin-bottom: 1em; }
.rail-fallback { text-align: center; margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step__num { font-size: .78rem; color: var(--gold-text); padding-top: 6px; }
.step h3 { font-size: 1.35rem; margin-bottom: .2em; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.step p a { color: var(--maroon); text-underline-offset: 3px; }
.how__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 38px; }

/* ---------- atelier gallery ---------- */
.atelier__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; grid-auto-flow: dense; gap: 4px; }
.atelier__grid figure { margin: 0; overflow: hidden; background: var(--tint); }
.atelier__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.atelier__grid figure:hover img { transform: scale(1.04); }
.atelier__tall { grid-row: span 2; }
.atelier__wide { grid-column: span 2; }
.atelier__cta { text-align: center; margin: 36px 0 0; }

/* ---------- story ---------- */
.story { padding-top: 0; }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.story__photo { margin: 0; aspect-ratio: 1; overflow: hidden; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__copy p:not(.eyebrow) { color: var(--plum); font-size: 1.05rem; }
.story blockquote { margin: 34px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--maroon); }

/* ---------- visit ---------- */
.visit { background: var(--tint); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.visit__photo { margin: 0; aspect-ratio: 4 / 5; max-height: 600px; overflow: hidden; }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.visit__card { max-width: 480px; }
.visit__card h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.visit__list { margin: 0 0 32px; border-top: 1px solid var(--line); }
.visit__list div { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.visit__list dt { min-width: 96px; color: var(--muted); font-size: .9rem; }
.visit__list dd { margin: 0; }
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

/* ---------- scroll reveal stagger ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__frame, .hero__caption { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: .86rem; }
}
@media (max-width: 960px) {
  html { scroll-padding-top: 76px; }
  .site-header__row { grid-template-columns: 1fr auto; min-height: 68px; }
  .site-header__logo { justify-self: start; }
  .site-header .logo { width: 80px; }
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: block; }
  .fabrics__grid, .story__grid, .visit__grid, .how { grid-template-columns: 1fr; }
  .how__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .visit__photo { aspect-ratio: 4 / 3; order: 2; }
  .fabrics__photo { aspect-ratio: 4 / 3; }
  .pattern-strip { grid-template-columns: repeat(10, 1fr); }
  .atelier__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
}
@media (max-width: 700px) {
  .hero { padding: 0 16px; }
  .hero__frames { grid-template-columns: 1fr; height: min(76svh, 640px); }
  .hero__frame--side { display: none; }
  .hero__caption { position: relative; left: auto; transform: none; width: auto; margin: -64px 16px 0; padding: 24px 20px 22px; }
}
@media (max-width: 600px) {
  .announce { font-size: .74rem; }
  .section__bar { align-items: center; }
  .rail-nav { display: none; }
  .rail { grid-auto-columns: 74vw; gap: 10px; }
  .pattern-strip { grid-template-columns: repeat(5, 1fr); }
}
