/* HARIAKU — shared tokens & components. Each option sets its own fonts and overrides. */
:root {
  --ecru: #F9F6F0;
  --cream: #F5E8CE;
  --terracotta: #B55B32;
  --espresso: #362B28;
  --sage: #8A9A86;
  --terracotta-ink: #9A4826;
  --sage-ink: #5F6E5B;
  --clay: #E3B49A;
  --rose: #E8C9C0;
  --line: rgba(54, 43, 40, .14);
  --gold: #B8935A;

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans: system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1440px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html.nav-open { overflow: hidden; }
body { margin: 0; background: var(--ecru); color: var(--espresso); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
::selection { background: var(--clay); color: var(--espresso); }
:focus-visible { outline: 2px solid var(--terracotta-ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }

/* ——— type helpers ——— */
.eyebrow { font-family: var(--sans); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.display { font-family: var(--serif); font-weight: 400; line-height: .96; letter-spacing: -.01em; }
.display em, .serif-it { font-style: italic; }

/* ——— buttons ——— */
.btn { display: inline-flex; align-items: center; gap: .7em; padding: 15px 26px; border-radius: 999px; background: var(--terracotta-ink); color: var(--ecru); text-decoration: none; font-size: 14px; letter-spacing: .04em; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.btn:hover { background: var(--espresso); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--line { background: transparent; color: currentColor; border-color: currentColor; }
.btn--line:hover { background: var(--espresso); color: var(--ecru); border-color: var(--espresso); }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ——— navbar ——— */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--pad); color: var(--espresso); transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease); }
.nav.is-scrolled { background: color-mix(in srgb, var(--nav-bg, var(--ecru)) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__brand { grid-column: 2; display: block; width: 136px; color: inherit; }
.nav__brand svg { width: 100%; height: auto; display: block; }
.nav__menu { grid-column: 1; grid-row: 1; display: flex; gap: 28px; font-size: 13.5px; letter-spacing: .03em; }
.nav__menu a { text-decoration: none; position: relative; padding: 6px 0; }
.nav__menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__menu a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__menu sup { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; margin-left: 4px; opacity: .6; vertical-align: super; }
.nav__end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 6px; }
.nav__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.nav__icon:hover { background: var(--line); }
.nav__icon svg { width: 19px; height: 19px; }
.nav__cta { margin-left: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid currentColor; font-size: 13px; text-decoration: none; letter-spacing: .03em; transition: background .3s, color .3s; }
.nav__cta:hover { background: var(--espresso); color: var(--ecru); border-color: var(--espresso); }
.nav__toggle { display: none; width: 42px; height: 42px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__toggle span:first-child { top: 16px; } .nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: auto 1fr; }
  .nav__brand { grid-column: 1; width: 112px; }
  .nav__end { grid-column: 2; }
  .nav__icon, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__menu { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: var(--pad); background: var(--ecru); color: var(--espresso); font-family: var(--serif); font-size: 40px; letter-spacing: 0; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
  .nav__menu sup { font-family: var(--sans); }
  .nav.is-open .nav__menu { opacity: 1; pointer-events: auto; }
  /* backdrop-filter would make the fixed menu size itself to the bar instead of the screen */
  .nav.is-open { color: var(--espresso); background: var(--ecru); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__menu { padding-top: calc(var(--nav-h) + 20px); justify-content: flex-start; overflow-y: auto; }
}

/* ——— butterfly ——— */
.hk-fly { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.hk-fly--static { position: absolute; }
.hk-fly__body { position: absolute; left: 0; top: 0; perspective: 240px; pointer-events: none; will-change: transform; }
.hk-fly__wing { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.hk-fly__wing--l { clip-path: inset(-2% 50% -2% -2%); }
.hk-fly__wing--r { clip-path: inset(-2% -2% -2% 50%); }
.hk-fly__wing svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hk-fly { transition: color .6s var(--ease); }
.hk-fly__body { transition: opacity .45s var(--ease); }
.hk-fly.is-hidden .hk-fly__body { opacity: 0; pointer-events: none; }
html.nav-open .hk-fly, html.nav-open .hk-thread { opacity: 0; transition: opacity .3s; }
.hk-thread { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 4; overflow: visible; }
.hk-thread__stitch { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-dasharray: 4 7; stroke-linecap: round; opacity: .5; }
.hk-thread__reveal { fill: none; stroke: #fff; stroke-width: 10; }

/* ——— reveal ——— */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="img"] { opacity: 1; transform: none; }
[data-reveal="img"] > img, [data-reveal="img"] > picture { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.3s var(--ease), transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="img"].is-in > img, [data-reveal="img"].is-in > picture { clip-path: inset(0 0 0 0); transform: none; }
[data-reveal="fade"] { transform: none; }
[data-lines] .ln { display: block; overflow: hidden; padding: .1em .12em .26em; margin: -.1em -.12em -.26em; }
[data-lines] .ln > span { display: inline-block; transform: translateY(135%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i) * .09s); }
[data-lines].is-in .ln > span, .is-in [data-lines] .ln > span { transform: none; }
[data-lines][data-reveal] { opacity: 1; transform: none; }

/* ——— instagram grid ——— */
.ig { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream); }
.ig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ig__hover { position: absolute; inset: auto 0 0; padding: 14px; font-size: 12px; letter-spacing: .08em; color: var(--ecru); background: linear-gradient(transparent, rgba(54, 43, 40, .6)); opacity: 0; transform: translateY(8px); transition: .5s var(--ease); }
.ig:hover img { transform: scale(1.05); }
.ig:hover .ig__hover { opacity: 1; transform: none; }

/* ——— Try Me ——— */
.to { --to-ink: var(--espresso); --to-soft: rgba(54, 43, 40, .76); --to-line: var(--line); --to-accent: var(--terracotta-ink); --to-panel: transparent; --to-chip: rgba(54, 43, 40, .05); --to-stage: var(--cream);
  display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; color: var(--to-ink); }
.to__controls { display: grid; gap: 22px; background: var(--to-panel); }
.to__group { border: 0; margin: 0; padding: 0 0 22px; border-bottom: 1px solid var(--to-line); min-width: 0; }
.to__legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.to__step { width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 11px; letter-spacing: 0; font-family: var(--serif); font-style: italic; }
.to__bodyrow { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: center; }
.to__figwrap { height: 96px; display: grid; place-items: end center; color: var(--to-accent); }
.to__fig { width: 54px; height: 96px; overflow: visible; }
.to__fig g { transition: transform .35s var(--ease); }
.to__sliders { display: grid; gap: 14px; }
.to__range { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13.5px; }
.to__range output { font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1; }
.to__range input { grid-column: 1 / -1; }
.to input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; }
.to input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(var(--to-accent), var(--to-accent)) 0 0 / var(--p, 50%) 100% no-repeat, var(--to-line); }
.to input[type=range]::-moz-range-track { height: 2px; background: var(--to-line); }
.to input[type=range]::-moz-range-progress { height: 2px; background: var(--to-accent); }
.to input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--to-accent); border: 3px solid var(--to-stage); box-shadow: 0 0 0 1px var(--to-accent); transition: transform .25s var(--ease); }
.to input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--to-accent); border: 3px solid var(--to-stage); }
.to input[type=range]:active::-webkit-slider-thumb { transform: scale(1.25); }
.to__preset { margin-top: 12px; font-size: 13px; color: var(--to-soft); }
.to__preset b { color: var(--to-ink); font-weight: 600; }
.to__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.to__skin, .to__pill, .to__prod { position: relative; cursor: pointer; }
.to__skin input, .to__pill input, .to__prod input { position: absolute; opacity: 0; pointer-events: none; }
.to__skin { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--to-chip); font-size: 13px; border: 1px solid transparent; transition: border-color .3s, background .3s; }
.to__dot { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.to__skin:has(input:checked) { border-color: var(--to-ink); background: transparent; }
.to__pill span { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--to-chip); font-size: 13px; border: 1px solid transparent; transition: .3s; }
.to__pill em { font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-left: 4px; }
.to__pill input:checked + span { border-color: var(--to-ink); background: transparent; }
.to__pill.is-soon { cursor: not-allowed; opacity: .55; }
.to input:focus-visible + span, .to input:focus-visible + .to__dot, .to input:focus-visible + .to__thumb { outline: 2px solid var(--to-accent); outline-offset: 2px; }
.to__products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.to__thumb { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #fff; border: 1px solid transparent; transition: border-color .3s, transform .4s var(--ease); }
.to__thumb img { width: 100%; height: 100%; object-fit: cover; }
.to__pname { display: block; margin-top: 6px; font-size: 12px; line-height: 1.3; }
.to__prod input:checked ~ .to__thumb { border-color: var(--to-ink); box-shadow: 0 0 0 1px var(--to-ink); }
.to__prod:hover .to__thumb { transform: translateY(-3px); }
.to__match { justify-self: start; display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; border: 0; border-radius: 999px; background: var(--to-accent); color: var(--ecru); font-size: 15px; letter-spacing: .05em; cursor: pointer; transition: transform .35s var(--ease), background .3s; }
.to__match svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.to__match:hover svg { transform: translateX(4px); }
.to.is-dirty .to__match { animation: to-pulse 1.8s var(--ease) infinite; }
@keyframes to-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--to-accent) 45%, transparent); } 60% { box-shadow: 0 0 0 12px transparent; } }

.to__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: clamp(20px, 3vw, 40px); align-items: end; }
.to__frame { position: relative; aspect-ratio: 3 / 4; max-height: min(78vh, 760px); width: 100%; overflow: hidden; background: var(--to-stage); border-radius: var(--to-radius, 4px); }
.to__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease); }
.to__frame[data-mode="demo"] .to__img { object-fit: cover; }
.to__img--look { z-index: 1; }
.to__frame.is-preview .to__img--look { opacity: 0; }
.to__frame.is-preview .to__img--base { filter: saturate(.85); }
.to__frame.has-compare .to__img--look { clip-path: inset(0 0 0 var(--cmp, 50%)); }
.to__frame.has-compare::after { content: ''; position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--cmp, 50%); width: 2px; margin-left: -1px; background: var(--ecru); box-shadow: 0 0 6px rgba(54, 43, 40, .2); }
.to__compare { position: absolute; z-index: 4; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.to__frame.has-compare { cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.to__frame.has-compare .to__img { -webkit-user-drag: none; pointer-events: none; }
.to .to__compare::-webkit-slider-runnable-track { height: 100%; background: none; }
.to .to__compare::-webkit-slider-thumb { width: 56px; height: 4000px; margin-top: -2000px; border: 0; box-shadow: none; background: none; }
.to .to__compare::-moz-range-thumb { width: 56px; height: 4000px; border: 0; background: none; }
.to .to__compare::-moz-range-track { height: 100%; background: none; }
.to .to__compare::-moz-range-progress { background: none; }
.to__knob { position: absolute; z-index: 5; left: var(--cmp, 50%); top: 58%; translate: -50% -26px; display: grid; justify-items: center; gap: 10px; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); }
.to__frame.has-compare .to__knob { opacity: 1; }
.to__frame.has-compare .to__knob-dot { pointer-events: auto; touch-action: none; cursor: grab; }
.to__frame:has(.to__compare:focus-visible) .to__knob-dot { outline: 2px solid var(--ecru); outline-offset: 3px; }
.to__knob-dot { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ecru); color: var(--terracotta-ink); box-shadow: 0 8px 22px -6px rgba(54, 43, 40, .45), 0 0 0 1px rgba(54, 43, 40, .08); transition: transform .3s var(--ease); }
.to__knob-dot svg { width: 26px; height: 26px; }
.to__knob-dot::before { content: ''; position: absolute; inset: -16px; border-radius: 50%; } /* larger touch target */
.to__knob-dot::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--ecru); animation: to-ring 2.2s var(--ease) infinite; }
@keyframes to-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.to__knob-label { padding: 5px 12px; border-radius: 999px; background: rgba(54, 43, 40, .78); color: var(--ecru); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; transition: opacity .4s; }
.to__frame.is-dragging .to__knob-dot { transform: scale(1.12); }
.to__frame.was-dragged .to__knob-label, .to__frame.was-dragged .to__knob-dot::after { opacity: 0; animation: none; }
.to__badge { position: absolute; z-index: 3; top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(249, 246, 240, .86); color: var(--espresso); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.to__frame[data-mode="demo"] .to__badge::after { content: ' · foto asli'; }
.to__frame.is-revealing .to__img--look { animation: to-wipe 1.2s var(--ease-in-out) both; }
.to[data-reveal="arch"] .to__frame.is-revealing .to__img--look { animation-name: to-arch; animation-duration: 1.3s; }
.to[data-reveal="sweep"] .to__frame.is-revealing .to__img--look { animation-duration: 1.4s; }
@keyframes to-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes to-arch { from { clip-path: ellipse(0% 0% at 50% 100%); } to { clip-path: ellipse(120% 140% at 50% 100%); } }
.to__meta { display: grid; gap: 12px; padding-bottom: 6px; }
.to__pcat { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--to-soft); margin-bottom: 6px; }
.to__ptitle { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; }
.to__who { font-size: 15px; line-height: 1.55; color: var(--to-soft); }
.to__note { font-size: 13px; padding: 10px 12px; border-left: 2px solid var(--to-accent); background: var(--to-chip); }
.to__colors { display: flex; gap: 8px; }
.to__colors:empty { display: none; }
.to__colors button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: box-shadow .3s; }
.to__colors button[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 0 0 2px var(--to-stage), 0 0 0 3px var(--to-ink); }
.to__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.to__buy { display: inline-flex; gap: 8px; align-items: center; padding: 13px 22px; border-radius: 999px; background: var(--to-ink); color: var(--to-stage); text-decoration: none; font-size: 14px; transition: transform .3s var(--ease); }
.to__buy:hover { transform: translateY(-2px); }
.to__share { padding: 12px 18px; border-radius: 999px; background: transparent; border: 1px solid var(--to-line); cursor: pointer; font-size: 13.5px; }
.to__disclaimer { font-size: 12.5px; line-height: 1.5; color: var(--to-soft); }

@media (max-width: 1100px) {
  .to__stage { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .to { grid-template-columns: 1fr; }
  .to__stage { order: -1; }
  .to__frame { max-height: 70vh; margin-inline: auto; }
  .to__products { grid-template-columns: repeat(6, 92px); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .to__prod { scroll-snap-align: start; }
}

/* ——— footer ——— */
.foot__lockup { width: min(320px, 70vw); margin-inline: auto; position: relative; }
.foot__wordmark { display: block; width: 100%; }
.foot__wordmark svg { width: 100%; height: auto; display: block; }
/* matches the master lockup: butterfly = 71.3% of the wordmark box, 12.1% above it, centred at x = 1000 */
.foot__perch { position: absolute; left: 49%; width: 71.3%; aspect-ratio: 405 / 299; bottom: 100%; margin-bottom: 12.1%; transform: translateX(-50%); }
.hk-rm .foot__perch { color: inherit; }
.foot__perch-static { display: none; }
.hk-rm .foot__perch-static { display: block; }
.foot__perch-static svg { width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
