:root {
  --ink: #332722;
  --muted: #75635b;
  --paper: #fffaf3;
  --surface: #f7eee5;
  --line: #e5d3c2;
  --accent: #b67d57;
  --accent-dark: #704934;
  --sage: #788b72;
  --denim: #405d6c;
  --rose: #c98480;
  --clay: #d7aa7c;
  --cream: #fbf5ed;
  --shadow: 0 18px 60px rgba(67, 43, 29, 0.14);
  --shadow-soft: 0 10px 34px rgba(49, 34, 27, 0.1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 132, 128, 0.14), transparent 24rem),
    linear-gradient(180deg, #fffaf3 0%, #fdf6ee 48%, #fffaf3 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open { overflow: hidden; }

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

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

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

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--rose), var(--clay), var(--sage));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 66px;
  padding: 10px clamp(18px, 4vw, 64px);
  color: #fff8ef;
  background: rgba(24, 18, 15, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  white-space: nowrap;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 1px solid #ead0ad;
  border-radius: 50%;
  box-shadow: 10px 0 0 -3px #ead0ad, 4px 9px 0 -4px #ead0ad;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 14px;
}

.nav a {
  position: relative;
  color: rgba(255, 248, 239, 0.82);
  transition: color 220ms var(--ease-out);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: #ead0ad;
  transition: transform 260ms var(--ease-out);
}

.nav a.active,
.nav a:hover { color: #fff8ef; }

.nav a.active::after,
.nav a:hover::after { transform: scaleX(1); }

.top-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), box-shadow 220ms var(--ease-out), background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.top-cta,
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent), var(--clay));
  box-shadow: 0 12px 28px rgba(112, 73, 52, 0.2);
}

.button.secondary {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.68);
  border-color: #d7bea6;
}

.button:active,
.top-cta:active,
.filter-button:active,
.lightbox-close:active { transform: scale(0.97); }

.hero {
  min-height: min(760px, calc(100vh - 66px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  padding: clamp(54px, 8vw, 104px) clamp(20px, 6vw, 86px) clamp(32px, 5vw, 72px);
  overflow: hidden;
}

.hero-copy { max-width: 650px; }

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

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
}

h3 {
  margin: 10px 0 8px;
  font-size: 17px;
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.proof-row span {
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(185, 133, 94, 0.24);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.proof-row strong {
  color: var(--denim);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  transform: translate3d(calc(var(--tilt-x, 0) * 1px), calc(var(--tilt-y, 0) * 1px), 0);
  transition: transform 320ms var(--ease-out);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -8% -8% 10%;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(120, 139, 114, 0.25), rgba(201, 132, 128, 0.18));
  transform: rotate(-4deg);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(51, 39, 34, 0.24);
}

.floating-note {
  position: absolute;
  max-width: 240px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.floating-note span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.floating-note strong {
  display: block;
  line-height: 1.25;
}

.note-one { left: -24px; bottom: 10%; }
.note-two { right: -18px; top: 12%; }

.social-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px clamp(18px, 6vw, 86px);
  background: rgba(229, 211, 194, 0.8);
}

.social-strip p {
  margin: 0;
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 900;
  text-align: center;
}

.section {
  padding: clamp(62px, 8vw, 104px) clamp(18px, 6vw, 86px);
}

.section-anchor { scroll-margin-top: 82px; }

.section-heading {
  max-width: 920px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading p {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-heading.split {
  max-width: 1180px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.offer-grid,
.work-grid,
.review-grid,
.faq-grid,
.steps,
.process-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

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

.offer-card,
.review-card,
.faq-item,
.steps article,
.work-card {
  border: 1px solid rgba(132, 90, 61, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.offer-card {
  min-height: 228px;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.offer-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 35%;
  height: 120px;
  background: radial-gradient(circle, rgba(120, 139, 114, 0.2), transparent 62%);
  transition: transform 420ms var(--ease-out), opacity 420ms var(--ease-out);
}

.offer-card span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--accent-dark);
  border: 1px solid #d8bea6;
  border-radius: 50%;
  background: #fffaf3;
  font-weight: 900;
}

.offer-card p,
.review-card p,
.faq-item p,
.steps p,
.about-band p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.58;
}

.process {
  background:
    linear-gradient(180deg, rgba(247, 238, 229, 0.95), rgba(255, 250, 243, 0.96));
}

.process-wrap {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  align-items: stretch;
}

.process-wrap > img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.steps article {
  padding: 20px;
  position: relative;
}

.steps article:last-child {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(120, 139, 114, 0.13), rgba(255, 255, 255, 0.78));
}

.steps strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent-dark);
  border: 1px solid #d8bea6;
  border-radius: 50%;
  background: #fffaf3;
}

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

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), color 220ms var(--ease-out), background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.filter-button.active {
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

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

.work-card {
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 520ms var(--ease-out);
}

.work-card div { padding: 16px; }

.work-card small {
  color: var(--sage);
  font-weight: 900;
  text-transform: uppercase;
}

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

.review-card {
  padding: 22px;
  min-height: 220px;
}

.stars {
  color: #c98d35;
  letter-spacing: 0;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(62px, 8vw, 104px) clamp(18px, 6vw, 86px);
  background:
    linear-gradient(90deg, rgba(247, 238, 229, 0.88), rgba(255, 250, 243, 0.95)),
    #f1e5d7;
}

.about-image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-band ul {
  padding: 0;
  list-style: none;
}

.about-band li {
  margin: 12px 0;
  padding-left: 28px;
  position: relative;
  line-height: 1.45;
}

.about-band li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--sage));
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.faq-trigger h3 { margin: 0; }

.faq-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  transition: transform 260ms var(--ease-out);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out);
}

.faq-body > div {
  overflow: hidden;
  padding: 0 22px;
}

.faq-item.open .faq-body {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-body > div {
  padding-bottom: 20px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 30px;
  padding: clamp(62px, 8vw, 104px) clamp(18px, 6vw, 86px);
  color: #fff8ef;
  background:
    linear-gradient(135deg, rgba(51, 39, 34, 0.9), rgba(112, 73, 52, 0.84)),
    url("assets/portfolio-cushions-instagram-inspired.png") center / cover;
}

.contact .eyebrow,
.contact-copy p { color: #fff1df; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.contact-links a,
.contact-links span {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  color: var(--ink);
  background: rgba(255, 250, 244, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dcc8b7;
  border-radius: 8px;
  outline: none;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(120, 139, 114, 0.16);
}

textarea { resize: vertical; }

.wide { grid-column: 1 / -1; }

.file-field span {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px dashed #d7bea6;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
  font-weight: 700;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

#char-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(22, 17, 14, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}

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

.lightbox-panel {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.96fr);
  gap: 24px;
  position: relative;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
  transform: translateY(14px) scale(0.96);
  transition: transform 260ms var(--ease-out);
}

.lightbox.open .lightbox-panel {
  transform: translateY(0) scale(1);
}

.lightbox-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  color: #fff;
  background: rgba(24, 18, 15, 0.62);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 86px);
  color: #fff4e8;
  background: #1c1512;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms var(--ease-out), transform 680ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 70ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .top-cta:hover,
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(112, 73, 52, 0.24);
  }

  .offer-card:hover::after {
    opacity: 0.72;
    transform: translateY(-16px);
  }

  .work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(67, 43, 29, 0.15);
  }

  .work-card:hover img {
    transform: scale(1.06);
  }

  .filter-button:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
  }
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    max-width: 760px;
  }

  .offer-grid,
  .work-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-wrap,
  .about-band,
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 0 8px;
  }

  .brand { font-size: 20px; }

  .top-cta { padding: 0 14px; }

  h1 { font-size: 42px; }

  .social-strip,
  .steps,
  .offer-grid,
  .work-grid,
  .review-grid,
  .faq-grid,
  .order-form,
  .lightbox-panel {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    display: block;
  }

  .filters { margin-top: 18px; }

  .note-one,
  .note-two {
    position: static;
    margin-top: 10px;
    max-width: none;
  }

  .process-wrap > img {
    min-height: 300px;
  }

  .steps article:last-child {
    grid-column: auto;
  }

  .form-footer {
    display: grid;
  }

  .form-footer .button {
    width: 100%;
  }

  .footer {
    display: grid;
  }
}

@media (max-width: 480px) {
  .hero,
  .section,
  .about-band,
  .contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions .button,
  .hero-actions {
    width: 100%;
  }

  .proof-row span {
    width: 100%;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
