:root {
  --bg: #f3f6fb;
  --bg-strong: #eaf1ff;
  --panel: rgba(255, 255, 255, 0.7);
  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, 0.06);
  --text: #101828;
  --muted: #526074;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-strong: #1d4ed8;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #eef3fb 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.5rem 0 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  font-size: 0.76rem;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

.brand-text {
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0 2.5rem;
}

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

.eyebrow,
.section-kicker,
.card-tag,
.panel-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.lead {
  margin-top: 1rem;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1rem;
}

.hero-metrics li {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.hero-metrics strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -0.05em;
}

.hero-metrics span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 0.92) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-label {
  background: rgba(148, 163, 184, 0.12);
  color: #dfeafc;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
}

.mini-stack {
  display: grid;
  gap: 0.85rem;
}

.mini-stack article {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.3rem;
}

.mini-stack h2 {
  color: #eff6ff;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.mini-stack p {
  color: rgba(191, 219, 254, 0.82);
  font-size: 0.8rem;
}

.main-content {
  padding: 1rem 0 3rem;
}

.projects {
  padding-top: 1.5rem;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-kicker {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-strong);
  margin-bottom: 0.7rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.05em;
}

.section-header p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(96, 165, 250, 0.22));
  font-size: 1.5rem;
}

.card-tag {
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card-title {
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.card-url {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

.card-desc {
  margin-top: 0.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.25);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-inner a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.card:focus-visible,
.btn:focus-visible,
.main-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.2rem, 1120px);
  }

  .topbar {
    padding: 0.9rem 1rem;
  }

  .main-nav {
    gap: 0.9rem;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

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

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

:root {
  --bg: #f7f7f5;
  --bg-strong: #f3e9df;
  --panel: #ffffff;
  --card-bg: #ffffff;
  --card-border: #e7e3de;
  --text: #292724;
  --muted: #74716d;
  --accent: #e17b2d;
  --accent-soft: #fff0e3;
  --accent-strong: #a94e12;
  --shadow: 0 8px 24px rgba(56, 43, 33, 0.07);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", "Avenir Next", sans-serif;
}

.container {
  width: min(1180px, calc(100% - 3rem));
}

.site-header {
  padding-top: 0.75rem;
  background: var(--bg);
}

.topbar {
  min-height: 3.25rem;
  padding: 0.25rem 0 0.75rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  border-bottom: 1px solid var(--card-border);
}

.brand {
  gap: 0.65rem;
  letter-spacing: 0;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: var(--accent-strong);
  box-shadow: none;
  font-size: 0.7rem;
  letter-spacing: 0;
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav {
  gap: 2rem;
  font-size: 0.88rem;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.footer-inner a:hover {
  color: var(--accent-strong);
}

.hero {
  display: block;
  min-height: 0;
  padding: 1.75rem 0 1.5rem;
}

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

.eyebrow,
.section-kicker {
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin-top: 0;
  font-family: "DM Sans", "Avenir Next", sans-serif;
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--accent);
  font-style: normal;
}

.lead {
  max-width: 540px;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 1.75rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration-color: #b9b6ab;
  text-underline-offset: 0.3rem;
}

.text-link span {
  color: var(--accent);
  font-size: 1.1rem;
}

.hero-index {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.4rem;
  color: var(--muted);
}

.index-number {
  color: var(--accent);
  font-family: "Newsreader", Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
}

.index-rule {
  height: 1px;
  background: #cfcbc0;
}

.index-caption {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.main-content {
  padding: 0 0 3.5rem;
}

.projects {
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.section-header {
  align-items: end;
  margin-bottom: 1.25rem;
}

.section-kicker {
  margin-bottom: 0.65rem;
}

.section-header h2 {
  font-family: "DM Sans", "Avenir Next", sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0;
}

.section-header p {
  max-width: 350px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  overflow: hidden;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 1px 3px rgba(56, 43, 33, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: #e9c9aa;
  box-shadow: var(--shadow);
}

.card:hover .thumbnail-placeholder,
.card:focus-visible .thumbnail-placeholder {
  filter: saturate(1.12);
}

.project-thumbnail {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  background: #f3e9df;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #f3e9df;
  color: var(--accent-strong);
  transition: filter 0.25s ease;
}

.thumbnail-placeholder span {
  font-family: "DM Sans", "Avenir Next", sans-serif;
  font-size: 2.6rem;
  font-style: normal;
  font-weight: 600;
}

.card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.8rem;
  padding: 0.9rem 1rem 1rem;
}

.card-topline {
  grid-column: 1 / -1;
  margin: 0 0 0.1rem;
}

.card-tag {
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.67rem;
  letter-spacing: 0.03em;
}

.card-title {
  font-family: "DM Sans", "Avenir Next", sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0;
}

.card-arrow {
  align-self: center;
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.card:hover .card-arrow,
.card:focus-visible .card-arrow {
  transform: translate(2px, -2px);
}

.card-url {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.card-desc {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.project-status {
  grid-column: 1 / -1;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--card-border);
  background: transparent;
}

.footer-inner {
  min-height: 4.5rem;
  padding: 1rem 0;
  font-size: 0.8rem;
}

.footer-inner a {
  font-weight: 500;
}

.card:focus-visible,
.main-nav a:focus-visible,
.brand:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 2.5rem, 680px);
  }

  .hero {
    padding: 1.5rem 0 1.25rem;
  }

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

@media (max-width: 560px) {
  .container {
    width: calc(100% - 2rem);
  }

  .site-header {
    padding-top: 0.5rem;
  }

  .topbar {
    justify-content: space-between;
    padding: 0.25rem 0 0.55rem;
  }

  .main-nav {
    order: initial;
    width: auto;
    gap: 1rem;
    font-size: 0.8rem;
  }

  .main-nav a:last-child {
    display: none;
  }

  .hero {
    padding: 1.1rem 0 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-header h2 {
    font-size: 1.55rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .main-content {
    padding-bottom: 3.5rem;
  }

  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

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