:root {
  --page-bg: #fbfaf7;
  --page-accent: #efefef;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text-primary: #0f0f0f;
  --text-secondary: #262626;
  --line: rgba(15, 15, 15, 0.12);
  --shadow: 0 10px 30px rgba(15, 15, 15, 0.04);
  --radius-lg: 32px;
  --radius-md: 22px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 35%),
    linear-gradient(180deg, #fdfcf9 0%, var(--page-bg) 100%);
}

body::before {
  content: none;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 15, 15, 0.06);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand,
.site-nav a,
.footer-links a,
.project-link,
.contact-link,
.button {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #0f0f0f;
  color: #ffffff;
  font-size: 0.85rem;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-nav a,
.footer-links a {
  color: var(--text-primary);
  font-weight: 500;
}

.hero,
.summary-grid article,
.project-card,
.about-section,
.site-footer {
  background: var(--surface);
  border: 1px solid rgba(15, 15, 15, 0.06);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(2rem, 4vw, 4.5rem);
  border-radius: calc(var(--radius-lg) + 8px);
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  align-items: end;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -5rem;
  bottom: -7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 188, 133, 0.32), transparent 68%);
}

.eyebrow,
.summary-label,
.project-tag,
.footer-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.eyebrow,
.summary-label,
.project-tag {
  color: var(--text-secondary);
}

h1,
h2,
.project-name {
  letter-spacing: -0.05em;
  margin: 0;
}

h1 {
  max-width: 11ch;
  margin-top: 1rem;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.92;
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
  font-weight: 700;
}

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

.hero-copy,
.about-copy,
.project-description,
.project-detail,
.section-copy,
.footer-copy,
.summary-grid p:last-child {
  max-width: 38rem;
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.75;
  font-weight: 500;
}

.panel-label {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

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

.hero-panel,
.principles-card,
.capability-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.hero-panel {
  position: relative;
  z-index: 1;
  padding: 0;
  align-self: stretch;
  overflow: hidden;
}

.hero-list,
.principles-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button-primary {
  background: #0f0f0f;
  color: #fffaf4;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--line);
}

.summary-grid,
.project-grid,
.about-layout,
.capability-grid,
.approach-layout {
  display: grid;
  gap: 1rem;
}

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

.summary-grid article,
.project-card,
.about-section,
.site-footer {
  border-radius: var(--radius-lg);
}

.summary-grid article {
  padding: 1.5rem;
}

.summary-label,
.project-tag,
.panel-label,
.contact-line,
.footer-title {
  color: #1a1a1a;
  font-weight: 700;
}

.projects-section,
.capabilities-section,
.approach-section,
.about-section,
.contact-section {
  margin-top: 1rem;
}

.section-heading {
  padding: 1rem 0 1.5rem;
}

.section-copy {
  margin: 1rem 0 0;
}

.project-detail {
  margin-top: 0.75rem;
}

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

.project-card {
  padding: 1.75rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-image,
.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.project-image {
  margin-bottom: 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 15, 15, 0.06);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(58, 42, 24, 0.12);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-name {
  font-size: 1.8rem;
  font-weight: 700;
}

.project-card-featured {
  background: var(--surface-strong);
}

.project-tag {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.project-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  font-weight: 600;
}

.project-link::after {
  content: "->";
  margin-left: 0.45rem;
}

.project-note {
  margin: 1rem 0 0;
  color: var(--text-primary);
  font-weight: 600;
}

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

.capability-card,
.principles-card {
  padding: 1.5rem;
}

.approach-copy p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-section {
  padding: 1.5rem 1.75rem 1.75rem;
}

.contact-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid rgba(15, 15, 15, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-line {
  margin: 0 0 0.5rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.contact-link {
  color: var(--text-primary);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.contact-copy {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 500;
}

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

.site-footer {
  margin-top: 1rem;
  padding: 1.5rem 1.75rem;
}

.footer-block {
  max-width: 34rem;
}

.footer-title {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .summary-grid,
  .project-grid,
  .about-layout,
  .capability-grid,
  .approach-layout,
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer,
  .project-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  h1 {
    max-width: 12ch;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .site-header {
    position: static;
    border-radius: 28px;
  }

  .site-nav {
    gap: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding: 1.5rem;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.1rem);
  }
}
