/* Kaynomics AG — institutional, after the v3 mark and Benchmark's restraint. */

:root {
  --bg: #F3F1EC;
  --ink: #161615;
  --muted: #75726B;
  --soft: #9A978F;
  --accent: #2F4A40;
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.email {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.4s ease;
}

.email:hover,
.email:focus-visible { background-size: 100% 1px; }

.lang button:focus-visible,
.email:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.lang {
  position: fixed;
  top: 1.15rem;
  right: 1.35rem;
  z-index: 2;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  font-weight: 500;
}

.lang button {
  background: none;
  border: 0;
  padding: 0.15rem 0.1rem;
  color: var(--soft);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}

.lang button.is-active,
.lang button:hover { color: var(--ink); }

.lang .sep {
  color: var(--soft);
  margin: 0 0.28rem;
  font-weight: 400;
}

/* Hero — the v3 mark, given the first screen */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 1.5rem 4rem;
  animation: fade 0.85s ease both;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.05rem);
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}

.rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
  margin: 2.15rem auto 2rem;
  border: 0;
}

.tagline {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--ink);
  max-width: 20.5rem;
  margin: 0 auto;
}

/* Sections — narrow, centred, plenty of air */
.wrap {
  width: min(36rem, calc(100% - 3rem));
  margin: 0 auto;
  text-align: center;
}

.section {
  padding: 5.25rem 0;
  animation: fade 0.85s ease both;
}

.section + .section {
  border-top: 1px solid rgba(22, 22, 21, 0.08);
}

.eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.35rem;
}

.section p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 32em;
  margin: 0 auto;
}

.section p + p { margin-top: 1rem; }

.board {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  width: 100%;
  max-width: 26rem;
  margin: 2.25rem auto 0;
}

.board .name {
  display: block;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.board .role {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.4;
}

.contact-mail {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

footer {
  padding: 4.5rem 1.5rem 2.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 540px) {
  .hero { padding: 4.5rem 1.75rem 3.25rem; }
  .hero h1 {
    font-size: clamp(2.05rem, 8.2vw, 2.5rem);
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }
  .rule { margin: 1.85rem auto 1.75rem; }
  .wrap { width: min(36rem, calc(100% - 3.5rem)); }
  .section { padding: 3.75rem 0; }
  .board {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .section { animation: none; }
}
