/* ---------- Design tokens ---------- */
:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f1ece3;
  --color-ink: #2b2622;
  --color-ink-soft: #5b544c;
  --color-line: #e3dccf;
  --color-accent: #6b5138;
  --color-accent-deep: #3f3024;
  --color-card: #ffffff;

  --font-display: "Manrope", "Century Gothic", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Century Gothic", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1em;
  color: var(--color-ink-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
}

.btn-primary {
  background: var(--color-accent-deep);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-accent-deep);
  color: var(--color-accent-deep);
}
.btn-outline:hover {
  background: var(--color-accent-deep);
  color: #fff;
}

/* ---------- Splash ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f6f2;
  opacity: 1;
  transition: opacity 1s var(--ease);
}

.splash.hide {
  opacity: 0;
  pointer-events: none;
}

html.skip-splash .splash {
  display: none;
}

.splash-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0.97);
  filter: blur(0px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.9s var(--ease);
}

.splash.show .splash-mark {
  opacity: 1;
  transform: scale(1);
}

.splash.hide .splash-mark {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(14px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1.1s var(--ease);
}

.splash-icon {
  width: 42px;
  height: 42px;
  color: var(--color-accent-deep);
  margin-bottom: 18px;
}

.splash-icon .chime-bar {
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleY(0.2);
  opacity: 0.45;
  animation: chime 1.4s ease-in-out infinite;
}

.splash-icon .chime-bar:nth-child(1) { animation-delay: 0s; }
.splash-icon .chime-bar:nth-child(2) { animation-delay: 0.1s; }
.splash-icon .chime-bar:nth-child(3) { animation-delay: 0.2s; }
.splash-icon .chime-bar:nth-child(4) { animation-delay: 0.3s; }
.splash-icon .chime-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes chime {
  0%, 100% { transform: scaleY(0.2); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Fizz-out: bars scatter and dissolve instead of just fading in place */
.splash.hide .splash-icon .chime-bar {
  animation: none;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.splash.hide .splash-icon .chime-bar:nth-child(1) { transform: scaleY(0.1) translateY(-14px); opacity: 0; }
.splash.hide .splash-icon .chime-bar:nth-child(2) { transform: scaleY(0.1) translateY(10px); opacity: 0; }
.splash.hide .splash-icon .chime-bar:nth-child(3) { transform: scaleY(0.1) translateY(-8px); opacity: 0; }
.splash.hide .splash-icon .chime-bar:nth-child(4) { transform: scaleY(0.1) translateY(10px); opacity: 0; }
.splash.hide .splash-icon .chime-bar:nth-child(5) { transform: scaleY(0.1) translateY(-14px); opacity: 0; }

.splash-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: 0.14em;
  color: var(--color-accent-deep);
  font-weight: 400;
}

.splash-sub {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  color: var(--color-accent);
  margin-top: 10px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(250, 247, 242, 0.75);
  backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), box-shadow .3s var(--ease);
}

.site-nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--color-line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-ink);
  transition: color 0.3s var(--ease);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}

.brand-word .brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.brand-word .brand-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  opacity: 0.72;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover {
  color: var(--color-ink);
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */
/* Split hero: the photo never carries text, so legibility never depends on
   how bright any given room photo is — headline sits on a solid panel. */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 48px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-media {
  position: relative;
  height: 70vh;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.1s var(--ease);
}

.wall-tag {
  position: absolute;
  z-index: 1;
  top: 30%;
  right: 9%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.wall-tag.visible {
  opacity: 1;
}

.wall-tag-line {
  width: 46px;
  height: 1px;
  background: rgba(255,255,255,0.85);
}

.wall-tag-text {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20,16,12,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.hero-slide-tag {
  color: var(--color-accent) !important;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin: -0.6em 0 1.6em;
  transition: opacity 0.5s var(--ease);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  max-width: 13ch;
  margin-bottom: 0.35em;
}

.hero-sub {
  max-width: 42ch;
  font-size: 1.1rem;
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  right: 24px;
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 40px;
  background: var(--color-line);
}

/* Splash handoff: while the splash mark is on screen, the hero sits behind it
   with no content visible, then fades in as the splash dissolves, instead of
   a static hero simply being uncovered. */
.hero-media,
.scroll-cue {
  transition: opacity 1s var(--ease);
}

.hero.pre-reveal .hero-media,
.hero.pre-reveal .hero-content,
.hero.pre-reveal .wall-tag,
.hero.pre-reveal .scroll-cue {
  opacity: 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 56px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-media {
    height: auto;
    aspect-ratio: 4 / 3;
    order: 2;
  }
  .hero-content {
    order: 1;
  }
  .scroll-cue {
    display: none;
  }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-line);
  padding: 26px 0;
}

.trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.trust-head {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  white-space: nowrap;
}

.trust-grid ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
}

.trust-grid li {
  font-size: 0.86rem;
  color: var(--color-ink-soft);
  position: relative;
  padding-left: 22px;
}

.trust-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 8px;
  border-left: 1.6px solid var(--color-accent);
  border-bottom: 1.6px solid var(--color-accent);
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .trust-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Section shell ---------- */
section {
  padding: 120px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.section-head p {
  font-size: 1.05rem;
}

/* ---------- Problem ---------- */
.problem {
  background: var(--color-bg-alt);
}

.about {
  background: var(--color-bg-alt);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.problem-item {
  border-top: 1px solid var(--color-line);
  padding-top: 28px;
}

.problem-icon {
  color: var(--color-accent);
  display: block;
  margin-bottom: 1.1em;
}

.problem-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.problem-item p {
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* ---------- Rooms ---------- */
.room {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--color-line);
}

.room:last-child {
  border-bottom: none;
}

.room:nth-child(even) {
  direction: rtl;
}
.room:nth-child(even) > * {
  direction: ltr;
}

.room-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}

.room-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.room-media:hover img {
  transform: scale(1.04);
}

.room-note {
  position: absolute;
  z-index: 1;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 10px rgba(0,0,0,0.45);
}

.room-note-plaster { top: 10%; left: 42%; }
.room-note-curtains { top: 17%; left: 42%; }

@media (max-width: 600px) {
  .room-note {
    font-size: 0.66rem;
  }
  .room-note-plaster { top: 7%; left: 6%; }
  .room-note-curtains { top: 13%; left: 6%; }
}

.room-tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.8em;
  display: block;
}

.room-copy h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 0.5em;
}

.room-copy p {
  font-size: 1.02rem;
  max-width: 44ch;
}

.room-benefits {
  list-style: none;
  padding: 0;
  margin: 1.6em 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room-benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--color-ink-soft);
}

.room-benefits svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent);
}

/* ---------- How it works ---------- */
.how {
  background: var(--color-accent-deep);
  color: #f3ede2;
}

.how .section-head p {
  color: rgba(243,237,226,0.75);
}

.how .eyebrow {
  color: #cbb691;
}

.how h2 {
  color: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step {
  position: relative;
  padding-left: 4px;
}

.step-icon {
  color: #cbb691;
  display: block;
  margin-bottom: 1.3em;
}

.step h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}

.step p {
  color: rgba(243,237,226,0.72);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Disclaimer strip ---------- */
.disclaimer-strip {
  background: var(--color-bg-alt);
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.disclaimer-strip p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-ink-soft);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
}

.contact-info h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.contact-points {
  margin-top: 2.2em;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-point svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.contact-point strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-point span {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

.form-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fdfcfa;
  color: var(--color-ink);
  transition: border-color 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

/* honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.form-error {
  display: none;
  color: #b3261e;
  font-size: 0.85rem;
  margin: -6px 0 4px;
}

.form-error.visible {
  display: block;
}

.form-note {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  margin-top: 14px;
  margin-bottom: 0;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}

.form-success.visible {
  display: block;
}

.form-success svg {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4em;
}

.form-success p {
  margin-bottom: 0;
}

.form-card.submitted .contact-form {
  display: none;
}

/* ---------- Footer ---------- */
footer {
  background: var(--color-accent-deep);
  color: rgba(243,237,226,0.7);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.footer-brand .brand-word .brand-name {
  font-size: 1.15rem;
}

.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
}

.footer-links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.88rem;
  color: rgba(243,237,226,0.75);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-disclaimer {
  max-width: 640px;
  font-size: 0.78rem;
  color: rgba(243,237,226,0.55);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .room {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .room:nth-child(even) {
    direction: ltr;
  }
  .room-media {
    aspect-ratio: 16 / 10;
  }
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    color: var(--color-ink) !important;
    font-size: 1.05rem;
  }
  .nav-toggle {
    display: flex;
    z-index: 101;
    position: relative;
    width: 34px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-ink);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity .3s var(--ease);
  }
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
  section {
    padding: 80px 0;
  }
  .form-card {
    padding: 26px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-bottom {
    flex-direction: column;
  }
}
