@font-face { font-family: "Syncopate"; src: url("../fonts/syncopate-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syncopate"; src: url("../fonts/syncopate-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cream: #f7f3ed;
  --tile: #ede7df;
  --ink: #141414;
  --ink-soft: #69635d;
  --line: rgba(20, 20, 20, .12);
  --beige: #d3cbc3;
  --display: "Syncopate", "Arial Narrow", sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 3.4vw, 48px);
  --section: clamp(64px, 9vw, 120px);
  --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 15px/1.65 var(--body); letter-spacing: .01em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 30; }
.skip:focus { left: 8px; }

/* Type */
.title { font: 400 clamp(17px, 2vw, 24px)/1.35 var(--display); letter-spacing: .14em; text-transform: uppercase; }
h1 { font: 400 clamp(22px, 3.4vw, 46px)/1.25 var(--display); letter-spacing: .06em; text-transform: uppercase; }
h2 { font: 400 clamp(19px, 2.4vw, 30px)/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; }
h3 { font: 500 14px/1.4 var(--body); letter-spacing: .06em; }
.eyebrow { font: 500 12px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.lede { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; }
.muted { color: var(--ink-soft); }
/* Paragraf isi rata kiri-kanan; label, harga, dan teks tengah tidak ikut. */
.hero__sub, .lede, .craft figcaption p, .buy > p:not(.eyebrow):not(.price), .buy__note, .size-visual__copy > p, details p { text-align: justify; hyphens: auto; }
.link { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }

/* Buttons */
.btn { display: inline-block; padding: 15px 30px; border: 1px solid var(--ink); background: var(--ink); color: var(--cream); font: 500 13px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center; transition: background .2s, color .2s; cursor: pointer; }
.btn:hover { background: transparent; color: var(--ink); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--cream); }
.btn--block { display: block; width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 3vw, 40px); padding: 0 var(--gutter); background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header__logo img { height: 14px; width: auto; }
.site-nav { display: flex; gap: clamp(14px, 1.8vw, 26px); }
.site-nav a, .site-header__cta { font-size: 14px; letter-spacing: .05em; text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-header__cta:hover { text-decoration: underline; text-underline-offset: 5px; }
.lang { display: flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .08em; color: var(--ink-soft); }
.lang a { padding: 6px 2px; text-decoration: none; color: var(--ink-soft); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* Hero */
.hero { position: relative; height: calc(100svh - var(--header)); min-height: 520px; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--cream); }
.hero__img { overflow: hidden; }
.hero__img img { object-position: 50% 22%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 10, .62), rgba(10, 10, 10, 0) 48%); pointer-events: none; }
.hero__copy { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 6vh, 64px); display: grid; gap: 18px; justify-items: start; max-width: 660px; }
.hero__copy .eyebrow { color: rgba(247, 243, 237, .8); }
.hero__copy .btn { margin-top: 10px; }
.hero--video { display: block; overflow: hidden; }
.hero__video { position: absolute; inset: 0; }
/* Logo berada di tengah video, jadi teks dibuat ramping di kiri bawah. */
.hero--video .hero__copy { max-width: 26vw; }
.hero--video h1 { font-size: clamp(20px, 2.3vw, 34px); }
.hero__sub { font-size: 15px; line-height: 1.55; color: rgba(247, 243, 237, .85); max-width: 32em; }

/* Sections */
.section { padding: var(--section) var(--gutter); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section__head--center { justify-content: center; text-align: center; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
/* Dua SKU: kartu dibatasi lebarnya agar tidak terlalu tinggi di layar lebar. */
.cards--two, .section__head--narrow { max-width: 1040px; margin-inline: auto; }
.cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; display: grid; text-decoration: none; background: var(--tile); }
.card__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.card__img img { position: absolute; inset: 0; transition: opacity .45s ease, transform .9s ease; }
.card__img .card__alt { opacity: 0; }
.card:hover .card__alt, .card:focus-visible .card__alt { opacity: 1; }
.card:hover .card__img img { transform: scale(1.02); }
.card__tag { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 4px 8px; background: var(--cream); font: 500 11px/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.card__info { display: flex; justify-content: space-between; gap: 12px; padding: 16px; font-size: 14px; letter-spacing: .04em; }
.card__info span:last-child { color: var(--ink-soft); white-space: nowrap; }

/* Split banner */
.banner { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: min(88svh, 860px); min-height: 480px; background: var(--ink); color: var(--cream); overflow: hidden; }
.banner > video, .banner > img { min-height: 0; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 10, .28); pointer-events: none; }
.banner__copy { position: absolute; z-index: 1; inset: auto 0 clamp(36px, 8vh, 80px); display: grid; gap: 20px; justify-items: center; text-align: center; padding: 0 var(--gutter); }
.banner__copy h2 { text-shadow: 0 1px 18px rgba(0, 0, 0, .25); }

/* Craft */
.craft { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.craft figure { display: grid; gap: 14px; align-content: start; }
.craft__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; padding: 0; border: 0; background: var(--tile); color: inherit; font: inherit; cursor: pointer; }
.craft__media img { position: absolute; inset: 0; transition: opacity .45s ease, transform .9s ease; }
/* Ilustrasi berformat 3:2, jadi ditampilkan utuh; warna latar disamakan dengan tepi ilustrasi. */
.craft__media .craft__detail { object-fit: contain; background: #e4e4e2; opacity: 0; }
.craft__media[aria-pressed="true"] .craft__detail, .craft__media:focus-visible .craft__detail { opacity: 1; }
.craft__hint { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 4px 8px; background: var(--cream); font: 500 11px/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; transition: opacity .3s ease; }
.craft__media[aria-pressed="true"] .craft__hint { opacity: 0; }
@media (hover: hover) {
  .craft__media:hover .craft__detail { opacity: 1; }
  .craft__media:hover .craft__hint { opacity: 0; }
}
.craft figcaption { display: grid; gap: 4px; }
.craft figcaption p { font-size: 14px; color: var(--ink-soft); max-width: 32em; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font: 400 clamp(22px, 2.6vw, 32px)/1.1 var(--display); }
.facts dd { font-size: 14px; line-height: 1.45; margin-top: 8px; color: var(--ink-soft); }

/* Colour compare */
/* Lebar slider dihitung dari tinggi layar agar label di bawahnya bisa ikut sejajar. */
.compare, .compare-labels { width: min(100%, 1100px, calc(86svh * 4 / 5)); }
.compare { position: relative; margin: 0 auto; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); --pos: 50%; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; object-fit: cover; }
.compare__top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--cream); pointer-events: none; }
.compare__knob { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-size: 13px; letter-spacing: .1em; pointer-events: none; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-labels { display: flex; justify-content: space-between; gap: 16px; margin: 18px auto 0; }
.compare-labels > div { display: grid; gap: 6px; }
.compare-labels > div:last-child { text-align: right; justify-items: end; }

/* Split story */
/* The fabric: foto kain hitam dan putih bergantian, memudar dan membesar pelan (siklus 12 dtk). */
.fabric-loop { position: relative; height: 100%; overflow: hidden; background: var(--ink); }
.fabric-loop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fabric-drift 12s ease-in-out infinite alternate; }
.fabric-loop img + img { animation: fabric-drift 12s ease-in-out infinite alternate, fabric-swap 12s ease-in-out infinite; }
@keyframes fabric-swap { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fabric-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .fabric-loop img { animation: none !important; } }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--tile); }
.split__media { aspect-ratio: 4 / 5; overflow: hidden; }
.split__copy { display: grid; gap: 20px; align-content: center; justify-items: start; padding: clamp(40px, 7vw, 112px); }
.split__copy .lede { max-width: 30em; }

/* Philosophy */
.philosophy { background: var(--ink); color: var(--cream); text-align: center; }
.philosophy__inner { max-width: 880px; margin: 0 auto; display: grid; gap: 22px; justify-items: center; }
.philosophy img { width: 40px; height: auto; object-fit: contain; }
.philosophy blockquote { margin: 0; font: 400 clamp(16px, 2.2vw, 26px)/1.5 var(--display); letter-spacing: .06em; text-transform: uppercase; }

/* Penutup: foto box lebar penuh, teks di area gelap kiri supaya kedua label kemeja terlihat. */
.closing { position: relative; display: grid; place-items: center start; min-height: min(calc(100svh - var(--header)), 920px); padding: 96px var(--gutter) clamp(56px, 7vw, 96px) clamp(40px, 6vw, 112px); background: var(--ink); color: var(--cream); overflow: hidden; }
.closing__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,20,20,.85) 0%, rgba(20,20,20,.55) 30%, rgba(20,20,20,.1) 60%); }
.closing .philosophy__inner { position: relative; z-index: 1; justify-items: start; text-align: left; max-width: 440px; margin: 0; }
.closing .philosophy__inner img { width: 40px; height: auto; }
.closing h2 { margin: 0; font: 400 clamp(16px, 2.2vw, 26px)/1.5 var(--display); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 900px) {
  /* HP: foto utuh di atas, memudar ke hitam, teks di bawahnya. */
  .closing { display: block; min-height: 0; padding: 0 0 56px; text-align: center; }
  .closing::after { display: none; }
  .closing__bg { position: relative; height: auto; aspect-ratio: 3 / 4; object-position: 50% 0; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
  .closing .philosophy__inner { justify-items: center; text-align: center; max-width: none; margin: -40px 0 0; padding: 0 var(--gutter); }
}

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding: 0 var(--gutter) var(--section) 0; align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.gallery figure { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.gallery figure.is-lead { grid-column: 1 / -1; }
/* Foto 2:3 dipotong dari atas agar kepala tidak terpotong di bingkai 4:5. */
.img-top { object-position: 50% 0; }
.buy { position: sticky; top: calc(var(--header) + 32px); display: grid; gap: 20px; padding-top: clamp(24px, 3vw, 48px); }
.buy h1 { font-size: clamp(20px, 2.4vw, 30px); }
.price { font-size: 16px; letter-spacing: .06em; }
.buy__note { font-size: 13px; color: var(--ink-soft); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: none; border: 1px solid var(--line); color: inherit; font: 400 14px/1 var(--body); letter-spacing: .04em; cursor: pointer; }
.swatch::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(20, 20, 20, .3); background: var(--c); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.spec { border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--ink-soft); }

/* Size guide: gambar titik ukur di kiri (ikut warna yang dipilih), teks dan tabel di kanan. */
.size-visual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.size-visual figure { margin: 0; }
.size-visual figure img { width: 100%; max-width: 600px; height: auto; display: block; margin: 0 auto; }
.size-visual__copy { display: grid; gap: 16px; }
.size-visual__copy .table-wrap { margin-top: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; font-size: 13px; color: var(--ink-soft); caption-side: bottom; padding-top: 14px; }
th, td { padding: 13px 12px 13px 0; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; white-space: nowrap; }
thead th { font-weight: 500; letter-spacing: .1em; font-size: 12px; text-transform: uppercase; }

.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { margin-bottom: 28px; text-align: center; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 0; font-size: 16px; letter-spacing: .02em; }
details p { padding-bottom: 20px; color: var(--ink-soft); max-width: 40em; }

.mobile-buy { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) var(--gutter) 28px; display: grid; gap: 48px; }
.site-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__cols img { height: 14px; width: auto; margin-bottom: 16px; }
.site-footer__cols p { color: var(--ink-soft); max-width: 26em; }
.site-footer__cols ul { display: grid; gap: 10px; font-size: 14px; letter-spacing: .04em; }
.site-footer__cols ul a { text-decoration: none; }
.site-footer__cols ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__base { display: flex; justify-content: center; font-size: 13px; color: var(--ink-soft); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card__img img, .craft__media img { transition: none; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .hero__img { aspect-ratio: 4 / 5; }
  .hero__img + .hero__img { display: none; }
  .hero--video { aspect-ratio: 9 / 16; }
  .hero--video .hero__copy { max-width: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__info { flex-direction: column; gap: 4px; padding: 12px; font-size: 13px; }
  .banner { height: auto; min-height: 0; aspect-ratio: 9 / 8; }
  .craft { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .split, .size-visual, .product { grid-template-columns: minmax(0, 1fr); }
  .split__copy { padding: 48px var(--gutter); }
  .product { padding: 0 0 var(--section); }
  .buy { position: static; padding: 8px var(--gutter) 0; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__cols > div:first-child { grid-column: 1 / -1; }
  .mobile-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 10px 16px; background: var(--cream); border-top: 1px solid var(--line); }
  .mobile-buy .btn { padding: 13px 18px; }
  .has-mobile-buy { padding-bottom: 68px; }
}
