/* AYVA Technologies — site stylesheet
   Tokens mirror the AYVA design system (tokens.json). Change values here, not inline. */

@font-face { font-family: "Sora"; src: url("../fonts/Sora-Variable.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  /* Brand */
  --brand-navy: #2E3191;
  --brand-sky: #26A9E0;
  /* Surfaces */
  --surface: #FFFFFF;
  --surface-alt: #F3F6FB;
  --surface-deep: #12143F;
  --surface-deep-raised: #1B1E55;
  /* Text */
  --ink: #14163A;
  --ink-muted: #4A4F6E;
  --ink-on-deep: #FFFFFF;
  --ink-on-deep-muted: #AEB4D6;
  --link: #1673A6;
  --link-on-deep: #5CC3F0;
  /* Lines & controls */
  --line: #DCE1EE;
  --line-on-deep: #2F3470;
  --control-border: #8C93B0;
  --focus: #1673A6;
  --focus-on-deep: #5CC3F0;
  /* Actions */
  --action: #2E3191;
  --action-hover: #23266F;
  --on-action: #FFFFFF;
  --success: #1F7A4D;
  --danger: #B42318;

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  /* Radius */
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(20, 22, 58, .06), 0 8px 24px rgba(20, 22, 58, .06);
  --shadow-lift: 0 2px 4px rgba(20, 22, 58, .08), 0 18px 40px rgba(20, 22, 58, .12);

  --container: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.deep :focus-visible { outline-color: var(--focus-on-deep); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--action); color: var(--on-action); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: inherit; margin: 0; letter-spacing: -0.01em; }
.display { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; }
.h1 { font-size: clamp(34px, 4.6vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
.h3 { font-size: 21px; line-height: 1.35; font-weight: 600; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-muted); }
.small { font-size: 14px; line-height: 1.55; }
.muted { color: var(--ink-muted); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-navy);
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-navy) 50%, var(--brand-sky) 50%); }
.deep .eyebrow { color: var(--brand-sky); }
.deep .eyebrow::before { background: linear-gradient(90deg, #FFFFFF 50%, var(--brand-sky) 50%); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-8) 0; }
.alt { background: var(--surface-alt); }
.deep { background: var(--surface-deep); color: var(--ink-on-deep); }
.deep .lead, .deep .muted { color: var(--ink-on-deep-muted); }
.deep a:not(.btn) { color: var(--link-on-deep); }
.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: var(--space-4); }
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-8); align-items: center; }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: var(--space-7); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: var(--space-8) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); }
.btn-secondary { background: transparent; color: var(--brand-navy); border-color: var(--brand-navy); }
.btn-secondary:hover { background: var(--brand-navy); color: #FFFFFF; }
.deep .btn-primary { background: var(--brand-sky); color: var(--surface-deep); }
.deep .btn-primary:hover { background: #5CC3F0; }
.deep .btn-secondary { color: #FFFFFF; border-color: rgba(255,255,255,.55); }
.deep .btn-secondary:hover { background: #FFFFFF; color: var(--surface-deep); border-color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.text-link { font-family: var(--font-display); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--brand-navy); }
.text-link:hover { gap: 12px; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.deep .text-link { color: var(--link-on-deep); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: var(--space-5); }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { background: var(--surface-alt); }
.nav-links a[aria-current="page"] { color: var(--brand-navy); background: var(--surface-alt); font-weight: 600; }
.nav-links .btn { margin-left: var(--space-2); min-height: 42px; padding: 0 18px; color: var(--on-action); }
.nav-links .btn:hover { background: var(--action-hover); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; max-height: calc(100vh - 76px); overflow-y: auto; flex-direction: column; align-items: stretch; background: var(--surface); padding: var(--space-3) var(--gutter) var(--space-5); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 16px; }
  .nav-links .btn { margin: var(--space-3) 0 0; }
  .brand img { height: 34px; }
}
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--space-9) 0 var(--space-10); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: var(--space-8); align-items: center; }
.hero .lead { margin-top: var(--space-5); max-width: 560px; }
.hero-watermark { position: absolute; right: -140px; top: 50%; width: 720px; transform: translateY(-50%); opacity: .06; pointer-events: none; }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-6); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line-on-deep); }
.hero-meta div { font-size: 14px; color: var(--ink-on-deep-muted); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 15px; color: #FFFFFF; font-weight: 600; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: var(--space-8) 0 var(--space-9); } }
.page-hero { padding: var(--space-9) 0 var(--space-8); position: relative; overflow: hidden; }
.page-hero .lead { margin-top: var(--space-5); max-width: 640px; }
.crumbs { font-size: 13px; color: var(--ink-on-deep-muted); margin-bottom: var(--space-5); font-family: var(--font-display); }
.crumbs a { color: var(--ink-on-deep-muted); text-decoration: none; }
.crumbs a:hover { color: #FFFFFF; }

/* ---------- Home panel illustration (hero) ---------- */
.panel-ill { position: relative; background: var(--surface-deep-raised); border: 1px solid var(--line-on-deep); border-radius: 28px; padding: var(--space-5); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); }
.panel-top .t { font-family: var(--font-display); font-size: 13px; color: var(--ink-on-deep-muted); }
.panel-top .t b { display: block; color: #FFFFFF; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.panel-chip { font-size: 12px; font-family: var(--font-display); padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(38,169,224,.14); color: #5CC3F0; font-weight: 600; }
.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.scene { background: rgba(255,255,255,.04); border: 1px solid var(--line-on-deep); border-radius: var(--radius-md); padding: 14px; color: #FFFFFF; font-family: var(--font-display); font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 14px; cursor: pointer; text-align: left; transition: background .2s, border-color .2s; }
.scene small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--ink-on-deep-muted); font-size: 12px; margin-top: 2px; }
.scene .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #5CC3F0; }
.scene .ic svg { width: 18px; height: 18px; }
.scene[aria-pressed="true"] { background: var(--brand-sky); border-color: var(--brand-sky); color: var(--surface-deep); }
.scene[aria-pressed="true"] small { color: rgba(18,20,63,.75); }
.scene[aria-pressed="true"] .ic { background: rgba(18,20,63,.12); color: var(--surface-deep); }
.panel-rows { margin-top: var(--space-4); display: grid; gap: 10px; }
.prow { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: var(--radius-md); background: rgba(255,255,255,.04); font-size: 13.5px; color: var(--ink-on-deep-muted); }
.prow b { color: #FFFFFF; font-family: var(--font-display); font-weight: 600; }
.bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); margin: 0 14px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #5CC3F0, var(--brand-sky)); border-radius: 6px; transition: width .6s ease; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); transition: box-shadow .25s, transform .25s, border-color .25s; }
.card:hover { box-shadow: var(--shadow-card); border-color: #C9D0E4; }
.alt .card { border-color: transparent; }
.card .h3 { margin: var(--space-5) 0 var(--space-2); }
.card p { color: var(--ink-muted); font-size: 15.5px; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-alt); color: var(--brand-navy); position: relative; }
.alt .icon-tile { background: #E6ECF7; }
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile::after { content: ""; position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; transform: rotate(45deg); border-radius: 2px; background: var(--brand-sky); }
.card ul { margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-muted); margin-bottom: 6px; }
.card li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--brand-sky); border-radius: 1px; }

/* Pillar cards (home) */
.pillar { position: relative; overflow: hidden; border-radius: 24px; padding: var(--space-7); min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pillar .tag { align-self: flex-start; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: var(--radius-pill); }
.pillar h3 { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; font-weight: 600; margin: var(--space-6) 0 var(--space-4); max-width: 420px; }
.pillar p { max-width: 440px; }
.pillar .text-link { margin-top: var(--space-5); }
.pillar-ha { background: var(--brand-navy); color: #FFFFFF; }
.pillar-ha .tag { background: rgba(255,255,255,.12); color: #FFFFFF; }
.pillar-ha p { color: #D5D9F2; }
.pillar-ha .text-link { color: #FFFFFF; }
.pillar-cloud { background: var(--surface-alt); color: var(--ink); border: 1px solid var(--line); }
.pillar-cloud .tag { background: #FFFFFF; color: var(--brand-navy); border: 1px solid var(--line); }
.pillar-cloud p { color: var(--ink-muted); }
.pillar-art { position: absolute; right: -60px; bottom: -60px; width: 300px; opacity: .9; pointer-events: none; }
.pillar > *:not(.pillar-art) { position: relative; z-index: 1; }
@media (max-width: 640px) { .pillar { padding: var(--space-6); min-height: 380px; } .pillar-art { width: 220px; right: -50px; bottom: -50px; } }

/* ---------- Stats / facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: var(--space-6) var(--space-5); border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--brand-navy); margin-bottom: 6px; }
.fact span { font-size: 14.5px; color: var(--ink-muted); line-height: 1.5; display: block; }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, 1fr); } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid var(--line); } .fact:last-child { border-bottom: 0; } }

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); counter-reset: step; }
.step { position: relative; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-deep-raised); border: 1px solid var(--line-on-deep); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--brand-sky); letter-spacing: .1em; }
.step h3 { font-size: 18px; margin: var(--space-4) 0 var(--space-2); color: #FFFFFF; }
.step p { font-size: 14.5px; color: var(--ink-on-deep-muted); }
.alt .step, .light-steps .step { background: var(--surface); border-color: var(--line); }
.light-steps .step h3 { color: var(--ink); }
.light-steps .step p { color: var(--ink-muted); }
.light-steps .step::before { color: var(--link); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- KNX diagram ---------- */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: var(--space-5); }
.diagram svg { width: 100%; height: auto; }
.diagram-cap { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); font-size: 13px; color: var(--ink-muted); }
.diagram-cap span { display: inline-flex; align-items: center; gap: 8px; }
.diagram-cap i { width: 18px; height: 3px; border-radius: 3px; display: inline-block; }

/* ---------- Checklist ---------- */
.checks { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-4); }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checks li svg { width: 22px; height: 22px; color: var(--brand-navy); margin-top: 2px; }
.deep .checks li svg { color: var(--brand-sky); }
.checks b { font-family: var(--font-display); font-weight: 600; display: block; margin-bottom: 2px; }
.checks span { color: var(--ink-muted); font-size: 15px; }
.deep .checks span { color: var(--ink-on-deep-muted); }

/* ---------- Projects ---------- */
.project { border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.project-media { aspect-ratio: 16 / 10; background: var(--surface-deep); position: relative; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.project-media .ph svg { width: 70%; height: auto; opacity: .95; }
.project-media .badge { position: absolute; left: 16px; top: 16px; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.95); color: var(--brand-navy); }
.project-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.project-body .loc { font-size: 13px; color: var(--ink-muted); font-family: var(--font-display); letter-spacing: .04em; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: var(--space-3); }
.specs span { font-size: 12.5px; font-family: var(--font-display); font-weight: 500; padding: 6px 11px; border-radius: var(--radius-pill); background: var(--surface-alt); color: var(--ink); }

/* ---------- Cloud teaser ---------- */
.cloud-hero { background: var(--surface-deep); color: #FFFFFF; position: relative; overflow: hidden; }
.cloud-visual { position: relative; aspect-ratio: 1; max-width: 460px; margin-left: auto; }
.cloud-visual svg { width: 100%; height: 100%; }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.promise .card .num { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--link); }
@media (max-width: 960px) { .promise { grid-template-columns: 1fr; } .cloud-visual { margin: 0 auto; max-width: 360px; } }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-alt); }
.compare thead th:last-child { color: var(--brand-navy); }
.compare td:first-child { font-family: var(--font-display); font-weight: 600; width: 30%; }
.compare td:last-child { color: var(--brand-navy); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--ink-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--control-border); border-radius: var(--radius-md);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(22,115,166,.2); }
.form-note { font-size: 13px; color: var(--ink-muted); }
.form-status { font-size: 14.5px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }
.form-card { background: var(--surface); color: var(--ink); border-radius: 24px; padding: var(--space-7); box-shadow: var(--shadow-lift); }
.deep .form-card .lead, .deep .form-card .muted { color: var(--ink-muted); }
@media (max-width: 640px) { .form-card { padding: var(--space-5); } }
.inline-form { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.inline-form .input { flex: 1 1 240px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--control-border); font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-display); }
.chip input:checked + span { background: var(--brand-navy); border-color: var(--brand-navy); color: #FFFFFF; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; background: var(--brand-navy); color: #FFFFFF; padding: var(--space-8) var(--space-7); display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-6); align-items: center; }
.cta-band .lead { color: #D5D9F2; margin-top: var(--space-3); }
.cta-band .btn-primary { background: #FFFFFF; color: var(--brand-navy); }
.cta-band .btn-primary:hover { background: var(--brand-sky); color: var(--surface-deep); }
.cta-band .btn-secondary { color: #FFFFFF; border-color: rgba(255,255,255,.6); }
.cta-band .btn-secondary:hover { background: #FFFFFF; color: var(--brand-navy); }
.cta-band .btn-row { margin-top: 0; }
.cta-band .wm { position: absolute; right: -80px; top: -90px; width: 380px; opacity: .08; pointer-events: none; }
.cta-band > *:not(.wm) { position: relative; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: var(--space-7) var(--space-5); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--brand-navy); border-bottom: 2px solid var(--brand-navy); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-muted); max-width: 780px; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); align-items: start; }
.contact-list .icon-tile { width: 48px; height: 48px; }
.contact-list .icon-tile svg { width: 22px; height: 22px; }
.contact-list b { font-family: var(--font-display); display: block; font-weight: 600; margin-bottom: 2px; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--link); text-decoration: underline; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--surface-alt); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-deep); color: var(--ink-on-deep-muted); padding: var(--space-8) 0 var(--space-5); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: var(--space-6); }
.footer-grid h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #FFFFFF; margin-bottom: var(--space-4); font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--ink-on-deep-muted); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-brand img { height: 40px; width: auto; margin-bottom: var(--space-4); }
.footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line-on-deep); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); font-size: 13px; }
.footer-stripe { height: 8px; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.footer-stripe i:nth-child(1), .footer-stripe i:nth-child(3) { background: var(--brand-sky); }
.footer-stripe i:nth-child(2) { background: var(--brand-navy); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); }

/* refinements */
.nav-links .btn { display: inline-flex; }
.h1 + .lead, .h2 + .lead, .display + .lead { margin-top: var(--space-4); }
.split.top { align-items: start; }
.pillar-art { right: -70px; top: -70px; bottom: auto; width: 240px; }
.pillar-cloud .pillar-art { opacity: .8; }
@media (max-width: 640px) { .pillar-art { width: 180px; right: -60px; top: -60px; bottom: auto; } }
.deep .crumbs a { color: var(--ink-on-deep-muted); }
.deep .crumbs a:hover { color: #FFFFFF; }
.cloud-visual { width: 100%; }

/* ================= Premium pass: hero stage, panel gallery, atmosphere ================= */
.hero { background: radial-gradient(900px 600px at 78% 40%, rgba(38,169,224,.18), transparent 60%), radial-gradient(700px 500px at 10% 100%, rgba(46,49,145,.55), transparent 60%), var(--surface-deep); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%); pointer-events: none; }
.hero .hero-watermark { opacity: .04; }

/* Panel gallery (bento) */
.panels { position: relative; overflow: hidden; }
.panels::before { content: ""; position: absolute; right: -200px; top: -200px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(closest-side, rgba(38,169,224,.14), transparent); pointer-events: none; }
.panel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: var(--space-4); position: relative; }
.ptile { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.ptile:hover { transform: translateY(-4px); border-color: rgba(38,169,224,.55); box-shadow: 0 24px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(38,169,224,.2) inset; }
.ptile.wide { grid-column: span 2; }
.ptile.tall { grid-row: span 2; }
.pimg { flex: 1 1 0; display: flex; align-items: center; justify-content: center; padding: 26px 26px 6px; min-height: 0; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)); transition: transform .4s ease; }
.ptile:hover .pimg img { transform: scale(1.04); }
.ptile figcaption { padding: 0 22px 18px; font-family: var(--font-display); }
.ptile figcaption b { display: block; font-size: 15px; font-weight: 600; color: #FFFFFF; }
.ptile figcaption span { display: block; font-family: var(--font-body); font-size: 13px; color: var(--ink-on-deep-muted); margin-top: 2px; }
@media (max-width: 960px) { .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; } .ptile.tall { grid-row: span 1; } .ptile.wide { grid-column: span 2; } }
@media (max-width: 520px) { .panel-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; } .ptile.wide { grid-column: span 1; } }

/* Panel strip (Experience Centre) */
.panel-strip { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-6) var(--space-6); margin-bottom: var(--space-7); border-radius: 24px; background: var(--surface-deep); overflow: hidden; position: relative; }
.panel-strip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 50% 100%, rgba(38,169,224,.25), transparent 70%); pointer-events: none; }
.panel-strip img { position: relative; height: 150px; width: auto; max-width: 30%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
@media (max-width: 760px) { .panel-strip { flex-wrap: wrap; justify-content: center; } .panel-strip img { height: 110px; max-width: 45%; } }

/* CTA band with a panel */
.cta-band .cta-panel { position: absolute; right: 34%; top: 50%; transform: translateY(-50%) rotate(-6deg); height: 150%; width: auto; opacity: .16; pointer-events: none; filter: blur(.3px); }
@media (max-width: 860px) { .cta-band .cta-panel { display: none; } }

/* Deep bands get a soft top light */
.section.deep { background: radial-gradient(800px 300px at 20% 0%, rgba(46,49,145,.5), transparent 60%), var(--surface-deep); }
.page-hero.deep { background: radial-gradient(900px 500px at 85% 30%, rgba(38,169,224,.16), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(46,49,145,.6), transparent 60%), var(--surface-deep); }

/* Nicer card hover accent */
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--brand-navy), var(--brand-sky)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card { position: relative; overflow: hidden; }
.card:hover::after { transform: scaleX(1); }

/* ---------- Room scene stage (hero) ---------- */
.room-stage { display: flex; flex-direction: column; gap: var(--space-4); align-items: center; }
.room-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--surface-deep-raised); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(38,169,224,.12); }
.room-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.room-img.is-on { opacity: 1; }
.room-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(18,20,63,0) 45%, rgba(9,10,36,.72)); pointer-events: none; }
.room-hud { position: absolute; left: 18px; bottom: 18px; z-index: 2; padding: 12px 16px; border-radius: 14px; background: rgba(10,12,40,.62); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); font-family: var(--font-display); max-width: calc(100% - 36px); }
.room-room { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-on-deep-muted); font-weight: 600; }
.room-room::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-sky); box-shadow: 0 0 0 0 rgba(38,169,224,.6); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(38,169,224,.55); } 70% { box-shadow: 0 0 0 9px rgba(38,169,224,0); } 100% { box-shadow: 0 0 0 0 rgba(38,169,224,0); } }
.room-hud b { display: block; font-size: 19px; font-weight: 600; color: #FFFFFF; margin: 3px 0 1px; }
.room-desc { display: block; font-family: var(--font-body); font-size: 13px; color: var(--ink-on-deep-muted); }
.room-panel { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 38%; max-width: 230px; height: auto; border-radius: 6px; filter: drop-shadow(0 16px 26px rgba(0,0,0,.6)); }
.room-note { color: var(--ink-on-deep-muted); margin: 0; }
@media (prefers-reduced-motion: reduce) { .room-img { transition: none; } .room-room::before { animation: none; } }
@media (max-width: 640px) { .room-hud { left: 12px; bottom: 12px; padding: 10px 13px; } .room-hud b { font-size: 17px; } .room-panel { width: 42%; right: 10px; bottom: 10px; } }

/* project media: real photo */
.project-media img { position: relative; z-index: 0; }

/* Scene pills (hero) */
.scenes-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.scene-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: #FFFFFF; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s, border-color .2s, color .2s, transform .2s; }
.scene-pill svg { width: 16px; height: 16px; flex: none; color: var(--brand-sky); transition: color .2s; }
.scene-pill:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.scene-pill[aria-pressed="true"] { background: var(--brand-sky); border-color: var(--brand-sky); color: var(--surface-deep); }
.scene-pill[aria-pressed="true"] svg { color: var(--surface-deep); }

/* Panel inset reads as a device card, not a sticker on the sofa */
.room-panel { width: 34%; max-width: 200px; right: 18px; bottom: 18px; padding: 8px; border-radius: 12px; background: rgba(10,12,40,.55); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); box-sizing: border-box; }
@media (max-width: 480px) { .room-panel { display: none; } }
