:root {
  --bg: #f6f1e8;
  --bg-2: #efe5d7;
  --panel: rgba(19, 27, 34, 0.86);
  --panel-soft: rgba(255, 255, 255, 0.8);
  --text: #10202b;
  --muted: #5a6770;
  --line: rgba(16, 32, 43, 0.1);
  --accent: #c97833;
  --accent-strong: #b55b11;
  --accent-soft: rgba(201, 120, 51, 0.14);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(12, 20, 27, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(201, 120, 51, 0.22), transparent 28%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 40%, var(--bg-2) 100%);
  color: var(--text);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.page-wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(246, 241, 232, 0.72);
  border-bottom: 1px solid rgba(16, 32, 43, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
  background: linear-gradient(135deg, #0f1d27 0%, #35505f 100%);
  box-shadow: 0 12px 30px rgba(15, 29, 39, 0.18);
}

.brand-copy strong,
.section-heading h2,
.hero-copy h1,
.project-copy h3,
.cta-card h2,
.process-card h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span,
.nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(16, 32, 43, 0.1);
  background: rgba(255, 255, 255, 0.55);
  transition: transform 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 44px 0 36px;
}

.hero-panel {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(201, 120, 51, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  padding: 18px 10px 18px 6px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 32, 43, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(201, 120, 51, 0.12);
}

.hero-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 16px 28px rgba(181, 91, 17, 0.25);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 32, 43, 0.1);
}

.hero-aside {
  display: grid;
  gap: 16px;
}

.spotlight-card,
.mini-card,
.service-card,
.project-card,
.process-card,
.cta-card,
.stat-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.spotlight-card {
  min-height: 340px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(10, 16, 22, 0.06), rgba(10, 16, 22, 0.72)),
    url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1200&q=80") center/cover;
  color: var(--white);
  overflow: hidden;
}

.spotlight-card small,
.project-copy small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.78;
}

.spotlight-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.spotlight-card span {
  display: block;
  margin-top: 10px;
  max-width: 260px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mini-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 32, 43, 0.08);
}

.mini-card strong {
  display: block;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.mini-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 34px 0 8px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-heading p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.stats-grid,
.services-grid,
.process-grid {
  display: grid;
  gap: 16px;
}

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

.stat-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 32, 43, 0.08);
}

.stat-card strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.06em;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

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

.service-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(16, 32, 43, 0.08);
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card h3,
.project-copy h3,
.process-card h3 {
  margin: 18px 0 10px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.service-card p,
.project-copy p,
.process-card p,
.cta-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.projects-stack {
  display: grid;
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #23333f;
}

.project-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 300ms ease;
}

.project-card:hover .project-image {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 22, 0.08), rgba(10, 16, 22, 0.78)),
    linear-gradient(140deg, transparent 20%, rgba(16, 32, 43, 0.62));
}

.project-copy {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: var(--white);
  display: grid;
  gap: 10px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-meta span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.about-panel,
.cta-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 32, 43, 0.08);
  box-shadow: var(--shadow);
}

.about-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.process-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(15, 29, 39, 0.96), rgba(29, 52, 63, 0.9));
  color: var(--white);
}

.process-index {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.process-card p {
  color: rgba(255, 255, 255, 0.72);
}

.cta {
  padding: 34px 0 62px;
}

.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.cta-card h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.footer {
  padding: 0 0 42px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

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

.loading-ribbon {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

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

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

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

@media (max-width: 720px) {
  .topbar-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-panel {
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 14vw, 3.6rem);
  }

  .mini-card-grid,
  .services-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-card {
    min-height: 280px;
  }

  .project-card {
    min-height: 280px;
  }

  .page-wrap {
    width: min(100% - 22px, 1160px);
  }
}
