:root {
  --bg: #f4f3ef;
  --ink: #121211;
  --ink-soft: #12121199;
  --ink-faint: #12121133;
  --rule: #1212111a;
  --accent: #1f8a5b;

  --headline: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --pad-section: 96px;
  --pad-service: 18px;
  --gap-grid: 48px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }

/* ── layout ── */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 720px) { .page { padding: 0 24px; } }

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── header ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 60px;
}
.brand {
  font-family: var(--headline);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.nav {
  display: flex;
  gap: 28px;
  justify-self: center;
}
.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
}
.nav a:hover { color: var(--ink); }
.nav a::before {
  content: attr(data-num);
  color: var(--ink-faint);
  margin-right: 8px;
  font-size: 10px;
}
.header-meta {
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-meta .live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (max-width: 720px) {
  .nav, .header-meta { display: none; }
  .header-inner { grid-template-columns: 1fr; }
}

/* ── hero ── */
section.hero {
  padding-top: 180px;
  padding-bottom: 140px;
  position: relative;
}
.hero-grid {
  display: block;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
}
.hero-meta .k { color: var(--ink-faint); }
.hero-statement {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-statement em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}
.hero-statement .accent-word {
  color: var(--accent);
}
.hero-sub {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  padding-left: calc((100% / 12) + 64px);
}
.hero-sub p {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 32ch;
}
.hero-sub .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 12px;
  display: block;
}
.hero-marquee {
  margin-top: 120px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 18px 0;
  display: flex;
  gap: 60px;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 60s linear infinite;
  flex-shrink: 0;
}
.marquee-track span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
.marquee-track span::after {
  content: "·";
  margin-left: 60px;
  color: var(--accent);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-sub  { grid-template-columns: 1fr; padding-left: 0; gap: 28px; }
  section.hero { padding-top: 140px; padding-bottom: 100px; }
}

/* ── section header ── */
.section-head {
  display: grid;
  grid-template-columns: 1fr 11fr;
  gap: 64px;
  align-items: baseline;
  padding-bottom: 40px;
}
.section-head .index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-head h2 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.section-head h2 em { font-style: normal; color: var(--accent); font-weight: 500; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* ── services (base row styles, kept for fallback) ── */
section.services {
  padding: var(--pad-section) 0;
  border-top: 1px solid var(--rule);
}
.service-list {
  border-top: 1px solid var(--ink);
}
.service {
  display: grid;
  grid-template-columns: 56px 1.2fr 1.7fr 110px;
  gap: 28px;
  align-items: center;
  padding: var(--pad-service) 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding-left .35s ease, color .35s ease;
  position: relative;
}
.service:hover { padding-left: 20px; }
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s cubic-bezier(.6,.05,.2,1);
  z-index: -1;
}
.service:hover::after { transform: scaleY(1); transform-origin: top; }
.service:hover,
.service:hover * { color: var(--bg) !important; }
.service:hover .service-arrow { transform: translateX(8px) rotate(-45deg); }

.service-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.service-name {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.service-name em { font-style: normal; font-weight: 500; }
.service-desc {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}
.service-tag {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.service-arrow {
  display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
  position: relative;
  transition: transform .35s ease;
}
.service-arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -4px;
  width: 8px; height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ── services grid (active tweaked layout) ── */
.service-list {
  border-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px;
  border: 0;
  background: var(--bg);
  min-height: 180px;
  transition: background .25s ease, color .25s ease;
}
.service:hover {
  padding-left: 24px;
  background: var(--ink);
}
.service::after { display: none; }
.service-num { margin-bottom: -4px; }
.service-name {
  font-size: clamp(20px, 1.8vw, 24px);
  flex: 0 0 auto;
}
.service-desc {
  display: block;
  flex: 1;
  font-size: 12px;
}
.service-tag {
  justify-self: start;
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 1100px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .service-list { grid-template-columns: 1fr; }
  .service-tag  { display: none; }
}

/* ── contact ── */
section.contact {
  padding: var(--pad-section) 0 64px;
  border-top: 1px solid var(--rule);
}
.contact-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.map-wrap {
  aspect-ratio: 4 / 3.2;
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #e6e2d8;
}
.map-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.95) brightness(1.02);
  transition: filter .6s ease;
}
.map-wrap:hover iframe { filter: grayscale(0.3) contrast(1) brightness(1); }
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
.map-pin .ring {
  width: 32px; height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.map-pin .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.map-pin .stick {
  width: 1px; height: 24px;
  background: var(--ink);
  margin: 0 auto;
}
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.info-block .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-block .lbl::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--ink-faint);
}
.info-block .val {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.info-block .val em { font-style: normal; }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.info-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-line .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.info-line .v {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.info-line a.v { transition: color .2s; }
.info-line a.v:hover { color: var(--accent); }
@media (max-width: 900px) {
  .contact-body { grid-template-columns: 1fr; gap: 40px; }
  .map-wrap { aspect-ratio: 4 / 3; }
}

/* ── footer ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
  margin-top: 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-mark {
  font-family: var(--headline);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
