:root {
  color-scheme: dark;
  --black: #000;
  --ink: #050607;
  --panel: rgba(10, 12, 13, 0.9);
  --line: rgba(216, 242, 239, 0.14);
  --white: #fff;
  --text: #eefdfb;
  --muted: #a1b2b4;
  --aqua: #83efd8;
  --cyan: #52d9ff;
  --amber: #f6b84b;
  --coral: #ff7a78;
  --radius: 7px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--black);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

::selection {
  background: rgba(131, 239, 216, 0.28);
  color: var(--white);
}

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

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(22px);
}

.nav-shell {
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.logo-frame {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--black);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.55);
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  color: #89989c;
  font-size: 0.72rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  color: #c2ccce;
  font-size: 0.86rem;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--aqua);
}

.nav-action {
  display: inline-flex;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(131, 239, 216, 0.36);
  border-radius: var(--radius);
  background: rgba(131, 239, 216, 0.08);
  padding: 0 16px;
  color: var(--aqua);
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease;
}

.nav-action:hover {
  border-color: rgba(131, 239, 216, 0.72);
  background: rgba(131, 239, 216, 0.13);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 68px);
  overflow: hidden;
  background: var(--black);
}

.hero-media,
.hero-slide,
.hero-overlay,
.hero-grid-pulse,
.hero-scanline,
.hero-fade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-image: url("../images/hero-ai-platform.png");
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.08);
  animation: heroSlide 18s ease-in-out infinite;
}

.hero-slide-one {
  background-position: 50% 50%;
  opacity: 1;
}

.hero-slide-two {
  background-position: 58% 50%;
  animation-delay: 6s;
}

.hero-slide-three {
  background-position: 42% 50%;
  animation-delay: 12s;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.73) 44%, rgba(0, 0, 0, 0.34) 74%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-grid-pulse {
  background-image:
    linear-gradient(rgba(131, 239, 216, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 239, 216, 0.08) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, black, transparent 68%);
  opacity: 0.35;
  animation: heroGridPulse 8s ease-in-out infinite;
}

.hero-scanline {
  right: 0;
  bottom: auto;
  height: 94px;
  background: linear-gradient(to bottom, transparent, rgba(131, 239, 216, 0.16), transparent);
  opacity: 0.46;
  animation: heroScanline 5.5s ease-in-out infinite;
}

.hero-fade {
  top: auto;
  height: 230px;
  background: linear-gradient(to top, var(--black), transparent);
}

.hero-shell {
  position: relative;
  display: flex;
  min-height: calc(100svh - 68px);
  align-items: center;
  padding-block: 70px;
}

.hero-content {
  max-width: 870px;
}

.hero-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  border: 1px solid rgba(131, 239, 216, 0.26);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.56);
  padding: 9px 12px;
  color: #c2ccce;
  font-size: 0.86rem;
  backdrop-filter: blur(18px);
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #718084;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--white);
  font-size: 3rem;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

.hero-copy {
  max-width: 710px;
  margin: 24px 0 0;
  color: #c2ccce;
  font-size: 1.1rem;
  line-height: 1.8;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  padding: 0 20px;
  font-size: 0.88rem;
  font-weight: 750;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  border: 1px solid var(--aqua);
  background: var(--aqua);
  color: #021311;
  box-shadow: 0 0 42px rgba(131, 239, 216, 0.16);
}

.button-primary:hover {
  border-color: var(--cyan);
  background: var(--cyan);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.54);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.button-secondary:hover {
  border-color: rgba(131, 239, 216, 0.6);
  color: var(--aqua);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.stat {
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.6);
  padding: 14px;
  color: #eff5f5;
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(18px);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
}

.slider-dots > span {
  width: 48px;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.slider-dots i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--aqua);
  transform-origin: left;
  animation: heroDotFill 18s linear infinite;
  animation-delay: var(--delay);
}

.section {
  position: relative;
  z-index: 1;
  padding-block: 92px;
  background: var(--black);
}

.section-header {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-header-center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--aqua);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-header h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: 2.9rem;
  font-weight: 660;
  line-height: 1.1;
  text-wrap: balance;
}

.section-copy {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.premium-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.022)),
    var(--panel);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
}

.premium-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(131, 239, 216, 0.13), transparent 34%, rgba(246, 184, 75, 0.08));
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.premium-card:hover::before {
  opacity: 1;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 34px;
}

.about-card {
  padding: 30px;
}

.about-card > p {
  position: relative;
  margin-bottom: 0;
  color: #d6dddd;
  font-size: 1.08rem;
  line-height: 1.95;
}

.mini-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.mini-panel,
.ai-item,
.tag-row span,
.tag-cloud span {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.mini-panel {
  padding: 14px;
  color: #d6dddd;
  font-size: 0.84rem;
  font-weight: 700;
}

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

.service-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 22px;
}

.service-card > * {
  position: relative;
}

.icon-label {
  display: inline-flex;
  width: 48px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(131, 239, 216, 0.3);
  border-radius: var(--radius);
  background: rgba(131, 239, 216, 0.08);
  color: var(--aqua);
  font-size: 0.7rem;
  font-weight: 850;
}

.service-card h3,
.work-card h3,
.process-card h3,
.reason-card h3 {
  color: var(--white);
  font-weight: 680;
}

.service-card h3 {
  margin: 20px 0 0;
  font-size: 1.17rem;
  line-height: 1.35;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 9px;
}

.check-list li span {
  flex: 0 0 auto;
  color: var(--aqua);
}

.text-link {
  margin-top: auto;
  padding-top: 24px;
  color: var(--aqua);
  font-size: 0.86rem;
  font-weight: 750;
}

.ai-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 34px;
  align-items: start;
}

.ai-card,
.contact-form {
  padding: 28px;
}

.ai-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-item {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: #d6dddd;
  font-size: 0.86rem;
  font-weight: 650;
}

.ai-item span {
  color: var(--amber);
  font-size: 1.25rem;
}

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

.work-card {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 22px;
  padding: 24px;
}

.work-card > * {
  position: relative;
}

.work-visual {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(131, 239, 216, 0.16), rgba(255, 255, 255, 0.04) 46%, rgba(246, 184, 75, 0.11));
  padding: 16px;
}

.work-visual strong {
  margin-bottom: auto;
  color: var(--aqua);
  font-size: 0.84rem;
}

.work-visual span {
  width: 78px;
  height: 7px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
}

.work-visual span:nth-of-type(1) {
  width: 68px;
  background: rgba(131, 239, 216, 0.58);
}

.work-visual span:nth-of-type(3) {
  width: 52px;
  background: rgba(246, 184, 75, 0.6);
}

.work-card h3 {
  margin-bottom: 18px;
  font-size: 1.45rem;
  line-height: 1.3;
}

.work-card dl {
  margin: 0;
}

.work-card dt {
  margin-top: 14px;
  color: var(--white);
  font-size: 0.83rem;
  font-weight: 750;
}

.work-card dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.tag-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-row {
  margin-top: 18px;
}

.tag-row span,
.tag-cloud span {
  padding: 8px 11px;
  color: #d8e1e1;
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-cloud {
  justify-content: center;
}

.tag-cloud span {
  padding: 10px 14px;
  font-size: 0.86rem;
}

.code-section {
  background: #020303;
}

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

.code-card {
  padding: 22px;
}

.code-card:first-child {
  grid-column: 1 / -1;
}

.code-card > * {
  position: relative;
}

.code-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.code-language {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(131, 239, 216, 0.28);
  border-radius: 5px;
  background: rgba(131, 239, 216, 0.08);
  padding: 0 9px;
  color: var(--aqua);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
}

.code-card h3 {
  margin: 13px 0 0;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 680;
  line-height: 1.35;
}

.copy-button {
  display: inline-flex;
  min-width: 82px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.58);
  color: #c9d2d3;
  font-size: 0.75rem;
  font-weight: 750;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.copy-button:hover,
.copy-button.is-copied {
  border-color: rgba(131, 239, 216, 0.58);
  background: rgba(131, 239, 216, 0.08);
  color: var(--aqua);
}

.copy-symbol {
  font-size: 0.95rem;
  line-height: 1;
}

.code-description {
  min-height: 50px;
  margin: 15px 0 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.code-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: #020404;
}

.window-dots {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding-inline: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.window-dots span:first-child {
  background: var(--coral);
}

.window-dots span:nth-child(2) {
  background: var(--amber);
}

.window-dots span:last-child {
  background: var(--aqua);
}

.code-window pre {
  min-height: 390px;
  max-height: 430px;
  overflow: auto;
  margin: 0;
  padding: 18px;
  scrollbar-color: rgba(131, 239, 216, 0.32) transparent;
  scrollbar-width: thin;
}

.code-card:first-child .code-window pre {
  min-height: 340px;
}

.code-window code {
  display: block;
  min-width: max-content;
  color: #cbd6d6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.7;
  tab-size: 4;
}

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

.testimonial-card {
  margin: 0;
  padding: 22px;
}

.testimonial-card blockquote,
.testimonial-card figcaption {
  position: relative;
}

.testimonial-card blockquote {
  min-height: 120px;
  margin: 0;
  color: #d6dddd;
  font-size: 0.96rem;
  line-height: 1.75;
}

.testimonial-card figcaption {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding-top: 15px;
  color: var(--aqua);
  font-size: 0.82rem;
  font-weight: 750;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reason-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.reason-card > * {
  position: relative;
}

.reason-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

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

.process-card {
  padding: 22px;
}

.process-card > * {
  position: relative;
}

.process-card > span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--aqua);
  font-size: 0.82rem;
  font-weight: 800;
}

.process-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.process-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.form-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 8px;
}

.form-grid label > span {
  color: #d8e1e1;
  font-size: 0.83rem;
  font-weight: 750;
}

.form-full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  outline: none;
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  transition: border-color 180ms ease;
}

.form-grid input,
.form-grid select {
  height: 48px;
  padding: 0 14px;
}

.form-grid textarea {
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.55;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--aqua);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #69777a;
}

.form-grid button {
  width: 100%;
}

.form-grid button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--coral);
  font-size: 0.84rem;
}

.form-status.success {
  color: var(--aqua);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--black);
  padding-block: 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
}

.footer-brand {
  color: var(--white);
  font-size: 1.2rem;
}

.site-footer p {
  max-width: 570px;
  margin: 16px 0;
  color: #89989c;
  font-size: 0.84rem;
  line-height: 1.8;
}

.site-footer small {
  color: #627073;
}

.site-footer h3 {
  margin: 0 0 15px;
  color: var(--aqua);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer > .footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.site-footer a:not(.footer-brand) {
  color: #89989c;
  font-size: 0.84rem;
  transition: color 180ms ease;
}

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

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

@keyframes heroSlide {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  7% {
    opacity: 1;
    transform: scale(1.06);
  }
  28% {
    opacity: 1;
    transform: scale(1.02);
  }
  39%,
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes heroGridPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.44;
    transform: translate3d(-18px, 12px, 0);
  }
}

@keyframes heroScanline {
  0% {
    transform: translateY(-110%);
  }
  50% {
    transform: translateY(45vh);
  }
  100% {
    transform: translateY(105vh);
  }
}

@keyframes heroDotFill {
  0% {
    transform: scaleX(0);
  }
  28% {
    transform: scaleX(1);
  }
  34%,
  100% {
    transform: scaleX(0);
  }
}

@media (max-width: 1050px) {
  .desktop-nav {
    display: none;
  }

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

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

  .work-grid {
    grid-template-columns: 1fr;
  }

  .code-samples-grid {
    grid-template-columns: 1fr;
  }

  .code-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 800px) {
  h1 {
    font-size: 2.55rem;
  }

  .section {
    padding-block: 68px;
  }

  .section-header h2 {
    font-size: 2.3rem;
  }

  .split-layout,
  .ai-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split-layout > .section-header {
    margin-bottom: 0;
  }

  .work-card {
    grid-template-columns: 0.72fr 1.28fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .brand-copy small,
  .nav-action-label {
    display: none;
  }

  .nav-action {
    width: 48px;
    padding: 0;
  }

  .hero-shell {
    align-items: flex-start;
    padding-block: 80px 48px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.91), rgba(0, 0, 0, 0.48));
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.75;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

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

  .section-header h2 {
    font-size: 2rem;
  }

  .section-copy {
    font-size: 0.96rem;
  }

  .mini-grid,
  .services-grid,
  .ai-grid,
  .testimonial-grid,
  .reason-grid,
  .process-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .code-card {
    padding: 18px;
  }

  .code-description {
    min-height: 0;
  }

  .code-window pre,
  .code-card:first-child .code-window pre {
    min-height: 340px;
    max-height: 390px;
    padding: 15px;
  }

  .code-window code {
    font-size: 0.7rem;
  }

  .work-visual {
    min-height: 170px;
  }

  .form-full {
    grid-column: auto;
  }

  .ai-card,
  .contact-form,
  .about-card {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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