:root {
  color-scheme: light;
  --bg: #f7f5f1;
  --paper: #fffdfa;
  --ink: #1d2422;
  --muted: #5e6762;
  --line: #d8d2c8;
  --accent: #146c67;
  --accent-2: #9b2d46;
  --sandbox: #745a12;
  --service: #4c5f86;
  --shadow: 0 18px 45px rgba(29, 36, 34, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.86);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.language-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #d7d0c5;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.switch-track::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 4px rgba(29, 36, 34, 0.25);
  content: "";
  transition: transform 160ms ease;
}

.language-toggle input:checked + .switch-track {
  border-color: var(--accent);
  background: var(--accent);
}

.language-toggle input:checked + .switch-track::after {
  transform: translateX(20px);
}

.language-toggle input:focus-visible + .switch-track {
  outline: 3px solid rgba(20, 108, 103, 0.24);
  outline-offset: 3px;
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  display: block;
  padding: clamp(38px, 8vw, 80px) 0 34px;
}

.intro-copy {
  max-width: 680px;
}

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

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.65;
}

.section {
  padding: 34px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-note {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  letter-spacing: 0;
}

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

.card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.card.service {
  min-height: 190px;
}

.card.sandbox {
  min-height: 190px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.card p {
  color: var(--muted);
  line-height: 1.55;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

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

.service .button {
  border-color: var(--service);
  background: var(--service);
}

.creative-sandbox .button {
  border-color: var(--sandbox);
  background: var(--sandbox);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  font-weight: 800;
  text-decoration: none;
}

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

  .intro {
    padding-top: 34px;
  }
}

@media (max-width: 620px) {
  .topbar,
  footer,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .card {
    min-height: 0;
  }
}
