/* =========================
   Snail Cloth — Title Sequence v2
   Radical, in-your-face, still disciplined
   ========================= */

/* Reset */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font: inherit; }

/* Brand variables */
:root{
  --bg: #F5E6CC;          /* Warm Beige */
  --ink: #2A2A2A;         /* Deep Charcoal */
  --green: #2F4F2F;       /* Earth Green */
  --clay: #E94E1B;        /* Clay Red */

  --border: rgba(42,42,42,0.18);
  --card: rgba(255,255,255,0.40);
  --radius: 18px;
  --shadow: 0 12px 34px rgba(0,0,0,0.18);
  --max: 1120px;

  --tile-light: rgba(255,255,255,0.85);
  --tile-dark: #111214;

  --ease: cubic-bezier(.2,.9,.2,1);
}

/* Base */
body{
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.wrap{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* =========================
   Header (overlay, title-seq)
   ========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--border);
  background: rgba(245,230,204,0.90);
  backdrop-filter: blur(10px);
}

.site-header--overlay{
  position: fixed;
  left: 0; right: 0; top: 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(17,18,20,0.40);
  color: #fff;
}

.header-inner{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: inherit;
}

.brand-logo{
  height: 46px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}

/* Nav */
.nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link{
  color: inherit;
  text-decoration:none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nav-link:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}

.nav-link.is-active{
  background: rgba(233,78,27,0.22);
  border-color: rgba(233,78,27,0.40);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration:none;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-big{ padding: 12px 18px; }

.btn-primary{
  background: var(--clay);
  color: #111214;
  border-color: rgba(0,0,0,0.22);
}

.btn-primary:hover{ filter: brightness(1.02); }

.btn-ghost{
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}

.btn-ghost:hover{ background: rgba(255,255,255,0.18); }

/* =========================
   Title Sequence Hero
   ========================= */
.title-seq{
  position: relative;
  min-height: 92vh;
  padding-top: 96px;  /* space for fixed header */
  display:flex;
  align-items:center;
  isolation: isolate;
  background: #0f1012;
  color: #fff;
  overflow:hidden;
}

.title-bg{
  position:absolute;
  inset:0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 20% 40%, rgba(233,78,27,0.22), transparent 60%),
    radial-gradient(720px 520px at 75% 30%, rgba(47,79,47,0.16), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)),
    #0f1012;
}

/* Manga halftone + speedline texture */
.title-seq::before{
  content:"";
  position:absolute;
  inset:-40px;
  z-index:-1;
  opacity: 0.22;
  background:
    repeating-linear-gradient(115deg,
      rgba(255,255,255,0.10) 0 2px,
      rgba(255,255,255,0.00) 2px 18px),
    radial-gradient(circle at 25% 40%,
      rgba(255,255,255,0.10) 0 2px,
      rgba(255,255,255,0) 2px 10px);
  mix-blend-mode: overlay;
  transform: rotate(-6deg);
}

/* Oversized ghost logo watermark */
.title-seq::after{
  content:"SNAIL";
  position:absolute;
  right:-6vw;
  top: 10vh;
  font-weight: 1000;
  letter-spacing: -0.06em;
  font-size: clamp(96px, 18vw, 320px);
  opacity: 0.06;
  color: #fff;
  transform: skewX(-10deg);
  pointer-events:none;
}

.title-wrap{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.title-topline{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  opacity: 0.92;
}

.chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 12px;
}

.dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(233,78,27,0.85);
}

.title{
  margin: 0 0 10px;
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 1000;
  text-transform: uppercase;
  font-size: clamp(52px, 9.2vw, 132px);
}

.title-line{ display:block; }
.title-accent{
  color: var(--clay);
  text-shadow: 0 14px 26px rgba(0,0,0,0.45);
}

.title-sub{
  margin: 0 0 18px;
  max-width: 62ch;
  font-size: 16px;
  opacity: 0.86;
}

.title-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.title-credits{
  margin-top: 22px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0.70;
}
.credit{
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

/* Simple weighted intro motion */
.title-topline, .title, .title-sub, .title-actions, .title-credits{
  animation: riseIn 900ms var(--ease) both;
}
.title{ animation-delay: 120ms; }
.title-sub{ animation-delay: 220ms; }
.title-actions{ animation-delay: 300ms; }
.title-credits{ animation-delay: 380ms; }

@keyframes riseIn{
  from{ opacity:0; transform: translateY(16px); }
  to{ opacity:1; transform: translateY(0); }
}

/* =========================
   Acts (chapters)
   ========================= */
.act{
  padding: 56px 0;
  position: relative;
}

.act--light{
  background: var(--bg);
  color: var(--ink);
}

.act--dark{
  background: #111214;
  color: #f4f0e6;
}

.act--dark .product-card{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}

.act--dark .product-meta{ opacity: 0.78; }

.act-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.act-kicker{
  margin: 0 0 6px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.78;
}

.act-title{
  margin: 0 0 6px;
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 1000;
  text-transform: uppercase;
}

.act-sub{
  margin: 0;
  max-width: 70ch;
  opacity: 0.82;
}

.act-stamp{
  font-weight: 1000;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  font-size: 56px;
  opacity: 0.12;
  color: var(--ink);
  user-select:none;
}

.act-stamp--invert{
  color: #fff;
  opacity: 0.10;
}

/* =========================
   Product Grid (stable sizing)
   ========================= */
.product-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card{
  border: 1px solid rgba(42,42,42,0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.40);
  box-shadow: 0 12px 34px rgba(0,0,0,0.14);
  padding: 14px;
}

/* make buttons behave like cards */
.product-btn{
  width: 100%;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

/* image well */
.product-img{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tile-light);
}

/* DARK well override (your existing tile list) */
.product-card.tile-dark .product-img{
  background: var(--tile-dark);
}

.product-img img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display:block;
}

/* titles */
.h3{
  margin: 10px 0 4px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 900;
}

.product-meta{
  margin: 0;
  font-size: 14px;
  opacity: 0.75;
}

/* =========================
   Notify + footer
   ========================= */
.notify{
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(42,42,42,0.18);
  background: rgba(255,255,255,0.35);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.act--dark .notify{
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.notify-inner{ display:flex; gap: 12px; flex-wrap: wrap; }
.notify-form{ display:flex; gap: 10px; flex-wrap: wrap; align-items:center; }

input[type="email"]{
  min-width: 280px;
  width: min(420px, 100%);
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(42,42,42,0.18);
  background: rgba(255,255,255,0.65);
  color: var(--ink);
  font-size: 16px;
}

.act--dark input[type="email"]{
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

input[type="email"]:focus{
  outline: none;
  border-color: rgba(233,78,27,0.75);
}

.site-footer{
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(42,42,42,0.18);
  font-size: 14px;
  opacity: 0.85;
}

.act--dark .site-footer{
  border-top-color: rgba(255,255,255,0.12);
  opacity: 0.80;
}

/* Accessibility */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Responsive */
@media (max-width: 960px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
  .act-title{ font-size: 34px; }
}

@media (max-width: 520px){
  .wrap{ width: min(var(--max), calc(100% - 28px)); }
  .product-grid{ grid-template-columns: 1fr; }
  input[type="email"]{ min-width: 100%; }
  .title-seq{ min-height: 88vh; }
}

/* =========================
   Professional Series — light text on dark
   ========================= */

/* Headings + meta inside ACT II */
.act--dark .product-card .h3{
  color: #F4F0E6; /* warm off-white, not stark white */
}

.act--dark .product-card .product-meta{
  color: rgba(244,240,230,0.75);
}

/* Optional: subtle lift on hover for clarity */
.act--dark .product-card:hover .h3{
  color: #ffffff;
}

/* =========================
   Mobile Hamburger Nav
   ========================= */

.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}

.nav-toggle-bar{
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
}

/* Mobile menu panel */
.mobile-menu{
  display: none;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(17,18,20,0.72);
  backdrop-filter: blur(12px);
}

.mobile-link{
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
}

.mobile-link + .mobile-link{ margin-top: 8px; }

.mobile-link:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.20);
}

.mobile-link.is-active{
  background: rgba(233,78,27,0.22);
  border-color: rgba(233,78,27,0.40);
}

/* Collapse behavior */
@media (max-width: 860px){
  .nav{ display: none; }
  .nav-toggle{ display: inline-flex; }
  .site-header--overlay .btn.btn-primary{ padding: 10px 14px; } /* keep header tight */
}

/* When open */
.site-header.is-menu-open .mobile-menu{
  display: block;
}

