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

:root {
  --bg: #050607;
  --bg-elevated: #0b0d10;
  --bg-card: rgba(16, 19, 24, 0.86);
  --panel: #11151b;
  --panel-strong: #171c23;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #d7ff38;
  --accent-2: #20dfaa;
  --accent-3: #7dd3fc;
  --text: #f6f7f2;
  --muted: #a8b0bc;
  --soft: #727b88;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 72px;
  --section-px: clamp(1rem, 4vw, 2.75rem);
  --section-y: clamp(3rem, 7vw, 5.8rem);
}

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;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #070809 0%, #0c1014 48%, #050607 100%);
  background-size: 78px 78px, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(215, 255, 56, 0.1), transparent 28%),
    linear-gradient(245deg, rgba(32, 223, 170, 0.08), transparent 34%);
}

main {
  width: 100%;
}

h1,
h2,
h3,
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

a {
  color: inherit;
}

code {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.section-block {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: var(--section-y) var(--section-px);
}

.section-head {
  max-width: 48rem;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.8rem;
  font-size: 2.5rem;
  color: var(--text);
}

.section-head--contact {
  margin-bottom: 2rem;
}

.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  padding-left: max(var(--section-px), calc((100vw - 1240px) / 2 + var(--section-px)));
  padding-right: max(var(--section-px), calc((100vw - 1240px) / 2 + var(--section-px)));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.82);
  backdrop-filter: blur(18px);
}

.logo {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.52rem 0.72rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-links a[href$="tesla.html"],
.nav-links a[href$="index.html"] {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-links a:focus-visible,
.button:focus-visible,
.social-chip:focus-visible,
.hero-direct-links a:focus-visible,
.hero-project:focus-visible,
.hero-screen:focus-visible,
.site-gallery-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  z-index: 101;
}

.burger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.burger-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

/* Hero */
.hero {
  position: relative;
  width: min(100%, 1240px);
  min-height: min(860px, calc(100svh - var(--header-h)));
  padding-top: clamp(2rem, 4.5vw, 4rem);
  padding-bottom: clamp(4rem, 7vw, 5.5rem);
  display: grid;
  align-items: center;
  animation: fadeInUp 0.7s ease both;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hero-copy {
  text-align: left;
  padding-top: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0.38rem 0.8rem;
  margin: 0 0 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(215, 255, 56, 0.34);
  color: var(--accent);
  background: rgba(215, 255, 56, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1.2rem;
  max-width: 13.8ch;
  color: var(--text);
  font-size: clamp(3.25rem, 4.9vw, 4.55rem);
}

.hero h1 span {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 1.65rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.hero-direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.hero-direct-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.3rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-direct-links a::after {
  content: ">";
  color: var(--accent);
}

.hero-direct-links a:hover {
  color: var(--text);
  border-color: rgba(215, 255, 56, 0.34);
  background: rgba(215, 255, 56, 0.08);
}

.hero-hint {
  min-height: 1.5em;
  margin: 0.9rem 0 0;
  color: var(--soft);
  font-size: 0.94rem;
}

.hero-visual {
  position: relative;
  display: grid;
  align-self: start;
  gap: 0.8rem;
  min-height: 0;
  padding: 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 80%);
}

.hero-visual-top,
.hero-project,
.hero-screen,
.hero-thumb-row,
.hero-metrics {
  position: relative;
  z-index: 1;
}

.hero-visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-screen {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: rgba(5, 6, 7, 0.62);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.hero-screen--main {
  aspect-ratio: 16 / 8.3;
}

.hero-screen--main img {
  object-fit: contain;
  object-position: center;
  background: #050607;
}

.hero-screen--tesla-photo img,
.site-gallery-card--tesla-photo img,
.site-gallery-card--restaurant-photo img,
.project-media--tesla-photo img,
.project-media--restaurant-photo img {
  object-position: center;
}

.hero-screen::after,
.site-gallery-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.hero-screen span {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  z-index: 1;
  display: inline-flex;
  padding: 0.36rem 0.62rem;
  border-radius: var(--radius-pill);
  color: #050607;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-screen:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 255, 56, 0.42);
  background-color: rgba(255, 255, 255, 0.06);
}

.hero-thumb-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-thumb-row .hero-screen {
  margin-bottom: 0;
}

.hero-thumb-row .hero-screen span {
  font-size: 0.72rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0;
}

.hero-metrics p {
  margin: 0;
  min-height: 86px;
  padding: 0.9rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.hero-metrics span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}


.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 2.5vw, 1.6rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transform: translateX(-50%);
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.scroll-cue i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
}

.scroll-cue:hover {
  color: var(--text);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button-primary {
  color: #050607;
  background: var(--accent);
  box-shadow: 0 16px 36px rgba(215, 255, 56, 0.18);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(215, 255, 56, 0.24);
}

.button-outline {
  color: var(--text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.24);
}

.button-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 255, 56, 0.42);
  background: rgba(215, 255, 56, 0.07);
}

.button-ghost {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.button-ghost:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.about-portrait {
  text-align: center;
}

.avatar-ring {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 255, 56, 0.34);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(215, 255, 56, 0.15), transparent),
    #0a0d10;
}

.avatar-initials {
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 900;
}

.about-name {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.about-role {
  margin: 0.2rem 0 0;
  color: var(--soft);
  font-size: 0.9rem;
}

.about-content h2 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 2rem;
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about-content strong {
  color: var(--text);
}

.about-freelance {
  margin-top: 1.1rem !important;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.skip-link {
  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:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.72rem 1rem;
  clip: auto;
  overflow: visible;
  border-radius: var(--radius-md);
  color: #050607;
  background: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.about-content--discord {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.about-content--discord h2 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 2rem;
}

.about-content--discord p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about-content--discord p:last-child {
  margin-bottom: 0;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 250px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.service-num {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-md);
  color: #050607;
  background: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
}

.service-card h3 {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 1.35rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.price-card,
.comp-card,
.workflow-step,
.divers-card,
.contact-form,
.contact-aside,
.legal-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.price-card {
  position: relative;
  padding: 1.5rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.price-card:hover,
.service-card:hover,
.comp-card:hover,
.project-card:hover,
.divers-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 255, 56, 0.34);
}

.price-card h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1.22rem;
}

.price {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 900;
}

.price-card ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
}

.price-card li {
  margin-bottom: 0.45rem;
}

.popular {
  border-color: rgba(215, 255, 56, 0.42);
  background:
    linear-gradient(180deg, rgba(215, 255, 56, 0.08), rgba(255, 255, 255, 0.02)),
    var(--bg-card);
}

.price-badge {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.32rem 0.55rem;
  border-radius: var(--radius-md);
  color: #050607;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* Skills */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.comp-card {
  padding: 1.25rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.comp-card h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1.08rem;
}

.comp-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Workflow */
.workflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-step {
  padding: 1.2rem;
}

.workflow-step h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.workflow-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  color: #050607;
  background: var(--accent);
  font-size: 0.85rem;
  font-weight: 900;
}

.workflow-note {
  max-width: 42rem;
  margin: 1.7rem auto 0;
  color: var(--soft);
  text-align: center;
  font-size: 0.92rem;
}

/* Portfolio */
.site-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.site-gallery-card {
  position: relative;
  display: block;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.site-gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 255, 56, 0.34);
}

.site-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.site-gallery-card--tesla-photo img {
  filter: saturate(1.05) contrast(1.02);
}

.site-gallery-card--restaurant-photo img {
  filter: brightness(0.9) saturate(1.08) contrast(1.03);
}

.site-gallery-card span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: block;
}

.site-gallery-card strong,
.site-gallery-card small {
  display: block;
}

.site-gallery-card strong {
  font-size: 1.1rem;
  line-height: 1.15;
}

.site-gallery-card small {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.project-grid {
  display: grid;
  gap: 1.2rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.project-card--reverse .project-media {
  order: 2;
}

.project-media {
  position: relative;
  min-height: 340px;
  margin: 0;
  background: #08090a;
  overflow: hidden;
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.project-media--tesla-photo img {
  filter: brightness(0.78) saturate(1.08) contrast(1.04);
}

.project-media--restaurant-photo img {
  filter: brightness(0.72) saturate(1.12) contrast(1.05);
}

.project-media--tesla-photo::after,
.project-media--restaurant-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 62%);
}

.project-photo-caption {
  position: absolute;
  inset: 1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 22rem;
  color: var(--text);
}

.project-photo-badge {
  width: fit-content;
  margin-bottom: 0.65rem;
  padding: 0.32rem 0.58rem;
  border-radius: var(--radius-pill);
  color: #050607;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-photo-caption strong,
.project-photo-caption small {
  display: block;
}

.project-photo-caption strong {
  font-size: 3rem;
  line-height: 1;
}

.project-photo-caption small {
  margin-top: 0.55rem;
  color: rgba(246, 247, 242, 0.84);
  font-size: 1rem;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.6rem;
  text-align: left;
}

.project-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-body h3 {
  margin: 0;
  color: var(--text);
  font-size: 2rem;
}

.project-brief {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin: 0;
}

.tech-tag {
  display: inline-flex;
  padding: 0.28rem 0.52rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-actions {
  margin-top: auto;
  padding-top: 0.6rem;
}

/* Other work */
.divers-grid {
  display: flex;
  justify-content: center;
}

.divers-card {
  width: min(100%, 30rem);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.divers-card h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.divers-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.45rem;
}

.contact-form label {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(5, 6, 7, 0.7);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: rgba(215, 255, 56, 0.42);
}

.label-hint {
  color: var(--soft);
  font-weight: 500;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
}

.form-note {
  margin: 0;
  color: var(--soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.form-note a,
.legal-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-aside {
  padding: 1.45rem;
}

.aside-title {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-weight: 900;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.social-chip {
  display: inline-flex;
  padding: 0.52rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
}

.social-chip:hover {
  border-color: rgba(215, 255, 56, 0.42);
  background: rgba(215, 255, 56, 0.07);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--section-px) 2rem;
  background: rgba(5, 6, 7, 0.82);
}

.footer-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner > p {
  margin: 0;
  color: var(--soft);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* Legal pages */
.legal-main {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 3rem var(--section-px) 4rem;
}

.legal-card {
  padding: 1.7rem;
}

.legal-card h1 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 2.15rem;
}

.legal-card h2 {
  margin: 2rem 0 0.5rem;
  color: var(--text);
  font-size: 1.22rem;
}

.legal-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.legal-lead {
  color: var(--soft) !important;
}

/* Discord / legacy inner pages */
.panels {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: var(--section-y) var(--section-px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel {
  width: min(100%, 20rem);
  padding: 1.35rem;
}

.panel h2 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1.18rem;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (min-width: 1500px) {
  .section-block {
    width: min(100%, 1240px);
  }

  .hero {
    width: min(100%, 1280px);
    min-height: 820px;
  }

  .hero-grid {
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1fr);
    gap: 4.25rem;
  }

  .hero h1 {
    max-width: 13.8ch;
    font-size: 4.45rem;
  }

  .hero-lead {
    max-width: 38rem;
  }

  .site-gallery-card,
  .site-gallery-card img {
    min-height: 350px;
  }
}

@media (min-width: 1900px) {
  .hero {
    min-height: 800px;
  }
}

/* Responsive */
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 13.8ch;
  }

  .hero-visual {
    width: min(100%, 760px);
    margin: 0 auto;
  }

  .pricing-grid,
  .service-grid,
  .site-gallery,
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 960px) {
  .navbar:not(.navbar--simple) .burger-btn {
    display: block;
  }

  .navbar:not(.navbar--simple) .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 1px);
    right: var(--section-px);
    left: var(--section-px);
    max-width: 24rem;
    margin-left: auto;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(5, 6, 7, 0.97);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .navbar:not(.navbar--simple) .nav-links.active {
    display: flex;
  }

  .navbar:not(.navbar--simple) .nav-links a {
    padding: 0.82rem;
    text-align: center;
  }

  .navbar--simple .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: none;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .about-layout,
  .contact-layout,
  .site-gallery,
  .project-card {
    grid-template-columns: 1fr;
  }

  .about-layout {
    text-align: center;
  }

  .project-card--reverse .project-media {
    order: 0;
  }

  .project-media,
  .project-media img {
    min-height: 260px;
  }

  .site-gallery-card,
  .site-gallery-card img {
    min-height: 260px;
  }
}


@media (max-width: 760px) {
  :root {
    --section-px: clamp(1rem, 5vw, 1.35rem);
    --section-y: 3.25rem;
  }

  .navbar {
    min-height: 64px;
  }

  .hero {
    min-height: auto;
    padding-top: 2.4rem;
    padding-bottom: 5rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-visual {
    padding: 0.7rem;
  }

  .hero-visual-top {
    font-size: 0.72rem;
  }

  .site-gallery-card,
  .site-gallery-card img,
  .project-media,
  .project-media img {
    min-height: 230px;
  }

  .project-body,
  .contact-form,
  .contact-aside,
  .about-layout,
  .service-card,
  .price-card,
  .comp-card,
  .workflow-step {
    padding: 1.15rem;
  }
}

@media (max-width: 640px) {
  .section-head h2 {
    font-size: 2rem;
  }

  .hero-copy {
    text-align: left;
  }

  .hero h1 {
    max-width: 12.8ch;
    font-size: 2.55rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions,
  .hero-direct-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .hero-direct-links a {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
  }

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

  .hero-thumb-row {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .pricing-grid,
  .service-grid,
  .site-gallery,
  .comp-grid,
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .project-body h3,
  .about-content h2,
  .legal-card h1 {
    font-size: 1.8rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}


@media (max-width: 420px) {
  .logo {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-direct-links a,
  .button {
    min-height: 2.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-metrics p {
    min-height: auto;
  }

  .scroll-cue {
    bottom: 0.85rem;
  }
}
