:root {
  color-scheme: light;
  --paper: #f3f1e9;
  --ink: #111714;
  --muted: #5a625e;
  --line: rgba(17, 23, 20, 0.16);
  --signal: #ff5a36;
  --mint: #8fffc1;
  --blue: #4169ff;
  --panel: rgba(255, 255, 255, 0.52);
  --shadow: 0 22px 70px rgba(20, 25, 22, 0.11);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 5%, rgba(143, 255, 193, 0.68), transparent 28rem),
    radial-gradient(circle at 4% 48%, rgba(65, 105, 255, 0.11), transparent 30rem),
    var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: var(--shell);
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand__mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font: 800 13px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  box-shadow: 7px 7px 0 var(--signal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  text-underline-offset: 5px;
}

.site-nav a:hover,
.site-nav a:focus-visible { text-decoration: underline; }

.lang-switch {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

main,
.site-footer { width: var(--shell); margin-inline: auto; }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 64px;
  align-items: center;
  padding: 84px 0 78px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font: 700 12px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.accent { color: var(--signal); }

.hero__lead {
  max-width: 660px;
  margin: 34px 0 0;
  color: #343c38;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button--primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--signal);
}

.button:hover,
.button:focus-visible { transform: translate(-2px, -2px); }

.button--primary:hover,
.button--primary:focus-visible { box-shadow: 8px 8px 0 var(--signal); }

.hero-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 450px;
  width: 100%;
  justify-self: end;
}

.hero-art__disc {
  position: absolute;
  inset: 8%;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 49.6%, var(--ink) 49.7%, var(--ink) 50.3%, transparent 50.4%),
    rgba(255,255,255,.2);
  box-shadow: var(--shadow);
}

.hero-art__disc::before,
.hero-art__disc::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-art__disc::before {
  width: 34%;
  aspect-ratio: 1;
  top: 12%;
  left: 13%;
  background: var(--blue);
  border: 2px solid var(--ink);
}

.hero-art__disc::after {
  width: 22%;
  aspect-ratio: 1;
  right: 14%;
  bottom: 17%;
  background: var(--mint);
  border: 2px solid var(--ink);
}

.hero-art__label {
  position: absolute;
  right: 0;
  top: 11%;
  z-index: 2;
  padding: 13px 16px;
  color: white;
  background: var(--ink);
  font: 700 12px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .08em;
  transform: rotate(7deg);
}

.hero-art__cross {
  position: absolute;
  left: 2%;
  bottom: 10%;
  color: var(--signal);
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
}

.section {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, .42fr) 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 54px;
}

.section-heading h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.project-card[href]::after {
  content: "↗";
  position: absolute;
  right: 26px;
  top: 20px;
  font-size: 28px;
}

.project-card:not(a) { cursor: default; }

.project-card__number {
  color: var(--muted);
  font: 700 12px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.project-card h3 {
  max-width: 510px;
  margin: 44px 0 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.project-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.project-card__tag {
  align-self: flex-start;
  margin-top: 28px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 700 11px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.principle {
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.principle:last-child { border-right: 0; }

.principle__index {
  color: var(--signal);
  font: 800 12px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.principle h3 {
  margin: 70px 0 14px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.principle p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
}

.about h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -0.06em;
}

.about__copy {
  color: #343c38;
  font-size: 20px;
  line-height: 1.65;
}

.about__copy p { margin: 0 0 20px; }

.site-footer {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong { color: var(--ink); }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.site-footer a { text-underline-offset: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art__disc { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-12px) rotate(2deg); } }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 28px, 680px); }
  .site-header { min-height: 74px; }
  .site-nav > a:not(.lang-switch) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 58px; padding: 70px 0; }
  .hero-art { max-width: 360px; justify-self: center; }
  .section { padding: 78px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .project-grid, .about { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
  .principle h3 { margin-top: 36px; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(48px, 15vw, 68px); }
  .brand__text { font-size: 15px; }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .project-card { min-height: 280px; padding: 24px; }
  .site-footer { grid-template-columns: 1fr; padding: 42px 0; }
  .site-footer__links { justify-content: flex-start; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #101512;
    --ink: #eff5ef;
    --muted: #aab4ad;
    --line: rgba(239, 245, 239, 0.17);
    --panel: rgba(255, 255, 255, 0.045);
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  }
  body {
    background:
      radial-gradient(circle at 82% 5%, rgba(48, 145, 91, 0.3), transparent 28rem),
      radial-gradient(circle at 4% 48%, rgba(65, 105, 255, 0.18), transparent 30rem),
      var(--paper);
  }
  .hero__lead, .about__copy { color: #d6ded8; }
  .project-card:hover, .project-card:focus-visible { background: rgba(255,255,255,.085); }
  .button--primary { color: #101512; background: var(--ink); }
}
