/* =========================================================
   LCG Boston, one page
   Design tokens derived from the LCG mark:
   tan #C0976F on graphite, square geometry, nested bands.
   ========================================================= */

:root {
  /* Color */
  --ink:        #0F1113;   /* page base, cool graphite */
  --ink-2:      #15181B;   /* raised sections */
  --ink-3:      #1D2125;   /* cards, inputs */
  --ink-4:      #272C31;   /* hover surfaces */
  --line:       rgba(236, 234, 230, 0.10);
  --line-2:     rgba(236, 234, 230, 0.18);
  --text:       #ECEAE6;   /* primary text */
  --text-2:     #B4B2AD;   /* secondary text, 8.9:1 on --ink */
  --text-3:     #8B8A86;   /* tertiary, 5.3:1 on --ink */
  --tan:        #C0976F;   /* brand */
  --tan-hi:     #D3AD87;   /* hover */
  --tan-lo:     #8E6C4C;   /* pressed / deep */
  --tan-wash:   rgba(192, 151, 111, 0.12);
  --on-tan:     #14110E;   /* text on tan, 8.1:1 */
  --danger:     #F08A7A;

  /* Type */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Figtree", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(88px, 11vw, 160px);
  --nav-h: 76px;
  --r: 2px;                /* shape lock: square, like the mark */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* z-index scale */
  --z-nav: 50;
  --z-mbar: 55;
  --z-menu: 60;
  --z-loader: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
::selection { background: var(--tan); color: var(--on-tan); }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); position: relative; }

/* Light section textures. Static (no animation), drawn in CSS, sit under the content. */
.tex-grain, .tex-grid { isolation: isolate; }
.tex-grain::before, .tex-grid::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* concrete grain: fine fractal noise, like polished cement */
.tex-grain::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.05;
}
/* blueprint grid: thin lines that fade out toward the edges */
.tex-grid::before {
  background-image:
    linear-gradient(rgba(236, 234, 230, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 234, 230, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 20%, transparent 80%);
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--tan); color: var(--on-tan); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 700; font-stretch: 110%;
  font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--f-display);
  font-weight: 600; font-stretch: 125%;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--tan);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* split-line reveal wrappers (built in JS) */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line-mask > span { display: block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--bh); padding-inline: 26px;
  font-family: var(--f-display); font-weight: 700; font-stretch: 118%;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--r);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .2s var(--ease), background-color .4s var(--ease);
}
.btn i { font-size: 1.15em; transition: transform .4s var(--ease); }
.btn:hover i.ph-arrow-right { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--primary { background: var(--tan); color: var(--on-tan); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--tan-hi);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.btn--primary:hover::before { transform: scaleY(1); }
.btn--ghost { border: 1.5px solid var(--line-2); color: var(--text); background: rgba(15, 17, 19, 0.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--tan); color: var(--tan-hi); }
.btn--sm { --bh: 42px; padding-inline: 18px; font-size: 0.75rem; }
.btn--lg { --bh: 60px; padding-inline: 32px; font-size: 0.84rem; }

.icon-btn {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); border-radius: var(--r); font-size: 1.2rem;
  transition: border-color .3s, color .3s, background-color .3s;
}
.icon-btn:hover { border-color: var(--tan); color: var(--tan); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- Loader ---------- */
.mark { fill: none; stroke: var(--tan); stroke-width: 107; stroke-linejoin: miter; stroke-linecap: butt; }
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--ink); display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader__mark { width: 74px; height: auto; }
.loader__mark path { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 1.1s var(--ease-io) forwards; }
.loader__mark path:nth-child(2) { animation-delay: .12s; }
.loader__mark path:nth-child(3) { animation-delay: .24s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.is-loaded .loader { opacity: 0; visibility: hidden; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  height: var(--nav-h);
  transition: background-color .4s var(--ease), border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(15, 17, 19, 0.86); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-inline: auto; }
.nav__links a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-2);
  position: relative; padding-block: 6px; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tan);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 22px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.nav__phone i { color: var(--tan); font-size: 1.1rem; }
.nav__phone:hover { color: var(--tan-hi); }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: var(--z-menu);
  background: var(--ink); padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
}
.mmenu[hidden] { display: none; }
.mmenu nav { display: grid; }
.mmenu nav a {
  font-family: var(--f-display); font-weight: 700; font-stretch: 112%;
  font-size: 1.9rem; padding-block: 12px; border-bottom: 1px solid var(--line);
}
.mmenu__foot { display: grid; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding-top: calc(var(--nav-h) + 24px); padding-bottom: clamp(48px, 8vh, 96px);
  overflow: hidden; text-align: center;
}
.hero__media { position: absolute; inset: 0; clip-path: inset(0 0 0 0); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform-origin: 60% 40%; }
.hero__shade {
  position: absolute; inset: 0;
  /* opaque graphite veil: the photo reads as texture, the copy owns the frame */
  background:
    radial-gradient(ellipse at 50% 50%, rgba(15,17,19,.74) 0%, rgba(15,17,19,.86) 70%, rgba(15,17,19,.94) 100%);
}
/* logo watermark: the LCG "L" sits flush in the hero's bottom-left corner,
   so its outer band traces the frame and the bands open toward the copy */
.hero__mark {
  position: absolute; left: 0; bottom: 0;
  width: clamp(200px, 25vw, 440px); height: auto;
  stroke: #8B8A86; opacity: 0.18; pointer-events: none;
}
.js .hero__mark path { stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.hero__content { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 110%;
  font-size: clamp(1.95rem, 4.15vw, 3.9rem); line-height: 1; letter-spacing: -0.01em;
  text-transform: uppercase; max-width: 19ch; text-wrap: balance;
}
.hero__sub { margin-top: 26px; max-width: 52ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--text-2); }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Credentials ---------- */
/* benefits strip: one continuous loop, runs opposite to the services marquee */
.creds { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; }
.creds__track { display: flex; width: max-content; animation: creds 46s linear infinite reverse; }
.creds:hover .creds__track { animation-play-state: paused; }
.creds__list { display: flex; flex: none; }
.creds__list li {
  display: flex; align-items: center; gap: 14px; white-space: nowrap;
  padding: 26px 40px; border-right: 1px solid var(--line);
}
.creds__list i { font-size: 1.6rem; color: var(--tan); flex: none; }
.creds__list strong { font-family: var(--f-display); font-weight: 700; font-stretch: 108%; font-size: 1.02rem; }
.creds__list span { font-size: 0.92rem; color: var(--text-3); }
@keyframes creds { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__lead {
  margin-top: 30px; font-family: var(--f-display); font-weight: 600; font-stretch: 104%;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.3; letter-spacing: -0.01em;
}
.about__lead .w { opacity: 0.22; transition: opacity .2s linear; }
.about__body { margin-top: 26px; display: grid; gap: 14px; color: var(--text-2); max-width: 56ch; }
.about__cta { margin-top: 38px; }
.about__text .h2 { white-space: nowrap; font-size: clamp(1.4rem, min(7.4vw, 3.5vw + 1rem), 3.3rem); }

/* Show the team portrait at its natural aspect ratio. */
.about__media { display: grid; }
.about__img { overflow: hidden; border-radius: var(--r); }
.about__img img { width: 100%; height: auto; }
.about__img--a { justify-self: end; width: 62%; margin-inline-end: 12%; }

/* ---------- 3D Build ---------- */
.build { position: relative; background: var(--ink-2); }
.build__pin { position: relative; height: 100dvh; overflow: hidden; }
.build__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.build__fallback { position: absolute; inset: 0; display: none; }
.build__fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.no-webgl .build__fallback { display: block; }
.build__pin::after { /* soften canvas edge under the copy */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(21,24,27,.92) 0%, rgba(21,24,27,.55) 28%, rgba(21,24,27,0) 48%);
}
.build__ui {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-columns: minmax(0, 500px) 1fr auto; grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--nav-h) + 28px); padding-bottom: 44px;
  pointer-events: none;
}
.build__ui a, .build__ui button { pointer-events: auto; }
.build__head { grid-column: 1; grid-row: 1; }
.build__head .h2 { font-size: clamp(1.7rem, 2.6vw, 2.6rem); }
.build__head .h2 > span { display: block; white-space: nowrap; }
.build__intro { margin-top: 16px; color: var(--text-2); max-width: 40ch; }
.build__stages { grid-column: 1; grid-row: 2; align-self: center; position: relative; min-height: 190px; margin-top: 40px; }
@media (max-height: 860px) and (min-width: 861px) { .build__intro { display: none; } }
.build__stages li {
  position: absolute; inset: 0 0 auto 0;
  opacity: 0; transform: translateY(-14px);
  transition: opacity .22s ease-out, transform .3s ease-out;
}
.build__stages li.is-active {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease) .2s, transform .7s var(--ease) .2s;
}
.build__stages li.is-active ~ li { transform: translateY(18px); }
.build__stages h3 {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.05; color: var(--tan);
}
.build__stages p { margin-top: 14px; color: var(--text); max-width: 38ch; font-size: 1.05rem; }
.build__meter { grid-column: 1; grid-row: 3; display: flex; align-items: baseline; gap: 2px; }
.build__pct { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(3rem, 5vw, 4.6rem); line-height: .9; font-variant-numeric: tabular-nums; }
.build__pct-sign { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--tan); }
.build__pct-lbl { margin-left: 12px; color: var(--text-3); font-size: 0.9rem; }

/* Static fallback (reduced motion / no WebGL): show every stage as a list */
.build--static .build__pin { height: auto; min-height: 100dvh; }
.build--static .build__ui { grid-template-rows: auto auto auto; gap: 32px; padding-bottom: 72px; }
.build--static .build__stages { display: grid; gap: 22px; min-height: 0; }
.build--static .build__stages li { position: static; opacity: 1; transform: none; }
.build--static .build__stages h3 { font-size: 1.3rem; }
.build--static .build__meter { display: none; }

/* ---------- Services ---------- */
.services { background: var(--ink); padding-bottom: 0; }
.services__title { text-align: center; white-space: nowrap; font-size: clamp(1.3rem, 5.6vw, 3.9rem); }
/* 3D notice under the title: glass chip with the same cube icon as the card badges */
.services__hint {
  display: flex; align-items: center; gap: 10px; width: fit-content; margin: 22px auto 0;
  padding: 10px 18px; font-size: 0.95rem; color: var(--text-2); text-align: center;
  background: rgba(21, 24, 27, 0.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(192, 151, 111, 0.35); border-radius: var(--r);
}
.services__hint i { color: var(--tan); font-size: 1.25rem; flex: none; }
/* bento of photo cards with a frosted-glass caption */
.svc-grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(230px, 21vw, 310px); gap: 16px;
}
.svc-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.svc-card:nth-child(2), .svc-card:nth-child(5), .svc-card:nth-child(6) { grid-column: span 2; }
.svc-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r); background: var(--ink-3); }
.svc-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,17,19,0) 40%, rgba(15,17,19,.55) 100%); }
.svc-card__glass {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 16px; row-gap: 2px; align-items: center;
  padding: 18px 20px;
  background: rgba(21, 24, 27, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 40px rgba(8, 9, 10, 0.28);
  transition: transform .6s var(--ease), background-color .4s, border-color .4s;
}
.svc-card__icon { grid-row: 1 / 3; width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--tan); color: var(--tan); font-size: 1.35rem; }
.svc-card h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 110%; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.15; }
.svc-card p { grid-column: 2; color: var(--text-2); font-size: 0.92rem; line-height: 1.4; }
/* 3D chip lives in the card's top-right corner, outside the caption */
.svc-card__3d {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding-inline: 12px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--r);
  background: rgba(21, 24, 27, 0.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--f-display); font-weight: 700; font-stretch: 118%; font-size: 0.75rem; letter-spacing: .12em;
  transition: background-color .4s, color .4s, border-color .4s;
}
/* narrow cards: drop the icon so the title gets the full width */
.svc-card:nth-child(3) .svc-card__glass, .svc-card:nth-child(4) .svc-card__glass { grid-template-columns: 1fr; padding: 16px 18px; }
.svc-card:nth-child(3) .svc-card__icon, .svc-card:nth-child(4) .svc-card__icon { display: none; }
.svc-card:nth-child(3) p, .svc-card:nth-child(4) p { grid-column: 1; }
.svc-card__3d i { font-size: 1rem; }
.svc-card__hit { position: absolute; inset: 0; z-index: 2; border-radius: var(--r); }
.svc-card__hit:focus-visible { outline: 2px solid var(--tan); outline-offset: -4px; }
.svc-card:hover > img { transform: scale(1.06); }
.svc-card:hover .svc-card__glass { transform: translateY(-4px); background: rgba(21, 24, 27, 0.56); border-color: rgba(192, 151, 111, 0.45); }
.svc-card:hover .svc-card__3d { background: var(--tan); border-color: var(--tan); color: var(--on-tan); }
.svc-card:nth-child(1) .svc-card__glass { padding: 24px 26px; }
.svc-card:nth-child(1) h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
@media (prefers-reduced-transparency: reduce) { .svc-card__glass { background: rgba(21, 24, 27, 0.94); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .svc-card__glass { background: rgba(21, 24, 27, 0.9); } }

.services__foot { margin-top: 40px; display: flex; justify-content: center; }

/* service 3D popup */
.svc-modal {
  width: min(1180px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 32px));
  max-width: none; max-height: none; padding: 0; margin: auto;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--ink-2); color: var(--text); overflow: hidden;
}
.svc-modal::backdrop { background: rgba(8, 9, 10, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.svc-modal[open] { animation: modal-in .55s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.svc-modal__panel { display: grid; grid-template-columns: 1.45fr 1fr; height: 100%; }
.svc-modal__stage { position: relative; min-height: 0; background: var(--ink-2); }
.svc-modal__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.svc-modal__canvas:active { cursor: grabbing; }
.svc-modal__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.svc-modal.is-static .svc-modal__img { display: block; }
.svc-modal.is-static .svc-modal__canvas, .svc-modal.is-static .svc-modal__hint { display: none; }
.svc-modal__loading {
  position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 12px;
  color: var(--text-3); font-size: 0.92rem;
}
.svc-modal__loading i { font-size: 2rem; color: var(--tan); animation: spin-cube 1.6s var(--ease-io) infinite; }
@keyframes spin-cube { 50% { transform: rotate(90deg); } 100% { transform: rotate(180deg); } }
.svc-modal.is-loading .svc-modal__loading { display: grid; }
.svc-modal__hint {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 0.82rem; color: var(--text-2);
  background: rgba(21, 24, 27, 0.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r); pointer-events: none;
}
.svc-modal__hint i { color: var(--tan); font-size: 1.05rem; }
/* text column never scrolls: spacing and type scale with the dialog height */
.svc-modal__info {
  position: relative; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(10px, 2vh, 18px); padding: clamp(28px, 6vh, 56px) 36px clamp(20px, 4vh, 32px);
  border-left: 1px solid var(--line);
}
.svc-modal__info:focus { outline: none; }
.svc-modal__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; }
.svc-modal__head { display: flex; align-items: center; gap: 16px; padding-right: 48px; }
.svc-modal__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--tan); color: var(--tan); font-size: 1.4rem; }
.svc-modal__title { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.4rem, min(2.4vw, 4vh), 2.2rem); line-height: 1.05; letter-spacing: -0.015em; }
.svc-modal__desc { color: var(--text-2); font-size: clamp(0.9rem, 2.2vh, 1rem); line-height: 1.55; }
.svc-modal__list { display: grid; }
.svc-modal__list li { display: flex; gap: 12px; align-items: flex-start; padding: clamp(6px, 1.3vh, 11px) 0; border-top: 1px solid var(--line); font-size: clamp(0.88rem, 2.1vh, 0.95rem); }
.svc-modal__list li:last-child { border-bottom: 1px solid var(--line); }
.svc-modal__list i { color: var(--tan); font-size: 1.15rem; margin-top: 3px; flex: none; }
.svc-modal__foot { padding-top: 6px; }
/* prev / next live on the 3D stage as glass buttons */
.svc-modal__nav { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.svc-modal__nav .icon-btn {
  width: 46px; height: 46px; background: rgba(21, 24, 27, 0.5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, 0.16);
}
.svc-modal.is-static .svc-modal__nav .icon-btn { background: rgba(21, 24, 27, 0.75); }

.marquee { margin-top: clamp(80px, 10vw, 140px); border-block: 1px solid var(--line); overflow: hidden; padding-block: 26px; background: var(--ink-2); }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: mq 38s linear infinite; }
.marquee__track span {
  font-family: var(--f-display); font-weight: 800; font-stretch: 120%;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem); text-transform: uppercase; letter-spacing: -0.01em;
  color: transparent; -webkit-text-stroke: 1.2px var(--text-3);
}
.mq-mark { width: 14px; height: 14px; background: var(--tan); flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Projects: two looping rows, opposite directions ---------- */
.projects { background: var(--ink-2); padding-block: var(--sec); overflow: hidden; }
.projects__head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.pg {
  display: grid; gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.pg-row { overflow: hidden; }
/* each set is followed by one gap, so a seamless loop moves half the track plus half a gap */
.pg-track { --pg-half: 7px; display: flex; gap: 14px; width: max-content; animation: pg-left 75s linear infinite; }
.pg-row--rev .pg-track { animation-name: pg-right; animation-duration: 85s; }
.pg-row:hover .pg-track { animation-play-state: paused; }
.pg-set { display: flex; gap: 14px; flex: none; }
.pg-item { height: clamp(160px, 17vw, 300px); flex: none; overflow: hidden; border-radius: var(--r); background: var(--ink-3); }
.pg-item--w { aspect-ratio: 3 / 2; }
.pg-item--s { aspect-ratio: 5 / 4; }
.pg-item--t { aspect-ratio: 2 / 3; }
.pg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pg-item:hover img { transform: scale(1.05); }
@keyframes pg-left { to { transform: translateX(calc(-50% - var(--pg-half))); } }
@keyframes pg-right { from { transform: translateX(calc(-50% - var(--pg-half))); } to { transform: translateX(0); } }
.projects__cta { margin-top: clamp(36px, 5vw, 52px); display: flex; justify-content: center; }

/* ---------- Reviews ---------- */
.reviews { background: var(--ink-2); }
.reviews__head { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.reviews__google { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding-block: 8px; color: var(--text-2); font-weight: 500; transition: color .3s; }
.reviews__google:hover { color: var(--text); }
.reviews__stars { color: var(--tan); display: inline-flex; gap: 2px; }
.reviews__grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px;
}
.review {
  background: var(--ink-3); border-radius: var(--r); padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.review blockquote { font-size: 1.08rem; line-height: 1.55; }
.review figcaption { display: grid; gap: 2px; }
.review figcaption strong { font-weight: 600; }
.review figcaption span { color: var(--text-3); font-size: 0.9rem; }
.review--feature { grid-row: 1 / 3; background: var(--tan); color: var(--on-tan); padding: clamp(32px, 4vw, 52px); }
.review--feature blockquote { font-family: var(--f-display); font-weight: 600; font-stretch: 104%; font-size: clamp(1.3rem, 1.85vw, 1.7rem); line-height: 1.32; letter-spacing: -0.01em; }
.review--feature figcaption span { color: rgba(20, 17, 14, 0.72); }
.review__q { font-size: 2.6rem; }
.review--img { grid-column: 2 / 4; padding: 0; position: relative; overflow: hidden; min-height: 280px; }
.review--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,17,19,.75), rgba(15,17,19,0) 60%); }
.review--img .btn { position: absolute; left: 28px; bottom: 28px; z-index: 1; }

/* ---------- Why ---------- */
.why { background: var(--ink); overflow: hidden; }
.why__mark {
  position: absolute; right: -6%; top: 50%; translate: 0 -50%;
  width: min(54vw, 760px); height: auto; opacity: 0.07;
}
.why__mark path { stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.why__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.why__text { display: grid; gap: 22px; justify-items: start; }
.why__text .eyebrow { margin-bottom: 0; }
.why__lead { font-size: 1.2rem; color: var(--text); max-width: 46ch; }
.why__text > p:not(.why__lead):not(.eyebrow) { color: var(--text-2); max-width: 52ch; }
.why__text .btn { margin-top: 12px; }
/* differentiators as frosted-glass cards over the drawn LCG mark */
.why__diffs { display: grid; gap: 14px; }
.why__diffs li {
  display: grid; grid-template-columns: 88px 1fr; column-gap: 24px; row-gap: 4px; align-items: start;
  padding: 28px 30px;
  background: rgba(21, 24, 27, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px rgba(8, 9, 10, 0.28);
  transition: transform .6s var(--ease), border-color .4s, background-color .4s;
}
.why__diffs li:hover { transform: translateY(-4px); border-color: rgba(192, 151, 111, 0.45); background: rgba(21, 24, 27, 0.56); }
@media (prefers-reduced-transparency: reduce) { .why__diffs li { background: rgba(21, 24, 27, 0.94); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .why__diffs li { background: rgba(21, 24, 27, 0.9); } }
.why__diffs li > i, .why__num { grid-row: 1 / 3; color: var(--tan); }
.why__diffs li > i { font-size: 2.6rem; }
.why__num { font-family: var(--f-display); font-weight: 900; font-stretch: 115%; font-size: 2.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.why__diffs h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 110%; font-size: 1.35rem; }
.why__diffs p { color: var(--text-2); }

/* ---------- Steps ---------- */
.steps { background: var(--ink-2); }
.steps__title { text-align: center; margin-inline: auto; max-width: 16ch; }
.steps__wrap { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.steps__line { position: absolute; left: 16.66%; top: 39px; width: 66.68%; height: 4px; overflow: visible; }
.steps__line path { stroke: var(--tan); stroke-width: 2; fill: none; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps__list li { display: grid; justify-items: center; text-align: center; gap: 10px; }
.steps__icon {
  width: 80px; height: 80px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--ink-2); border: 1.5px solid var(--tan); color: var(--tan); font-size: 2rem;
  position: relative;
}
.steps__icon::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-2); }
.steps__list h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: 1.45rem; }
.steps__list p { color: var(--text-2); max-width: 28ch; }
.steps__cta { margin-top: clamp(48px, 6vw, 72px); display: flex; justify-content: center; }

/* ---------- Estimate ---------- */
.estimate { background: var(--ink); }
.estimate__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.estimate__sub { margin-top: 18px; color: var(--text-2); max-width: 48ch; }
.form { margin-top: 36px; display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; align-content: start; }
.field label, .field legend { font-size: 0.9rem; font-weight: 600; color: var(--text); padding: 0; }
.field .opt { color: var(--text-3); font-weight: 400; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--ink-3); border: 1.5px solid var(--line-2); border-radius: var(--r);
  padding: 14px 16px; min-height: 54px;
  transition: border-color .3s, background-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(236,234,230,.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tan); background: var(--ink-4); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: 0.86rem; }
.field__err:empty { display: none; }
.field__help { color: var(--text-3); font-size: 0.86rem; }
.select { position: relative; }
.select select { appearance: none; padding-right: 44px; cursor: pointer; }
.select select:invalid { color: var(--text-3); }
.select option { color: var(--text); background: var(--ink-3); }
.select i { position: absolute; right: 16px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--text-2); }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding-inline: 18px;
  border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; font-weight: 500;
  transition: border-color .3s, background-color .3s, color .3s;
}
.pill input:checked + span { border-color: var(--tan); background: var(--tan-wash); color: var(--tan-hi); }
.pill input:focus-visible + span { outline: 2px solid var(--tan); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.form__submit.is-loading { pointer-events: none; }
.form__submit.is-loading i { animation: nudge .8s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.form__note { display: flex; gap: 8px; align-items: center; color: var(--text-3); font-size: 0.86rem; }
.form__status:empty { display: none; }
.form__status { color: var(--danger); font-size: 0.92rem; }
.form__success { margin-top: 36px; padding: 40px; background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 12px; }
.form__success[hidden] { display: none; }
.form__success i { font-size: 2.6rem; color: var(--tan); }
.form__success h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: 1.6rem; }
.form__success p { color: var(--text-2); }
.form__success a { color: var(--tan-hi); font-weight: 600; }

.area { background: var(--ink-2); border-radius: var(--r); overflow: hidden; position: sticky; top: calc(var(--nav-h) + 24px); }
.area__map { aspect-ratio: 16 / 10; background: var(--ink-3); }
.area__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) invert(0.9) contrast(0.88) brightness(0.95); }
.area__body { padding: 30px; }
.area__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.area__contact dt { font-size: 0.8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.area__contact dd { margin-top: 4px; font-weight: 600; }
.area__contact a:hover { color: var(--tan-hi); }

/* ---------- Multi-step estimate form ---------- */
.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; }
.steps-bar__track { height: 3px; background: var(--line); overflow: hidden; }
.steps-bar__fill { display: block; height: 100%; background: var(--tan); transform-origin: left; transform: scaleX(0.3334); transition: transform .7s var(--ease); }
.steps-bar__labels { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.steps-bar__labels li { transition: color .4s; }
.steps-bar__labels li:nth-child(2) { text-align: center; }
.steps-bar__labels li:nth-child(3) { text-align: right; }
.steps-bar__labels li.is-done { color: var(--tan); }
.steps-bar__labels li.is-active { color: var(--text); }
.fstep { border: 0; padding: 0; margin: 0; min-width: 0; }
.fstep[hidden] { display: none; }
.fstep__title { padding: 0; margin-bottom: 18px; font-family: var(--f-display); font-weight: 700; font-stretch: 110%; font-size: 1.35rem; }
.fstep__body { display: grid; gap: 20px; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 14px 18px;
  background: var(--ink-3); border: 1.5px solid var(--line-2); border-radius: var(--r);
  font-weight: 600; cursor: pointer; transition: border-color .3s, background-color .3s, color .3s;
}
.choice i { font-size: 1.4rem; color: var(--tan); flex: none; }
.choice:hover span { border-color: rgba(192, 151, 111, 0.6); }
.choice input:checked + span { border-color: var(--tan); background: var(--tan-wash); color: var(--tan-hi); }
.choice input:focus-visible + span { outline: 2px solid var(--tan); outline-offset: 3px; }
.choices.has-error .choice span { border-color: rgba(240, 138, 122, 0.6); }
.form__nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.form__nav [hidden] { display: none; }

/* ---------- FAQ ---------- */
.faq { background: var(--ink-2); }
/* centered header, questions in one readable column below */
.faq__grid { display: grid; grid-template-columns: minmax(0, 860px); justify-content: center; gap: clamp(36px, 5vw, 56px); }
.faq__head { display: grid; justify-items: center; gap: 18px; text-align: center; }
.faq__head p { color: var(--text-2); }
.faq__head a { color: var(--tan-hi); font-weight: 600; white-space: nowrap; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--f-display); font-weight: 700; font-stretch: 108%; font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  transition: color .3s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--tan-hi); }
.faq__list summary i { flex: none; color: var(--tan); transition: transform .5s var(--ease); }
.faq__list details[open] summary i { transform: rotate(45deg); }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 28px; color: var(--text-2); max-width: 62ch; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--ink); overflow: hidden; }
.footer > .wrap { position: relative; z-index: 1; }
/* gray LCG mark, cropped by the bottom-right corner, balancing the logo top-left */
.footer__mark {
  position: absolute; right: -3vw; bottom: -12%;
  width: clamp(240px, 30vw, 480px); height: auto;
  stroke: #8B8A86; opacity: 0.04; pointer-events: none;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px; }
.footer__brand img { width: 160px; height: auto; }
.footer__brand p { margin-top: 20px; color: var(--text-3); max-width: 34ch; font-size: 0.95rem; }
.footer h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); font-weight: 600; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; font-size: 0.95rem; color: var(--text-2); }
.footer ul a:hover { color: var(--tan-hi); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.86rem; }
.footer__credit { color: var(--text-2); font-weight: 600; transition: color .3s; }
.footer__credit:hover { color: var(--tan-hi); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { color: var(--text-2); transition: color .3s; }
.footer__legal a:hover { color: var(--tan-hi); }
.form__note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.form__note a:hover { color: var(--tan-hi); }

/* ---------- Legal pages (/privacy-policy, /terms-of-use) ---------- */
body.legal-page { padding-bottom: 0; }
.legal-bar { border-bottom: 1px solid var(--line); background: var(--ink); }
.legal-bar__inner { min-height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-bar__actions { display: flex; align-items: center; gap: 18px; }
.legal-hero { position: relative; overflow: hidden; background: var(--ink-2); padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.legal-hero > .wrap { position: relative; }
.legal-hero__mark { position: absolute; right: -4vw; bottom: -18%; width: clamp(220px, 30vw, 460px); height: auto; stroke: #8B8A86; opacity: 0.06; pointer-events: none; }
.legal-hero h1 {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; text-wrap: balance;
}
.legal-hero__lead { margin-top: 24px; max-width: 60ch; color: var(--text-2); font-size: 1.08rem; }
.legal-hero__date { margin-top: 18px; color: var(--text-3); font-size: 0.9rem; }
.legal-body { padding-block: clamp(56px, 8vw, 104px); }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.legal-toc { position: sticky; top: 32px; }
.legal-toc b { display: block; margin-bottom: 14px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); font-weight: 600; }
.legal-toc ol { display: grid; gap: 2px; counter-reset: toc; border-left: 1px solid var(--line); }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); font-size: 0.93rem; line-height: 1.35; transition: color .3s, border-color .3s; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--text-3); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { color: var(--text); border-left-color: var(--tan); }
.legal-article { max-width: 74ch; counter-reset: sec; }
.legal-article section { padding-block: 8px 36px; scroll-margin-top: 24px; counter-increment: sec; }
.legal-article section + section { padding-top: 36px; border-top: 1px solid var(--line); }
.legal-article h2 {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px;
  font-family: var(--f-display); font-weight: 700; font-stretch: 110%;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; letter-spacing: -0.01em;
}
.legal-article h2::before { content: counter(sec, decimal-leading-zero); color: var(--tan); font-size: 0.8rem; font-stretch: 120%; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.legal-article h3 { margin: 24px 0 10px; font-family: var(--f-display); font-weight: 700; font-stretch: 108%; font-size: 1.08rem; }
.legal-article p { color: var(--text-2); }
.legal-article p + p, .legal-article ul + p, .legal-article p + ul { margin-top: 14px; }
.legal-article ul { display: grid; gap: 10px; color: var(--text-2); }
.legal-article ul li { position: relative; padding-left: 24px; }
.legal-article ul li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; background: var(--tan); }
.legal-article strong { color: var(--text); font-weight: 600; }
.legal-article a { color: var(--tan-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal-article a:hover { color: var(--text); }
.legal-contact { display: grid; gap: 10px; margin-top: 18px; padding: 24px; background: var(--ink-3); border: 1px solid var(--line); }
.legal-contact p { margin: 0 !important; }
@media (max-width: 1024px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; padding: 22px 24px; background: var(--ink-2); border: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .legal-bar__actions .nav__phone { display: none; }
  .legal-bar .nav__logo img { height: 32px; }
}

/* ---------- Mobile bar ---------- */
.mbar { display: none; }

/* ---------- Reveal defaults (JS adds .js to <html>) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-hero-in] { opacity: 0; transform: translateY(20px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav__links { gap: 22px; }
  .nav__phone span { display: none; }
  .nav__phone { min-width: 44px; min-height: 44px; justify-content: center; }
}
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__inner { justify-content: space-between; }
  .about__grid, .why__grid, .estimate__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .about__media { max-width: 640px; }
  .faq__head, .area { position: static; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
  .review--feature { grid-row: auto; grid-column: 1 / 3; }
  .review--img { grid-column: 1 / 3; }
}
@media (max-width: 860px) {
  .pg, .pg-track, .pg-set { gap: 10px; }
  .pg-track { --pg-half: 5px; animation-duration: 55s; }
  .pg-row--rev .pg-track { animation-duration: 62s; }
  .svc-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .svc-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  .svc-card:nth-child(1) .svc-card__glass { padding: 18px 20px; }
  .svc-modal { width: 100vw; height: 100dvh; border: 0; }
  .svc-modal__panel { grid-template-columns: 1fr; grid-template-rows: 40dvh 1fr; }
  .svc-modal__info { border-left: 0; border-top: 1px solid var(--line); justify-content: flex-start; padding: 20px 20px calc(16px + env(safe-area-inset-bottom)); gap: 12px; }
  .svc-modal__head { padding-right: 0; }
  .svc-modal__title { font-size: 1.45rem; }
  .svc-modal__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .svc-modal__foot { margin-top: auto; }
  .svc-modal__foot .btn { width: 100%; }
  .svc-modal__hint { display: none; }
  .svc-modal__nav { right: 12px; bottom: 12px; }
  .svc-modal__close { position: fixed; top: 12px; right: 12px; z-index: 2; background: rgba(21,24,27,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

  .build__pin::after { background: linear-gradient(180deg, rgba(21,24,27,.95) 0%, rgba(21,24,27,.6) 24%, rgba(21,24,27,0) 40%, rgba(21,24,27,0) 60%, rgba(21,24,27,.94) 80%); }
  .build__ui { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; padding-bottom: 28px; }
  .build__head { grid-column: 1 / 3; }
  .build__head .h2 { font-size: clamp(1.5rem, 7vw, 1.85rem); }
  .build__intro { display: none; }
  .build__stages { grid-column: 1 / 3; grid-row: 3; align-self: end; min-height: 150px; }
  .build__stages h3 { font-size: 1.4rem; }
  .build__stages p { font-size: 0.98rem; margin-top: 8px; }
  .build__meter { grid-column: 2; grid-row: 2; align-self: start; justify-self: end; margin-top: 12px; }
  .build__meter { flex-direction: row; align-items: baseline; }
  .build__pct { font-size: 2.4rem; }
  .build__pct-sign { font-size: 1.1rem; }
  .build__pct-lbl { display: none; }
  .build__stages { margin-top: 0; }
  .build--static .build__stages { grid-row: auto; }


  .steps__list { grid-template-columns: 1fr; gap: 40px; }
  .steps__line { display: none; }
}
@media (max-width: 720px) {
  .about__img--a { justify-self: start; margin-inline-end: 0; }
  .choices { grid-template-columns: 1fr 1fr; gap: 8px; }
  .choice span { min-height: 56px; padding: 12px 14px; gap: 10px; font-size: 0.92rem; }
  .form__nav .btn { flex: 1; }
  :root { --nav-h: 64px; }
  body { font-size: 16px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .nav__logo img { height: 32px; }
  .nav__actions .btn { display: none; }
  .nav__phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-2); }
  .hero__title { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .hero__mark { width: 36vw; opacity: 0.14; }
  .hero__ctas .btn { width: 100%; }
  .creds__list li { padding: 20px 26px; gap: 12px; }
  .creds__list span { display: none; }
  .creds__track { animation-duration: 30s; }
  .reviews__grid { grid-template-columns: 1fr; }
  .review--feature, .review--img { grid-column: auto; }
  .review { padding: 26px; }
  .why__diffs li { grid-template-columns: 64px 1fr; column-gap: 16px; padding: 22px 20px; }
  .why__mark { width: 90vw; right: -30%; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
  .area__contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / 3; }

  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.6fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mbar);
    background: rgba(15, 17, 19, 0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); transition: transform .5s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar a { height: 64px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
  .mbar a + a { border-left: 1px solid var(--line); }
  .mbar i { color: var(--tan); font-size: 1.2rem; }
  .mbar__main { background: var(--tan); color: var(--on-tan); font-family: var(--f-display); font-stretch: 115%; text-transform: uppercase; letter-spacing: .1em; font-size: 0.8rem !important; }
}

/* ---------- Small phones (iPhone SE, compact Android): buttons must never widen the page ---------- */
@media (max-width: 400px) {
  .btn {
    max-width: 100%; height: auto; min-height: var(--bh);
    padding: 12px 16px; gap: 8px; font-size: 0.74rem; letter-spacing: 0.06em;
    white-space: normal; text-align: center; line-height: 1.25;
  }
  .btn--lg { font-size: 0.78rem; }
  .review--img .btn { left: 16px; right: 16px; bottom: 16px; }
}
/* short phones: give the 3D popup's text panel the room it needs (it never scrolls) */
@media (max-width: 860px) and (max-height: 720px) {
  .svc-modal__panel { grid-template-rows: 34dvh 1fr; }
  .svc-modal__info { gap: 10px; padding-top: 16px; }
  .svc-modal__desc { -webkit-line-clamp: 2; }
  .svc-modal__list li { padding: 6px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal], .js [data-hero-in] { opacity: 1; transform: none; }
  .about__lead .w { opacity: 1; }
  .marquee__track, .creds__track, .pg-track { animation: none; }
  .pg-row { overflow-x: auto; }
  .pg-set[aria-hidden="true"] { display: none; }
  .creds__track { width: auto; }
  .creds__list { flex-wrap: wrap; justify-content: center; }
  .creds__list[aria-hidden="true"] { display: none; }
  .why__mark path, .steps__line path, .hero__mark path { stroke-dashoffset: 0; }
}
