:root {
  --bg: #ffffff;
  --ink: #0a121a;
  --muted: #58616b;
  --line: #d9dee2;
  --line-soft: #edf0f2;
  --accent: #118b37;
  --accent-dark: #0a6427;
  --max: 1280px;
  --header-height: 72px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.site-footer,
.section-band {
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 clamp(20px, 3vw, 40px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.site-header[data-scrolled] {
  box-shadow: 0 10px 34px rgba(10, 18, 26, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: clamp(1.65rem, 2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  min-width: 0;
  color: #111820;
  font-size: 1rem;
  font-weight: 520;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.section-band {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(560px, 0.96fr) minmax(460px, 1.04fr);
  align-items: center;
  min-height: clamp(470px, 36vw, 540px);
  padding: clamp(30px, 4vw, 58px) clamp(24px, 8vw, 128px)
    clamp(24px, 3.2vw, 44px);
}

.hero-copy {
  max-width: 680px;
  justify-self: start;
  min-width: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 670px;
  font-size: clamp(3.35rem, 4.45vw, 5rem);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 470px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid #111820;
  font-size: 1.02rem;
  font-weight: 520;
  line-height: 1;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.signal-map {
  width: min(100%, 760px);
  margin-left: auto;
  min-width: 0;
}

.signal-map svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.signal-map pattern path {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 1;
}

.axis,
.ticks path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}

.axis-head-x,
.axis-head-y,
.data-points rect {
  fill: var(--ink);
}

.orbit {
  fill: none;
  stroke: #bac3cb;
  stroke-width: 1.1;
}

.orbit-wide,
.guide {
  fill: none;
  stroke: #8b949e;
  stroke-dasharray: 2 5;
  stroke-width: 1.15;
}

.arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.25;
}

.signal-line,
.angle-stem {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.65;
}

.data-points rect:first-child {
  fill: var(--accent);
}

.angle-label {
  fill: var(--accent);
  font-family: var(--sans);
  font-size: 39px;
  font-weight: 520;
}

.focus,
.work,
.contact {
  display: grid;
  grid-template-columns: minmax(170px, 240px) 1fr;
  gap: clamp(30px, 4vw, 60px);
  padding: clamp(34px, 4vw, 56px) clamp(24px, 8vw, 128px);
}

h2 {
  font-size: clamp(2.7rem, 4.4vw, 4.6rem);
  line-height: 0.96;
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.focus-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  min-height: 114px;
  padding: 0 clamp(10px, 1.1vw, 16px);
  border-left: 1px solid var(--line);
}

.focus-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.35;
}

h3 {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.25;
}

.focus-item p,
.principles p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principles article {
  min-height: 116px;
  padding: 0 clamp(20px, 2.5vw, 36px);
  border-left: 1px solid var(--line);
}

.principles article:first-child {
  border-left: 0;
  padding-left: 0;
}

.principles span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 680;
  line-height: 1;
}

.contact {
  align-items: start;
}

.contact-copy {
  padding-top: 6px;
}

.contact-copy p {
  max-width: 680px;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  line-height: 1.35;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  color: var(--accent);
  font-size: 1.08rem;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.email-link span {
  font-size: 1.3rem;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 clamp(20px, 3vw, 40px);
}

.site-footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
  }

  .hero-copy {
    justify-self: start;
  }

  .signal-map {
    margin-right: auto;
    margin-left: 0;
  }

  .focus-list,
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
  }

  .focus-item:nth-child(3),
  .principles article:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    font-size: 1.55rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 18px;
    width: 100%;
    max-width: none;
    font-size: 0.9rem;
  }

  .nav a {
    min-height: 30px;
  }

  .hero {
    padding-top: 42px;
    overflow: hidden;
  }

  .hero > * {
    min-width: 0;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  h1 {
    font-size: clamp(3.25rem, 15vw, 5rem);
  }

  .hero-copy p {
    max-width: min(100%, 21rem);
    margin-top: 22px;
    font-size: 1.08rem;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .signal-map {
    width: 100%;
  }

  .signal-map svg {
    width: 560px;
    min-width: 0;
    transform: translateX(-100px);
  }

  .signal-map {
    overflow: hidden;
  }

  .focus,
  .work,
  .contact {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .focus-list,
  .principles {
    grid-template-columns: 1fr;
  }

  .focus-item,
  .principles article,
  .focus-item:nth-child(3),
  .principles article:nth-child(3) {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .focus-item:first-child,
  .principles article:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .focus-item {
    grid-template-columns: 48px 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding-top: 16px;
    padding-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
