/* ============================================================
   RASTGAR X - page layout (landing + demo)
   Section-specific composition on top of rx.css
   ============================================================ */

/* Tweak: circuit toggle */
body[data-circuits="off"] svg.circuit { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(60px, 9vw, 110px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.hero-kicker { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 38px rgba(var(--accent-rgb), 0.4), 0 2px 3px rgba(0,0,0,0.5);
}
.hero h1 .pilot { color: var(--accent-2); display: block; text-shadow: 0 0 42px rgba(var(--accent2-rgb), 0.6); }
.hero-sub {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(13px, 1.4vw, 18px);
  color: var(--t-secondary);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.hero-sub .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-emblem { position: relative; display: grid; place-items: center; }
.hero-emblem img { width: min(88%, 500px); filter: drop-shadow(0 0 60px rgba(var(--accent-rgb), 0.45)); }
.hero-contact { margin-top: 34px; }

/* centered hero variant */
body[data-hero="centered"] .hero-grid { grid-template-columns: 1fr; text-align: center; }
body[data-hero="centered"] .hero-emblem { order: -1; margin-bottom: 12px; }
body[data-hero="centered"] .hero-emblem img { width: min(100%, 440px); }
body[data-hero="centered"] .hero-kicker,
body[data-hero="centered"] .hero-sub,
body[data-hero="centered"] .hero-actions { justify-content: center; }
body[data-hero="centered"] .hero-contact { display: none; }
body[data-hero="centered"] .hero h1 { font-size: clamp(48px, 9vw, 120px); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-emblem { order: -1; }
  .hero-emblem img { width: min(78%, 360px); }
  .hero-contact { display: none; }
}

/* ============================================================
   PROBLEM - 3 HUD cards
   ============================================================ */
.problem-cards { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-inline: auto; }
.problem-cards > .reveal:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 414px; }
@media (max-width: 620px) { .problem-cards { grid-template-columns: 1fr; } .problem-cards > .reveal:nth-child(3) { max-width: none; } }
.pcard { text-align: center; height: 100%; }
.pcard .pc-ico {
  width: 92px; height: 92px; margin: 6px auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1.6px solid rgba(var(--accent-rgb), 0.6);
  color: var(--accent-2);
  box-shadow: inset 0 0 22px rgba(var(--accent-rgb), 0.22), 0 0 18px rgba(var(--accent-rgb), 0.28);
}
.pcard .pc-ico svg { width: 42px; height: 42px; }
.pcard h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px, 2vw, 26px); letter-spacing: 0.02em; line-height: 1.05;
  margin: 0 0 18px; color: #fff;
}
.pcard .pc-rule { width: 64%; height: 1px; margin: 0 auto 18px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.7), transparent); }
.pcard p { color: var(--t-secondary); font-size: 17px; margin: 0; }
.pcard .num { color: var(--accent-2); }

/* ============================================================
   SOLUTION
   ============================================================ */
.solution-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.solution-copy h2 { margin-bottom: 22px; font-size: clamp(30px, 3.6vw, 50px); color: var(--accent-2); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; text-shadow: var(--text-glow); }
.solution-copy p { font-size: clamp(18px, 1.7vw, 23px); color: var(--t-secondary); line-height: 1.55; }
.solution-emblem img { width: min(86%, 420px); margin-inline: auto; filter: drop-shadow(0 0 50px rgba(var(--accent-rgb),0.45)); }
.sol-feats { margin-top: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sol-feat { text-align: center; padding: 0 14px; position: relative; }
.sol-feat + .sol-feat::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--hairline); }
.sol-feat .sf-ico {
  width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent-2);
  border: 1.5px solid rgba(var(--accent-rgb), 0.55);
  box-shadow: inset 0 0 16px rgba(var(--accent-rgb), 0.18);
}
.sol-feat .sf-ico svg { width: 28px; height: 28px; }
.sol-feat h4 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; color: var(--accent-2); margin: 0 0 8px; }
.sol-feat p { font-size: 15px; color: var(--t-secondary); margin: 0; }
@media (max-width: 900px) {
  .solution-grid { grid-template-columns: 1fr; }
  .solution-emblem { order: -1; }
  .sol-feats { grid-template-columns: 1fr 1fr; gap: 22px 8px; }
  .sol-feat:nth-child(3)::before { display: none; }
}
@media (max-width: 520px) { .sol-feats { grid-template-columns: 1fr; } .sol-feat + .sol-feat::before { display: none; } }

/* ============================================================
   MATH / VS
   ============================================================ */
.vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: clamp(18px, 3vw, 40px); }
.vs-mid { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 64px); color: #fff; text-shadow: 0 0 24px rgba(var(--accent-rgb),0.5); }
.vs-panel { --c: var(--chamfer); position: relative; padding: 1.6px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.vs-in { clip-path: inherit; padding: clamp(24px, 3vw, 38px); height: 100%; }
.vs-cost { background: linear-gradient(135deg, rgba(255,66,89,0.9), rgba(255,66,89,0.5)); filter: drop-shadow(0 0 12px rgba(255,66,89,0.35)); }
.vs-cost .vs-in { background: linear-gradient(180deg, rgba(28,8,12,0.94), rgba(14,4,7,0.96)); }
.vs-win { background: linear-gradient(135deg, rgba(var(--accent-rgb),0.92), rgba(var(--accent2-rgb),0.55)); filter: drop-shadow(0 0 12px rgba(var(--accent-rgb),0.4)); }
.vs-win .vs-in { background: linear-gradient(180deg, rgba(8,20,38,0.94), rgba(4,10,20,0.96)); }
.vs-panel h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(18px, 1.9vw, 24px); margin: 0 0 18px; text-align: center; }
.vs-cost h3 { color: var(--red); }
.vs-win h3 { color: var(--accent-2); text-shadow: var(--text-glow); }
.vs-list { display: flex; flex-direction: column; gap: 2px; }
.vs-line { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.vs-line:last-child { border-bottom: none; }
.vs-line .vl-ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center; }
.vs-cost .vl-ico { color: var(--red); }
.vs-win .vl-ico { color: var(--accent-2); }
.vs-line .vl-ico svg { width: 22px; height: 22px; }
.vs-line .vl-label { font-size: 15.5px; color: var(--t-secondary); }
.vs-line .vl-val { margin-left: auto; font-weight: 700; color: #fff; font-size: 15.5px; white-space: nowrap; }
.vs-foot { margin-top: 20px; text-align: center; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.25; }
.vs-cost .vs-foot { color: var(--red); }
.vs-win .vs-foot { color: var(--accent-2); }
@media (max-width: 820px) {
  .vs-grid { grid-template-columns: 1fr; }
  .vs-mid { padding: 6px 0; }
}

/* ROI band */
.roi { margin-top: clamp(20px, 3vw, 32px); }
.roi-in { padding: clamp(28px, 4vw, 46px) clamp(24px, 4vw, 54px); }
.roi-title { text-align: center; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-2); font-size: clamp(15px, 1.6vw, 19px); margin: 0 0 26px; text-shadow: var(--text-glow); }
.roi-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.roi-stat { text-align: center; padding: 0 18px; position: relative; }
.roi-stat + .roi-stat::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--hairline); }
.roi-stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 62px); line-height: 1; color: var(--accent-2); text-shadow: 0 0 26px rgba(var(--accent2-rgb),0.45); }
.roi-stat .lbl { margin-top: 12px; color: var(--t-secondary); font-size: 15px; line-height: 1.35; }
.roi-foot { margin-top: 28px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 2vw, 26px); color: #fff; line-height: 1.4; }
.roi-foot .accent { color: var(--accent-2); }
.roi-note { margin-top: 14px; text-align: center; font-style: italic; color: var(--accent); font-size: clamp(14px, 1.4vw, 17px); }
@media (max-width: 720px) { .roi-stats { grid-template-columns: 1fr; gap: 28px; } .roi-stat + .roi-stat::before { display: none; } }

/* ============================================================
   FEATURE rows (mockup + copy, alternating)
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(70px, 10vw, 130px); }
.feature.flip .feat-media { order: 2; }
.feat-copy .feat-head { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; margin: 22px 0 16px; color: #fff; }
.feat-copy p { font-size: clamp(16px, 1.5vw, 19px); color: var(--t-secondary); line-height: 1.55; }
.feat-copy p + p { margin-top: 12px; }
.feat-copy .accent { color: var(--accent-2); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feat-media { order: 0; }
}

/* mockup frame around an image-slot */
.mock { --c: 14px; position: relative; padding: 1.4px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); background: linear-gradient(150deg, rgba(var(--accent-rgb),0.8), rgba(var(--accent2-rgb),0.4)); filter: drop-shadow(0 0 calc(16px * var(--glow-strength)) rgba(var(--accent-rgb),0.32)); }
.mock-in { clip-path: inherit; background: #060d18; padding: 10px; }
.mock image-slot { width: 100%; aspect-ratio: 16 / 10; display: block; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 4px 6px 10px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.mock-bar i:first-child { background: var(--red); }
.mock-bar i:nth-child(2) { background: var(--gold); }
.mock-bar i:nth-child(3) { background: var(--green); }
.mock-bar span { margin-left: 8px; font-size: 12px; color: var(--t-muted); font-family: var(--font-body); letter-spacing: 0.04em; }

/* ============================================================
   DEMO section (landing) + booking page
   ============================================================ */
.demo-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.demo-split h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; margin: 16px 0 18px; color: #fff; }
.demo-split h2 .accent { color: var(--accent-2); }
.demo-split p { color: var(--t-secondary); font-size: clamp(16px, 1.5vw, 19px); }
@media (max-width: 860px) { .demo-split { grid-template-columns: 1fr; } }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta { position: relative; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; max-width: 760px; }
.cta h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 6vw, 84px); line-height: 0.94; margin: 0 0 26px; color: #fff; text-shadow: 0 0 36px rgba(var(--accent-rgb),0.45); }
.cta h2 .accent { color: var(--accent-2); display: block; text-shadow: 0 0 42px rgba(var(--accent2-rgb),0.6); }
.cta-emblem img { width: min(100%, 560px); margin-inline: auto; filter: drop-shadow(0 0 60px rgba(var(--accent-rgb),0.5)); }
@media (max-width: 880px) { .cta-grid { grid-template-columns: 1fr; } .cta-emblem { order: -1; } .cta-emblem img { width: min(72%, 340px); } }

/* ============================================================
   BOOKING form (demo page)
   ============================================================ */
.book-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 920px) { .book-grid { grid-template-columns: 1fr; } }
.form-row { display: grid; gap: 8px; margin-bottom: 18px; }
.form-row label { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.field {
  font-family: var(--font-body); font-size: 16px; color: #fff;
  background: rgba(6, 14, 26, 0.8); border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 8px; padding: 13px 15px; width: 100%; outline: none;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(var(--accent2-rgb), 0.16), var(--glow-soft); }
.field::placeholder { color: var(--t-muted); }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent-2) 50%), linear-gradient(135deg, var(--accent-2) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 13px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-2 { grid-template-columns: 1fr; } }
.slot-row { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-chip {
  font-family: var(--font-body); font-size: 14px; color: var(--t-secondary);
  padding: 10px 16px; border-radius: 8px; cursor: pointer;
  background: rgba(6,14,26,0.7); border: 1px solid rgba(var(--accent-rgb),0.28);
  transition: all var(--dur);
}
.slot-chip:hover { border-color: var(--accent-2); color: #fff; }
.slot-chip.sel { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #02131f; border-color: transparent; font-weight: 600; box-shadow: var(--glow-soft); }
.book-success { display: none; }
.book-success.show { display: block; animation: lineIn 0.5s var(--ease) both; }

/* ============================================================
   SOLUTION - secondary web-dev foundation block
   ============================================================ */
.sol-foundation { margin-top: clamp(40px, 6vw, 64px); }
.sol-found-in {
  --c: var(--chamfer);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  padding: clamp(22px, 3vw, 32px) clamp(24px, 3.5vw, 42px);
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.6), rgba(4, 10, 20, 0.5));
  border: 1px solid var(--hairline);
  border-radius: 16px;
}
.sol-found-in::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 14px rgba(var(--accent2-rgb), 0.6);
}
.sf-tag { display: flex; align-items: center; gap: 14px; }
.sf-tag .ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; }
.sf-tag .ico img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.4)); }
.sol-found-copy { margin: 0; font-size: clamp(16px, 1.5vw, 20px); color: var(--t-secondary); line-height: 1.5; }
.sol-found-copy .accent { color: var(--accent-2); }
.sol-found-link {
  flex: none; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-2); transition: gap var(--dur), color var(--dur);
}
.sol-found-link svg { width: 17px; height: 17px; }
.sol-found-link:hover { gap: 14px; color: var(--white); }
@media (max-width: 860px) {
  .sol-found-in { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .sol-found-link { justify-self: start; }
}

/* ============================================================
   ROI tabs
   ============================================================ */
.roi-tabs {
  display: inline-flex; gap: 6px; margin: 0 auto clamp(32px, 5vw, 52px);
  padding: 6px; border-radius: 100px;
  background: rgba(8, 18, 33, 0.7); border: 1px solid var(--hairline);
  position: relative; left: 50%; transform: translateX(-50%);
}
.roi-tab {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(13px, 1.3vw, 15.5px);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--t-secondary); background: transparent; border: none; cursor: pointer;
  padding: 13px 26px; border-radius: 100px; white-space: nowrap;
  transition: color var(--dur), background var(--dur), box-shadow var(--dur);
}
.roi-tab .rt-ico { display: grid; place-items: center; width: 22px; height: 22px; }
.roi-tab .rt-ico svg { width: 19px; height: 19px; }
.roi-tab .rt-ico img { width: 22px; height: 22px; object-fit: contain; }
.roi-tab:hover { color: var(--white); }
.roi-tab.is-active {
  color: #021320;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: var(--glow-soft);
}
.roi-tab.is-active .rt-ico { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3)); }
.roi-pane { display: none; }
.roi-pane.is-active { display: block; animation: roiFade 0.4s var(--ease) both; }
@keyframes roiFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .roi-tabs { flex-direction: column; left: auto; transform: none; border-radius: 16px; width: 100%; }
  .roi-tab { justify-content: center; border-radius: 12px; }
}

/* ============================================================
   WHAT WE BUILD - two cards
   ============================================================ */
.build-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.6vw, 32px); align-items: stretch;
}
.build-card {
  --c: var(--chamfer); position: relative; padding: 1.6px;
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.build-card--flag {
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.95), rgba(var(--accent2-rgb), 0.5) 55%, rgba(var(--accent-rgb), 0.7));
  filter: drop-shadow(0 0 calc(12px * var(--glow-strength)) rgba(var(--accent-rgb), 0.4));
}
.build-card:hover { transform: translateY(-4px); }
.build-card--flag:hover { filter: drop-shadow(0 0 calc(22px * var(--glow-strength)) rgba(var(--accent-rgb), 0.7)); }
.build-in {
  clip-path: inherit; height: 100%;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.9), rgba(4, 10, 20, 0.95));
  padding: clamp(26px, 3vw, 42px);
  display: flex; flex-direction: column;
}
.build-head { padding-bottom: clamp(20px, 2.4vw, 28px); border-bottom: 1px solid var(--hairline); margin-bottom: clamp(20px, 2.4vw, 28px); }
.build-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.build-kind {
  font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--t-muted);
  padding: 5px 12px; border-radius: 6px; border: 1px solid var(--hairline);
}
.build-flag {
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #021320;
  padding: 5px 13px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: var(--glow-soft);
}
.build-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.02; margin: 0 0 12px; color: #fff; }
.build-card--flag .build-title { text-shadow: var(--text-glow); }
.build-sub { margin: 0; color: var(--t-secondary); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.5; }
.build-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(18px, 2vw, 24px); }
.build-feats li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.bf-ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: var(--accent-2);
  border: 1.5px solid rgba(var(--accent-rgb), 0.5);
  box-shadow: inset 0 0 14px rgba(var(--accent-rgb), 0.16);
}
.bf-ico svg { width: 22px; height: 22px; }
.build-feats h4 { font-family: var(--font-head); font-weight: 700; font-size: clamp(16px, 1.6vw, 19px); color: #fff; margin: 4px 0 6px; line-height: 1.2; }
.build-feats p { margin: 0; color: var(--t-secondary); font-size: 14.5px; line-height: 1.5; }
.bf-standout { position: relative; padding: clamp(16px, 1.8vw, 20px); margin-top: 4px; border-radius: 14px; background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.3); }
.bf-standout .bf-ico { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #021320; border-color: transparent; box-shadow: var(--glow-soft); }
.bf-standout h4 { color: var(--accent-2); }
@media (max-width: 860px) {
  .build-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DEMO - collapsible secondary proof
   ============================================================ */
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.demo-collapse {
  border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.5), rgba(4, 10, 20, 0.4));
}
.demo-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: none; color: inherit;
  padding: clamp(20px, 2.6vw, 28px) clamp(22px, 3vw, 36px);
  font-family: var(--font-body);
}
.demo-toggle .dt-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.demo-toggle .dt-text { font-size: clamp(15px, 1.5vw, 18px); color: var(--t-secondary); }
.demo-toggle .dt-text b { color: #fff; }
.demo-toggle .dt-chev {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent-2);
  border: 1.5px solid rgba(var(--accent-rgb), 0.5);
  transition: transform var(--dur) var(--ease), background var(--dur);
}
.demo-toggle .dt-chev svg { width: 20px; height: 20px; }
.demo-toggle[aria-expanded="true"] .dt-chev { transform: rotate(180deg); background: rgba(var(--accent-rgb), 0.14); }
.demo-toggle:hover .dt-chev { background: rgba(var(--accent-rgb), 0.14); }
.demo-body { padding: 0 clamp(22px, 3vw, 36px) clamp(28px, 3.5vw, 44px); }
.demo-body[hidden] { display: none; }

/* ============================================================
   WHAT WE BUILD - card CTA
   ============================================================ */
.build-cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 22px; margin-top: clamp(24px, 3vw, 34px);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-2);
  border: 1.5px solid rgba(var(--accent-rgb), 0.45); border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.06);
  transition: background var(--dur), border-color var(--dur), color var(--dur), box-shadow var(--dur);
}
.build-cta svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.build-cta:hover { background: rgba(var(--accent-rgb), 0.16); border-color: rgba(var(--accent-rgb), 0.85); color: #fff; box-shadow: var(--glow-soft); }
.build-cta:hover svg { transform: translateX(5px); }
.build-card--flag .build-cta {
  color: #021320; background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent; box-shadow: var(--glow-soft);
}
.build-card--flag .build-cta:hover { color: #001019; box-shadow: var(--glow-accent); }

/* ============================================================
   CLOSING EMBLEM ANCHOR
   ============================================================ */
.emblem-anchor {
  position: relative; overflow: hidden;
  min-height: clamp(420px, 52vw, 660px);
  display: grid; place-items: center;
  padding: clamp(60px, 9vw, 130px) var(--gutter) clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--hairline);
}
.ea-circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.85; }
.ea-circuit .ea-rings { animation: eaSpin 60s linear infinite; transform-origin: 600px 380px; }
@media (prefers-reduced-motion: reduce) { .ea-circuit .ea-rings { animation: none; } }
@keyframes eaSpin { to { transform: rotate(360deg); } }
.ea-circuit .ea-nodes circle { filter: drop-shadow(0 0 5px var(--accent-2)); }
.ea-stack { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 3vw, 38px); }
.ea-emblem { position: relative; isolation: isolate; }
.ea-emblem img {
  width: min(68vw, 480px); margin-inline: auto;
  filter: drop-shadow(0 0 70px rgba(var(--accent-rgb), 0.6)) drop-shadow(0 0 30px rgba(var(--accent2-rgb), 0.4));
}
.ea-tag { margin: 0; }

/* ============================================================
   PORTFOLIO PAGES (case-study galleries)
   ============================================================ */
.pf-hero { padding-top: clamp(120px, 16vh, 200px); }
.pf-back {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--t-secondary); transition: color var(--dur), gap var(--dur);
}
.pf-back svg { width: 17px; height: 17px; }
.pf-back:hover { color: var(--accent-2); gap: 13px; }
.pf-hero .kind-line { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.pf-hero .kind-line .ico { width: 46px; height: 46px; flex: none; }
.pf-hero .kind-line .ico img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 12px rgba(var(--accent-rgb),0.4)); }
.pf-lead { max-width: 60ch; margin-top: 26px; }
.pf-list { display: flex; flex-direction: column; gap: clamp(48px, 8vw, 96px); }
.pf-project { position: relative; }
.pf-proj-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(20px, 2.6vw, 30px); }
.pf-proj-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 1.4vw, 16px); letter-spacing: 0.2em; color: var(--accent-2); text-shadow: var(--text-glow); }
.pf-proj-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(26px, 3.4vw, 44px); line-height: 1; margin: 0; color: #fff; }
.pf-proj-tag {
  font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--t-muted); border: 1px solid var(--hairline); border-radius: 7px; padding: 6px 13px; white-space: nowrap;
}
.pf-video {
  position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 18px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 56px),
    radial-gradient(120% 120% at 50% 0%, rgba(var(--accent-rgb),0.14), transparent 60%),
    #060e1b;
  border: 1px solid var(--hairline);
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),0.18), 0 30px 70px -28px rgba(0,0,0,0.8);
}
.pf-video .pv-play {
  width: clamp(64px, 7vw, 90px); height: clamp(64px, 7vw, 90px); border-radius: 50%;
  display: grid; place-items: center; color: var(--accent-2);
  border: 1.6px solid rgba(var(--accent-rgb), 0.6);
  background: rgba(6, 16, 30, 0.6); box-shadow: inset 0 0 18px rgba(var(--accent-rgb),0.25), var(--glow-soft);
}
.pf-video .pv-play svg { width: 34%; height: 34%; margin-left: 8%; }
.pf-video .pv-label {
  position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--t-muted);
}
.pf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 36px); margin-top: clamp(24px, 3vw, 36px); }
.pf-col { padding: clamp(22px, 2.6vw, 32px); border-radius: 16px; border: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(10,22,40,0.55), rgba(4,10,20,0.45)); }
.pf-col--win { border-color: rgba(var(--accent-rgb), 0.32); background: linear-gradient(180deg, rgba(8,26,44,0.7), rgba(4,12,24,0.55)); }
.pf-col .lbl {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
}
.pf-col--prob .lbl { color: var(--t-secondary); }
.pf-col--win .lbl { color: var(--accent-2); text-shadow: var(--text-glow); }
.pf-col .lbl .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pf-col p { margin: 0 0 12px; color: var(--t-secondary); font-size: clamp(15px, 1.4vw, 16.5px); line-height: 1.6; }
.pf-col p:last-child { margin-bottom: 0; }
.pf-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.pf-col li { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; color: var(--t-secondary); font-size: clamp(14px, 1.35vw, 16px); line-height: 1.5; }
.pf-col li svg { width: 18px; height: 18px; color: var(--accent-2); margin-top: 2px; flex: none; }
@media (max-width: 760px) { .pf-cols { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER legal links
   ============================================================ */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-legal a { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-secondary); transition: color var(--dur); }
.footer-legal a:hover { color: var(--accent-2); }

/* ============================================================
   LEGAL PAGES (privacy / terms)
   ============================================================ */
.legal { padding-top: clamp(120px, 16vh, 200px); }
.legal-wrap { max-width: 860px; }
.legal h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(40px, 6vw, 80px); line-height: 0.96; margin: 14px 0 0; color: #fff; text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.4); }
.legal-updated { margin-top: 20px; color: var(--t-muted); font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.legal-intro { margin-top: 22px; max-width: 70ch; color: var(--t-secondary); font-size: clamp(15px, 1.4vw, 17.5px); line-height: 1.7; }
.legal-section { margin-top: clamp(36px, 5vw, 56px); }
.legal-section h2 { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.legal-section h3 { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: clamp(16px, 1.6vw, 19px); margin: 24px 0 8px; }
.legal-section p { color: var(--t-secondary); line-height: 1.75; font-size: clamp(15px, 1.4vw, 17px); margin: 0 0 14px; }
.legal-section a { color: var(--accent-2); }
.legal-section a:hover { text-decoration: underline; }
.legal-section ul { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal-section li { position: relative; padding-left: 24px; color: var(--t-secondary); line-height: 1.6; font-size: clamp(15px, 1.4vw, 17px); }
.legal-section li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.legal-section strong { color: #fff; }
.legal-todo { color: var(--accent-2); font-style: normal; border: 1px dashed rgba(var(--accent-rgb), 0.55); border-radius: 6px; padding: 1px 8px; font-size: 0.9em; white-space: normal; }
.legal-contact { margin-top: 4px; padding: clamp(22px, 2.6vw, 30px); border-radius: 16px; border: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(10,22,40,0.55), rgba(4,10,20,0.45)); }
.legal-contact .name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; font-size: 18px; margin: 0 0 12px; }
.legal-contact p { margin: 0 0 6px; }

/* ============================================================
   GALLERY GRID (compact preview cards)
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 30px); }
.gcard {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(10,22,40,0.55), rgba(4,10,20,0.45));
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}
.gcard:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb), 0.5); box-shadow: var(--glow-soft); }
.gcard-thumb {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  border-bottom: 1px solid var(--hairline);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 46px),
    radial-gradient(120% 120% at 50% 0%, rgba(var(--accent-rgb),0.16), transparent 62%),
    #060e1b;
}
.gcard-num {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.2em;
  color: var(--accent-2); text-shadow: var(--text-glow);
}
.gcard-play {
  width: clamp(54px, 6vw, 74px); height: clamp(54px, 6vw, 74px); border-radius: 50%;
  display: grid; place-items: center; color: var(--accent-2);
  border: 1.6px solid rgba(var(--accent-rgb), 0.55);
  background: rgba(6, 16, 30, 0.6); box-shadow: inset 0 0 16px rgba(var(--accent-rgb),0.25), var(--glow-soft);
  transition: transform var(--dur) var(--ease);
}
.gcard:hover .gcard-play { transform: scale(1.06); }
.gcard-play svg { width: 34%; height: 34%; margin-left: 8%; }
.gcard-view {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px; font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: #021320;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  transform: translateY(100%); transition: transform var(--dur) var(--ease);
}
.gcard-view svg { width: 16px; height: 16px; }
.gcard:hover .gcard-view { transform: translateY(0); }
.gcard-meta { padding: clamp(18px, 2vw, 24px); }
.gcard-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(18px, 1.9vw, 24px); line-height: 1.05; color: #fff; margin: 0 0 9px; }
.gcard-tag { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-muted); }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.detail-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.detail-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(34px, 5.4vw, 72px); line-height: 0.98; margin: 0; color: #fff; text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.4); }
.detail-tag { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: clamp(13px, 1.4vw, 15px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); text-shadow: var(--text-glow); }
.detail-tag .ico { width: 34px; height: 34px; flex: none; }
.detail-tag .ico img { width: 100%; height: 100%; object-fit: contain; }
.detail-video { margin-top: clamp(28px, 3.6vw, 44px); }
