:root {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.006 95);
  --surface-strong: oklch(0.92 0.025 91);
  --ink: oklch(0.165 0.025 160);
  --muted: oklch(0.43 0.025 160);
  --primary: oklch(0.33 0.087 160);
  --primary-deep: oklch(0.24 0.07 160);
  --primary-soft: oklch(0.82 0.072 158);
  --accent: oklch(0.67 0.13 68);
  --accent-deep: oklch(0.42 0.09 61);
  --line: oklch(0.86 0.012 95);
  --white: oklch(1 0 0);
  --radius: 8px;
  --shadow: 0 22px 70px oklch(0.2 0.03 160 / 0.18);
  --font: Arial, "Helvetica Neue", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
}

body,
button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

button,
select,
input {
  border: 0;
}

.skip-link {
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-160%);
  z-index: 30;
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: oklch(1 0 0 / 0.78);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  justify-content: space-between;
  left: 0;
  min-height: 74px;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  font-weight: 900;
  gap: 0.65rem;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-symbol {
  background: var(--primary);
  border-radius: 10px;
  color: var(--primary);
  fill: var(--white);
  height: 42px;
  padding: 6px;
  width: 42px;
}

.symbol-stitch {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-width: 3;
}

.nav-links {
  align-items: center;
  display: flex;
  flex: 1;
  gap: clamp(0.9rem, 2.5vw, 2rem);
  justify-content: center;
}

.nav-links a,
.site-footer a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--primary);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 850;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 0.7rem;
}

.nav-cta-secondary {
  background: var(--accent);
}

.hero {
  display: grid;
  min-height: calc(88svh - 74px);
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 5rem) clamp(5rem, 8vw, 6.5rem);
  place-items: center start;
  position: relative;
}

.hero::after {
  background:
    linear-gradient(90deg, oklch(0.08 0.015 160 / 0.88), oklch(0.13 0.025 160 / 0.62) 44%, oklch(0.13 0.025 160 / 0.16) 78%),
    linear-gradient(0deg, oklch(0.08 0.012 160 / 0.56), transparent 42%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-scene {
  inset: 0;
  position: absolute;
}

.hero-scene img {
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  width: 100%;
}

.hero-content {
  color: var(--white);
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.kicker {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0 0 0.8rem;
}

.hero h1,
.ads-intro h1 {
  font-family: var(--font);
  font-size: clamp(2.85rem, 6vw, 4.7rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
  max-width: 13ch;
  text-wrap: balance;
}

.hero-copy {
  color: oklch(0.95 0.012 95);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin: 1.4rem 0 2rem;
  max-width: 58ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  align-items: center;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  box-shadow: 0 14px 38px oklch(0.42 0.09 61 / 0.28);
  color: var(--white);
}

.button-secondary {
  background: oklch(1 0 0 / 0.14);
  border: 1px solid oklch(1 0 0 / 0.38);
  color: var(--white);
}

.button-wide {
  width: 100%;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
}

.hero-stats div {
  border-left: 3px solid var(--accent);
  min-width: 132px;
  padding-left: 0.9rem;
}

.hero-stats dt {
  font-size: 1.45rem;
  font-weight: 950;
}

.hero-stats dd {
  color: oklch(0.88 0.02 95);
  margin: 0;
}

.conversion-strip {
  background: var(--primary);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.conversion-strip a {
  border-right: 1px solid oklch(1 0 0 / 0.18);
  font-weight: 900;
  min-height: 70px;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  text-decoration: none;
}

.conversion-strip a:hover {
  background: oklch(1 0 0 / 0.08);
}

.section,
.builder-section,
.delivery-section,
.consult-section,
.site-footer,
.ads-main {
  padding-left: clamp(1rem, 5vw, 5rem);
  padding-right: clamp(1rem, 5vw, 5rem);
}

.intro-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 0.9fr 1.35fr;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

h2 {
  font-family: var(--font);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

h3 {
  font-family: var(--font);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 0.55rem;
}

p {
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

.proof-list {
  display: grid;
  gap: 1px;
}

.proof-list article {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 60px 0.65fr 1fr;
  padding: 1.5rem 0;
}

.proof-index {
  color: var(--accent-deep);
  font-weight: 950;
}

.builder-section {
  background: var(--surface);
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.builder-copy {
  align-self: center;
}

.builder-copy p {
  font-size: 1.08rem;
  margin-top: 1.25rem;
  max-width: 58ch;
}

.check-list {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.check-list li {
  color: var(--ink);
  font-weight: 720;
  padding-left: 1.9rem;
  position: relative;
}

.check-list li::before {
  background: var(--primary);
  border-radius: 50%;
  color: var(--white);
  content: "";
  height: 0.78rem;
  left: 0;
  position: absolute;
  top: 0.42rem;
  width: 0.78rem;
}

.builder-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 1.45rem);
}

.config-stage {
  background:
    radial-gradient(circle at 78% 22%, oklch(0.88 0.08 70 / 0.75), transparent 20%),
    linear-gradient(135deg, oklch(0.92 0.035 158), oklch(0.84 0.04 86));
  border-radius: var(--radius);
  display: grid;
  min-height: 270px;
  overflow: hidden;
  padding: 2rem;
  place-items: center;
}

.config-sofa {
  align-items: end;
  display: grid;
  filter: drop-shadow(0 24px 20px oklch(0.19 0.02 160 / 0.22));
  gap: 0.45rem;
  grid-template-columns: repeat(var(--module-count, 3), minmax(42px, 72px));
}

.config-sofa span {
  background: var(--primary);
  border-radius: 16px 16px 9px 9px;
  box-shadow: inset 0 -18px 0 oklch(0.25 0.065 160 / 0.58);
  display: block;
  height: 116px;
}

.config-sofa span:nth-child(n + 4) {
  display: none;
}

.config-sofa[data-modules="4"] span:nth-child(4),
.config-sofa[data-modules="5"] span:nth-child(4),
.config-sofa[data-modules="5"] span:nth-child(5) {
  display: block;
}

.config-sofa::before,
.config-sofa::after {
  align-self: end;
  background: var(--primary-deep);
  border-radius: 16px 16px 9px 9px;
  content: "";
  height: 98px;
  width: 34px;
}

.config-sofa::before {
  grid-column: 1;
  grid-row: 1;
  transform: translateX(-30px);
}

.config-sofa::after {
  grid-column: -1;
  grid-row: 1;
  justify-self: end;
  transform: translateX(30px);
}

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

label,
.swatch-field legend {
  color: var(--ink);
  display: grid;
  font-weight: 850;
  gap: 0.45rem;
}

select,
input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 48px;
  padding: 0.7rem 0.8rem;
}

input[type="range"] {
  accent-color: var(--primary);
}

.swatch-field {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
}

.swatch-field legend {
  flex-basis: 100%;
  margin-bottom: 0.1rem;
}

.swatch {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
}

.swatch.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.33 0.087 160 / 0.16);
}

.swatch-dot {
  border-radius: 50%;
  display: inline-block;
  height: 18px;
  width: 18px;
}

.swatch-green {
  background: var(--primary);
}

.swatch-oat {
  background: oklch(0.82 0.04 83);
}

.swatch-ink {
  background: oklch(0.24 0.03 246);
}

.quote-box {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.2rem 0;
  padding: 1rem 0;
}

.quote-box p {
  grid-column: 1 / -1;
}

.quote-label {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
}

.quote-box strong {
  display: block;
  font-size: 1.22rem;
}

.product-band {
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.collection-copy {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 0.95fr 1fr;
  margin-bottom: 2rem;
}

.collection-copy p {
  max-width: 62ch;
}

.collection-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.collection-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.collection-item a {
  color: var(--primary);
  font-weight: 900;
}

.collection-photo {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
  width: 100%;
}

.delivery-section {
  background: var(--primary-deep);
  color: var(--white);
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(280px, 0.9fr) 1fr;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.delivery-section p {
  color: oklch(0.9 0.018 160);
}

.delivery-art {
  align-self: center;
  min-height: 420px;
  position: relative;
}

.door-frame {
  border: 18px solid oklch(0.6 0.11 68);
  border-bottom: 0;
  height: 390px;
  margin: 0 auto;
  max-width: 330px;
  position: relative;
}

.box {
  align-items: center;
  background: var(--surface-strong);
  border: 2px solid oklch(0.58 0.08 70);
  color: var(--ink);
  display: flex;
  font-weight: 950;
  justify-content: center;
  position: absolute;
}

.box-one {
  bottom: 0;
  height: 98px;
  left: 30px;
  width: 138px;
}

.box-two {
  bottom: 98px;
  height: 86px;
  right: 28px;
  width: 112px;
}

.box-three {
  bottom: 184px;
  height: 102px;
  left: 66px;
  width: 178px;
}

.delivery-steps {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.delivery-steps div {
  align-items: center;
  border-top: 1px solid oklch(1 0 0 / 0.16);
  display: grid;
  gap: 1rem;
  grid-template-columns: 42px 1fr;
  padding-top: 1rem;
}

.delivery-steps span {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.consult-section {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 0.8fr 1fr;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.consult-section p {
  margin-top: 1rem;
  max-width: 58ch;
}

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

.form-message {
  color: var(--primary);
  font-weight: 850;
  min-height: 1.5rem;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  color: oklch(0.86 0.012 160);
  margin-top: 0.6rem;
}

.ads-page {
  background: var(--surface);
}

.ads-main {
  padding-bottom: 4rem;
  padding-top: 3rem;
}

.ads-intro {
  margin: 0 auto 2.5rem;
  max-width: 900px;
  text-align: center;
}

.ads-intro h1 {
  margin-inline: auto;
  max-width: 14ch;
}

.ads-intro p {
  font-size: 1.1rem;
  margin: 1rem auto 0;
  max-width: 62ch;
}

.ad-grid {
  align-items: start;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin: 0 auto;
  max-width: 1220px;
}

.ad-card {
  aspect-ratio: 9 / 16;
  background-position: center;
  background-size: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.ad-card::after {
  background:
    linear-gradient(180deg, oklch(0.05 0.01 160 / 0.62), oklch(0.08 0.018 160 / 0.14) 42%, oklch(0.05 0.012 160 / 0.72)),
    linear-gradient(90deg, oklch(0.04 0.01 160 / 0.5), transparent 55%),
    radial-gradient(circle at 82% 18%, oklch(0.67 0.13 68 / 0.24), transparent 28%);
  content: "";
  inset: 0;
  position: absolute;
}

.ad-bg {
  filter: saturate(1.08) contrast(1.04) brightness(1.02);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.ad-one {
  background-image: url("assets/sofa-window.jpg");
}

.ad-one .ad-bg {
  object-position: 52% 50%;
}

.ad-two {
  background-image: url("assets/sofa-hero.jpg");
}

.ad-two .ad-bg {
  object-position: 56% 50%;
}

.ad-three {
  background-image: url("assets/sofa-light-sectional.jpg");
}

.ad-three .ad-bg {
  object-position: 50% 50%;
}

.ad-safe {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  padding: clamp(1.1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

.ad-brand {
  align-items: center;
  display: flex;
  font-weight: 950;
  gap: 0.55rem;
}

.ad-brand .brand-symbol {
  background: oklch(1 0 0 / 0.16);
  fill: var(--white);
}

.ad-tag {
  color: oklch(0.94 0.035 80);
  font-weight: 900;
  text-shadow: 0 2px 12px oklch(0.02 0 0 / 0.75);
}

.ad-card h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 950;
  line-height: 1;
  max-width: 10ch;
  text-shadow: 0 3px 18px oklch(0.02 0 0 / 0.78);
}

.ad-copy {
  color: oklch(0.95 0.012 90);
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  font-weight: 700;
  text-shadow: 0 2px 14px oklch(0.02 0 0 / 0.82);
}

.ad-cta {
  align-items: center;
  background: var(--accent);
  border-radius: var(--radius);
  color: var(--white);
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1rem;
}

.ad-two h2 {
  font-size: clamp(1.55rem, 3.45vw, 2.32rem);
  max-width: 11ch;
}

.ad-two .ad-swatch-stack {
  gap: 0.45rem;
  margin-top: auto;
}

.ad-two .swatch-card {
  min-height: 42px;
  padding: 0.62rem 0.85rem;
}

.ad-swatch-stack {
  display: grid;
  gap: 0.8rem;
  margin: 0.5rem 0;
}

.swatch-card {
  border-radius: var(--radius);
  box-shadow: 0 18px 30px oklch(0.07 0 0 / 0.18);
  color: var(--white);
  font-weight: 950;
  min-height: 58px;
  padding: 1rem;
}

.swatch-card.moss {
  background: var(--primary);
  transform: rotate(-4deg);
}

.swatch-card.oat {
  background: oklch(0.82 0.05 83);
  color: var(--ink);
  transform: translateX(16px) rotate(3deg);
}

.swatch-card.ink {
  background: oklch(0.23 0.035 246);
  transform: rotate(-2deg);
}

@media (max-width: 860px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .nav-links {
    flex-basis: 100%;
    justify-content: flex-start;
    order: 3;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .header-actions {
    flex: 1;
    justify-content: flex-end;
  }

  .hero {
    min-height: auto;
    padding-bottom: 2rem;
    padding-top: 2rem;
  }

  .hero::after {
    background:
      linear-gradient(180deg, oklch(0.08 0.015 160 / 0.9), oklch(0.12 0.02 160 / 0.72) 55%, oklch(0.08 0.015 160 / 0.62)),
      linear-gradient(90deg, oklch(0.08 0.015 160 / 0.7), transparent 100%);
  }

  .conversion-strip,
  .intro-grid,
  .builder-section,
  .collection-copy,
  .delivery-section,
  .consult-section {
    grid-template-columns: 1fr;
  }

  .conversion-strip a {
    border-bottom: 1px solid oklch(1 0 0 / 0.18);
    border-right: 0;
  }

  .proof-list article {
    grid-template-columns: 42px 1fr;
  }

  .proof-list article p {
    grid-column: 2;
  }

  .control-grid,
  .quote-box {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-cta {
    flex: 1;
    text-align: center;
  }

  .header-actions {
    flex-basis: 100%;
    order: 2;
  }

  .hero h1,
  .ads-intro h1 {
    font-size: clamp(2.45rem, 14vw, 3.55rem);
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-stats {
    gap: 0.55rem;
    margin-top: 1.2rem;
  }

  .hero-stats div {
    min-width: 126px;
  }

  .ad-card h2 {
    font-size: 2.15rem;
  }
}

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