:root {
  --paper: #f4efe8;
  --paper-warm: #eadfd2;
  --ink: #151312;
  --soft-ink: #3b3430;
  --muted: #6b625a;
  --line: rgba(35, 29, 24, 0.16);
  --redwood: #8d2426;
  --redwood-dark: #681719;
  --gold: #c49a4c;
  --fog: #dfe9ec;
  --night: #111111;
  --display:
    "Cormorant Garamond", "Bodoni 72 Display", "Didot", "Times New Roman", serif;
  --sans:
    "Inter", "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}

body.subscribed .subscribe button {
  background: #29463f;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-mark {
  display: grid;
  width: max-content;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 2.05rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: clamp(520px, 56vw, 820px);
  overflow: hidden;
  isolation: isolate;
  background: #f2eee7;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: clamp(56px, calc((100vw - 1760px) / 2 + 96px), 260px);
  bottom: 0;
  width: clamp(500px, 39vw, 620px);
  height: calc(100% - 10px);
  background-image: url("./assets/hero-overlay.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: auto 100%;
  filter: drop-shadow(0 18px 32px rgba(16, 12, 10, 0.16));
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(244, 239, 232, 0.94) 0%, rgba(244, 239, 232, 0.7) 31%, rgba(244, 239, 232, 0.12) 60%),
    linear-gradient(180deg, rgba(244, 239, 232, 0.04), rgba(179, 119, 55, 0.08) 58%, rgba(18, 13, 10, 0.08)),
    url("./assets/sf-hero-wide.jpg");
  background-position: 48% top;
  background-size: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(650px, calc(100% - 40px));
  padding: clamp(132px, 19vh, 210px) 0 110px clamp(72px, calc((100vw - 1970px) / 2 + 74px), 150px);
  visibility: visible;
}

.hero-copy p {
  max-width: 360px;
  margin: 0 0 26px;
  color: var(--redwood-dark);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 560px;
  margin: 0;
  color: #111;
  font-family: var(--display);
  font-size: clamp(4.4rem, 10.7vw, 9.6rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: 0;
}

.gold-rule {
  display: block;
  width: 62px;
  height: 3px;
  margin-top: 24px;
  background: var(--gold);
}

.evolution {
  padding: 18px clamp(10px, 1.1vw, 18px) 16px;
  background: linear-gradient(180deg, var(--paper) 0%, #fbf7f0 100%);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 14px;
  color: var(--redwood-dark);
}

.section-label span {
  width: 52px;
  height: 2px;
  background: var(--gold);
}

.section-label h2,
.brands-intro .eyebrow,
.story-copy .eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
}

.timeline article {
  min-width: 0;
}

.timeline-image {
  width: 100%;
  aspect-ratio: 0.72;
  margin: 0;
  overflow: hidden;
  background: var(--paper-warm);
}

.timeline div {
  min-height: 74px;
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
  padding: 0 8px 8px;
}

.timeline h3 {
  margin: 0;
  color: var(--redwood-dark);
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.1vw, 2.2rem);
  font-weight: 500;
}

.timeline p {
  min-height: 2.8em;
  margin: 0;
  font-size: clamp(0.76rem, 1.1vw, 0.98rem);
  line-height: 1.25;
}

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

.city-story {
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
  min-height: 340px;
  background: #101010;
  color: #fffaf1;
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 62px) clamp(28px, 5vw, 70px);
  background:
    radial-gradient(circle at 0% 30%, rgba(196, 154, 76, 0.16), transparent 30%),
    #101010;
}

.eyebrow {
  color: var(--gold);
}

.story-copy h2 {
  max-width: 330px;
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.2vw, 3.8rem);
  font-weight: 500;
  line-height: 0.95;
}

.story-copy p:last-child {
  max-width: 390px;
  margin: 22px 0 0;
  color: rgba(255, 250, 241, 0.88);
  font-size: clamp(0.94rem, 1.2vw, 1.05rem);
  line-height: 1.6;
}

.city-story img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.brands {
  padding: clamp(30px, 4vw, 54px) clamp(22px, 5vw, 70px) clamp(36px, 5vw, 68px);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    var(--paper);
}

.brands-intro {
  max-width: 1160px;
  margin: 0 auto 24px;
}

.brands-intro h2 {
  margin: 5px 0 9px;
  color: var(--redwood-dark);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brands-intro p:not(.eyebrow) {
  max-width: 980px;
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.55;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.brand-grid article {
  min-height: 132px;
  padding: 22px 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  display: block;
  width: fit-content;
  min-height: 36px;
  margin-bottom: 14px;
  color: #151312;
  font-size: clamp(1.05rem, 1.28vw, 1.34rem);
  line-height: 1.05;
}

.brand-logo.levi {
  padding: 5px 9px 6px;
  color: #fff;
  background: var(--redwood);
  font-family: var(--sans);
  font-size: 1.18rem;
  font-weight: 800;
}

.brand-logo.ben-davis {
  padding: 8px 10px 7px;
  color: #fff;
  background: #171717;
  border-radius: 7px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo.gap {
  padding: 7px 10px;
  color: #fff;
  background: #14213d;
  font-family: var(--display);
  letter-spacing: 0.18em;
}

.brand-logo.banana {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.brand-logo.banana::before {
  content: "BR";
  display: block;
  margin-bottom: 1px;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 0.8;
  letter-spacing: -0.08em;
  text-align: center;
}

.brand-logo.everlane {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.brand-logo.allbirds {
  font-family: var(--display);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo.marine-layer {
  position: relative;
  padding-left: 33px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-logo.marine-layer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(#d94e35 0 25%, #f4a23a 25% 50%, #f6d56f 50% 75%, #82aac0 75%);
}

.brand-logo.realreal {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-logo.stitch-fix {
  position: relative;
  padding-left: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-logo.stitch-fix::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.35) 0 18%, transparent 19%),
    repeating-linear-gradient(45deg, #78b4b3 0 3px, #a3d0c8 3px 6px);
}

.brand-logo.cotopaxi {
  position: relative;
  padding-left: 26px;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-logo.cotopaxi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 26px;
  background: #111;
  clip-path: polygon(50% 0, 78% 23%, 70% 55%, 88% 100%, 51% 82%, 16% 100%, 31% 55%, 22% 23%);
}

.brand-logo.rothys {
  position: relative;
  padding-left: 34px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-logo.rothys::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border: 1.5px solid #111;
  border-radius: 50% 50% 45% 45%;
}

.brand-logo.athleta {
  position: relative;
  padding-left: 31px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.brand-logo.athleta::before {
  content: "*";
  position: absolute;
  left: 0;
  top: -4px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #a22127;
  border-radius: 50%;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.brand-logo-img {
  display: block;
  height: 46px;
  width: auto;
  max-width: 100%;
  margin: 0 0 14px;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-img.logo-rothys,
.brand-logo-img.logo-athleta {
  width: 100%;
}

.brand-grid p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.48;
}

.brand-more {
  max-width: 1040px;
  margin: 22px auto 0;
  color: var(--soft-ink);
  font-size: 0.96rem;
  line-height: 1.55;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr minmax(160px, 220px);
  align-items: center;
  gap: 34px;
  padding: 24px clamp(22px, 5vw, 64px);
  color: #f8f1e8;
  background:
    radial-gradient(circle at 8% 0%, rgba(196, 154, 76, 0.18), transparent 28%),
    #0d0d0d;
}

.footer-mark {
  color: #fff8ed;
}

.footer-mark::after {
  content: "";
  width: 44px;
  height: 2px;
  margin-top: 14px;
  background: var(--gold);
}

.subscribe {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(210px, 330px) auto;
  align-items: center;
  gap: 16px;
  padding-inline: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.subscribe p {
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.subscribe span {
  color: rgba(248, 241, 232, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}

.subscribe input,
.subscribe button {
  min-height: 48px;
  border-radius: 0;
  font: inherit;
}

.subscribe input {
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
}

.subscribe input::placeholder {
  color: rgba(248, 241, 232, 0.58);
}

.subscribe button {
  padding: 0 24px;
  color: #fff;
  border: 0;
  background: var(--redwood);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

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

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 500;
}

.social-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-credit {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: rgba(248, 241, 232, 0.68);
  font-size: 0.82rem;
  text-align: center;
}

.footer-credit a {
  color: #fff8ed;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1040px) {
  .timeline,
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-grid {
    max-width: 760px;
  }

  .site-footer,
  .subscribe {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: start;
  }

  .subscribe {
    padding: 0;
    border: 0;
  }

  .social {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 720px;
  }

  .hero::after {
    right: -112px;
    bottom: 0;
    width: min(122vw, 520px);
    height: calc(72% - 10px);
    background-image: url("./assets/hero-overlay.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: auto 100%;
  }

  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(244, 239, 232, 0.9), rgba(244, 239, 232, 0.6) 45%, rgba(18, 13, 10, 0.08)),
      url("./assets/sf-hero-wide.jpg");
    background-size: cover;
    background-position: 47% top;
  }

  .hero-copy {
    width: min(560px, calc(100% - 28px));
    padding: 116px 0 70px 18px;
    visibility: visible;
  }

  .hero h1 {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .hero-copy p {
    max-width: 300px;
  }

  .section-label {
    gap: 12px;
  }

  .section-label span {
    width: 28px;
  }

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

  .city-story {
    grid-template-columns: 1fr;
  }

  .city-story img {
    min-height: 260px;
  }

  .brand-grid {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .brand-grid article {
    min-height: 0;
    border-right: 0;
  }

  .site-footer {
    gap: 28px;
  }
}

@media (max-width: 460px) {
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline-image {
    aspect-ratio: 1.1;
  }

  .brands {
    padding-inline: 16px;
  }

  .subscribe button {
    width: 100%;
  }
}

.evolution .timeline article {
  border: 0 !important;
}

.evolution .timeline img {
  display: block;
  clip-path: none !important;
}
