/* ==========================================================================
   Grand Prix Atelier — site stylesheet
   No framework: design tokens, layout primitives, then one block per section.
   ========================================================================== */

:root {
  --black: #0b0b0b;
  --ink: #141414;
  --charcoal: #1c1c1c;
  --paper: #f4f4f2;
  --white: #ffffff;
  --grey-100: #ebebe9;
  --grey-300: #c9c9c6;
  --grey-500: #8a8a87;
  --grey-700: #4a4a48;
  --red: #d32027;
  --red-dark: #b0161c;

  --font-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Saira', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cinzel', 'Trajan Pro', Georgia, serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--red); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Shared type & UI
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.7;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}
.section-title::after,
.rule::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-700);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.icon { width: 18px; height: 18px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }

.btn--outline-light { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--black); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,.35));
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-solid,
.site-header.is-open {
  background: var(--black);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.page--light-top .site-header { background: var(--black); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand__mark { width: 50px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .14em;
  white-space: nowrap;
}
.brand__tag {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 8.5px;
  letter-spacing: .5em;
  text-align: center;
  opacity: .85;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.icon-btn .icon { width: 22px; height: 22px; }

.nav-toggle { display: none; }

/* Search panel */
.search-panel {
  position: absolute;
  inset: var(--header-h) 0 auto 0;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 12px; }
.search-form input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 18px;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  font-size: 16px;
}
.search-form input::placeholder { color: var(--grey-500); }

/* --------------------------------------------------------------------------
   Hero (mockup 1)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(600px, calc(82vh + 40px), 800px);
  display: flex;
  align-items: center;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 3.2s cubic-bezier(.2, .7, .2, 1) both;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 35%, rgba(0,0,0,.1) 70%, rgba(0,0,0,0) 100%),
    linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 35%),
    linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,0) 20%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
  padding-bottom: 110px;
}
.hero__eyebrow { color: rgba(255,255,255,.9); }
.hero__eyebrow > span { display: block; }
.hero__eyebrow::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  margin: 22px 0 26px;
  background: var(--red);
  transform-origin: left;
  animation: rule-grow .7s cubic-bezier(.2, .7, .2, 1) .65s both;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .9;
  text-transform: uppercase;
}
.hero__title strong {
  display: block;
  font-size: clamp(72px, 9vw, 132px);
  font-weight: 400;
  letter-spacing: .01em;
}
.hero__title > span {
  display: block;
  margin-top: 4px;
  font-size: clamp(44px, 5.2vw, 76px);
  letter-spacing: .04em;
}
.hero__lead {
  max-width: 440px;
  margin: 26px 0 34px;
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 300;
  color: rgba(255,255,255,.88);
}

/* The angled white "tab" that bites into the bottom of the hero */
/* Width = the page's left content edge + room for the four items, so the
   labels never get squeezed or cut by the slant on wide screens. */
.feature-tab {
  --tab-start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: min(100%, calc(var(--tab-start) + 900px));
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 100%, 0 100%);
}
.feature-tab ul {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 24px;
  padding: 17px 96px 17px var(--tab-start);
}
.feature-tab li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}
.feature-tab svg { width: 38px; height: 38px; flex: none; }

/* Hero entrance: slow zoom-out on the photo, then the text builds up in order.
   Each element sets its own start time with --delay. */
.anim-fade { animation: fade-up .9s cubic-bezier(.2, .7, .2, 1) var(--delay, 0s) both; }
.anim-line { display: block; overflow: hidden; padding-bottom: .04em; }
.anim-line > span { display: block; animation: line-up 1s cubic-bezier(.2, .8, .2, 1) var(--delay, 0s) both; }

@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rule-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --------------------------------------------------------------------------
   Categories
   -------------------------------------------------------------------------- */

.categories { padding: 34px 0 48px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
  gap: 12px;
}
.category-tile {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), opacity .3s;
  opacity: .9;
}
.category-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0) 55%);
}
.category-tile__label {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 14px;
  bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.category-tile:hover img { transform: scale(1.06); opacity: 1; }

/* --------------------------------------------------------------------------
   Artwork cards (featured, latest, collection)
   -------------------------------------------------------------------------- */

.featured { padding: 20px 0 64px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.art-card { display: block; }
.art-card__frame {
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: 4 / 3.3;
  padding: 7%;
  background: transparent; /* blends with whatever section the card sits on */
  overflow: hidden;
}
.art-card__frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  transition: transform .5s var(--ease);
}
.art-card__frame--photo { padding: 0; }
.art-card__frame--photo img { width: 100%; height: 100%; object-fit: cover; box-shadow: none; }
.art-card:hover .art-card__frame img { transform: scale(1.035); }
.art-card__body { padding-top: 14px; }
.art-card__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.art-card__meta {
  margin-top: 2px;
  font-size: 13px;
  color: var(--grey-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.art-card__price {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
}
.art-card__price::after {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--red);
  transition: width .3s var(--ease);
}
.art-card:hover .art-card__price::after { width: 64px; }

.empty-note {
  padding: 48px 0;
  text-align: center;
  color: var(--grey-500);
}

/* --------------------------------------------------------------------------
   Craftsmanship band (mockup 1 + mockup 2 bullets)
   -------------------------------------------------------------------------- */

.craft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black);
  color: var(--white);
}
.craft__media { position: relative; min-height: 460px; }
.craft__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.craft__body {
  padding: clamp(48px, 6vw, 88px) var(--gutter);
  max-width: 640px;
  align-self: center;
}
.craft__title {
  margin: 10px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.4vw, 62px);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}
.craft__text {
  max-width: 470px;
  font-weight: 300;
  color: rgba(255,255,255,.85);
}
.craft__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin: 32px 0 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.craft__points li { display: flex; gap: 14px; }
.craft__points svg { width: 30px; height: 30px; flex: none; margin-top: 2px; }
.craft__points strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.craft__points span { font-size: 13px; color: var(--grey-300); line-height: 1.5; }

/* --------------------------------------------------------------------------
   Latest prints carousel + collectors panel (mockup 2)
   -------------------------------------------------------------------------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}
.showcase__latest {
  padding: 48px 0 48px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-right: var(--gutter);
  min-width: 0;
}

.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 2px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__track .art-card__frame { aspect-ratio: 1 / 1; }
.carousel__btn {
  position: absolute;
  top: 38%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(244,244,242,.92);
  cursor: pointer;
  transition: opacity .2s;
}
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
.carousel__btn--prev { left: -20px; }
.carousel__btn--next { right: -20px; }

.collectors {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(28px, 4vw, 64px);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.collectors__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
  filter: grayscale(.6);
}
.collectors > *:not(.collectors__bg) { position: relative; }
.collectors .section-title { font-size: 22px; margin-bottom: 26px; }
.collectors blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.5;
}
.collectors cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey-300);
}
.collectors__slide[hidden] { display: none; }
.collectors__dots { display: flex; gap: 10px; margin-top: 28px; }
.collectors__dots button {
  width: 9px; height: 9px; padding: 0;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.collectors__dots button[aria-current="true"] { background: var(--red); border-color: var(--red); }

/* --------------------------------------------------------------------------
   Collector club newsletter
   -------------------------------------------------------------------------- */

.club {
  position: relative;
  padding: 56px 0;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.club__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
  filter: grayscale(1);
}
.club .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
}
.club__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey-300);
}
.club__eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--red); }
.club__title {
  margin: 12px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.25;
}
.club__text { font-size: 14px; color: var(--grey-300); }

.club-form { display: flex; }
.club-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.35);
  border-right: 0;
  color: var(--white);
}
.club-form input::placeholder { color: var(--grey-500); }
.club-form .btn { min-height: 52px; }
.club-form__hp { position: absolute; left: -9999px; }
.club__notice { margin-top: 12px; font-size: 14px; }
.club__notice--ok { color: #7ed69a; }
.club__notice--error { color: #ff8a8a; }

/* --------------------------------------------------------------------------
   Portfolio (finished pieces) + full-screen viewer
   -------------------------------------------------------------------------- */

.portfolio { padding: 64px 0; }

.portfolio-grid {
  columns: 3 280px;
  column-gap: 16px;
}
.portfolio-item {
  break-inside: avoid;
  margin-bottom: 16px;
}
.portfolio-item a { display: block; overflow: hidden; background: var(--grey-100); }
.portfolio-item img {
  width: 100%;
  transition: transform .6s var(--ease);
}
.portfolio-item a:hover img { transform: scale(1.03); }
.portfolio-item__caption {
  padding-top: 8px;
  font-size: 13px;
  color: var(--grey-700);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--black);
  color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: var(--black); }
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox figure { margin: 0; padding: 56px 72px; max-width: 100%; max-height: 100%; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}
.lightbox figcaption {
  min-height: 1.6em;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-300);
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.lightbox__btn .icon { width: 26px; height: 26px; }
.lightbox__btn:hover { color: var(--red); }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   Footer (mockup 2)
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: 56px 0 0;
  background: var(--black);
  color: var(--grey-300);
  overflow: hidden;
}
.site-footer__bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
  filter: grayscale(1);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60%);
          mask-image: linear-gradient(to right, transparent, #000 60%);
}
.site-footer .container { position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand { color: var(--white); margin-bottom: 18px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-col h3 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-col li + li { margin-top: 6px; }
.footer-col a { font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-quote {
  align-self: center;
  justify-self: end;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: .14em;
  line-height: 1.8;
  text-align: right;
  text-transform: uppercase;
  color: var(--white);
}
.footer-quote::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  margin: 14px 0 0 auto;
  background: var(--red);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: var(--grey-500);
}

/* --------------------------------------------------------------------------
   Collection page
   -------------------------------------------------------------------------- */

.page-hero {
  padding: calc(var(--header-h) + 56px) 0 40px;
  background: var(--black);
  color: var(--white);
}
.page-hero__title {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}
.page-hero__lead { color: var(--grey-300); font-weight: 300; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.tabs a {
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.22);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: border-color .2s, background-color .2s;
}
.tabs a:hover { border-color: var(--white); }
.tabs a[aria-current="page"] { background: var(--red); border-color: var(--red); }

.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: var(--white); }

/* Sales terms */
.legal { padding: 56px 0 88px; }
.legal__inner { max-width: 860px; }
.legal__promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.legal__promise {
  padding: 28px;
  background: var(--white);
  border-top: 2px solid var(--red);
}
.legal__promise svg { width: 34px; height: 34px; color: var(--red); }
.legal__promise h2 { margin: 14px 0 8px; font-size: 26px; }
.legal__promise p { margin: 0; color: var(--grey-700); }
.legal__updated { font-size: 13px; color: var(--grey-500); }
.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
}
.legal p, .legal li { color: var(--grey-700); }
.legal ul { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal a:not(.link-arrow) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal__back { margin-top: 48px; }

.collection { padding: 48px 0 80px; }
.collection .card-grid { row-gap: 44px; }

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 56px;
}
.pagination a {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--grey-300);
  font-size: 14px;
}
.pagination a:hover { border-color: var(--ink); }
.pagination a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .feature-tab { width: min(100%, calc(var(--tab-start) + 560px)); }
  .feature-tab ul { grid-template-columns: repeat(2, auto); justify-content: start; gap: 14px 40px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .footer-quote { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 8px var(--gutter) 24px;
  }
  .main-nav:not(.is-open) { display: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a::after { display: none; }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .craft { grid-template-columns: 1fr; }
  .craft__media { min-height: 300px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase__latest { padding-left: var(--gutter); }
  .carousel__track { grid-auto-columns: calc((100% - 20px) / 2.4); }
  .carousel__btn { display: none; }
  .club .container { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand__mark { width: 42px; }
  .brand__name { font-size: 14px; }
  .brand__tag { font-size: 7.5px; }

  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero__content { padding-top: calc(var(--header-h) + 56px); padding-bottom: 56px; }
  .feature-tab {
    position: relative;
    width: 100%;
    clip-path: none;
  }
  .feature-tab ul { grid-template-columns: 1fr 1fr; padding: 20px var(--gutter); gap: 16px; }
  .feature-tab li { font-size: 11px; gap: 10px; }
  .feature-tab svg { width: 30px; height: 30px; }

  .hero__eyebrow { font-size: 15px; letter-spacing: .16em; }
  .hero__title strong { font-size: 68px; }
  .hero__title > span { font-size: 42px; }
  .section-title { gap: 12px; letter-spacing: .1em; font-size: 22px; }
  .section-title::after { width: 28px; }
  .section-meta > span { display: none; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-tile__label { left: 12px; right: 10px; font-size: 11px; }
  .card-grid { gap: 18px; }
  .craft__points { grid-template-columns: 1fr; }
  .carousel__track { grid-auto-columns: 62%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .legal__promises { grid-template-columns: 1fr; }
  .portfolio { padding: 48px 0; }
  .portfolio-grid { columns: 2; column-gap: 10px; }
  .portfolio-item { margin-bottom: 10px; }
  .lightbox figure { padding: 56px 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
  .site-footer__bg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
