/* =========================================================
   D4U Architectural & Interior Design Studio
   Brand: Black #000000 · White #FFFFFF · Architectural Orange #E87722
   Type:  Cormorant Garamond (display) · Montserrat (UI) · Open Sans (body)
   ========================================================= */

/* ---------- Fonts ----------
   Self-hosted variable WOFF2 files from Google Fonts (SIL Open Font License 1.1).
   Latin-ext is only downloaded on pages that use it (e.g. the ₹ sign). */
/* latin-ext */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Local fallbacks resized to the web fonts' measurements (size-adjust / ascent / descent), so text
   doesn't move when the web fonts swap in. Times New Roman ≈ Liberation Serif ≈ Tinos and
   Arial ≈ Helvetica ≈ Liberation Sans ≈ Arimo share metrics, so one set of overrides fits all. */
@font-face {
  font-family: "Cormorant Fallback"; font-style: normal;
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos");
  size-adjust: 97.66%; ascent-override: 94.61%; descent-override: 29.39%; line-gap-override: 0%;
}
@font-face {
  font-family: "Cormorant Fallback"; font-style: italic;
  src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"), local("Tinos Italic");
  size-adjust: 88.32%; ascent-override: 104.63%; descent-override: 32.5%; line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Arimo");
  size-adjust: 105.78%; ascent-override: 91.51%; descent-override: 23.73%; line-gap-override: 0%;
}
@font-face {
  font-family: "Open Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Arimo");
  size-adjust: 105.8%; ascent-override: 101.03%; descent-override: 27.69%; line-gap-override: 0%;
}

/* ---------- Design Tokens ---------- */
:root {
  /* brand */
  --orange: #e87722;
  --orange-soft: #f0934e;
  --orange-deep: #bf5e15;
  --on-orange: #0c0c0e;   /* text/icons on orange: 6.6:1 (white is only 2.96:1) */

  /* fonts */
  --f-display: "Cormorant Garamond", "Cormorant Fallback", "Times New Roman", serif;
  --f-ui: "Montserrat", "Montserrat Fallback", Arial, sans-serif;
  --f-body: "Open Sans", "Open Sans Fallback", Arial, sans-serif;

  /* dark theme (default — brand is dark-first) */
  --bg: #0c0c0e;
  --bg-elev: #141417;
  --bg-elev-2: #1c1c21;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-line: rgba(255, 255, 255, 0.09);
  --text: #ededf0;
  --text-muted: #a6a6ad;
  --text-faint: #8b8b94;   /* ≥5:1 on every dark surface */
  --grid-line: rgba(255, 255, 255, 0.022);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
  --header-bg: rgba(12, 12, 14, 0.7);
  --danger: #ff7b72;
  --orange-text: #e87722;  /* orange used as text: 5.7–6.6:1 on dark */

  /* hero is ALWAYS dark (text sits on a photo) — theme-independent */
  --hero-overlay: linear-gradient(180deg, rgba(8,8,10,.30) 0%, rgba(8,8,10,.55) 55%, rgba(8,8,10,.9) 100%);

  /* shared */
  --radius: 3px;
  --radius-lg: 12px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.45s var(--ease);
  --space: clamp(4rem, 8vw, 8rem);
}

/* With JS, the first paint uses only the size-matched fallbacks; js/main.js loads the brand fonts
   right after, switching each family in as it arrives (small re-layouts, no shift). .fonts-on = all
   cached. Without JS the CSS above applies. */
.js:not(.fonts-on):not(.f-display) { --f-display: "Cormorant Fallback", "Times New Roman", serif; }
.js:not(.fonts-on):not(.f-ui) { --f-ui: "Montserrat Fallback", Arial, sans-serif; }
.js:not(.fonts-on):not(.f-body) { --f-body: "Open Sans Fallback", Arial, sans-serif; }

[data-theme="light"] {
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-elev-2: #f4f4f3;
  --surface: rgba(20, 16, 10, 0.02);
  --surface-line: rgba(20, 16, 10, 0.13);
  --text: #131210;
  --text-muted: #3d3a34;
  --text-faint: #6e6a61;
  --grid-line: rgba(20, 16, 10, 0.016);
  --shadow: 0 24px 60px -34px rgba(40, 30, 15, 0.16);
  --header-bg: rgba(255, 255, 255, 0.82);
  --danger: #b42318;
  --orange-text: #a84f0f;  /* brand orange is 2.96:1 on white; this is 5.5:1 */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 0.98rem;
  font-weight: 400;
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* very subtle blueprint grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 70px 70px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--orange); color: var(--on-orange); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--text); }

.eyebrow {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange-text);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--orange); }
.eyebrow.center::after { content: ""; width: 26px; height: 1px; background: var(--orange); }

/* display serif — elegant, light */
.h-xl, .h-lg, .display {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.005em;
  color: var(--text);
}
.h-xl { font-size: clamp(2.3rem, 4.8vw, 4.2rem); }
.h-lg { font-size: clamp(1.8rem, 3.1vw, 2.7rem); }
.h-xl .accent, .h-lg .accent { color: var(--orange-text); font-style: italic; }
.accent { color: var(--orange-text); }

.lead {
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 56ch;
  font-weight: 400;
}
.muted { color: var(--text-muted); }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }
.section { padding-block: var(--space); position: relative; z-index: 1; }
/* sections after the first one (and the footer) skip layout/paint until they near the viewport;
   the first is usually on screen, where skipping would only cost a second layout pass */
main > .section ~ .section, .footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section--flush { padding-top: 0; }
.section-head { max-width: 52ch; margin-bottom: 3.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h-lg { margin-top: 1rem; }
.section-head .lead { margin-top: 1.1rem; }
.section-head.center .lead { margin-inline: auto; }
.section-head.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 2rem; flex-wrap: wrap; }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.9rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--c);
  background: var(--c);
  color: var(--on-orange);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--t), background var(--t), border-color var(--t), transform .35s var(--ease), box-shadow var(--t);
  z-index: 0;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--text); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--bg); border-color: var(--text); }
.btn:hover::after { transform: translateY(0); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--surface-line); }
.btn--ghost::after { background: var(--orange); }
.btn--ghost:hover { color: var(--on-orange); border-color: var(--orange); }

/* buttons placed over hero photos stay readable */
.hero .btn--ghost, .page-hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero .btn--ghost:hover, .page-hero .btn--ghost:hover { color: var(--on-orange); border-color: var(--orange); }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--t), border-color var(--t);
  border-bottom: 1px solid transparent; padding-block: 0.3rem;
}
.header.scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom-color: var(--surface-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 74px; }
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand img { height: 38px; width: auto; }
.brand .brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-txt b { font-family: var(--f-ui); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.03em; }
.brand .brand-txt span { font-size: 0.52rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-faint); margin-top: 3px; }

/* header over hero (not scrolled): force readable light text */
.header:not(.scrolled) .brand .brand-txt b { color: #fff; }
.header:not(.scrolled) .nav-links a { color: rgba(255,255,255,.82); }
.header:not(.scrolled) .nav-links a:hover, .header:not(.scrolled) .nav-links a.active { color: #fff; }
.header:not(.scrolled) .theme-toggle { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: var(--f-ui); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-muted);
  position: relative; padding: 0.3rem 0; transition: color .3s var(--ease);
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--orange); transition: width .35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

/* theme toggle */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--surface-line); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .3s, transform .4s var(--ease), background .3s, color var(--t);
}
.theme-toggle:hover { border-color: var(--orange); transform: rotate(18deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

/* burger */
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--surface-line); background: var(--surface); border-radius: 50%; cursor: pointer; position: relative; }
.header:not(.scrolled) .burger { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.burger span { position: absolute; left: 12px; width: 20px; height: 1.5px; background: var(--text); transition: .35s var(--ease); }
.header:not(.scrolled) .burger span { background: #fff; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span { background: var(--text); }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: block; z-index: 101; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--bg-elev); z-index: 100;
    clip-path: circle(0% at calc(100% - 58px) 38px);
    visibility: hidden; transition: clip-path .6s var(--ease), visibility 0s linear .6s;
  }
  .nav-links a { font-size: 1.5rem; font-family: var(--f-display); text-transform: none; letter-spacing: 0; color: var(--text); }
  .header:not(.scrolled) .nav-links a { color: var(--text); }
  body.menu-open .nav-links { clip-path: circle(150% at calc(100% - 58px) 38px); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
  .nav-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 7rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero .container { z-index: 2; max-width: 1100px; }
.hero .eyebrow { color: var(--orange); }
.hero-tag { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.7rem; max-width: 17ch; color: #fff; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero-sub { display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem; align-items: center; }
.hero-sub .lead { margin: 0; color: rgba(255,255,255,.85); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.7rem; transform: translateX(-50%); z-index: 3;
  font-family: var(--f-ui); font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,.6); display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-cue .bar { width: 1px; height: 44px; background: linear-gradient(var(--orange), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%,100%{transform:scaleY(.3);opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* page hero (inner pages) — text always light on photo */
.page-hero {
  position: relative; padding-top: 160px; padding-bottom: 4.5rem; overflow: hidden;
  border-bottom: 1px solid var(--surface-line);
}
.page-hero::after { content: none; }
.page-hero .hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1, .page-hero .h-xl { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.85); margin-top: 1.3rem; }
.page-hero .crumbs { color: rgba(255,255,255,.6); font-size: 0.78rem; margin-top: 1.3rem; letter-spacing: .04em; font-family: var(--f-ui); }
.page-hero .eyebrow { color: var(--orange); }
.page-hero .crumbs a:hover { color: var(--orange); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--surface-line); overflow: hidden; padding-block: 1.4rem; background: var(--bg-elev); }
.marquee-track { display: flex; gap: 2.6rem; width: max-content; animation: scrollx 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--f-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: 0.01em;
  color: var(--text-faint); display: inline-flex; align-items: center; gap: 2.6rem; white-space: nowrap;
}
.marquee-track span::after { content: "◆"; color: var(--orange); font-size: 0.5em; font-style: normal; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius-lg);
  padding: 2.1rem; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s, background .4s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--orange); transition: width .5s var(--ease); }
.card:hover { transform: translateY(-5px); border-color: var(--surface-line); box-shadow: var(--shadow); }
.card:hover::before { width: 100%; }
.card .idx { font-family: var(--f-ui); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange-text); }
.card h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin: 0.7rem 0 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card .ico { width: 50px; height: 50px; border-radius: 10px; display: grid; place-items: center; background: rgba(232,119,34,0.1); color: var(--orange-text); margin-bottom: 1.3rem; }
.card .ico svg { width: 24px; height: 24px; }
.card ul.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.3rem; }
.card.team-card { padding: 0; overflow: hidden; }
.team-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.team-card .team-body { padding: 1.4rem; }
.card.team-card h3 { font-size: 1.1rem; margin: 0; }
.team-card .role { color: var(--orange-text); font-size: .85rem; margin-top: .2rem; }
.card.plan h3 { margin-top: .6rem; }
.plan .ticks { margin-top: 1.4rem; }
.card.plan--featured, .card.plan--featured:hover { border-color: var(--orange); }
.card ul.tags li { font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.04em; padding: 0.3rem 0.7rem; border: 1px solid var(--surface-line); border-radius: 100px; color: var(--text-faint); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.rev .split-media { order: 2; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; }
.split-media .frame { position: absolute; inset: -14px -14px auto auto; width: 55%; height: 55%; border: 1px solid var(--orange); border-radius: var(--radius-lg); z-index: -1; }
.split-body h2 { margin-bottom: 1.1rem; }
.split-body p + p { margin-top: 0.9rem; }
.split-body .eyebrow { margin-bottom: 1rem; }
.ticks { margin-top: 1.7rem; display: grid; gap: 0.85rem; }
.ticks li { display: flex; gap: 0.75rem; color: var(--text-muted); font-size: 0.96rem; }
.ticks li svg { width: 19px; height: 19px; color: var(--orange-text); flex: none; margin-top: 4px; }
.ticks li b { color: var(--text); font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border-left: 1px solid var(--surface-line); padding-left: 1.3rem; }
.stat .num { font-family: var(--f-ui); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--text); line-height: 1; letter-spacing: -0.01em; }
.stat .num .accent { color: var(--orange-text); }
.stat .lbl { font-family: var(--f-ui); color: var(--text-muted); font-size: 0.76rem; margin-top: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.6rem; }
.filters button {
  font-family: var(--f-ui); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55rem 1.15rem; border-radius: 100px; cursor: pointer;
  background: transparent; color: var(--text-muted); border: 1px solid var(--surface-line); transition: .3s var(--ease);
}
.filters button:hover { color: var(--text); border-color: var(--text-faint); }
.filters button.active { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.9rem, 1.8vw, 1.5rem); }
.work { position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; grid-column: span 4; aspect-ratio: 3/4; background: var(--bg-elev); }
.work.wide { grid-column: span 8; aspect-ratio: 16/10; }
@media (max-width: 900px) { .work, .work.wide { grid-column: span 6; } }
@media (max-width: 600px) { .work, .work.wide { grid-column: span 12; aspect-ratio: 4/3; } }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.8)); opacity: .9; transition: opacity .5s; }
.work:hover img { transform: scale(1.06); }
.work-cap { position: absolute; left: 0; bottom: 0; padding: 1.5rem; z-index: 2; }
.work-cap .k { font-family: var(--f-ui); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); }
.work-cap h3 { font-family: var(--f-display); font-weight: 600; color: #fff; font-size: 1.5rem; margin-top: 0.3rem; line-height: 1.1; }
.work-cap .meta { font-family: var(--f-ui); color: rgba(255,255,255,.7); font-size: 0.76rem; margin-top: 0.35rem; letter-spacing: 0.04em; }
.work .plus { position: absolute; top: 1.1rem; right: 1.1rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: var(--on-orange); font-size: 1.3rem; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease); }
.work:hover .plus { transform: scale(1) rotate(0); }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 2.4rem; }
.timeline::before { content: ""; position: absolute; left: 26px; top: 10px; bottom: 10px; width: 1.5px; background: var(--surface-line); }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 1.5rem; position: relative; }
.step .dot { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; z-index: 1; font-family: var(--f-ui); font-weight: 700; font-size: 0.9rem; background: var(--bg-elev); border: 1px solid var(--surface-line); color: var(--orange-text); transition: .4s var(--ease); }
.step:hover .dot { background: var(--orange); color: var(--on-orange); border-color: var(--orange); transform: scale(1.06); }
.step-body { padding-top: 0.5rem; }
.step-body h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; }
.step-body p { color: var(--text-muted); margin-top: 0.4rem; font-size: 0.96rem; }

/* ---------- Testimonials ---------- */
.quote { background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius-lg); padding: 2.2rem; position: relative; }
.quote .mark { font-family: var(--f-display); font-size: 4rem; color: var(--orange); line-height: .5; opacity: .55; }
.quote p { font-family: var(--f-display); font-weight: 500; font-size: 1.32rem; line-height: 1.4; color: var(--text); margin: 0.4rem 0 1.5rem; }
.quote .who { display: flex; align-items: center; gap: 0.85rem; }
.quote .who .av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote .who b { font-family: var(--f-ui); font-weight: 600; font-size: 0.92rem; }
.quote .who span { display: block; color: var(--text-faint); font-size: 0.78rem; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--orange), var(--orange-soft)); color: var(--on-orange); padding: clamp(3rem, 6vw, 5rem); text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%); }
.cta h2 { color: var(--on-orange); position: relative; }
.cta p { color: rgba(12,12,14,.82); max-width: 48ch; margin: 0.9rem auto 1.9rem; position: relative; }
.cta .btn { background: #fff; color: #1a1916; border-color: #fff; position: relative; }
.cta .btn::after { background: #1a1916; }
.cta .btn:hover { color: #fff; }

/* ---------- Forms / Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info > .h-lg, .contact-info > .muted { margin-top: 1rem; }
.info-list { display: grid; gap: 1.5rem; margin-top: 2.1rem; }
.info-item { display: flex; gap: 1rem; }
.info-item .ico { width: 44px; height: 44px; flex: none; border-radius: 10px; background: rgba(232,119,34,.1); color: var(--orange-text); display: grid; place-items: center; }
.info-item .ico svg { width: 19px; height: 19px; }
.info-item b { font-family: var(--f-ui); font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 1px; }
.info-item span, .info-item a { color: var(--text-muted); font-size: 0.94rem; }
.info-item a:hover { color: var(--orange-text); }

form.d4u { display: grid; gap: 1.1rem; }
form.d4u .btn { justify-content: center; }
.field { display: grid; gap: 0.45rem; }
.field.row { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .field.row { grid-template-columns: 1fr; } }
.field label { font-family: var(--f-ui); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 0.96rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius);
  padding: 0.85rem 1rem; transition: border-color .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field select { appearance: none; cursor: pointer; }
.form-note { font-size: 0.8rem; color: var(--text-faint); }
.form-status { font-size: 0.92rem; padding: 0.85rem 1rem; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: rgba(232,119,34,.1); border: 1px solid var(--orange); color: var(--orange-text); }
.form-status.err { display: block; background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
/* spam honeypot — off-screen rather than display:none, which some bots skip */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* map / media block */
.media-wide { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21/9; border: 1px solid var(--surface-line); }
.media-wide img { width: 100%; height: 100%; object-fit: cover; }
.media-wide iframe { display: block; width: 100%; height: 100%; border: 0; }

/* faq */
.faq { display: grid; gap: 0.7rem; max-width: 820px; margin-inline: auto; }
.acc { border: 1px solid var(--surface-line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.acc button { width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: var(--text); font-family: var(--f-ui); font-weight: 600; font-size: 0.98rem; padding: 1.25rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.acc button .pm { color: var(--orange-text); font-size: 1.4rem; transition: transform .4s var(--ease); flex: none; line-height: 1; }
.acc.open button .pm { transform: rotate(45deg); }
.acc .panel { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.acc .panel p { padding: 0 1.4rem 1.25rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-elev); border-top: 1px solid var(--surface-line); padding-top: 4.5rem; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-bottom: 3rem; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer .brand img { height: 50px; }
.footer-about p { color: var(--text-muted); margin: 1.1rem 0 1.3rem; max-width: 34ch; font-size: 0.94rem; }
.footer h2 { font-family: var(--f-ui); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.1rem; }
.footer ul li { margin-bottom: 0.65rem; }
.footer ul li a { color: var(--text-muted); transition: color .3s, padding-left .3s; font-size: 0.94rem; }
.footer ul li a:hover { color: var(--orange-text); padding-left: 5px; }
.socials { display: flex; gap: 0.6rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--surface-line); display: grid; place-items: center; color: var(--text-muted); transition: .3s var(--ease); }
.socials a:hover { background: var(--orange); color: var(--on-orange); border-color: var(--orange); transform: translateY(-3px); }
.socials a svg { width: 17px; height: 17px; }
.footer-bottom .credit { color: var(--orange-text); font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--surface-line); padding-block: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.7rem; color: var(--text-faint); font-size: 0.82rem; font-family: var(--f-ui); letter-spacing: 0.02em; }

/* ---------- Reveal animation ---------- */
.reveal { transition: opacity .85s var(--ease), transform .85s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(30px); }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* hero intro */
.hero h1 .line > span { transition: transform 1s var(--ease); }
.js .hero h1 .line > span { transform: translateY(110%); }
.hero.loaded h1 .line > span { transform: none; }
.hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.hero h1 .line:nth-child(3) > span { transition-delay: .24s; }
.hero .hero-tag, .hero .hero-sub, .hero .hero-actions { transition: .85s var(--ease); }
.js .hero .hero-tag, .js .hero .hero-actions { opacity: 0; transform: translateY(22px); }
/* the intro paragraph is the page's largest text: visible from the first frame (only a slide-up), so it
   counts as painted immediately instead of after a 0.55s fade (Largest Contentful Paint) */
.js .hero .hero-sub { transform: translateY(14px); }
.hero.loaded .hero-tag { opacity: 1; transform: none; transition-delay: .4s; }
.hero.loaded .hero-sub { transform: none; transition-delay: .2s; }
.hero.loaded .hero-actions { opacity: 1; transform: none; transition-delay: .7s; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--orange); z-index: 200; transition: width .1s linear; }

/* ---------- Isometric decorations ---------- */
.iso {
  position: absolute; z-index: 0; pointer-events: none;
  color: var(--orange); opacity: .5;
}
.iso svg { width: 100%; height: 100%; display: block; }
.iso svg [stroke] { stroke: currentColor; }
.iso--float { animation: isofloat 8s ease-in-out infinite; }
.iso--floatb { animation: isofloat 10s ease-in-out infinite reverse; }
.iso--spin { animation: isospin 26s linear infinite; }
@keyframes isofloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
@keyframes isospin { to { transform: rotate(360deg); } }
.section, .hero, .cta, .page-hero { position: relative; }
.iso.tr { top: 6%; right: 4%; width: 120px; height: 138px; }
.iso.bl { bottom: 8%; left: 3%; width: 90px; height: 104px; opacity: .35; }
.iso.tl { top: 12%; left: 5%; width: 80px; height: 92px; opacity: .3; }
.iso.br { bottom: 6%; right: 6%; width: 110px; height: 126px; opacity: .4; }
@media (max-width: 760px) { .iso { display: none; } }

/* ---------- Video testimonials (Shorts) ---------- */
.shorts-section { overflow: hidden; }
.shorts-wrap { position: relative; margin-top: 3rem; }
.shorts-track {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem clamp(1.3rem, 5vw, 4rem) 1.5rem;
  scroll-padding-left: clamp(1.3rem, 5vw, 4rem);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.shorts-track::-webkit-scrollbar { display: none; }
.short {
  position: relative; flex: 0 0 auto; width: clamp(220px, 24vw, 270px); aspect-ratio: 9/16;
  border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: #000;
  border: 1px solid var(--surface-line); cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.short:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.short:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.short .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.short::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, transparent 30%, transparent 55%, rgba(0,0,0,.85)); transition: opacity .4s; }
.short iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.short.playing::after, .short.playing .play, .short.playing .short-cap { opacity: 0; pointer-events: none; }
.short .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; border-radius: 50%; background: rgba(232,119,34,.92);
  display: grid; place-items: center; z-index: 3; transition: transform .35s var(--ease), background .3s, opacity .3s;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.short:hover .play { transform: translate(-50%,-50%) scale(1.1); background: var(--orange); }
.short .play svg { width: 22px; height: 22px; color: var(--on-orange); margin-left: 3px; }
.short .short-cap { position: absolute; left: 0; bottom: 0; padding: 1.1rem 1.2rem; z-index: 3; transition: opacity .3s; }
.short .short-cap .stars { color: var(--orange); font-size: .8rem; letter-spacing: 2px; margin-bottom: .35rem; }
.short .short-cap b { font-family: var(--f-ui); font-weight: 600; color: #fff; font-size: .95rem; display: block; }
.short .short-cap span { font-family: var(--f-ui); color: rgba(255,255,255,.72); font-size: .72rem; letter-spacing: .04em; }
.short .badge { position: absolute; top: .8rem; left: .8rem; z-index: 3; font-family: var(--f-ui); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: .3rem .55rem; border-radius: 100px; }

.shorts-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  background: var(--bg-elev); border: 1px solid var(--surface-line); color: var(--text);
  display: grid; place-items: center; transition: .3s var(--ease); box-shadow: var(--shadow);
}
.shorts-nav:hover { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
.shorts-nav svg { width: 20px; height: 20px; }
.shorts-nav.prev { left: clamp(.4rem, 2vw, 1.4rem); }
.shorts-nav.next { right: clamp(.4rem, 2vw, 1.4rem); }
.shorts-hint { text-align: center; font-family: var(--f-ui); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-top: .4rem; }
@media (max-width: 600px) { .shorts-nav { display: none; } }

/* ---------- Interior Estimator ---------- */
.estimator { max-width: 980px; margin-inline: auto; scroll-margin-top: 96px; }
.est-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 3rem; position: relative; flex-wrap: wrap; }
.est-stepdot { display: flex; flex-direction: column; align-items: center; gap: .5rem; position: relative; z-index: 1; padding: 0 clamp(.8rem, 4vw, 2.6rem); }
.est-stepdot .n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-ui); font-weight: 700; font-size: .9rem;
  background: var(--bg-elev); border: 1.5px solid var(--surface-line); color: var(--text-faint);
  transition: .4s var(--ease);
}
.est-stepdot .t { font-family: var(--f-ui); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); transition: color .3s; }
.est-stepdot.active .n, .est-stepdot.done .n { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.est-stepdot.active .t, .est-stepdot.done .t { color: var(--text); }
@media (max-width: 560px) { .est-stepdot .t { display: none; } }

.est-panel { animation: estin .5s var(--ease); }
.est-panel[hidden] { display: none; }
@keyframes estin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.est-panel h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.est-panel .sub { color: var(--text-muted); margin: .6rem 0 2rem; }

/* selectable cards (config + tiers) */
.est-opts { display: grid; gap: 1rem; }
.est-opts.cols { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.est-opt {
  position: relative; cursor: pointer; border: 1.5px solid var(--surface-line); border-radius: var(--radius-lg);
  padding: 1.4rem; background: var(--surface); transition: .3s var(--ease); display: block;
}
.est-opt:hover { border-color: var(--text-faint); transform: translateY(-3px); }
.est-opt input { position: absolute; opacity: 0; pointer-events: none; }
.est-opt .ic { width: 40px; height: 40px; color: var(--orange-text); margin-bottom: .8rem; }
.est-opt .ic svg { width: 100%; height: 100%; }
.est-opt b { font-family: var(--f-ui); font-weight: 600; font-size: 1rem; display: block; }
.est-opt small { color: var(--text-muted); font-size: .82rem; display: block; margin-top: .25rem; line-height: 1.5; }
.est-opt .tick { position: absolute; top: 1rem; right: 1rem; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--surface-line); display: grid; place-items: center; color: var(--on-orange); transition: .3s var(--ease); }
.est-opt .tick svg { width: 12px; height: 12px; opacity: 0; transition: opacity .2s; }
.est-opt:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 3px; }
.est-opt:has(input:checked) { border-color: var(--orange); background: rgba(232,119,34,.06); }
.est-opt:has(input:checked) .tick { background: var(--orange); border-color: var(--orange); }
.est-opt:has(input:checked) .tick svg { opacity: 1; }
.est-opt .price-tag { font-family: var(--f-ui); font-size: .78rem; color: var(--orange-text); font-weight: 600; margin-top: .7rem; }

/* scope items with quantity steppers */
.est-scope { display: grid; gap: .8rem; }
.scope-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--surface-line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .3s; }
.scope-item.on { border-color: var(--orange); }
.scope-item .si-ic { width: 40px; height: 40px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(232,119,34,.1); color: var(--orange-text); }
.scope-item .si-ic svg { width: 20px; height: 20px; }
.scope-item .si-info { flex: 1; min-width: 0; }
.scope-item .si-info b { font-family: var(--f-ui); font-weight: 600; font-size: .96rem; display: block; }
.scope-item .si-info span { color: var(--text-faint); font-size: .78rem; }
.stepper { display: flex; align-items: center; gap: .2rem; flex: none; }
.stepper button {
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 1.2rem; line-height: 1;
  background: var(--bg-elev); border: 1px solid var(--surface-line); color: var(--text);
  display: grid; place-items: center; transition: .25s var(--ease);
}
.stepper button:hover { border-color: var(--orange); color: var(--orange-text); }
.stepper .qty { width: 40px; text-align: center; font-family: var(--f-ui); font-weight: 700; font-size: 1rem; }
.scope-item.toggle .stepper .qty { display: none; }
.scope-item.toggle .stepper .dec { display: none; }
.scope-item.toggle .si-toggle { position: relative; width: 46px; height: 26px; border-radius: 100px; background: var(--surface-line); border: none; cursor: pointer; transition: background .3s; flex: none; }
.scope-item.toggle .si-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.scope-item.toggle.on .si-toggle { background: var(--orange); }
.scope-item.toggle.on .si-toggle::after { transform: translateX(20px); }

/* estimator footer nav + live total */
.est-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--surface-line); flex-wrap: wrap; }
.est-live { font-family: var(--f-ui); color: var(--text-muted); font-size: .85rem; }
.est-live b { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--text); margin-left: .3rem; }
.est-nav .spacer { flex: 1; }

/* result */
.est-result { text-align: center; }
.est-result .eyebrow { justify-content: center; }
.est-amount { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4rem); color: var(--orange-text); line-height: 1.1; letter-spacing: .01em; }
.est-result .range-note { color: var(--text-muted); margin-top: .5rem; }
.est-breakdown { text-align: left; max-width: 620px; margin: 2.4rem auto 0; border: 1px solid var(--surface-line); border-radius: var(--radius-lg); overflow: hidden; }
.est-breakdown .bd-row { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1.3rem; border-bottom: 1px solid var(--surface-line); font-size: .94rem; }
.est-breakdown .bd-row:last-child { border-bottom: none; }
.est-breakdown .bd-row span:first-child { color: var(--text-muted); }
.est-breakdown .bd-row b { font-family: var(--f-ui); font-weight: 600; }
.est-breakdown .bd-row.total { background: var(--surface); }
.est-breakdown .bd-row.total b { color: var(--orange-text); }
.est-disclaimer { font-size: .82rem; color: var(--text-faint); max-width: 560px; margin: 1.4rem auto 0; }
.est-leadform { max-width: 560px; margin: 2.4rem auto 0; display: grid; gap: 1rem; text-align: left; }
.est-leadform h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; }
.est-nav .is-invisible { visibility: hidden; }
.est-leadform .field.row { grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .est-leadform .field.row { grid-template-columns: 1fr; } }
.est-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; }

/* ---------- Home hero redesign ---------- */
.hero--home .container { max-width: 1240px; }
/* richer left-weighted + bottom overlay for legibility */
.hero--home .hero-bg::after {
  background:
    linear-gradient(90deg, rgba(8,8,10,.9) 0%, rgba(8,8,10,.6) 38%, rgba(8,8,10,.25) 65%, rgba(8,8,10,.45) 100%),
    linear-gradient(180deg, rgba(8,8,10,.35) 0%, transparent 32%, transparent 55%, rgba(8,8,10,.88) 100%);
}
/* warm orange glow */
.hero-glow {
  position: absolute; z-index: 1; pointer-events: none;
  width: 58vw; height: 58vw; max-width: 720px; max-height: 720px;
  left: -8%; bottom: -18%;
  background: radial-gradient(circle, rgba(232,119,34,.32) 0%, rgba(232,119,34,.08) 45%, transparent 68%);
  filter: blur(10px); animation: glowpulse 9s ease-in-out infinite;
}
@keyframes glowpulse { 0%,100%{opacity:.7;transform:scale(1)} 50%{opacity:1;transform:scale(1.08)} }

/* architectural corner brackets */
.hero-corner { position: absolute; width: 48px; height: 48px; z-index: 3; pointer-events: none; border: 1.5px solid rgba(255,255,255,.22); }
.hero-corner.tl { top: 102px; left: clamp(1.3rem, 4vw, 3rem); border-right: 0; border-bottom: 0; }
.hero-corner.tr { top: 102px; right: clamp(1.3rem, 4vw, 3rem); border-left: 0; border-bottom: 0; }
.hero-corner.bl { bottom: 1.8rem; left: clamp(1.3rem, 4vw, 3rem); border-right: 0; border-top: 0; }
.hero-corner.br { bottom: 1.8rem; right: clamp(1.3rem, 4vw, 3rem); border-left: 0; border-top: 0; }
@media (max-width: 680px) { .hero-corner { width: 30px; height: 30px; } }

/* reposition the iso cube in the home hero so it doesn't clash with corners */
.hero--home .iso.tr { top: 28%; right: 5%; opacity: .55; }

/* headline shimmer on the accent word */
.hero--home h1 .accent {
  background: linear-gradient(100deg, var(--orange) 0%, #ffb877 50%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* floating glass rating card */
.hero-badge {
  position: absolute; z-index: 4; right: clamp(1.2rem, 5vw, 4rem); bottom: clamp(4.5rem, 13vh, 8rem);
  display: flex; align-items: center; gap: .9rem; color: #fff;
  background: rgba(255,255,255,.09); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: .85rem 1.1rem .85rem .9rem;
  box-shadow: 0 24px 60px -22px rgba(0,0,0,.7);
}
.hero-badge .avs { display: flex; }
.hero-badge .avs span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); margin-left: -6px;
  background: var(--orange); color: #000; font-family: var(--f-ui); font-weight: 700; font-size: .62rem; letter-spacing: .04em;
}
.hero-badge .avs span:nth-child(even) { background: #000; color: var(--orange); }
.hero-badge .avs span:first-child { margin-left: 0; }
.hero-badge .stars { color: var(--orange); font-size: .82rem; letter-spacing: 1.5px; line-height: 1; }
.hero-badge .stars b { font-family: var(--f-ui); font-weight: 700; color: #fff; font-size: .95rem; margin-left: .35rem; letter-spacing: 0; }
.hero-badge .lbl { display: block; font-family: var(--f-ui); font-size: .73rem; color: rgba(255,255,255,.82); margin-top: .3rem; }
@media (max-width: 760px) { .hero-badge { display: none; } }

/* intro reveal for new hero bits */
.hero .hero-badge, .hero .hero-corner, .hero .hero-glow { transition: opacity 1s var(--ease); }
.js .hero .hero-badge, .js .hero .hero-corner, .js .hero .hero-glow { opacity: 0; }
.hero.loaded .hero-glow { opacity: 1; transition-delay: .2s; }
.hero.loaded .hero-corner { opacity: 1; transition-delay: .6s; }
.hero.loaded .hero-badge { opacity: 1; transition-delay: .9s; }
.hero.loaded .hero-glow { animation: glowpulse 9s ease-in-out infinite; }

/* ---------- Accessibility helpers ---------- */
.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; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  background: var(--orange); color: var(--on-orange); padding: .7rem 1.1rem; border-radius: var(--radius);
  font-family: var(--f-ui); font-weight: 600; font-size: .8rem; letter-spacing: .06em;
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }
