/* ============================================================
   QUINNIX SOFTWARE — site.css  |  Neon dark theme
   All brand colors are CSS custom properties.
   ============================================================ */

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:        #060c14;
  --bg-raised: #0a1628;
  --bg-card:   #0d1b2e;
  --bg-hover:  #102038;

  /* Borders */
  --border:     rgba(14, 165, 255, 0.15);
  --border-mid: rgba(14, 165, 255, 0.35);

  /* Text */
  --text:       #d8eeff;
  --text-soft:  #5a8aaa;
  --text-muted: #264560;

  /* Accent */
  --accent:       #0ea5ff;
  --accent-hover: #38bfff;
  --accent-soft:  rgba(14, 165, 255, 0.1);
  --accent-text:  #38bfff;

  /* Neon glow helpers */
  --glow-sm: 0 0 8px  rgba(14, 165, 255, 0.45);
  --glow-md: 0 0 20px rgba(14, 165, 255, 0.4), 0 0 40px rgba(14, 165, 255, 0.15);
  --glow-lg: 0 0 30px rgba(14, 165, 255, 0.55), 0 0 70px rgba(14, 165, 255, 0.2);

  /* Status */
  --status-dev:     #f59e0b;
  --status-dev-bg:  rgba(245, 158, 11, 0.15);
  --status-live:    #34c77b;
  --status-live-bg: rgba(52, 199, 123, 0.12);

  /* Feedback */
  --success:    #34c77b;
  --success-bg: rgba(52, 199, 123, 0.08);
  --error:      #e05252;
  --error-bg:   rgba(224, 82, 82, 0.08);

  /* Layout */
  --shell-max:  1120px;
  --shell-pad:  1.5rem;
  --radius:     8px;
  --radius-lg:  14px;
  --section-gap: 5rem;

  /* Typography */
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Fira Code", ui-monospace, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  --transition: 160ms ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; color-scheme: dark; }

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

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8f4ff;
}
h1 { font-size: clamp(var(--text-3xl), 5vw, 3.75rem); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: var(--text-xl); }
p + p { margin-top: 1em; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.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;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent); color: #fff;
  border-radius: var(--radius); font-weight: 600;
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}
@media (min-width: 768px) { .shell { padding: 0 2rem; } }

.section { padding: var(--section-gap) 0; }

.section-header { max-width: 640px; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-soft); font-size: var(--text-lg); }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition),
              color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: var(--glow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--glow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--glow-sm);
}

.btn:disabled, .btn[aria-busy="true"] { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 62px;
}

/* Brand */
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.brand:hover { color: #fff; }

.brand-mark {
  flex-shrink: 0;
  width: 34px; height: 34px;
}

.brand-name {
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1;
  color: #fff;
}
.brand-name .brand-cyan { color: var(--accent-text); }
.brand-suffix { font-weight: 400; color: var(--text-soft); }

/* Nav */
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.site-nav a {
  padding: 0.4rem 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover, .site-nav a.is-active { color: #fff; }
.site-nav a.is-active {
  color: #fff;
  position: relative;
}
.site-nav a.is-active::after {
  content: '';
  position: absolute; bottom: 2px; left: 0.9rem; right: 0.9rem;
  height: 2px; background: var(--accent); border-radius: 2px;
  box-shadow: var(--glow-sm);
}

/* Contact button in nav — outlined */
.site-nav .nav-cta {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.4rem 1rem;
  font-weight: 600;
  margin-left: 0.5rem;
}
.site-nav .nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent-soft);
  box-shadow: var(--glow-sm);
}
.site-nav .nav-cta::after { display: none; }

/* Mobile menu */
.menu-button {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-left: auto;
  color: var(--text); border-radius: 6px;
}
.menu-button:hover { background: var(--bg-hover); }
.menu-icon { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.menu-icon i {
  display: block; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
}
.menu-icon i:last-child { width: 14px; }
[aria-expanded="true"] .menu-icon i:first-child { transform: rotate(45deg) translate(4px, 4px); }
[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .menu-icon i:last-child   { transform: rotate(-45deg) translate(4px, -4px); width: 20px; }

@media (max-width: 767px) {
  .menu-button { display: flex; }
  .site-nav {
    display: none; position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
    background: var(--bg); flex-direction: column; align-items: flex-start;
    padding: 1.5rem var(--shell-pad); gap: 0.25rem; overflow-y: auto;
    border-top: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: var(--text-lg); padding: 0.75rem 1rem; width: 100%; }
  .site-nav .nav-cta { margin-left: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 4rem 0 0;
  overflow: hidden;
  min-height: 520px;
}

/* Atmospheric glow behind entire hero */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 45%, rgba(14,165,255,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 90%, rgba(14,165,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
  }
}

.hero-text { max-width: 560px; padding-bottom: 4rem; }

.hero-text h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
}
.hero-text h1 .hero-cyan {
  color: var(--accent-text);
  text-shadow: 0 0 40px rgba(14,165,255,0.5);
}

.hero-tagline {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.1rem;
}

.hero-body {
  font-size: var(--text-base);
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 450px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero 3D scene */
.hero-graphic {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-graphic {
    position: absolute;
    right: -2rem;
    top: -5rem;
    bottom: 0;
    width: 65%;
    align-items: flex-end;
  }
}

.hero-scene {
  width: 100%;
  height: auto;
  display: block;
  /* Fade rectangular edges into dark hero background — mobile defaults */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 10%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 94%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 10%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 94%, transparent 100%);
  mask-composite: intersect;
}

@media (min-width: 900px) {
  /* Stronger left/right fade on desktop where artwork overlaps the text column */
  .hero-scene {
    -webkit-mask-image:
      linear-gradient(to right,  transparent 0%, black 20%, black 86%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, black 12%, black 95%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image:
      linear-gradient(to right,  transparent 0%, black 20%, black 86%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, black 12%, black 95%, transparent 100%);
    mask-composite: intersect;
  }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--bg-raised); }

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform 200ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.project-card:hover {
  border-color: rgba(14, 165, 255, 0.4);
  box-shadow: 0 0 25px rgba(14, 165, 255, 0.12), 0 12px 40px rgba(0,0,0,0.5);
}

/* Card header: icon + wave decoration */
.project-card-header {
  position: relative;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 110px;
  overflow: hidden;
}

/* Gradient background for card header area */
.project-card-header::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.6;
}
.project-card--arctic .project-card-header::before {
  background: linear-gradient(135deg, #071624 0%, #0a2244 50%, #071624 100%);
}
.project-card--voxmason .project-card-header::before {
  background: linear-gradient(135deg, #071a14 0%, #0a3028 50%, #071a14 100%);
}
.project-card--reel .project-card-header::before {
  background: linear-gradient(135deg, #120714 0%, #2a0e30 50%, #120714 100%);
}

.project-icon {
  position: relative;
  z-index: 1;
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.project-icon--arctic  { background: #0a1e38; border: 1px solid rgba(14,165,255,0.3); }
.project-icon--voxmason { background: #071e14; border: 1px solid rgba(52,199,123,0.3); }
.project-icon--reel    { background: #1a0a22; border: 1px solid rgba(140,80,220,0.3); }

.project-icon svg { width: 24px; height: 24px; }
.project-icon--arctic  svg { color: #38bfff; }
.project-icon--voxmason svg { color: #34c77b; }
.project-icon--reel    svg { color: #a855f7; }

/* Decorative wave behind icon area */
.project-wave {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  z-index: 0;
}

.project-status {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
[data-status="development"] {
  background: var(--status-dev-bg);
  color: var(--status-dev);
  border: 1px solid rgba(245,158,11,0.3);
}
[data-status="live"] {
  background: var(--status-live-bg);
  color: var(--status-live);
  border: 1px solid rgba(52,199,123,0.3);
}

.project-content { padding: 1rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }

.project-title { font-size: var(--text-xl); margin-bottom: 0.5rem; color: #fff; }

.project-desc {
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tag {
  padding: 0.2rem 0.65rem;
  background: rgba(14,165,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: var(--text-xs);
  color: var(--text-soft);
  font-weight: 500;
}

.project-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: auto; }
.project-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: var(--text-sm); font-weight: 500;
  text-decoration: none; color: var(--accent-text);
  transition: color var(--transition);
}
.project-link:hover { color: var(--accent-hover); }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy-inner {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start;
}
@media (min-width: 900px) { .philosophy-inner { grid-template-columns: 3fr 2fr; } }

.philosophy-text h2 { margin-bottom: 1.25rem; }
.philosophy-lead {
  font-size: var(--text-xl); color: var(--text-soft); margin-bottom: 1.25rem;
}

.philosophy-callout {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: inset 0 0 40px rgba(14,165,255,0.03);
}
blockquote p {
  font-size: var(--text-xl); font-weight: 600; color: #e8f4ff;
  line-height: 1.4; margin-bottom: 0.5rem; font-style: italic;
}
blockquote footer { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 1.5rem; }

.philosophy-values { display: flex; flex-direction: column; gap: 0.5rem; }
.philosophy-values li {
  font-size: var(--text-sm); color: var(--text-soft);
  padding-left: 1rem; position: relative;
}
.philosophy-values li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg-raised); }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: rgba(14,165,255,0.3);
  box-shadow: 0 0 20px rgba(14,165,255,0.06);
}

.service-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  border: 1px solid rgba(14,165,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-text);
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: var(--text-lg); margin-bottom: 1rem; }
.service-card ul { display: flex; flex-direction: column; gap: 0.4rem; }
.service-card li { font-size: var(--text-sm); color: var(--text-soft); padding-left: 1rem; position: relative; }
.service-card li::before { content: '—'; position: absolute; left: 0; color: var(--text-muted); }

.services-note { color: var(--text-soft); font-size: var(--text-base); }
.services-note a { font-weight: 600; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .about-inner { grid-template-columns: 300px 1fr; } }

.about-photo-wrap { display: flex; justify-content: center; }

.about-photo {
  width: 100%; max-width: 300px;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  border: 2px solid var(--border-mid);
  box-shadow: var(--glow-sm), 0 8px 32px rgba(0,0,0,0.6);
}

.about-text { min-width: 0; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-tagline {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent-text);
  text-shadow: var(--glow-sm);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-raised); }

.contact-inner { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .contact-inner { grid-template-columns: 2fr 3fr; } }

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--text-soft); margin-bottom: 1.5rem; }

.contact-channels { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.contact-channels li { display: flex; align-items: center; gap: 0.6rem; font-size: var(--text-sm); }
.contact-channels svg { color: var(--text-muted); flex-shrink: 0; }
.contact-channels a { font-weight: 500; }

.contact-topics h3 { font-size: var(--text-base); margin-bottom: 0.75rem; color: var(--text-soft); font-weight: 600; }
.contact-topics ul { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-topics li { font-size: var(--text-sm); color: var(--text-soft); padding-left: 1rem; position: relative; }
.contact-topics li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--text-soft); margin-bottom: 0.4rem; }
.form-group label span { color: var(--error); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,255,0.12), var(--glow-sm);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a8aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}
.form-group select option { background: var(--bg-raised); }

.form-honeypot {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none;
}

.form-actions { margin-top: 0.5rem; }
.btn-submit { width: 100%; justify-content: center; }
.btn-loading { display: none; }
[aria-busy="true"] .btn-label  { display: none; }
[aria-busy="true"] .btn-loading { display: inline; }

.form-feedback {
  margin-top: 1rem; padding: 0.9rem 1rem;
  border-radius: var(--radius); font-size: var(--text-sm); display: none;
}
.form-feedback.is-success { display: block; background: var(--success-bg); color: var(--success); border: 1px solid rgba(52,199,123,0.25); }
.form-feedback.is-error   { display: block; background: var(--error-bg);   color: var(--error);   border: 1px solid rgba(224,82,82,0.25); }
.feedback-title { display: block; font-size: var(--text-base); font-weight: 700; margin-bottom: 0.35rem; }
.form-feedback p { margin: 0; opacity: 0.9; }

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: var(--error); }
.field-error { display: block; font-size: var(--text-xs); color: var(--error); margin-top: 0.3rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0; background: var(--bg); }

.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; }

.footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-brand-link {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text); font-weight: 700;
}
.footer-brand-link:hover { color: #fff; }
.footer-brand-link .brand-mark { width: 24px; height: 24px; }

.footer-tagline { font-size: var(--text-sm); color: var(--text-muted); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-left: auto; }
.footer-nav a {
  padding: 0.3rem 0.6rem; font-size: var(--text-sm); color: var(--text-soft);
  text-decoration: none; border-radius: 4px;
}
.footer-nav a:hover { color: var(--text); background: var(--bg-hover); }

.footer-copy { width: 100%; font-size: var(--text-xs); color: var(--text-muted); margin-top: 0.5rem; }

/* ============================================================
   PROJECT PAGES
   ============================================================ */
.page-back {
  padding: 1.25rem 0 0;
}
.page-back a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--text-sm); color: var(--text-soft); text-decoration: none;
  transition: color var(--transition);
}
.page-back a:hover { color: var(--accent-text); }

.project-page-hero {
  padding: 3rem 0 4rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.project-page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 85% 50%, rgba(14,165,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.project-page-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 860px) {
  .project-page-hero-inner { grid-template-columns: 1fr 380px; }
}

.project-page-hero .eyebrow { margin-bottom: 0.6rem; }
.project-page-hero h1 { font-size: clamp(var(--text-3xl), 5vw, 3rem); margin-bottom: 1rem; }
.project-page-hero .hero-body { color: var(--text-soft); font-size: var(--text-lg); line-height: 1.6; margin-bottom: 1.5rem; }
.project-page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual-arctic  svg { color: #38bfff; }
.hero-visual-voxmason svg { color: #34c77b; }
.hero-visual-reel    svg { color: #a855f7; }

.project-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.project-visual svg { width: 100%; max-width: 380px; height: auto; }

.project-detail-section { padding: var(--section-gap) 0; }
.project-detail-section.alt { background: var(--bg-raised); }

.detail-inner {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start;
}
@media (min-width: 860px) {
  .detail-inner { grid-template-columns: 1fr 1fr; }
  .detail-inner.wide-left { grid-template-columns: 3fr 2fr; }
}

.detail-inner h2 { margin-bottom: 1rem; }
.detail-inner p { color: var(--text-soft); margin-bottom: 1rem; }
.detail-inner p:last-child { margin-bottom: 0; }

.feature-list { display: flex; flex-direction: column; gap: 1.1rem; }
.feature-item {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color var(--transition), box-shadow var(--transition);
}
.feature-item:hover { border-color: var(--border-mid); box-shadow: var(--glow-sm); }
.feature-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--accent-soft); border: 1px solid rgba(14,165,255,0.2);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--accent-text);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-body { min-width: 0; }
.feature-body strong { display: block; font-size: var(--text-sm); font-weight: 600; color: #e8f4ff; margin-bottom: 0.2rem; }
.feature-body p { font-size: var(--text-sm); color: var(--text-soft); margin: 0; line-height: 1.5; }

.feature-item.experimental .feature-icon {
  background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); color: var(--status-dev);
}
.feature-item.experimental .feature-body strong::after {
  content: 'Experimental';
  display: inline-block; margin-left: 0.5rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--status-dev); background: var(--status-dev-bg);
  border: 1px solid rgba(245,158,11,0.3); border-radius: 20px;
  padding: 0.1rem 0.4rem; vertical-align: middle;
}

.tech-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.tech-pill {
  padding: 0.3rem 0.8rem;
  background: rgba(14,165,255,0.06);
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-text);
}

.screenshot-placeholder {
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 2px dashed rgba(14,165,255,0.2);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; color: var(--text-muted);
}
.screenshot-placeholder svg { opacity: 0.4; }
.screenshot-placeholder span { font-size: var(--text-sm); }

.screenshot-img {
  aspect-ratio: 16/9;
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.status-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.status-block h3 { font-size: var(--text-base); margin-bottom: 1rem; color: var(--text-soft); }
.status-row {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--text-sm); padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.status-row:last-child { border-bottom: none; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.ready   { background: var(--status-live); box-shadow: 0 0 6px rgba(52,199,123,0.5); }
.status-dot.dev     { background: var(--status-dev);  box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.status-dot.planned { background: var(--text-muted); }

.project-sibling-nav {
  padding: 2.5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.sibling-nav-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.sibling-nav-link {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 160px;
}
.sibling-nav-link:hover { border-color: var(--border-mid); box-shadow: var(--glow-sm); }
.sibling-nav-label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.sibling-nav-name { font-size: var(--text-sm); font-weight: 600; color: var(--accent-text); }
.sibling-nav-link.next { text-align: right; margin-left: auto; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 3rem var(--shell-pad);
  position: relative; overflow: hidden;
}
.error-visual {
  width: min(420px, 100%);
  margin: 0 auto 2.5rem;
}
.error-visual svg { width: 100%; height: auto; }
.error-code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(135deg, #38bfff 0%, #0ea5ff 60%, #0550a0 100%);
  -webkit-background-clip: text; background-clip: text;
  text-shadow: none;
  line-height: 1; margin-bottom: 0.25rem;
  filter: drop-shadow(0 0 24px rgba(14,165,255,0.4));
}
.error-title { font-size: var(--text-2xl); margin-bottom: 0.75rem; color: #e8f4ff; }
.error-body { color: var(--text-soft); font-size: var(--text-lg); max-width: 480px; margin: 0 auto 2rem; }
.error-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

@keyframes drift {
  0%   { transform: translateY(0)   rotate(0deg); }
  50%  { transform: translateY(-18px) rotate(1.5deg); }
  100% { transform: translateY(0)   rotate(0deg); }
}
.drift { animation: drift 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .drift { animation: none; } }

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0.9; }
}
.pulse { animation: pulse-glow 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; opacity: 0.7; } }

/* ============================================================
   SCREENSHOT SHOWCASES + LIGHTBOX
   ============================================================ */

/* Intro text above a showcase — readable line length, shared styles */
.section-intro {
  max-width: 760px;
  margin-bottom: 2.5rem;
}
.section-intro h2    { margin-bottom: 1rem; }
.section-intro p     { color: var(--text-soft); margin-bottom: 1em; }
.section-intro p:last-child { margin-bottom: 0; }

/* Shared: clickable image wrapper */
.ss-link {
  display: block;
  cursor: zoom-in;
  position: relative;
}
.ss-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ss-link::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(14, 165, 255, 0);
  transition: background 0.15s ease;
  pointer-events: none;
}
.ss-link:hover::after { background: rgba(14, 165, 255, 0.07); }

/* Shared: screenshot image — 16:9, cropped from top */
.ss-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

/* Shared: label beneath an image panel */
.ss-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.01em;
  padding: 0.5rem 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

/* Shared: caption below the entire showcase block */
.ss-caption {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ss-caption .sep { opacity: 0.4; }

/* Wide single showcase — VoxMason */
.screenshot-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}
.screenshot-showcase .ss-link { border-radius: 0; }

/* Dual showcase — Arctic Link (primary + secondary side by side) */
.screenshot-duo {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0.75rem;
  align-items: start;
}
@media (max-width: 600px) { .screenshot-duo { grid-template-columns: 1fr; } }

.screenshot-duo .ss-primary,
.screenshot-duo .ss-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Pair showcase — ReelGenerator (two equal panels) */
.screenshot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}
@media (max-width: 600px) { .screenshot-pair { grid-template-columns: 1fr; } }

.screenshot-pair .ss-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center; justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }

.lightbox-img {
  max-width: min(100%, 1400px);
  max-height: 90vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(14, 165, 255, 0.15);
  display: block;
  cursor: default;
}

.lightbox-close {
  position: fixed; top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  z-index: 1;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}
.lightbox-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
