:root {
  --gold: #B48C2E;
  --gold-deep: #8A6612;
  --gold-light: #D9B45A;
  --tape: #E6C355;
  --ink: #211C15;
  --ink-soft: #40382B;
  --ivory: #FBF8F1;
  --paper: #FFFFFF;
  --line: #D9CFB8;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(20px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 12px 18px; border-radius: 3px; transition: top .2s; }
.skip:focus { top: 12px; }

h2 { font-weight: 600; font-size: clamp(28px, 3vw, 42px); line-height: 1.22; letter-spacing: -.02em; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px; border-radius: 3px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: #3A3023; }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--ivory); }
.btn--gold { background: var(--gold); color: var(--ink); min-height: 46px; padding: 10px 20px; font-size: 15px; }
.btn--gold:hover { background: var(--gold-light); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  display: inline-block; padding: 10px 0; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% calc(100% - 8px); }

/* Header: the progress bar is a thread pulled by a needle */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, .93);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; transition: padding .3s var(--ease); }
.header.is-stuck .header__in { padding-block: 9px; }
.brand { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; text-decoration: none; padding: 4px 0; }
.brand__top { font-size: 12px; font-weight: 600; letter-spacing: .22em; }
.brand__name { font-size: 27px; font-weight: 700; letter-spacing: -.01em; color: var(--gold-deep); white-space: nowrap; transition: font-size .3s var(--ease); }
.header.is-stuck .brand__name { font-size: 23px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { position: relative; padding: 12px 0; text-decoration: none; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-deep) 0 7px, transparent 7px 11px);
  clip-path: inset(0 100% 0 0); transition: clip-path .35s var(--ease);
}
.nav a:hover::after, .nav a.is-current::after { clip-path: inset(0); }
.thread { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.thread__line {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--progress, 0) * 100%);
  background: repeating-linear-gradient(90deg, var(--gold-deep) 0 9px, transparent 9px 14px);
}
.thread__needle { position: absolute; top: -5px; left: calc(var(--progress, 0) * 100% - 7px); opacity: 0; transition: opacity .3s; }
.header.is-stuck .thread__needle { opacity: 1; }

/* Hero */
.hero { padding-top: clamp(36px, 5vw, 64px); }
.hero__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; padding-bottom: clamp(36px, 4.4vw, 60px); }
.hero__title { flex: 1.5 1 440px; font-weight: 600; font-size: clamp(38px, 5.6vw, 82px); line-height: 1.14; letter-spacing: -.03em; }
.line { display: block; overflow: hidden; padding-block: .1em .16em; margin-block: -.1em -.16em; }
.line__in { display: block; }
.stitched { position: relative; white-space: nowrap; }
.stitched svg { position: absolute; left: -1%; bottom: -.14em; width: 102%; height: .2em; overflow: visible; }
.stitched path { fill: none; stroke: var(--gold); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 13 9; vector-effect: non-scaling-stroke; }
.hero__side { flex: 1 1 340px; max-width: 460px; display: flex; flex-direction: column; gap: 26px; padding-bottom: 10px; color: var(--ink-soft); }
.hero__media figcaption { padding-top: 12px; font-size: 14.5px; color: var(--ink-soft); }
.hero__img { overflow: hidden; background: #EADFD6; }
.hero__img img { width: 100%; height: auto; min-height: 250px; aspect-ratio: 2048 / 1103; object-fit: cover; object-position: 100% 50%; }

.js .line__in { transform: translateY(118%); transition: transform 1.1s var(--ease); }
.js .line:nth-child(2) .line__in { transition-delay: .12s; }
.js .stitched svg { clip-path: inset(-50% 100% -50% 0); transition: clip-path .9s var(--ease) .95s; }
.js .hero__img { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s cubic-bezier(.7, 0, .15, 1) .3s; }
.js .hero__img img { transform: scale(1.08); transition: transform 2.2s var(--ease) .3s; }
.js .hero__media figcaption { opacity: 0; transition: opacity .8s 1.5s; }
.is-ready .line__in { transform: none; }
.is-ready .stitched svg { clip-path: inset(-50% 0 -50% 0); }
.is-ready .hero__img { clip-path: inset(0); }
.is-ready .hero__img img { transform: none; }
.is-ready .hero__media figcaption { opacity: 1; }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Measuring tape */
.tape { overflow: hidden; margin-top: clamp(56px, 7vw, 96px); padding-block: 14px; }
.tape__strip {
  height: 46px; width: 4400px; margin-left: -140px;
  background: var(--tape); border-block: 1px solid rgba(33, 28, 21, .55);
  box-shadow: 0 6px 14px -8px rgba(33, 28, 21, .45);
  transform: translate3d(var(--tape-x, 0px), 0, 0) rotate(-.6deg);
  will-change: transform;
}
.tape__strip svg { display: block; height: 100%; }
.tape__strip text { font: 600 12px 'Montserrat', sans-serif; fill: var(--ink); }

/* Types of áo dài */
.types { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; padding-block: clamp(72px, 9vw, 120px); }
.types__intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 120px; }
.types__intro p { color: var(--ink-soft); max-width: 26em; }
.types__list { flex: 1.7 1 480px; border-bottom: 1px solid var(--ink); }
.type {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 32px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.type:first-child { border-top-color: var(--ink); }
.type h3 { flex: 1 1 220px; font-size: 25px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; transition: transform .45s var(--ease), color .3s; }
.type p { flex: 1.5 1 280px; color: var(--ink-soft); transition: transform .45s var(--ease) .03s; }
.type::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-deep) 0 10px, transparent 10px 16px);
  clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease);
}
@media (hover: hover) {
  .type:hover h3 { transform: translateX(14px); color: var(--gold-deep); }
  .type:hover p { transform: translateX(8px); }
  .type:hover::after { clip-path: inset(0); }
}

/* From measurements to the finished áo dài */
.craft { background: var(--paper); border-block: 1px solid #E6DDC8; }
.craft__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px clamp(40px, 5vw, 80px); align-items: start; padding-block: clamp(72px, 8.500vw, 112px); }
.craft__steps { display: flex; flex-direction: column; gap: 36px; }
.steps { position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 19px; top: 30px; bottom: 30px; width: 2px; }
.steps::before { background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 13px); }
.steps::after { background: repeating-linear-gradient(180deg, var(--gold-deep) 0 8px, transparent 8px 13px); transform-origin: top; clip-path: inset(0 0 calc((1 - var(--steps-p, 1)) * 100%) 0); }
.step { position: relative; display: flex; align-items: flex-start; gap: 22px; padding: 22px 0; }
.step__num {
  position: relative; z-index: 1; flex: 0 0 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; font-weight: 700;
  background: var(--paper); border: 1.5px solid var(--line); color: var(--ink-soft);
  transition: background-color .5s, border-color .5s, color .5s, transform .5s var(--ease);
}
.step__text { flex: 1; display: flex; flex-direction: column; gap: 4px; padding-top: 3px; }
.step__text h3 { font-size: 22px; font-weight: 600; line-height: 1.4; }
.step__text p { color: var(--ink-soft); }
.step__icon { flex: 0 0 40px; width: 40px; height: 40px; margin-top: 2px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step.is-in .step__num, html:not(.js) .step__num { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: scale(1.06); }
.js .step__text { opacity: .35; transform: translateX(-8px); transition: opacity .7s, transform .7s var(--ease); }
.js .step.is-in .step__text { opacity: 1; transform: none; }
.js .step__icon > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) .15s; }
.js .step.is-in .step__icon > * { stroke-dashoffset: 0; }

.bench { border: 1px solid var(--ink); background: var(--ivory); }
.bench__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 13px 24px; background: var(--gold); font-size: 14.5px; font-weight: 600; }
.bench__body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 20px 24px 8px;
  background-image: radial-gradient(rgba(33, 28, 21, .16) 1px, transparent 1.200px); background-size: 18px 18px; background-position: 9px 9px;
}
.figure { display: block; width: 100%; height: auto; max-height: 520px; --silk: #FFFDF8; --detail: #211C15; color: var(--detail); }
.figure .draw { fill: none; stroke: var(--ink); stroke-width: 1.500; stroke-linejoin: round; stroke-linecap: round; }
.figure .f-pants { fill: #FFFDF8; }
.figure .f-silk { fill: var(--silk); transition: fill .6s; }
.figure .f-gam { color: var(--detail); opacity: 0; transition: opacity .5s; }
.figure .f-gam use { fill: url(#gam); stroke: none; }
.figure.has-gam .f-gam { opacity: .34; }
.figure .f-detail .draw { stroke: var(--detail); stroke-width: 1.200; transition: stroke .6s; }
.figure .f-detail circle { fill: var(--detail); transition: fill .6s; }
.js .figure .draw { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.js .bench.is-in .figure .draw { animation: draw 1.9s var(--ease) .2s forwards, fill-in .9s ease 1.5s forwards; }
.js .figure .f-detail circle { opacity: 0; transition: opacity .5s 1.9s, fill .6s; }
.js .bench.is-in .figure .f-detail circle { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; } }

.figure .m { opacity: 0; transition: opacity .3s; }
.figure .m > * { fill: none; stroke: var(--ink); stroke-width: 2.200; stroke-linecap: round; stroke-dasharray: 7 5; paint-order: stroke; filter: drop-shadow(0 0 1.5px var(--ivory)) drop-shadow(0 0 1.5px var(--ivory)); }
.figure .m.is-on { opacity: 1; }
.figure .m.is-on > * { animation: march 1.1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -24; } }

.bench__side { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-block: 8px 16px; }
.measure {
  display: flex; align-items: baseline; gap: 10px; width: 100%; min-height: 44px; padding: 9px 10px; margin-inline: -10px;
  background: none; border: 0; border-radius: 3px; cursor: pointer; text-align: left; font-size: 16px;
  transition: background-color .25s, color .25s;
}
.measure span { font-weight: 500; white-space: nowrap; }
.measure i { flex: 1; border-bottom: 1px dotted #8C8066; transition: border-color .25s; }
.measure em { font-style: normal; color: #5A5040; transition: color .25s; }
.measure.is-on { background: var(--ink); color: var(--ivory); }
.measure.is-on i { border-color: rgba(251, 248, 241, .5); }
.measure.is-on em { color: var(--ivory); }
.bench__note { min-height: 3.300em; font-size: 14.500px; line-height: 1.55; color: var(--ink-soft); }
.bench__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 24px 20px; border-top: 1px solid var(--line); background: var(--ivory); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.swatch::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--c); border: 1px solid rgba(33, 28, 21, .45); transition: transform .3s var(--ease); }
.swatch::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 1.500px dashed var(--ink); opacity: 0; transform: rotate(-40deg) scale(.8); transition: opacity .3s, transform .5s var(--ease); }
.swatch:hover::before { transform: scale(1.1); }
.swatch[aria-pressed="true"]::after { opacity: 1; transform: none; }
.gam-toggle {
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 3px; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; transition: background-color .25s, color .25s;
}
.gam-toggle[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.bench__color { flex: 1 1 100%; font-size: 14.500px; color: var(--ink-soft); }
.bench__color strong { color: var(--ink); font-weight: 600; }

/* Gallery */
.gallery { display: flex; flex-direction: column; gap: 32px; padding-block: clamp(72px, 8.500vw, 112px) clamp(72px, 9vw, 120px); }
.gallery__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.gallery__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.shot { position: relative; display: block; min-width: 0; padding: 0; border: 0; background: #EADFD6; overflow: hidden; cursor: zoom-in; }
.shot--tall { flex: 9 1 225px; aspect-ratio: 3 / 4; }
.shot--wide { flex: 16 1 400px; aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.shot::after {
  content: ""; position: absolute; inset: 12px; border: 1.500px dashed var(--ivory); opacity: 0; transform: scale(1.03);
  transition: opacity .4s, transform .6s var(--ease); pointer-events: none;
}
@media (hover: hover) {
  .shot:hover img { transform: scale(1.05); }
  .shot:hover::after { opacity: .9; transform: none; }
}
.js .shot[data-reveal] { opacity: 1; transform: none; background: none; transition: background-color .2s 1.3s; }
.js .shot[data-reveal] img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.7, 0, .15, 1) var(--d, 0s), transform 1.1s var(--ease); }
.js .shot[data-reveal].is-in { background: #EADFD6; }
.js .shot[data-reveal].is-in img { clip-path: inset(0); }

/* About */
.about { position: relative; overflow: hidden; background: var(--ink); color: #F6F0E2; }
.about__silk { position: absolute; inset: auto 0 0 0; width: 100%; height: min(70%, 420px); pointer-events: none; }
.about__silk path { fill: none; stroke: var(--gold-light); stroke-width: 1.200; vector-effect: non-scaling-stroke; }
.about__silk path:nth-child(1) { opacity: .5; }
.about__silk path:nth-child(2) { opacity: .36; }
.about__silk path:nth-child(3) { opacity: .24; }
.about__silk path:nth-child(4) { opacity: .14; }
.about__in { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 72px; padding-block: clamp(80px, 9vw, 128px) clamp(120px, 13vw, 190px); }
.about__in h2 { flex: 1 1 320px; color: var(--gold-light); }
.about__text { flex: 1.7 1 480px; font-size: clamp(19px, 1.700vw, 24px); line-height: 1.65; }
.js .about__text .w { opacity: .24; transition: opacity .5s; }
.js .about__text .w.on { opacity: 1; }

/* Contact */
.contact { background: var(--gold); }
.contact__in { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; padding-block: clamp(72px, 8vw, 104px) 80px; }
.contact__info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 36px; }
.contact__info h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.16; letter-spacing: -.025em; margin-bottom: 14px; }
.contact__block { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.contact__block h3 { font-size: 15px; font-weight: 600; }
.contact__phone { font-size: 34px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-decoration: none; }
.contact__addr { font-size: 20px; font-weight: 500; line-height: 1.5; }
.contact__map { flex: 1.5 1 440px; min-width: 0; padding: 10px; border: 1.500px dashed var(--ink); }
.contact__map iframe { display: block; width: 100%; height: 440px; border: 0; background: var(--ivory); }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; padding-block: 16px 28px; border-top: 1px solid rgba(33, 28, 21, .4); font-size: 14.500px; }

/* Quick contact bar on phones */
.actionbar { display: none; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(24, 20, 14, .96); color: var(--ivory); }
.lightbox::backdrop { background: rgba(24, 20, 14, .96); }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; animation: lb-in .35s ease; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100dvh; padding: 56px 8px 28px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { font-size: 15px; }
.lightbox__btn { width: 52px; height: 52px; margin: 0 clamp(4px, 2vw, 24px); border: 1px solid rgba(251, 248, 241, .5); border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; transition: background-color .25s, color .25s; }
.lightbox__btn:hover { background: var(--ivory); color: var(--ink); }
.lightbox__btn svg, .actionbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { position: absolute; top: 14px; right: 0; }
.lightbox :focus-visible { outline-color: var(--ivory); }

@media (max-width: 980px) {
  .craft__in { grid-template-columns: minmax(0, 1fr); }
  .types__intro { position: static; }
}
@media (max-width: 860px) {
  .nav { display: none; }
}
@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .bench__bar, .bench__foot { padding-inline: 16px; }
  .bench__body { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
  .figure { max-height: 400px; }
  .step__icon { display: none; }
  .tape__strip { height: 38px; }
  .contact__map iframe { height: 340px; }
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--ink); color: var(--ivory); padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%); transition: transform .45s var(--ease);
  }
  .actionbar.is-on, html:not(.js) .actionbar { transform: none; }
  .actionbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; font-size: 13px; font-weight: 600; text-decoration: none; }
  .actionbar a + a { border-left: 1px solid rgba(251, 248, 241, .18); }
  .actionbar a:first-child { background: var(--gold); color: var(--ink); }
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 14px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox figure { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .shot[data-reveal] img, .js .line__in, .js .hero__img, .js .hero__img img, .js .hero__media figcaption, .js .stitched svg { opacity: 1; transform: none; clip-path: none; }
  .js .figure .draw, .js .step__icon > * { stroke-dasharray: none; stroke-dashoffset: 0; fill-opacity: 1; }
  .js .figure .f-detail circle, .js .step__text, .js .about__text .w { opacity: 1; transform: none; }
  .figure .m > * { stroke-dasharray: 7 5; }
}
