/* Atelier Asra · homepage design preview */
:root {
  --ivory: #F4EFE8;
  --paper: #EDE7E0;
  --ink: #2B2F34;
  --graphite: #1E2124;
  --steel-text: #5A6068;
  --body: #474C53;
  --rule: #CFC8BD;
  --on-dark: #ECE7DF;
  --on-dark-muted: #B9B3AA;
  --on-steel: #1F2226;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(22px, 6vw, 88px);
  --max: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); scroll-padding-bottom: 80px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
em { font-style: italic; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--ivory); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.kicker { font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 400; margin: 0 0 18px; color: var(--steel-text); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; font: 500 11.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border: 1px solid currentColor; transition: background-color .25s, color .25s, border-color .25s; cursor: pointer; }
.btn-ink { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-ink:hover { background: var(--graphite); }
.btn-light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn-light:hover { background: #fff; }
.tlink { display: inline-block; font: 500 11.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding: 14px 0 4px; }
.tlink:hover { opacity: .75; }
.section-title { font-size: clamp(38px, 5vw, 56px); margin-bottom: 18px; }

/* ---------- logo (masked SVG, takes currentColor) ---------- */
.logo { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.logo .mk, .logo .wm { display: block; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.logo .mk { --src: url(img/mark.svg); width: 44px; aspect-ratio: 180 / 150; }
.logo .wm { --src: url(img/wordmark.svg); width: 158px; aspect-ratio: 229 / 18; }

/* ---------- header ---------- */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto 0; height: var(--header-h); color: var(--ivory); transition: background-color .35s, color .35s, box-shadow .35s; }
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,26,29,.55), rgba(24,26,29,0)); transition: opacity .35s; pointer-events: none; }
.site-header .bar { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.solid { background: rgba(244,239,232,.96); color: var(--ink); box-shadow: 0 1px 0 var(--rule); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-header.solid::before { opacity: 0; }
.primary { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.primary ul { display: flex; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.primary a { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; padding: 10px 0; }
.primary a:not(.btn):hover { opacity: .7; }
.primary .btn { min-height: 42px; padding: 12px 22px; }
.site-header:not(.solid) .primary .btn { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.site-header.solid .primary .btn { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.menu-toggle { display: none; width: 48px; height: 48px; margin-right: -12px; border: 0; background: none; color: inherit; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 6px auto; background: currentColor; transition: transform .3s; }
.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* mobile menu */
.menu { position: fixed; z-index: 45; inset: 0; background: var(--graphite); color: var(--ivory); padding: calc(var(--header-h) + 30px) var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: block; font-family: var(--serif); font-size: 40px; line-height: 1.2; padding: 8px 0; text-decoration: none; border-bottom: 1px solid #33373d; }
.menu .menu-foot { font-size: 14px; color: var(--on-dark-muted); line-height: 2; }
.menu .menu-foot a { text-decoration: none; }
.menu-open .site-header { color: var(--ivory); background: transparent; box-shadow: none; }
.menu-open .site-header::before { opacity: 0; }

/* ---------- hero ---------- */
.hero { position: relative; height: max(640px, min(94vh, 900px)); overflow: hidden; background: #8e8d8a url(img/hero-poster-1280.webp) center / cover; color: var(--ivory); }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,33,36,.82) 0%, rgba(30,33,36,.55) 40%, rgba(30,33,36,.08) 72%, rgba(30,33,36,0) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.hero-copy { max-width: 560px; }
.hero .kicker { color: #DDD7CE; }
.hero h1 { font-size: clamp(50px, 6.6vw, 88px); line-height: 0.98; margin-bottom: 24px; }
.hero h1 em { font-weight: 400; }
.hero .lede { font-size: 18px; color: var(--on-dark); max-width: 470px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.hero-actions .tlink { color: var(--ivory); }
.video-toggle { position: absolute; z-index: 3; left: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--on-dark); font: 400 10.5px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; padding: 8px 8px 8px 0; }
.video-toggle i { width: 32px; height: 32px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9px; letter-spacing: 0; }
@media (min-width: 1400px) { .video-toggle { left: calc((100vw - var(--max)) / 2); } }

/* ---------- services ---------- */
.paper { background: var(--ivory) url(img/paper-1600.webp) center top / cover; }
.services { padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 9vw, 112px); }
.services .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.services .head .section-title { margin: 0; }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 48px); list-style: none; margin: 0; padding: 0; }
.svc a { display: flex; flex-direction: column; height: 100%; border-top: 1px solid var(--rule); padding-top: 24px; text-decoration: none; }
.svc .n { font-size: 11.5px; letter-spacing: 0.22em; color: var(--steel-text); }
.svc h3 { font-size: clamp(30px, 3vw, 38px); margin: 10px 0 12px; }
.svc p { font-size: 16px; color: var(--body); margin-bottom: 22px; }
.svc .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.svc .foot .go { border-bottom: 1px solid currentColor; padding-bottom: 3px; font-weight: 500; }
.svc a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ---------- beauty-mark band (lace over steel) ---------- */
.mark-band { position: relative; background: #8f8e8b url(img/lace-steel-1600.webp) center top / cover; color: var(--on-steel); padding: clamp(150px, 15vw, 210px) 0 clamp(80px, 9vw, 120px); }
.mark-band .wrap { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.draw-mark { width: 100%; max-width: 320px; height: auto; color: var(--on-steel); }
.draw-mark .stroke { stroke-dasharray: 520; stroke-dashoffset: 520; }
.draw-mark .dot { opacity: 0; transform-box: fill-box; transform-origin: center; }
.mark-band.on .draw-mark .stroke { animation: draw 2.6s cubic-bezier(.45,.05,.35,1) forwards; }
.mark-band.on .draw-mark .dot { animation: dot .7s 2.45s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
.mark-band .kicker { color: #2E3237; }
.mark-band h2 { font-size: clamp(36px, 4.4vw, 54px); max-width: 620px; margin-bottom: 22px; }
.mark-band p { font-size: 17.5px; max-width: 560px; margin-bottom: 18px; color: #1d2024; }
.mark-band .tlink { color: var(--on-steel); }

/* ---------- looks ---------- */
.looks { padding: clamp(80px, 10vw, 128px) 0 clamp(70px, 9vw, 110px); background: var(--ivory); }
.looks-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); list-style: none; padding: 0; }
.looks-grid li { position: relative; display: flex; flex-direction: column; padding: 38px clamp(18px, 2.2vw, 30px) 32px; border-left: 1px solid var(--rule); }
.looks-grid li:first-child { border-left: 0; padding-left: 0; }
.looks-grid li:last-child { padding-right: 0; }
.looks-grid h3 { font-size: clamp(28px, 2.6vw, 34px); margin-bottom: 10px; }
.looks-grid p { font-size: 15.5px; color: var(--body); margin-bottom: 22px; }
.fav { position: absolute; top: 14px; left: clamp(18px, 2.2vw, 30px); display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel-text); }
.fav::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.photo-slot { margin-top: auto; aspect-ratio: 4 / 5; border: 1px dashed #BDB5A9; display: grid; place-items: center; text-align: center; padding: 16px; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #8C8478; }
.looks .note { margin-top: 26px; font-size: 16px; color: var(--body); }
.looks .note a { color: var(--ink); text-underline-offset: 4px; }

/* ---------- how bridal works ---------- */
.how { background: var(--paper); padding: clamp(80px, 10vw, 120px) 0; }
.how .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(36px, 7vw, 100px); }
.how .aside p { font-size: 16px; color: var(--body); max-width: 340px; }
.how ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.how li { counter-increment: step; display: grid; grid-template-columns: 70px 1fr; padding: 26px 0; border-top: 1px solid var(--rule); }
.how li:last-child { border-bottom: 1px solid var(--rule); }
.how li::before { content: "0" counter(step); font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--steel-text); }
.how li h3 { font-family: var(--sans); font-weight: 500; font-size: 18px; line-height: 1.4; margin-bottom: 6px; letter-spacing: 0; }
.how li p { font-size: 16px; color: var(--body); margin: 0; }

/* ---------- where (steel) ---------- */
.where { background: linear-gradient(rgba(214,212,208,.5), rgba(214,212,208,.5)), #a09f9c url(img/steel-1600.webp) center / cover; color: var(--on-steel); padding: clamp(64px, 8vw, 96px) 0; }
.where ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); list-style: none; margin: 0; padding: 0; }
.where h3 { font-size: clamp(28px, 2.8vw, 36px); margin-bottom: 8px; }
.where p { font-size: 16px; margin: 0; color: #1d2024; }
.where .small { margin-top: 34px; font-size: 14px; }
.where .small a { text-underline-offset: 4px; }

/* ---------- contact ---------- */
.contact { text-align: center; padding: clamp(84px, 10vw, 128px) 0 clamp(56px, 6vw, 80px); background: var(--paper) url(img/paper-1600.webp) center top / cover; }
.contact .section-title { font-size: clamp(44px, 6vw, 72px); }
.contact p.lede { font-size: 18px; color: var(--body); max-width: 520px; margin: 0 auto 34px; }
.contact .alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 34px; font-size: 14.5px; letter-spacing: 0.06em; }
.contact .alt a { text-decoration: none; border-bottom: 1px solid var(--rule); padding: 10px 0 4px; }
.contact .alt a:hover { border-color: var(--ink); }
.lace-foot { position: relative; height: clamp(170px, 21vw, 310px); background: var(--paper) url(img/lace-border-1600.webp) center 12% / cover; }
.lace-foot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 22%; background: linear-gradient(var(--paper), rgba(237,231,224,0)); }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: #CFC9C0; padding: 64px 0 40px; font-size: 14.5px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .logo { flex-direction: column; align-items: flex-start; gap: 16px; color: var(--ivory); }
.site-footer h2 { font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: #9A958D; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .legal { margin-top: 52px; padding-top: 20px; border-top: 1px solid #3A3E44; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: #9A958D; font-size: 13px; }

/* ---------- mobile action bar ---------- */
.mobile-bar { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero-copy { animation: rise 1.4s .3s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 120; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: var(--ivory); font-size: 14px; padding: 12px 18px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =================== responsive =================== */
@media (max-width: 1020px) {
  .primary ul, .primary .btn { display: none; }
  .menu-toggle { display: block; }
  .looks-grid { grid-template-columns: repeat(2, 1fr); }
  .looks-grid li:nth-child(3) { border-left: 0; padding-left: 0; }
  .looks-grid li:nth-child(2) { padding-right: 0; }
  .looks-grid li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  body { font-size: 16.5px; }
  .logo .mk { width: 34px; } .logo .wm { width: 118px; } .logo { gap: 10px; }
  .hero { height: max(600px, 100svh); background-image: url(img/hero-poster-800.webp); }
  .hero video { object-position: 68% center; }
  .hero::after { background: linear-gradient(180deg, rgba(30,33,36,.45) 0%, rgba(30,33,36,.12) 28%, rgba(30,33,36,.66) 62%, rgba(30,33,36,.86) 100%); }
  .hero .wrap { justify-content: flex-end; padding-bottom: 84px; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 60px); }
  .hero .lede { font-size: 16.5px; margin-bottom: 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn, .hero-actions .tlink { width: 100%; }
  .hero-actions .tlink { text-align: center; border: 1px solid var(--ivory); padding: 17px 0; min-height: 48px; }
  .video-toggle { bottom: 22px; }
  .paper { background-image: url(img/paper-900.webp); }
  .services .head { flex-direction: column; align-items: flex-start; }
  .svc { grid-template-columns: 1fr; gap: 0; }
  .svc a { padding: 24px 0 26px; }
  .mark-band { background-image: url(img/lace-steel-900.webp); padding-top: 130px; }
  .mark-band .wrap { grid-template-columns: 1fr; }
  .draw-mark { max-width: 170px; }
  .looks-grid { grid-template-columns: 1fr; }
  .looks-grid li { border-left: 0 !important; padding: 34px 0 28px !important; border-top: 1px solid var(--rule); }
  .looks-grid li:first-child { border-top: 0; }
  .fav { left: 0; top: 10px; }
  .photo-slot { aspect-ratio: 16 / 9; }
  .how .wrap { grid-template-columns: 1fr; }
  .how li { grid-template-columns: 54px 1fr; }
  .where { background-image: linear-gradient(rgba(214,212,208,.45), rgba(214,212,208,.45)), url(img/steel-900.webp); }
  .where ul { grid-template-columns: 1fr; }
  .contact .btn { width: 100%; }
  .contact .alt { flex-direction: column; align-items: center; gap: 4px; }
  .lace-foot { background-image: url(img/lace-border-900.webp); }
  .site-footer { padding-bottom: 110px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 30px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 64px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--ivory); padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); transition: transform .35s ease; }
  .mobile-bar.show { transform: none; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 58px; font: 500 11.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border-left: 1px solid #454A51; }
  .mobile-bar a:first-child { border-left: 0; }
  .mobile-bar svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy { animation: none; }
  .draw-mark .stroke { stroke-dashoffset: 0; }
  .draw-mark .dot { opacity: 1; }
  .mark-band.on .draw-mark .stroke, .mark-band.on .draw-mark .dot { animation: none; }
}
