/* Layout: one black field ruled by hairlines. Hero = thesis beside a live floor map;
   then the problem, what we build, how we work, where we build, and the address to write to. */
:root {
  --ink: #0b0b0c;
  --raise: #111112;
  --line: #242220;
  --line-strong: #3a3632;
  --fg: #f2f0ec;
  --muted: #a39d96;
  --faint: #6f6a64;
  --accent: #ee5a1e;
  --display: 'Outfit', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
[id] {
  scroll-margin-top: 84px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 200;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}

.eyebrow {
  font: 400 12px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .sep {
  color: var(--faint);
  padding-inline: 0.5em;
}
.tag {
  font: 400 11.5px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.arrow {
  width: 18px;
  height: 10px;
  flex: none;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
a:hover .arrow {
  transform: translateX(3px);
}

/* Header */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.brand {
  display: block;
  line-height: 0;
  color: var(--fg);
}
.wm {
  width: 138px;
  height: auto;
  aspect-ratio: 826 / 182;
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}
.nav a:not(.btn-outline) {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:not(.btn-outline):hover {
  color: var(--fg);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font: 400 15px/1 var(--body);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s ease;
}
.btn-outline:hover {
  border-color: var(--fg);
}

/* Hero */
.hero {
  padding-block: clamp(56px, 9vw, 112px) clamp(64px, 9vw, 120px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
h1 {
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h1 .dot {
  color: var(--accent);
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 30em;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-top: 4px;
}
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: var(--fg);
  color: var(--ink);
  border-radius: 2px;
  font: 500 16px/1 var(--body);
  text-decoration: none;
}
.link-quiet {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-block: 4px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.link-quiet:hover {
  color: var(--fg);
  border-color: var(--fg);
}

/* Floor map */
.map {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--raise);
  border-radius: 2px;
}
.map-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  font: 400 11.5px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-bar:first-child {
  border-bottom: 1px solid var(--line);
}
.map-bar:last-child {
  border-top: 1px solid var(--line);
}
.map-bar b {
  font-weight: 400;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.map svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.m-grid {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.m-wall {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.78;
  stroke-width: 2;
  stroke-linecap: square;
}
.m-hatch {
  stroke: var(--line-strong);
  stroke-width: 1;
}
.m-keep {
  fill: url(#hatch);
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.m-col {
  fill: var(--raise);
  stroke: var(--fg);
  stroke-opacity: 0.6;
  stroke-width: 1.4;
}
.m-plan {
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.4;
  stroke-dasharray: 0.1 7;
  stroke-linecap: round;
}
.m-swath {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.075;
  stroke-width: 36;
  stroke-linejoin: round;
}
.m-trace {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.6;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.m-dock {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.4;
}
.m-label {
  font: 400 11px var(--mono);
  letter-spacing: 0.14em;
  fill: var(--faint);
}
.m-scale {
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.2;
}
.r-ring {
  fill: var(--raise);
  stroke: var(--accent);
  stroke-width: 2.2;
}
.r-core {
  fill: var(--accent);
}
.r-head {
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.r-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: scan 2.2s ease-out infinite;
}
@keyframes scan {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(4.6);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live i,
  .r-pulse {
    animation: none;
  }
  .r-pulse {
    opacity: 0;
  }
}

/* Sections */
.sec {
  padding-block: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--line);
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(40px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.sec-head .eyebrow {
  grid-column: 1 / -1;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.sec-sub {
  color: var(--muted);
  max-width: 34em;
}
h3 {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.muted {
  color: var(--muted);
}

/* The problem: ruled rows */
.rows {
  border-top: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px clamp(24px, 4vw, 56px);
  align-items: baseline;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
.row p {
  color: var(--muted);
  font-size: 16px;
}

/* What we build: three layers */
.layers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.layer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px clamp(20px, 3vw, 36px) 8px;
  min-width: 0;
}
.layer + .layer {
  border-left: 1px solid var(--line);
}
.layer:first-child {
  padding-left: 0;
}
.layer:last-child {
  padding-right: 0;
}
.icon {
  width: 44px;
  height: 44px;
  flex: none;
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon .a {
  stroke: var(--accent);
}
.layer .icon {
  margin-bottom: 14px;
}
.layer p.body {
  color: var(--muted);
  font-size: 16px;
}
.terms {
  display: flex;
  flex-wrap: wrap;
  margin-top: 6px;
  font: 400 12px/1.7 var(--mono);
  letter-spacing: 0.06em;
  color: var(--fg);
  opacity: 0.8;
}
.terms span:not(:last-child)::after {
  content: '/';
  color: var(--accent);
  padding-inline: 0.6em;
}

/* How we work: 2 × 2 ruled grid */
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.principle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 24px;
  align-content: start;
  padding: 36px clamp(20px, 3vw, 40px) 36px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.principle:nth-child(even) {
  padding-left: clamp(20px, 3vw, 40px);
  padding-right: 0;
  border-left: 1px solid var(--line);
}
.principle .icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
}
.principle p {
  color: var(--muted);
  font-size: 16px;
  max-width: 32em;
}

/* Built in India */
.india {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.india-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.india-copy p {
  color: var(--muted);
  max-width: 34em;
}
.rings {
  width: 100%;
  max-width: 360px;
  height: auto;
  justify-self: center;
  display: block;
}
.rings .ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.rings .ring-o {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}
.rings .tick {
  stroke: var(--faint);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.rings .r-small {
  font: 400 11px var(--mono);
  letter-spacing: 0.18em;
  fill: var(--faint);
}
.rings .r-big {
  font: 300 30px var(--display);
  fill: var(--fg);
  letter-spacing: -0.01em;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: end;
}
.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.contact-copy p {
  color: var(--muted);
  max-width: 32em;
}
.mail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.mail-big {
  font: 200 clamp(1.8rem, 3.6vw, 2.9rem)/1.15 var(--display);
  letter-spacing: -0.015em;
  user-select: all;
  overflow-wrap: anywhere;
}
.mail-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.copy {
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 8px 11px;
  cursor: pointer;
}
.copy:hover {
  color: var(--fg);
  border-color: var(--fg);
}
.mail-note {
  font-size: 14px;
  color: var(--faint);
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
}
.foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-block: 32px;
  font-size: 14px;
  color: var(--faint);
}
.foot .wm {
  width: 104px;
  color: var(--muted);
}
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

@media (max-width: 920px) {
  .hero-grid,
  .contact,
  .sec-head,
  .india {
    grid-template-columns: minmax(0, 1fr);
  }
  .layers,
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }
  .layer,
  .layer:first-child,
  .layer:last-child {
    padding: 32px 0 28px;
  }
  .layer + .layer {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .principle,
  .principle:nth-child(even) {
    padding: 30px 0;
    border-left: 0;
  }
  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .rings {
    justify-self: start;
    max-width: 280px;
  }
}
@media (max-width: 720px) {
  .nav a:not(.btn-outline) {
    display: none;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .wm {
    width: 116px;
  }
  .btn-outline {
    padding: 9px 14px;
    font-size: 14px;
  }
}
