:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.095);
  --text: #f6f0e6;
  --muted: #a8aaa8;
  --line: rgba(246, 240, 230, 0.15);
  --accent: #96c0ff;
  --accent-2: #b9d27a;
  --accent-3: #d5966f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --topbar-bg: rgba(11, 13, 16, 0.62);
  --canvas-ink: 246, 240, 230;
  --canvas-accent: 150, 192, 255;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --surface: rgba(20, 28, 36, 0.055);
  --surface-strong: rgba(20, 28, 36, 0.095);
  --text: #15191d;
  --muted: #646c70;
  --line: rgba(20, 28, 36, 0.16);
  --accent: #315f9d;
  --accent-2: #60792d;
  --accent-3: #a85f3b;
  --shadow: 0 26px 80px rgba(38, 46, 55, 0.14);
  --topbar-bg: rgba(244, 241, 234, 0.72);
  --canvas-ink: 21, 25, 29;
  --canvas-accent: 49, 95, 157;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  transition:
    background-color 420ms ease,
    color 420ms ease;
}

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

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

button {
  font: inherit;
}

.field-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: var(--bg);
  transition: background-color 420ms ease;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 70px);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 8px clamp(8px, 3vw, 34px);
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--topbar-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
  transition:
    background 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  transition:
    background 420ms ease,
    border-color 420ms ease;
}

.nav {
  display: inline-flex;
  justify-self: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.nav a,
.language,
.icon-button {
  min-height: 34px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
}

.toolbar {
  display: inline-flex;
  justify-self: end;
  gap: 8px;
}

.language,
.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.theme-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

:root[data-theme="dark"] .theme-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  top: -4px;
  right: -4px;
  border-radius: 50%;
  background: var(--topbar-bg);
}

:root[data-theme="light"] .theme-icon::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.34;
}

.nav a:hover,
.language:hover,
.icon-button:hover {
  color: var(--text);
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: 42px;
  padding: 132px clamp(20px, 6vw, 80px) 68px;
}

.hero-content {
  max-width: 940px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1040px;
  margin-bottom: 24px;
  font-size: 6.6rem;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 4.35rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.17rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 18px 48px rgba(var(--canvas-ink), 0.16);
}

.button.primary:hover {
  background: var(--accent-2);
  box-shadow: 0 18px 54px rgba(var(--canvas-accent), 0.2);
}

.button.subtle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.hero-note {
  align-self: end;
  display: grid;
  gap: 10px;
  max-width: 390px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transition:
    background 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease;
}

.hero-note span {
  color: var(--accent-3);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-note p {
  margin-bottom: 0;
  font-size: 1.14rem;
  line-height: 1.45;
}

.signal-bar {
  border-block: 1px solid var(--line);
  background: rgba(var(--canvas-ink), 0.035);
  transition:
    background 420ms ease,
    border-color 420ms ease;
}

.signal-grid {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0;
}

.signal-grid div {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(var(--canvas-ink), 0.05), rgba(var(--canvas-ink), 0.018)),
    var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.signal-grid div::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.signal-grid div:nth-child(2)::before {
  background: var(--accent-2);
}

.signal-grid div:nth-child(3)::before {
  background: var(--accent-3);
}

.signal-grid div:nth-child(4)::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.signal-grid div:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--surface-strong);
}

.signal-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-grid strong {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.35;
}

.section,
.work,
.contact,
.easter-hint {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.66fr);
  gap: 76px;
}

.section-copy {
  display: grid;
  gap: 22px;
  padding-top: 10px;
}

.section-copy p,
.work-item p,
.contact-copy p,
.easter-hint p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.work {
  padding: 12px 0 94px;
}

.work-heading {
  max-width: 800px;
  margin-bottom: 42px;
}

.work-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.work-item {
  display: grid;
  grid-template-columns: 72px minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 30px;
  background: rgba(var(--canvas-ink), 0.03);
  backdrop-filter: blur(18px);
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.work-item:hover {
  background: var(--surface-strong);
}

.work-item span {
  color: var(--accent-3);
  font-weight: 850;
}

.easter-hint {
  padding: 0 0 84px;
}

.easter-hint p {
  max-width: 680px;
  padding-left: 18px;
  border-left: 1px solid var(--accent);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.66fr);
  gap: 76px;
  align-items: end;
  padding: 104px 0 118px;
}

.contact-copy h2 {
  margin-bottom: 24px;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a,
.contact-links div {
  display: grid;
  gap: 5px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.contact-links a:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--surface-strong);
}

.contact-links span {
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-links strong {
  font-size: 1.12rem;
}

.egg-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: min(340px, calc(100vw - 44px));
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--topbar-bg);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  backdrop-filter: blur(22px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.egg-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.egg-mode .brand-mark,
body.egg-mode .theme-icon {
  animation: eggPulse 900ms ease-in-out infinite alternate;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes eggPulse {
  from {
    border-color: var(--line);
    box-shadow: none;
  }

  to {
    border-color: var(--accent-2);
    box-shadow: 0 0 26px rgba(var(--canvas-accent), 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 4.85rem;
  }

  h2 {
    font-size: 3.2rem;
  }

  .hero-copy {
    font-size: 1.12rem;
  }

  .hero-note {
    max-width: 560px;
  }

  .work-item {
    grid-template-columns: 56px 1fr;
  }

  .work-item p {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 12px;
  }

  .topbar::before {
    inset: 6px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav {
    gap: 0;
  }

  .nav a {
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .toolbar {
    gap: 5px;
  }

  .language,
  .icon-button {
    min-width: 38px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 84svh;
    padding: 112px 20px 46px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.24rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .section,
  .work,
  .contact,
  .easter-hint,
  .signal-grid {
    width: min(100% - 32px, 1160px);
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-grid div {
    min-height: auto;
    padding: 18px;
  }

  .section,
  .contact {
    padding: 76px 0;
  }

  .work {
    padding-bottom: 72px;
  }

  .split,
  .contact {
    gap: 34px;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  .work-item p {
    grid-column: auto;
  }

  footer {
    flex-direction: column;
  }
}
