:root {
  --olive-night: #22261A;
  --olive-deep: #2B3019;
  --olive: #3F4A22;
  --olive-line: #3A402A;
  --sage: #DCDDC4;
  --sage-soft: #B9BCA0;
  --sage-dim: #8F937A;
  --ink-muted: #4A4F37;
  --burgundy: #6B1E2B;
  --burgundy-deep: #5E1A26;
  --sand: #F1E3D8;
  --sand-soft: #E3CFC4;
  --sand-dim: #C9A9A0;
  --amber: #F3B54A;
  --paper: #EDEEDD;

  --display: "Big Shoulders Display", "Archivo", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-swing: cubic-bezier(.7, 0, .2, 1);

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--olive-night);
  color: var(--sage);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.defs { position: absolute; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--amber);
  color: var(--olive-night);
  padding: 8px 14px;
  font-weight: 700;
}
.skip:focus { top: 12px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

.section-lede {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: 1.15rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.btn-small { min-height: 44px; padding: 0 20px; font-size: 1rem; }

.btn-amber { background: var(--amber); color: var(--olive-night); }
.btn-amber:hover { background: var(--sage); }

.btn-light { background: var(--sage); color: var(--olive-night); }
.btn-light:hover { background: var(--amber); }

.btn-outline { box-shadow: inset 0 0 0 2px var(--sage); color: var(--sage); }
.btn-outline:hover { background: var(--sage); color: var(--olive-night); }

.btn-paper { background: var(--paper); color: var(--olive-night); }
.btn-paper:hover { background: var(--amber); }

/* Header */

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  margin-right: auto;
  text-decoration: none;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
}

.wordmark-loop {
  width: 0.92em;
  height: 0.46em;
  margin: 0 0.02em;
  fill: none;
  stroke: var(--amber);
  stroke-width: 5.4;
  stroke-linecap: round;
  overflow: visible;
}

.top-nav { display: flex; gap: 32px; }
.top-nav a { text-decoration: none; font-weight: 500; color: var(--sage-soft); }
.top-nav a:hover { color: var(--sage); }

/* Hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(64px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(3.6rem, 8.4vw, 8rem);
  max-width: 11ch;
}

.lede {
  margin: 32px 0 0;
  max-width: 44ch;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  color: var(--sage-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.scope { margin: 0; }

.scope-screen {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 32px;
  background:
    linear-gradient(rgba(243, 181, 74, .08) 1px, transparent 1px) center / 10% 12.5%,
    linear-gradient(90deg, rgba(243, 181, 74, .08) 1px, transparent 1px) center / 10% 12.5%,
    radial-gradient(120% 100% at 50% 40%, #2A2410 0%, #120F07 72%);
  box-shadow:
    inset 0 0 0 1px rgba(243, 181, 74, .18),
    inset 0 0 90px rgba(0, 0, 0, .7),
    0 0 0 12px #2F3522,
    0 40px 80px -30px rgba(0, 0, 0, .6);
  overflow: hidden;
  cursor: crosshair;
  touch-action: pan-y;
}

.scope-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(243, 181, 74, .2), rgba(243, 181, 74, .2)) center / 100% 1px no-repeat,
    linear-gradient(rgba(243, 181, 74, .2), rgba(243, 181, 74, .2)) center / 1px 100% no-repeat;
  pointer-events: none;
}

#scope { position: absolute; inset: 0; width: 100%; height: 100%; }

.scope-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 26px;
  padding: 0 6px;
  font-size: 0.92rem;
  color: var(--sage-soft);
}

.scope-readout output {
  margin-left: 4px;
  color: var(--sage);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scope-hint { margin-left: auto; }

/* Marquees */

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.ticker {
  background: var(--burgundy);
  padding: 18px 0;
  overflow: hidden;
}

.ticker .marquee-set { gap: 36px; padding-right: 36px; }

.ticker span {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--sand);
  white-space: nowrap;
}

.ticker svg, .band-marquee svg {
  flex: 0 0 auto;
  fill: none;
  stroke: var(--amber);
  stroke-linecap: round;
}

.ticker svg { width: 36px; height: 20px; stroke-width: 3; }

/* Work */

.work {
  background: var(--sage);
  color: var(--olive-night);
  padding: clamp(80px, 10vw, 128px) 0 clamp(80px, 9vw, 120px);
}

.work-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.work h2,
.services h2 {
  font-size: clamp(4.6rem, 13vw, 12.5rem);
  line-height: 0.84;
}

.work .section-lede { color: var(--ink-muted); }

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.carousel-count {
  margin-right: 6px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.round-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid var(--olive-night);
  background: transparent;
  color: var(--olive-night);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.round-btn:hover { background: var(--olive-night); color: var(--sage); }
.round-btn-solid { background: var(--olive-night); color: var(--sage); }
.round-btn-solid:hover { background: var(--burgundy); border-color: var(--burgundy); }

.round-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel {
  margin-top: clamp(40px, 6vw, 64px);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.carousel.is-dragging { cursor: grabbing; }

.carousel-track {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  will-change: transform;
}

.panel {
  --shift: 0px;
  flex: 0 0 auto;
  width: min(1120px, 80vw);
  min-height: 600px;
  border-radius: 36px;
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--paper);
  opacity: 0.5;
  transition: opacity 600ms ease;
}
.panel.is-active { opacity: 1; }

.panel-claims { background: var(--olive); }
.panel-mindling { background: var(--burgundy); }
.panel-smak { background: var(--olive-deep); }

.panel-sig {
  position: absolute;
  left: -60px;
  top: 50%;
  width: 560px;
  height: 560px;
  transform: translate(calc(var(--shift) * -0.15), -50%);
  fill: none;
  stroke: var(--amber);
  stroke-opacity: 0.3;
  stroke-width: 1.4;
  pointer-events: none;
}

.panel-sig path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.panel.is-active .panel-sig path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2200ms var(--ease-out) 200ms;
}

.panel-shot {
  position: relative;
  display: flex;
  justify-content: center;
  transform: translateX(calc(var(--shift) * 0.35));
}

.panel-shot img {
  width: 272px;
  height: 560px;
  object-fit: cover;
  object-position: top;
  border-radius: 40px;
  box-shadow: 0 0 0 8px #11130C, 0 40px 60px -20px rgba(0, 0, 0, .6);
  transform: rotate(var(--tilt, -3deg));
  pointer-events: none;
}
.panel-mindling { --tilt: 3deg; }

.panel.is-settling .panel-shot,
.panel.is-settling .panel-sig { transition: transform 1200ms var(--ease-out); }

.panel-body { position: relative; }

.panel-title { display: flex; align-items: center; gap: 18px; }
.panel-title img { width: 64px; height: 64px; border-radius: 16px; }

.panel h3 {
  font-size: clamp(3.4rem, 6.5vw, 6.5rem);
  line-height: 0.86;
}

.panel-body > p {
  margin: 28px 0 0;
  max-width: 40ch;
  font-size: 1.15rem;
  color: #D8DAC4;
}

.facts {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  font-size: 0.95rem;
}
.facts dt { color: #C3C6AA; }
.facts dd { margin: 4px 0 0; font-weight: 600; }

.panel .btn { margin-top: 36px; min-height: 50px; padding: 0 24px; }

/* Services */

.services {
  background: var(--burgundy-deep);
  color: var(--sand);
  padding: clamp(80px, 10vw, 128px) 0 clamp(40px, 6vw, 72px);
}

.services h2 {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.bands { margin-top: clamp(40px, 6vw, 72px); }

.band {
  border-top: 1px solid rgba(241, 227, 216, .25);
  padding: 36px 0 44px;
}

.band-marquee { overflow: hidden; }

.band .marquee-set { gap: 40px; padding-right: 40px; }

.band-marquee span {
  font-family: var(--display);
  font-size: clamp(5.2rem, 13vw, 13.5rem);
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  transition: font-weight 700ms var(--ease-out);
}

.band-marquee .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--sand);
}

.band-marquee svg { width: 88px; height: 48px; stroke-width: 2.4; }

.band:hover .band-marquee span,
.band:focus-within .band-marquee span { font-weight: 300; }

.band-detail {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.band-detail h3 {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
}

.band-detail p {
  margin: 0;
  max-width: 52ch;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--sand-soft);
}

.band-detail .band-tags {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--sand-dim);
}

/* Contact */

.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(88px, 10vw, 128px) var(--gutter) clamp(72px, 8vw, 96px);
}

.contact h2 {
  font-size: clamp(3.6rem, 8vw, 8rem);
  max-width: 13ch;
}

.contact .section-lede { color: var(--sage-soft); max-width: 48ch; }

.contact-mail {
  display: inline-grid;
  margin-top: clamp(36px, 5vw, 56px);
  font-family: var(--display);
  font-size: clamp(3rem, 10.5vw, 10.5rem);
  line-height: 1;
  font-weight: 900;
  color: var(--amber);
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* The hidden copy keeps the link at its widest size, so the hover area doesn't shrink out from under the pointer. */
.contact-mail-text,
.contact-mail-size {
  grid-area: 1 / 1;
}

.contact-mail-size { visibility: hidden; }

.contact-mail-text { transition: font-weight 500ms var(--ease-out); }

.contact-mail:hover .contact-mail-text,
.contact-mail:focus-visible .contact-mail-text { font-weight: 300; }

/* Footer */

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 44px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--olive-line);
  font-size: 0.95rem;
  color: var(--sage-dim);
}
.foot a { color: var(--sage-soft); }

/* Responsive */

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .top-nav { display: none; }

  .panel {
    width: 86vw;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .panel-shot { order: 2; }
  .panel-shot img { width: 200px; height: 412px; }
  .panel-sig { width: 420px; height: 420px; top: 72%; }

  .band-detail { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 560px) {
  .top .btn-small { display: none; }
  .scope-hint { margin-left: 0; width: 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .carousel-controls { width: 100%; }
  .carousel-count { margin-right: auto; }
  .contact-mail { font-size: 13.5vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .round-btn, .panel, .contact-mail-text, .band-marquee span { transition: none; }
  .panel-sig path { stroke-dashoffset: 0; }
  .panel.is-active .panel-sig path { transition: none; }
}
