/* ============================================================
   Venice Broncos — design system
   Sun-bleached editorial: bone paper, coffee ink, saddle leather.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-normal-300-700.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-300-700.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f1e8;
  --paper-2: #ede6d7;
  --ink: #201812;
  --ink-soft: #5c4e40;
  --saddle: #a4682f;
  --saddle-deep: #86521f;
  --teal: #39625c;
  --dark: #17120e;
  --dark-2: #211a14;
  --bone: #f5f1e8;
  --line: rgba(32, 24, 18, 0.16);
  --line-strong: rgba(32, 24, 18, 0.4);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --pad: clamp(1.25rem, 4.5vw, 4rem);
  --maxw: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--saddle); color: var(--bone); }

/* ---- grain overlay ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* ---- typography helpers ---- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saddle);
}
.eyebrow--light { color: #d9b083; }

.display {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: "opsz" 90;
  line-height: 1.03;
  letter-spacing: -0.015em;
}
.display em { font-style: italic; font-weight: 340; }

h2.display { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 34em;
}

.rule { border: 0; border-top: 1px solid var(--line); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--bone); }

.btn--solid {
  background: var(--saddle);
  border-color: var(--saddle);
  color: #fff;
}
.btn--solid:hover { background: var(--saddle-deep); border-color: var(--saddle-deep); color: #fff; }

.btn--light { border-color: rgba(245, 241, 232, 0.85); color: var(--bone); }
.btn--light:hover { background: var(--bone); color: var(--ink); }

.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}
.nav--scrolled {
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.nav__logo img {
  height: 52px;
  width: auto;
  transition: filter 0.35s, height 0.35s;
}
.nav--scrolled .nav__logo img { filter: invert(1) brightness(0.25); height: 44px; }
.nav--dark-page .nav__logo img { filter: none; }
.nav--dark-page.nav--scrolled { background: rgba(23, 18, 14, 0.9); }
.nav--dark-page.nav--scrolled .nav__logo img { filter: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style: none;
}
.nav__links a:not(.btn) {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  opacity: 0.92;
  transition: opacity 0.2s, color 0.35s;
}
.nav__links a:not(.btn):hover { opacity: 1; }
.nav--scrolled:not(.nav--dark-page) .nav__links a:not(.btn) { color: var(--ink); }
.nav__links .btn { padding: 0.7em 1.3em; }

.nav--light-page { position: sticky; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.nav--light-page .nav__logo img { filter: invert(1) brightness(0.25); height: 44px; }
.nav--light-page .nav__links a:not(.btn) { color: var(--ink); }

@media (max-width: 720px) {
  .nav__links a.nav__hide-sm { display: none; }
  .nav__logo img { height: 42px; }
  .nav--scrolled .nav__logo img, .nav--light-page .nav__logo img { height: 38px; }
}

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--bone);
  isolation: isolate;
}
.hero__media, .hero__media img, .hero__media picture {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(18, 13, 9, 0.78) 0%, rgba(18, 13, 9, 0.18) 42%, rgba(18, 13, 9, 0.12) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(3rem, 8vh, 5.5rem);
}
.hero__content .display {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  max-width: 11em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__sub {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 36em;
  color: rgba(245, 241, 232, 0.88);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: 2rem;
  z-index: 2;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.7);
  writing-mode: vertical-rl;
  display: none;
}
@media (min-width: 900px) { .hero__scroll { display: block; } }

/* ---- marquee ---- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 0.85rem 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-block;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 1.6rem;
}
.marquee span::after { content: "✦"; margin-left: 3.2rem; color: var(--saddle); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- sections ---- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad);
}
.section--flush { padding-top: 0; }
.section__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head .display { margin-top: 0.9rem; max-width: 16em; text-wrap: balance; }

/* ---- story ---- */
.story {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 880px) { .story { grid-template-columns: 1.05fr 1fr; } }
.story__media { position: relative; }
.story__media img { width: 100%; height: auto; }
.story__media figcaption {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.story__body p + p { margin-top: 1.1rem; }
.story__body .lede { margin-top: 1.2rem; }
.pull {
  margin: 1.8rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--saddle);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 26em;
}
.pull cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---- build cards ---- */
.cards {
  display: grid;
  gap: clamp(1.4rem, 2.6vw, 2.4rem);
}
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card { text-decoration: none; display: block; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), opacity .5s;
}
.card:hover .card__media img { transform: scale(1.04); }
.card__media img.card__alt {
  position: absolute; inset: 0; opacity: 0;
}
.card:hover .card__media img.card__alt { opacity: 1; transform: scale(1.02); }
.card__tag {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  z-index: 2;
  padding: 0.35em 0.9em;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--bone);
  color: var(--ink);
}
.card__tag--sold { background: var(--dark); color: var(--bone); }
.card__tag--avail { background: var(--saddle); color: #fff; }
.card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.card__name {
  font-family: var(--serif);
  font-weight: 420;
  font-size: 1.45rem;
  line-height: 1.15;
}
.card__price {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--saddle-deep);
  white-space: nowrap;
}
.card__spec {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---- dark CTA band ---- */
.band {
  position: relative;
  color: var(--bone);
  isolation: isolate;
  overflow: hidden;
}
.band__media, .band__media img, .band__media picture {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.band__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18, 13, 9, 0.82) 22%, rgba(18, 13, 9, 0.28) 70%, rgba(18,13,9,.15));
}
.band__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 13vw, 9.5rem) var(--pad);
}
.band__inner .display { font-size: clamp(2.3rem, 5.4vw, 4.4rem); max-width: 12em; text-wrap: balance; }
.band__inner .lede { color: rgba(245, 241, 232, 0.85); margin-top: 1.1rem; }
.band__inner .btn { margin-top: 2rem; }

/* ---- process ---- */
.steps {
  display: grid;
  gap: 2.2rem;
  counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .steps { grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 2.4vw, 2.4rem); } }
.step { border-top: 1px solid var(--line-strong); padding-top: 1.2rem; }
.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--saddle);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 440;
  font-size: 1.35rem;
  margin: 0.5rem 0 0.6rem;
}
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---- hardware (in every build) ---- */
.hardware { background: var(--dark); color: var(--bone); }
.hardware .section__head .display { color: var(--bone); }
.hardware__grid {
  display: grid;
  gap: 1px;
  background: rgba(245, 241, 232, 0.14);
  border: 1px solid rgba(245, 241, 232, 0.14);
}
@media (min-width: 640px) { .hardware__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .hardware__grid { grid-template-columns: repeat(3, 1fr); } }
.hardware__cell {
  background: var(--dark);
  padding: 1.8rem 1.6rem;
}
.hardware__cell h3 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  color: #ecdfc9;
}
.hardware__cell p { font-size: 0.88rem; color: rgba(245, 241, 232, 0.62); }
.hardware__cell .eyebrow { display: block; margin-bottom: 0.9rem; }

/* ---- interiors strip ---- */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 460px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--saddle) transparent;
}
.strip figure { scroll-snap-align: start; }
.strip img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.strip figcaption {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---- duo (services/consignment) ---- */
.duo { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo__item { border: 1px solid var(--line); background: #fbf8f1; display: flex; flex-direction: column; }
.duo__item img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.duo__body { padding: 1.8rem 1.7rem 2rem; display: flex; flex-direction: column; flex: 1; }
.duo__body h3 { font-family: var(--serif); font-weight: 440; font-size: 1.6rem; margin: 0.6rem 0; }
.duo__body p { color: var(--ink-soft); font-size: 0.95rem; }
.duo__body .btn { margin-top: auto; align-self: flex-start; margin-top: 1.4rem; }

/* ---- footer ---- */
.footer {
  background: var(--dark);
  color: rgba(245, 241, 232, 0.8);
  margin-top: clamp(4rem, 9vw, 7rem);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad) 2.5rem;
}
.footer__top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 241, 232, 0.14);
}
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__logo img { height: 74px; width: auto; }
.footer__tag { margin-top: 1rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #d9c9ac; }
.footer h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d9b083;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer li + li { margin-top: 0.55rem; }
.footer a { color: rgba(245, 241, 232, 0.8); text-decoration: none; font-size: 0.92rem; }
.footer a:hover { color: #fff; }
.footer__legal {
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(245, 241, 232, 0.42);
}
.footer__legal p { max-width: 52em; }

/* ---- reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- inventory page ---- */
.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(6.5rem, 14vw, 9rem) var(--pad) clamp(2.5rem, 5vw, 4rem);
}
.page-head .display { font-size: clamp(2.5rem, 6vw, 4.6rem); margin-top: 1rem; max-width: 14em; text-wrap: balance; }
.page-head .lede { margin-top: 1.2rem; }

.listing {
  display: grid;
  gap: clamp(1.6rem, 3.2vw, 3rem);
  align-items: start;
  padding: clamp(1.6rem, 3vw, 2.6rem) 0;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 880px) { .listing { grid-template-columns: 1.15fr 1fr; } }
.listing__gallery { display: grid; gap: 0.8rem; }
.listing__gallery img { width: 100%; object-fit: cover; aspect-ratio: 3/2; }
.listing__gallery .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.listing__body .display { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.listing__price {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--saddle-deep);
  margin-top: 0.4rem;
}
.listing__blurb { margin-top: 1.1rem; color: var(--ink-soft); max-width: 38em; }
.spec-table { margin-top: 1.6rem; width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  vertical-align: top;
}
.spec-table th {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  width: 34%;
  padding-right: 1rem;
}
.listing__body .btn { margin-top: 1.8rem; }

.sold-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}
