/* ============================================================
   Atlas Apparel — Base Stylesheet
   No colour. Black, white, grey only.
   Playfair Display 900 × DM Sans 300/400
   ============================================================ */

/* ---- Variables -------------------------------------------- */
:root {
  --color-bg:        #000;
  --color-text:      #fff;
  --color-muted:     rgba(255, 255, 255, 0.45);
  --color-muted-lo:  rgba(255, 255, 255, 0.3);
  --color-border:    rgba(255, 255, 255, 0.12);
  --color-border-hi: rgba(255, 255, 255, 0.18);

  --font-heading: 'Times New Roman', Times, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-height: 72px;
  --max-w: 1560px;
  --gutter: clamp(24px, 4vw, 60px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

/* ---- Typography utilities ---------------------------------- */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-muted-lo);
}

.heading-display {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--ease-out),
              color 0.22s var(--ease-out),
              border-color 0.22s var(--ease-out);
}

.btn--outline {
  padding: 15px 38px;
  border: 0.5px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}

.btn--outline:hover {
  background-color: #fff;
  color: #000;
  border-color: #fff;
}

/* ============================================================
   HEADER — sticky nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: #000;
  border-bottom: 0.5px solid var(--color-border);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.site-header__logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}

.site-header__logo img {
  height: 42px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 44px;
}

.site-header__nav-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header__nav-link:hover {
  color: #fff;
}

.site-header__icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.site-header__icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.site-header__icon-btn:hover {
  color: #fff;
}

.site-header__icon-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.2;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

/* Mobile nav drawer — hidden until toggled */
.site-header__mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0;
  z-index: 190;
  background: #000;
  border-top: 0.5px solid var(--color-border);
  overflow-y: auto;
}

.site-header__mobile-nav[data-open="true"] {
  display: block;
}

.site-header__mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 48px var(--gutter);
  gap: 28px;
}

.site-header__mobile-nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 0.5px solid var(--color-border);
  padding-bottom: 28px;
  transition: color 0.2s ease;
}

.site-header__mobile-nav-link:hover {
  color: #fff;
}

/* Mobile nav toggle button */
.site-header__menu-btn {
  display: none;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.site-header__menu-btn:hover {
  color: #fff;
}

/* ============================================================
   HERO BANNER — full-height
   ============================================================ */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-height) - 53px);
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.12) 75%,
    rgba(0, 0, 0, 0.0) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(56px, 7vh, 96px);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Tall desktop screens — push content up so button stays visible */
@media (min-height: 900px) and (min-width: 769px) {
  .hero__content {
    padding-bottom: clamp(120px, 13vh, 240px);
  }
}

/* ---- Hero load animations --------------------------------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

.hero__label {
  margin-bottom: 18px;
  animation: heroFadeUp 1.1s var(--ease-out) both;
}

.hero__heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(3.8rem, 9vw, 10.5rem);
  line-height: 0.93;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 14ch;
  margin-bottom: clamp(32px, 4vh, 52px);
}

.hero__heading-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.hero__heading-line > span {
  display: block;
  animation: heroSlideUp 2s var(--ease-out) 0.5s both;
}

.hero__heading-line:nth-child(2) > span {
  animation-delay: 0.76s;
}

.hero__cta {
  display: inline-flex;
  animation: heroFadeUp 1.2s var(--ease-out) 1.7s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero__label,
  .hero__heading-line > span,
  .hero__cta {
    animation: none;
  }
}

/* ============================================================
   INFO STRIP — scrolling marquee
   ============================================================ */
.info-strip {
  border-top: 0.5px solid var(--color-border);
  border-bottom: 0.5px solid var(--color-border);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}

.info-strip__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.info-strip:hover .info-strip__track {
  animation-play-state: paused;
}

.info-strip__segment {
  display: flex;
  align-items: center;
  padding-right: 0;
}

.info-strip__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 36px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.info-strip__sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   PRODUCT GRID — 3 columns, 3:4 cards
   ============================================================ */
.product-grid {
  padding: clamp(72px, 10vh, 120px) 0;
  border-top: 0.5px solid var(--color-border);
}

.product-grid__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto clamp(36px, 5vh, 60px);
}

.product-grid__footer {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 5vh, 64px) var(--gutter);
  border-top: 0.5px solid var(--color-border);
}

.product-grid__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.product-grid__view-all {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 0.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.product-grid__view-all:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.product-grid__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.product-card__image-wrapper {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform-origin: center;
  transition: filter 0.55s var(--ease-out),
              transform 0.65s var(--ease-out);
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__placeholder svg {
  opacity: 0.12;
}

.product-card:hover .product-card__image {
  filter: grayscale(100%);
  transform: scale(1.04);
}

.product-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 56px 24px 26px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86) 0%, transparent 100%);
  transform: translateY(4px);
  opacity: 0.96;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.product-card__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card__price {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   SPLIT PANEL — image left, content right
   ============================================================ */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  border-top: 0.5px solid var(--color-border);
}

.split-panel__image {
  overflow: hidden;
  position: relative;
}

.split-panel__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(18%);
  transition: filter 0.6s ease;
}

.split-panel:hover .split-panel__image img {
  filter: grayscale(0%);
}

.split-panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vw, 110px);
  border-left: 0.5px solid var(--color-border);
}

.split-panel__label {
  margin-bottom: 22px;
}

.split-panel__heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.6rem, 4vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: clamp(24px, 3.5vh, 40px);
  white-space: pre-line;
}

.split-panel__body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.78;
  color: var(--color-muted);
  max-width: 42ch;
  margin-bottom: clamp(36px, 5vh, 56px);
}

/* ============================================================
   FOOTER — minimal
   ============================================================ */
.site-footer {
  border-top: 0.5px solid var(--color-border);
  padding: clamp(40px, 6vh, 72px) var(--gutter);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 24px;
}

.site-footer__logo {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.site-footer__copy {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-muted-lo);
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ============================================================
   INSTAGRAM SECTION
   ============================================================ */
.ig-section {
  border-top: 0.5px solid var(--color-border);
}

.ig-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(56px, 7vh, 96px) var(--gutter) clamp(36px, 5vh, 60px);
  gap: 20px;
}

.ig-section__handle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ig-section__handle:hover {
  opacity: 0.7;
}

.ig-section__handle svg {
  width: clamp(28px, 3.5vw, 44px);
  height: clamp(28px, 3.5vw, 44px);
  flex-shrink: 0;
}

.ig-embed {
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter) clamp(40px, 5vh, 64px);
}

.ig-section__cta {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 5vh, 64px) var(--gutter);
  border-top: 0.5px solid var(--color-border);
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.site-footer__link:hover {
  color: #fff;
}

/* ============================================================
   COLLECTION / SHOP PAGE
   ============================================================ */
.collection-wrap {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
}

.collection-wrap > * {
  grid-column: 2;
}

.collection-header {
  padding: clamp(60px, 8vh, 100px) var(--gutter) clamp(36px, 5vh, 56px);
}

.collection-header__eyebrow {
  margin-bottom: 18px;
}

.collection-header__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(3.2rem, 7vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: #fff;
}

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  border-top: 0.5px solid var(--color-border);
  border-bottom: 0.5px solid var(--color-border);
}

.collection-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 6px;
}

.collection-toolbar__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-muted-lo);
  margin-right: 14px;
}

.collection-toolbar__btn {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  border: 0.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.collection-toolbar__btn:hover {
  color: #fff;
}

.collection-toolbar__btn.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.collection-toolbar__count {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--color-muted-lo);
  white-space: nowrap;
}

.collection-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.collection-toolbar__select {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  appearance: none;
  padding-right: 12px;
}

.collection-toolbar__select:focus {
  outline: none;
  color: #fff;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .split-panel {
    grid-template-columns: 1fr;
  }

  .split-panel__image {
    height: 60vw;
    position: relative;
  }

  .split-panel__image img {
    position: absolute;
  }

  .split-panel__content {
    border-left: none;
    border-top: 0.5px solid var(--color-border);
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .collection-wrap {
    display: block;
  }

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

  .collection-toolbar {
    flex-wrap: wrap;
    gap: 16px;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__menu-btn {
    display: flex;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .hero {
    height: calc(100svh - var(--nav-height) - 53px);
  }

  .hero__content {
    padding-bottom: clamp(100px, 18vh, 160px);
  }

  .hero__heading {
    font-size: clamp(2.8rem, 11vw, 5rem);
  }

  .product-grid__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .product-grid__items {
    grid-template-columns: 1fr;
  }

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