@font-face {
  font-family: "Skaldos Sans";
  src: url("fonts/OpenSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Skaldos Sans";
  src: url("fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Skaldos Sans";
  src: url("fonts/OpenSans-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0b0e13;
  --night-soft: #111721;
  --surface: rgba(24, 29, 38, 0.78);
  --surface-strong: #181d26;
  --line: rgba(241, 229, 202, 0.16);
  --bone: #f4efe5;
  --muted: #aaa99f;
  --gold: #c4a466;
  --gold-light: #efd9a4;
  --roba: #00a77b;
  --roba-light: #72e0bd;
  --dix: #a72c70;
  --dix-light: #f083b8;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 2%, rgba(196, 164, 102, 0.10), transparent 31rem),
    linear-gradient(180deg, #0d1118 0%, var(--night) 46%, #090b0f 100%);
  color: var(--bone);
  font-family: "Skaldos Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; }
a:hover { color: var(--gold-light); }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 19, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--bone);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.brand img { width: 38px; height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.nav-links a { text-decoration: none; }
.language { color: var(--gold-light) !important; font-weight: 700; }

.hero {
  min-height: min(76vh, 900px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(36px, 8vw, 110px);
  padding-block: clamp(90px, 14vw, 170px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 25px;
  font-size: clamp(3.2rem, 8vw, 7.7rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

h1 span { color: var(--gold); }

.lead {
  max-width: 720px;
  margin-bottom: 34px;
  color: #cfcdc5;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: #15120d;
  font-weight: 800;
  text-decoration: none;
}

.button:hover { background: var(--gold-light); color: #15120d; }
.button.secondary { background: transparent; color: var(--bone); border-color: var(--line); }
.button.secondary:hover { border-color: var(--gold); color: var(--gold-light); }

.sigil {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(196, 164, 102, 0.10), transparent 62%);
  clip-path: polygon(50% 0, 96% 22%, 93% 76%, 50% 100%, 7% 76%, 4% 22%);
}

.sigil::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(196, 164, 102, 0.19);
  clip-path: inherit;
}

.sigil img { width: 62%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.46)); }

section { padding-block: clamp(72px, 10vw, 120px); }
.section-line { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 40px;
  margin-bottom: 48px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-copy { max-width: 720px; color: var(--muted); }

.publication {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
  padding: clamp(30px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(29, 108, 106, 0.13), transparent 48%), var(--surface);
}

.publication-cover {
  display: block;
  transform: rotate(-1.25deg);
  border: 1px solid rgba(241, 229, 202, 0.25);
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.46);
  transition: transform 300ms ease;
}

.publication-cover:hover { transform: rotate(0) translateY(-4px); }
.publication-cover img { display: block; width: 100%; height: auto; }
.publication-copy h3 { max-width: 700px; margin-bottom: 18px; font-size: clamp(1.8rem, 3.4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.035em; }
.publication-copy > p:not(.eyebrow) { max-width: 720px; color: var(--muted); }

.publication-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.publication-meta div { padding: 15px 17px; background: var(--night-soft); }
.publication-meta dt { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.publication-meta dd { margin: 3px 0 0; color: var(--bone); font-weight: 600; }

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

.project {
  position: relative;
  overflow: hidden;
  min-height: 630px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-art {
  position: relative;
  height: 310px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #090d11;
}

.project-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 12, 17, 0.72));
}

.project-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.project:hover .project-art img { transform: scale(1.025); }

.project-copy { flex: 1; display: flex; flex-direction: column; padding: 30px; }
.project-copy h3 { margin-bottom: 10px; font-size: 2.4rem; letter-spacing: -0.04em; }
.project-copy p { color: var(--muted); }
.project-copy .tagline { color: var(--bone); font-size: 1.05rem; }
.project-copy a { margin-top: auto; font-weight: 800; text-underline-offset: 5px; }
.project.roba h3, .project.roba a { color: var(--roba-light); }
.project.dix h3, .project.dix a { color: var(--dix-light); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.principle { min-height: 210px; padding: 28px; background: var(--night-soft); }
.principle b { display: block; margin-bottom: 12px; font-size: 1.08rem; }
.principle p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.number { display: block; margin-bottom: 26px; color: var(--gold); font-family: ui-monospace, monospace; }

.about-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(196, 164, 102, 0.07), transparent 48%), var(--surface);
}

.about-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 164, 102, 0.12), transparent 67%);
}

.about-mark img { width: 56%; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.4)); }
.about-copy { max-width: 760px; }
.about-copy p { color: var(--muted); }
.about-copy strong { color: var(--bone); }
.about-lead { color: var(--bone) !important; font-size: clamp(1.08rem, 2vw, 1.28rem); }

.credentials {
  display: grid;
  gap: 8px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  color: var(--bone);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
}

.credentials li { padding-left: 18px; position: relative; }
.credentials li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.text-link { color: var(--gold-light); font-weight: 800; text-underline-offset: 5px; }

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.roadmap article { padding: 28px; border-left: 2px solid var(--gold); background: var(--surface); }
.roadmap h3 { margin-bottom: 10px; }
.roadmap p, .roadmap li { color: var(--muted); }
.roadmap ul { margin: 0; padding-left: 19px; }

.notice {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}

.site-footer { padding-block: 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 18px; }

@media (max-width: 820px) {
  .nav-links a:not(.language) { display: none; }
  .hero, .section-head { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  h1 { font-size: clamp(3rem, 15vw, 5.2rem); }
  .sigil { width: min(76vw, 390px); margin-inline: auto; }
  .project-grid, .principles, .roadmap, .about-card, .publication { grid-template-columns: 1fr; }
  .project { min-height: 0; }
  .about-mark { width: min(58vw, 260px); margin-inline: auto; }
  .publication-cover { width: min(70vw, 360px); margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
