:root {
  --blue: #0298f9;
  --navy: #0f1f2e;
  --gray: #c7ccd4;
  --orange: #ff6a00;
  --white: #ffffff;
  --ink: var(--navy);
  --muted: #5f6a76;
  --line: #dfe3e8;
  --surface: #f6f8fb;
  --surface-strong: #edf1f5;
  --success-soft: #e8f5ff;
  --danger: #c9442e;
  --shadow: 0 20px 70px rgba(15, 31, 46, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 31, 46, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 50px;
  object-fit: contain;
}

.brand-word {
  color: var(--blue);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 760;
}

.header-nav a {
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 12px 30px rgba(255, 106, 0, 0.24);
}

.button.primary:hover:not(:disabled) {
  background: #e95f00;
}

.button.secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 31, 46, 0.18);
}

.button.secondary:hover:not(:disabled) {
  background: var(--white);
  border-color: rgba(2, 152, 249, 0.45);
}

.button.secondary.light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.44);
}

.button.compact {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.94rem;
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hero-section {
  position: relative;
  display: grid;
  min-height: min(860px, calc(100vh - 78px));
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(15, 31, 46, 0.86), rgba(15, 31, 46, 0.58) 48%, rgba(15, 31, 46, 0.24));
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-section .eyebrow {
  color: #ffb06e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.9rem, 6.5vw, 6.4rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.12;
}

p {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.13rem);
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-copy-block .button {
  margin-top: 14px;
}

.hero-quote {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 26px);
}

.hero-quote .quote-heading {
  width: auto;
  margin: 0 0 18px;
}

.hero-quote .quote-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.hero-quote .quote-heading p:last-child {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.hero-quote .quote-app {
  width: 100%;
}

.hero-quote .checkout-screen {
  gap: 18px;
}

.hero-quote .checkout-header {
  align-items: start;
  flex-direction: column;
}

.hero-quote .checkout-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

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

.hero-quote .preview-frame {
  min-height: 250px;
}

.section-block {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(74px, 10vw, 118px) 0 0;
}

.project-section {
  padding-top: clamp(42px, 6vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 46px);
}

.section-heading p:last-child,
.quote-heading p:last-child {
  max-width: 630px;
}

.carousel-shell {
  display: grid;
  gap: 18px;
}

.project-carousel {
  display: grid;
  grid-auto-columns: minmax(300px, 39%);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-padding: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--blue) transparent;
}

.project-card {
  display: grid;
  min-height: 520px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(15, 31, 46, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 12px 42px rgba(15, 31, 46, 0.09);
  color: inherit;
  scroll-snap-align: start;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-card:hover {
  border-color: rgba(2, 152, 249, 0.36);
  box-shadow: 0 16px 48px rgba(15, 31, 46, 0.14);
  transform: translateY(-3px);
}

.featured-card {
  grid-auto-columns: 1fr;
}

.project-image {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: var(--surface-strong);
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.025);
}

.project-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
}

.card-kicker {
  margin: 0;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.starting-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1.22rem;
  font-weight: 950;
}

.starting-price span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.carousel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  border-color: rgba(2, 152, 249, 0.42);
}

.process-grid,
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-grid article,
.contact-panel,
.faq-list details {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 31, 46, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 12px 42px rgba(15, 31, 46, 0.07);
}

.process-grid article {
  padding: clamp(20px, 3vw, 30px);
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 950;
}

.quote-heading {
  width: min(1180px, 100%);
  margin: 0 auto clamp(26px, 5vw, 44px);
}

.quote-app {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.upload-screen {
  display: grid;
}

.dropzone {
  display: grid;
  min-height: 320px;
  padding: 28px;
  place-items: center;
  text-align: center;
  background: var(--white);
  border: 2px dashed rgba(2, 152, 249, 0.42);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  background: #f5fbff;
  border-color: var(--blue);
  transform: translateY(-2px);
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
  font-size: 2.4rem;
  font-weight: 300;
}

.dropzone strong {
  margin-top: 18px;
  font-size: 1.35rem;
}

.dropzone span:last-child,
.file-meta span,
.price-panel small,
.form-status {
  color: var(--muted);
}

.checkout-screen {
  display: grid;
  gap: 24px;
}

.checkout-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.checkout-header h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.preview-panel,
.order-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid rgba(111, 63, 34, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 12px 50px rgba(42, 35, 24, 0.08);
}

.preview-frame {
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d0d6c8;
  border-radius: var(--radius);
}

#file-preview {
  width: calc(100% - 34px);
  height: calc(100% - 34px);
  max-height: 500px;
}

#file-preview * {
  fill: #eee8db;
  stroke: #141414;
  stroke-width: 0.95;
  vector-effect: non-scaling-stroke;
}

#file-preview line,
#file-preview polyline {
  fill: none;
}

.file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.order-panel {
  position: sticky;
  top: 98px;
}

label {
  display: grid;
  gap: 7px;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 7px;
  font: inherit;
}

.price-panel {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
}

.price-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.price-panel strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.price-panel.accepted {
  background: var(--success-soft);
  border-color: rgba(2, 152, 249, 0.38);
}

.price-panel.rejected {
  background: #fff1ec;
  border-color: #e9a392;
}

.price-panel.rejected strong {
  color: var(--danger);
  font-size: 1.35rem;
}

.form-status {
  min-height: 24px;
  margin: 18px 0 0;
  text-align: center;
}

.materials-section {
  padding-top: clamp(74px, 10vw, 118px);
}

.material-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.material-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 166px;
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(15, 31, 46, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 7px 0 rgba(15, 31, 46, 0.18), 0 12px 42px rgba(15, 31, 46, 0.06);
}

.material-swatch {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  border: 1px solid rgba(15, 31, 46, 0.12);
}

.birch-swatch {
  background:
    linear-gradient(90deg, rgba(108, 78, 38, 0.12), rgba(255, 255, 255, 0.18) 18%, rgba(98, 73, 39, 0.1) 38%, rgba(255, 255, 255, 0.12) 64%, rgba(89, 64, 31, 0.1)),
    radial-gradient(circle at 30% 24%, rgba(120, 92, 54, 0.18), transparent 22%),
    #d7c095;
}

.mdf-swatch {
  background:
    radial-gradient(circle at 20% 28%, rgba(91, 67, 43, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 42%, rgba(105, 77, 50, 0.25) 0 2px, transparent 3px),
    radial-gradient(circle at 48% 78%, rgba(80, 58, 38, 0.3) 0 1px, transparent 3px),
    radial-gradient(circle at 84% 74%, rgba(112, 82, 54, 0.22) 0 2px, transparent 4px),
    #b99b75;
}

.acrylic-swatch {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(199, 204, 212, 0.24) 52%, rgba(2, 152, 249, 0.14)),
    var(--white);
}

.material-details h3 {
  margin-bottom: 4px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

.material-details p {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 0.94rem;
}

.thickness-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thickness-list span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  color: #4f5a66;
  background: #edf0f3;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 900;
}

.faq-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
  padding-bottom: clamp(74px, 10vw, 118px);
}

.compact-heading {
  margin-bottom: 22px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list details + details {
  margin-top: 12px;
}

.faq-list summary {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  cursor: pointer;
}

.faq-list details p {
  margin: 14px 0 0;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--navy);
}

.contact-panel .eyebrow {
  color: #ffb06e;
}

.contact-panel h2,
.contact-panel p {
  color: var(--white);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.contact-form label {
  color: var(--white);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(199, 204, 212, 0.8);
  border-radius: 7px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

.contact-status.is-error {
  color: #ffd6c2;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid rgba(15, 31, 46, 0.12);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 760;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue);
}

.is-hidden {
  display: none;
}

@media (max-width: 980px) {
  .header-nav {
    display: none;
  }

  .project-carousel {
    grid-auto-columns: minmax(300px, 74%);
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: clamp(54px, 8vw, 84px) 0;
  }

  .process-grid,
  .material-grid,
  .faq-contact,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .order-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
  }

  .header-cta {
    display: none;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-section::after {
    background: linear-gradient(180deg, rgba(15, 31, 46, 0.58), rgba(15, 31, 46, 0.9));
  }

  .hero-content {
    padding-top: 54px;
  }

  .project-carousel {
    grid-auto-columns: minmax(280px, 88%);
  }

  .project-section {
    padding-top: 34px;
  }

  .project-card {
    min-height: 500px;
  }

  .checkout-header {
    align-items: start;
    flex-direction: column;
  }

  .preview-frame {
    min-height: 360px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .button {
    width: 100%;
  }

  .brand-mark {
    width: 46px;
    height: 42px;
  }

  .brand-word {
    font-size: 1.45rem;
  }

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

  .dropzone {
    min-height: 320px;
    padding: 24px;
  }

  .material-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .material-swatch {
    width: 64px;
    height: 64px;
  }
}
