/* ============================
   Inposit Dark Tech Theme
   ============================ */

:root {
  --bg: #0a0e17;
  --bg-alt: #0f1420;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf4;
  --text-dim: #97a1b8;
  --text-dimmer: #6b7387;
  --accent: #bba16a;
  --accent-2: #d0b983;
  --accent-3: #d0b983;
  --gradient: #bba16a;
  --radius: 8px;
  --max-width: 1180px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 10%, rgba(109, 91, 255, 0.16), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(34, 211, 238, 0.12), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 91, 158, 0.08), transparent 40%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p { color: var(--text-dim); margin-top: 12px; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  border: none;
  color: #fff;
  box-shadow: 0 8px 30px rgba(109, 91, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(109, 91, 255, 0.5); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--surface-hover); border-color: var(--accent-2); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 23, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}
.brand-logo { display: block; width: 165px; height: auto; aspect-ratio: 687.47 / 127; object-fit: contain; }
.nav > .logo { flex-shrink: 0; align-self: center; }
@media (max-width: 600px) { .nav .brand-logo { width: 145px; } }
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 14px 16px; }
  .nav-cta { margin-left: 0; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}
.hero p.lead {
  max-width: 620px;
  margin: 20px auto 36px;
  color: var(--text-dim);
  font-size: 1.15rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
}
.stat { text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 800; }
.stat .label { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Cards / Grid */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.solution-grid { align-items: stretch; }
.solution-card { padding: 28px; min-height: 0; position: relative; overflow: hidden; }
.solution-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -70px; bottom: -70px; border-radius: 50%; background: rgba(92, 210, 255, .08); pointer-events: none; }
.solution-card .card-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; background: linear-gradient(135deg, rgba(111, 91, 255, .95), rgba(38, 192, 232, .95)); color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .04em; box-shadow: 0 10px 26px rgba(60, 160, 255, .2); }
.solution-card h3 { min-height: 2.6em; }
.solution-card p { color: var(--text-dim); font-size: .95rem; line-height: 1.65; }
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; }
}

/* Pillar sections (Services page) */
.pillar {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}
.pillar-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.pillar-head .card-icon { margin-bottom: 0; flex-shrink: 0; }
.pillar-head h2 { margin-bottom: 4px; }
.pillar-tagline { color: var(--accent-2); font-weight: 600; font-size: 0.95rem; }
.pillar-desc { color: var(--text-dim); max-width: 640px; margin-bottom: 36px; }
.pillar-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
@media (max-width: 700px) {
  .pillar-list { grid-template-columns: 1fr; }
}
.pillar-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pillar-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 91, 255, 0.4);
  background: var(--surface-hover);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* Alt sections */
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* CTA banner */
.cta-banner {
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(109, 91, 255, 0.18), rgba(34, 211, 238, 0.12));
  border: 1px solid var(--border);
  padding: 64px 40px;
  text-align: center;
}
.cta-banner p { color: var(--text-dim); max-width: 520px; margin: 14px auto 30px; }

/* Team */
.team-member { text-align: center; }
.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gradient);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.team-member .role { color: var(--accent-2); font-size: 0.85rem; margin-top: 4px; }

/* Timeline (About) */
.timeline { position: relative; padding-left: 32px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item .year { color: var(--accent-2); font-weight: 700; font-size: 0.9rem; }

/* Portfolio */
.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.portfolio-thumb {
  height: 200px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}
.portfolio-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
}
.portfolio-body { padding: 24px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.1rem; margin-bottom: 10px; }
.faq-item p { color: var(--text-dim); font-size: 0.95rem; }

/* Filter buttons (portfolio) */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn.active, .filter-btn:hover { color: #fff; background: var(--gradient); border-color: transparent; }

/* Forms (Contact) */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-2);
  background: var(--surface-hover);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.85rem; color: var(--text-dimmer); margin-top: 14px; }

.info-card { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.info-card h4 { font-size: 1rem; margin-bottom: 4px; }
.info-card p { color: var(--text-dim); font-size: 0.9rem; }

.alert {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  border: 1px solid;
}
.alert-success { background: rgba(34, 211, 238, 0.08); border-color: rgba(34, 211, 238, 0.4); color: #a6f2ff; }
.alert-error { background: rgba(255, 91, 158, 0.08); border-color: rgba(255, 91, 158, 0.4); color: #ffc2dc; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-alt);
}
.compact-footer { padding: 28px 0 24px; }
.compact-footer .footer-bottom { border-top: 0; padding-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 { font-size: 0.9rem; margin-bottom: 18px; color: var(--text); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-grid ul li a:hover { color: var(--accent-2); }
.footer-about p { color: var(--text-dim); font-size: 0.9rem; margin: 16px 0 20px; max-width: 320px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.social-row svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.social-row a:hover { color: #fff; background: var(--gradient); background-clip: padding-box; border-color: transparent; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dimmer);
  font-size: 0.85rem;
}
.legal-copy { max-width: 820px; }
.legal-copy h2 { margin: 36px 0 12px; font-size: 1.35rem; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { color: var(--text-dim); line-height: 1.8; }
.legal-copy a, .footer-bottom a { color: var(--accent-2); }

/* Page header (inner pages) */
.page-header {
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header p { color: var(--text-dim); max-width: 560px; margin: 14px auto 0; }
.breadcrumb { color: var(--text-dimmer); font-size: 0.9rem; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--accent-2); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* Portfolio project imagery and content */
.portfolio-image { height: auto; aspect-ratio: 16 / 9; background: #111525; }
.portfolio-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.portfolio-image::after, .portfolio-ai::after { display: none; }
.portfolio-item { display: flex; flex-direction: column; }
.portfolio-body { flex: 1; display: flex; flex-direction: column; }
.portfolio-kind { color: var(--accent-2); font-size: .75rem; margin-bottom: 10px; }
.portfolio-description { color: var(--text-dim); font-size: .9rem; margin-top: 8px; }
.portfolio-link { display: inline-block; margin-top: 20px; color: var(--accent-2); font-weight: 600; font-size: .9rem; }
.portfolio-ai { height: auto; aspect-ratio: 16 / 9; flex-direction: column; gap: 12px; background: radial-gradient(ellipse at center, #343062, #111525 75%); }
.ai-monogram { font-size: 3rem; font-weight: 800; color: #c2b7ff; line-height: 1; }
.ai-workflow { font-size: 1.05rem; font-weight: 600; }
.ai-workflow span { color: #ac9cff; padding: 0 6px; }
.ai-platform { color: #c2bfd6; font-size: .75rem; }
.portfolio-image:focus-visible, .portfolio-link:focus-visible, .filter-btn:focus-visible { outline: 3px solid #b8aaff; outline-offset: -3px; }
.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; }
@media (min-width: 701px) and (max-width: 1050px) { .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .portfolio-grid { grid-template-columns: minmax(0, 1fr); } }
/* Corporate overview */
.company-overview { padding: 80px 0 88px; border-top: 1px solid var(--border); }
.company-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
.company-copy h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.16; letter-spacing: -.04em; margin-bottom: 24px; }
.company-copy p { color: var(--text-dim); line-height: 1.8; }
.company-copy .company-lead { color: var(--text); font-size: 1.12rem; margin-bottom: 18px; }
.company-link { display: inline-flex; align-items: center; gap: 24px; margin-top: 30px; font-weight: 600; color: var(--accent-2); }
.company-link:hover { color: white; }
.company-system { padding: 30px; border: 1px solid rgba(143,159,213,.2); border-radius: 24px; background: radial-gradient(ellipse at top right, rgba(109,91,255,.18), transparent 65%), #101623; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.system-caption { color: #aab8cb; font-size: .73rem; display: flex; align-items: center; gap: 9px; }
.system-dot { width: 6px; height: 6px; background: var(--accent-2); border-radius: 50%; }
.system-brand { display: flex; align-items: center; gap: 14px; margin: 30px 0; font-size: 1.65rem; font-weight: 750; }
.system-brand .logo-mark { width: 48px; height: 48px; }
.system-brand small { display: block; font-size: .75rem; color: var(--text-dim); font-weight: 400; margin-top: 2px; }
.system-layers { display: grid; gap: 12px; }
.system-layer { display: flex; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.025); }
.system-layer h3 { font-size: .95rem; margin-bottom: 3px; }
.system-layer p { font-size: .78rem; color: var(--text-dim); }
.layer-symbol { color: #b6a9ff; font-size: 1.6rem; width: 28px; text-align: center; flex-shrink: 0; }
.system-footnote { margin-top: 22px; font-size: .75rem; color: var(--text-dim); }
.company-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); }
.company-principles article + article { border-left: 1px solid var(--border); padding-left: 32px; }
.company-principles span { color: var(--accent-2); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.company-principles h3 { font-size: 1.1rem; margin: 10px 0; }
.company-principles p { font-size: .87rem; color: var(--text-dim); }
@media (max-width: 900px) { .company-layout { gap: 36px; grid-template-columns: 1fr; } .company-copy { max-width: 650px; } }
@media (max-width: 600px) { .company-overview { padding: 48px 0; } .company-system { padding: 22px; } .company-principles { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; } .company-principles article + article { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--border); } }

/* Restrained corporate presentation across all routes. */
body::before { display: none; }
:root { --bg: #101318; --bg-alt: #15191f; --text: #f2f4f7; --text-dim: #afb6c2; --text-dimmer: #939ca9; --border: #30363f; }
.text-gradient { background: none; color: var(--text); }
.eyebrow { color: var(--accent-2); font-size: .875rem; letter-spacing: .12em; }
.eyebrow::before { display: none; }
.btn, .nav-links a, .filter-btn { border-radius: 5px; }
.btn-primary { background: var(--accent); box-shadow: none; }
.btn-primary:hover { background: #d0b983; box-shadow: none; transform: none; }
.site-header { background: rgba(16,19,24,.96); }
.logo-mark { background: var(--accent); border-radius: 5px; }
.nav-links a.active { background: transparent; color: white; box-shadow: inset 0 -2px var(--accent-2); }
.nav-links a.btn-primary:hover { background: #d0b983; }
.btn-primary, .nav-links a.btn-primary, .nav-links a.btn-primary:hover, .logo-mark, .filter-btn.active, .filter-btn:hover { color: #101318; }
.hero { text-align: left; padding: 104px 0 64px; }
.hero .eyebrow { justify-content: flex-start !important; }
.hero h1 { max-width: 920px; font-size: clamp(2.6rem, 5.8vw, 4.6rem); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; }
.hero p.lead { max-width: 680px; margin: 28px 0 32px; }
.hero-actions { justify-content: flex-start; }
.stats { border-top: 1px solid var(--border); padding-top: 32px; margin-top: 72px; }
.stat { text-align: left; padding-left: 24px; border-left: 1px solid var(--border); }
.stat:first-child { padding-left: 0; border-left: none; }
.stat .num { font-weight: 600; }
.section-head { max-width: 760px; margin: 0 0 48px; text-align: left; }
.section-head .eyebrow { justify-content: flex-start !important; }
h2 { font-weight: 600; letter-spacing: -.035em; }
.card { box-shadow: none; }
.card:hover { transform: none; border-color: var(--border); background: var(--surface); }
.solution-grid { gap: 0; }
.solution-card { padding: 24px 20px; background: none; border: 0; border-left: 1px solid var(--border); border-radius: 0; }
.solution-card:first-child { border-left: 0; padding-left: 0; }
.solution-card:hover { background: none; }
.solution-card::after { display: none; }
.card-icon, .solution-card .card-icon, .info-icon { background: none; border: 0; border-radius: 0; color: var(--accent-2); box-shadow: none; justify-content: flex-start; }
.card-icon svg, .info-icon svg { width: 30px; height: 30px; }
.solution-card h3 { font-size: 1.15rem; }
.cta-banner { background: var(--bg-alt); border-radius: 0; border: 0; border-top: 1px solid var(--border); padding: 56px 32px; }
.company-system { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; box-shadow: none; }
.system-layer { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; padding: 20px 0; }
.layer-symbol { color: var(--accent-2); }
.system-dot { display: none; }
.system-caption, .system-layer p, .system-brand small, .system-footnote, .company-principles span, .portfolio-kind, .ai-platform, .tag { font-size: .875rem; }
.portfolio-ai { background: #1b222c; }
.ai-monogram { color: var(--text); }
.ai-workflow span { color: var(--accent-2); }
.ai-platform { color: var(--text-dim); }
.tag { border-radius: 4px; }
.portfolio-kind { color: var(--accent-2); }
.grid-3 > .card:has(.portfolio-kind) { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 28px 0; }
.social-row a:hover { background: #252e3a; border-color: #657286; }
.footer-bottom a { color: var(--text-dim); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.form-group select { color-scheme: dark; }
.portfolio-image:focus-visible, .portfolio-link:focus-visible, .filter-btn:focus-visible { outline-color: var(--accent-2); }
@media (min-width: 901px) and (max-width: 1100px) { .solution-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 0; } }
@media (max-width: 900px) { .solution-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .solution-card, .solution-card:first-child { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--border); } }
@media (max-width: 600px) { section { padding: 64px 0; } .hero { padding: 64px 0 48px; } .hero h1 { font-size: 2.65rem; } .stats { margin-top: 48px; gap: 28px 16px; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat .num { font-size: 1.9rem; } .solution-grid { grid-template-columns: 1fr; gap: 16px; } .solution-card h3 { min-height: 0; } .solution-card .card-icon { margin-bottom: 12px; } .cta-banner { padding: 36px 20px; } .footer-grid { gap: 28px 20px; } .footer-about { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

/* Decorative home banner video, with a readable text layer. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #101318; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .65; filter: grayscale(1) sepia(.55); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,19,24,.9), rgba(16,19,24,.65) 60%, rgba(16,19,24,.3)), linear-gradient(0deg, #101318, transparent 55%); pointer-events: none; }
@media (max-width: 600px) { .hero-video { opacity: .45; } }

/* Instagram placeholder icon until the profile URL is available */
.social-row a[aria-label="Instagram"] svg { display: none; }
.social-row a[aria-label="Instagram"]::before { content: ""; width: 17px; height: 17px; border: 2px solid currentColor; border-radius: 5px; box-sizing: border-box; background: radial-gradient(circle at 68% 30%, currentColor 0 1.5px, transparent 2px), radial-gradient(circle, transparent 0 4px, currentColor 4.5px 6px, transparent 6.5px); }

/* Keep the contact navigation CTA filled even when its route is active. */
.solution-grid { display: flex; gap: 20px; overflow: hidden; align-items: stretch; touch-action: pan-y; cursor: grab; user-select: none; }
.solution-grid:active { cursor: grabbing; }
.solution-grid .solution-card { flex: 0 0 calc((100% - 40px) / 3); display: flex; flex-direction: column; padding: 30px; border: 1px solid #383a3d; border-top: 2px solid #796b4d; border-radius: 10px; background: #1b1f25; transition: border-color .2s ease, background .2s ease, transform .5s ease; }
.solution-grid .solution-card:hover, .solution-grid .solution-card:focus-within { background: #22262b; border-color: var(--accent); }
.solution-grid .card-icon { width: 52px; height: 52px; margin-bottom: 24px; border: 1px solid rgba(187,161,106,.25); border-radius: 8px; background: rgba(187,161,106,.08); justify-content: center; }
.solution-grid .solution-card h3 { min-height: 0; font-size: 1.3rem; margin-bottom: 12px; }
.solution-grid .solution-card p { font-size: 1rem; line-height: 1.7; margin-bottom: 28px; max-width: 44ch; }
.solution-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); color: var(--accent-2); font-size: .9rem; font-weight: 600; }
.solution-link span { font-size: 1.25rem; }
.solution-link::after { display: none; }
@media (max-width: 900px) { .solution-grid .solution-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .solution-grid { gap: 16px; } .solution-grid .solution-card { flex-basis: 100%; padding: 24px; } }
@media (prefers-reduced-motion: reduce) { .solution-grid .solution-card { transition: none; } }
.nav-links a.btn-primary.active { background: var(--accent); color: #101318; box-shadow: none; }
.nav-links a.btn-primary.active:hover { background: var(--accent-2); }

/* Responsive safeguards for narrow screens and short landscape viewports. */
.grid > *, .contact-grid > *, .company-layout > *, .form-row > *, .pillar-head > div { min-width: 0; }
.form-group input, .form-group select, .form-group textarea { min-width: 0; font-size: 1rem; }
.footer-grid { overflow-wrap: anywhere; }
.pillar { scroll-margin-top: 90px; }
@media (max-width: 860px) {
  .nav-links { top: 78px; max-height: calc(100dvh - 94px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 420px) {
  .pillar-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pillar-head h2 { overflow-wrap: anywhere; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
  .card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; white-space: normal; }
}
