/* ============================================================
   DHE homepage only
   ============================================================ */

/* Hero */
.h-hero { position: relative; min-height: min(86vh, 760px); padding: 0; display: flex; align-items: flex-end; background: var(--ink); color: var(--cream); overflow: hidden; }
.h-hero-img { position: absolute; top: 0; bottom: 0; right: 0; left: auto; width: 64%; height: 100%; object-fit: cover; object-position: 45% 25%; transform: scale(1.06); animation: heroZoom 1.6s cubic-bezier(.2,.7,.2,1) forwards; }
.h-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 36%, rgba(30,18,12,0.55) 50%, rgba(30,18,12,0) 70%), linear-gradient(0deg, rgba(30,18,12,0.6) 0%, rgba(30,18,12,0) 35%); }
.h-hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 80px; padding-bottom: 64px; }
.h-hero-title { font-size: clamp(50px, 9.4vw, 138px); font-weight: 900; font-stretch: 125%; line-height: 0.86; letter-spacing: -0.035em; margin-bottom: 26px; }
.h-line { display: block; overflow: hidden; }
.h-hero-title .h-line { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.h-hero-title .h-line:nth-child(2) { animation-delay: 0.12s; color: var(--rose); }
.h-hero-sub { font-size: clamp(16px, 1.6vw, 20px); max-width: 480px; color: rgba(248,238,220,0.88); margin-bottom: 30px; animation: fadeUp 0.8s 0.35s both; }
.h-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp 0.8s 0.5s both; }

.h-sticker { position: absolute; z-index: 3; right: 6%; top: 60px; width: 150px; height: 150px; display: grid; place-items: center; }
.h-sticker .h-sticker-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.h-sticker text { font-family: var(--font-body); font-size: 17px; font-weight: 800; letter-spacing: 0.08em; fill: var(--cream); }
.h-sticker-core { width: 78px; height: 78px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-stretch: 120%; font-size: 17px; transition: transform 0.2s ease; }

/* Marquee */
.h-marquee { background: var(--rose-deep); color: var(--white); overflow-x: auto; overflow-y: hidden; border-bottom: 2px solid var(--ink); scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; user-select: none; -webkit-user-select: none; }
.h-marquee::-webkit-scrollbar { display: none; }
.h-marquee-track { display: flex; width: max-content; }
.h-marquee-track span { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(22px, 3vw, 34px); padding: 14px 0; white-space: nowrap; display: inline-flex; align-items: center; }
.h-marquee-track span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); margin: 0 28px; flex-shrink: 0; }

/* Style rail */
.h-styles { background: var(--cream); padding: 80px 0 90px; }
.h-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.h-row-head h2 { font-size: clamp(40px, 6vw, 76px); font-weight: 900; font-stretch: 125%; letter-spacing: -0.03em; line-height: 0.95; }
.h-row-tools { display: flex; align-items: center; gap: 10px; }
.h-link { white-space: nowrap; font-weight: 700; margin-right: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.h-link:hover { color: var(--rose-deep); border-color: var(--rose-deep); }
.h-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; font-size: 20px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.h-arrow:hover { background: var(--ink); color: var(--cream); }
.h-rail { --edge: max(24px, calc((100vw - 1240px) / 2 + 24px)); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 6px var(--edge) 16px; scrollbar-width: none; }
.h-rail::-webkit-scrollbar { display: none; }
.h-rail-empty { color: var(--text-muted); }
.h-card { flex: 0 0 clamp(230px, 24vw, 300px); scroll-snap-align: start; position: relative; opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.h-card.in { opacity: 1; transform: none; }
.h-card-img { aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; border: 2px solid var(--ink); background: var(--white); }
.h-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.h-card:hover .h-card-img img { transform: scale(1.06); }
.h-price { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 2px solid var(--ink); transform: rotate(-4deg); transition: transform 0.2s ease; }
.h-card:hover .h-price { transform: rotate(3deg) scale(1.05); }
.h-card h3 { font-size: 20px; font-stretch: 112%; margin-top: 14px; }
.h-card-meta { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* Before and after */
.h-revamp { background: var(--ink); color: var(--cream); padding: 100px 0; }
.h-revamp-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.h-revamp h2 { font-size: clamp(40px, 5.5vw, 72px); font-weight: 900; font-stretch: 125%; letter-spacing: -0.03em; line-height: 0.95; margin-bottom: 22px; }
.h-revamp p { font-size: 17px; color: rgba(248,238,220,0.8); max-width: 440px; margin-bottom: 30px; }
.h-revamp-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.ba { --pos: 50%; position: relative; aspect-ratio: 4/5; border-radius: 26px; overflow: hidden; border: 3px solid var(--cream); user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--cream); transform: translateX(-50%); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--ink); border: 3px solid var(--cream); display: grid; place-items: center; font-size: 22px; font-weight: 900; transform: translate(-50%, -50%); transition: transform 0.2s ease; }
.ba.dragging .ba-handle span { transform: translate(-50%, -50%) scale(1.12); }
.ba-tag { position: absolute; top: 16px; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px; background: rgba(30,18,12,0.75); color: var(--cream); pointer-events: none; }
.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; background: var(--rose-deep); color: var(--white); }
.ba-caption { position: absolute; left: 16px; bottom: 16px; margin: 0; max-width: calc(100% - 32px); font-weight: 800; font-size: 15px; padding: 8px 16px; border-radius: 999px; background: var(--cream); color: var(--ink); pointer-events: none; }
.ba-caption:empty { display: none; }
.ba-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ba-tabs:empty { display: none; }
.ba-tab { font-family: var(--font-body); font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 999px; border: 2px solid rgba(248,238,220,0.4); background: transparent; color: var(--cream); cursor: pointer; transition: all 0.15s; }
.ba-tab:hover { border-color: var(--cream); }
.ba-tab.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.ba .ba-img { transition: opacity 0.35s ease; }
.ba.swapping .ba-img { opacity: 0; }
.h-note-quote::before { content: "\201C"; }
.h-note-quote::after { content: "\201D"; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Tiles */
.h-tiles { background: var(--white); padding: 100px 0; }
.h-tiles-title { font-size: clamp(40px, 6vw, 76px); font-weight: 900; font-stretch: 125%; letter-spacing: -0.03em; line-height: 0.95; margin-bottom: 40px; max-width: 800px; }
.h-tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.h-tile { position: relative; min-height: 340px; border-radius: 28px; border: 2px solid var(--ink); padding: 34px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.h-tile:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.h-tile h3 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; font-stretch: 122%; letter-spacing: -0.02em; margin-bottom: 10px; max-width: 60%; }
.h-tile p { max-width: 55%; font-size: 16px; }
.h-tile img { position: absolute; right: -20px; bottom: -30px; width: 42%; aspect-ratio: 3/4; object-fit: cover; border-radius: 22px; border: 2px solid var(--ink); transform: rotate(6deg); transition: transform 0.35s ease; }
.h-tile:hover img { transform: rotate(0deg) translateY(-10px); }
.h-tile-go { align-self: flex-start; font-weight: 800; background: var(--ink); color: var(--cream); padding: 10px 22px; border-radius: 999px; position: relative; z-index: 2; }
.h-tile > div { position: relative; z-index: 2; }
.h-tile-big { position: absolute; right: 30px; bottom: -40px; font-size: 240px; font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--rose-deep); transition: transform 0.35s ease; }
.h-tile:hover .h-tile-big { transform: rotate(12deg); }
.t-rose { background: var(--rose); }
.t-gold { background: var(--gold); }
.t-cream { background: var(--cream); }
.t-ink { background: var(--ink); color: var(--cream); }
.t-ink .h-tile-go { background: var(--rose-deep); color: var(--white); }

/* Doubi note */
.h-note { background: var(--cream); padding: 100px 0; }
.h-note-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.h-note-img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 60% 20%; border-radius: 50%; border: 3px solid var(--ink); }
.h-note-quote { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 18px; }
.h-note-name { font-weight: 800; color: var(--rose-deep); font-size: 18px; margin-bottom: 26px; }

/* Motion */
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .h-hero { min-height: 84vh; }
  .h-hero-img { width: 100%; object-position: 40% 20%; }
  .h-hero::after { background: linear-gradient(0deg, rgba(30,18,12,0.92) 0%, rgba(30,18,12,0.45) 55%, rgba(30,18,12,0.15) 100%); }
  .h-hero-inner { padding-bottom: 44px; }
  .h-sticker { width: 110px; height: 110px; top: 24px; right: 16px; }
  .h-sticker-core { width: 58px; height: 58px; font-size: 14px; }
  .h-row-tools .h-arrow { display: none; }
  .h-styles, .h-revamp, .h-tiles, .h-note { padding: 64px 0; }
  .h-revamp-grid, .h-note-grid { grid-template-columns: 1fr; gap: 36px; }
  .h-tile-grid { grid-template-columns: 1fr; }
  .h-tile { min-height: 300px; padding: 26px; }
  .h-tile h3, .h-tile p { max-width: 58%; }
  .h-note-img { max-width: 240px; }
  .h-tile-big { font-size: 150px; right: 18px; bottom: -24px; opacity: 0.9; }
  .h-row-head h2 { font-size: 44px; }
}



/* "Your own style" card in the styles row */
.h-card-own .h-card-img { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--white); border-style: dashed; padding: 24px; text-align: center; }
.h-own-plus { font-family: var(--font-display); font-weight: 900; font-size: 90px; line-height: 1; color: var(--rose-deep); transition: transform 0.3s ease; }
.h-own-text { font-weight: 700; font-size: 16px; max-width: 200px; }
.h-card-own:hover .h-own-plus { transform: rotate(90deg); }

/* Shop essentials row */
.h-shop { background: var(--white); padding: 80px 0 90px; border-top: 2px solid var(--ink); }
.h-shop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -10px 0 24px; }
.h-chip { font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--cream); transition: background 0.15s, color 0.15s; }
.h-chip:hover { background: var(--ink); color: var(--cream); }
.h-card-product .h-card-img { aspect-ratio: 1; background: var(--cream); }
.h-card-product .h-price { background: var(--rose-deep); color: var(--white); }

@media (max-width: 860px) {
  .h-hero-title { font-size: clamp(40px, 11.6vw, 72px); }
  .h-shop { padding: 56px 0 64px; }
  .h-card { flex-basis: 64vw; }
  .h-card-product { flex-basis: 46vw; }
  /* The four boxes: a compact 2 by 2 grid on phones instead of four tall blocks */
  .h-tile-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .h-tile { min-height: 230px; padding: 16px; border-radius: 20px; }
  .h-tile h3 { font-size: 20px; max-width: 100%; margin-bottom: 6px; }
  .h-tile p { display: none; }
  .h-tile img { width: 62%; right: -12px; bottom: -18px; border-radius: 14px; }
  .h-tile-go { padding: 7px 14px; font-size: 13px; }
  .h-tile-big { font-size: 120px; right: 10px; bottom: -18px; }
  .h-tiles-title { font-size: 36px; margin-bottom: 24px; }
}
@media (max-width: 860px) {
  .h-row-head { flex-wrap: wrap; align-items: flex-end; gap: 10px; }
  .h-row-head h2 { font-size: 40px; }
  .h-row-tools { margin-left: auto; }
}
