/* ============================================================
   DUCK FASHION — Autumn/Winter 2026
   Editorial fashion system. White / burgundy / black / soft grey.
   ============================================================ */

@font-face {
  font-family: "Bodoni Moda";
  src: url("./fonts/bodoni-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("./fonts/bodoni-italic-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("./fonts/archivo-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("./fonts/archivo-italic-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --white: #ffffff;
  --burgundy: #a21341;
  --black: #111111;
  --grey: #f5f5f5;
  --ink-60: rgba(17, 17, 17, 0.6);
  --ink-45: rgba(17, 17, 17, 0.45);
  --hairline: rgba(17, 17, 17, 0.14);
  --serif: "Bodoni Moda", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 400 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
figure { overflow: hidden; }

::selection { background: var(--burgundy); color: var(--white); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

.serif { font-family: var(--serif); }

/* ---------- eyebrow label ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--burgundy);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-solid { background: var(--burgundy); color: var(--white); }
.btn-solid:hover { background: var(--black); }
.btn-ghost { border-color: var(--hairline); color: var(--black); background: transparent; }
.btn-ghost:hover { border-color: var(--black); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--ease), border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.site-header.hidden-up { transform: translateY(-100%); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo { display: block; height: 38px; width: auto; }

.site-nav { display: flex; gap: clamp(22px, 3vw, 40px); }

.nav-link {
  position: relative;
  color: var(--ink-60);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover { color: var(--black); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--burgundy); }
.nav-link.is-active::after { transform: scaleX(1); }

/* ============================================================
   VIEWS
   ============================================================ */
.view--active { display: block; animation: viewIn 0.55s var(--ease) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 32px) clamp(24px, 6vw, 96px) 64px;
}

.hero-title {
  margin: 26px 0 0;
  font-weight: 700;
  font-size: clamp(56px, 8.2vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero-title .serif {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--burgundy);
}
.hero-line { display: block; }

.hero-sub {
  margin-top: 28px;
  max-width: 400px;
  font-size: 15px;
  color: var(--ink-60);
}
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; margin: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: settle 2.4s var(--ease) both;
}
@keyframes settle {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--burgundy);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 14px;
}

/* staggered hero entrance */
.view--active .hero-item {
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(150ms + var(--i, 0) * 100ms);
}
.view--active .hero-media { animation: wipe 1.1s 0.1s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}
@keyframes wipe {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0 0 0 0); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 15px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-set { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee-set span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-60);
  white-space: nowrap;
}
.marquee-set i { width: 5px; height: 5px; background: var(--burgundy); display: inline-block; flex: none; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   STATEMENT / QUOTE
   ============================================================ */
.statement {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(90px, 12vw, 170px) clamp(24px, 5vw, 72px);
}
.statement-media { aspect-ratio: 4 / 5; }
.statement-media img { width: 100%; height: 100%; object-fit: cover; }
.statement-media--low { margin-top: clamp(20px, 4vw, 56px); }

.statement-text { text-align: center; }
.statement-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 22px 0 26px;
}
.statement-attr {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
}

/* ============================================================
   COLLECTION
   ============================================================ */
.collection { padding: clamp(24px, 4vw, 64px) clamp(24px, 5vw, 72px) clamp(80px, 10vw, 140px); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--black);
  padding-top: 26px;
  margin-bottom: clamp(44px, 6vw, 84px);
}
.section-title {
  font-size: clamp(38px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
}
.section-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--burgundy);
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 4vw, 56px) clamp(20px, 4vw, 56px);
}
.product:nth-child(even) { margin-top: clamp(48px, 8vw, 120px); }

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--grey);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.product:hover .product-media img { transform: scale(1.06); }

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--white);
  color: var(--black);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 8px 11px;
}

.product-add {
  position: absolute;
  inset: auto 0 0 0;
  border: 0;
  background: var(--burgundy);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease), background-color 0.35s;
}
.product:hover .product-add,
.product-add:focus-visible { transform: translateY(0); }
.product-add:hover { background: var(--black); }
.product-add.added { background: var(--black); }

.product-info { padding-top: 16px; }
.product-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.product-row h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.price { font-size: 14px; color: var(--ink-60); white-space: nowrap; }
.product-color {
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   STORY
   ============================================================ */
.story {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding: clamp(80px, 10vw, 150px) clamp(24px, 5vw, 72px);
  background: var(--grey);
}
.story-text { position: sticky; top: calc(var(--header-h) + 48px); }
.story-title {
  margin-top: 24px;
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}
.story-title .serif {
  font-weight: 500;
  font-style: normal;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--burgundy);
}
.story-copy { margin-top: 26px; max-width: 380px; color: var(--ink-60); }
.story-meta {
  margin-top: 36px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.story-media { aspect-ratio: 4 / 5; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  text-align: center;
  padding: clamp(90px, 12vw, 160px) clamp(24px, 5vw, 72px);
}
.newsletter-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 1;
  margin: 20px 0 44px;
}
.newsletter-form {
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--hairline);
  border-right: 0;
  background: var(--white);
  padding: 16px 20px;
  font: 400 14px var(--sans);
  color: var(--black);
}
.newsletter-form input::placeholder { color: var(--ink-45); }
.newsletter-form input:focus { outline: none; border-color: var(--black); }
.newsletter-status {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  min-height: 1em;
}

/* ============================================================
   TEST VIEW
   ============================================================ */
.test-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) clamp(20px, 4vw, 40px) clamp(90px, 12vw, 150px);
}

.test-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--burgundy);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.test-title {
  margin: 24px 0 0;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-transform: uppercase;
}
.test-title .serif { font-weight: 500; font-style: normal; text-transform: none; letter-spacing: -0.01em; }

.test-intro { margin-top: 26px; max-width: 560px; font-size: 16px; color: var(--ink-60); }
.test-note { margin-top: 14px; max-width: 560px; font-size: 13px; color: var(--ink-45); }

.test-section {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: clamp(32px, 5vw, 48px);
}
.test-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.test-step span { color: var(--ink-45); margin-left: 12px; font-weight: 600; }
.test-section h2 {
  margin: 14px 0 26px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.test-section p { color: var(--ink-60); }
.test-section p strong { color: var(--black); font-weight: 600; }

.test-request {
  background: var(--grey);
  border-left: 2px solid var(--burgundy);
  padding: 26px 30px;
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.copy-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.copy-row button {
  border: 0;
  background: var(--burgundy);
  color: var(--white);
  padding: 14px 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s;
}
.copy-row button span { margin-left: 12px; }
.copy-row button:hover { background: var(--black); }
#copy-status { color: var(--ink-45); font-size: 13px; }

.muted { font-size: 13px; color: var(--ink-45); }

.test-commands { margin-top: 26px; }
.test-commands > div {
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.test-commands dt, .test-commands dd { margin: 0; }
.test-commands dd { color: var(--ink-60); font-size: 14px; }
.test-commands code {
  color: var(--burgundy);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.test-details {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: clamp(48px, 7vw, 80px);
  padding: 22px 0;
}
.test-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.test-details summary::-webkit-details-marker { display: none; }
.test-details summary::before {
  content: "+";
  color: var(--burgundy);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.test-details[open] summary::before { transform: rotate(45deg); }
.test-details p { margin-top: 14px; font-size: 14px; color: var(--ink-60); max-width: 660px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(56px, 8vw, 100px) clamp(24px, 5vw, 72px) 36px;
  overflow: hidden;
}
.footer-word {
  font-size: clamp(52px, 12.5vw, 210px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-dot { color: var(--burgundy); }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 24px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a {
  color: var(--ink-60);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--burgundy); }
.footer-copy { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-45); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 70;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   SCROLL REVEALS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal-img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal-img img { transform: scale(1.14); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in, .reveal-img.is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.reveal-img.is-in img { transform: scale(1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding-top: calc(var(--header-h) + 56px); padding-bottom: 48px; }
  .hero-media { aspect-ratio: 4 / 5; max-height: 82vh; }
  .hero-media img { animation: none; }

  .statement { grid-template-columns: 1fr; }
  .statement-media { max-width: 420px; width: 100%; margin: 0 auto; }
  .statement-media--low { transform: none; margin-top: 20px; }
  .statement-text { order: -1; }

  .story { grid-template-columns: 1fr; }
  .story-text { position: static; }
}

@media (max-width: 760px) {
  .footer-word { white-space: normal; line-height: 0.9; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .product:nth-child(even) { margin-top: 0; }
  .product-add { transform: translateY(0); }
  .newsletter-form { flex-direction: column; gap: 12px; }
  .newsletter-form input { border-right: 1px solid var(--hairline); }
  .test-commands > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: clamp(46px, 13vw, 64px); }
  .section-head { flex-wrap: wrap; }
  .section-title { font-size: clamp(34px, 10vw, 44px); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
}
