/* Stellerbit Studio — monochrome identity system */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;700;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #000000;
  --paper: #F4F1EC;
  --ink-soft: #1A1A1A;
  --grey-500: #6B6B66;
  --grey-300: #B8B5AC;
  --hairline: #D9D6CE;
  --paper-alt: #EBE7DE;

  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --edge: clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* subtle paper grain */
  background-image:
    radial-gradient(circle at 25% 30%, rgba(0,0,0,0.015) 0.5px, transparent 0.5px),
    radial-gradient(circle at 75% 60%, rgba(0,0,0,0.015) 0.5px, transparent 0.5px);
  background-size: 3px 3px, 5px 5px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 241, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 28px; height: 28px;
  display: block;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name small {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.25em;
  margin-top: 3px;
  color: var(--grey-500);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 0;
  position: relative;
}
.nav a::before {
  content: attr(data-num);
  font-size: 9px;
  color: var(--grey-500);
  margin-right: 6px;
  vertical-align: super;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.7, 0, 0.2, 1);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    width: 100%;
    padding: 22px var(--edge);
    border-top: 1px solid var(--hairline);
    font-size: 14px;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
  }
  .nav-toggle span {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* ---------- LAYOUT PRIMITIVES ---------- */
main { padding-top: 68px; }

.section {
  padding: clamp(80px, 12vw, 160px) var(--edge);
  position: relative;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--grey-500);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--ink);
}

.h-display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.h-lg {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.015em;
}

.h-md {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  max-width: 62ch;
  color: var(--ink-soft);
}

/* ---------- HERO ---------- */
.hero {
  min-height: calc(100vh - 68px);
  padding: 100px var(--edge) 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--hairline);
}

.hero-copy .hero-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--grey-500);
  margin-bottom: 40px;
  display: flex;
  gap: 20px;
}
.hero-copy .hero-index span:first-child { color: var(--ink); }

.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.hero-title .italic { font-style: italic; font-weight: 300; }
.hero-title .thin { font-weight: 300; }
.hero-title .slash {
  display: inline-block;
  transform: skew(-14deg);
  margin: 0 0.15em;
}

.hero-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  max-width: 44ch;
  margin-bottom: 40px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.3s cubic-bezier(0.7, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary::before { background: var(--paper); }
.btn.primary:hover { color: var(--ink); }
.btn svg { width: 12px; height: 12px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }

/* Hero visual — large S mark canvas */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  overflow: hidden;
  background: var(--paper);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  opacity: 0.4;
}
.hero-visual .s-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .s-mark svg {
  width: 62%;
  height: auto;
  animation: markPulse 6s ease-in-out infinite;
}
@keyframes markPulse {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.03) rotate(-1deg); }
}

.hero-visual .visual-corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--grey-500);
  padding: 12px 16px;
}
.hero-visual .tl { top: 0; left: 0; }
.hero-visual .tr { top: 0; right: 0; }
.hero-visual .bl { bottom: 0; left: 0; }
.hero-visual .br { bottom: 0; right: 0; }
.hero-visual .visual-corner::before {
  content: '';
  position: absolute;
  background: var(--ink);
}
.hero-visual .tl::before, .hero-visual .tr::before { top: 0; height: 8px; width: 1px; }
.hero-visual .bl::before, .hero-visual .br::before { bottom: 0; height: 8px; width: 1px; }
.hero-visual .tl::before { left: 0; }
.hero-visual .tr::before { right: 0; }
.hero-visual .bl::before { left: 0; }
.hero-visual .br::before { right: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.marquee-track span { display: flex; align-items: center; gap: 60px; }
.marquee-track span::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--paper);
  transform: rotate(45deg);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- SECTION: WHAT WE BUILD ---------- */
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.what-card {
  padding: clamp(40px, 5vw, 72px);
  border-right: 1px solid var(--hairline);
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  transition: background 0.4s;
}
.what-card:last-child { border-right: none; }
.what-card:hover { background: var(--paper-alt); }

.what-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--grey-500);
  margin-bottom: 20px;
}
.what-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.what-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-bottom: auto;
}
.what-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}
.what-card .card-tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border: 1px solid var(--hairline);
}

@media (max-width: 780px) {
  .what-grid { grid-template-columns: 1fr; }
  .what-card { border-right: none; border-bottom: 1px solid var(--hairline); min-height: auto; }
  .what-card:last-child { border-bottom: none; }
}

/* ---------- INDUSTRIES ---------- */
.industries-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: end;
}
@media (max-width: 780px) { .industries-head { grid-template-columns: 1fr; } }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.industry {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 32px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.4s;
  overflow: hidden;
}
.industry .ind-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--grey-500);
}
.industry .ind-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.industry .ind-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}
.industry:hover {
  background: var(--ink);
  color: var(--paper);
}
.industry:hover .ind-num { color: var(--grey-300); }
.industry:hover .ind-arrow { opacity: 1; transform: translate(0, 0); }
@media (max-width: 900px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- DIAGONAL BREAK / STATEMENT ---------- */
.statement {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 12vw, 160px) var(--edge);
  position: relative;
  overflow: hidden;
}
.statement-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.statement-quote {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.statement-quote em {
  font-style: italic;
  font-weight: 300;
}
.statement-meta {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(244,241,236,0.2);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--grey-300);
}
.statement::before {
  content: 'S';
  position: absolute;
  right: -0.15em;
  bottom: -0.35em;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(300px, 40vw, 640px);
  line-height: 1;
  color: rgba(244,241,236,0.04);
  pointer-events: none;
}

/* ---------- PROCESS ---------- */
.process-list { border-top: 1px solid var(--ink); }
.process-item {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 40px;
  gap: 32px;
  align-items: baseline;
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding 0.35s;
  cursor: pointer;
}
.process-item:hover { padding-left: 24px; }
.process-item .p-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--grey-500);
}
.process-item .p-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.process-item .p-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}
.process-item .p-arrow {
  justify-self: end;
  font-family: var(--display);
  font-size: 24px;
  transition: transform 0.35s;
}
.process-item:hover .p-arrow { transform: rotate(45deg); }
@media (max-width: 780px) {
  .process-item { grid-template-columns: 60px 1fr; }
  .process-item .p-body, .process-item .p-arrow { grid-column: 1 / -1; }
  .process-item .p-arrow { justify-self: start; }
}

/* ---------- CTA STRIP ---------- */
.cta-strip {
  padding: clamp(80px, 10vw, 140px) var(--edge);
  text-align: center;
  border-top: 1px solid var(--ink);
  position: relative;
}
.cta-strip .cta-head {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin: 0 auto 40px;
}
.cta-strip .cta-head em { font-style: italic; font-weight: 300; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 60px var(--edge) 24px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(244,241,236,0.15);
}
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; } }

.footer-brand .brand-mark { width: 44px; height: 44px; margin-bottom: 24px; }
.footer-brand .brand-mark svg path { fill: var(--paper); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-300);
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--grey-300);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  transition: color 0.2s;
  position: relative;
}
.footer-col a:hover { color: var(--grey-300); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--grey-300);
  flex-wrap: wrap;
  gap: 12px;
}

/* Oversized wordmark in footer */
.footer-wordmark {
  overflow: hidden;
  margin: 60px 0 24px;
  border-top: 1px solid rgba(244,241,236,0.15);
  padding-top: 40px;
}
.footer-wordmark svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- PAGE HEADERS ---------- */
.page-hero {
  padding: 140px var(--edge) 80px;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
@media (max-width: 780px) { .page-hero { grid-template-columns: 1fr; } }

.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--grey-500);
  margin-bottom: 24px;
}
.crumbs span { color: var(--ink); }

.page-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.035em;
}

/* ---------- PRODUCT LIST ---------- */
.product-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.5fr auto;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding 0.4s;
}
.product-row:first-child { border-top: 1px solid var(--ink); }
.product-row:hover { padding-left: 20px; background: var(--paper-alt); }

.product-row .pr-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--grey-500);
  padding-top: 8px;
}
.product-row .pr-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.product-row .pr-name small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--grey-500);
  margin-top: 10px;
  text-transform: uppercase;
}
.product-row .pr-body { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.product-row .pr-body ul {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-row .pr-body li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
}
.product-row .pr-action {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  border: 1px solid var(--ink);
  padding: 12px 18px;
  transition: all 0.3s;
  align-self: start;
  white-space: nowrap;
}
.product-row .pr-action:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 900px) {
  .product-row { grid-template-columns: 60px 1fr; gap: 20px; }
  .product-row .pr-body, .product-row .pr-action { grid-column: 1 / -1; }
}

/* ---------- ABOUT ---------- */
.about-lead {
  padding: clamp(60px, 10vw, 140px) var(--edge);
  border-bottom: 1px solid var(--hairline);
}
.about-lead p {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 26ch;
}
.about-lead p em { font-style: italic; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.stat {
  padding: 40px 24px;
  border-right: 1px solid var(--hairline);
}
.stat:last-child { border-right: none; }
.stat .stat-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.stat .stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--grey-500);
}
@media (max-width: 780px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--hairline); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.value {
  background: var(--paper);
  padding: 48px 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.value .v-idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--grey-500);
  margin-bottom: 20px;
}
.value h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.value p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 780px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}
.contact-info {
  padding: clamp(40px, 6vw, 80px) var(--edge);
  border-right: 1px solid var(--ink);
}
.contact-form {
  padding: clamp(40px, 6vw, 80px) var(--edge);
  background: var(--paper-alt);
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid var(--ink); }
}

.contact-block {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}
.contact-block:last-child { border-bottom: none; }
.contact-block h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--grey-500);
  margin-bottom: 16px;
  font-weight: 400;
}
.contact-block p, .contact-block a {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: block;
}
.contact-block a { transition: opacity 0.2s; }
.contact-block a:hover { opacity: 0.6; }

.form-row { margin-bottom: 32px; }
.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--grey-500);
  margin-bottom: 10px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 14px 0;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  outline: none;
  transition: padding 0.3s;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { padding-left: 8px; }
.form-row select { -webkit-appearance: none; appearance: none; cursor: pointer; }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.form-actions small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--grey-500);
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   ADDED: Services, ring motif, split-hero variants, dropdown nav
   ============================================================ */

/* Dropdown for Demos in nav */
.nav-drop { position: relative; }
.nav-drop > a { cursor: default; }
.nav-drop-menu {
  position: absolute;
  top: 100%; left: -16px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.7, 0, 0.2, 1);
  margin-top: 8px;
}
.nav-drop:hover .nav-drop-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop-menu a {
  display: block !important;
  padding: 12px 20px !important;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--hairline);
}
.nav-drop-menu a:last-child { border-bottom: none; }
.nav-drop-menu a::before { display: none; }
.nav-drop-menu a::after { display: none; }
.nav-drop-menu a:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 780px) {
  .nav-drop-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    background: var(--paper-alt);
    border: none;
    margin-top: 0;
    padding: 0;
    min-width: auto;
  }
  .nav-drop-menu a { padding: 16px var(--edge) 16px calc(var(--edge) + 20px) !important; }
}

/* ---------- SERVICES: Split hero with rotating ring ---------- */
.svc-hero {
  padding: 140px var(--edge) 100px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  /* prevent grid blowout — critical when children contain SVG/long text */
  min-width: 0;
}
/* both grid children must allow shrinking, or the SVG below expands the column */
.svc-hero > * { min-width: 0; }

@media (max-width: 900px) { .svc-hero { grid-template-columns: 1fr; } }

.svc-hero-copy .crumbs { margin-bottom: 32px; }
.svc-hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.svc-hero-title em { font-style: italic; font-weight: 300; }

/* Rotating capabilities ring — hard-constrained so it never overflows */
.svc-ring {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: min(480px, 100%);
  margin: 0 auto;
  overflow: hidden;
}
.svc-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}
.svc-ring .ring-outer {
  animation: rotate 60s linear infinite;
  transform-origin: 50% 50%;
}
.svc-ring .ring-inner {
  animation: rotate 40s linear infinite reverse;
  transform-origin: 50% 50%;
}
.svc-ring .ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.svc-ring .ring-center-mark {
  width: 34%;
  animation: markPulse 6s ease-in-out infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* ---------- SERVICES GRID ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-item {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 40px 32px 32px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s;
  cursor: pointer;
  overflow: hidden;
}
.svc-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--ink);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: -1;
}
.svc-item:hover { color: var(--paper); }
.svc-item:hover::before { transform: translateX(100%); }
.svc-item .s-idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--grey-500);
  margin-bottom: 24px;
}
.svc-item:hover .s-idx { color: var(--grey-300); }
.svc-item .s-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
}
.svc-item h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.svc-item p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: auto;
}
.svc-item:hover p { color: var(--grey-300); }
.svc-item .s-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}
.svc-item .s-tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border: 1px solid var(--hairline);
}
.svc-item:hover .s-tags span { border-color: rgba(244,241,236,0.3); }

/* ---------- CAPABILITIES ROW: Scrolling capability strip ---------- */
.cap-strip {
  padding: 40px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}
.cap-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
}
.cap-track span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
}
.cap-track span::after {
  content: '+';
  color: var(--grey-500);
  font-size: 16px;
}

/* ---------- DEMO CTA (index page) ---------- */
.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
@media (max-width: 780px) { .demo-split { grid-template-columns: 1fr; } }

.demo-panel {
  padding: clamp(48px, 6vw, 80px);
  border-right: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.demo-panel:last-child { border-right: none; }
@media (max-width: 780px) {
  .demo-panel { border-right: none; border-bottom: 1px solid var(--ink); }
  .demo-panel:last-child { border-bottom: none; }
}
.demo-panel.dark { background: var(--ink); color: var(--paper); }
.demo-panel .dp-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--grey-500);
  margin-bottom: 24px;
}
.demo-panel.dark .dp-eyebrow { color: var(--grey-300); }
.demo-panel h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.demo-panel h3 em { font-style: italic; font-weight: 300; }
.demo-panel p {
  font-size: 15px;
  line-height: 1.55;
  max-width: 40ch;
  margin-bottom: 32px;
}
.demo-panel .dp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
  transition: gap 0.3s;
}
.demo-panel .dp-cta:hover { gap: 18px; }

/* ============================================================
   PATCH: Defensive grid-child containment (prevents SVG blowout)
   ============================================================ */
.hero > *,
.industries-head > *,
.what-grid > *,
.industries-grid > *,
.stats-grid > *,
.values-grid > *,
.demo-split > *,
.contact-grid > *,
.svc-grid > *,
.footer-top > * { min-width: 0; }

/* Body-level safety net */
body { overflow-x: hidden; }
