@font-face {
  font-family: "Haven";
  src: url("/fonts/haven.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "RobotoCondensed";
  src: url("/fonts/RobotoCondensed.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #f3efe4;
  --muted: rgba(243, 239, 228, 0.78);
  --faint: rgba(243, 239, 228, 0.56);
  --gold: #d4af50;
  --gold-bright: #e8c96a;
  --gold-line: rgba(212, 175, 80, 0.22);
  --gold-soft: rgba(212, 175, 80, 0.12);
  --blue: #9cc8ff;
  --blue-soft: rgba(156, 200, 255, 0.16);
  --live: #6ee7a7;
  --dev: #e8c96a;
  --concept: #9fb4e8;
  --void: #05070c;
  --panel: rgba(6, 10, 16, 0.22);
  --panel-strong: rgba(6, 10, 16, 0.38);
  --header: rgba(8, 12, 20, 0.3);
  --shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  --radius: 10px;
  --max: 1120px;
  --narrow: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--void);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "RobotoCondensed", "Segoe UI", sans-serif;
  background: transparent;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

a:hover {
  color: #c9e7ff;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.haven-font {
  font-family: "Haven", sans-serif;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--void);
  background-image: url("/images/BGWebsite.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 32%;
}

.site-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 72% 58% at 50% 38%, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.22) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  background: var(--header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: inherit;
}

.brand img {
  width: 42px;
  height: 42px;
  display: block;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 6px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
  background: var(--gold-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.page-narrow {
  width: min(var(--narrow), calc(100% - 40px));
}

.hero {
  padding: 72px 8px 80px;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.88), 0 0 36px rgba(0, 0, 0, 0.55);
}

.hero-compact {
  padding: 48px 8px 40px;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.hero h1,
.page-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
}

.lede,
.hero p {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-compact .lede {
  margin-left: 0;
}

.hero-ctas,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-compact .cta-row {
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(201, 231, 255, 0.45);
  background: rgba(8, 14, 24, 0.28);
  color: #c9e7ff;
  text-decoration: none;
  font-weight: 700;
  text-shadow: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn:hover {
  background: rgba(153, 204, 255, 0.16);
  color: #fff;
}

.btn-primary {
  border-color: rgba(212, 175, 80, 0.55);
  background: rgba(212, 175, 80, 0.16);
  color: var(--gold-bright);
}

.btn-primary:hover {
  background: rgba(212, 175, 80, 0.28);
  color: #fff;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 28px 30px 30px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow);
}

.panel.wide,
.panel-flush {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 8px 0 12px;
}

.job + .job {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prose h2 {
  margin: 1.4em 0 0.5em;
  font-size: 1.2rem;
}

.panel h2,
.section-title {
  margin: 0 0 0.7em;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.3;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.section-lead {
  max-width: 720px;
  color: var(--muted);
  margin: 0 0 22px;
}

.panel p,
.prose p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.prose p + p,
.panel p + p {
  margin-top: 0.9em;
}

.prose ul,
.plain-list {
  margin: 0 0 22px;
  padding-left: 1.2em;
  color: var(--muted);
}

.plain-list li {
  margin-bottom: 0.7em;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.capability,
.step,
.stat-card,
.faq-list details,
.form-card,
.meta-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 18px 20px;
}

.capability h3,
.step h3,
.stat-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.capability p,
.step p,
.stat-card p {
  margin: 0;
  color: var(--muted);
  text-shadow: none;
}

.step-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.project-card {
  position: relative;
  display: block;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.project-card:hover,
a.project-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  border-color: var(--accent, rgba(255, 255, 255, 0.3));
  color: #fff;
}

.project-card .card-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.project-card .card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.92) 100%);
}

.project-card.no-art {
  background: linear-gradient(160deg, var(--accent-dark, #10131c) 0%, #05060a 100%);
}

.project-card .card-body {
  position: relative;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.card-eyebrow,
.card-tags {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #9cf);
  margin-bottom: 8px;
}

.project-card h3,
.project-card h4 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.project-card p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: none;
}

.card-cta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent, #9cf);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 11px;
}

.badge-live {
  color: var(--live);
  border-color: rgba(110, 231, 167, 0.45);
}

.badge-live::before,
.badge-dev::before,
.badge-concept::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge-live::before {
  box-shadow: 0 0 0 0 rgba(110, 231, 167, 0.7);
  animation: pulse 1.8s ease-out infinite;
}

.badge-dev {
  color: var(--dev);
  border-color: rgba(232, 201, 106, 0.45);
}

.badge-concept {
  color: var(--concept);
  border-color: rgba(159, 180, 232, 0.4);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--faint);
}

.mystery .card-body {
  justify-content: center;
  text-align: center;
  min-height: 260px;
}

.glyph {
  font-size: 2rem;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
}

.faq-list details {
  margin-bottom: 10px;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
}

.faq-list details p {
  margin: 12px 0 0;
  color: var(--muted);
  text-shadow: none;
}

.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.note-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
}

.note-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.note-list a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.note-list a:hover {
  color: var(--gold-bright);
}

.note-meta {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

.optional {
  font-weight: 400;
  color: var(--faint);
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-help {
  margin: 0;
  color: var(--faint);
  font-size: 0.92rem;
}

.form-status[hidden] {
  display: none;
}

.product-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
}

.site-footer {
  background: rgba(6, 10, 18, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(212, 175, 80, 0.12);
  padding: 28px 28px 24px;
  margin-top: 8px;
}

.footer-grid {
  width: min(var(--max), 100%);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
}

.site-footer h2 {
  margin: 0 0 10px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 6px;
}

.footer-base {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--faint);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 167, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(110, 231, 167, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 167, 0); }
}

@media (max-width: 980px) {
  .grid-3,
  .split,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 12, 20, 0.94);
    border-bottom: 1px solid var(--gold-line);
    padding: 0;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .page {
    width: calc(100% - 28px);
  }

  .hero {
    padding: 40px 0 52px;
  }

  .hero h1,
  .page-title {
    font-size: 1.85rem;
  }

  .panel {
    padding: 22px 18px 24px;
  }

  .grid-2,
  .grid-3,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card .card-body {
    min-height: 260px;
  }

  .header-actions .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

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