.dcs-nav, .dcs-footer, .dcs-lineup {
  --ink: var(--dc-night);
  --ink-soft: color-mix(in srgb, var(--dc-night) 94%, var(--dc-cream));
  --paper: var(--dc-cream);
  --paper-warm: var(--dc-cream);
  /* Shared Cream surface and its transparent fade. */
  --warm: var(--dc-cream);
  --warm-0: rgba(246,239,228,0);
  --accent: var(--dc-night);
  --accent-light: var(--dc-cream);
  /* Neutral UI accents; the original DC logo remains a brand asset. */
  --accent-mark: var(--dc-cream);
  --muted: rgba(12,12,12, 0.62);
  --muted-invert: rgba(246,239,228, 0.66);
  --rule: rgba(12,12,12, 0.10);

  --serif: "Cormorant Garamond", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 88px);
  /* The page's content column. Every left-aligned section resolves its left
     edge as `min(--shell, 100% - 2 * --gutter)` centred, so headings line up
     down the page at every width. Putting the cap on a box that ALSO carries
     the gutter padding gives a different answer above ~1180px — that is what
     had the video-carousel heading sitting 60px right of the one above it. */
  --shell: 1320px;

  /* Navbar. Every number is the wireframe's own, at its 1440 design width;
     the vw terms resolve to exactly those values there and shrink below it. */
  --nav-h: 80px;
  /* One set of tokens for the whole bar, so re-colouring it is these five
     values and nothing else. Black per the reference; the Figma drop shadow
     is X0 Y4 blur 27, black at 35%. */
  --nav-bg: var(--dc-night);
  --nav-fg: var(--dc-cream);
  --nav-cta-bg: var(--dc-cream);
  --nav-cta-fg: var(--dc-night);
  --nav-shadow: 0 4px 27px rgba(12,12,12, 0.35);
  --nav-r: 32px;            /* bottom corners only */
  --nav-pad: clamp(20px, 5.5556vw, 80px);
  --nav-mark: 64px;
  /* 32px is the gap between the link *boxes*, as specified. Each box carries
     8px of its own side padding (a bigger tap target, and it is what makes the
     rendered word spacing land on the wireframe's ~48px). For 32px of visible
     white space between the words instead, set --nav-link-pad to 0. */
  --nav-gap: 32px;
  --nav-link-pad: 8px;
  --nav-agap: 30px;         /* between the icons and the CTA */
  --nav-fs: 17px;
  --nav-cta-fs: 15px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
.dcs-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  transition: transform .45s var(--ease-out), opacity .5s linear;
  will-change: transform;
}
/* The bar is solid from the start, so hold it back until the loader lifts —
   otherwise a light slab flashes over the black screen. */
html.dcs-loading .dcs-nav { opacity: 0; }

.dcs-nav__bar {
  height: var(--nav-h);
  padding: 0 var(--nav-pad);
  background: var(--nav-bg);
  color: var(--nav-fg);
  border-radius: 0 0 var(--nav-r) var(--nav-r);
  box-shadow: var(--nav-shadow);

  /* 1fr | auto | 1fr keeps the mark dead centre whatever the two sides weigh. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Slide the bar away when the visitor is heading down a full-bleed section,
   bring it straight back the moment they scroll up. */
.dcs-nav.is-away { transform: translateY(-100%); }

/* ---- left: links ---- */
.dcs-nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  justify-self: start;
  /* Pull the first box's padding back out so the word — not the box — starts
     on the bar's 80px content edge, exactly as in the wireframe. */
  margin-left: calc(var(--nav-link-pad) * -1);
}
.dcs-nav__links a {
  display: inline-block;
  font-size: var(--nav-fs);
  line-height: 1;
  font-weight: 400;
  color: var(--nav-fg);
  text-decoration: none;
  padding: 6px var(--nav-link-pad);
  position: relative;
}
/* The page you are on, in the light accent. No underline: the colour alone
   carries it, and it ties the current page to the logo above it. `aria-current`
   is on the link either way, so the state is still announced to a screen reader
   and does not depend on anyone seeing the colour. */
.dcs-nav__links a.is-here,
.dcs-nav__panel a.is-here { color: var(--accent-mark); }
/* Underline grows from the left rather than the link shifting on hover. */
.dcs-nav__links a::after {
  content: "";
  position: absolute;
  left: var(--nav-link-pad); right: var(--nav-link-pad); bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.dcs-nav__links a:hover::after,
.dcs-nav__links a:focus-visible::after { transform: scaleX(1); }

/* ---- centre: the mark the loader flies into ---- */
.dcs-nav__spacer { justify-self: start; }

.dcs-nav__logo {
  width: var(--nav-mark);
  height: var(--nav-mark);
  display: block;
  justify-self: center;
  opacity: 0;
  transition: opacity .35s linear;
}
.dcs-nav__logo.is-visible { opacity: 1; }
.dcs-nav__logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---- right: icons + CTA ---- */
.dcs-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--nav-agap);
  justify-self: end;
}
.dcs-nav__icon {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  opacity: .9;
  transition: opacity .25s linear, transform .25s var(--ease-out);
}
.dcs-nav__icon:hover { opacity: 1; transform: translateY(-1px); }
/* The supplied PNGs are 24x24 solid black. Pinned to that size so they are
   never resampled, and inverted to white for the dark bar — invert flips the
   colour channels and leaves the alpha alone, so the edges stay clean. */
.dcs-nav__icon img {
  width: 24px; height: 24px;
  display: block;
  filter: invert(1);
}

.dcs-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--nav-cta-bg);
  color: var(--nav-cta-fg);
  font-size: var(--nav-cta-fs);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s linear, transform .25s var(--ease-out);
}
.dcs-nav__cta:hover { background: color-mix(in srgb, var(--dc-night) 7%, var(--dc-cream)); transform: translateY(-1px); }

/* ---- phone menu ---- */
.dcs-nav__toggle {
  display: none;
  justify-self: start;
  width: 34px; height: 34px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  /* Flex, not grid: grid's default align-content stretches the two implicit
     rows to the button height, which throws the bars apart and turns the
     crossed "X" state into a chevron. */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dcs-nav__toggle span {
  display: block;
  width: 20px; height: 1.6px;
  background: var(--nav-fg);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s linear;
}
.dcs-nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.dcs-nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.dcs-nav__panel {
  background: var(--nav-bg);
  border-radius: 0 0 var(--nav-r) var(--nav-r);
  box-shadow: var(--nav-shadow);
  margin-top: -1px;
  padding: 6px var(--nav-pad) 18px;
}
.dcs-nav__panel ul { list-style: none; margin: 0; padding: 0; }
.dcs-nav__panel a {
  display: block;
  padding: 11px 0;
  font-size: 16px;
  color: var(--nav-fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(246,239,228, 0.14);
}
.dcs-nav__panel li:last-child a { border-bottom: 0; }

/* ==========================================================================
   2 + 3. Hero and the box-stacking showcase
   ========================================================================== */

.dcs-footer { background: var(--ink); color: var(--dc-cream); position: relative; }
/* The lineup overhangs main's bottom edge by 17.2% of its own width, straight
   into the top of this panel. That space used to be reserved by the lineup
   itself, back when it was the footer's first child; now that it lives in main
   the footer has to reserve it, or the boxes land on top of the columns. The
   figure is the same 17.2% of the same min(1600px, 92vw), so the two stay
   locked together at every width. */
.dcs-footer--lineup { padding-top: calc(0.172 * min(1600px, 92vw)); }
.dcs-footer-spacer { height: 0; }

html.dcs-footer-fixed .dcs-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 0;
}
html.dcs-footer-fixed .dcs-footer-spacer { height: var(--footer-h, 0px); }

/* The lineup. The pull is a percentage of the LINEUP's width, not the page's,
   so the white/black boundary keeps hitting the same point on the boxes even
   once the lineup stops growing on very wide screens. The artwork is 46.3% of
   its width tall, so -17.2% leaves 37.2% of it hanging below main's bottom
   edge and ~62.8% above — the same split as the reference. */
.dcs-lineup {
  position: relative;
  width: min(1600px, 92vw);
  margin: 0 auto;
  pointer-events: none;
  /* flow-root, not a bare block: without a BFC the pull's negative bottom
     margin collapses out through this element and main's height stops
     accounting for the overhang. */
  display: flow-root;
}
.dcs-lineup__pull { margin-bottom: -17.2%; }
.dcs-lineup img { display: block; width: 100%; }
/* One centred column: mark, line, socials. */
.dcs-footer__inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(34px, 6vh, 70px) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dcs-footer__logo { width: clamp(52px, 5vw, 68px); height: auto; margin: 0 0 clamp(16px, 2.4vh, 26px); }
.dcs-footer__blurb {
  font-size: clamp(0.8rem, 1.05vw, 0.95rem);
  line-height: 1.6;
  font-weight: 300;
  color: rgba(246,239,228, 0.82);
  margin: 0 0 clamp(20px, 3vh, 34px);
  max-width: 32rem;
}
.dcs-footer__social { display: flex; justify-content: center; gap: 12px; }
.dcs-footer__social a {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(246,239,228,0.5);
  display: grid; place-items: center;
  color: var(--accent-light);
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.dcs-footer__social a:hover { background: var(--accent-light); color: var(--ink); }
.dcs-footer__social svg { width: 15px; height: 15px; fill: currentColor; }

.dcs-footer__bar {
  max-width: 1320px; margin: clamp(30px, 5vh, 54px) auto 0;
  padding: 16px var(--gutter) 20px;
  border-top: 1px solid rgba(246,239,228,0.09);
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  justify-content: space-between; align-items: center;
  font-size: 0.66rem; font-weight: 300;
  color: rgba(246,239,228,0.46);
}
@media (max-width: 640px) {
  .dcs-footer__bar { flex-direction: column; text-align: center; }
}
.dcs-footer__legal { display: flex; flex-wrap: wrap; gap: 12px 20px; }


.dcs-nav, .dcs-footer { font-family: var(--sans); font-weight: 400; }
.dcs-nav a, .dcs-footer a { text-decoration: none; }
.dcs-footer__legal a { color: inherit; }
.dcs-lineup-stage { background: var(--dc-cream); padding-top: 32px; }
.dcs-lineup img { height: auto; }
.product-page main { position: relative; z-index: 1; }
.product-detail__intro { padding-top: 110px; }
@media(max-width:860px) {
 .dcs-nav { --nav-h:64px; --nav-r:24px; --nav-mark:44px; --nav-agap:16px; --nav-cta-fs:14px; }
 .dcs-nav__cta { min-width:0; height:34px; padding:0 16px; }
 .product-detail__intro { padding-top:94px; }
}

.dcs-nav, .dcs-footer { line-height: normal; }
.product-page main { background: var(--dc-night); }

/* Shared copyright row across the site. */
.dcs-footer__bar { justify-content: center; text-align: center; }
