/* GibranLP public site — light, professional, with terminal accents. */
:root {
  --bg: #f5f3ee;
  --bg-alt: #ece9e1;
  --surface: #ffffff;
  --ink: #161a22;
  --ink-2: #363d4a;
  --muted: #5f6674;
  --line: rgba(22, 26, 34, 0.1);
  --line-2: rgba(22, 26, 34, 0.18);
  --accent: #e2652a;
  --accent-ink: #b5461a;
  --accent-soft: rgba(226, 101, 42, 0.1);
  --alert: #cf3f34;
  --alert-soft: rgba(207, 63, 52, 0.09);
  --ok: #23885a;
  --calm: #2c78b8;
  --calm-soft: rgba(44, 120, 184, 0.1);
  --term-bg: #171b24;
  --term-bar: #222834;
  --term-fg: #d8dde7;
  --term-muted: #8b93a3;
  --term-green: #63d297;
  --term-amber: #f3c13a;
  --term-red: #ff7a6b;
  --term-blue: #6cb6ff;
  --spectrum: linear-gradient(90deg, #e5533d, #f08a2e, #f3c13a, #3cb371, #2bb3a3, #3a8fd9, #9b59b6);
  --shadow: 0 1px 2px rgba(22, 26, 34, 0.05), 0 12px 32px -14px rgba(22, 26, 34, 0.18);
  --shadow-lg: 0 2px 4px rgba(22, 26, 34, 0.06), 0 30px 70px -30px rgba(22, 26, 34, 0.4);
  --radius: 16px;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161a22;
    --bg-alt: #1b2029;
    --surface: #1f2430;
    --ink: #eef0f4;
    --ink-2: #c9ced8;
    --muted: #9aa2b1;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.15);
    --accent: #f0803f;
    --accent-ink: #f59a63;
    --accent-soft: rgba(240, 128, 63, 0.13);
    --alert: #ff7064;
    --alert-soft: rgba(255, 112, 100, 0.1);
    --ok: #4fc58a;
    --calm: #6cb0ec;
    --calm-soft: rgba(108, 176, 236, 0.12);
    --term-bg: #10131a;
    --term-bar: #1a1f29;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 70px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.accent-text { color: var(--accent-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 46px; padding: 0.7em 1.25em;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-2); }
.btn-alert { background: var(--alert); color: #fff; box-shadow: 0 8px 22px -10px var(--alert); }
.btn-light { background: #fff; color: #161a22; }
.btn-danger { background: transparent; color: var(--term-red); border-color: rgba(255, 122, 107, 0.4); }
.btn-sm { min-height: 38px; padding: 0.5em 1em; font-size: 0.92rem; }
.btn-xs { min-height: 30px; padding: 0.3em 0.75em; font-size: 0.82rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.link-arrow i { font-size: 0.8em; transition: transform 0.2s var(--ease); }
.link-arrow:hover i { transform: translateX(3px); }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow 0.25s;
}
.topbar.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0, 0, 0, 0.3); }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.spectrum-line { height: 2px; background: var(--spectrum); opacity: 0.9; }
.brand { display: inline-flex; align-items: center; gap: 0.45em; font: 700 1.15rem/1 var(--mono); letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand-prompt { color: var(--accent); }
.brand-cursor { width: 0.55em; height: 1.05em; background: var(--accent); animation: blink 1.1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.97rem; transition: background-color 0.2s, color 0.2s; }
.nav a:not(.btn):hover { background: var(--accent-soft); color: var(--ink); }
.nav a.active { color: var(--accent-ink); }
.nav-spectrum { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-weight: 650 !important; }
.nav-lang { font-family: var(--mono); font-size: 0.85rem !important; }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 1.1rem; cursor: pointer; }

/* Shared section styles */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 40px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2, .urgent-grid h2, .about-copy h2, .quote-intro h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 14px; }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.kicker { margin: 0 0 12px; font: 500 0.85rem/1 var(--mono); color: var(--accent-ink); letter-spacing: 0.02em; }
.kicker::before { content: "$ cd "; color: var(--muted); }
.kicker-alert { color: var(--alert); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Terminal cards — the "tech" accent */
.term { background: var(--term-bg); color: var(--term-fg); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06); font-family: var(--mono); }
.term-bar { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 14px; background: var(--term-bar); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.term-dots { display: inline-flex; gap: 7px; }
.term-dots i, .term-dots button { width: 11px; height: 11px; border-radius: 50%; background: #3a404c; border: 0; padding: 0; }
.term-dots :nth-child(1) { background: #ff5f57; }
.term-dots :nth-child(2) { background: #febc2e; }
.term-dots :nth-child(3) { background: #28c840; }
.term-title { font: 500 0.78rem/1 var(--mono); color: var(--term-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body { margin: 0; padding: 20px 22px 24px; font-size: 0.9rem; line-height: 1.75; list-style: none; }
.term-body p { margin: 0; }
.t-prompt { color: var(--term-green); font-weight: 700; }
.t-cmd { color: #fff; }
.t-out, .t-muted { color: var(--term-muted); }
.t-warn { color: var(--term-amber); }
.t-ok { color: var(--term-green); }
.t-err { color: var(--term-red); }
.t-caret, .typing .t-text::after { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: -0.2em; background: var(--term-green); animation: blink 1s steps(1) infinite; }
.typing .t-text::after { content: ""; margin-left: 1px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 18px; }
.hero-kicker { font: 500 0.95rem/1.5 var(--mono); color: var(--ink-2); margin-bottom: 14px; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 54ch; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 6px 14px 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font: 500 0.82rem/1 var(--mono); color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.facts i { color: var(--ok); margin-right: 8px; font-size: 0.85em; }
.term-hero { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform 0.6s var(--ease); }
.term-hero:hover { transform: none; }
.term-hero .term-body { min-height: 300px; }

/* Paths */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path-card {
  --tone: var(--accent); --tone-soft: var(--accent-soft);
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s, opacity 0.7s var(--ease);
}
.path-card.tone-alert { --tone: var(--alert); --tone-soft: var(--alert-soft); }
.path-card.tone-calm { --tone: var(--calm); --tone-soft: var(--calm-soft); }
.path-card:hover { transform: translateY(-4px); border-color: var(--tone); box-shadow: var(--shadow-lg); }
.path-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tone-soft); color: var(--tone); font-size: 1.2rem; margin-bottom: 6px; }
.path-card h3 { font-size: 1.3rem; }
.path-card p { color: var(--muted); flex: 1; margin: 0; }
.path-cta { color: var(--tone); font-weight: 600; display: inline-flex; gap: 0.5em; align-items: center; margin-top: 8px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s, box-shadow 0.25s, opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.service-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.service-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card > p { margin-bottom: 0.6em; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.price-tag { font: 600 0.92rem/1.3 var(--mono); }
.price-tag small, .price-table small { color: var(--muted); font-weight: 400; font-family: var(--sans); }
.service-foot .link-arrow { font-size: 0.92rem; white-space: nowrap; }

.steps { display: grid; grid-template-columns: 0.8fr 2fr; gap: 32px; margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.steps h3 { font-size: 1.6rem; }
.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; }
.step-n { font: 700 0.9rem/1 var(--mono); color: var(--accent-ink); padding-top: 4px; }
.steps h4 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.97rem; }

/* Urgent */
.section-urgent { background: linear-gradient(180deg, var(--alert-soft), transparent 80%); border-top: 1px solid var(--line); }
.urgent-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.urgent-assurance { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; margin-top: 8px; }
.urgent-assurance i { color: var(--alert); }
.urgent-list li { padding: 2px 0; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pricing-grid .section-head { position: sticky; top: 110px; margin: 0; }
.price-table { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.price-table div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.price-table div:last-child { border-bottom: 0; }
.price-table div:hover { background: var(--accent-soft); }
.price-table dt { font-weight: 500; }
.price-table dd { margin: 0; font-family: var(--mono); white-space: nowrap; }

/* Work */
.spectrum-feature {
  position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center;
  padding: clamp(28px, 4vw, 48px); margin-bottom: 28px; border-radius: 22px; overflow: hidden; color: #f3f3f1;
  background: radial-gradient(120% 140% at 0% 0%, #2a1b2e 0%, #141821 55%), #141821;
  box-shadow: var(--shadow-lg);
}
.spectrum-feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--spectrum); }
.spectrum-feature .kicker { color: #f3c13a; }
.spectrum-feature .kicker::before { color: #9097a3; }
.spectrum-feature h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.spectrum-feature p { color: #c3c8d2; }
.spectrum-feature img { border-radius: 12px; box-shadow: 0 30px 60px -30px #000; border: 1px solid rgba(255, 255, 255, 0.08); }
.spectrum-copy .btn { margin-top: 12px; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: box-shadow 0.25s, opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.project:hover { box-shadow: var(--shadow-lg); }
.project-shot { display: block; background: var(--term-bg); text-decoration: none; }
.project-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease); }
.project:hover .project-shot img { transform: scale(1.03); }
.project-shot { overflow: hidden; }
.project-shot .term-bar { position: relative; z-index: 1; }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.project-body h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 10px; }
.tag { font: 500 0.75rem/1 var(--mono); padding: 5px 8px; border-radius: 6px; background: var(--bg-alt); color: var(--muted); letter-spacing: 0; }
.project-body > p { color: var(--muted); }
.tag-archived { background: var(--alert-soft); color: var(--alert); }
.archived-note { padding: 10px 12px; border-radius: 10px; background: var(--bg-alt); color: var(--ink-2) !important; }
.archived-note i { color: var(--muted); margin-right: 4px; }
.is-archived .project-shot img { filter: grayscale(0.85) contrast(0.95); opacity: 0.85; }
.is-archived:hover .project-shot img { filter: none; opacity: 1; }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 4px 0 18px; padding: 14px 0 0; border-top: 1px dashed var(--line-2); font-size: 0.9rem; }
.case-facts dt { font: 600 0.7rem/1.4 var(--mono); letter-spacing: 0.06em; color: var(--accent-ink); }
.case-facts dd { margin: 2px 0 0; color: var(--ink-2); }
.project-body .link-arrow { margin-top: auto; }
.projects .project:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
.projects .project:last-child:nth-child(odd) .project-shot { flex: 1.1; }
.projects .project:last-child:nth-child(odd) .project-body { flex: 1; }
.experience-cases { margin-top: clamp(48px, 6vw, 72px); }
.experience-cases h3 { font-size: 1.6rem; margin-bottom: 8px; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.case-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.case-card h4 { font-size: 1.08rem; margin-bottom: 8px; }
.case-card p { color: var(--muted); font-size: 0.95rem; }
.case-card .link-arrow { margin-top: auto; font-size: 0.92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.chips li { font: 500 0.75rem/1 var(--mono); padding: 6px 9px; border-radius: 6px; background: var(--bg-alt); color: var(--ink-2); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-role { font: 500 0.95rem/1.4 var(--mono); color: var(--accent-ink); margin-bottom: 20px; }
.about-copy > p:not(.kicker):not(.about-role) { font-size: 1.08rem; color: var(--ink-2); }
.bio { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bio summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.bio summary::-webkit-details-marker { display: none; }
.bio summary::after { content: "+"; font-family: var(--mono); color: var(--accent-ink); }
.bio[open] summary::after { content: "−"; }
.bio div { padding: 0 18px 18px; color: var(--muted); font-size: 0.97rem; }
.bio a { color: var(--accent-ink); }
.timeline li { display: grid; gap: 2px; padding: 10px 0 10px 18px; border-left: 1px solid rgba(255, 255, 255, 0.1); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--term-green); }
.timeline strong { color: #fff; font-weight: 600; font-size: 0.9rem; }
.t-date { color: var(--term-amber); font-size: 0.78rem; }
.timeline .t-out { font-size: 0.82rem; }
.letters { margin-top: 28px; }
.letters .kicker::before { content: "$ ls "; }
.letters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.letters-grid a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; font-size: 0.8rem; color: var(--muted); }
.letters-grid img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.letters-grid a:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Quote */
.quote-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-card { margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.contact-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.contact-list a { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 500; }
.contact-list i { width: 20px; color: var(--accent-ink); text-align: center; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.form-card .term-bar { background: var(--term-bg); }
.form-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(20px, 3vw, 32px); }
.form-body .wide { grid-column: 1 / -1; }
.form-body label { display: grid; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.form-body input, .form-body select, .form-body textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--sans); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-body textarea { resize: vertical; min-height: 120px; }
.form-body input:focus, .form-body select:focus, .form-body textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-body p { margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
#lead-feedback:empty { display: none; }
#lead-feedback { color: var(--ok); font-weight: 600; }

/* Footer */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid .brand { margin-bottom: 14px; }
.footer nav { display: grid; align-content: start; gap: 8px; }
.footer h4 { font: 600 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.footer nav a { color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--accent-ink); }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.socials a:hover { border-color: var(--accent); color: var(--accent-ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }
.console-launch { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--term-bg); color: var(--term-fg); font: 500 0.82rem/1 var(--mono); cursor: pointer; }
.console-launch span { color: var(--term-green); }
.console-launch:hover { border-color: var(--term-green); }

/* Floating WhatsApp */
.fab-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; font-size: 1.7rem; text-decoration: none; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, 0.7); transition: transform 0.2s var(--ease); }
.fab-whatsapp:hover { transform: scale(1.06); }

/* Igor */
.igor { position: fixed; left: clamp(10px, 3vw, 36px); bottom: 0; z-index: 35; width: clamp(150px, 17vw, 220px); pointer-events: none; }
.igor-window { overflow: hidden; padding-top: 10px; }
.igor-rig { position: relative; display: block; width: 100%; aspect-ratio: 400 / 164; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transform: translateY(130%); transition: transform 0.7s var(--ease); filter: drop-shadow(0 -4px 14px rgba(0, 0, 0, 0.22)); }
.igor.up .igor-rig { transform: translateY(8%); }
.igor.up .igor-rig:hover { transform: translateY(2%); }
.igor-rig img, .igor-rig svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.igor-head { height: 115.854% !important; }
.igor-lids { overflow: visible; }
.igor-lids rect { fill: #0e0f11; }
.igor-paw-l { transform-origin: 14.5% 90%; }
.igor-bubble {
  position: absolute; left: 4px; bottom: calc(100% - 4px); width: max-content; max-width: min(300px, calc(100vw - 100px));
  padding: 12px 36px 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--term-bg); color: var(--term-fg);
  font: 500 0.88rem/1.45 var(--mono); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0; transform: translateY(8px) scale(0.96); transform-origin: bottom left; pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.igor-bubble::before { content: "igor@spectrum:~$"; display: block; margin-bottom: 4px; color: var(--term-green); font-size: 0.72rem; }
.igor.talking .igor-bubble { opacity: 1; transform: none; pointer-events: auto; }
.igor-bubble.pop { animation: pop 0.35s var(--ease); }
@keyframes pop { 0% { transform: translateY(4px) scale(0.97); } 100% { transform: none; } }
.igor-line { margin: 0; }
.igor-link { display: inline-block; margin-top: 8px; color: var(--term-amber); font-weight: 700; text-decoration: none; }
.igor-link:hover { text-decoration: underline; }
.igor-close { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--term-muted); cursor: pointer; }
.igor-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Project preview (dialog) */
.preview { width: min(100% - 32px, 1240px); height: min(100% - 48px, 860px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: visible; }
.preview::backdrop { background: rgba(10, 12, 18, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.preview[open] { animation: console-in 0.3s var(--ease); }
.preview-shell { display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; background: var(--term-bg); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 40px 100px -30px #000; }
.preview-bar { gap: 14px; min-height: 56px; padding: 0 12px 0 16px; }
.preview .dot-close { cursor: pointer; }
.preview-heading { display: flex; align-items: baseline; gap: 12px; flex: 1; min-width: 0; font-family: var(--sans); }
.preview-heading strong { color: #fff; font-weight: 600; white-space: nowrap; }
.preview-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--term-muted); font: 400 0.8rem/1 var(--mono); }
.preview-x { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--term-muted); font-size: 1.1rem; cursor: pointer; }
.preview-x:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.preview-body { position: relative; flex: 1; min-height: 0; background: #fff; }
.preview-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; opacity: 0; transition: opacity 0.3s; }
.preview-body iframe.loaded { opacity: 1; }
.preview-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; background: var(--term-bg); color: var(--term-muted); font: 500 0.9rem/1.5 var(--mono); text-align: center; }
.preview-status.slow { color: var(--term-amber); }
.preview-blocked { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px; background: var(--term-bg); color: var(--term-fg); text-align: center; }
.preview-blocked img { max-width: min(720px, 100%); max-height: 60%; object-fit: contain; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); }
.preview-blocked p { max-width: 46ch; color: var(--term-muted); }
@media (max-width: 680px) {
  .preview { width: 100%; height: 100%; border-radius: 0; }
  .preview-shell { border-radius: 0; }
  .preview-url { display: none; }
  .preview .btn span { display: none; }
}

/* Console (dialog) */
.console { width: min(100% - 24px, 1100px); max-height: min(86vh, 860px); padding: 0; border: 0; border-radius: 16px; background: transparent; color: var(--term-fg); overflow: visible; }
.console::backdrop { background: rgba(10, 12, 18, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.console[open] { animation: console-in 0.3s var(--ease); }
@keyframes console-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.console-shell { display: grid; grid-template-columns: 1fr; gap: 14px; max-height: inherit; }
.console.has-panel .console-shell { grid-template-columns: minmax(280px, 0.8fr) 1.2fr; }
.console-term, .console-panel { display: flex; flex-direction: column; min-height: 0; max-height: min(86vh, 860px); background: var(--term-bg); border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 40px 100px -30px #000; overflow: hidden; font-family: var(--mono); }
.console-term { height: min(70vh, 560px); }
.console.has-panel .console-term { height: auto; }
.console .dot-close { cursor: pointer; }
.console-output { flex: 1; overflow-y: auto; padding: 18px 20px 6px; font-size: 0.88rem; line-height: 1.7; }
.console-output p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.console-output b { color: #fff; }
.console-input { display: flex; gap: 10px; align-items: center; padding: 8px 20px 18px; }
.console-input input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: 500 0.92rem/1.6 var(--mono); caret-color: var(--term-green); }
.console-input input:focus { outline: none; }
.console-panel { overflow-y: auto; }
.console-panel, .console-output { scrollbar-color: #3a404c transparent; scrollbar-width: thin; }
.admin-form { display: grid; gap: 16px; padding: 18px 20px 22px; }
.admin-form fieldset { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; }
.admin-form legend { padding: 0 6px; color: var(--term-amber); font-size: 0.8rem; }
.admin-form label { display: grid; gap: 6px; font-size: 0.8rem; color: var(--term-muted); }
.admin-form label.inline { display: flex; align-items: center; gap: 8px; color: var(--term-fg); }
.admin-form input:not([type="checkbox"]), .admin-form textarea, .item-row input {
  width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px;
  background: #0b0e13; color: #fff; font: 400 0.88rem/1.4 var(--mono);
}
.admin-form input:focus, .admin-form textarea:focus { outline: none; border-color: var(--term-green); }
.item-row { display: grid; grid-template-columns: 1fr 70px 110px 34px; gap: 8px; margin-bottom: 8px; }
.item-remove { border: 1px solid rgba(255, 122, 107, 0.35); border-radius: 8px; background: transparent; color: var(--term-red); font-size: 1.1rem; cursor: pointer; }
.admin-totals div { display: flex; justify-content: space-between; font-size: 0.88rem; }
.admin-totals .total { color: var(--term-green); font-weight: 700; font-size: 1rem; padding-top: 6px; border-top: 1px dashed rgba(255, 255, 255, 0.15); }
.admin-form .btn-ghost { color: var(--term-fg); border-color: rgba(255, 255, 255, 0.2); }
.admin-list { padding: 18px 20px; font-size: 0.85rem; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.admin-table th { color: var(--term-muted); font-weight: 500; }
.admin-table .badge { padding: 3px 8px; border-radius: 6px; background: rgba(99, 210, 151, 0.12); color: var(--term-green); }
.row-actions { display: inline-flex; gap: 6px; }
.admin-table .btn-ghost { color: var(--term-fg); border-color: rgba(255, 255, 255, 0.2); }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .urgent-grid, .pricing-grid, .about-grid, .quote-grid { grid-template-columns: 1fr; }
  .pricing-grid .section-head { position: static; }
  .services, .cases { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .spectrum-feature { grid-template-columns: 1fr; }
  .term-hero { transform: none; }
  .console.has-panel .console-shell { grid-template-columns: 1fr; }
  .console.has-panel .console-term { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.3); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .paths, .services, .cases, .projects, .steps ol { grid-template-columns: 1fr; }
  .projects .project:last-child:nth-child(odd) { flex-direction: column; }
  .form-body { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: 1fr; }
  .letters-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .letters-grid a { font-size: 0.7rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .actions .btn { flex: 1 1 auto; }
  .term-hero .term-body { min-height: 0; font-size: 0.8rem; }
  .price-table div { padding: 14px 16px; }
  .item-row { grid-template-columns: 1fr 60px 90px 32px; }
  .fab-whatsapp { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
