/* ==========================================================================
   WEAR HUMAN — Artist Landing Page
   Editorial presentation system. Mobile first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  --paper:        #F6F5F2;
  --paper-2:      #FFFFFF;
  --ink:          #131211;
  --ink-soft:     #3A3835;
  --muted:        #736F69;
  --faint:        #A5A099;
  --line:         rgba(19, 18, 17, 0.12);
  --line-soft:    rgba(19, 18, 17, 0.07);
  --line-invert:  rgba(246, 245, 242, 0.18);

  --font-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --plate-y:      clamp(72px, 11vw, 148px);
  --gutter:       clamp(20px, 5vw, 56px);
  --maxw:         1240px;

  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul { list-style: none; }

::selection { background: var(--ink); color: var(--paper); }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow { max-width: 860px; }

.plate {
  padding: var(--plate-y) 0;
  position: relative;
}

.plate--hair { border-top: 1px solid var(--line-soft); }

.plate--ink {
  background: var(--ink);
  color: var(--paper);
}

.plate--ink .eyebrow,
.plate--ink .lede { color: rgba(246, 245, 242, 0.62); }

.plate--ink .rule { background: var(--line-invert); }

.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. TYPE
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}

.plate--ink .eyebrow::after { background: var(--line-invert); }

.eyebrow span { color: var(--faint); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.35rem, 7.2vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display--sm {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
}

.display--xl {
  font-size: clamp(2.75rem, 9vw, 6rem);
}

.it {
  font-style: italic;
  color: var(--ink-soft);
}

.plate--ink .it { color: rgba(246, 245, 242, 0.75); }

.lede {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 54ch;
  margin-top: clamp(20px, 3vw, 28px);
  text-wrap: pretty;
}

.note {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--faint);
  letter-spacing: 0.01em;
}

.serif-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), opacity 0.35s var(--ease);
  white-space: nowrap;
}

.btn:hover { background: #2B2825; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--invert { background: var(--paper); color: var(--ink); }
.btn--invert:hover { background: #FFF; }

.btn--lg { height: 60px; padding: 0 38px; font-size: 1rem; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: rgba(19, 18, 17, 0.04); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}

.btn-text:hover { border-color: var(--ink); gap: 12px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(28px, 4vw, 40px);
}

/* --------------------------------------------------------------------------
   6. NAV + PROGRESS
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--ink);
  z-index: 120;
  will-change: transform;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(246, 245, 242, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line-soft);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo img {
  height: 22px;
  width: auto;
}

.nav-meta {
  display: none;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav .btn { height: 42px; padding: 0 22px; font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(120px, 22vh, 200px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.hero-kicker {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(24px, 4vw, 36px);
}

.hero h1 { max-width: 22ch; }

.hero .lede { max-width: 46ch; }

.hero-figure {
  margin-top: clamp(40px, 7vw, 84px);
  padding: 0 var(--gutter);
}

.hero-figure .figure { max-width: 1440px; margin: 0 auto; }

.hero-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero-marks span { display: inline-flex; align-items: center; gap: 8px; }
.hero-marks span::before { content: '—'; color: var(--faint); }

/* --------------------------------------------------------------------------
   8. FIGURES
   -------------------------------------------------------------------------- */
.figure {
  position: relative;
  overflow: hidden;
  background: #EDEBE6;
  border-radius: 2px;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--wide { aspect-ratio: 16 / 9; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--square { aspect-ratio: 1 / 1; }

.cap {
  margin-top: 12px;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   9. SPLIT / GRID BLOCKS
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.split--top { align-items: start; }

.statement {
  max-width: 20ch;
}

/* Two-column ledger: "You / We" */
.ledger {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 0px);
}

.ledger-col { padding-top: 24px; border-top: 1px solid var(--ink); }

.ledger-col + .ledger-col { border-top-color: var(--line); }

.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.ledger-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  line-height: 1.1;
}

.ledger-count {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.ledger-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.ledger-list li::before {
  content: '';
  flex: 0 0 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
  transform: translateY(-2px);
}

.ledger-col--you .ledger-list li::before { background: var(--ink); }

.ledger-foot {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. STEPS
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(32px, 5vw, 56px);
}

.step {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 16px;
  align-items: baseline;
}

.step:last-child { border-bottom: 1px solid var(--line); }

.step-num {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.step-desc {
  grid-column: 2;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   11. PRODUCT
   -------------------------------------------------------------------------- */
.specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 44px);
  margin-top: clamp(32px, 5vw, 52px);
}

.spec { border-top: 1px solid var(--ink); padding-top: 22px; }

.spec-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.875rem;
  color: var(--muted);
}

.spec-list li b {
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

/* --------------------------------------------------------------------------
   12. PILLARS (3-up minimal)
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(32px, 5vw, 56px);
}

.pillar {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.pillar:last-child { border-bottom: 1px solid var(--line); }

.pillar-title {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.pillar-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 42ch;
}

/* --------------------------------------------------------------------------
   13. TAGS
   -------------------------------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 40px);
}

.tag {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.tag:hover { border-color: var(--ink); background: rgba(19,18,17,0.03); }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq { margin-top: clamp(28px, 4vw, 48px); }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: opacity 0.3s var(--ease);
}

.faq-question:hover { opacity: 0.6; }

.faq-icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  position: relative;
  margin-top: 6px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.faq-icon::before { top: 6px; left: 0; width: 14px; height: 1px; }
.faq-icon::after { left: 6px; top: 0; width: 1px; height: 14px; }

.faq-item.active .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
}

.faq-item.active .faq-answer { max-height: 420px; opacity: 1; }

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
  padding-bottom: 26px;
}

/* --------------------------------------------------------------------------
   15. CLOSING PLATE
   -------------------------------------------------------------------------- */
.closing { text-align: left; }

.closing-grid > * + * { margin-top: clamp(24px, 4vw, 32px); }

.closing .lede { color: rgba(246, 245, 242, 0.62); }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   17. MOBILE STICKY CTA
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(246, 245, 242, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line-soft);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}

.sticky-cta.is-visible { transform: translateY(0); }

.sticky-cta .btn { width: 100%; }

/* --------------------------------------------------------------------------
   18. MODAL
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(19, 18, 17, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper-2);
  border-radius: 18px 18px 0 0;
  padding: 34px var(--gutter) calc(30px + env(safe-area-inset-bottom));
  transform: translateY(30px);
  transition: transform 0.4s var(--ease);
}

.modal-backdrop.active .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.modal-close:hover { background: rgba(19,18,17,0.06); color: var(--ink); }

.modal-heading {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 40ch;
}

.modal-input-group { margin-bottom: 12px; }

.modal-input-group input,
.modal-input-group textarea {
  width: 100%;
  padding: 15px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: #F6F5F2;
  border: 1px solid transparent;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  resize: vertical;
}

.modal-input-group input::placeholder,
.modal-input-group textarea::placeholder { color: var(--faint); }

.modal-input-group input:focus,
.modal-input-group textarea:focus { border-color: var(--ink); background: #FFF; }

.modal-input-group input.invalid,
.modal-input-group textarea.invalid { border-color: #C4452D; background: #FDF6F4; }

.error-msg {
  display: none;
  font-size: 0.75rem;
  color: #C4452D;
  margin-top: 6px;
  padding-left: 2px;
}

.error-msg.visible { display: block; }

.modal-box form .btn { width: 100%; margin-top: 10px; }

.modal-fine {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--faint);
  text-align: center;
}

.form-success-state { text-align: center; padding: 20px 0 8px; }

.form-success-mark {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.form-success-state p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   19. REVEAL
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   20. BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (min-width: 700px) {
  .ledger { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); }
  .ledger-col + .ledger-col { border-top-color: var(--ink); }

  .specs { grid-template-columns: 1fr 1fr; }

  .step {
    grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: baseline;
  }
  .step-desc { grid-column: 3; }

  .pillars { grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 4vw, 48px); }
  .pillar:last-child { border-bottom: none; }
  .pillar { border-bottom: none; }

  .modal-backdrop { align-items: center; }
  .modal-box { border-radius: 20px; padding: 40px; }
}

@media (min-width: 900px) {
  .nav-meta { display: block; }

  .split--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }

  .hero h1 { max-width: 20ch; }

  .closing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
  }

  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

@media (hover: none) {
  .btn:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
