:root {
  --bg: #ececeb;
  --surface: #ffffff;
  --surface-2: #f7f7f6;
  --text: #111111;
  --muted: #555555;
  --line: #1a1a1a;
  --line-soft: #d6d6d3;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

header,
nav,
main,
footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

header.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0 20px;
}

.logo {
  flex: 0 0 auto;
}

.logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.logo img {
  width: 100%;
  height: auto;
}

.header-text h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.header-text p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.header-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav {
  margin-bottom: 22px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
}

nav a:hover,
nav a.active {
  background: var(--line);
  color: #ffffff;
}

main {
  padding-bottom: 36px;
}

section,
.card,
.project,
.timeline,
.legal-box {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

section {
  padding: 28px;
  margin-bottom: 22px;
}

h2, h3 {
  margin-top: 0;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

p.lead {
  font-size: 1.08rem;
  color: #2c2c2c;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 32px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(247,247,246,0.96));
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border: 22px solid rgba(17,17,17,0.05);
  border-radius: 32px;
  transform: rotate(28deg);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(255,255,255,0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  background: var(--surface);
}

.btn.primary {
  background: var(--line);
  color: #ffffff;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

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

.card {
  padding: 24px;
}

.card .tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

ul.clean,
.timeline-list,
.contact-list,
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.clean li,
.timeline-list li,
.contact-list li,
.legal-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

ul.clean li:last-child,
.timeline-list li:last-child,
.contact-list li:last-child,
.legal-list li:last-child {
  border-bottom: none;
}

.muted {
  color: var(--muted);
}

.section-intro {
  margin-bottom: 22px;
}

.reference-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.96rem;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.filter-controls button,
.export-button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.filter-controls button.active,
.filter-controls button:hover,
.export-button:hover {
  background: var(--line);
  color: #ffffff;
}

.project-list {
  display: grid;
  gap: 18px;
}

.project {
  padding: 22px;
}

.project.hidden {
  display: none;
}

.timeline {
  padding: 24px;
}

.timeline-item-title {
  font-weight: 700;
}

.contact-list strong {
  display: inline-block;
  min-width: 145px;
}

.legal-box {
  padding: 24px;
}

footer {
  margin-bottom: 28px;
}

.footer-box {
  background: #131313;
  color: rgba(255,255,255,0.88);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.footer-box a {
  color: #ffffff;
}

.small {
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  header.site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo a {
    width: 108px;
    height: 108px;
    border-radius: 20px;
    padding: 12px;
  }

  nav ul {
    padding: 10px;
    gap: 8px;
  }

  nav a {
    width: 100%;
    text-align: center;
  }

  section,
  .card,
  .project,
  .timeline,
  .legal-box,
  .hero {
    padding: 22px;
  }

  .contact-list strong {
    min-width: 0;
    display: block;
    margin-bottom: 4px;
  }

  .hero::after {
    right: -120px;
    top: auto;
    bottom: -120px;
    width: 220px;
    height: 220px;
  }

  header,
  nav,
  main,
  footer {
    width: min(calc(100% - 20px), var(--max));
  }
}
