/* ============================================================
   MIY Stay Outside — main stylesheet
   Ported from Homepage-Mockup/index.html (source of truth).
   iOS mockup chrome (status bar, home indicator) is intentionally
   omitted from the markup; the centred device column is preserved.
   ============================================================ */

:root {
  --cream:      #F4EFE7;
  --cream-50:   #FAF6EE;
  --cream-100:  #F4EFE7;
  --cream-200:  #EBE3D3;
  --cream-300:  #DCD2BE;

  --ink:        #15465d;  /* locked brand navy per strategy */
  --ink-soft:   #2A5876;
  --ink-muted:  #4A5C6A;
  --ink-faint:  #7C8995;
  --ink-deep:   #0E3447;  /* deeper navy for covers */
  --ink-night:  #0C2235;  /* near-black navy for cinematic hero */
  --installs:   #15465d;  /* nav uses brand navy directly */

  --coral:        #EE7558;
  --coral-bright: #F58467;
  --coral-deep:   #D85F42;
  --peach-50:     #FDEEE5;
  --peach-100:    #FDE3D5;

  --white:  #FFFFFF;
  --border: #E5DDCD;
  --rule:   #E2DAC9;
  --rule-dark: rgba(255,255,255,0.12);

  --accent: var(--coral);

  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-xl: 8px;
  --r-pill: 999px;

  --shadow-md: none;
  --shadow-lg: 0 28px 60px -24px rgba(12, 34, 53, 0.45);

  --col: 440px;
  --ease: cubic-bezier(.22,.7,.2,1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--ink-night);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01','cv11';
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Accessibility: skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 6px 0;
  font-weight: 700; font-size: 14px;
}
.skip-link:focus { left: 0; }

.viewport {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: radial-gradient(120% 80% at 50% 0%, #15324a 0%, var(--ink-night) 60%);
}
.device {
  width: 100%;
  max-width: var(--col);
  background: var(--cream);
  position: relative;
  min-height: 100dvh;
}
.device-inner { position: relative; display: block; }
@media (min-width: 480px) {
  .viewport { padding: 28px 0 40px; }
  .device {
    border-radius: 44px;
    box-shadow: var(--shadow-lg), 0 0 0 11px #0a1a28, 0 0 0 13px #1c2c3a;
    min-height: auto;
  }
  .device-inner { clip-path: inset(0 round 44px); }
}

.site-header {
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--col);
  z-index: 80;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 20px 22px;
  background: var(--installs);
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
  transition: box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.solid { box-shadow: 0 8px 22px -12px rgba(0,0,0,.5); }
/* Secondary header menu — same navy as the nav (no dark/teal seam), interior pages, desktop */
.nav-secondary { display: none; background: var(--installs); border-bottom: 1px solid rgba(255,255,255,.10); }
.nav-secondary__inner { display: flex; justify-content: flex-end; gap: 24px; padding: 9px 20px; }
.nav-secondary a { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.nav-secondary a:hover { color: #fff; }
.nav-logo {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  /* Force the SVG fills to pure white regardless of source paint */
  filter: brightness(0) invert(1);
}
.nav-logo.blue { display: none; }
.nav-right { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; flex-shrink: 0; }
.nav-quote {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 4px;
  background: var(--accent); color: #fff;
  transition: transform .15s var(--ease);
}
.nav-quote:active { transform: scale(.95); }
.nav-burger {
  width: 44px; height: 44px; border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 0;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.nav-burger:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.nav-burger:active { transform: scale(.96); }
.nav-burger span {
  display: block;
  width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.eyebrow.faint { color: var(--ink-faint); }

/* HERO */
.hero { position: relative; height: 270vh; background: var(--ink-night); }
.hero-sticky { position: sticky; top: 0; height: 100dvh; overflow: hidden; perspective: 1100px; }
.hero-photo { position: absolute; inset: 0; transform: scale(1.08); }
.hpl {
  position: absolute; inset: 0;
  background-size: cover; background-position: 50% 50%;
  opacity: 0; will-change: opacity; transition: opacity .4s linear;
}
.hpl:first-child { opacity: 1; }
.hpl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,24,37,.5) 0%, rgba(8,24,37,.1) 26%, rgba(8,24,37,.34) 60%, rgba(8,24,37,.96) 100%);
}

.louvres {
  position: absolute; inset: -2px;
  display: flex; flex-direction: column;
  z-index: 5; pointer-events: none;
  transform-style: preserve-3d;
  transition: opacity .35s linear;
}
.blade {
  flex: 1;
  background: linear-gradient(180deg, #1a3142, #0e2030);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5);
  transform-origin: top center;
  transform: rotateX(calc(82deg - var(--close, 0) * 82deg));
  opacity: calc(.12 + var(--close, 0) * .88);
  transition: transform .3s var(--ease);
}
.blade::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}

.blind {
  position: absolute; left: 0; right: 0; top: 0;
  height: 100%;
  z-index: 6; pointer-events: none;
  transform: translateY(calc(-100% + var(--drop, 0) * 100%));
  transition: transform .35s var(--ease), opacity .4s linear;
  background:
    repeating-linear-gradient(0deg, rgba(22,44,62,.26) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(22,44,62,.26) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(12,34,53,.04), rgba(12,34,53,.17));
  backdrop-filter: blur(0.3px);
  border-bottom: 3px solid rgba(20,51,74,.55);
}
.blind::after {
  content: ''; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: 54px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.32);
}

.hero-content {
  position: absolute; inset: 0;
  z-index: 10;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px 24px 24px;
  color: #fff;
}
.hero-stage { position: relative; min-height: 196px; }
.hero-line {
  position: absolute; left: 0; bottom: 0; right: 0;
  opacity: 0; transition: opacity .35s var(--ease), transform .5s var(--ease);
  transform: translateY(14px);
}
.hero-line.on { opacity: 1; transform: none; }
.hero-line h1 {
  font-size: clamp(46px, 16vw, 70px);
  line-height: 0.92; font-weight: 800; letter-spacing: -0.04em;
  margin: 0; text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero-line h1 em { font-style: normal; font-weight: 300; color: var(--accent); }
.hero-line .tag {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.hero-cta {
  margin-top: 26px;
  display: flex; gap: 12px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.hero-cta.on { opacity: 1; transform: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.01em;
  padding: 15px 22px; border-radius: 4px; border: none;
  transition: transform .15s var(--ease), background .2s;
}
.btn:active { transform: scale(.96); }
.btn-coral { background: var(--accent); color: #fff; }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(8px); }
.btn .arr { font-size: 16px; }

.hero-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 11; display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: #fff; transition: opacity .3s; pointer-events: none;
}
.hero-hint .txt {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
.hero-hint .chev {
  width: 30px; height: 30px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
  display: grid; place-items: center; animation: bob 1.6s var(--ease) infinite;
}
.hero-hint .chev svg { width: 13px; height: 13px; stroke: #fff; fill: none; }
@keyframes bob { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(5px); } }

.section { padding: 68px 22px; }
.section-head { margin-bottom: 28px; }

/* Section dividers — a subtle accent rule for visual rhythm */
.section-divider {
  position: relative;
  height: 0;
  border-top: 1px solid var(--rule);
}
.section-divider::after {
  content: '';
  position: absolute; left: 22px; top: -2px;
  width: 34px; height: 3px; border-radius: 99px;
  background: var(--accent);
}
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(32px, 9vw, 40px); line-height: 1.0; font-weight: 800; letter-spacing: -0.03em; margin: 0; color: var(--ink-deep); }
.section-head h2 em { font-style: normal; font-weight: 300; color: var(--accent); }
.section-head p { margin: 14px 0 0; font-size: 16px; color: var(--ink-muted); line-height: 1.55; }
.section-head .strapline {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500;
  line-height: 1.5;
}

.intro { background: var(--ink-night); padding: 96px 24px 96px; color: #fff; }
.intro .ph { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5/4; background: var(--ink-deep); margin-bottom: 44px; }
.intro .ph.portrait { aspect-ratio: 4/5; }
.intro .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.intro .eyebrow { display: block; margin-bottom: 14px; color: var(--accent); }
.intro h2 { font-size: clamp(34px, 9.5vw, 44px); line-height: 1.0; font-weight: 800; letter-spacing: -0.03em; margin: 0; color: #fff; }
.intro h2 em { font-style: normal; font-weight: 300; color: var(--accent); }
.intro .kicker { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: rgba(255,255,255,0.78); margin-top: 28px; line-height: 1.4; }
.intro .kicker em { font-style: normal; color: var(--accent); font-weight: 700; }
.intro .cta { margin-top: 38px; display: grid; gap: 14px; }
/* Big two-line action card — generous tap target, large readable type */
.bigcta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px 22px;
  border-radius: 6px;
  min-height: 84px;
  text-decoration: none;
  transition: transform .15s var(--ease), background .2s;
}
.bigcta:active { transform: scale(.985); }
.bigcta .title {
  font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2;
  display: block;
}
.bigcta .sub {
  display: block;
  margin-top: 4px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0;
  opacity: .82;
  line-height: 1.4;
}
.bigcta .arrcircle {
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
  flex-shrink: 0;
}
.bigcta--coral { background: var(--accent); color: #fff; }
.bigcta--coral:hover { background: var(--coral-deep); }
.bigcta--coral .arrcircle { background: rgba(255,255,255,.22); color: #fff; }
.bigcta--glass {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.40);
}
.bigcta--glass:hover { background: rgba(255,255,255,.18); }
.bigcta--glass .arrcircle { background: rgba(255,255,255,.16); color: #fff; }

/* Case studies */
.cases { background: var(--ink-night); color: #fff; padding: 80px 22px 88px; }
.cases .section-head { margin-bottom: 32px; }
.cases .section-head h2 { color: #fff; }
.cases .section-head h2 em { color: var(--accent); }
.cases .section-head p { color: rgba(255,255,255,.78); margin-top: 14px; }
.cases-list { display: grid; gap: 28px; }
.case-card {
  display: block;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.case-card .ph { aspect-ratio: 16/10; overflow: hidden; background: #0a1a28; }
.case-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.case-card:active .ph img { transform: scale(1.04); }
.case-card .cbody { padding: 22px 22px 24px; }
.case-card .loc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px; display: block;
}
.case-card h3 {
  margin: 0 0 10px;
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05;
  color: #fff;
}
.case-card p {
  margin: 0 0 16px;
  font-size: 14.5px; line-height: 1.55;
  color: rgba(255,255,255,.78);
}
.case-card .system {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding: 6px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 4px;
}

.range { display: grid; gap: 28px; margin-top: 44px; }
.pcard {
  display: block; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  scroll-margin-top: 116px;
}
.pcard .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:active .ph img { transform: scale(1.04); }
.pcard .tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(12,34,53,.55); backdrop-filter: blur(6px);
  color: #fff; padding: 7px 13px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.pcard .pbody { padding: 22px 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pcard .pbody h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.1; color: var(--ink-deep); }
.pcard .go { display: inline-flex; align-items: center; gap: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: transparent; flex-shrink: 0; }
.pcard .go .arr {
  width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px;
  transition: transform .25s var(--ease);
}
.pcard:active .go .arr { transform: translateX(3px); }

.spec {
  background-color: var(--ink-night);
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 7px 7px;
  color: #fff; padding: 50px 22px;
}
.spec .eyebrow { display: block; margin-bottom: 14px; }
.spec h2 { font-size: clamp(32px, 9vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; margin: 0; }
.spec h2 em { font-style: normal; font-weight: 300; color: var(--accent); }
.spec .lede { color: rgba(255,255,255,.74); font-size: 15px; line-height: 1.6; margin: 16px 0 0; }
.figs { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); overflow: hidden; }
.fig { background: var(--ink-night); padding: 24px 20px; }
.fig .n { font-size: 38px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.fig .n em { font-style: normal; font-weight: 300; font-size: 22px; color: var(--accent); }
.fig .l { margin-top: 10px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.55); line-height: 1.6; }

.spotlight { background: var(--cream); padding: 68px 22px 76px; }
.spot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; grid-auto-flow: dense; }
.spot-grid .im { border-radius: var(--r-md); overflow: hidden; background: var(--cream-200); }
.spot-grid .im img { width: 100%; height: 100%; object-fit: cover; }
.spot-grid .tall { grid-row: span 2; aspect-ratio: 3/4; }
.spot-grid .wide { aspect-ratio: 4/3; }
.spot-grid .sq { aspect-ratio: 1/1; }

/* Horizontal scroll rail — recent installs */
.installs-rail { padding: 68px 0 72px; background: var(--cream-50); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.installs-rail .section-head { padding: 0 22px; margin-bottom: 18px; }
.installs-rail .track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 22px 6px; scrollbar-width: none; -ms-overflow-style: none;
}
.installs-rail .track::-webkit-scrollbar { display: none; }
.installs-rail .card {
  flex: 0 0 78%; max-width: 320px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.installs-rail .card .ph { aspect-ratio: 5/4; overflow: hidden; background: var(--cream-200); }
.installs-rail .card .ph img { width: 100%; height: 100%; object-fit: cover; }
.installs-rail .card .meta { padding: 14px 16px 18px; }
.installs-rail .card .meta h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-deep); line-height: 1.2; }
.installs-rail .card .meta p { margin: 0; font-size: 12px; color: var(--ink-muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }

/* Past Work Gallery CTA */
.gallery-cta { margin-top: 32px; text-align: center; }
.gallery-cta .btn { width: auto; padding: 14px 24px; }
.btn-dark { background: var(--ink-deep); color: #fff; }
.btn-dark:hover { background: var(--ink-night); }

/* Residential / Commercial split */
.scope { background: var(--white); padding: 80px 22px 88px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.scope .section-head { margin-bottom: 36px; }
.scope-grid { display: grid; gap: 18px; }
.scope-tile {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--ink-deep);
}
.scope-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.scope-tile:active img { transform: scale(1.04); }
.scope-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,34,53,0) 30%, rgba(12,34,53,.85) 100%);
}
.scope-tile .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 22px 28px;
  z-index: 2; color: #fff;
}
.scope-tile .label .cat {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 8px;
  font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  color: #fff;
  border-bottom: 3px solid var(--accent);
  text-transform: none;
}
.scope-tile .label h3 {
  margin: 0 0 6px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25;
  color: #fff;
}
.scope-tile .label p {
  margin: 0;
  font-size: 14px; line-height: 1.45;
  color: rgba(255,255,255,.82);
}
.scope-tile .arrowpill {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 38px; height: 38px; border-radius: 999px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  color: #fff; font-size: 16px;
}

/* Google Reviews */
.reviews { background: var(--cream-50); padding: 76px 22px 84px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.reviews .section-head { margin-bottom: 32px; }
.reviews .gscore {
  display: flex; align-items: center; gap: 14px; margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-faint); text-transform: uppercase;
}
.reviews .gscore .num { color: var(--ink-deep); font-weight: 700; font-size: 14px; letter-spacing: 0; }
.reviews .stars { display: inline-flex; gap: 2px; color: #F4B400; }
.reviews .stars svg { width: 16px; height: 16px; fill: currentColor; }
.review-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 86%; max-width: 340px; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 22px 22px;
}
.review-card .stars { margin-bottom: 12px; }
.review-card blockquote { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--ink-deep); }
.review-card .who { display: flex; align-items: center; gap: 10px; }
.review-card .avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--cream-200); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.review-card .who .name { font-size: 13px; font-weight: 700; color: var(--ink-deep); }
.review-card .who .when { font-size: 11px; color: var(--ink-faint); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; }
.reviews-more { margin-top: 28px; text-align: center; }
.reviews-more a { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }

/* Get a quote form */
.quote-form { background: var(--ink); color: #fff; padding: 76px 22px 84px; }
.quote-form .section-head h2 { color: #fff; }
.quote-form .section-head h2 em { color: var(--accent); }
.quote-form .section-head p { color: rgba(255,255,255,.78); }
.quote-form form { margin-top: 32px; display: grid; gap: 14px; }
.quote-form .row { display: grid; gap: 14px; }
.quote-form .row.two { grid-template-columns: 1fr 1fr; }
.quote-form label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 6px; font-weight: 500;
}
/* GLOBAL RULE: form fields are white with navy text on every form on the site (patch D) */
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 4px;
  color: var(--ink-deep);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
}
.quote-form input::placeholder,
.quote-form textarea::placeholder { color: var(--ink-faint); font-weight: 400; }
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(241,106,77,.25);
}
/* Kill the browser autofill yellow/red overlay, hold the white-on-navy rule */
.quote-form input:-webkit-autofill,
.quote-form input:-webkit-autofill:hover,
.quote-form input:-webkit-autofill:focus,
.quote-form select:-webkit-autofill,
.quote-form textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
  -webkit-text-fill-color: var(--ink-deep) !important;
  caret-color: var(--ink-deep);
}
.quote-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2315465d' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
/* Make the OS-rendered option list readable: white surface, ink text */
.quote-form select option {
  background-color: #ffffff;
  color: var(--ink-deep);
  font-weight: 500;
  padding: 8px 12px;
}
.quote-form select option:disabled,
.quote-form select option[value=""] {
  color: var(--ink-faint);
}
.quote-form textarea { resize: vertical; min-height: 110px; }
.quote-form .submit-row { margin-top: 6px; }
.quote-form .submit-row .btn { width: 100%; padding: 17px 22px; }

/* Inline form status message */
.quote-status { margin-top: 14px; font-size: 14px; line-height: 1.5; display: none; }
.quote-status.show { display: block; }
.quote-status.ok { color: #8fe3b0; }
.quote-status.err { color: #ffb4a3; }

/* Install-or-DIY first question, as buttons */
.quote-form .q-first { margin-top: 2px; }
.q-optbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 2px; }
.q-optbtn {
  min-height: 56px;
  padding: 14px 12px; border-radius: 4px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.30);
  color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease);
}
.q-optbtn:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.q-optbtn:active { transform: scale(.97); }
.q-optbtn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(241,106,77,.3); }
@media (max-width: 420px) { .q-optbtns { grid-template-columns: 1fr; } }

/* DIY prompt block (patch A · button pattern) */
.diy-prompt {
  background: rgba(241,106,77,0.12);
  border: 1.5px solid rgba(241,106,77,0.45);
  border-radius: 6px;
  padding: 22px 22px 18px;
}
.diy-prompt__head {
  margin: 0 0 6px;
  font-size: 18px; font-weight: 800; color: #fff; line-height: 1.25; letter-spacing: -0.01em;
}
.diy-prompt__body {
  margin: 0 0 18px;
  font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.85);
}
.diy-prompt .btn-block { width: 100%; padding: 16px 18px; font-size: 15px; }
.diy-prompt__cont {
  margin-top: 14px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 10px;
  color: rgba(255,255,255,.82);
  font-size: 13.5px; font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color .15s var(--ease);
}
.diy-prompt__cont:hover { color: #fff; }
/* When the user clicks 'have MIY quote me anyway' the prompt collapses. */
.diy-prompt.continued { display: none; }

/* Inline success state after a lead submits */
.quote-success { font-size: 17px; line-height: 1.6; color: #fff; font-weight: 500; }
.quote-success a { color: var(--accent); border-bottom: 1px solid var(--accent); }

.quote-form .small {
  margin-top: 16px;
  font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.5;
}

/* Honeypot — visually hidden, off-screen, not display:none (so bots fill it) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* Process strip — 3-step */
.process { background: var(--white); padding: 68px 22px 76px; border-top: 1px solid var(--rule); }
.process .section-head { margin-bottom: 22px; }
.steps { display: grid; gap: 18px; }
.step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.step .sph { aspect-ratio: 16/10; background: var(--cream-200); overflow: hidden; }
.step .sph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step .sbody { padding: 22px 22px 24px; }
.step .num { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.step h4 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-deep); line-height: 1.15; }
.step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }

.showroom { position: relative; overflow: hidden; color: #fff; }
.showroom .bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(12,34,53,.55), rgba(12,34,53,.8)), url('../images/showroom.jpg'), url('../images/perth-hills-view.jpg');
  background-size: cover; background-position: center;
}
.showroom .panel { position: relative; z-index: 2; padding: 54px 24px; }
.showroom .eyebrow { display: block; margin-bottom: 14px; }
.showroom h2 { font-size: clamp(36px, 11vw, 50px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.96; margin: 0; }
.showroom h2 em { font-style: normal; font-weight: 300; color: var(--accent); }
.showroom p { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.6; margin: 18px 0 26px; max-width: 30ch; }
.showroom-address {
  margin: 22px 0 30px;
  font-style: normal;
  font-size: 16px; line-height: 1.6;
  color: rgba(255,255,255,.88);
}
.showroom-address strong {
  display: block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.showroom-address .hours {
  display: block; margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,.6);
}
.showroom .stamp {
  margin-top: 32px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.05em;
  color: var(--accent); text-transform: none;
}
.showroom .ctas { display: flex; flex-direction: column; gap: 12px; }
.showroom .btn { width: 100%; padding: 17px; }

.foot {
  background-color: var(--ink-night);
  color: rgba(255,255,255,.62);
  padding: 48px 24px calc(120px + env(safe-area-inset-bottom));
}
.foot img { height: 48px; margin-bottom: 22px; filter: brightness(0) invert(1); }
.foot .blurb { font-size: 13px; line-height: 1.6; margin: 0 0 28px; max-width: 32ch; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.foot h5 { color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 13px; }
.foot a:active { color: #fff; }
.foot a:hover { color: #fff; }
.foot-bar {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.4);
}

.actionbar {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: 0; width: 100%; max-width: var(--col); z-index: 75;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(244,239,231,0.96);
  border-top: 1px solid var(--rule);
  display: flex; gap: 10px; align-items: center;
  transition: transform .45s var(--ease);
}
.actionbar.on { transform: translateX(-50%) translateY(0); }
.actionbar .info { flex: 1; min-width: 0; }
.actionbar .info .k { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.actionbar .info .v { font-size: 13px; font-weight: 700; color: var(--ink-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actionbar .btn { flex-shrink: 0; padding: 13px 20px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-line { transition: opacity .3s linear; }
  .hero-hint { display: none; }
}

/* ============================================================
   DESKTOP — full-width layout (patch E · ported from the mockup)
   Mobile (< 900px) above is untouched; the approved phone layout stands.
   ============================================================ */

/* Desktop horizontal nav (hidden on mobile, shown >= 900px) */
.nav-links { display: none; }
.nav-links a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: #fff; padding: 10px 4px; position: relative;
  transition: opacity .2s var(--ease);
}
.nav-links a:hover { opacity: .7; }
.nav-links a.has-sub::after {
  content: '\25BE'; display: inline-block; margin-left: 4px;
  font-size: 10px; opacity: .7;
}

/* Desktop nav dropdown with sub-page thumbnails (Maddy 2026-06-05) */
.nav-links .nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-caret { font-size: 9px; opacity: .7; margin-left: 4px; }
.nav-dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); min-width: 300px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: 0 26px 54px -22px rgba(14,52,71,.45); padding: 10px; opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 80; }
.nav-links .nav-item.has-sub:hover .nav-dropdown, .nav-links .nav-item.has-sub:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.nav-dropdown::before { content: ''; position: absolute; bottom: 100%; left: 0; right: 0; height: 14px; }
.nav-dropdown__inner { display: grid; gap: 2px; }
.nav-dropdown .nav-dd-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-md); color: var(--ink-deep); opacity: 1; }
.nav-dropdown .nav-dd-item:hover { background: var(--cream-100); opacity: 1; }
.nav-dd-thumb { width: 50px; height: 40px; border-radius: 6px; overflow: hidden; flex: 0 0 auto; background: var(--cream-200); }
.nav-dd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-dd-label { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.nav-dropdown .nav-dd-item--all { background: var(--ink-deep); margin-bottom: 6px; }
.nav-dropdown .nav-dd-item--all .nav-dd-label { color: #fff; }
.nav-dropdown .nav-dd-item--all:hover { background: var(--ink-night); }

@media (min-width: 900px) {
  :root { --max-w: 1280px; }

  /* Phone shell collapses to full width on the live site */
  .viewport { background: transparent; padding: 0; }
  .device { max-width: 100%; width: 100%; border-radius: 0; box-shadow: none; min-height: 0; }
  .device-inner { clip-path: none; }

  /* Nav: centred horizontal links, burger hidden */
  .site-header { max-width: 1280px; }
  .nav { padding: 20px 36px; gap: 28px; }
  .nav-secondary { display: block; }
  .nav-secondary__inner { padding: 9px 36px; }

  /* Interior pages: full-width navy header band, content capped + centred. */
  body:not(.home) .site-header { max-width: none; left: 0; transform: none; width: 100%; background: var(--installs); }
  body:not(.home) .nav { max-width: 1280px; margin: 0 auto; }
  body:not(.home) .nav-secondary__inner { max-width: 1280px; margin: 0 auto; }

  /* Homepage: full-width TRANSPARENT overlay (hero shows through, edge to edge).
     The nav has no navy box at the top; it gains its fill only once scrolled
     (.solid, toggled by hero.js at 60vh). A soft top scrim keeps the white
     logo/links legible over the hero. */
  body.home .site-header { max-width: none; left: 0; transform: none; width: 100%; background: transparent; }
  body.home .site-header::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 150px; background: linear-gradient(180deg, rgba(12,34,53,.55), rgba(12,34,53,0)); pointer-events: none; z-index: -1; }
  body.home .nav { max-width: 1280px; margin: 0 auto; background: transparent; box-shadow: none; }
  body.home .nav.solid { background: var(--installs); box-shadow: 0 8px 22px -12px rgba(0,0,0,.5); }
  .nav-logo { height: 42px; }
  .nav-links { display: flex; align-items: center; gap: 22px; flex: 1; justify-content: center; }
  .nav-burger { display: none; }
  .nav-right { gap: 14px; }
  .nav-quote { padding: 12px 20px; font-size: 12px; }

  /* HERO fills the viewport */
  .hero-sticky { height: 100vh; }
  .hero-content { padding: 140px 60px 60px; max-width: var(--max-w); margin: 0 auto; left: 0; right: 0; }
  .hero-line h1 { font-size: clamp(72px, 8vw, 120px); }
  .hero-cta { flex-direction: row; max-width: none; }

  /* INTRO — 2 columns, photo left, text right */
  .intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 120px 60px; }
  .intro .ph { margin-bottom: 0; }
  .intro h2 { font-size: clamp(48px, 5vw, 68px); }
  .intro .kicker { font-size: 22px; }

  /* Section side padding + centred inner content */
  .section, .spec, .spotlight, .scope, .cases, .reviews, .process, .quote-form, .showroom {
    padding-left: 60px; padding-right: 60px;
  }
  .section-head, .figs, .range, .scope-grid, .spot-grid, .cases-list, .review-track,
  .steps, .showroom .panel, .quote-form form, .quote-form .section-head, .gallery-cta {
    max-width: var(--max-w); margin-left: auto; margin-right: auto;
  }
  .section-head h2, .intro h2, .spec h2, .scope .section-head h2, .cases .section-head h2,
  .reviews .section-head h2, .quote-form .section-head h2, .showroom h2 { font-size: clamp(44px, 4vw, 56px); }

  /* RANGE — 4-up */
  .range { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
  .pcard .pbody { padding: 22px 22px 26px; }

  /* SPEC stats — 4-up */
  .figs { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
  .fig { padding: 32px 28px; }
  .fig .n { font-size: 48px; }

  /* SCOPE — 2 wide tiles */
  .scope-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .scope-tile { aspect-ratio: 4/5; }
  .scope-tile .label .cat { font-size: 56px; padding-bottom: 12px; border-bottom-width: 4px; }
  .scope-tile .label h3 { font-size: 22px; }

  /* SPOTLIGHT gallery — 4-up */
  .spot-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  /* Uniform 4-up on desktop: reset the mobile tall/wide spans so it tiles cleanly (no gaps). */
  .spot-grid .im, .spot-grid .tall, .spot-grid .wide, .spot-grid .sq { grid-row: auto; grid-column: auto; aspect-ratio: 4/5; }

  /* CASE STUDIES — 3-up */
  .cases-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .case-card .ph { aspect-ratio: 4/3; }

  /* REVIEWS — wider cards */
  .review-card { flex-basis: 360px; max-width: 380px; }

  /* PROCESS — 3-up */
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  /* QUOTE FORM — readable max-width, centred head */
  .quote-form form { max-width: 760px; }
  .quote-form .section-head { text-align: center; }

  /* SHOWROOM — centre the panel */
  .showroom { padding-top: 130px; padding-bottom: 130px; }
  .showroom .panel { max-width: var(--max-w); margin: 0 auto; padding-left: 60px; padding-right: 60px; }
  .showroom .ctas { flex-direction: row; max-width: none; }
  .showroom .btn { width: auto; padding: 17px 30px; }

  /* FOOTER — brand block left, 4 link columns right (matches our markup) */
  .foot {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2.3fr;
    column-gap: clamp(48px, 6vw, 96px); row-gap: 6px; align-items: start;
    padding: 76px max(60px, calc((100% - var(--max-w)) / 2)) 56px;
  }
  .foot > * { max-width: none; margin: 0; width: auto; }
  .foot > img { grid-column: 1; grid-row: 1; height: 52px; margin-bottom: 6px; }
  .foot > .blurb { grid-column: 1; grid-row: 2; font-size: 14px; max-width: 34ch; }
  .foot-cols { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(4, 1fr); gap: 40px; }
  .foot-bar { grid-column: 1 / -1; }
  .foot-bar:first-of-type { margin-top: 32px; }

  /* Action bar spans the viewport */
  .actionbar { max-width: none; left: 0; transform: translateY(140%); width: 100%; padding: 14px 60px; justify-content: center; gap: 22px; }
  .actionbar.on { transform: translateY(0); }
}

@media (min-width: 1200px) {
  .hero-content { padding: 160px 80px 80px; }
  .intro { padding: 140px 80px; }
  .section, .spec, .spotlight, .scope, .cases, .reviews, .process, .quote-form, .showroom {
    padding-left: 80px; padding-right: 80px;
  }
}

/* Homepage header: full-width navy bar once scrolled (.solid on site-header,
   not just the centred .nav) so it spans edge to edge (Maddy 2026-06-04). */
body.home .site-header.solid { background: var(--installs); box-shadow: 0 8px 22px -12px rgba(0,0,0,.5); }
