/* ==========================================================================
   SEMEN RETENTION — cinematic luxury brand stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root{
  --bg:        #0a0a0a;
  --bg-elev:   #111110;
  --panel:     #141312;
  --ink:       #efece7;
  --ink-70:    rgba(239,236,231,.7);
  --muted:     #a6a196;
  --gold:      #c8aa6a;
  --gold-soft: rgba(200,170,106,.45);
  --gold-dim:  rgba(200,170,106,.18);
  --hair:      rgba(239,236,231,.12);
  --hair-strong: rgba(239,236,231,.22);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', 'Segoe UI', sans-serif;

  --header-h: 92px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ background: var(--bg); }
html, body{ height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
button{ font: inherit; color: inherit; background:none; border:none; cursor:pointer; }
::selection{ background: var(--gold-dim); color: var(--ink); }

.italic{ font-style: italic; color: var(--gold); font-family: var(--serif); }

/* ---------- reveal-on-load / on-scroll ---------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 64px);
  z-index: 100;
  background: linear-gradient(to bottom, rgba(10,10,10,.55), transparent);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: rgba(10,10,10,.86);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom-color: var(--hair);
}
.brand{
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .12em;
  font-weight: 500;
  padding-left: .12em; /* optical centering for tracking */
}
.main-nav{ display: flex; gap: clamp(22px, 3vw, 46px); }
.main-nav a{
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--ink-70);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active{ color: var(--ink); border-bottom-color: var(--gold); }

.header-actions{ display: flex; align-items: center; gap: 22px; }
.icon-btn{
  position: relative;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  opacity: .85;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover{ opacity: 1; transform: translateY(-1px); }
.icon-btn svg{ width: 26px; height: 26px; }
.cart-count{
  position: absolute; top: -6px; right: -8px;
  min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0a0a;
  font-family: var(--sans); font-size: 9.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  opacity: 0; transform: scale(.6);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cart-count.is-visible{ opacity: 1; transform: scale(1); }

.menu-btn{ display: none; flex-direction: column; gap: 5px; width: 22px; }
.menu-btn span{ display:block; height:1px; background: var(--ink); width: 100%; transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* mobile drawer */
.mobile-nav{
  position: fixed; inset: 0; z-index: 140;
  background: rgba(8,8,8,.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.mobile-nav.is-open{ opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a{ font-family: var(--serif); font-size: 34px; font-weight: 300; color: var(--ink); letter-spacing: .04em; }
.mobile-nav .close-btn{ position: absolute; top: 30px; right: clamp(24px,5vw,64px); font-size: 13px; letter-spacing: .2em; color: var(--muted); }

/* ==========================================================================
   Cart drawer
   ========================================================================== */
.cart-overlay{
  position: fixed; inset: 0; z-index: 160;
  background: rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.cart-overlay.is-open{ opacity: 1; visibility: visible; }
.cart-drawer{
  position: fixed; top:0; right:0; bottom:0; z-index: 161;
  width: min(420px, 92vw);
  background: var(--bg-elev);
  border-left: 1px solid var(--hair);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  padding: 34px clamp(22px,4vw,36px);
}
.cart-overlay.is-open .cart-drawer{ transform: translateX(0); }
.cart-head{ display:flex; justify-content: space-between; align-items:center; margin-bottom: 30px; }
.cart-head h3{ font-family: var(--serif); font-weight: 400; font-size: 22px; margin:0; }
.cart-items{ flex: 1; overflow-y: auto; display:flex; flex-direction:column; gap:18px; }
.cart-empty{ color: var(--muted); font-size: 14px; margin-top: 30px; }
.cart-item{ display:flex; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--hair); }
.cart-item .name{ font-size: 14.5px; }
.cart-item .meta{ color: var(--muted); font-size: 12px; margin-top: 3px; }
.cart-item .price{ color: var(--gold); font-size: 13.5px; white-space: nowrap; }
.cart-remove{ color: var(--muted); font-size: 11px; letter-spacing: .1em; margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; }
.cart-foot{ border-top: 1px solid var(--hair); padding-top: 20px; margin-top: 20px; }
.cart-subtotal{ display:flex; justify-content: space-between; font-size: 14px; margin-bottom: 16px; }
.cart-subtotal .price{ color: var(--gold); }
.cart-note{ color: var(--muted); font-size: 11.5px; line-height: 1.6; margin-top: 14px; }

/* ==========================================================================
   Full-screen section shell
   ========================================================================== */
.screen{
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.screen-body{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) clamp(24px, 6vw, 96px) 64px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* cinematic background: vignette + gold glow + grain */
.cinematic-bg{
  position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg);
}
.cinematic-bg::before{
  content:"";
  position: absolute; inset: -10%;
  background:
    radial-gradient(46% 60% at var(--glow-x,72%) var(--glow-y,38%), rgba(200,170,106,.16), transparent 62%),
    radial-gradient(80% 70% at 20% 90%, rgba(255,255,255,.03), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #0a0a0a 60%, #060605 100%);
}
.cinematic-bg::after{
  content:"";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
  mix-blend-mode: overlay;
}
.hero-photo{
  position: absolute; top: 0; right: 0; z-index: 0;
  width: 64%; height: 100%; object-fit: cover; object-position: 50% 18%;
  filter: saturate(.85) contrast(1.05) brightness(.9);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 52%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 52%);
}
@media (max-width: 860px){
  .hero-photo{ width: 100%; opacity: .38; -webkit-mask-image: none; mask-image: none; }
}
.cinematic-figure{
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: flex-end;
  pointer-events: none;
}
.cinematic-figure svg{ height: 108%; width: auto; opacity: .9; }

.vignette-edge::before{ box-shadow: inset 0 0 180px 40px rgba(0,0,0,.6); }

/* ==========================================================================
   Type components
   ========================================================================== */
.kicker{
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.kicker::before{ content:""; width: 34px; height: 1px; background: var(--gold-soft); }

.display-1{
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.4rem, 9.5vw, 8.4rem);
  line-height: .96;
  letter-spacing: -.01em;
  margin: 0;
}
.display-2{
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 22px;
}
.lede{
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-70);
  font-weight: 300;
  max-width: 46ch;
  margin: 26px 0 44px;
  letter-spacing: .01em;
}
.tagline{ font-family: var(--serif); font-style: italic; color: var(--gold); font-size: clamp(19px,2.4vw,26px); margin: 0 0 20px; font-weight: 400; }
.copy{ color: var(--ink-70); font-size: 14.5px; line-height: 1.8; max-width: 52ch; margin: 0 0 34px; }

.rule{ width: 100%; height: 1px; background: var(--hair); margin: 34px 0; }

/* CTA link */
.cta{
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-soft);
  transition: gap .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  width: fit-content;
}
.cta:hover{ gap: 22px; border-color: var(--gold); }
.cta svg{ width: 15px; height: 15px; transition: transform .35s var(--ease); }
.cta:hover svg{ transform: translateX(3px); }

.btn-outline{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 128px; padding: 14px 22px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--hair-strong);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  text-align: center;
}
.btn-outline:hover{ background: var(--gold); border-color: var(--gold); color: #0a0a0a; }
.btn-outline.is-added{ background: var(--gold); border-color: var(--gold); color: #0a0a0a; }

.back-link{
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 30px;
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.back-link:hover{ color: var(--gold); gap: 14px; }
.crumbs{ display: flex; align-items: center; flex-wrap: wrap; gap: 14px 34px; margin-bottom: 30px; }
.crumbs .back-link{ margin-bottom: 0; }

/* ==========================================================================
   Home
   ========================================================================== */
.home-screen .screen-body{ justify-content: center; }
.home-cta-row{ margin-top: 8px; }

/* ==========================================================================
   Landing grids (Store / Socials)
   ========================================================================== */
.landing-head{ margin-bottom: clamp(28px, 4vw, 48px); }
.landing-grid{
  display: grid;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  flex: 1;
}
.landing-grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
.landing-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }

.tile{
  position: relative;
  background: var(--bg);
  padding: 34px 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(320px, 52vh, 540px);
  overflow: hidden;
  transition: background .5s var(--ease);
}
.tile-photo{
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) contrast(1.05) brightness(.66);
  transition: transform 1.4s var(--ease), filter .6s var(--ease);
}
.tile::after{
  content:"";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(10,10,10,.94) 0%, rgba(10,10,10,.4) 52%, rgba(10,10,10,.55) 100%);
}
.tile::before{
  content:"";
  position: absolute; inset:0; z-index: 1;
  background: radial-gradient(120% 100% at 50% 120%, rgba(200,170,106,.18), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.tile > .tile-top, .tile > .tile-bottom{ position: relative; z-index: 2; }
.tile:hover{ background: var(--panel); }
.tile:hover::before{ opacity: 1; }
.tile:hover .tile-photo{ transform: scale(1.06); filter: saturate(.92) contrast(1.05) brightness(.8); }
.tile-bottom{ display: flex; flex-direction: column; }
.tile-index{ font-size: 11px; letter-spacing: .2em; color: var(--ink-70); }
.tile-icon{ width: 40px; height: 40px; color: var(--gold); opacity: .9; margin: 18px 0; transition: transform .5s var(--ease); }
.tile:hover .tile-icon{ transform: translateY(-4px) scale(1.05); }
.tile h3{ font-family: var(--serif); font-weight: 400; font-size: clamp(24px,2.4vw,32px); margin: 0 0 8px; }
.tile p{ color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.tile .cta{ margin-top: auto; font-size: 11px; }

/* ==========================================================================
   Split layout (Store subpages / Social subpages)
   ========================================================================== */
.split-screen .screen-body{ padding-top: var(--header-h); padding-bottom: 0; justify-content: stretch; max-width: none; }
.split{
  display: grid; grid-template-columns: 1fr 1fr;
  flex: 1;
}
.split-visual{
  position: relative;
  background: linear-gradient(160deg, #131211, #0a0a0a 70%);
  border-right: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.split-visual::after{
  content:"";
  position: absolute; inset:0;
  background: radial-gradient(60% 60% at 50% 40%, rgba(200,170,106,.14), transparent 70%);
}
.split-visual .glyph{ position: relative; z-index: 1; width: min(46%, 240px); color: var(--gold); opacity: .92; }
.photo{
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.82) contrast(1.06) brightness(.86);
}
.split-visual.has-photo::after{
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,10,10,0) 62%, rgba(10,10,10,.75) 100%),
    linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 26%, rgba(10,10,10,.5) 100%),
    radial-gradient(70% 70% at 50% 40%, rgba(200,170,106,.10), transparent 70%);
}
.split-content{
  padding: 64px clamp(28px, 5vw, 84px) 64px clamp(36px, 6vw, 90px);
  display: flex; flex-direction: column; justify-content: center;
}
.split-content h1{ font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 4.4vw, 4.4rem); margin: 0 0 18px; }
.split-content h1.product-title{ font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.08; }
.split-content .kicker{ margin-bottom: 18px; }

/* product detail */
.spec-list{ margin: 0 0 34px; padding: 0; }
.spec-list li{
  position: relative; padding-left: 26px; margin-bottom: 11px;
  color: var(--ink-70); font-size: 13.5px; letter-spacing: .02em;
}
.spec-list li::before{ content:""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--gold); }
.size-picker{ margin: 0 0 30px; }
.size-label{ margin: 0 0 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.size-options{ display: flex; flex-wrap: wrap; gap: 10px; }
.size-options button{
  min-width: 52px; height: 46px; padding: 0 14px;
  border: 1px solid var(--hair-strong); color: var(--ink);
  font-size: 12px; letter-spacing: .12em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.size-options button:hover{ border-color: var(--gold); color: var(--gold); }
.size-options button.is-selected{ background: var(--gold); border-color: var(--gold); color: #0a0a0a; }
.size-options.is-error button{ border-color: var(--gold-soft); }
.size-hint{ margin: 12px 0 0; font-size: 12px; letter-spacing: .06em; color: var(--gold); }
.buy-row{ display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; padding-top: 28px; border-top: 1px solid var(--hair); }
.item-price.big{ font-size: 34px; }
.btn-outline.lg{ min-width: 200px; padding: 18px 30px; font-size: 12px; }

/* product / follow lists */
.item-list{ display: flex; flex-direction: column; }
.item-row{
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--hair);
}
.item-row:last-child{ border-bottom: 1px solid var(--hair); }
.item-link{ display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.item-thumb{
  width: 76px; height: 76px; flex-shrink: 0; object-fit: cover;
  border: 1px solid var(--hair);
  filter: saturate(.85) brightness(.85);
  transition: filter .4s var(--ease), border-color .4s var(--ease);
}
.item-link:hover .item-thumb{ filter: saturate(1) brightness(1); border-color: var(--gold-soft); }
.item-link:hover h4{ color: var(--gold); }
.item-main h4{ font-family: var(--serif); font-weight: 500; font-size: 19px; margin: 0 0 5px; transition: color .3s var(--ease); }
.item-main p{ color: var(--muted); font-size: 12.5px; margin: 0; letter-spacing: .01em; }
.item-side{ display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.item-price{ color: var(--gold); font-size: 15px; font-family: var(--serif); }

.follow-handle{ color: var(--muted); font-size: 13px; letter-spacing: .08em; margin-bottom: 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  border-top: 1px solid var(--hair);
  background: var(--bg);
  padding: 40px clamp(24px, 6vw, 64px);
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: flex-start; justify-content: space-between;
}
.footer-brand h4{ font-family: var(--serif); font-weight: 500; letter-spacing: .2em; font-size: 15px; margin: 0 0 10px; }
.footer-brand p{ color: var(--muted); font-size: 12.5px; max-width: 40ch; line-height: 1.7; margin:0; }
.footer-links{ display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col a, .footer-col span{ display:block; color: var(--muted); font-size: 12px; letter-spacing: .08em; margin-bottom: 10px; transition: color .3s var(--ease); }
.footer-col a:hover{ color: var(--gold); }
.footer-bottom{ width: 100%; border-top: 1px solid var(--hair); margin-top: 26px; padding-top: 20px; color: rgba(166,161,150,.6); font-size: 11px; letter-spacing: .05em; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .main-nav{ display: none; }
  .menu-btn{ display: flex; }
  .landing-grid.cols-4{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; }
  .split-visual{ min-height: 34vh; border-right: none; border-bottom: 1px solid var(--hair); }
  .split-content{ padding: 48px clamp(24px,6vw,64px) 64px; }
}
@media (max-width: 620px){
  .landing-grid.cols-4, .landing-grid.cols-3{ grid-template-columns: 1fr; }
  .tile{ min-height: 220px; }
  .item-row{ flex-wrap: wrap; }
}
