/* =========================================================
   Homepage layout and motion. Loaded after style.css.
   ========================================================= */
.home .site-head { position: fixed; inset: 0 0 auto; background: transparent; backdrop-filter: none; transition: background .4s, border-color .4s; }
.home .site-head.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.home h2 em, .home .days-title em, .home .founders-title em { font-style: normal; color: var(--gray); }

/* ---------- Hero ring ---------- */
.home .hero { position: relative; display: block; height: 100svh; min-height: 620px; padding: 0; overflow: hidden;
  background: color-mix(in oklab, var(--tint) 10%, var(--bg)); transition: background 1.2s ease; }
.hero-word { position: absolute; inset-inline: 0; top: 13%; margin: 0; text-align: center; pointer-events: none; user-select: none;
  font: 800 min(27vw, 46svh)/1 var(--head); letter-spacing: -.04em; white-space: nowrap;
  color: color-mix(in oklab, var(--tint) 26%, var(--bg-2)); transition: color 1.2s ease, opacity .6s, transform .9s var(--ease); }
.hero.is-open .hero-word { opacity: .55; transform: scale(.96); }
.hero-corners { position: absolute; z-index: 20; inset: 92px var(--gutter) auto; display: flex; justify-content: space-between; pointer-events: none; }
.hero-corners p { margin: 0; }
.hero-corner-r { text-align: right; }
.hero-side { position: absolute; z-index: 20; left: 22px; bottom: 22%; margin: 0; rotate: -90deg; transform-origin: 0 0; white-space: nowrap; color: var(--gray); }
.hero-row { position: absolute; inset: 0; z-index: 10; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hero-row.is-dragging { cursor: grabbing; }
.hero-row.is-open { cursor: default; }
.hero-shadow { position: absolute; left: 50%; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(20,20,20,.18), rgba(20,20,20,0)); filter: blur(6px); pointer-events: none; }
.hero-piece { position: absolute; left: 50%; top: 50%; display: block; padding: 0; will-change: transform, opacity; -webkit-tap-highlight-color: transparent; }
.hero-piece:focus-visible { outline: 2px solid var(--sky); outline-offset: 6px; border-radius: 12px; }
.hero-bob { position: relative; width: 100%; height: 100%; will-change: transform; }
.hero-bob img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: opacity .6s ease;
  filter: drop-shadow(0 18px 22px rgba(20,20,20,.10)); }
.hero-dots { position: absolute; left: 0; right: 0; z-index: 30; text-align: center; transition: opacity .4s; }
.hero-row.is-open .hero-dots { opacity: 0; pointer-events: none; }
.hero-dots > div { display: flex; justify-content: center; gap: 4px; }
.hero-dots button { padding: 8px 4px; }
.hero-dots button span { display: block; width: 6px; height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 22%, transparent); transition: width .4s var(--ease), background .4s; }
.hero-dots button.on span { width: 22px; background: var(--ink); }
.hero-dots p { margin: 10px 0 0; color: var(--gray); }
.hero-close { position: absolute; left: 50%; top: 50%; z-index: 130; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  background: var(--white); display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(20,20,20,.3);
  opacity: 0; pointer-events: none; transition: opacity .4s, transform .6s var(--ease); }
.hero-close.on { opacity: 1; pointer-events: auto; }
.hero-details { position: absolute; z-index: 125; }
.hero-inner { transition: opacity .6s ease .1s, transform .8s var(--ease) .1s; display: grid; gap: 14px; }
.hero-inner p { margin: 0; }
.hd-kind { color: var(--gray); }
.hd-name { margin: -6px 0 0; font: 500 clamp(30px, 3.2vw, 44px)/1.05 var(--head); letter-spacing: -.02em; }
.hd-line { font-size: 15px; max-width: 34ch; }
.hd-line.scripture .eyebrow { font-family: var(--body); font-style: normal; color: var(--gray); }
.hd-swatches { display: flex; align-items: center; gap: 10px; }
.hd-cname { margin-left: 6px; font-size: 13px; color: var(--gray); }
.hd-sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.hd-size { position: relative; padding: 6px 8px; font: 500 12px/1 var(--body); letter-spacing: .08em; color: var(--gray); }
.hd-size span { position: absolute; left: 8px; right: 8px; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .4s var(--ease); }
.hd-size.on { color: var(--ink); }
.hd-size.on span { transform: scaleX(1); }
.hd-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 6px; }
.hd-add { position: relative; padding: 4px 0; font-weight: 600; }
.hd-uline { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform-origin: left; transition: transform .5s var(--ease); }
.hd-add:hover .hd-uline { transform: scaleX(.4); }
.hd-price { font: 400 14px var(--mono); }
.hd-more { justify-self: start; }
.hero-bottom { position: absolute; z-index: 20; inset: auto var(--gutter) 26px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; }
.hero-num { display: flex; align-items: center; gap: 16px; }
.hero-n { font: 300 clamp(44px, 5vw, 64px)/1 var(--head); letter-spacing: -.04em; }
.hero-bar { width: 1px; height: 40px; background: var(--line); }
.hero-what { color: var(--gray); }
.hero-scroll { color: var(--ink); }
.hero-scroll span { display: inline-block; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.hero-count { justify-self: end; font-family: var(--mono); letter-spacing: .1em; }

/* ---------- How it's made ---------- */
.made { position: relative; }
.made-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg); }
.made-grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(60% 60% at 60% 50%, #000, transparent); }
.made-piece { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.made-piece img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(20,20,20,.12)); }
.made-lens { position: absolute; left: 0; top: 0; z-index: 20; overflow: hidden; border-radius: 50%; opacity: 0; will-change: transform;
  background: var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 0 0 7px rgba(255,255,255,.35), 0 24px 50px -10px rgba(20,20,20,.35); }
.made-lens img { position: absolute; left: 0; top: 0; max-width: none; }
.made-lens-mac { width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.made-glass { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.45), rgba(255,255,255,0) 45%); }
.made-full { position: absolute; inset: 0; z-index: 15; visibility: hidden; overflow: hidden; }
.made-full img { width: 100%; height: 100%; object-fit: cover; }
.made-words { position: absolute; z-index: 30; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(400px, 36vw); }
.made-card { border-radius: 24px; padding: 24px; transition: background .7s, box-shadow .7s, backdrop-filter .7s; }
.made-card.is-deep { background: color-mix(in oklab, var(--bg) 85%, transparent); box-shadow: 0 20px 60px -24px rgba(20,20,20,.4); backdrop-filter: blur(24px); }
.made-card > .eyebrow { color: var(--gray); margin: 0 0 18px; }
.made-num { display: flex; align-items: baseline; gap: 8px; }
.made-num span:first-child { font: 300 clamp(40px, 4vw, 56px)/1 var(--head); letter-spacing: -.04em; }
.made-text h2 { margin: 6px 0 12px; font: 500 clamp(34px, 3.6vw, 52px)/1.02 var(--head); letter-spacing: -.02em; }
.made-text p { margin: 0 0 14px; font-size: 15px; max-width: 36ch; }
.made-on { margin-top: 18px !important; }
.made-progress { position: absolute; z-index: 30; left: var(--gutter); right: var(--gutter); bottom: 26px; height: 1px; background: var(--line); }
.made-progress div { height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Size wall ---------- */
.fitwall { padding: clamp(80px, 11vw, 160px) var(--gutter); }
.sz-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1320px; margin: 0 auto; }
.sz-copy > .eyebrow { color: var(--gray); margin: 0 0 18px; }
.sz-copy h2 { margin: 0 0 20px; font: 500 clamp(40px, 5vw, 76px)/1 var(--head); letter-spacing: -.03em; }
.sz-text { max-width: 42ch; color: color-mix(in oklab, var(--ink) 75%, transparent); }
.sz-read { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0 14px; border-top: 1px solid var(--line); }
.sz-read > div { padding: 14px 0; border-right: 1px solid var(--line); padding-left: 14px; }
.sz-read > div:first-child { padding-left: 0; }
.sz-read > div:last-child { border-right: 0; }
.sz-read .eyebrow { color: var(--gray); margin: 0 0 6px; }
.sz-v { margin: 0; font: 400 clamp(24px, 2.4vw, 34px)/1 var(--head); letter-spacing: -.02em; }
.sz-room { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; font-size: 13px; color: var(--gray); }
.sz-meter { width: 80px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.sz-meter span { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.sz-pick .eyebrow { color: var(--gray); }
.sz-pick > div { display: flex; gap: 10px; margin-top: 10px; }
.sz-pick button { display: grid; justify-items: center; gap: 4px; width: 84px; padding: 8px 6px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); transition: border-color .3s, transform .3s; }
.sz-pick button img { width: 52px; height: 52px; object-fit: contain; }
.sz-pick button.on { border-color: var(--ink); }
.sz-pick button:hover { transform: translateY(-2px); }
.sz-wallwrap { position: relative; }
.sz-wall { position: relative; aspect-ratio: 1 / 1.02; border-radius: 28px; background: color-mix(in oklab, var(--bg-2) 70%, var(--white)); overflow: hidden; cursor: ew-resize; touch-action: pan-y; }
.sz-wall:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }
.sz-ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 14%; border-top: 1px solid var(--line); }
.sz-tick { position: absolute; top: 0; width: 1px; height: 10px; background: color-mix(in oklab, var(--ink) 25%, transparent); }
.sz-tick.l { height: 18px; }
.sz-tick span { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); }
.sz-piece { position: absolute; left: 50%; bottom: 14%; transform-origin: 50% 100%; }
.sz-piece img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(20,20,20,.12)); }
.sz-band { position: absolute; left: 50%; z-index: 5; transform: translateX(-50%); height: 0; pointer-events: none; }
.sz-edge { position: absolute; top: -70px; height: 140px; width: 0; border-left: 1px solid var(--ink); }
.sz-edge:first-child { left: 0; }
.sz-edge:nth-child(2) { right: 0; }
.sz-arrow { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); }
.sz-tag { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 500 12px var(--mono); }
.sz-knob { position: absolute; right: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 14px -4px rgba(20,20,20,.35); }
.sz-ghost { position: absolute; left: 50%; transform: translateX(-50%); height: 0; pointer-events: none; transition: width .5s var(--ease); }
.sz-ghost span:not(.eyebrow) { position: absolute; top: 0; height: 160px; border-left: 1px dashed color-mix(in oklab, var(--ink) 35%, transparent); }
.sz-ghost span:first-child { left: 0; }
.sz-ghost span:nth-child(2) { right: 0; }
.sz-ghost-t { position: absolute; left: 100%; top: -4px; margin-left: 10px; white-space: nowrap; color: var(--gray); }
.sz-name { position: absolute; left: 22px; top: 20px; }
.sz-drag { position: absolute; right: 22px; top: 20px; margin: 0; color: var(--gray); }

/* ---------- Worn every day ---------- */
.days { padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(40px, 6vw, 80px); max-width: 1440px; margin: 0 auto; }
.days > .eyebrow { color: var(--gray); }
.days-title { margin: 14px 0 clamp(36px, 5vw, 64px); max-width: 18ch; font: 500 clamp(40px, 6.4vw, 100px)/.98 var(--head); letter-spacing: -.035em; }
.days-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 28px); align-items: start; }
.days-grid figure { margin: 0; }
.days-pic { display: block; overflow: hidden; border-radius: 22px; background: var(--bg-2); }
.days-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; }
.days-grid figcaption { margin-top: 10px; }
.days-a { grid-column: 1 / span 8; } .days-a .days-pic { aspect-ratio: 16 / 10; }
.days-b { grid-column: 9 / span 4; margin-top: 18% !important; } .days-b .days-pic { aspect-ratio: 3 / 4; }
.days-c { grid-column: 2 / span 5; } .days-c .days-pic { aspect-ratio: 4 / 5; }
.days-d { grid-column: 8 / span 5; display: grid; gap: 28px; padding-top: 12%; }
.days-d p { margin: 0; max-width: 40ch; color: color-mix(in oklab, var(--ink) 75%, transparent); }
.days-d .days-pic { aspect-ratio: 4 / 3; }

/* ---------- Shop ---------- */
.home .shop { padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(80px, 10vw, 140px); max-width: 1440px; margin: 0 auto; }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.shop-head h2 { margin: 0; font: 400 clamp(64px, 11vw, 168px)/.85 var(--head); letter-spacing: -.05em; }
.shop-head sup { font-size: 13px; margin-left: 10px; vertical-align: top; position: relative; top: .6em; letter-spacing: .04em; }
.shop-head p { margin: 0; max-width: 34ch; font-size: 14px; color: var(--gray); }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 24px; }
.scard-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.08; border-radius: 22px; overflow: hidden; }
.scard-wash { position: absolute; inset: 0; transition: background 1s ease; }
.scard-piece { position: relative; aspect-ratio: 1; transition: transform .8s var(--ease); }
.scard-piece img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(20,20,20,.12)); }
.scard-pic:hover .scard-piece { transform: translateY(-8px) scale(1.035) rotate(-1deg); }
.scard-kind { position: absolute; left: 18px; top: 16px; color: var(--gray); }
.scard-qv { position: absolute; right: 16px; top: 12px; padding: 7px 12px; border-radius: 999px; background: var(--white); opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .4s var(--ease); }
.scard-pic:hover .scard-qv, .scard-pic:focus-visible .scard-qv { opacity: 1; transform: none; }
.scard-meta { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-top: 14px; }
.scard-meta h3 { margin: 0; font: 500 20px/1.2 var(--head); letter-spacing: -.01em; }
.scard-meta h3 a:hover { color: var(--sky); }
.scard-c { margin: 2px 0 0; font-size: 13px; color: var(--gray); }
.scard-meta .mono { color: var(--ink); font-size: 13px; }
.scard-dots { display: flex; gap: 6px; margin-top: 10px; min-height: 14px; }
.scard-dots .dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); outline: 1px solid transparent; outline-offset: 2px; transition: outline-color .3s; }
.scard-dots .dot.on { outline-color: var(--ink); }

/* Quick view that grows out of the card */
.qv2 { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; padding: 20px; }
.qv2-veil { position: absolute; inset: 0; background: rgba(20,20,20,.28); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.qv2-box { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; width: min(940px, 100%); max-height: calc(100svh - 40px); overflow: auto; border-radius: 28px;
  opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .7s var(--ease), background .8s; }
.qv2.shown .qv2-veil, .qv2.shown .qv2-box { opacity: 1; transform: none; }
.qv2-stage { display: grid; place-items: center; padding: 40px; min-height: 420px; transition: background .8s; }
.qv2-pic { position: relative; width: 100%; aspect-ratio: 1; }
.qv2-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s; filter: drop-shadow(0 18px 22px rgba(20,20,20,.12)); }
.qv2-info { position: relative; padding: 40px 36px; display: grid; align-content: center; gap: 12px; }
.qv2-info h2 { margin: 0 0 4px; font: 500 34px/1.05 var(--head); letter-spacing: -.02em; }
.qv2-info p { margin: 0; }
.qv2-info > .eyebrow { color: var(--gray); }
.qv2-close { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.qv2-more { margin-top: 6px !important; }

/* ---------- Founders ---------- */
.home .founders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(60px, 8vw, 120px) var(--gutter); background: none; max-width: 1440px; margin: 0 auto; }
.founders-pic { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; }
.founders-pic img { width: 100%; height: 100%; object-fit: cover; }
.founders-copy > .eyebrow { color: var(--gray); }
.founders-title { margin: 12px 0 24px; font: 500 clamp(36px, 4.6vw, 68px)/1 var(--head); letter-spacing: -.03em; }
.founders-copy p:not(.eyebrow) { max-width: 46ch; color: color-mix(in oklab, var(--ink) 78%, transparent); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .sz-in { grid-template-columns: 1fr; }
  .made-words { width: min(380px, 44vw); }
}
@media (max-width: 820px) {
  .hero-side { display: none; }
  .hero-corners { inset: 84px 16px auto; }
  .hero-bottom { inset: auto 16px 18px; grid-template-columns: 1fr auto; }
  .hero-scroll { display: none; }
  .made-words { left: 16px; right: 16px; top: auto; bottom: 46px; transform: none; width: auto; }
  .made-card { padding: 18px; }
  .made-text h2 { font-size: 32px; }
  .made-text p { font-size: 14px; }
  .days-grid { grid-template-columns: 1fr 1fr; }
  .days-a { grid-column: 1 / -1; }
  .days-b, .days-c { grid-column: auto; margin-top: 0 !important; }
  .days-d { grid-column: 1 / -1; padding-top: 0; }
  .shop-head { flex-direction: column; align-items: start; }
  .qv2-box { grid-template-columns: 1fr; }
  .qv2-stage { min-height: 0; padding: 28px 28px 0; }
  .qv2-pic { max-width: 300px; }
  .qv2-info { padding: 24px; }
  .home .founders { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .scard-meta { flex-direction: column; gap: 2px; }
  .scard-meta h3 { font-size: 16px; }
  .scard-qv { display: none; }
  .sz-read .sz-v { font-size: 22px; }
  .sz-pick button { width: 72px; }
  .sz-ghost-t { display: none; }
  .hero-word { top: 18%; }
  .hero-corner-r { display: none; }
  .hero-corners { inset: 78px 16px auto; }
  .sz-tick:not(.k8) span { display: none; }
}
