/* ==========================================================================
   Loom Cleaning Services — editorial / WebGL art direction
   Palette sampled from the official Loom logo and brand materials.
   ========================================================================== */

:root {
  --navy: #20233A;
  --navy-2: #363C5C;
  --bg: #DFE9F2;        /* matched to the render's own background */
  --bg-2: #D5E1EE;
  --paper: #F7F8FB;
  --ink: #20233A;
  --ink-soft: #5B6178;
  --line: rgba(32, 35, 58, 0.14);
  --blue: #9FB3CD;

  --f-display: "Sora", "Segoe UI", sans-serif;
  --f-body: "Inter", "Segoe UI", sans-serif;
  --hdr-h: 78px;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.02; letter-spacing: -0.03em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.wrap { width: min(var(--wrap), 100% - 56px); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 56px); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 400;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 6px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ---------------- Typography scale ---------------- */
.h-big {
  font-size: clamp(2.1rem, 6.2vw, 5.4rem);
  font-weight: 700; letter-spacing: -0.035em;
}
.h-big.light { color: #fff; }
.label {
  font-family: var(--f-display); font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 20px;
}
.label.light { color: var(--blue); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-soft); max-width: 54ch; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 100px; border: 1.4px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .35s, color .35s, border-color .35s, transform .35s;
}
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-2); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.light .btn-line, .ct .btn-line { border-color: rgba(255,255,255,.4); color: #fff; }

/* ---------------- Header ---------------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--hdr-h); display: flex; align-items: center;
  gap: 32px; padding: 0 34px;
  transition: background .4s, box-shadow .4s;
}
.hdr.solid { background: rgba(237,240,245,.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr-brand { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
/* Transparent PNG — no blend hacks, so it sits cleanly on any section colour. */
.hdr-brand img { width: 104px; height: auto; }
.hdr-brand span {
  font-family: var(--f-display); font-size: 7.6px; letter-spacing: .42em;
  text-transform: uppercase; margin-top: -5px; padding-left: 3px; color: var(--navy);
}
.hdr-nav ul { display: flex; gap: 30px; }
.hdr-nav a {
  font-family: var(--f-display); font-size: 13.5px; font-weight: 500;
  position: relative; padding: 6px 0; color: var(--ink);
}
.hdr-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.hdr-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr-act { display: flex; align-items: center; gap: 14px; }
.hdr-act .btn { padding: 11px 22px; font-size: 13.5px; }
.burger { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; padding: 11px 8px; }
.burger span { display: block; height: 1.6px; background: var(--ink); margin: 5px 0; transition: transform .35s, opacity .35s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* ---------------- 3D stage ---------------- */
.stage { position: relative; background: var(--bg); }
.stage-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }

/* The photoreal cutaway. The render's seamless pale-blue background matches
   --bg, so the letterboxing above and below it is invisible. */
.house-stage {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.house-camera {
  width: 100%;
  will-change: transform;
  transform-origin: 50% 50%;
  /* No CSS transition: the scroll drives the transform directly, so the
     camera answers the wheel with zero lag. */
}
.house-camera img {
  width: 100%; height: auto; display: block;
  image-rendering: -webkit-optimize-contrast;
}

.layer { position: absolute; inset: 0; pointer-events: none; }
.layer-back { z-index: 1; }
.layer-front { z-index: 3; }
.layer-front a, .layer-front button, .layer-front .beat-copy, .layer-front .hero-foot { pointer-events: auto; }

/* Mega display type, split across the model for depth */
.mega {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(3rem, 12.4vw, 12rem);
  line-height: .88; letter-spacing: -0.055em; margin: 0;
  color: var(--navy);
}
.mega span { display: block; }
.mega-back {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%);
  text-align: center; width: 100%;
  color: rgba(32, 35, 58, .93);
}
.mega-front {
  position: absolute; left: 50%; bottom: 24%; transform: translateX(-50%);
  text-align: center; width: 100%;
  color: var(--navy);
  text-shadow: 0 2px 40px rgba(237, 240, 245, .7);
}

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 46px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; padding: 0 34px;
}
.hero-sub { max-width: 32ch; font-size: 15.5px; color: var(--ink-soft); margin: 0; }
.hero-cta { display: flex; gap: 12px; }

/* Narrative beats */
.beat { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.beat-word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(4rem, 19vw, 18rem); line-height: 1; letter-spacing: -.06em;
  color: rgba(32, 35, 58, .07); margin: 0; white-space: nowrap;
}
.beat-copy {
  position: absolute; left: 34px; bottom: 46px; max-width: 27rem;
}
/* Soft light scrim so the navy copy always reads over the render, whatever
   room is on screen. Light-on-light keeps the editorial feel. */
.beat-copy::before, .hero-foot::before {
  content: "";
  position: absolute; left: -28px; right: -28px; top: -26px; bottom: -26px;
  background: radial-gradient(70% 70% at 26% 55%, rgba(223, 233, 242, .94) 0%, rgba(223, 233, 242, .72) 46%, rgba(223, 233, 242, 0) 82%);
  filter: blur(2px);
  z-index: -1; pointer-events: none;
}
.hero-foot { position: absolute; }
.beat-label {
  font-family: var(--f-display); font-size: 11.5px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px;
}
.beat-copy h2 { font-size: clamp(1.6rem, 2.9vw, 2.6rem); margin-bottom: 14px; }
.beat-copy p { color: var(--ink-soft); font-size: 16px; margin-bottom: 18px; }

.stage-meta {
  position: absolute; right: 34px; bottom: 52px;
  display: flex; align-items: center; gap: 14px;
}
.counter { font-family: var(--f-display); font-size: 12px; letter-spacing: .2em; color: var(--ink-soft); }
.rail { display: block; width: 116px; height: 1.5px; background: var(--line); position: relative; }
.rail i { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--navy); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-family: var(--f-display); font-size: 10.5px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ink-soft);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 30px;
  background: linear-gradient(var(--ink-soft), transparent);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------- Editorial sections ---------------- */
section { position: relative; }
.ed { padding: clamp(90px, 12vw, 190px) 0; }
.ed-grid {
  width: min(var(--wrap), 100% - 56px); margin-inline: auto;
  display: grid; grid-template-columns: .82fr 1fr; gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.ed-media { margin: 0; }
.ed-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 3px; }
.ed-body .h-big { margin-bottom: 26px; }
.ed-body p { color: var(--ink-soft); max-width: 46ch; }
.ed-body .btn { margin-top: 14px; }

.svc { padding: clamp(80px, 10vw, 160px) 0; border-top: 1px solid var(--line); }
.svc .h-big { margin-bottom: 50px; }
.svc-list li {
  display: grid; grid-template-columns: 64px 1fr 1fr; gap: 20px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--line);
  transition: padding-left .45s cubic-bezier(.22,1,.36,1);
}
.svc-list li:hover { padding-left: 14px; }
.svc-list .n { font-family: var(--f-display); font-size: 12px; color: var(--ink-soft); letter-spacing: .18em; }
.svc-list .t { font-family: var(--f-display); font-size: clamp(1.15rem, 2.1vw, 1.7rem); font-weight: 600; letter-spacing: -.02em; }
.svc-list .d { color: var(--ink-soft); font-size: 15px; }

.how { padding: clamp(80px, 10vw, 160px) 0; border-top: 1px solid var(--line); }
.how .h-big { margin-bottom: 56px; }
.how-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how-step .n { font-family: var(--f-display); font-size: 12px; letter-spacing: .2em; color: var(--ink-soft); }
.how-step h3 { font-size: 1.25rem; margin: 14px 0 10px; }
.how-step p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* Reviews — editorial quote cards, no star clip-art, no fake ratings. */
.rv { padding: clamp(80px, 10vw, 160px) 0; border-top: 1px solid var(--line); }
.rv .h-big { margin-bottom: 54px; }
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 44px; }
.rv-item {
  margin: 0; padding: 34px 30px;
  background: var(--paper); border-radius: 4px; border: 1px solid var(--line);
}
.rv-item p {
  font-family: var(--f-display); font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 500; line-height: 1.5; letter-spacing: -.01em; color: var(--ink);
}
.rv-item footer { margin-top: 22px; display: grid; gap: 3px; }
.rv-item cite { font-style: normal; font-family: var(--f-display); font-weight: 600; font-size: 14.5px; }
.rv-item footer span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 1000px) { .rv-grid { grid-template-columns: 1fr; } }

.areas { padding: clamp(90px, 12vw, 180px) 0; border-top: 1px solid var(--line); text-align: center; }
.areas .lead { margin: 26px auto 0; }

.faq { padding: clamp(80px, 10vw, 160px) 0; border-top: 1px solid var(--line); }
.faq .h-big { margin-bottom: 44px; }
.q { border-top: 1px solid var(--line); }
.q summary {
  list-style: none; cursor: pointer; padding: 24px 0;
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; font-weight: 400; font-size: 20px; color: var(--ink-soft); transition: transform .35s; }
.q[open] summary::after { transform: rotate(45deg); }
.q > div { padding-bottom: 26px; color: var(--ink-soft); max-width: 62ch; }
.q a { text-decoration: underline; }

/* ---------------- Contact ---------------- */
.ct { background: var(--navy); color: #fff; padding: clamp(90px, 12vw, 170px) 0; }
.ct-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.ct-links { margin-top: 46px; display: grid; gap: 2px; }
.ct-link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,.18);
  transition: padding-left .4s cubic-bezier(.22,1,.36,1);
}
.ct-link:hover { padding-left: 12px; }
.ct-link span { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.ct-link strong { font-family: var(--f-display); font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 600; }
.ct-social { display: flex; gap: 24px; margin-top: 34px; font-size: 14px; }
.ct-social a { border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 3px; }

.form { background: var(--paper); color: var(--ink); padding: clamp(26px, 3.4vw, 40px); border-radius: 4px; }
.form-note { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px; }
.form label { display: block; font-family: var(--f-display); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 16px 0 7px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px;
  transition: border-color .3s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); }
.form textarea { resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { margin-top: 24px; }

/* ---------------- Footer ---------------- */
.ft { background: var(--navy); color: rgba(255,255,255,.72); padding: 0 0 30px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 70px 0 44px; border-top: 1px solid rgba(255,255,255,.14); }
.ft-logo { width: 132px; height: auto; margin-bottom: 16px; }
.ft-grid a { display: block; padding: 5px 0; font-size: 15px; transition: color .3s; }
.ft-grid a:hover { color: #fff; }
.ft-grid p { font-size: 15px; }
.ft-btm { text-align: center; font-size: 13px; margin: 0; color: rgba(255,255,255,.5); }

/* ---------------- Floating CTA + cursor ---------------- */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  background: var(--navy); color: #fff; border-radius: 100px;
  padding: 15px 24px; font-family: var(--f-display); font-weight: 600; font-size: 14.5px;
  box-shadow: 0 14px 34px -12px rgba(32,35,58,.55);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s, transform .4s, visibility .4s, background .3s;
}
.fab.on { opacity: 1; visibility: visible; transform: translateY(0); }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 500; pointer-events: none;
  width: 9px; height: 9px; border-radius: 50%; background: var(--navy);
  transform: translate(-50%, -50%); opacity: 0;
  transition: width .3s, height .3s, background .3s, opacity .3s;
  mix-blend-mode: normal;
}
.cursor.on { opacity: 1; }
.cursor.hot { width: 42px; height: 42px; background: rgba(32,35,58,.14); }
@media (hover: none) { .cursor { display: none; } }

/* ---------------- Reveals ---------------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .hdr-nav {
    position: fixed; inset: var(--hdr-h) 0 auto 0;
    background: rgba(237,240,245,.98); backdrop-filter: blur(16px);
    transform: translateY(-130%); transition: transform .5s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 20px 40px -24px rgba(32,35,58,.4);
  }
  .hdr-nav.open { transform: translateY(0); }
  .hdr-nav ul { flex-direction: column; gap: 0; padding: 8px 0 16px; }
  .hdr-nav a { display: block; padding: 15px 34px; font-size: 16px; }
  .hdr-nav a::after { display: none; }
  .burger { display: block; }
  .hdr { background: rgba(237,240,245,.9); backdrop-filter: blur(14px); }
  .ed-grid, .ct-grid { grid-template-columns: 1fr; }
  .how-row { grid-template-columns: 1fr; gap: 30px; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .wrap, .wrap.narrow, .ed-grid { width: min(100% - 36px, 100%); }
  .hdr { padding: 0 20px; }
  .mega-back { top: 17%; }
  .mega-front { bottom: 30%; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 20px; bottom: 30px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .beat-copy { left: 20px; right: 20px; bottom: 34px; max-width: none; }
  .stage-meta { right: 20px; bottom: 20px; }
  .scroll-hint { display: none; }
  /* Give the landscape diorama more presence on tall portrait screens. */
  .house-camera img { transform: scale(1.35); transform-origin: 50% 46%; }
  .mega-back { top: 12%; }
  .mega-front { bottom: 26%; }
  .svc-list li { grid-template-columns: 44px 1fr; }
  .svc-list .d { grid-column: 2; }
  .form .two { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; gap: 26px; }
  .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important; transition-duration: .001s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .house-canvas { display: none; }
  .beat { position: relative; opacity: 1 !important; visibility: visible !important; height: auto; inset: auto; }
  .cursor { display: none; }
}
