:root {
  --bg: #efefef;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #646464;
  --accent: #ff0606;
  --accent-soft: rgba(255, 6, 6, 0.14);
  --line: rgba(17, 17, 17, 0.08);
  --shadow: 0 30px 80px rgba(255, 6, 6, 0.1);
  --radius-xl: 34px;
  --radius-lg: 26px;
}

body[data-theme="dark"] {
  --bg: #0f1014;
  --paper: #17181d;
  --ink: #f4f4f6;
  --muted: #b6b6be;
  --accent: #ff5b5b;
  --accent-soft: rgba(255, 91, 91, 0.18);
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.page-shell {
  width: min(100% - 2rem, 58rem);
  margin: 4rem auto;
  padding: 0 0 4rem;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.03);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.page-shell::before {
  display: none;
}

.page-shell::after {
  display: none;
}

body[data-theme="dark"] .page-shell,
body[data-theme="dark"] .footer-panel,
body[data-theme="dark"] .contact-panel,
body[data-theme="dark"] .lead-modal,
body[data-theme="dark"] .admin-stat,
body[data-theme="dark"] .admin-table-wrap,
body[data-theme="dark"] .projects-showcase,
body[data-theme="dark"] .tool-card,
body[data-theme="dark"] .tools-grid div,
body[data-theme="dark"] .trusted-grid div {
  background: var(--paper);
}

body[data-theme="dark"] .nav-cta,
body[data-theme="dark"] .hero-cta,
body[data-theme="dark"] .contact-form button,
body[data-theme="dark"] .modal-secondary {
  border-color: transparent;
}

body[data-theme="dark"] .nav-cta,
body[data-theme="dark"] .hero-cta,
body[data-theme="dark"] .contact-form button {
  background: var(--accent);
  color: #ffffff;
}

body[data-theme="dark"] .contact-form input,
body[data-theme="dark"] .contact-form textarea,
body[data-theme="dark"] .lead-form input,
body[data-theme="dark"] .lead-form textarea,
body[data-theme="dark"] .footer-input input {
  background: #202028;
  color: var(--ink);
  border-color: var(--line);
}

.topbar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 1.2rem 2.1rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  position: static;
}

body[data-theme="dark"] .topbar {
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #111111, var(--accent));
  color: #fff;
  font-family: "Arial Narrow", "Aptos Display", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 5.5rem;
  min-height: 2.6rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.theme-icon-sun {
  background: #fff1b5;
}

.theme-icon-moon {
  opacity: 0.45;
}

body[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .theme-icon-sun {
  background: transparent;
  color: var(--muted);
  opacity: 0.45;
}

body[data-theme="dark"] .theme-icon-moon {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.theme-icon img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
}

.nav a {
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.05rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav-cta,
.hero-cta,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-export,
.modal-primary,
.modal-secondary {
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-primary {
  border: 1px solid var(--ink);
  background: var(--accent);
  color: #fff;
}

.modal-secondary {
  border: 1px solid var(--ink);
  background: #fff;
}

.hero {
  padding: 3.5rem 2.25rem 5rem;
  text-align: center;
  position: relative;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9) 46%, rgba(255, 255, 255, 0.82) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.55;
  transform: perspective(1200px) rotateX(60deg) scale(1.4);
  transform-origin: center top;
  mask-image: linear-gradient(180deg, black 0%, black 62%, transparent 100%);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

body[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 50% 16%, rgba(34, 34, 42, 0.98), rgba(22, 22, 28, 0.95) 46%, rgba(16, 16, 22, 0.92) 100%);
}

body[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

.hero-kicker,
.section-label {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Arial Narrow", "Aptos Display", sans-serif;
}

h1 {
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

h2 span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

h3 {
  font-size: 1.15rem;
}

p,
li,
input,
textarea,
button {
  font-size: 1rem;
  line-height: 1.7;
}

.hero-copy {
  width: min(100%, 37rem);
  margin: 1.25rem auto 0;
  color: var(--muted);
}

.hero-cta {
  margin-top: 1.2rem;
}

.hero-visual {
  position: relative;
  height: 31rem;
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 220ms ease-out;
}

.about,
.services,
.contact {
  padding: 4rem 2.25rem;
}

.about-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: end;
}

.about-copy {
  color: var(--ink);
  font-size: 1.05rem;
}

.about-lead {
  margin: 1.2rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.feature-grid,
.services-grid,
.project-cards,
.tools-grid,
.trusted-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature p,
.service p {
  color: var(--muted);
  margin-bottom: 0;
}

.feature,
.service,
.project-card,
.tool-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.feature:hover,
.service:hover,
.project-card:hover,
.tool-card:hover {
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.08);
}

.skill-strip {
  overflow: hidden;
  background: #202020;
  color: #fff;
  padding: 1.1rem 0;
}

.skill-strip-track {
  display: flex;
  gap: 1.8rem;
  width: max-content;
  animation: drift 24s linear infinite;
  font-family: "Arial Narrow", "Aptos Display", sans-serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.skill-strip-track span::after {
  content: "+";
  margin-left: 1.8rem;
  color: var(--accent);
}

.tools-section,
.projects-showcase,
.trusted-section {
  padding: 4rem 2.25rem;
}

.projects-showcase {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #fffafa);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.05);
}

.tools-section {
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 6, 6, 0.08), transparent 18%),
    radial-gradient(circle at 80% 25%, rgba(255, 210, 120, 0.2), transparent 20%),
    #fbfbfb;
  text-align: center;
}

.tools-label {
  margin: 0;
  color: #111111;
}

.tools-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.tools-grid div,
.trusted-grid div {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  font-weight: 700;
}

.tool-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 5.25rem;
  border-radius: 1rem;
}

.tool-icon {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  color: #fff;
  font-family: "Arial Narrow", "Aptos Display", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.tool-logo {
  max-width: 9.5rem;
  max-height: 2.8rem;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.tool-pr {
  background: linear-gradient(135deg, #2b003a, #8f2bff);
}

.tool-ps {
  background: linear-gradient(135deg, #001e36, #2aa9ff);
}

.tool-corel {
  background: linear-gradient(135deg, #0d5c2a, #4dcf6d);
}

.tool-ai {
  background: linear-gradient(135deg, #3a1700, #ff8a00);
}

.tool-figma {
  background: linear-gradient(180deg, #ff5f57 0 33%, #ffbd2e 33% 66%, #28c840 66% 100%);
}

.tool-ae {
  background: linear-gradient(135deg, #1a0b3d, #8b72ff);
}

.band {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.band-work {
  min-height: 35rem;
  display: grid;
  align-items: end;
  background:
    radial-gradient(circle at 20% 20%, rgba(120, 0, 80, 0.2), transparent 18%),
    radial-gradient(circle at 78% 18%, rgba(255, 196, 0, 0.28), transparent 22%),
    linear-gradient(135deg, #460045 0%, #8d0036 28%, #ff3a1a 62%, #ffc233 100%);
}

.band-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2.25rem 2rem;
  color: #fff;
}

.band-content .section-label {
  color: rgba(255, 255, 255, 0.85);
}

.band-content h2 {
  max-width: 11ch;
}

.work-metrics {
  margin-top: 1.45rem;
  overflow: hidden;
  margin-left: -2.25rem;
  margin-right: -2.25rem;
  padding: 0.4rem 0;
  display: grid;
  gap: 0.85rem;
}

.metrics-track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: metrics-drift 24s linear infinite;
  will-change: transform;
}


.metrics-track-reverse {
  animation-name: metrics-drift-reverse;
  animation-duration: 26s;
}

.metric-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  white-space: nowrap;
  min-width: 14rem;
  min-height: 5.2rem;
  padding: 1rem 1.15rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.metric-pill strong {
  font-family: "Arial Narrow", "Aptos Display", sans-serif;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-pill em {
  font-style: normal;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

.work-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.work-list strong {
  display: block;
  font-size: 1rem;
}

.work-list span {
  display: block;
  opacity: 0.85;
  margin-top: 0.2rem;
}

.band-art {
  position: absolute;
  inset: auto 2rem -6rem auto;
  width: 23rem;
  height: 23rem;
  z-index: 1;
}

.band-card {
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.02)),
    linear-gradient(145deg, #150015, rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transform: rotate(-18deg);
}

.band-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
  transform: rotate(-18deg);
}

.showcase-head {
  max-width: 34rem;
}

.project-cards {
  align-items: start;
}

.project-card {
  display: grid;
  grid-template-rows: 18rem minmax(4.6rem, auto) minmax(4.8rem, auto) auto;
  gap: 1rem;
}

.project-thumb {
  min-height: 18rem;
  height: 18rem;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.08);
}

.thumb-image img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  display: block;
}

.thumb-two {
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.92), rgba(35, 35, 35, 0.96)),
    #111;
  position: relative;
}

.thumb-two::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 6rem;
  height: 10rem;
  border-radius: 1.2rem;
  background:
    linear-gradient(145deg, #f3f3f3, #d7d7d7);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.thumb-three {
  background:
    radial-gradient(circle at 72% 26%, rgba(186, 0, 255, 0.95), transparent 24%),
    linear-gradient(145deg, #f5f0f7, #ffffff 60%);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-content: start;
}

.project-tags span {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1;
  background: #fff;
  color: var(--muted);
}

.services-head {
  max-width: 42rem;
}

.service {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  display: block;
  margin: 0.35rem 0 0.8rem;
}

body[data-theme="dark"] .service-icon {
  filter: brightness(0) invert(1);
}

.service-number {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.trusted-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 6, 6, 0.1), transparent 22%),
    #fff;
}

.trusted-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}

.trusted-title,
.trusted-copy {
  color: #111111 !important;
}

.trusted-head p:last-child,
.trusted-copy {
  max-width: 24rem;
}

body[data-theme="dark"] .trusted-title,
body[data-theme="dark"] .trusted-copy {
  color: #111111 !important;
}

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

.cta-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  min-height: 24rem;
  margin: 0 0 0;
  background:
    linear-gradient(135deg, #55004e 0%, #9d005a 34%, #ff5a1f 70%, #ffd23f 100%);
  color: #fff;
}

.cta-copy {
  padding: 3.5rem 2.25rem;
  align-self: center;
}

.cta-copy .section-label,
.cta-copy p {
  color: rgba(255, 255, 255, 0.9);
}

.cta-band-button {
  border-color: rgba(255, 255, 255, 0.8);
  background: transparent;
  color: #fff;
}

.cta-portrait {
  min-height: 24rem;
  background:
    radial-gradient(circle at 58% 28%, rgba(255, 180, 40, 0.9), transparent 12%),
    radial-gradient(circle at 65% 20%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.12));
  position: relative;
}

.cta-portrait::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 0;
  width: 58%;
  height: 92%;
  border-radius: 10rem 10rem 0 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 120, 0, 0.9), transparent 10%),
    linear-gradient(135deg, rgba(4, 0, 55, 0.9), rgba(17, 5, 80, 0.7) 35%, rgba(17, 17, 17, 0.25) 100%);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.06);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 6, 6, 0.1), transparent 20%),
    linear-gradient(180deg, #fff, #fffafa);
}

.contact-mail {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(17, 17, 17, 0.52);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 100;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lead-modal {
  position: relative;
  width: min(100%, 36rem);
  padding: 2rem;
  border-radius: 1.75rem;
  background: linear-gradient(180deg, #fff, #fff8f8);
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(17, 17, 17, 0.16);
}

.lead-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.lead-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.lead-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  cursor: pointer;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-shell {
  width: min(100% - 2rem, 70rem);
  margin: 3rem auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.05em;
}

.admin-header p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

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

.admin-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-stat,
.admin-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.05);
}

.admin-stat {
  padding: 1.4rem 1.5rem;
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-stat strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.8rem;
  line-height: 1.1;
}

.admin-table-wrap {
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-auth,
.admin-section-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.05);
}

.admin-auth,
.admin-section-card {
  padding: 1.5rem;
}

.admin-auth {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-auth label,
.admin-form label,
.project-editor label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-auth input,
.admin-form input,
.admin-form textarea,
.project-editor input,
.project-editor textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.admin-section-card h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.project-editors {
  display: grid;
  gap: 1rem;
}

.project-editor {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.admin-message {
  min-height: 1.5rem;
  color: var(--accent);
  margin: 0.75rem 0 0;
}

body[data-theme="dark"] .admin-auth,
body[data-theme="dark"] .admin-section-card,
body[data-theme="dark"] .admin-auth input,
body[data-theme="dark"] .admin-form input,
body[data-theme="dark"] .admin-form textarea,
body[data-theme="dark"] .project-editor,
body[data-theme="dark"] .project-editor input,
body[data-theme="dark"] .project-editor textarea,
body[data-theme="dark"] .admin-table {
  background: var(--paper);
  color: var(--ink);
}

.site-footer {
  padding: 0 2.25rem 2rem;
}

.footer-panel {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 2rem;
  padding: 2.2rem 2rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
}

.footer-brand,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.footer-right {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 1rem;
}

.footer-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.footer-brand h3 {
  font-size: 1.1rem;
  margin: 0;
}

.footer-brand p,
.footer-contact p {
  margin: 0;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.1rem;
  align-items: center;
  align-content: center;
  justify-content: flex-end;
  padding-top: 0.3rem;
  width: 100%;
}

.footer-nav a {
  font-weight: 700;
}

.footer-socials {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  border: 0;
}

.social-icon svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon .fill {
  fill: #ffffff;
  stroke: none;
}

.social-icon img {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
  display: block;
}


.placeholder {
  opacity: 0.58;
}

.follow-copy {
  font-size: 1rem;
}

.footer-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  min-width: 18rem;
}

.footer-input input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font: inherit;
  background: transparent;
}

.footer-input button {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

body[data-theme="dark"] .trusted-head p,
body[data-theme="dark"] .trusted-grid div,
body[data-theme="dark"] .tool-name {
  color: var(--ink);
}

body[data-theme="dark"] .tools-label {
  color: #111111;
}

@media (max-width: 900px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand theme cta"
      "nav nav nav";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .nav {
    grid-area: nav;
    justify-content: flex-start;
    width: 100%;
    gap: 0.85rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  .theme-toggle {
    grid-area: theme;
    justify-self: end;
    min-width: 4.8rem;
  }

  .nav-cta {
    grid-area: cta;
    align-self: center;
    justify-self: end;
    white-space: nowrap;
    padding-inline: 0.9rem;
  }

  .page-shell {
    width: min(100% - 1rem, 58rem);
    margin: 0.5rem auto 5rem;
  }

  .topbar,
  .about,
  .services,
  .contact,
  .tools-section,
  .projects-showcase,
  .trusted-section,
  .hero,
  .band-content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .topbar,
  .about-head,
  .contact-panel,
  .admin-header,
  .admin-summary,
  .feature-grid,
  .services-grid,
  .project-cards,
  .trusted-head,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: start;
  }

  .band-art {
    display: none;
  }

  .trusted-head {
    display: grid;
    align-items: start;
  }

  .work-metrics {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }

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

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

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand theme cta"
      "nav nav nav";
    align-items: center;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-logo {
    width: 2.1rem;
    height: 2.1rem;
  }

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

  .theme-toggle {
    min-width: 4.2rem;
    min-height: 2.35rem;
    padding: 0.25rem;
  }

  .theme-icon {
    width: 1.7rem;
    height: 1.7rem;
  }

  .theme-icon img {
    width: 0.9rem;
    height: 0.9rem;
  }

  .nav-cta {
    min-height: 2.35rem;
    font-size: 0.68rem;
    padding: 0.55rem 0.75rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual {
    order: -1;
    width: 100%;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  .hero-visual {
    height: 24rem;
  }

  .site-footer {
    padding: 0 1.25rem 1.5rem;
  }

  .lead-modal {
    padding: 1.25rem;
  }

  .social-icon {
    width: 2rem;
    height: 2rem;
  }

  .footer-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .footer-right {
    justify-items: start;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .footer-input {
    min-width: 0;
    width: 100%;
  }

  .skill-strip-track {
    font-size: 1.05rem;
  }

  .tools-grid,
  .trusted-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .skill-strip-track {
    animation: none;
  }

  .feature,
  .service,
  .project-card,
  .tool-card,
  .hero-visual img,
  .nav a::after {
    transition: none;
  }
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes metrics-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes metrics-drift-reverse {
  from {
    transform: translateX(-25%);
  }
  to {
    transform: translateX(0);
  }
}
