:root {
  --canvas: #f5efe6;
  --surface: #fffaf2;
  --warm: #e8ded1;
  --ink: #171413;
  --muted: #6b6259;
  --line: rgba(23, 20, 19, 0.16);
  --deep: #18465f;
  --night: #0d2738;
  --pool: #80c7da;
  --citrus: #f0c64d;
  --aperol: #e7674f;
  --sage: #73834a;
  --shadow: 0 24px 80px rgba(23, 20, 19, 0.16);
  --radius: 6px;
  --header: 76px;
  --font-body: "Poppins", Arial, sans-serif;
  --font-display: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  background: var(--ink);
  color: var(--surface);
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-150%);
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  align-items: center;
  background: rgba(245, 239, 230, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: var(--header);
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(1rem, 4vw, 3.5rem);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, box-shadow 180ms ease;
  z-index: 30;
}

.site-header.scrolled {
  background: rgba(245, 239, 230, 0.96);
  box-shadow: 0 10px 30px rgba(23, 20, 19, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 800;
  gap: 0.75rem;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background:
    linear-gradient(135deg, transparent 48%, var(--ink) 49%, var(--ink) 52%, transparent 53%),
    conic-gradient(from 45deg, var(--pool), var(--citrus), var(--aperol), var(--sage), var(--pool));
  border: 1px solid var(--ink);
  border-radius: 2px;
  display: inline-flex;
  font-size: 0.72rem;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  opacity: 0.68;
  padding: 0.5rem 0;
  position: relative;
}

.site-nav a::after {
  background: currentColor;
  bottom: 0.25rem;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
  width: 100%;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  opacity: 1;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  display: none;
  height: 2.6rem;
  padding: 0;
  position: relative;
  width: 2.6rem;
  z-index: 35;
}

.nav-toggle span {
  background: var(--ink);
  height: 2px;
  left: 0.55rem;
  position: absolute;
  transition: transform 180ms ease;
  width: 1.45rem;
}

.nav-toggle span:first-child {
  top: 0.88rem;
}

.nav-toggle span:last-child {
  bottom: 0.88rem;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.4rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.4rem) rotate(-45deg);
}

main {
  padding-top: var(--header);
}

.home-hero,
.page-hero {
  background:
    linear-gradient(90deg, rgba(13, 39, 56, 0.84), rgba(13, 39, 56, 0.34) 52%, rgba(23, 20, 19, 0.58)),
    var(--hero-image) center / cover no-repeat;
  color: var(--surface);
  min-height: calc(86svh - var(--header));
  position: relative;
}

.home-hero::after,
.page-hero::after {
  background:
    repeating-linear-gradient(90deg, rgba(255, 250, 242, 0.09) 0 1px, transparent 1px 9vw),
    repeating-linear-gradient(0deg, rgba(255, 250, 242, 0.06) 0 1px, transparent 1px 9vw);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-inner,
.page-hero > div {
  display: grid;
  min-height: inherit;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 5rem);
  place-content: end start;
  position: relative;
  z-index: 2;
}

.home-hero h1,
.page-hero h1,
.about-page h1,
.product-info h1 {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 9vw, 9rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
  max-width: 10ch;
}

.home-hero p,
.page-hero p,
.feature-band p,
.lead {
  font-size: clamp(1rem, 1.5vw, 1.26rem);
  max-width: 42rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.hero-note {
  border-top: 1px solid rgba(255, 250, 242, 0.38);
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}

.hero-note span {
  border-right: 1px solid rgba(255, 250, 242, 0.38);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  text-transform: uppercase;
}

.hero-note span:last-child {
  border-right: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.05rem;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-light {
  background: var(--surface);
  color: var(--ink);
}

.button-outline-light {
  border: 1px solid var(--surface);
  color: var(--surface);
}

.button-dark {
  background: var(--ink);
  color: var(--surface);
}

.button-outline {
  border: 1px solid var(--ink);
}

.tone-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-height: 0.75rem;
}

.tone-strip span {
  background: var(--tone);
}

.section {
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.intro-section {
  align-items: end;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
}

.section-header {
  max-width: 58rem;
}

.section h2,
.feature-band h2,
.product-info h1,
.about-copy h1,
.cv-column h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.section h2,
.feature-band h2 {
  font-size: clamp(2.35rem, 5.5vw, 5.6rem);
  margin: 0;
}

.lead {
  color: var(--muted);
  margin: 0;
}

.series-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 2rem;
}

.series-card,
.product-card,
.event-card,
.rail-card,
.representation-grid article,
.contact-grid article,
.related-row a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.series-card,
.product-card {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.75rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.series-card:hover,
.series-card:focus-visible,
.product-card:hover,
.product-card:focus-visible {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.series-card img,
.product-card img {
  aspect-ratio: 1;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
}

.series-card span,
.product-card span,
.event-card span,
.rail-card span,
.representation-grid span,
.contact-grid span,
.related-row span {
  color: var(--deep);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.series-card strong,
.product-card strong,
.rail-card strong,
.related-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
}

.series-card small,
.product-card small {
  color: var(--muted);
  display: block;
}

.feature-band {
  align-items: center;
  background: var(--night);
  color: var(--surface);
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1.3fr);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 5rem);
}

.feature-band .eyebrow,
.feature-band .text-link {
  color: var(--citrus);
}

.image-mosaic {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.image-button {
  background: transparent;
  border: 0;
  display: block;
  overflow: hidden;
  padding: 0;
}

.image-button img {
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  transition: transform 220ms ease;
}

.image-button:hover img,
.image-button:focus-visible img {
  transform: scale(1.035);
}

.text-link {
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 1rem;
  padding-bottom: 0.2rem;
  position: relative;
  text-transform: uppercase;
}

.text-link::after {
  background: currentColor;
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
}

.compact-section {
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
  padding-top: clamp(2.75rem, 5vw, 4.5rem);
}

.rail-grid,
.representation-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rail-card,
.contact-grid article,
.representation-grid article {
  display: grid;
  gap: 1rem;
  min-height: 12rem;
  padding: 1.25rem;
}

.rail-card strong,
.contact-grid h2,
.representation-grid h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  line-height: 1.05;
  margin: 0;
}

.page-hero {
  min-height: 48svh;
}

.page-hero + .section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 7rem);
}

.tone-sun {
  background:
    linear-gradient(90deg, rgba(23, 20, 19, 0.76), rgba(231, 103, 79, 0.28)),
    var(--hero-image) center / cover no-repeat;
}

.tone-fizz {
  background:
    linear-gradient(90deg, rgba(23, 20, 19, 0.74), rgba(240, 198, 77, 0.24)),
    var(--hero-image) center / cover no-repeat;
}

.tone-coast {
  background:
    linear-gradient(90deg, rgba(13, 39, 56, 0.82), rgba(128, 199, 218, 0.22)),
    var(--hero-image) center / cover no-repeat;
}

.tone-night {
  background:
    linear-gradient(90deg, rgba(13, 39, 56, 0.9), rgba(23, 20, 19, 0.34)),
    var(--hero-image) center / cover no-repeat;
}

.statement-section,
.archive-detail,
.about-page,
.product-page {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1.2fr);
}

.statement-copy p,
.about-copy p,
.product-info p,
.archive-detail p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  margin: 0;
}

.statement-copy p + p,
.about-copy p + p {
  margin-top: 1rem;
}

.art-grid,
.product-grid,
.event-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.art-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  padding: 0.75rem;
}

.art-card figcaption {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.15rem 0.15rem;
}

.art-card strong {
  font-family: var(--font-display);
  line-height: 1.1;
}

.art-card span,
.event-card small,
.product-card small {
  color: var(--muted);
  font-size: 0.85rem;
}

.related-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.related-row a {
  display: grid;
  gap: 0.8rem;
  min-height: 8rem;
  padding: 1rem;
}

.muted-section {
  background: var(--warm);
  box-shadow: 0 0 0 100vmax var(--warm);
  clip-path: inset(0 -100vmax);
}

.archive-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 2rem;
}

.archive-list a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.archive-list img {
  aspect-ratio: 1;
  object-fit: cover;
}

.archive-list span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.7rem;
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.pill-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.65rem 0.9rem;
  text-transform: uppercase;
}

.pill-nav a.active,
.pill-nav a:hover,
.pill-nav a:focus-visible {
  background: var(--ink);
  color: var(--surface);
}

.event-card {
  overflow: hidden;
}

.event-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event-card div {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
}

.event-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1;
  margin: 0;
}

.event-card p,
.contact-grid p,
.representation-grid p,
.signup-form p {
  color: var(--muted);
  margin: 0;
}

.cv-section {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.78fr 1.15fr 1fr;
}

.cv-column {
  display: grid;
  gap: 1.4rem;
}

.cv-column h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin: 0;
}

.year-group {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
  padding-top: 1rem;
}

.year-group > span {
  color: var(--deep);
  font-family: var(--font-display);
  font-weight: 800;
}

.clean-list {
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-page,
.product-page {
  margin: 0 auto;
  max-width: 1240px;
  min-height: calc(100svh - var(--header));
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.about-image img,
.product-media img,
.archive-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-info .price {
  color: var(--deep);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 1rem 0;
}

.contact-grid {
  align-items: stretch;
}

.form-section {
  max-width: 760px;
}

.signup-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
}

.signup-form label {
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.35rem;
  text-transform: uppercase;
}

.signup-form input {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 3rem;
  padding: 0.75rem;
}

.site-footer {
  align-items: end;
  background: var(--ink);
  color: var(--surface);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
}

.site-footer div:first-child {
  display: grid;
  gap: 0.2rem;
  max-width: 36rem;
}

.site-footer strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.site-footer span,
.footer-links {
  color: rgba(255, 250, 242, 0.7);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.lightbox {
  align-items: center;
  background: rgba(23, 20, 19, 0.92);
  display: grid;
  inset: 0;
  justify-items: center;
  opacity: 0;
  padding: 4rem 1.5rem 2rem;
  pointer-events: none;
  position: fixed;
  transition: opacity 160ms ease;
  z-index: 60;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 78vh;
  max-width: min(88vw, 920px);
  object-fit: contain;
  width: auto;
}

.lightbox p {
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 800;
}

.lightbox-close {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
  height: 2.7rem;
  position: fixed;
  right: 1.25rem;
  top: 1.25rem;
  width: 2.7rem;
}

.fallback {
  min-height: 100svh;
  padding: 4rem;
}

@media (max-width: 1080px) {
  .series-grid,
  .art-grid,
  .product-grid,
  .event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .archive-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  :root {
    --header: 68px;
  }

  .nav-toggle {
    display: block;
    position: fixed;
    right: 1rem;
    top: 0.85rem;
  }

  .site-nav {
    align-content: center;
    background: var(--canvas);
    display: grid;
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 4rem);
    gap: 0.35rem;
    inset: 0;
    padding: 6rem 1.25rem 2rem;
    position: fixed;
    transform: translateX(100%);
    transition: transform 220ms ease;
    z-index: 32;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav a {
    opacity: 1;
  }

  .home-hero,
  .page-hero {
    min-height: calc(82svh - var(--header));
  }

  .home-hero h1,
  .page-hero h1,
  .about-page h1,
  .product-info h1 {
    font-size: clamp(3.2rem, 15vw, 6.5rem);
  }

  .intro-section,
  .feature-band,
  .statement-section,
  .archive-detail,
  .about-page,
  .product-page,
  .cv-section {
    grid-template-columns: 1fr;
  }

  .series-grid,
  .art-grid,
  .product-grid,
  .event-grid,
  .rail-grid,
  .representation-grid,
  .contact-grid,
  .related-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .brand span:last-child {
    display: none;
  }

  .nav-toggle {
    left: min(82vw, 21rem);
    right: auto;
  }

  .home-hero,
  .page-hero {
    background:
      linear-gradient(180deg, rgba(13, 39, 56, 0.45), rgba(13, 39, 56, 0.86)),
      var(--hero-image) center / cover no-repeat;
  }

  .hero-inner,
  .page-hero > div {
    padding-bottom: 4rem;
  }

  .home-hero p,
  .page-hero p {
    max-width: 20rem;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 14vw, 5.5rem);
    max-width: 7.4ch;
  }

  .page-hero h1,
  .about-page h1,
  .product-info h1 {
    overflow-wrap: break-word;
  }

  .section h2,
  .feature-band h2 {
    font-size: clamp(2rem, 8.5vw, 3rem);
  }

  .hero-note {
    grid-template-columns: 1fr;
  }

  .hero-note span {
    border-right: 0;
    padding-bottom: 0.45rem;
    padding-top: 0.45rem;
  }

  .hero-note span:nth-child(2) {
    display: none;
  }

  .button-row,
  .site-footer,
  .footer-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section,
  .about-page,
  .product-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .series-grid,
  .art-grid,
  .product-grid,
  .event-grid,
  .rail-grid,
  .representation-grid,
  .contact-grid,
  .related-row,
  .archive-list {
    grid-template-columns: 1fr;
  }

  .tone-strip {
    grid-template-columns: repeat(7, minmax(2rem, 1fr));
  }
}
