:root {
  --bg: #0d0d0c;
  --bg-2: #141412;
  --fg: #ecebe4;
  --muted: #8f8e85;
  --line: #2a2a26;
  --accent: #ff5b1f;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.topbar.is-scrolled {
  background: rgba(13, 13, 12, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.logo {
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.02em;
  font-size: 15px;
  margin-right: auto;
}
.logo span { opacity: .5; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; display: inline-flex; gap: 6px; }
.nav a i { font-style: normal; opacity: .45; }
.nav a:hover span { text-decoration: underline; text-underline-offset: 4px; }

.lang { display: flex; align-items: center; gap: 6px; }
.lang span { opacity: .4; }
.lang button {
  all: unset;
  cursor: pointer;
  padding: 2px 4px;
  opacity: .45;
}
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang button:focus-visible { outline: 1px solid var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  cursor: crosshair;
  isolation: isolate;
}
.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
}
.hero__meta {
  position: absolute;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
  pointer-events: none;
}
.hero__meta--tl { left: var(--gutter); }
.hero__meta--tr { right: var(--gutter); text-align: right; }
.readout { color: var(--accent); font-variant-numeric: tabular-nums; }

.hero__copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(28px, 6vh, 64px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  pointer-events: none;
}
.hero__title {
  margin: 0;
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub {
  margin: 0;
  max-width: 34ch;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.hero__scroll b { display: inline-block; color: var(--accent); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll b { animation: none; } }

/* ---------- sections ---------- */
.section {
  display: grid;
  grid-template-columns: minmax(140px, 3fr) 9fr;
  gap: 32px;
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  border-top: 1px solid var(--line);
}
.section__label {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section__label span:first-child { color: var(--accent); }

.section__title {
  margin: 0 0 clamp(40px, 7vh, 72px);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(36px, 6.4vw, 96px);
  line-height: .95;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

/* services */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color .35s ease;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.7, 0, .2, 1);
}
.service:hover { color: var(--bg); }
.service:hover::before { transform: scaleX(1); }
.service:hover .service__idx,
.service:hover .service__desc,
.service:hover .service__bin { color: var(--bg); }

.service__idx, .service__bin {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  transition: color .35s ease;
}
.service__bin { letter-spacing: .15em; }
.service__name {
  margin: 0;
  font-weight: 700;
  font-stretch: 115%;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.service__desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  transition: color .35s ease;
}

/* about */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}
.about__lead {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.45;
}
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.principles li {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.principles__n { grid-row: span 2; font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 4px; }
.principles h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; font-stretch: 110%; }
.principles p { margin: 0; color: var(--muted); font-size: 15px; }

/* contact */
.section--contact { background: var(--bg-2); }
.contact__note { margin: -24px 0 40px; max-width: 46ch; color: var(--muted); }
.contact__mail {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(22px, 6.2vw, 92px);
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  overflow-wrap: anywhere;
  color: var(--fg);
  border-bottom: 2px solid var(--accent);
  padding-bottom: .12em;
  transition: color .2s ease;
}
.contact__mail:hover { color: var(--accent); }

/* footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .section { grid-template-columns: 1fr; gap: 20px; }
  .section__label { position: static; }
  .service { grid-template-columns: 48px 1fr; row-gap: 8px; }
  .service__desc { grid-column: 2; }
  .service__bin { display: none; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .nav a i { display: none; }
  .nav { gap: 14px; }
  .hero__meta { top: 58px; }
  .hero__meta--tl { display: none; }
  .hero__copy { flex-direction: column; align-items: flex-start; gap: 12px; bottom: 52px; }
  .contact__note { margin-top: -16px; }
}
@media (max-width: 420px) {
  .nav { display: none; }
}
