:root {
  --bg: #0b1020;
  --bg-alt: #11192d;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --text: #ecf1f9;
  --muted: #b8c2d8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ef7d47;
  --accent-2: #f6c96b;
  --success: #4cc38a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top right, rgba(239, 125, 71, 0.12), transparent 28%),
    radial-gradient(circle at 10% 20%, rgba(246, 201, 107, 0.08), transparent 24%),
    linear-gradient(180deg, #0a0f1d 0%, #0d1324 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.site-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 88%);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 29, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  color: #fff4d9;
}

.brand-subtitle,
.eyebrow,
.card-number,
.contact-list span,
label,
.footer-links a,
.site-nav a,
.button {
  font-family: 'DM Mono', monospace;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a,
.footer-links a {
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.site-nav a:hover,
.footer-links a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero,
.section {
  padding: 5rem 0;
}

.hero {
  padding-top: 6rem;
}

.hero-grid,
.section-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid > *,
.section-grid-about > *,
.contact-grid > * {
  min-width: 0;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 3rem;
}

.hero-copy h1,
.section-heading h2,
.section-copy h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  max-width: 11ch;
  text-wrap: balance;
}

.hero-text,
.section-heading p,
.section-copy p,
.card p,
.contact-form,
.contact-list div {
  color: var(--muted);
}

.hero-text {
  max-width: 60ch;
  font-size: 1.08rem;
  margin: 1.35rem 0 1.7rem;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  margin: 0 0 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  background: linear-gradient(135deg, var(--accent), #f08f54);
  color: #1b120b;
  font-weight: 500;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.text-link {
  color: #fff4d9;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 201, 107, 0.28);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.text-link:hover {
  color: #ffffff;
  border-color: rgba(246, 201, 107, 0.62);
}

.hero-meta {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.hero-meta p {
  margin: 0;
  color: var(--muted);
}

.hero-points {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
}

.hero-points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
}

.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-card,
.card,
.contact-form,
.engagement-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  width: min(100%, 460px);
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
    rgba(12, 18, 32, 0.92);
}

.panel-eyebrow,
.brief-number,
.service-list li::before,
.form-note {
  font-family: 'DM Mono', monospace;
}

.panel-eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  margin: 0 0 1rem;
}

.hero-card h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  line-height: 1.02;
  color: #fff4d9;
}

.brief-list {
  display: grid;
  gap: 0.9rem;
}

.brief-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brief-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.brief-number {
  color: var(--accent-2);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.18rem;
}

.brief-item strong,
.engagement-card strong {
  display: block;
  color: #fff4d9;
  margin-bottom: 0.3rem;
}

.brief-item p,
.brief-note,
.engagement-card p,
.app-copy,
.app-url,
.form-note {
  margin: 0;
  color: var(--muted);
}

.brief-note {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.section-grid-about {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading h2,
.section-copy h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.engagement-list,
.cards {
  display: grid;
  gap: 1.2rem;
}

.engagement-list {
  grid-template-columns: 1fr 1fr;
}

.engagement-card,
.card {
  padding: 1.45rem;
}

.card h3 {
  display: block;
  margin-bottom: 0.55rem;
  color: #fff4d9;
  font-size: 1.05rem;
}

.engagement-card {
  background: rgba(255,255,255,0.03);
}

.card-number {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

.card {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 201, 107, 0.24);
  background: var(--panel-strong);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.service-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
}

.service-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  top: 0.02rem;
  color: var(--accent-2);
  font-size: 0.74rem;
}

.chip {
  border: 1px solid rgba(246, 201, 107, 0.28);
  color: var(--accent-2);
  background: rgba(246, 201, 107, 0.06);
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  font-size: 0.74rem;
}

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

.project-card {
  min-height: 100%;
}

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

.app-card {
  text-decoration: none;
  min-height: 210px;
  display: flex;
  flex-direction: column;
}

.app-copy {
  margin-top: auto;
  padding-top: 1rem;
}

.app-url {
  display: inline-block;
  margin-top: 0.5rem;
  word-break: break-word;
  color: #fff4d9;
  font-size: 0.92rem;
}

.contact-grid {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-list span {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  margin-right: 0.55rem;
}

.contact-form {
  padding: 1.4rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7, 11, 20, 0.72);
  color: var(--text);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(246, 201, 107, 0.65);
  box-shadow: 0 0 0 4px rgba(246, 201, 107, 0.08);
}

.form-note {
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.14);
}

.footer-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.banner {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(12, 18, 31, 0.95);
  box-shadow: var(--shadow);
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.banner.success { color: #a5e7c3; }
.banner.error { color: #ffb4a3; }

@media (max-width: 980px) {
  .hero-grid,
  .section-grid-about,
  .contact-grid,
  .cards-3,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel { justify-content: flex-start; }

  .engagement-list,
  .apps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    min-width: 220px;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10, 15, 29, 0.97);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .hero,
  .section { padding: 4rem 0; }

  .hero { padding-top: 5rem; }

  .engagement-list,
  .apps-grid,
  .footer-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-wrap {
    justify-content: initial;
    padding: 1.1rem 0;
  }

  .hero-copy h1 {
    max-width: 8ch;
    font-size: clamp(2.45rem, 13vw, 3.7rem);
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    gap: 0.5rem;
  }

  .hero-card {
    padding: 1.25rem;
  }

  .hero-card h2 {
    font-size: 1.55rem;
  }
}
