/* SAS Brands Group: a family of New York apparel companies
   Palette: white (dominant), ink (dark), navy (accent and night sky), cool grey (captions) */

:root {
  --white: #FFFFFF;
  --paper: #F4F5F7;
  --ink: #111111;
  --ink-soft: rgba(17, 17, 17, 0.74);
  --navy: #0F1A2B;
  --accent: #2F4C7A;
  --accent-deep: #223A5E;
  --accent-light: #AFC4E3;
  --stone: #777C85;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.3);
  --lamp: #F2E3B0;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: 16px;
  --section-y: 72px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 120px; }
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3, .h1 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1, .h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }

p { margin: 0 0 1.2em; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.4em;
}

.lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft); max-width: 36ch; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-y) 0; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- Links and buttons ---------- */
.link {
  display: inline-block;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.02em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease-out), color 0.25s;
}
.link:hover { background-size: 0% 1px; color: var(--accent-deep); }

.button {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--ink);
  font-family: var(--font-body); font-weight: 400; font-size: 0.85rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 16px 28px; cursor: pointer; text-decoration: none;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-1px); }
.button:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}
.nav.is-visible { transform: translateY(0); }
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; white-space: nowrap;
}
.nav__brand span { font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; font-family: var(--font-body); margin-left: 8px; color: var(--ink-soft); vertical-align: 2px; }
.nav__menu { display: none; gap: 32px; }
.nav__menu a {
  text-decoration: none; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color 0.3s, color 0.3s;
}
.nav__menu a:hover { border-color: var(--accent); color: var(--accent-deep); }
.nav__toggle {
  background: none; border: 1px solid var(--line-strong); color: var(--ink);
  font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 14px; cursor: pointer;
}
@media (min-width: 768px) {
  .nav__menu { display: flex; }
  .nav__toggle { display: none; }
}
@media (max-width: 767px) {
  .nav--open .nav__menu {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav--open .nav__menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
}

/* ---------- Hero: scroll-driven elevation of 1431 Broadway ---------- */
.hero { position: relative; height: 320vh; }
.hero__stage {
  --hero-fg: var(--ink);
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--white);
  color: var(--hero-fg);
}
.hero__sunset {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(206, 214, 230, 0.8) 75%, rgba(176, 186, 210, 0.9) 100%);
}
.hero__text {
  position: relative; flex: 0 0 auto;
  padding: 18vh var(--gutter) 0;
  height: 44vh;
  z-index: 2;
}
.hero__block {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 18vh;
  opacity: 0; visibility: hidden; will-change: opacity, transform;
}
.hero__block .eyebrow { margin-bottom: 1em; }
.hero__block h1, .hero__block .h1 { font-size: clamp(2.2rem, 7.5vw, 4.8rem); max-width: 12ch; color: var(--hero-fg); }
.hero__block .lede { max-width: 34ch; color: var(--hero-fg); opacity: 0.8; }
.hero__names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; max-width: 40ch; }
.hero__names li { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--hero-fg); }
.hero__names li::after { content: "·"; color: var(--accent-light); margin-left: 18px; }
.hero__names li:last-child::after { content: none; }
.hero__stage.is-night .eyebrow { color: var(--accent-light); }

.hero__building {
  position: relative; flex: 1 1 auto; min-height: 0; min-width: 0;
  z-index: 1;
}
.building-wrap {
  position: relative; width: 100%; height: 100%;
  transform-origin: 50% 100%;
  will-change: transform;
}
.building-wrap svg { width: 100%; height: 100%; display: block; }

.directory {
  list-style: none; margin: 0; padding: 0;
  position: absolute; inset: 0; pointer-events: none;
  display: none;
}
.directory li {
  position: absolute; left: 0; top: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400;
  color: var(--hero-fg);
  opacity: 0; will-change: opacity;
  padding-left: 34px;
}
.directory li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 1px; background: currentColor; opacity: 0.55;
}
.directory li::after {
  content: ""; position: absolute; left: 24px; top: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--lamp); transform: translate(-50%, -50%);
}

.hero__hint {
  position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; z-index: 2;
  text-align: center; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone);
}
.hero__hint::after {
  content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0;
  background: linear-gradient(var(--stone), transparent);
}

@media (min-width: 900px) {
  .hero__stage { flex-direction: row; align-items: stretch; }
  .hero__text { flex: 0 0 44%; height: auto; padding: 0 0 0 var(--gutter); display: flex; align-items: center; }
  .hero__block { left: var(--gutter); right: 6%; top: auto; }
  .hero__building { flex: 1 1 56%; }
  .directory { display: block; }
}
@media (min-width: 1300px) {
  .hero__block { left: calc((100vw - var(--container)) / 2 + var(--gutter)); }
}

/* Film hero: frames of 1431 Broadway scrubbed by scroll */
.hero__film, .hero__fallback { position: absolute; inset: 0; }
.hero__film { display: none; z-index: 0; }
.hero__canvas { width: 100%; height: 100%; display: block; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; }
.hero__scrim--day { background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 34%, rgba(255, 255, 255, 0) 64%); }
.hero__scrim--night { background: linear-gradient(90deg, rgba(11, 19, 36, 0.92) 0%, rgba(11, 19, 36, 0.72) 34%, rgba(11, 19, 36, 0) 64%); opacity: 0; }
.hero__loader {
  position: absolute; inset: 0; z-index: 3; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--white);
  transition: opacity 0.7s ease, visibility 0.7s;
}
.hero__loader.is-done { opacity: 0; visibility: hidden; }
.hero__loader-mark { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); }
.hero__loader-bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.hero__loader-bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform 0.25s linear; }

.hero--film .hero__stage { display: block; background: var(--white); }
.hero--film .hero__film { display: block; }
.hero--film .hero__loader { display: flex; }
.hero--film .hero__fallback { display: none; }
.hero--film .hero__text {
  position: absolute; left: 0; top: 0; bottom: 0; height: auto; width: min(100%, 720px);
  padding: 16vh var(--gutter) 0; display: flex; align-items: flex-start; z-index: 2;
}
.hero--film .hero__block { top: auto; right: var(--gutter); }
@media (min-width: 900px) {
  .hero--film .hero__text { padding: 0 0 0 var(--gutter); align-items: center; }
  .hero--film .hero__block { right: 10%; }
  .hero__scrim--day, .hero__scrim--night { background-size: 100% 100%; }
}
@media (max-width: 899px) {
  .hero__scrim--day { background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0) 70%); }
  .hero__scrim--night { background: linear-gradient(180deg, rgba(11, 19, 36, 0.94) 0%, rgba(11, 19, 36, 0.78) 42%, rgba(11, 19, 36, 0) 70%); }
}

/* Drawn hero (fallback): the fallback wrapper hands its building column to the stage's flex layout */
.hero--drawn .hero__film, .hero--drawn .hero__loader { display: none; }
.hero--drawn .hero__fallback { display: contents; }

/* Reduced motion: no pinned scroll, final state only */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .hero__hint { display: none; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Story ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1.05fr 0.95fr; gap: 80px; }
}
.story__text p { max-width: 54ch; }
.story__media { margin: 0; }
.story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story__media figcaption, .co__img figcaption {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-top: 12px;
}
.facts {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px;
  border-top: 1px solid var(--line); padding-top: 32px;
}
@media (min-width: 600px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; line-height: 1; margin-bottom: 8px; }
.facts span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }

/* ---------- Band image ---------- */
.band { position: relative; height: 70vh; min-height: 420px; overflow: hidden; margin: 0; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.band__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px var(--gutter);
  color: var(--white); font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.4rem); font-style: italic;
  background: linear-gradient(transparent, rgba(15, 26, 43, 0.6));
  margin: 0;
}

/* ---------- How we work ---------- */
.how { background: var(--paper); }
.how__grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
@media (min-width: 700px) { .how__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .how__grid { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.how__item { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.how__img { margin: 0 0 22px; background: var(--white); }
.how__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.how__item span { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); margin-bottom: 14px; }
.how__item h3 { font-size: 1.6rem; margin-bottom: 0.4em; }
.how__item p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Companies ---------- */
.companies__head { max-width: 60ch; margin-bottom: 24px; }
.co {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
  padding: var(--section-y) 0; border-top: 1px solid var(--line);
}
.co:first-of-type { border-top: 0; }
@media (min-width: 900px) {
  .co { grid-template-columns: 1fr 1fr; gap: 72px; }
  .co:nth-of-type(even) .co__text { order: 2; }
  .co:nth-of-type(even) .co__media { order: 1; }
}
.co__logo { display: block; height: auto; width: 260px; max-width: 100%; margin-bottom: 28px; }
.co__logo--cpw { width: 280px; }
.co__logo--ninety { width: 170px; }
.co__logo--orchard { width: 200px; }
.co__logo--elle { width: 160px; }
.co__logo--sas { width: 210px; }
.co__meta { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-bottom: 20px; }
.co__blurb { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; font-weight: 500; margin-bottom: 0.9em; max-width: 24ch; }
.co__body p { max-width: 56ch; color: var(--ink-soft); }
.co__facts { margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.co__facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.co__facts dt { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.co__facts dd { margin: 0; font-size: 0.98rem; }
.co__callout {
  display: inline-block; margin: 28px 0 0; padding: 10px 16px;
  border: 1px solid var(--accent); color: var(--accent-deep);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400;
}
.co__link { margin-top: 28px; }
.co__text .link { margin-top: 24px; }
.co__media { position: relative; }
.co__img { margin: 0; background: var(--paper); }
.co__img img { width: 100%; height: 100%; object-fit: cover; }
.co__img--tall img { aspect-ratio: 4 / 5; }
.co__img--square img { aspect-ratio: 1 / 1; }
.co__img--wide img { aspect-ratio: 16 / 10; }

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.collage .co__img:first-child { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .collage { grid-template-columns: 7fr 5fr; }
  .collage .co__img:first-child { grid-column: auto; }
}
.collage .co__img--small img { aspect-ratio: 4 / 5; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.trio .co__img img { aspect-ratio: 3 / 5; object-position: 50% 15%; }
@media (min-width: 600px) { .trio { gap: 16px; } }

.family { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 600px) { .family { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.family li { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.family img, .family .family__mono { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 10px; background: var(--paper); }
.family .family__mono { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0.05em; color: var(--ink-soft); text-transform: none; }
.family__title { display: block; }

/* 37 Orchard storefront and SAS typographic art */
.art { margin: 0; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; background: var(--paper); padding: 10%; }
.art svg { width: 100%; height: auto; max-height: 100%; }
.art--sas { flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 12%; }
.art--sas div { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line-strong); padding: 18px 0; }
.art--sas div:last-child { border-bottom: 1px solid var(--line-strong); }
.art--sas strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1; }
.art--sas span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.art--sas .art__head { border: 0; padding: 0 0 24px; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); display: block; }

/* ---------- Retail partners ---------- */
.retail { background: var(--navy); color: var(--white); }
.retail .eyebrow { color: var(--accent-light); }
.retail h2 { color: var(--white); }
.retail__lede { color: rgba(255, 255, 255, 0.72); max-width: 48ch; }
.wall { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
@media (min-width: 700px) { .wall { grid-template-columns: repeat(3, 1fr); gap: 0 48px; } }
@media (min-width: 1000px) { .wall { grid-template-columns: repeat(4, 1fr); } }
.wall li {
  padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
}
.wall__closing { margin: 40px 0 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--accent-light); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.contact__text p { max-width: 42ch; }
.address { font-style: normal; margin: 32px 0; line-height: 1.8; }
.address strong { font-weight: 400; display: block; }
.sites { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 10px 0; width: 100%;
  transition: border-color 0.3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-size: 0.95rem; color: var(--accent-deep); min-height: 1.6em; }
.form__status.is-error { color: #9B2C2C; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 0.85rem; color: var(--stone); }
.footer__grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.footer__brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.footer__companies { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer__companies li::after { content: "·"; margin-left: 14px; color: var(--accent); }
.footer__companies li:last-child::after { content: none; }
.footer__legal { margin: 24px 0 0; font-size: 0.78rem; max-width: 70ch; }
