/* Blade Web Designs 2026 — revision 2
   Bootstrap + hand-written CSS. No build chain required. */

:root {
  --blade-bg: #0a1018;
  --blade-panel: #101924;
  --blade-panel-2: #152231;
  --blade-text: #eef4fb;
  --blade-muted: #9aa9b8;
  --blade-line: rgba(255, 255, 255, .10);
  --blade-accent: #39a9ff;
  --blade-accent-2: #8fd0ff;
  --blade-dark: #071019;
  --blade-radius: 1.25rem;
}

body.site-ie {
  --blade-accent: #22c793;
  --blade-accent-2: #8ee8c8;
}

html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: #24313f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: #fff;
  color: #000;
  padding: .75rem 1rem;
}

.topbar {
  background: var(--blade-dark);
  color: #c9d5e2;
  font-size: .88rem;
}

.topbar a { text-decoration: none; }

.navbar {
  background: rgba(10, 16, 24, .97);
  border-bottom: 1px solid var(--blade-line);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -.035em;
  color: #fff !important;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-right: .65rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: .55rem;
  color: var(--blade-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .95rem;
}

.navbar .nav-link { color: #c7d2de; }
.navbar .nav-link:hover,
.navbar .nav-link.active { color: #fff; }
.navbar-toggler { border-color: rgba(255, 255, 255, .25); }
.navbar-toggler-icon { filter: invert(1); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 15%, rgba(57, 169, 255, .19), transparent 28%),
    linear-gradient(135deg, #071019 0%, #0e1823 55%, #101d2a 100%);
  color: #fff;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.site-ie .hero {
  background:
    radial-gradient(circle at 76% 18%, rgba(34, 199, 147, .15), transparent 31%),
    linear-gradient(135deg, #0a151f 0%, #10232d 58%, #16363b 100%);
}

.hero::after {
  content: "</>";
  position: absolute;
  right: 1rem;
  bottom: -4rem;
  font-family: ui-monospace, monospace;
  font-size: clamp(9rem, 23vw, 23rem);
  font-weight: 800;
  color: rgba(255, 255, 255, .022);
  line-height: 1;
  pointer-events: none;
}

.hero-code-texture::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 48%;
  background:
    linear-gradient(90deg, rgba(10, 21, 31, 1) 0%, rgba(10, 21, 31, .55) 26%, rgba(10, 21, 31, .12) 100%),
    url("../img/feature2.jpg") center / cover no-repeat;
  opacity: .32;
  filter: saturate(.75) contrast(.92);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 800;
  font-size: .75rem;
  color: var(--blade-accent-2);
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  letter-spacing: -.055em;
  line-height: .97;
  font-weight: 800;
  max-width: 13ch;
}

.hero .lead {
  color: #cbd7e1;
  max-width: 44rem;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.btn-blade {
  background: var(--blade-accent);
  border-color: var(--blade-accent);
  color: #06121b;
  font-weight: 800;
}

.btn-blade:hover {
  background: var(--blade-accent-2);
  border-color: var(--blade-accent-2);
  color: #06121b;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
}

.btn-ghost:hover { border-color: #fff; color: #fff; }

.proof-strip {
  border-top: 1px solid var(--blade-line);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  color: #b9c6d1;
}

.proof-item strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.section-pad { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-dark { background: var(--blade-bg); color: var(--blade-text); }
.section-soft { background: #f4f7fa; }
.section-warm { background: #fbfcf9; }

.section-title {
  font-weight: 800;
  letter-spacing: -.04em;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-intro { max-width: 48rem; color: #647282; }
.section-dark .section-intro { color: var(--blade-muted); }

.feature-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid #e1e7ec;
  border-radius: var(--blade-radius);
  background: #fff;
}

.feature-card.dark {
  background: var(--blade-panel);
  border-color: var(--blade-line);
  color: #fff;
}

.feature-number {
  font-family: ui-monospace, monospace;
  color: var(--blade-accent);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-top: .8rem;
}

.feature-card p { color: #657484; margin-bottom: 0; }
.feature-card.dark p { color: var(--blade-muted); }
.starter-card { border-top: 4px solid var(--blade-accent); }

.code-panel {
  background: #071019;
  border: 1px solid var(--blade-line);
  border-radius: var(--blade-radius);
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}

.code-panel-light {
  background: linear-gradient(145deg, #0e1b25, #112a2c);
}

.code-dots span {
  display: inline-block;
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: #54616d;
  margin-right: .35rem;
}

.code-panel pre {
  color: #b9c7d5;
  font-size: .88rem;
  white-space: pre-wrap;
  margin: 1.4rem 0 0;
}

.code-panel .tag { color: #73d4ff; }
.site-ie .code-panel .tag { color: #72e1bb; }
.code-panel .attr { color: #ffd479; }
.code-panel .str { color: #9be28f; }

.quote-band { background: var(--blade-accent); color: #06131d; }
.quote-band h2 { font-weight: 800; letter-spacing: -.04em; }

.work-card {
  height: 100%;
  border: 1px solid #dfe6ec;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

.work-shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9eef2;
}

.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .25s ease;
}

.work-card:hover img { transform: scale(1.02); }
.work-copy { padding: 1.15rem; }
.work-copy h3 { font-size: 1rem; font-weight: 800; margin: 0; }
.archive-grid .work-copy { padding: .8rem; }
.archive-grid .work-copy h3 { font-size: .92rem; }
.archive-note { font-size: .92rem; color: #6c7a87; }

.page-hero {
  background: linear-gradient(135deg, #071019, #132130);
  color: #fff;
  padding: 5.5rem 0 4rem;
}

.site-ie .page-hero { background: linear-gradient(135deg, #0a151f, #17352f); }

.page-hero h1 {
  font-weight: 800;
  letter-spacing: -.045em;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.breadcrumb { --bs-breadcrumb-divider-color: #798b9b; }
.breadcrumb a { color: #b9c8d4; }

.service-list { list-style: none; padding: 0; }
.service-list li { padding: .65rem 0; border-bottom: 1px solid #e1e7ec; }
.service-list li::before { content: "✓"; color: var(--blade-accent); font-weight: 900; margin-right: .7rem; }
.service-list-dark li { border-color: rgba(255,255,255,.12); color: #c4d0db; }

.callout {
  border-left: 4px solid var(--blade-accent);
  background: #f4f7fa;
  padding: 1.35rem 1.5rem;
  border-radius: 0 .9rem .9rem 0;
}

.contact-card {
  border: 1px solid #dfe6ec;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: #fff;
}

.form-control { padding: .8rem .9rem; }
.form-control:focus {
  border-color: var(--blade-accent);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--blade-accent) 20%, transparent);
}

footer {
  background: #071019;
  color: #98a8b7;
  padding: 3rem 0 1.5rem;
}

footer h2, footer h3 { color: #fff; }
footer a { text-decoration: none; color: #bdcad5; }
footer a:hover { color: #fff; }

.footer-rule {
  border-top: 1px solid var(--blade-line);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: .88rem;
}

.site-switch { color: var(--blade-accent-2); }

@media (max-width: 1199.98px) {
  .navbar .nav-link { font-size: .93rem; }
}

@media (max-width: 991.98px) {
  .hero { padding-top: 4.5rem; }
  .proof-item { margin-bottom: 1rem; }
  .topbar { display: none; }
  .hero-code-texture::before { width: 62%; opacity: .18; }
}

@media (max-width: 767.98px) {
  .hero-code-texture::before { display: none; }
  .hero::after { font-size: 11rem; right: -2rem; bottom: -2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Featured portfolio projects */
.featured-project .work-copy { min-height: 13.25rem; }
.project-sector {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #597080;
}
.site-ie .project-sector { color: #287a68; }
.project-summary { color: #596977; margin: .8rem 0 1rem; }
.project-link { font-weight: 800; text-decoration: none; }
.project-link:hover { text-decoration: underline; }
.featured-project .work-shot { aspect-ratio: 2 / 1; }
