:root {
  color-scheme: dark;
  --bg: #000000;
  --nav-bg: #000000;
  --line: rgba(255, 255, 255, 0.065);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f8f8f8;
  --muted: #7f8791;
  --muted-strong: #b5bbc3;
  --nav-h: 54px;
  --cell: 112px;
  --max: 1120px;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --nav-bg: #ffffff;
  --line: rgba(0, 0, 0, 0.065);
  --line-strong: rgba(0, 0, 0, 0.12);
  --text: #1a1a1a;
  --muted: #707070;
  --muted-strong: #4a4a4a;
}

* {
  box-sizing: border-box;
  font-family: var(--font-body);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.brand-text, .nav-link, .mobile-panel a, .button,
.hero-kicker, .section-label, .capability-index,
.project-category, .footer-brand, .footer-nav a,
.block-link, .visual-index, .page-meta {
  font-family: var(--font-display);
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms ease, color 200ms ease;
}

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

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(520px, 760px) minmax(180px, 1fr);
  width: 100%;
  height: var(--nav-h);
  background: var(--nav-bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: var(--nav-h);
  margin-left: clamp(18px, 5vw, 72px);
  color: var(--text);
  letter-spacing: 0.08em;
}

.brand-text {
  font-weight: 600;
  font-size: 14px;
}

.brand-mark {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
  border-radius: 2px;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}


.desktop-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--nav-bg);
}

.nav-link {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background-color: var(--line);
}

.nav-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 20%;
  height: 2px;
  background: var(--text);
  transform: translateX(0);
  transition: transform 220ms ease, width 220ms ease;
}

.theme-switcher-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: clamp(18px, 5vw, 72px);
}

.theme-switcher {
  display: flex;
  gap: 2px;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.theme-btn:hover {
  color: var(--text);
  background: var(--line);
}

.theme-btn.is-active {
  color: var(--text);
  background: var(--line-strong);
}

.theme-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle,
.mobile-panel {
  display: none;
}

.section {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  display: grid;
  align-content: center;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  padding: 72px 0;
}

.hero-kicker,
.section-label {
  margin: 0 0 20px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.hero-kicker {
  width: max-content;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 8px 11px;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

#services-intro h1,
.about-page h1,
.content-section h2,
.about-page h2 {
  max-width: 860px;
  margin: 0 auto;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0;
}

.content-section h1,
.about-page h1,
.content-section h2,
.about-page h2 {
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
}

#services-intro h1,
#contact-intro h1,
#work-intro h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.1;
}

.content-section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.hero p,
.content-section p:not(.section-label) {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
}

.content-section p:not(.section-label) {
  margin-inline: auto;
}

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

.content-section .hero-actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  padding: 0 20px;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 120ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button:hover {
  border-color: var(--muted);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button-primary:hover {
  opacity: 0.9;
  border-color: var(--text);
}

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

.content-section {
  text-align: center;
  padding: 40px 0;
}

#contact-intro {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0;
}

.connector-line {
  width: 1px;
  height: 120px;
  background-color: var(--line-strong);
  margin: 0 auto;
}

.horizontal-divider {
  width: 100%;
  height: 1px;
  background-color: var(--line-strong);
  margin: 60px 0;
}

/* Contact Section & Footer */
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 48px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--bg);
  color: var(--muted);
  transition: all 220ms ease;
  border-radius: 4px;
}

.contact-item:hover {
  color: var(--text);
  transform: translateY(-4px);
  background: var(--line);
}

.contact-item svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.contact-note {
  max-width: 500px;
  margin: 32px auto 0;
  color: var(--muted-strong);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  padding: 78px 0 clamp(96px, 16vw, 240px);
  margin-top: 60px;
}

/* Hatched band along the footer's top edge */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    -45deg,
    var(--line-strong) 0,
    var(--line-strong) 1px,
    transparent 1px,
    transparent 7px
  );
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.footer-desc {
  color: var(--muted);
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: color 180ms ease;
}

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

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 32px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border-radius: 4px;
  transition: all 180ms ease;
}

.footer-socials a:hover {
  color: var(--text);
  background: var(--line);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Giant outlined wordmark — the footer's background, cropped at the page edge */
.footer-wordmark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  z-index: 0;
  font-family: var(--font-display);
  font-size: 16.8vw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  pointer-events: none;
  user-select: none;
}

@supports not (-webkit-text-stroke: 1px black) {
  .footer-wordmark {
    color: var(--line);
  }
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a,
.copyright {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer-legal a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .contact-grid {
    gap: 16px;
  }
  
  .contact-item {
    width: 54px;
    height: 54px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

/* Project Grid & Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 40px 0 80px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), border-color 400ms cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--muted);
}

.project-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--line);
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image-wrap img {
  transform: scale(1.05);
}

.project-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0;
}

.project-card p {
  font-size: 14px;
  color: var(--muted-strong);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .project-card h3 {
    font-size: 18px;
  }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-30px);
}

.reveal.reveal-right {
  transform: translateX(30px);
}

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

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }
.delay-5 { transition-delay: 500ms; }

/* About Page Specific Layout */
.about-page .content-section {
  text-align: left;
  padding: 120px 0;
}

.about-page .content-wrapper {
  display: grid;
  grid-template-columns: clamp(200px, 25vw, 300px) 1fr;
  gap: 60px;
  max-width: var(--max);
  margin: 0 auto;
  align-items: center;
}

.about-page h1,
.about-page h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.15;
  margin: 0 0 24px;
  max-width: 100%;
}

.about-page h1 {
  margin-bottom: 24px;
}

.about-page p:not(.section-label) {
  max-width: 780px;
  margin: 0;
}

.about-page .section-label {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  opacity: 0.7;
  letter-spacing: 0.15em;
}

.about-page .vision-statement {
  background: none;
  padding: 160px 0 240px;
}

.about-page .vision-statement .content-wrapper {
  display: block;
  text-align: center;
}

.about-page .vision-statement .text-col {
  max-width: 920px;
  margin: 0 auto;
}

.about-page .vision-statement h2 {
  margin: 0 auto;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.55;
  font-weight: 300;
  opacity: 0.8;
}

@media (max-width: 860px) {
  :root {
    --cell: 80px;
  }

  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .brand {
    margin-left: 0;
  }

  .desktop-nav,
  .theme-switcher-wrap {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 38px;
    border: 1px solid var(--line);
    background: var(--bg);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 17px;
    height: 1px;
    background: var(--text);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-panel {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    left: 0;
    z-index: 19;
    display: grid;
    overflow: hidden;
    max-height: 0;
    border-bottom: 1px solid transparent;
    background: var(--bg);
    transition: max-height 380ms var(--ease-out), border-color 200ms ease;
  }

  .mobile-panel.is-open {
    max-height: 440px;
    border-color: var(--line-strong);
  }

  .mobile-panel a,
  .mobile-theme {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 260ms ease, transform 320ms var(--ease-out);
  }

  .mobile-panel.is-open a,
  .mobile-panel.is-open .mobile-theme {
    opacity: 1;
    transform: none;
  }

  .mobile-panel.is-open a:nth-child(2) { transition-delay: 40ms; }
  .mobile-panel.is-open a:nth-child(3) { transition-delay: 80ms; }
  .mobile-panel.is-open a:nth-child(4) { transition-delay: 120ms; }
  .mobile-panel.is-open a:nth-child(5) { transition-delay: 160ms; }
  .mobile-panel.is-open .mobile-theme { transition-delay: 200ms; }

  .mobile-panel a {
    border-bottom: 1px solid var(--line);
    padding: 17px 18px;
    padding-left: max(18px, env(safe-area-inset-left));
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
  }

  .mobile-panel a.is-active {
    color: var(--text);
    background: var(--line);
  }

  .mobile-theme {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    padding-left: max(18px, env(safe-area-inset-left));
  }

  .mobile-theme .theme-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
  }

  .mobile-theme .theme-btn svg {
    width: 16px;
    height: 16px;
  }

  .section {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: calc(100vh - var(--nav-h) - 64px);
    min-height: calc(92svh - var(--nav-h));
    padding: 56px 0;
  }

  .reveal {
    transform: translateY(18px);
    transition-duration: 560ms;
  }

  .reveal.reveal-left,
  .reveal.reveal-right {
    transform: translateY(18px);
  }

  .hero h1 {
    max-width: 560px;
    overflow-wrap: break-word;
    font-size: clamp(34px, 9vw, 52px);
    line-height: 1.08;
  }

  .content-section {
    padding: 64px 0;
  }

  .connector-line {
    height: 72px;
  }

  .horizontal-divider {
    margin: 40px 0;
  }

  .about-page .content-section {
    padding: 80px 0;
  }

  .about-page .content-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-page .vision-statement {
    padding: 100px 0 140px;
  }
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 30;
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 8px;
}

/* Home page blocks */
.home-block {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.home-block .block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.home-block h2 {
  margin: 0;
  max-width: 720px;
  color: var(--text);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.1;
}

.block-link {
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 180ms ease, border-color 180ms ease;
}

.block-link:hover {
  color: var(--text);
  border-color: var(--text);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.capability {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background-color 180ms ease;
}

.capability:hover {
  background: var(--line);
}

.capability-index {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.capability-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  transition: background-color 200ms ease, transform 300ms var(--ease-out);
}

.capability:hover .capability-icon {
  background: var(--line);
  transform: translateY(-2px);
}

.capability-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability h3,
.process-step h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.capability p,
.process-step p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.65;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.process-step {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}

/* FAQ */
.faq-list {
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  list-style: none;
  cursor: pointer;
  transition: color 180ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 20px;
  font-weight: 300;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 24px;
  max-width: 720px;
  color: var(--muted-strong);
  font-size: 14.5px;
  line-height: 1.7;
}

/* Closing CTA */
.cta-block {
  padding: 110px 0 120px;
  text-align: center;
}

.cta-block h2 {
  margin: 0 auto;
  max-width: 720px;
  color: var(--text);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
}

.cta-block p {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.7;
}

.cta-block .hero-actions {
  justify-content: center;
}

/* Project schematic illustrations */
.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
}

.project-visual svg {
  width: min(230px, 76%);
  height: auto;
  color: var(--muted-strong);
  transition: transform 500ms var(--ease-out), color 300ms ease;
}

.project-card:hover .project-visual svg {
  transform: translateY(-4px);
  color: var(--text);
}

/* Schematic micro-animations — each drawing demonstrates its product */
@media (prefers-reduced-motion: no-preference) {
  .anim-flow {
    stroke-dasharray: 5 7;
    animation: dash-flow 1.4s linear infinite;
  }

  @keyframes dash-flow {
    to { stroke-dashoffset: -12; }
  }

  .anim-blink {
    animation: dot-blink 1.5s ease-in-out infinite;
  }

  @keyframes dot-blink {
    0%, 60%, 100% { opacity: 0.2; }
    30% { opacity: 1; }
  }

  .anim-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: spark-pulse 2.4s ease-in-out infinite;
  }

  @keyframes spark-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.55; }
  }

  .anim-grow {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: bar-grow 3.2s ease-in-out infinite;
  }

  @keyframes bar-grow {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
  }

  .anim-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: line-draw 4.5s ease-in-out infinite;
  }

  @keyframes line-draw {
    0% { stroke-dashoffset: 1; opacity: 1; }
    45% { stroke-dashoffset: 0; opacity: 1; }
    85% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
  }

  .anim-bob {
    transform-box: fill-box;
    animation: card-bob 3.9s ease-in-out infinite;
  }

  @keyframes card-bob {
    0%, 22%, 100% { transform: translateY(0); }
    9% { transform: translateY(-4px); }
  }

  .anim-breathe {
    animation: soft-breathe 2.8s ease-in-out infinite;
  }

  @keyframes soft-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  .ad-1 { animation-delay: 0.35s; }
  .ad-2 { animation-delay: 0.7s; }
  .ad-3 { animation-delay: 1.05s; }
}

.contact-note a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
}

/* Legal pages */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 0 40px;
  text-align: left;
}

.legal-page h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.1;
}

.legal-page .page-meta {
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.legal-page h2 {
  margin: 40px 0 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.legal-page p,
.legal-page li {
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.75;
}

.legal-page ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.legal-page a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
}

@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .home-block {
    padding: 72px 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.reveal-left,
  .reveal.reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mobile-panel,
  .mobile-panel a,
  .mobile-theme {
    transition: none;
  }

  .project-card,
  .project-card:hover,
  .contact-item:hover {
    transform: none;
    transition: none;
  }

  .project-card:hover .project-image-wrap img {
    transform: none;
  }
}

@media (max-width: 480px) {
  :root {
    --cell: 64px;
  }

  .hero-kicker {
    max-width: 100%;
    white-space: normal;
    line-height: 1.6;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.6vw, 38px);
    line-height: 1.12;
  }

  .hero p,
  .content-section p:not(.section-label) {
    max-width: 100%;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .home-block {
    padding: 56px 0;
  }

  .home-block h2,
  .content-section h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .capabilities-grid,
  .process-grid,
  .faq-list {
    margin-top: 32px;
  }

  .capability {
    padding: 22px 18px 26px;
  }

  .capability-index {
    margin-bottom: 12px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 18px 0;
  }

  .cta-block {
    padding: 72px 0 84px;
  }

  .cta-block h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .cta-block p {
    font-size: 15px;
  }

  .project-grid {
    padding: 24px 0 56px;
  }

  .project-card-content {
    padding: 20px 18px;
  }

  .project-visual .visual-index {
    font-size: 48px;
  }

  .about-page .content-section {
    padding: 56px 0;
  }

  .about-page .vision-statement {
    padding: 72px 0 96px;
  }

  .legal-page {
    padding: 48px 0 24px;
  }

  #contact-intro {
    min-height: 0;
    padding: 64px 0;
  }

  .site-footer {
    padding: 62px 0 clamp(72px, 20vw, 110px);
    margin-top: 40px;
  }

  .site-footer::before {
    height: 20px;
  }

  .footer-wordmark {
    -webkit-text-stroke-width: 1px;
  }

  .footer-nav {
    gap: 16px 20px;
  }
}
