/* Digital Helix Labs — corporate site styles */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060a12;
  --bg-elevated: #0b1220;
  --bg-card: #0e1628;
  --bg-nav: rgba(6, 10, 18, 0.88);
  --blue: #1a7ae6;
  --blue-bright: #3b93f5;
  --blue-deep: #1060b5;
  --gold: #d4a017;
  --gold-soft: #e6b84a;
  --text: #f4f6f8;
  --text-secondary: #9aa3ad;
  --text-muted: #8b93a0;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(26, 122, 230, 0.35);
  --glow-blue: rgba(26, 122, 230, 0.28);
  --glow-gold: rgba(212, 160, 23, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --nav-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue-bright);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }
:focus-visible { outline: none; box-shadow: var(--focus); }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--blue); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-bright); margin-bottom: 0.85rem;
}
.section-label::before {
  content: ""; width: 18px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 2px;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 1rem; color: var(--text);
}
.lead { font-size: 1.125rem; color: var(--text-secondary); max-width: 38rem; margin: 0 0 2rem; }
.muted { color: var(--text-secondary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background 0.25s var(--ease), border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff; box-shadow: 0 0 0 1px rgba(26,122,230,0.35), 0 8px 28px var(--glow-blue);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px var(--blue-bright), 0 12px 36px var(--glow-blue); }
.btn-secondary {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { color: var(--text); border-color: var(--blue); background: rgba(26,122,230,0.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--text); min-width: 0;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  filter: drop-shadow(0 0 10px var(--glow-blue));
}
.brand-name {
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  white-space: nowrap; color: #fff; /* white text solves blue-on-navy contrast */
}
.nav-links {
  display: none; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.92rem;
  padding: 0.5rem 0.85rem; border-radius: 8px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile menu */
.mobile-panel {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 6, 12, 0.72);
  opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease);
}
.mobile-panel.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: absolute; top: 0; right: 0; height: 100%; width: min(88vw, 340px);
  background: var(--bg-elevated); border-left: 1px solid var(--border);
  padding: 1.25rem 1.25rem 2rem;
  transform: translateX(100%); transition: transform 0.3s var(--ease);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.mobile-panel.is-open .mobile-drawer { transform: translateX(0); }
.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.mobile-nav a {
  display: block; padding: 0.85rem 1rem; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 500;
  border: 1px solid transparent;
}
.mobile-nav a:hover { background: rgba(26,122,230,0.1); border-color: var(--border); }
body.menu-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; padding: clamp(3rem, 8vw, 5rem) 0 4rem;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.55; pointer-events: none;
}
.hero-glow {
  position: absolute; inset: auto auto 10% -10%;
  width: 60vw; height: 50vh;
  background: radial-gradient(ellipse, var(--glow-blue), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-glow-gold {
  position: absolute; top: 5%; right: -5%;
  width: 40vw; height: 40vh;
  background: radial-gradient(ellipse, var(--glow-gold), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 600;
  margin: 0 0 1.25rem;
  background: linear-gradient(135deg, #fff 40%, #a8c8f0 80%, var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@supports not (background-clip: text) {
  .hero-copy h1 { color: #fff; background: none; }
}
.hero-copy .lead { font-size: 1.2rem; margin-bottom: 2rem; }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.logo-plate {
  /* No plate: transparent logo on the dark hero with a soft light behind it for legibility */
  position: relative;
  width: 100%; max-width: 280px;
}
.logo-plate::before {
  content: ""; position: absolute; inset: -14% -32% -18%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 16% at 50% 79%, rgba(170, 205, 245, 0.30), transparent 100%),
    radial-gradient(closest-side, rgba(150, 190, 240, 0.24), rgba(59, 147, 245, 0.10) 55%, transparent 100%);
}
.logo-plate img {
  position: relative; z-index: 1; width: 100%; height: auto; margin: 0 auto;
  /* Thin light halo keeps the blue lettering readable on navy without changing its colors */
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 12px rgba(120, 175, 245, 0.4));
}

/* Cards / values / build */
.cards-3 {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(26,122,230,0.12);
}
.card-icon {
  width: 48px; height: 48px; margin-bottom: 1.1rem;
  color: var(--blue-bright);
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  margin: 0 0 0.55rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--text-secondary); font-size: 0.98rem; }

/* About band */
.about-grid {
  display: grid; gap: 2.5rem; align-items: start;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
}
.value-list { display: grid; gap: 1.15rem; }
.value-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  padding: 1.1rem 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.value-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem; font-weight: 600; color: var(--gold-soft);
  letter-spacing: 0.06em; padding-top: 0.2rem;
}
.value-item h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.value-item p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid; gap: 2.5rem;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
}
.contact-aside p { color: var(--text-secondary); }
.contact-meta {
  margin-top: 1.5rem; padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm); border: 1px dashed var(--border);
  background: rgba(255,255,255,0.02); font-size: 0.95rem;
}
.contact-meta strong { display: block; color: var(--text); margin-bottom: 0.25rem; }
.form {
  display: grid; gap: 1rem;
  padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
}
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font: inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,122,230,0.25);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-error { color: #ff8a8a; font-size: 0.85rem; min-height: 1.1em; }
.form-status {
  padding: 0.85rem 1rem; border-radius: 10px; font-size: 0.95rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.error { background: rgba(180,40,40,0.15); border: 1px solid rgba(255,120,120,0.35); color: #ffc9c9; }
.form-status.success { background: rgba(30,120,70,0.15); border: 1px solid rgba(80,200,120,0.35); color: #c8f0d8; }
.form-status.info { background: rgba(26,122,230,0.12); border: 1px solid rgba(26,122,230,0.35); color: #c8dcff; }
.hp-field {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem; background: #04070e;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand { display: flex; flex-direction: column; gap: 0.85rem; max-width: 280px; }
.footer-brand .brand-name { font-size: 1rem; }
.footer-brand p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }
.footer-col h3 {
  margin: 0 0 0.85rem; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-secondary); font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  color: var(--text-muted); font-size: 0.85rem;
}

/* Reveal */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* 404 */
.page-404 {
  min-height: calc(100vh - var(--nav-h) - 200px);
  display: flex; align-items: center; text-align: center; padding: 4rem 0;
}
.page-404 h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }

/* Texture divider */
.divider-helix {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--blue), var(--gold), transparent);
  opacity: 0.35; margin: 0;
}

.form-note { margin: 0; font-size: 0.88rem; }
[hidden] { display: none !important; }

/* ===== Round 3: richer layout ===== */
.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;
}
.section-alt {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(26,122,230,0.07), transparent 45%),
    radial-gradient(ellipse at 0% 100%, rgba(212,160,23,0.05), transparent 40%),
    var(--bg-elevated);
  border-block: 1px solid var(--border);
}
.section-head { margin-bottom: 2.25rem; }
.section-head .lead { margin-bottom: 0.75rem; }

/* Hero tags */
.hero-tags { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-tags li {
  font-size: 0.8rem; font-weight: 500; color: var(--text-secondary);
  padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

/* About story */
.about-story p:not(.lead):not(.section-label) { color: var(--text-secondary); max-width: 36rem; margin: 0 0 1rem; }
.helix-strands {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 1.75rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.strand-blue { color: var(--blue-bright); }
.strand-gold { color: var(--gold-soft); }
.strand-svg { width: 96px; height: 20px; opacity: 0.9; }
@media (min-width: 860px) { .value-list { margin-top: 2.6rem; } }
.value-item { transition: border-color 0.25s, background 0.25s; }
.value-item:hover { border-color: var(--border-strong); background: rgba(26,122,230,0.05); }
.value-item p { line-height: 1.6; }

/* Rich cards */
.card-rich { display: flex; flex-direction: column; }
.card-rich > p { margin-bottom: 1.1rem; }
.check-list { list-style: none; margin: auto 0 0; padding: 1rem 0 0; border-top: 1px solid var(--border); display: grid; gap: 0.5rem; }
.check-list li { position: relative; padding-left: 1.5rem; font-size: 0.92rem; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 0.8rem; height: 0.45rem;
  border-left: 2px solid var(--gold-soft); border-bottom: 2px solid var(--gold-soft);
  transform: rotate(-45deg);
}

/* Principles */
.principles-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .principles-grid { grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; align-items: start; }
  .principles-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
}
.binary-column {
  margin-top: 2rem; font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem; line-height: 1.9;
  letter-spacing: 0.2em; color: var(--blue-bright); opacity: 0.35; user-select: none;
}
@media (max-width: 899px) { .binary-column { display: none; } }
.principles { list-style: none; margin: 0; padding: 0; counter-reset: pr; display: grid; gap: 0; }
.principle {
  position: relative; padding: 1.4rem 0 1.4rem 4rem; border-bottom: 1px solid var(--border);
}
.principle:first-child { border-top: 1px solid var(--border); }
.principle::before {
  counter-increment: pr; content: "0" counter(pr);
  position: absolute; left: 0; top: 1.35rem;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1;
  background: linear-gradient(135deg, var(--blue-bright), var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.principle h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.principle p { margin: 0; color: var(--text-secondary); max-width: 34rem; }

/* Featured work (modest, data-driven) */
.work-grid { display: grid; gap: 1.25rem; }
.work-card {
  position: relative; display: grid; gap: 0; max-width: 920px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
@media (min-width: 760px) { .work-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.work-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.work-card:focus-within { border-color: var(--blue-bright); }
.work-media { background: #05080f; aspect-ratio: 1080 / 500; }
@media (min-width: 760px) { .work-media { aspect-ratio: auto; min-height: 100%; } }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; justify-content: center; }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.work-cat { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); }
.work-status {
  font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px;
  color: #c8dcff; background: rgba(26,122,230,0.14); border: 1px solid rgba(26,122,230,0.4);
}
.work-title { margin: 0; font-size: 1.2rem; letter-spacing: -0.01em; }
.work-link { color: var(--text); text-decoration: none; }
.work-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable, one link */
.work-link:hover { color: var(--text); }
.work-link:focus-visible { box-shadow: none; }
.work-desc { margin: 0; color: var(--text-secondary); font-size: 0.97rem; }
.work-url { font-size: 0.88rem; font-weight: 600; color: var(--blue-bright); margin-top: 0.2rem; }

/* Hero: CSS-only entrance that never hides the LCP image */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: hero-in 0.8s var(--ease) both; }
  .hero-visual .logo-plate { animation: hero-float-in 0.9s var(--ease) both; }
}
@keyframes hero-in { from { transform: translateY(14px); } to { transform: none; } }
@keyframes hero-float-in { from { transform: translateY(10px) scale(0.985); } to { transform: none; } }
