/* Home FX site styles */
:root {
  --bg: #ffffff;
  --bg-2: #f3f4f5;
  --panel: #ffffff;
  --line: #e1e3e6;
  --ink: #231f20;
  --ink-2: #4c4d50;
  --ink-3: #67686a;
  --blue: #0077a8;      /* text-safe logo blue: 4.9:1 on white */
  --blue-2: #00a6db;    /* logo blue, decoration only */
  --btn-a: #0079a9;
  --btn-b: #006d99;
  --link: #00799f;
  --teal: #00a6db;
  --radius: 18px;
  --max: 1160px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
}
/* charcoal bands: same tokens, dark values */
.band {
  --bg: #1b191a;
  --bg-2: #231f20;
  --panel: #2b2829;
  --line: #3a3638;
  --ink: #f4f4f4;
  --ink-2: #c9c9cb;
  --ink-3: #9a9b9d;
  --link: #5cc8ef;
  --blue: #4cc3ee;      /* light blue for text on charcoal */
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin-bottom: 1rem; display: inline-block;
}
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-3); }
em.accent { font-style: italic; color: var(--blue); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; letter-spacing: .02em; }
.brand:hover { color: var(--ink); }
.brand { position: relative; }
.brand .logo { height: 66px; width: auto; }
/* signal pulse along the logo's waveform: once on load, again on hover or focus */
.brand .logo-wave { position: absolute; left: 0; top: 0; height: 66px; width: auto; pointer-events: none; opacity: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 47%, #000 53%, transparent 65%); mask-image: linear-gradient(90deg, transparent 35%, #000 47%, #000 53%, transparent 65%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: wave-pulse 1.8s cubic-bezier(.45,.05,.35,1) .5s 1 both; }
.brand:hover .logo-wave, .brand:focus-visible .logo-wave { animation: wave-pulse-again 1.4s cubic-bezier(.45,.05,.35,1) 1 both; }
@keyframes wave-pulse { 0% { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; } 85% { opacity: 1; } 100% { opacity: 0; -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes wave-pulse-again { 0% { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; } 85% { opacity: 1; } 100% { opacity: 0; -webkit-mask-position: 0 0; mask-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .brand .logo-wave { display: none; } }
.site-footer .logo { height: 54px; width: auto; margin-bottom: 10px; }
.brand span small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: #ffffff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--btn-a), var(--btn-b));
  color: #ffffff; font-weight: 800; font-size: .95rem;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 8px 30px -10px rgba(0, 166, 219, .6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #ffffff; transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(0, 166, 219, .8); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* hero */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(0, 166, 219, .18), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(35,31,32,.28)); }

/* sections */
section { padding: 88px 0; }
.section-head { max-width: 46em; margin-bottom: 48px; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: rgba(0, 166, 219, .1); color: var(--blue);
  border: 1px solid rgba(0, 166, 219, .25);
}
.card .icon svg { width: 22px; height: 22px; }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 2.4rem; color: var(--blue); display: block; margin-bottom: 8px;
}
.step p { color: var(--ink-2); }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue) 35%, rgba(0,166,219,.15) 40%);
}
.checks li strong { color: var(--ink); }

/* encore promo band */
.promo {
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(0, 166, 219, .10), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(0, 166, 219, .14), transparent 60%),
    var(--bg-2);
  padding: 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}

/* cta */
.cta { text-align: center; padding: 104px 0; }
.cta .lede { margin: 0 auto; }
.cta .btn-row { justify-content: center; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  color: #f4f4f4;
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px;
  border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 24px;
  grid-column: span 2;
}
.tile.wide { grid-column: span 4; }
.tile.half { grid-column: span 3; }
.tile .scene { position: absolute; inset: 0; }
.tile .label { position: relative; }
.tile .label h3 { margin: 0 0 4px; }
.tile .label p { margin: 0; color: #d4d4d6; font-size: .92rem; }
.tile .label a { color: #5cc8ef; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.7)); }
.tile .label { z-index: 1; }
.notice-pill {
  display: inline-flex; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--ink-2); font-size: .9rem;
  background: var(--bg-2);
}
.notice-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list li span { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 4px; }
.info-list li a, .info-list li b { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
form.card { padding: 32px; }
form label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .field { margin-bottom: 18px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-3); margin-top: 12px; }

/* project planner */
.planner:hover { transform: none; border-color: var(--line); }
.planner-head { margin-bottom: 20px; }
.planner-title { font-size: 1.6rem; margin: 0 0 4px; }
.planner-count { font-size: .9rem; color: var(--ink-3); margin: 0 0 12px; font-weight: 600; }
.planner-bar { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.planner-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--btn-a), var(--blue-2)); transition: width .35s ease; }
.pstep { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.pstep legend { font-family: Fraunces, serif; font-size: 1.3rem; font-weight: 500; color: var(--ink); padding: 0; margin-bottom: 6px; }
.pstep legend:focus { outline: none; }
.pstep-hint { color: var(--ink-2); font-size: .95rem; margin: 14px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip { position: relative; margin: 0; font-size: .95rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); transition: background .15s, border-color .15s, color .15s; }
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--btn-b); border-color: var(--btn-b); color: #fff; }
.chip input:checked + span::before { content: "\2713\00a0"; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.field-err { color: #b3261e; font-size: .85rem; margin: 6px 0 0; min-height: 0; }
.field-err:empty { display: none; }
input[aria-invalid="true"] { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.planner-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.planner-nav [hidden], .planner [hidden] { display: none !important; }
.planner:not(.is-wizard) #planner-next, .planner:not(.is-wizard) #planner-back { display: none; }
.planner-done h2 { font-size: 1.8rem; margin: 0 0 8px; }
.planner-done h2:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .planner-bar span, .chip span { transition: none; } }

/* page hero (interior) */
.page-hero { padding: 88px 0 40px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; left: 50%; top: -40%; width: 80%; height: 140%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 166, 219, .13), transparent 70%); pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--ink-3); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 960px) {
  .hero .wrap, .split, .promo, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .promo { padding: 36px 28px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide, .tile.half { grid-column: span 2; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { justify-content: center; margin-top: 14px; border-bottom: 0; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.half { grid-column: span 1; min-height: 220px; }
}

/* project photos */
.tile { margin: 0; min-height: 300px; }
.tile.wide { min-height: 400px; }
.tile.full { grid-column: 1 / -1; min-height: 320px; }
.tile img.scene { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(35, 31, 32, .35); }
@media (max-width: 760px) { .tile, .tile.wide { min-height: 240px; } }
.tile.tall { min-height: 460px; }
.work-photo { display: block; position: relative; margin-top: 28px; border-radius: var(--radius); overflow: hidden; max-width: 420px; }
.work-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.work-photo span { position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 700; font-size: .9rem; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
@media (max-width: 760px) { .tile.tall { min-height: 380px; } }

/* accessibility */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.tile:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
p a, li a, .site-footer div a, .tile .label a, .form-note a { text-decoration: underline; text-underline-offset: 3px; }
.btn, .nav a, .site-footer nav a, .brand, .work-photo { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main:focus { outline: none; }

/* ===== Scene demo (home) ===== */
.tinted { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scene-demo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.stage { position: relative; width: 100%; border-radius: 22px; overflow: hidden; aspect-ratio: 900 / 810; background: #111; box-shadow: 0 30px 60px -25px rgba(35,31,32,.45); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-dim { position: absolute; inset: 0; background: #05070a; opacity: 0; transition: opacity 1.6s ease; }
.stage-glow { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(70% 60% at 50% 20%, rgba(255, 214, 160, .9), transparent 70%); opacity: .35; transition: opacity 1.6s ease; }
.stage-screen { position: absolute; left: 13.11%; top: 4.57%; width: 68.89%; height: 42.1%; container-type: inline-size; }
.scr { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; display: flex; align-items: flex-end; gap: 4cqw; padding: 6cqw; color: #fff; font-family: var(--sans); }
.scr-tag { display: block; font-size: 4.2cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .75; font-weight: 700; }
.scr-title { display: block; font-family: var(--serif); font-size: 9cqw; line-height: 1.05; }
.scr-movie { flex-direction: column; align-items: flex-start; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.65)), radial-gradient(120% 90% at 70% 30%, #e08a4c, #6b2f3d 45%, #141a2e 80%); }
.scr-music { background: linear-gradient(135deg, #10202c, #0b0f17); align-items: center; }
.scr-art { width: 30cqw; aspect-ratio: 1; border-radius: 2cqw; flex: none; background: conic-gradient(from 210deg, #00a6db, #1b3a5c, #e3a35a, #00a6db); }
.scr-off { background: #07080a; }
.stage[data-scene="movie"] .stage-dim { opacity: .72; }
.stage[data-scene="movie"] .scr-movie { opacity: 1; }
.stage[data-scene="movie"] .stage-glow,
.stage[data-scene="goodnight"] .stage-glow { opacity: 0; }
.stage[data-scene="music"] .stage-dim { opacity: .38; }
.stage[data-scene="music"] .scr-music { opacity: 1; }
.stage[data-scene="music"] .stage-glow { opacity: .2; }
.stage[data-scene="goodnight"] .stage-dim { opacity: .9; }
.stage[data-scene="goodnight"] .scr-off { opacity: 1; }

.keypad-panel { background: #1b191a; color: #f4f4f4; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 22px; --blue: #4cc3ee; }
.keypad { display: grid; gap: 10px; background: linear-gradient(180deg, #2e2b2c, #232021); border: 1px solid #3a3638; border-radius: 16px; padding: 14px; }
.kp-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: 700 1rem var(--sans); letter-spacing: .04em;
  color: #e9e9ea; background: linear-gradient(180deg, #3a3637, #2c292a); border: 1px solid #4a4547; border-radius: 10px; padding: 14px 16px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 0 #151314; transition: transform .1s ease, background .2s ease; }
.kp-btn:hover { background: linear-gradient(180deg, #423e3f, #322f30); }
.kp-btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.kp-btn i { width: 9px; height: 9px; border-radius: 50%; background: #4a4547; flex: none; transition: background .3s ease, box-shadow .3s ease; }
.kp-btn[aria-pressed="true"] i { background: #4cc3ee; box-shadow: 0 0 10px #00a6db; }
.kp-btn[aria-pressed="true"] { color: #fff; }
.room-status { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0; }
.room-status div { border-top: 1px solid #3a3638; padding-top: 8px; }
.room-status dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #a9a9ab; font-weight: 700; }
.room-status dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.room-status dd.changed { animation: statpulse .9s ease; }
@keyframes statpulse { 0% { color: #4cc3ee; } 100% { color: inherit; } }
.demo-note { font-size: .82rem; color: #a9a9ab; margin: auto 0 0; }
@media (max-width: 960px) { .scene-demo { grid-template-columns: 1fr; } .keypad { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .stage-dim, .stage-glow, .scr { transition: none; } .room-status dd.changed { animation: none; } }

/* ===== Encore demo ===== */
.enc-demo { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.enc-tv { background: #0b0a09; border: 6px solid #2a2627; border-radius: 16px; box-shadow: 0 30px 60px -25px rgba(35,31,32,.5); }
.enc-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px; container-type: inline-size;
  background: radial-gradient(90% 80% at 85% 0%, rgba(0,166,219,.16), transparent 60%), linear-gradient(180deg, #121516, #0a0b0c);
  color: #f1f1f2; font-family: var(--sans); }
.enc-home, .enc-app, .enc-saver { position: absolute; inset: 0; transition: opacity .5s ease, transform .5s ease; }
.enc-home { padding: 4.5cqw 5cqw; display: flex; flex-direction: column; gap: 3cqw; }
.enc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.enc-time { font-family: var(--serif); font-size: 7.5cqw; line-height: 1; }
.enc-date { font-size: 1.9cqw; color: #a9a9ab; margin-top: .8cqw; }
.enc-house { display: flex; flex-direction: column; align-items: flex-end; gap: .4cqw; font-size: 1.9cqw; color: #d8d8da; }
.enc-label { font-size: 1.5cqw; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: #8d8e90; }
.enc-side .enc-label { font-size: .72rem; color: #a9a9ab; }
.enc-notice { display: flex; align-items: center; gap: 1.6cqw; font-size: 2.1cqw; padding: 1.4cqw 2.4cqw; border-radius: 99px;
  background: rgba(0,166,219,.14); border: 1px solid rgba(76,195,238,.5); opacity: 0; transform: translateY(-1.5cqw); transition: opacity .45s ease, transform .45s ease; }
.enc-notice.show { opacity: 1; transform: none; }
.enc-notice i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #4cc3ee; box-shadow: 0 0 1.4cqw #00a6db; flex: none; }
.enc-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.8cqw; margin-top: auto; }
.enc-tile { aspect-ratio: 4 / 3; border: 0; border-radius: 1.4cqw; cursor: pointer; position: relative; padding: 0;
  display: flex; align-items: flex-end; justify-content: flex-start; color: #fff; font: 700 1.7cqw var(--sans);
  transition: transform .2s ease, box-shadow .2s ease; outline: none; }
.enc-tile span { padding: 1cqw 1.2cqw; }
.enc-tile.t1 { background: linear-gradient(135deg, #e3965f, #a95a34); }
.enc-tile.t2 { background: linear-gradient(135deg, #3d7180, #22414a); }
.enc-tile.t3 { background: linear-gradient(135deg, #8a73ab, #4f3f68); }
.enc-tile.t4 { background: linear-gradient(135deg, #d9a441, #8a5e12); }
.enc-tile.t5 { background: linear-gradient(135deg, #5c7a4f, #34472d); }
.enc-tile.t6 { background: linear-gradient(135deg, #4d5a73, #262d3c); }
.enc-tile.is-focus { transform: scale(1.1); box-shadow: 0 0 0 .45cqw #fff, 0 1.5cqw 3cqw rgba(0,0,0,.5); z-index: 1; }
.enc-screen:focus-within .enc-tile.is-focus { box-shadow: 0 0 0 .45cqw #4cc3ee, 0 1.5cqw 3cqw rgba(0,0,0,.5); }
.enc-app { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw; opacity: 0; transform: scale(1.04); pointer-events: none;
  background: radial-gradient(60% 60% at 50% 45%, #1d2a33, #07090b); }
.enc-app-name { font-family: var(--serif); font-size: 6cqw; }
.enc-app-hint { font-size: 1.8cqw; color: #a9a9ab; }
.enc-saver { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5cqw; opacity: 0; pointer-events: none; background: #050606; }
.enc-saver-time { font-family: "Courier New", monospace; font-size: 13cqw; letter-spacing: .06em; color: #4cc3ee; text-shadow: 0 0 2cqw rgba(0,166,219,.7); }
.enc-saver-line { font-size: 1.9cqw; color: #8fd8f2; letter-spacing: .08em; text-transform: uppercase; }
.enc-screen[data-mode="app"] .enc-home, .enc-screen[data-mode="saver"] .enc-home { opacity: 0; pointer-events: none; }
.enc-screen[data-mode="app"] .enc-app { opacity: 1; transform: none; }
.enc-screen[data-mode="saver"] .enc-saver { opacity: 1; pointer-events: auto; cursor: pointer; }
.enc-side { background: #1b191a; color: #f4f4f4; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 20px; --blue: #4cc3ee; }
.enc-remote { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 56px) 44px; gap: 6px; justify-content: center;
  background: linear-gradient(180deg, #2e2b2c, #232021); border: 1px solid #3a3638; border-radius: 28px; padding: 16px; }
.enc-remote button { border: 1px solid #4a4547; background: linear-gradient(180deg, #3a3637, #2c292a); color: #e9e9ea; border-radius: 14px; font: 700 .95rem var(--sans); cursor: pointer; }
.enc-remote button:hover { background: linear-gradient(180deg, #423e3f, #322f30); }
.enc-remote button:active { transform: translateY(1px); }
.r-up { grid-column: 2; grid-row: 1; } .r-left { grid-column: 1; grid-row: 2; } .r-ok { grid-column: 2; grid-row: 2; border-radius: 50% !important; }
.r-right { grid-column: 3; grid-row: 2; } .r-down { grid-column: 2; grid-row: 3; } .r-back { grid-column: 1 / 4; grid-row: 4; }
.enc-c4 { display: grid; gap: 8px; }
@media (max-width: 960px) { .enc-demo { grid-template-columns: 1fr; } .enc-side { display: grid; grid-template-columns: auto 1fr; align-items: start; } }
@media (max-width: 560px) {
  .enc-side { grid-template-columns: 1fr; }
  .enc-screen { aspect-ratio: 4 / 3; }
  .enc-home { gap: 2.4cqw; padding: 4.5cqw; }
  .enc-row { grid-template-columns: repeat(3, 1fr); gap: 2.2cqw; }
  .enc-row .enc-tile { aspect-ratio: 16 / 9; font-size: 3cqw; }
  .enc-time { font-size: 10cqw; } .enc-date, .enc-house { font-size: 2.8cqw; } .enc-label { font-size: 2.2cqw; } .enc-notice { font-size: 3cqw; }
  .enc-tile.is-focus { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .enc-home, .enc-app, .enc-saver, .enc-notice, .enc-tile { transition: none; } }

/* service page */
.fixes-title { font-size: 1.6rem; margin: 0 0 6px; }
.fix { border-bottom: 1px solid var(--line); }
.fix:first-of-type { border-top: 1px solid var(--line); margin-top: 18px; }
.fix summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; list-style: none; position: relative; }
.fix summary::-webkit-details-marker { display: none; }
.fix summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--ink-3); }
.fix[open] summary::after { content: "\2212"; }
.fix summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.fix p { margin: 0 0 18px; color: var(--ink-2); }
#service-form .pstep { margin-bottom: 18px; }
#service-form .svc-fields > .btn { margin-top: 8px; }

/* theater mode: the house lights go down (toggle in the header, saved per visitor) */
html[data-theme="theater"] {
  --bg: #0f0e0f; --bg-2: #161415; --panel: #1b191a; --line: #2f2c2d;
  --ink: #f2f2f2; --ink-2: #c6c6c8; --ink-3: #a2a3a5;
  --link: #5cc8ef; --blue: #4cc3ee; --teal: #4cc3ee;
  color-scheme: dark;
}
html[data-theme="theater"] .band { --bg: #1b191a; --bg-2: #232021; --panel: #262324; --line: #3a3638; }
html[data-theme="theater"] .site-header { background: rgba(15, 14, 15, .88); }
html[data-theme="theater"] .brand .logo { content: url("../img/homefx-logo-dark.png"); }
html[data-theme="theater"] .site-footer .logo { content: url("../img/homefx-logo-dark.png"); }
html[data-theme="theater"] .skip-link { background: #f2f2f2; color: #0f0e0f; }
html[data-theme="theater"] .stage, html[data-theme="theater"] .enc-tv { box-shadow: 0 30px 60px -25px rgba(0,0,0,.8); }
html[data-theme="theater"] .card:hover { border-color: #4a4648; }
html.theme-fade, html.theme-fade body, html.theme-fade .site-header, html.theme-fade .band, html.theme-fade .card {
  transition: background-color .9s ease, color .9s ease, border-color .9s ease !important; }
.theater-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 999px; padding: 7px 12px 7px 9px; font: 600 .85rem var(--sans); cursor: pointer; margin-left: auto; margin-right: 18px; }
.theater-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theater-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.theater-toggle svg { width: 18px; height: 18px; }
.theater-toggle .t-on { display: none; }
html[data-theme="theater"] .theater-toggle .t-on { display: block; }
html[data-theme="theater"] .theater-toggle .t-off { display: none; }
@media (max-width: 760px) { .theater-toggle { margin-right: 10px; } .theater-toggle .t-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* screen size calculator */
.calc { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.calc .card:hover { transform: none; }
.calc-label { display: block; font-weight: 700; margin: 6px 0 10px; }
.calc-range { width: 100%; accent-color: var(--btn-a); height: 28px; }
.calc-ftin { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.calc-use { margin-top: 8px; }
.calc-result .calc-kicker { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin: 0; }
.calc-result .calc-big { font-family: var(--serif); font-size: clamp(3.6rem, 9vw, 5.6rem); line-height: 1; margin: 6px 0 12px; color: var(--ink); }
.calc-unit { font-size: 1.3rem; margin-left: 8px; color: var(--ink-2); font-family: var(--sans); font-weight: 700; }
.calc-sub { font-size: 1.3rem; color: var(--ink-2); font-family: var(--sans); font-weight: 700; }
.calc-range-text { color: var(--ink-2); margin-bottom: 8px; }
.calc-diagram { width: 100%; height: auto; margin: 6px 0 4px; }
.d-wall { stroke: var(--line); stroke-width: 3; }
.d-cone { fill: rgba(0, 166, 219, .14); stroke: var(--blue-2); stroke-width: 1; stroke-dasharray: 3 3; }
.d-screen { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.d-seat rect { fill: var(--bg-2); stroke: var(--ink-3); stroke-width: 1.5; }
.d-head { fill: var(--blue-2); }
.d-label { font: 700 13px var(--sans); fill: var(--blue); }
.d-dist { font: 600 12px var(--sans); fill: var(--ink-3); }
.calc-note { color: var(--ink-2); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
