:root {
  --bg: #f5f1e8;
  --bg-soft: rgba(255, 255, 255, 0.56);
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: #fffdf8;
  --text: #1f1d1a;
  --muted: #5f5b54;
  --border: rgba(31, 29, 26, 0.1);
  --accent: #0f766e;
  --accent-strong: #0b5b55;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --warm: #d97706;
  --shadow: 0 30px 80px rgba(31, 29, 26, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.14), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(15, 118, 110, 0.16), transparent 22%),
    linear-gradient(180deg, #fbf8f1 0%, #f3eee4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 29, 26, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 29, 26, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 90%);
}

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

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

button {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(31, 29, 26, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #14b8a6 100%);
  color: #f9fafb;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(31, 29, 26, 0.06);
}

.nav-cta {
  background: var(--text);
  color: #fff8ee !important;
}

.nav-cta:hover {
  background: #111111 !important;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.section {
  padding: 36px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 18px;
}

.hero-copy,
.hero-panel,
.card,
.service-card,
.workflow-step,
.portfolio-banner,
.case-draft,
.contact-card,
.case-slot,
.note-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.26), transparent 68%);
}

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

.hero h1,
.section-heading h1,
.section-heading h2,
.portfolio-banner h2,
.contact-copy h2,
.page-hero h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}

.hero-text,
.page-intro,
.section-heading p:last-child,
.portfolio-banner p,
.contact-copy p:last-child {
  margin: 18px 0 0;
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: #fff8ee;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-points span,
.slot-tag,
.card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 29, 26, 0.08);
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  display: grid;
  gap: 18px;
  border-radius: var(--radius-xl);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.panel-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 242, 0.72));
  box-shadow: var(--shadow);
}

.panel-label {
  margin: 0 0 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.team-people {
  display: grid;
  gap: 18px;
}

.team-people article h2 {
  margin: 6px 0 8px;
  font-size: 1.25rem;
}

.team-people article p,
.panel-metrics span,
.service-card p,
.workflow-step p,
.case-draft p,
.case-slot p,
.note-card p,
.about-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.team-index,
.service-number,
.workflow-step span {
  color: var(--warm);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-metrics {
  display: grid;
  gap: 16px;
}

.panel-metrics div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(31, 29, 26, 0.08);
}

.panel-metrics div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.panel-metrics strong {
  font-family: "Sora", sans-serif;
  font-size: 1.18rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading h2,
.section-heading h1 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.compact-heading h2 {
  max-width: 12ch;
}

.about-grid,
.services-grid,
.cases-preview,
.notes-grid {
  display: grid;
  gap: 18px;
}

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

.card,
.service-card,
.workflow-step,
.case-draft,
.case-slot,
.note-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.accent-card {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.9), rgba(11, 91, 85, 0.92));
  color: #f5fffc;
}

.accent-card p,
.accent-card a,
.accent-card .card-kicker {
  color: inherit;
}

.accent-card .card-kicker {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

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

.service-card {
  grid-column: span 4;
}

.service-card h3,
.workflow-step h3,
.case-draft h3,
.case-slot h2,
.case-slot h3,
.note-card h3 {
  margin: 14px 0 10px;
  font-size: 1.28rem;
}

.wide-card {
  grid-column: span 8;
}

.inline-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-strong);
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

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

.workflow-step {
  min-height: 100%;
}

.portfolio-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  margin-bottom: 18px;
  border-radius: var(--radius-xl);
}

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

.case-draft span {
  color: var(--accent);
  font-weight: 700;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(244, 237, 224, 0.92));
}

.contact-links {
  display: grid;
  gap: 14px;
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 29, 26, 0.08);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.4);
}

.contact-links span {
  color: var(--muted);
}

.contact-links strong {
  text-align: right;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

.page-hero {
  padding-top: 24px;
}

.cases-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.featured-slot {
  grid-column: span 6;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(235, 245, 243, 0.94));
}

.case-slot {
  grid-column: span 6;
}

.slot-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.slim-card {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
}

@media (max-width: 980px) {
  .topbar {
    border-radius: 28px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 252, 246, 0.96);
    box-shadow: 0 22px 48px rgba(31, 29, 26, 0.12);
  }

  .menu-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px 16px;
  }

  .hero,
  .split-section,
  .contact-card,
  .slim-card {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .cases-preview,
  .workflow {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .cases-layout {
    grid-template-columns: 1fr;
  }

  .service-card,
  .wide-card,
  .featured-slot,
  .case-slot {
    grid-column: auto;
  }

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

  .section-heading h2,
  .section-heading h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 10px;
  }

  .topbar {
    top: 10px;
    padding: 12px;
  }

  .hero-copy,
  .panel-card,
  .card,
  .service-card,
  .workflow-step,
  .portfolio-banner,
  .case-draft,
  .contact-card,
  .case-slot,
  .note-card {
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .contact-links a {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-links strong {
    text-align: left;
  }

  .footer {
    flex-direction: column;
  }
}
