:root {
  --black: #0b0b0b;
  --soft-black: #141414;
  --gold: #d4af37;
  --gold-light: #f5d66b;
  --white: #ffffff;
  --paper: #f7f4ee;
  --muted: #6d6a64;
  --line: rgba(212, 175, 55, 0.35);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--black);
}

a {
  color: inherit;
}

.topbar {
  background: var(--black);
  color: var(--white);
  border-top: 4px solid var(--gold);
}

.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}

.tagline {
  text-decoration: none;
  color: var(--gold-light);
  font-weight: 700;
}

.top-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.top-links a {
  color: var(--white);
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.main-nav {
  min-height: 100px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 25%, var(--gold-light), var(--gold) 45%, #5a3c06);
  color: var(--black);
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 0 0 5px var(--black), 0 0 0 8px var(--gold);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 28px;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a,
.menu-toggle {
  text-decoration: none;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--black);
}

.nav-links a:hover,
.nav-cta {
  background: var(--black);
  color: var(--white) !important;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 11, 11, 0.88), rgba(11, 11, 11, 0.45)),
    radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.5), transparent 14%),
    linear-gradient(135deg, #151515 0%, #0b0b0b 50%, #31250a 100%);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 40%, rgba(255, 255, 255, 0.07) 40% 41%, transparent 41%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 90px);
}

.tool-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  transform: rotate(-18deg);
  opacity: 0.65;
}

.line-one {
  width: 520px;
  right: 8%;
  top: 150px;
}

.line-two {
  width: 680px;
  right: 20%;
  top: 300px;
}

.spark {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 30px 12px rgba(245, 214, 107, 0.9);
}

.spark-one { right: 18%; top: 135px; }
.spark-two { right: 44%; top: 288px; }
.spark-three { left: 16%; top: 200px; }

.hero-angle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 245px;
  background: var(--paper);
  clip-path: polygon(0 35%, 100% 100%, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 220px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero h1 span {
  background: var(--gold);
  color: var(--black);
  padding: 0 12px 8px;
}

.lead {
  max-width: 780px;
  margin: 28px 0 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid var(--gold);
  cursor: pointer;
  font-size: 16px;
}

.primary-button {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

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

.section-heading h2,
.split-section h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-heading p,
.split-section p,
.contact-card p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.project-card,
.info-panel,
.contact-card,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.service-card {
  padding: 24px;
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold-light);
  font-weight: 900;
}

.service-card h3,
.project-card h3,
.info-panel h3 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.service-card p,
.project-card p {
  color: var(--muted);
  line-height: 1.55;
}

.digital-card {
  display: flex;
  flex-direction: column;
}

.digital-note {
  font-size: 15px;
  line-height: 1.45 !important;
}

.text-link {
  color: var(--black);
  display: inline-flex;
  font-weight: 900;
  margin-top: auto;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--gold-dark);
}

@media (max-width: 1180px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: var(--black);
  color: var(--white);
}

.project-band .section-heading p {
  color: rgba(255,255,255,0.72);
}

.project-card {
  overflow: hidden;
  color: var(--black);
}

.project-image {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(11, 11, 11, 0.85)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 10px, transparent 10px 22px);
}

.placeholder-b {
  background:
    linear-gradient(135deg, rgba(11, 11, 11, 0.86), rgba(245, 214, 107, 0.9)),
    radial-gradient(circle, rgba(255,255,255,0.2), transparent 30%);
}

.placeholder-c {
  background:
    linear-gradient(135deg, #2d2d2d, #d4af37),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0 8px, transparent 8px 18px);
}

.app-project-image {
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(11, 11, 11, 0.92), rgba(140, 106, 15, 0.78)),
    radial-gradient(circle at 25% 20%, rgba(245, 214, 107, 0.45), transparent 34%);
}

.app-project-image img {
  width: min(52%, 170px);
  height: auto;
  object-fit: contain;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}

.website-project-image {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(11, 11, 11, 0.9), rgba(212, 175, 55, 0.82)),
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.3), transparent 28%);
}

.website-project-image span,
.website-modal-logo {
  border: 2px solid rgba(245, 214, 107, 0.75);
  border-radius: 8px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  line-height: 0.98;
  padding: 18px 20px;
  text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.website-modal-logo {
  align-items: center;
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, var(--black), #8c6a0f),
    radial-gradient(circle at 30% 20%, rgba(245, 214, 107, 0.4), transparent 30%);
  display: flex;
  justify-content: center;
  width: 112px;
}

.app-project-card {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-project-card:hover,
.app-project-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.app-project-card .text-link {
  pointer-events: none;
}

.project-modal {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}

.project-modal.open {
  display: flex;
}

.project-modal-backdrop {
  background: rgba(0, 0, 0, 0.72);
  inset: 0;
  position: absolute;
}

.project-modal-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color: var(--black);
  max-height: min(88vh, 920px);
  max-width: 1040px;
  overflow: auto;
  padding: 28px;
  position: relative;
  width: min(100%, 1040px);
}

.modal-close {
  background: var(--black);
  border: 2px solid var(--gold);
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 10px 16px;
  position: absolute;
  right: 18px;
  top: 18px;
}

.modal-heading {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 112px 1fr;
  padding-right: 120px;
}

.modal-heading img {
  border-radius: 22px;
  width: 112px;
}

.modal-heading h2 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 0 0 10px;
}

.modal-heading p {
  color: var(--muted);
  margin: 0 0 10px;
}

.modal-screenshots {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
}

.modal-screenshots img {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 440px;
  object-fit: contain;
  object-position: top;
  width: 100%;
}

.website-preview {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 238, 0.98)),
    linear-gradient(120deg, rgba(212, 175, 55, 0.22), transparent 42%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  margin: 24px 0;
  min-height: 230px;
  padding: 24px;
}

.website-preview div {
  border-bottom: 1px solid rgba(11, 11, 11, 0.12);
  margin: -4px -4px 28px;
  padding-bottom: 14px;
}

.preview-browser-dot {
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  margin-right: 6px;
  width: 10px;
}

.website-preview strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  margin-bottom: 12px;
}

.website-preview p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 18px;
  max-width: 720px;
}

.website-preview > span {
  color: #8c6a0f;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.modal-open {
  overflow: hidden;
}

.project-card div:last-child {
  padding: 24px;
}

.project-label {
  color: #8c6a0f !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
}

.info-panel,
.contact-card,
.contact-form {
  padding: 34px;
}

dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

dt {
  font-weight: 900;
  color: var(--gold);
}

dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.contact-section {
  align-items: stretch;
}

.contact-card {
  background: var(--black);
  color: var(--white);
}

.contact-card p {
  color: rgba(255,255,255,0.72);
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  font: inherit;
  background: #fffdf8;
}

textarea {
  resize: vertical;
}

button.primary-button {
  border: 0;
}

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 34px max(16px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--gold-light);
  text-underline-offset: 4px;
}

@media (max-width: 880px) {
  .topbar-inner,
  .main-nav,
  .nav-links,
  .card-grid,
  .project-grid,
  .split-section,
  .contact-section {
    display: grid;
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: static;
  }

  .modal-heading,
  .modal-screenshots {
    grid-template-columns: 1fr;
  }

  .modal-heading {
    padding-right: 0;
  }

  .modal-close {
    position: static;
    margin-bottom: 16px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 72px 0 160px;
  }

  .secondary-button {
    color: var(--white);
  }

  .card-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}
