:root {
  --ink: #141a17;
  --ink-soft: #2a332e;
  --paper: #e8e2d4;
  --brass: #b08d3e;
  --moss: #3d5c4a;
  --muted: #6a726c;
  --line: rgba(20, 26, 23, 0.14);
  --font-sans: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, serif;
}

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

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(176, 141, 62, 0.18), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(61, 92, 74, 0.16), transparent 50%),
    linear-gradient(165deg, #f3eee3 0%, var(--paper) 42%, #ddd4c0 100%);
  background-attachment: fixed;
  line-height: 1.55;
}

.plane {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 40%, rgba(176, 141, 62, 0.06) 70%, transparent 90%);
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateX(-1.5%);
  }
  to {
    transform: translateX(1.5%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  color: var(--moss);
}

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

.top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  animation: rise 0.55s ease both;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}

.lang__label {
  color: var(--muted);
  white-space: nowrap;
}

.lang__select {
  max-width: 11.5rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--paper) 88%, var(--ink));
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.3;
  cursor: pointer;
}

.lang__select:hover,
.lang__select:focus-visible {
  border-color: color-mix(in srgb, var(--ink) 36%, transparent);
  outline: none;
}

.lang__select:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--moss) 35%, transparent);
}

.office-link {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.office-link:hover {
  color: var(--moss);
}

.wrap {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  padding: clamp(2.5rem, 10vh, 5.5rem) 0 3.25rem;
  animation: rise 0.7s ease both;
}

.brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

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

.brand a:hover {
  color: var(--moss);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.8vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin-top: 1.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.35rem;
  border: none;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: var(--moss);
  transform: translateY(-1px);
  color: var(--paper);
}

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

.cta--ghost {
  background: transparent;
  color: var(--ink-soft);
  padding-left: 0;
  padding-right: 0;
}

.cta--ghost:hover {
  background: transparent;
  color: var(--moss);
  transform: none;
}

section {
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  animation: rise 0.75s ease both;
}

section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

section > p {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
}

.uses,
.modes,
.why,
.steps,
.cases {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.uses h3,
.modes h3,
.cases h3,
.why strong {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
}

.uses p,
.modes p,
.cases p,
.why p,
.steps p {
  margin: 0;
  color: var(--ink-soft);
}

.modes .best,
.cases .best {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

.cases .payoff {
  margin-bottom: 0.35rem;
}

.cases .not-for {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.cases li {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}

.cases li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.why li {
  padding-left: 0;
}

.steps {
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 2.4rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: rgba(61, 92, 74, 0.12);
  color: var(--moss);
  font-size: 0.85rem;
  font-weight: 600;
}

.steps h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.picks-wrap {
  margin: 1.35rem 0 0;
  overflow-x: auto;
}

.picks {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.picks th,
.picks td {
  padding: 0.65rem 0.75rem 0.65rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.picks thead th {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
}

.picks tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.picks td {
  color: var(--ink-soft);
}

.picks code {
  font-size: 0.86em;
  word-break: break-all;
}

.connect-block {
  margin: 1.1rem 0 0.75rem;
  padding: 0.95rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(20, 26, 23, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
  white-space: pre;
}

.connect-block code {
  font: inherit;
}

.connect-note {
  margin: 0;
  max-width: 38rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.connect-note code {
  font-size: 0.86em;
}

.final {
  text-align: left;
}

.final .cta-row {
  margin-top: 1.4rem;
}

.site-footer {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  animation: rise 0.7s ease both;
}

.site-footer a {
  color: var(--moss);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .hero h1 {
    max-width: none;
  }
}
