@font-face {
  font-family: "OPlus";
  src: url("/fonts/OPlusSans3-Medium.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono[wght].woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c111b;
  --surface: rgba(16, 23, 36, 0.92);
  --surface-soft: rgba(23, 32, 48, 0.72);
  --line: rgba(233, 211, 182, 0.28);
  --line-strong: rgba(241, 140, 110, 0.66);
  --text: #fffaf3;
  --muted: #b8b0aa;
  --cream: #e9d3b6;
  --accent: #f18c6e;
  --cyan: #44b5e8;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(68, 181, 232, 0.08), transparent 30rem),
    radial-gradient(circle at 88% 28%, rgba(241, 140, 110, 0.11), transparent 34rem),
    var(--bg);
  font-family: "OPlus", system-ui, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 17, 27, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner,
.page,
.footer-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 20px rgba(241, 140, 110, 0.24);
}

.brand span {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a,
.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 8px 13px;
  background: rgba(12, 17, 27, 0.44);
  font-size: 0.86rem;
  text-decoration: none;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(241, 140, 110, 0.1);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.32), 0 0 22px rgba(241, 140, 110, 0.16);
}

.site-nav a[aria-current="page"] {
  border-color: var(--line-strong);
  color: var(--accent);
}

.page {
  padding: 64px 0 78px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.panel,
.project-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
}

.hero-copy {
  padding: clamp(28px, 5vw, 60px);
}

.eyebrow,
.card-index {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.lead {
  max-width: 720px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.85;
}

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

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #11151f;
}

.hero-mark {
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(rgba(12, 17, 27, 0.35), rgba(12, 17, 27, 0.85)),
    url("/static/unlil-brand-v1.png") center / cover no-repeat;
}

.hero-mark strong {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 17, 27, 0.82);
  color: var(--cream);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
}

.section {
  margin-top: 54px;
}

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

.section-heading p {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.service-card,
.value-card {
  min-height: 180px;
  padding: 24px;
}

.service-card p,
.value-card p,
.project-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.service-card .card-index {
  display: block;
  margin-bottom: 30px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px;
}

.contact-panel p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.project-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 26px;
  text-decoration: none;
  transition: 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.36), 0 0 26px rgba(241, 140, 110, 0.16);
}

.project-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.project-card .arrow {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
}

.tag {
  border: 1px solid var(--line);
  padding: 4px 8px;
  color: var(--cream);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  background: var(--accent);
  color: #11151f;
  padding: 8px 12px;
}

.skip-link:focus {
  transform: none;
}

@media (max-width: 820px) {
  .hero,
  .grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    min-height: 220px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a {
    flex: 1;
    min-width: 72px;
    padding-inline: 8px;
  }

  .page {
    padding-top: 34px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .contact-panel,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-panel .actions {
    width: 100%;
  }

  .contact-panel .button {
    flex: 1;
  }

  .footer-inner {
    padding: 20px 0;
  }
}
