/* ================= shared section type ================= */
.sec-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 12px; }

/* ================= HERO ================= */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(24px, 4vw, 56px);
  align-items: center; padding: 78px 0 40px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.hero-crest { width: clamp(64px, 6vw, 88px); height: auto; margin-bottom: 14px; }
.hero-title { font-family: "Gloock", serif; font-weight: 400; font-size: clamp(48px, 6.4vw, 92px); line-height: .95; letter-spacing: -.01em; margin: 0; white-space: nowrap; }
.hero-tagrow { display: flex; align-items: center; gap: 16px; margin: 18px 0 16px; }
.vrule { width: 1px; align-self: stretch; min-height: 40px; background: currentColor; opacity: .5; }
.hero-tag { margin: 0; display: grid; font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.8; }
:root[lang="ar"] .hero-tag { letter-spacing: 0; font-size: 15px; }
.hero-sub { margin: 0 0 22px; max-width: 42ch; color: var(--text-2); }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-price { font-family: "Gloock", serif; font-size: 21px; }
.hero-price > span:first-child { font-family: var(--f-sans); font-size: 13px; color: var(--stone); margin-inline-end: 4px; }
.hero-price small { font-family: var(--f-sans); font-size: 12.5px; color: var(--stone); }
.hero-points { list-style: none; margin: 28px 0 0; padding: 16px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 28px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); font-size: 12.5px; color: var(--stone); }
.hero-points li { display: grid; }
.hero-points b { font-family: "Gloock", serif; font-weight: 400; font-size: 16px; color: var(--green); }
:root[lang="ar"] .hero-points b { font-family: var(--f-display); }

/* the studio the hoodie stands in */
.stage {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1 / 1.04; border-radius: 6px;
  background:
    radial-gradient(80% 60% at 50% 34%, var(--stage-1) 0%, transparent 70%),
    linear-gradient(180deg, var(--stage-2), var(--stage-3));
  box-shadow: inset 0 0 0 1px rgb(18 64 58 / .1);
}
.stage::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 14%; z-index: 0; background: radial-gradient(50% 100% at 50% 100%, rgb(60 45 25 / .18), transparent 70%); pointer-events: none; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 1s ease; background: radial-gradient(75% 60% at 50% 38%, #1a2c27 0%, #0a1311 72%); }
.stage.is-night::before { opacity: 1; }
.stage-hoodie { position: absolute; z-index: 1; left: 50%; bottom: -1px; width: 92%; transform: translateX(-50%); }
.stage-top { position: absolute; z-index: 3; top: 14px; inset-inline: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stage-note { position: absolute; z-index: 3; bottom: 12px; inset-inline: 0; margin: 0; text-align: center; font-size: 12px; color: var(--cream-hi); text-shadow: 0 1px 6px rgb(0 0 0 / .5); opacity: .9; pointer-events: none; transition: opacity .6s; }
.stage-note.gone { opacity: 0; }

/* ================= BUILT IN LAYERS ================= */
.layers { position: relative; height: 240vh; }
.layers-sticky { position: sticky; top: 0; height: 100svh; display: grid; align-content: start; overflow: hidden; padding-top: 70px; }
.layers-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; max-width: 46ch; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 12px 14px; border-radius: 8px; opacity: .45; transition: opacity .45s ease, background .45s ease; }
.steps li.is-on { opacity: 1; background: color-mix(in srgb, var(--champ-hi) 70%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1px currentColor; }
.steps li.is-on .step-n { background: var(--green); color: var(--champ); box-shadow: none; }
.steps h3 { font-family: var(--f-display); font-weight: 400; font-size: 20px; margin: 0 0 2px; line-height: 1.15; }
.steps p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.layers-bar { margin-top: 18px; height: 2px; background: color-mix(in srgb, var(--line) 60%, transparent); border-radius: 2px; max-width: 46ch; overflow: hidden; }
.layers-bar span { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }
:root[dir="rtl"] .layers-bar span { transform-origin: right; }
.explode { perspective: 1800px; perspective-origin: 50% 25%; display: grid; place-items: center; }
.ex-scene {
  --p: 0; --l1: 0; --l2: 0; --l3: 0;
  position: relative; width: min(100%, 500px);
  transform-style: preserve-3d;
  transform: translateY(calc(var(--p) * 8%)) rotateX(calc(var(--p) * 42deg)) rotateZ(calc(var(--p) * -16deg)) scale(calc(1 - var(--p) * .16));
}
.ex-base { width: 100%; height: auto; filter: drop-shadow(0 34px 40px rgb(18 64 58 / .22)); }
.ex-print { position: absolute; left: 29.55%; top: 34.47%; width: 40.89%; aspect-ratio: 488 / 752; transform-style: preserve-3d; }
.ex-layer { position: absolute; inset: 0; transform-style: preserve-3d; }
.ex-layer .lay { filter: drop-shadow(0 calc(var(--lift) * 18px) calc(var(--lift) * 14px) rgb(14 39 35 / calc(var(--lift) * .35))); }
.ex-l1 { --lift: var(--l1); transform: translateZ(calc(var(--l1) * 70px)); }
.ex-l2 { --lift: var(--l2); transform: translateZ(calc(var(--l2) * 140px)); }
.ex-l3 { --lift: var(--l3); transform: translateZ(calc(var(--l3) * 210px)); }

/* ================= THE FIKR EDITION ================= */
.edition { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: 64px 0; }
.plate-wrap { perspective: 1400px; justify-self: center; width: min(400px, 100%); }
.plate {
  --rx: 6deg; --ry: -12deg; --mx: 30%; --my: 20%; --frame-inset: 8px; --frame-size: 48px;
  position: relative; aspect-ratio: 4 / 5; padding: 14%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #f7f1e3, #e3d6b9 70%, #d6c6a3);
  border-radius: 6px; color: var(--pine);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.15,.8,.2,1);
  box-shadow: 0 50px 70px -40px rgb(11 43 39 / .6), 0 2px 0 #c9b88f, 0 0 0 1px rgb(18 64 58 / .18);
  overflow: hidden;
}
.plate.frame::before { border-image-source: url("/assets/frame.svg"); }
.plate-crest { width: 46%; filter: drop-shadow(0 10px 10px rgb(11 43 39 / .2)); }
.plate-word { font-family: "Gloock", serif; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; margin-top: 16px; }
.plate-rule { width: 40%; height: 1px; background: currentColor; opacity: .5; margin: 14px 0; }
.plate-tag { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.8; }
:root[lang="ar"] .plate-tag { letter-spacing: 0; font-size: 13px; }
.plate-est { position: absolute; bottom: 9%; font-size: 10.5px; letter-spacing: .3em; opacity: .75; }
.plate-shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx) var(--my), rgb(255 255 255 / .45), transparent 45%); mix-blend-mode: soft-light; }
.edition-info .lede { margin-bottom: 22px; color: var(--text-2); }
.specs { margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.specs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { padding-inline-end: 16px; }
.specs dt { font-size: 12.5px; color: var(--stone); }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.specs dd.big { font-family: "Gloock", serif; font-weight: 400; font-size: 28px; line-height: 1.1; }
.specs dd.big small { font-family: var(--f-sans); font-size: 13px; color: var(--stone); }

/* ================= MAKE IT YOURS ================= */
.custom { padding: 64px 0; background: color-mix(in srgb, var(--champ-lo) 55%, transparent); border-block: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.custom-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 26px; }
.custom-head .lede { color: var(--text-2); }
.opts { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.opt { display: grid; grid-template-columns: 130px 1fr minmax(150px, 220px); align-items: center; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.opt-price { font-family: "Gloock", serif; font-size: clamp(36px, 4vw, 52px); line-height: 1; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 2px; }
.opt-price .plus { font-size: .62em; align-self: center; }
.opt-price small { font-family: var(--f-sans); font-size: 12.5px; color: var(--stone); margin-inline-start: 6px; }
.opt h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; margin: 0; line-height: 1.15; }
.opt p { margin: 3px 0 0; color: var(--text-2); font-size: 14px; }
.opt-sample { justify-self: end; font-family: "Gloock", serif; font-size: 34px; line-height: 1; padding: 14px 20px; border-radius: 10px; background: #d9cdb6; width: 100%; text-align: center; box-shadow: inset 0 0 0 1px rgb(18 64 58 / .12); }
.sample-emb { color: var(--teal); text-shadow: 0 1px 0 #0b5c62, 0 2px 0 #0b5c62, 0 3px 4px rgb(0 0 0 / .25); background-image: radial-gradient(circle at 1px 1px, rgb(18 64 58 / .1) 1px, transparent 1.5px); background-size: 6px 6px; }
.sample-ref { color: transparent; background-image: linear-gradient(110deg, #8fa19c 20%, #ffffff 45%, #8fa19c 70%), linear-gradient(#18241f, #18241f); background-size: 250% 100%, 100% 100%; background-clip: text, border-box; -webkit-background-clip: text, border-box; animation: sheen 3.6s linear infinite; }
@keyframes sheen { from { background-position: 120% 0, 0 0; } to { background-position: -120% 0, 0 0; } }
.sample-prt { color: var(--pine); }

/* ================= QUIET BY DAY ================= */
.night { background: radial-gradient(70% 90% at 15% 50%, #143a34, transparent 70%), var(--pine-2); color: var(--on-dark); padding: 56px 0; }
.night-inner { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.night-photo { margin: 0; }
.night-photo img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 45%; border-radius: 6px; }
.night-photo figcaption { margin-top: 8px; font-size: 12px; color: var(--on-dark-dim); }
.night-copy h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; margin: 0 0 14px; color: var(--cream-hi); max-width: 18ch; }
.night-copy > p { margin: 0 0 24px; color: var(--on-dark-dim); max-width: 54ch; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgb(234 223 198 / .18); }
.facts div { padding: 14px 16px 0 0; }
.facts dt { font-family: "Gloock", serif; font-size: 18px; color: var(--cream-hi); }
:root[lang="ar"] .facts dt { font-family: var(--f-display); }
.facts dd { margin: 4px 0 0; font-size: 13px; color: var(--on-dark-dim); }

/* ================= MOTTO ================= */
.motto { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 32px); padding: 40px 0; }
.motto img { width: 56px; height: auto; }
.motto-rule { width: 1px; height: 52px; background: var(--green); opacity: .45; }
.motto-name { font-family: "Gloock", serif; font-size: clamp(30px, 3.4vw, 44px); margin: 0; line-height: 1; }
.motto-line { margin: 0; display: grid; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.8; }
:root[lang="ar"] .motto-line { letter-spacing: 0; font-size: 14px; }

/* ================= dark theme ================= */
:root[data-theme="dark"] .stage::after { background: radial-gradient(50% 100% at 50% 100%, rgb(0 0 0 / .35), transparent 70%); }
:root[data-theme="dark"] .hero-crest, :root[data-theme="dark"] .motto img, :root[data-theme="dark"] .brand img { filter: brightness(0) invert(.88) sepia(.35); }
:root[data-theme="dark"] .opt-sample { background-color: #24342e; }
:root[data-theme="dark"] .sample-prt { color: var(--cream); }

/* ================= phone ================= */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 70px 0 28px; gap: 22px; }
  .hero-copy { text-align: center; display: grid; justify-items: center; }
  .hero-crest { display: none; }
  .hero-tagrow .vrule { display: none; }
  .hero-points { grid-template-columns: repeat(3, 1fr); gap: 4px 14px; text-align: center; justify-content: stretch; width: 100%; }
  .hero-actions { justify-content: center; }
  .stage { aspect-ratio: 1 / 1; }
  .layers { height: 240vh; }
  .layers-sticky { align-items: start; padding-top: 70px; }
  .layers-grid { grid-template-columns: 1fr; gap: 6px; }
  .steps { gap: 0; position: relative; min-height: 96px; }
  .steps li { position: absolute; inset: 0 0 auto 0; opacity: 0; }
  .steps li.is-on { opacity: 1; }
  .ex-scene { width: min(92vw, 420px); }
  .edition { grid-template-columns: 1fr; padding: 48px 0; }
  .custom-head { grid-template-columns: 1fr; }
  .opt { grid-template-columns: 96px 1fr; gap: 12px 16px; }
  .opt-sample { grid-column: 1 / -1; font-size: 28px; }
  .opt-price { font-size: 34px; }
  .night-inner { grid-template-columns: 1fr; }
  .night-photo { max-width: 360px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { padding: 12px 0; border-bottom: 1px solid rgb(234 223 198 / .12); }
  .motto { flex-wrap: wrap; text-align: center; gap: 12px 16px; }
  .motto-rule { display: none; }
  .motto-line { width: 100%; }
}
@media (max-width: 400px) { .seg button { padding: 7px 12px; } .light-switch { font-size: 12.5px; } }
