@import url('colors_and_type.css');


* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
html { scroll-behavior: smooth; }
button { font-family: inherit; }

.page { display: flex; flex-direction: column; min-height: 100vh; }

/* ============================================================
   STATUS BAR
   ============================================================ */
.statusbar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule-on-ink);
}
.statusbar .dot { color: var(--ok); }
.statusbar .right { display: flex; gap: 24px; color: var(--steel-2); }
@media (max-width: 720px) {
  .statusbar { padding: 8px 16px; font-size: 10px; }
  .statusbar .right .hide-sm { display: none; }
}

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule-on-ink);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(120%);
  background: rgba(10,10,11,0.92);
}
.brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .04em;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
}
.brand .br { color: var(--signal); font-weight: 400; }
.topnav nav { display: flex; gap: 28px; }
.topnav nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--paper);
  cursor: pointer;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.topnav nav a:hover, .topnav nav a.active { border-bottom-color: var(--signal); color: var(--signal); }
.topnav .cta {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  background: var(--signal);
  color: var(--ink);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--dur-1) var(--ease-out);
}
.topnav .cta:hover { background: var(--signal-2); }
@media (max-width: 880px) {
  .topnav { padding: 14px 16px; }
  .topnav nav { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 22px;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
  border-radius: 0;
}
.btn:active { transform: translateY(1px); }
.btn:hover { background: var(--hover-ink); }
.btn--signal { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.btn--signal:hover { background: var(--signal-2); border-color: var(--signal-2); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--hover-paper); }

/* ============================================================
   EYEBROW / SECTION HEADERS
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--signal);
  display: inline-block;
}
.eyebrow.on-ink { color: var(--steel-2); }

section {
  padding: 120px 32px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: end;
}
.section-header h2 {
  font-size: 56px;
  line-height: 60px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 14ch;
  text-wrap: pretty;
}
.section-header p {
  font-size: 17px;
  line-height: 28px;
  color: var(--steel);
  max-width: 52ch;
  margin: 0;
}
.section-header.center { grid-template-columns: 1fr; text-align: left; }
.section-header.center h2 { max-width: 20ch; }

@media (max-width: 880px) {
  section { padding: 80px 20px; }
  .section-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .section-header h2 { font-size: 40px; line-height: 44px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 32px 96px;
  border-bottom: 1px solid var(--rule-on-ink);
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; }
.hero h1 {
  font-size: 104px;
  line-height: .96;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: pretty;
}
.hero h1 .accent { color: var(--signal); }
.hero p {
  font-size: 19px;
  line-height: 30px;
  color: var(--steel-2);
  max-width: 56ch;
  margin: 32px 0 40px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 380px; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.hero-visual svg { width: 100%; height: auto; max-width: 520px; }
.hero-iso-img { width: 100%; height: auto; max-width: 620px; display: block; image-rendering: -webkit-optimize-contrast; }

/* Hero variant picker — only on the home hero */
.hero-variant-picker {
  width: 100%;
  max-width: 520px;
  border-top: 1px solid rgba(244,241,234,0.12);
  padding-top: 14px;
}
.hvp-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(244,241,234,0.4);
  margin-bottom: 8px;
}
.hvp-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(244,241,234,0.12);
}
.hvp-opt {
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(244,241,234,0.12);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  color: rgba(244,241,234,0.7);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 220ms cubic-bezier(0.22,1,0.36,1), color 120ms cubic-bezier(0.22,1,0.36,1);
}
.hvp-opt:last-child { border-right: 0; }
.hvp-opt:hover { background: rgba(244,241,234,0.04); color: rgba(244,241,234,0.95); }
.hvp-opt.is-active {
  background: rgba(255,77,20,0.08);
  color: #FF4D14;
}
.hvp-opt-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  font-weight: 500;
}
.hvp-opt-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(244,241,234,0.45);
}
.hvp-opt.is-active .hvp-opt-sub { color: rgba(255,77,20,0.7); }

.hero-meta {
  margin-top: 80px;
  border-top: 1px solid var(--rule-on-ink);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-meta-cell {
  padding: 24px 24px 24px 24px;
  border-right: 1px solid var(--rule-on-ink);
}
.hero-meta-cell:first-child { padding-left: 0; }
.hero-meta-cell:last-child { border-right: 0; padding-right: 0; }
.hero-meta-cell .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-2);
}
.hero-meta-cell .val {
  font-size: 17px;
  line-height: 24px;
  color: var(--paper);
  margin-top: 6px;
}

/* ticker */
.ticker {
  margin-top: 0;
  border-top: 1px solid var(--rule-on-ink);
  border-bottom: 1px solid var(--rule-on-ink);
  padding: 14px 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--steel-2);
  white-space: nowrap;
  position: relative;
  mask: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
}
.ticker-track {
  display: inline-block;
  animation: tick 80s linear infinite;
  padding-left: 100%;
}
.ticker-track span { margin-right: 48px; }
.ticker-track .code { color: var(--wire); }
.ticker-track .sep { color: var(--steel); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 72px; }
  .hero-visual { min-height: 280px; }
}
@media (max-width: 720px) {
  .hero { padding: 80px 20px 64px; }
  .hero h1 { font-size: 48px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta-cell { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule-on-ink); }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 48px 32px;
}
.trust-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust-item .glyph {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--signal);
  text-transform: uppercase;
}
.trust-item .text {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 22ch;
}
@media (max-width: 880px) {
  .trust-strip-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   GRIDS / CARDS
   ============================================================ */

/* What-we-build: 4-cell grid with diagrams */
.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.build-cell {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 24px;
  align-items: start;
  background: var(--paper);
  transition: background var(--dur-2) var(--ease-out);
}
.build-cell:hover { background: var(--paper-2); }
.build-cell .code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--steel);
}
.build-cell h3 {
  font-size: 26px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 12px 0 12px;
}
.build-cell p { font-size: 15px; line-height: 24px; color: var(--steel); margin: 0; }
.build-cell .glyph-box {
  width: 140px;
  height: 140px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: end;
}
@media (max-width: 880px) {
  .build-grid { grid-template-columns: 1fr; }
  .build-cell { grid-template-columns: 1fr; padding: 28px; }
  .build-cell .glyph-box { width: 100px; height: 100px; }
}

/* Why we work — numbered stack */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.why-cell {
  background: var(--paper);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  position: relative;
}
.why-cell .num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--signal);
}
.why-cell h3 {
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 22ch;
}
.why-cell p {
  font-size: 15px;
  line-height: 24px;
  color: var(--steel);
  margin: 0;
  max-width: 44ch;
}
@media (max-width: 880px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-cell { padding: 28px; min-height: 0; }
}

/* ============================================================
   SELECTED WORK PREVIEW (home)
   ============================================================ */
.work-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
}
.work-card {
  background: var(--paper);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease-out);
  position: relative;
}
.work-card:hover { background: var(--fog); }
.work-card .code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--steel);
}
.work-card h3 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 18ch;
}
.work-card p {
  font-size: 14px;
  line-height: 22px;
  color: var(--steel);
  margin: 0;
}
.work-card .thumb {
  margin-top: auto;
  width: 100%;
  height: 100px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-card .thumb svg { width: 100%; height: 100%; display: block; }
.work-card .arrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink);
  transition: transform var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.work-card:hover .arrow { color: var(--signal); transform: translateX(4px); }
@media (max-width: 1024px) {
  .work-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .work-preview-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TECHNOLOGY SECTION
   ============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.tech-group {
  background: var(--paper);
  padding: 40px;
}
.tech-group .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 6px;
}
.tech-group h3 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 6px 12px;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
@media (max-width: 720px) {
  .tech-grid { grid-template-columns: 1fr; }
  .tech-group { padding: 24px; }
}

/* ============================================================
   FINAL CTA / DARK CTA BLOCK
   ============================================================ */
.cta-block {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 32px;
  border-bottom: 1px solid var(--rule-on-ink);
  position: relative;
  overflow: hidden;
}
.cta-block-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-block h2 {
  font-size: 64px;
  line-height: 68px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 16ch;
  text-wrap: pretty;
}
.cta-block h2 .accent { color: var(--signal); }
.cta-block p {
  font-size: 18px;
  line-height: 28px;
  color: var(--steel-2);
  margin: 0 0 32px;
  max-width: 46ch;
}
@media (max-width: 880px) {
  .cta-block { padding: 80px 20px; }
  .cta-block-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-block h2 { font-size: 40px; line-height: 44px; }
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.svc-page section.page-hero { padding: 96px 32px 80px; border-bottom: 0; }
.svc-page > .service-block { border-bottom: 1px solid var(--rule); }
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 32px 96px;
  border-bottom: 1px solid var(--rule-on-ink);
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-size: 88px;
  line-height: .96;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: pretty;
}
.page-hero h1 .accent { color: var(--signal); }
.page-hero p {
  font-size: 18px;
  line-height: 28px;
  color: var(--steel-2);
  max-width: 50ch;
  margin: 24px 0 32px;
}
.page-hero-visual {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1024px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 60px; }
}
@media (max-width: 720px) {
  .page-hero { padding: 64px 20px 48px; }
  .page-hero h1 { font-size: 44px; }
}

/* Service blocks */
.service-block {
  padding: 96px 32px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.service-block:nth-child(even) { background: var(--paper-2); }
.service-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.service-meta .code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--signal);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.service-meta h2 {
  font-size: 44px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.service-meta .copy {
  font-size: 17px;
  line-height: 26px;
  color: var(--steel);
  max-width: 30ch;
  margin: 0;
}
.service-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.service-body h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.service-body ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.service-body ul li {
  font-size: 15px;
  line-height: 22px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.service-body ul li::before {
  content: '·';
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
}
.service-closing {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-size: 17px;
  line-height: 26px;
  color: var(--ink);
  max-width: 62ch;
  text-wrap: pretty;
}
@media (max-width: 1024px) {
  .service-inner { grid-template-columns: 1fr; gap: 32px; }
  .service-body { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .service-block { padding: 56px 20px; }
  .service-body { grid-template-columns: 1fr; gap: 24px; }
  .service-meta h2 { font-size: 32px; line-height: 36px; }
}

/* ============================================================
   WORK PAGE
   ============================================================ */
.work-list {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.work-row {
  display: grid;
  grid-template-columns: 100px 1.6fr 2fr 140px 40px;
  gap: 32px;
  padding: 28px 16px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), padding var(--dur-1) var(--ease-out);
}
.work-row:last-child { border-bottom: 0; }
.work-row:hover { background: var(--fog); padding-left: 24px; }
.work-row:hover .arrow { color: var(--signal); transform: translateX(4px); }
.work-row .code { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.work-row .title { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.work-row .desc { font-size: 14px; line-height: 22px; color: var(--steel); max-width: 60ch; }
.work-row .vert { font-family: var(--font-mono); font-size: 11px; color: var(--steel); letter-spacing: .12em; text-transform: uppercase; }
.work-row .arrow { font-family: var(--font-mono); font-size: 18px; transition: transform var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); text-align: right; }
@media (max-width: 1024px) {
  .work-row { grid-template-columns: 80px 1fr 30px; gap: 16px; padding: 24px 12px; }
  .work-row .desc, .work-row .vert { display: none; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-prose {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
}
.about-prose .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  align-self: start;
}
.about-prose .body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 19px;
  line-height: 30px;
  color: var(--ink);
  max-width: 60ch;
  text-wrap: pretty;
}
.about-prose .body p { margin: 0; }
@media (max-width: 880px) {
  .about-prose { grid-template-columns: 1fr; gap: 24px; padding: 0 20px; }
  .about-prose .body { font-size: 17px; line-height: 28px; }
}

.section--principles { padding-bottom: 0; border-bottom: 0; }
.principles-grid-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--ink);
}
.principles-grid .cell {
  border-right: 1px solid var(--rule);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}
.principles-grid .cell:last-child { border-right: 0; }
.principles-grid .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--signal);
}
.principles-grid h3 {
  font-size: 19px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: pretty;
}
.principles-grid p {
  font-size: 14px;
  line-height: 21px;
  color: var(--steel);
  margin: 0;
}
@media (max-width: 1024px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid .cell { padding: 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .principles-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label.compound { display: flex; flex-direction: column; gap: 8px; }
.field .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input, .field textarea, .field select {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--signal); background: var(--paper-2); }
.field textarea { min-height: 120px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.contact-side {
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  padding: 40px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.contact-side h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.contact-side .item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.contact-side .item .n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--signal);
}
.contact-side .item .t { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.contact-side .item .d { font-size: 13px; line-height: 20px; color: var(--steel); }
.contact-side .quote {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 22px;
  color: var(--ink);
}
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-side { position: static; }
}
@media (max-width: 720px) {
  .contact-layout { padding: 0 20px; }
  .contact-side { padding: 28px; }
}

.form-foot {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.form-foot .note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
}

/* sent-success state */
.sent-card {
  border: 1px solid var(--ink);
  padding: 40px;
  background: var(--paper-2);
  text-align: left;
}
.sent-card .eyebrow { color: var(--signal); margin-bottom: 16px; }
.sent-card h3 { font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.sent-card p { font-size: 16px; line-height: 26px; color: var(--steel); margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 32px 32px;
  margin-top: auto;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-big {
  font-size: 80px;
  line-height: 80px;
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 0;
  text-wrap: pretty;
}
.footer-big .accent { color: var(--signal); }
.footer-contact {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-top {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--rule-on-ink);
  padding-top: 48px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-2);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a, .footer ul li {
  color: var(--paper);
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
  display: inline-block;
  width: fit-content;
}
.footer ul a:hover { border-bottom-color: var(--signal); color: var(--signal); }
.footer-manifest { font-family: var(--font-mono); font-size: 13px; color: var(--steel-2); }
.footer-manifest .code { color: var(--paper); }
.footer-bot {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-on-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--steel-2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-big { font-size: 56px; line-height: 60px; }
}
@media (max-width: 600px) {
  .footer { padding: 64px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-big { font-size: 40px; line-height: 44px; }
}

/* ============================================================
   GENERIC TYPOGRAPHIC HELPERS
   ============================================================ */
.mono-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}
.linkish {
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur-1) var(--ease-out);
}
.linkish:hover { color: var(--signal); }
