:root {
  --bg: #eef5fc;
  --bg-strong: #dbeaf8;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #1a1a1a;
  --muted: #5e6b78;
  --line: rgba(12, 68, 124, 0.12);
  --accent: #185fa5;
  --accent-deep: #0c447c;
  --accent-light: #378add;
  --accent-soft: rgba(133, 183, 235, 0.6);
  --brand-builder: #1a1a1a;
  --brand-agency: #666666;
  --brand-tagline: #999999;
  --shadow: 0 18px 60px rgba(24, 95, 165, 0.12);
  --sans: Arial, Helvetica, sans-serif;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at top left, rgba(24, 95, 165, 0.14), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(55, 138, 221, 0.12), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 44%, #e8f1fa 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 95, 165, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 95, 165, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
}

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

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.wordmark,
.nav a,
.button,
.contact-links a {
  text-decoration: none;
  color: inherit;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--text);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

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

.brand-cube {
  position: relative;
  width: 26px;
  height: 26px;
  transform: rotate(45deg);
}

.cube-face,
.cube-core {
  position: absolute;
  inset: 0;
  border-radius: 4px;
}

.cube-top {
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.cube-left {
  background: var(--accent-deep);
  clip-path: polygon(0% 50%, 50% 0%, 50% 100%);
}

.cube-right {
  background: var(--accent-light);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%);
}

.cube-core {
  inset: 7px;
  background: var(--accent-soft);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 1rem;
  font-weight: 700;
}

.brand-product {
  color: var(--accent);
}

.brand-builder {
  color: var(--brand-builder);
}

.brand-agency {
  color: var(--brand-agency);
  font-weight: 600;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a,
.eyebrow,
.project-index,
.card-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.eyebrow,
.card-label,
.project-index {
  color: var(--brand-tagline);
}

.hero,
.about-layout,
.contact-card {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: 1.6fr 0.9fr;
  align-items: start;
  padding: 32px 0 20px;
}

.hero-intro h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-intro {
  grid-column: 1 / -1;
}

.hero-intro h1 {
  max-width: none;
  font-size: clamp(1.35rem, 3.1vw, 2.4rem);
}

.lede,
.hero-support,
.project-card p,
.about-panel p,
.hero-metric p,
.contact-links a {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 36rem;
  margin: 14px 0 0;
  font-size: 1.1rem;
}

.hero-support {
  max-width: 35rem;
  margin: 10px 0 0;
}

.hero-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;
  border: 1px solid var(--line);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.nav a:hover,
.contact-links a:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
}

.hero-card,
.project-card,
.about-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  padding: 28px;
}

.hero-card {
  grid-column: 2;
  max-width: 420px;
  justify-self: start;
  align-self: start;
  margin-top: 0;
}

.signal-list {
  margin: 18px 0 24px;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.7;
}

.hero-metric {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-metric span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 2.2rem;
  font-weight: 700;
}

.marquee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin: 8px 0 48px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.marquee p {
  position: relative;
  margin: 0;
  padding-right: 20px;
  white-space: nowrap;
  text-transform: capitalize;
}

.marquee p::after {
  content: "•";
  position: absolute;
  right: 0;
}

.marquee p.marquee-last::after {
  content: "";
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  max-width: none;
}

.work-section,
.about-section,
.contact-section {
  padding: 20px 0 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.project-card,
.about-panel {
  padding: 26px;
}

.project-card h3 {
  margin: 12px 0 10px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent),
    linear-gradient(135deg, rgba(24, 95, 165, 0.16), rgba(255, 255, 255, 0.48));
}

.about-layout {
  grid-template-columns: 1fr;
}

.contact-card {
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  padding: 30px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(219, 234, 248, 0.94)),
    var(--surface-strong);
}

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

.contact-links a {
  font-size: 1.05rem;
}

.nav a,
.contact-links a {
  color: var(--text);
}

.nav a:hover,
.contact-links a:hover,
.button-secondary:hover {
  color: var(--accent-deep);
}

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

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

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

  .hero-intro,
  .hero-copy,
  .hero-card {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .hero-copy h1,
  .section-heading h2,
  .contact-card h2 {
    max-width: none;
  }

  .topbar {
    border-radius: 24px;
  }
}

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

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .wordmark {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(2.9rem, 17vw, 4.5rem);
  }

  .hero-card,
  .project-card,
  .about-panel,
  .contact-card {
    border-radius: var(--radius-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
