:root {
  --red: #b7192a;
  --ink: #17120f;
  --muted: #68615b;
  --paper: #f5efe4;
  --line: rgba(23, 18, 15, 0.14);
  --blue: #86bfdc;
  --white: #fffaf2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 5vw, 64px);
  color: var(--white);
}

.brand,
nav,
.language-switcher {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background-image: linear-gradient(
    225deg,
    rgb(192, 192, 192) 0%,
    rgb(192, 192, 192) 8%,
    rgb(192, 57, 43) 8%,
    rgb(192, 57, 43) 36%,
    rgb(255, 255, 255) 36%,
    rgb(255, 255, 255) 64%,
    rgb(127, 179, 213) 64%,
    rgb(127, 179, 213) 92%,
    rgb(192, 192, 192) 92%,
    rgb(192, 192, 192) 100%
  );
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

nav {
  gap: 24px;
  font-size: 0.95rem;
}

.language-switcher {
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 250, 242, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.language-switcher button {
  min-width: 42px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.is-active {
  background: var(--white);
  color: var(--ink);
}

nav a:hover,
footer a:hover,
.contact a:hover,
.board-grid a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  padding: 140px clamp(20px, 5vw, 64px) 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38) 54%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0) 42%),
    url("assets/ferialis-hero.png") 68% center / cover no-repeat;
}

.hero-copy {
  max-width: 760px;
}

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

h1 {
  margin: 0;
  font-size: clamp(3.3rem, 9vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero p:last-child {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 250, 242, 0.84);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.section,
.contact,
footer {
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}

.section {
  padding-top: 76px;
  padding-bottom: 76px;
}

.intro-section {
  padding-bottom: 42px;
}

.section-heading {
  max-width: 1040px;
  margin: 0 auto 28px;
}

.section-heading h2,
.details h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
}

.text-grid p,
.profile-grid p,
.details p:last-child,
.board-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.profile-grid article,
.board-grid article {
  background: var(--paper);
}

.profile-grid article {
  min-height: 230px;
  padding: 32px;
}

.profile-grid span {
  color: var(--red);
  font-weight: 800;
  font-size: 0.82rem;
}

h3 {
  margin: 38px 0 14px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.details {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 680px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding-top: 24px;
}

.details p:last-child {
  max-width: 620px;
  margin-top: 22px;
}

.color-emblem {
  justify-self: center;
  width: min(260px, 58vw);
  aspect-ratio: 1;
  display: block;
  border: 1px solid var(--line);
  border-radius: 9999px;
  object-fit: cover;
  object-position: 50% 68%;
  box-shadow: 0 20px 46px rgba(23, 18, 15, 0.16);
}

.board {
  padding-top: 44px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.board-grid article {
  min-height: 210px;
  padding: 30px;
}

.board-grid h3 {
  margin-top: 26px;
}

.board-grid a {
  display: inline-block;
  margin-top: 18px;
  color: var(--red);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-top: 44px;
  padding-bottom: 52px;
  border-top: 1px solid var(--line);
}

.contact p {
  margin: 0;
  color: var(--muted);
}

.contact a {
  font-size: clamp(1.45rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .text-grid,
  .profile-grid,
  .details,
  .board-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .hero {
    background-position: 74% center;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 18px;
  }

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

  nav {
    display: none;
  }

  .language-switcher {
    margin-left: auto;
  }

  .language-switcher button {
    min-width: 36px;
  }

  .hero {
    min-height: 760px;
    padding: 110px 18px 58px;
    background-position: 75% center;
  }

  .profile-grid article,
  .board-grid article {
    min-height: auto;
    padding: 28px;
  }

  h3 {
    margin-top: 28px;
  }

  .contact,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
