/* Sole District — streetwear brand system */
:root {
  --ink: #0c0c0c;
  --ink-soft: #1a1a1a;
  --concrete: #c5c1bb;
  --stone: #e6e3de;
  --bone: #f2f1ef;
  --signal: #ff4d1c;
  --signal-deep: #d93a0f;
  --muted: #6b6762;
  --line: rgba(12, 12, 12, 0.12);
  --font-display: "Syne", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}

.eyebrow.light {
  color: var(--signal);
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-lead {
  margin: 0 0 2.5rem;
  max-width: 32rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(242, 241, 239, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 2;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bone);
  transition: color 0.3s;
}

.site-header.is-scrolled .brand-name {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(242, 241, 239, 0.92);
  transition: color 0.25s;
}

.site-header.is-scrolled .site-nav a {
  color: var(--ink);
}

.site-nav a:hover {
  color: var(--signal);
}

.nav-cta {
  padding: 0.55rem 1.05rem;
  background: var(--signal);
  color: var(--bone) !important;
  border-radius: 2px;
  transition: background 0.25s, transform 0.25s;
}

.nav-cta:hover {
  background: var(--signal-deep) !important;
  color: var(--bone) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--bone);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

.site-header.is-scrolled .nav-toggle span,
.site-header.nav-open .nav-toggle span {
  background: var(--ink);
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero — one full-bleed composition, brand first */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: end start;
  color: var(--bone);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.08);
  animation: heroZoom 20s var(--ease) forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 12, 12, 0.82) 0%, rgba(12, 12, 12, 0.45) 48%, rgba(12, 12, 12, 0.55) 100%),
    linear-gradient(180deg, transparent 40%, rgba(12, 12, 12, 0.75) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 3rem) 1.5rem 5.5rem;
  width: min(640px, 100%);
  margin-left: max(0px, calc((100% - 1120px) / 2));
  padding-left: max(1.5rem, calc((100% - 1120px) / 2 + 1.25rem));
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5.75rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero-line {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(242, 241, 239, 0.92);
  max-width: 22rem;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 26rem;
  font-weight: 400;
  font-size: 1rem;
  color: rgba(242, 241, 239, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn-primary {
  background: var(--signal);
  color: var(--bone);
}

.btn-primary:hover {
  background: var(--signal-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(242, 241, 239, 0.45);
}

.btn-ghost:hover {
  border-color: var(--bone);
  background: rgba(242, 241, 239, 0.08);
}

.btn-full {
  width: 100%;
}

.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(242, 241, 239, 0.45);
  border-radius: 14px;
  z-index: 1;
}

.scroll-hint span {
  display: block;
  width: 3px;
  height: 8px;
  margin: 8px auto 0;
  background: var(--bone);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}

/* Category price rail */
.categories {
  background: var(--ink);
  color: var(--bone);
  padding: 2rem 0;
  border-bottom: 3px solid var(--signal);
}

.cat-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.cat-item {
  text-align: left;
  padding: 0.35rem 0;
}

.cat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--concrete);
  margin-bottom: 0.35rem;
}

.cat-item strong {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Shop */
.shop {
  padding: 6.5rem 0 5rem;
  background:
    linear-gradient(180deg, var(--stone) 0%, var(--bone) 28%, var(--bone) 100%);
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0.55rem 1.05rem;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 500;
  font-size: 0.88rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.product {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.35s;
}

.product.is-hidden {
  display: none;
}

.product-media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--stone);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease);
}

.product:hover .product-media img {
  transform: scale(1.05);
}

.product-body {
  padding: 1.1rem 0 1.35rem;
}

.product-meta {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.product-price {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--signal);
}

/* Story */
.story {
  padding: 6.5rem 0;
  background: var(--ink);
  color: var(--bone);
}

.story h2,
.story .eyebrow {
  color: var(--bone);
}

.story .eyebrow {
  color: var(--signal);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.story-copy p {
  color: rgba(242, 241, 239, 0.72);
  margin: 0 0 1rem;
}

.story-points {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.story-points li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.35rem;
  color: var(--bone);
  font-weight: 500;
  border-top: 1px solid rgba(242, 241, 239, 0.12);
}

.story-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 8px;
  height: 8px;
  background: var(--signal);
}

.story-visual {
  position: relative;
  overflow: hidden;
  min-height: 440px;
}

.story-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(12, 12, 12, 0.55));
  pointer-events: none;
}

.story-visual img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

/* Lookbook */
.lookbook {
  padding: 6rem 0 0;
  background: var(--stone);
}

.lookbook .container {
  margin-bottom: 2.5rem;
}

.lookbook-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.55rem;
  width: min(1280px, calc(100% - 1.1rem));
  margin: 0 auto;
  padding-bottom: 0.55rem;
}

.look-item {
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: var(--ink);
}

.look-item.span-2 {
  grid-column: span 2;
  grid-row: span 2;
}

.look-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.35s;
  opacity: 0.92;
}

.look-item:hover img {
  transform: scale(1.06);
  opacity: 1;
}

/* Instagram band */
.instagram-band {
  padding: 4rem 0;
  background:
    linear-gradient(120deg, var(--ink-soft) 0%, #221810 55%, #2a140c 100%);
  color: var(--bone);
  border-top: 1px solid rgba(255, 77, 28, 0.35);
}

.ig-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.instagram-band h2 {
  color: var(--bone);
  margin-bottom: 0.5rem;
}

.instagram-band p:not(.eyebrow) {
  margin: 0;
  color: rgba(242, 241, 239, 0.7);
  max-width: 28rem;
}

/* Order */
.order {
  padding: 6.5rem 0;
  background:
    linear-gradient(180deg, var(--bone), var(--stone));
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.order-steps {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.order-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.order-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--signal);
  grid-row: span 2;
  align-self: start;
  line-height: 1.2;
}

.order-steps strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.order-steps span {
  color: var(--muted);
  font-size: 0.95rem;
}

.order-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-line .label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-line strong {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--bone);
  border: 1px solid var(--line);
}

.form-intro {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.order-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.order-form input,
.order-form textarea,
.order-form select {
  border: 1px solid var(--line);
  padding: 0.8rem 0.9rem;
  border-radius: 2px;
  background: var(--stone);
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus,
.order-form select:focus {
  border-color: var(--signal);
  background: var(--bone);
}

.form-note {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(242, 241, 239, 0.8);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(242, 241, 239, 0.1);
}

.footer-brand img {
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--concrete);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: center;
}

.footer-links a:hover {
  color: var(--signal);
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-contact a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bone);
}

.footer-contact a:hover {
  color: var(--signal);
}

.footer-bottom {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.35rem 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  opacity: 0.7;
}

.footer-bottom p {
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 12, 12, 0.94);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1000px, 100%);
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  border: 0;
  background: transparent;
  color: var(--bone);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-in {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn 0.95s var(--ease) forwards;
}

.delay-1 { transition-delay: 0.12s; animation-delay: 0.14s; }
.delay-2 { transition-delay: 0.22s; animation-delay: 0.26s; }
.delay-3 { transition-delay: 0.32s; animation-delay: 0.38s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

@keyframes scrollDot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

/* Responsive */
@media (max-width: 960px) {
  .cat-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid,
  .order-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lookbook-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .footer-contact {
    justify-content: flex-start;
  }

  .hero-content {
    margin-left: 0;
    padding-left: 1.5rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(242, 241, 239, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    color: var(--ink) !important;
    font-size: 1.2rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

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

  .cat-rail {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }

  .look-item.span-2 {
    grid-column: span 2;
    grid-row: span 1;
  }

  .hero-brand {
    font-size: clamp(2.6rem, 14vw, 3.5rem);
  }

  .footer-bottom {
    flex-direction: column;
  }
}
