:root {
  --bg: #f6f0e7;
  --panel: rgba(255, 252, 247, 0.86);
  --ink: #1d1711;
  --muted: #64584b;
  --line: rgba(29, 23, 17, 0.1);
  --accent-a: #ef6f47;
  --accent-b: #1e7cff;
  --accent-c: #1faa83;
  --shadow: 0 28px 90px rgba(52, 33, 7, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 111, 71, 0.14), transparent 18%),
    radial-gradient(circle at top right, rgba(30, 124, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #f6f0e7 0%, #efe6d9 100%);
  font-family: "Manrope", system-ui, sans-serif;
}

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

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 0 16px;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.brand-block {
  display: grid;
  gap: 4px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 24px;
  padding: 24px 0 40px;
}

.hero-copy,
.featured-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  position: relative;
}

.hero-copy { padding: 38px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-a);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.12;
}

.lede,
.featured-card p,
.project-card p {
  color: var(--muted);
  line-height: 1.82;
}

.lede { margin-top: 18px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.button.primary {
  color: #fff6f1;
  background: linear-gradient(135deg, var(--accent-a), #ff9c70);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.hero-featured-grid,
.project-grid {
  display: grid;
  gap: 18px;
}

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

.featured-card,
.project-card { padding: 24px; }

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill, .tag { background: rgba(29, 23, 17, 0.08); }

.featured-card p,
.project-card p { margin-top: 12px; }

.section { padding: 30px 0; }
.section-head { max-width: 760px; }

.featured-card {
  min-height: 188px;
  padding-bottom: 72px;
}

.featured-card h3 {
  margin-top: 18px;
}

.featured-card::after {
  content: "↗";
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(29, 23, 17, 0.08);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.featured-card:hover::after {
  transform: translate(2px, -2px);
  background: rgba(29, 23, 17, 0.12);
}

.accent-a .pill { background: rgba(239, 111, 71, 0.14); color: #a53f20; }
.accent-b .pill { background: rgba(30, 124, 255, 0.14); color: #1455ab; }
.accent-c .pill { background: rgba(31, 170, 131, 0.16); color: #137658; }

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.project-card h3 {
  margin-top: 16px;
}

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

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

@media (max-width: 640px) {
  .page { width: min(100% - 24px, 1180px); }
  .hero-copy,
  .featured-card,
  .project-card {
    border-radius: 22px;
  }
  .hero-copy { padding: 28px; }
}
