:root {
  color-scheme: light;
  --bg: #fbf5ea;
  --ink: #111827;
  --muted: #647082;
  --paper: #fffdf8;
  --line: #ded5c7;
  --accent: #ef6f3e;
  --accent-dark: #c54e24;
  --blue: #2454d8;
  --green: #2d8a64;
  --shadow: 0 24px 70px rgba(40, 31, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 20%), rgba(36, 84, 216, 0.16), transparent 24rem),
    linear-gradient(135deg, #fbf5ea 0%, #f6ead9 48%, #f8d9c7 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.site-footer,
.swatches {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0 50%, var(--blue) 50%);
  box-shadow: 5px 5px 0 var(--ink);
}

.site-nav {
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 30px rgba(40, 31, 20, 0.08);
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.menu-button {
  display: none;
}

.hero,
.section,
.contact,
.site-footer {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 64px 0 86px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-text,
.work-card p,
.service-list p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 620px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button.primary {
  background: var(--accent);
  color: var(--ink);
}

.button.secondary {
  background: var(--paper);
}

.hero-board {
  position: relative;
  min-height: 540px;
}

.board-card,
.work-card,
.service-list,
.contact {
  border: 2px solid var(--ink);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.board-card {
  position: absolute;
  width: min(78%, 360px);
  padding: 24px;
  border-radius: 8px;
  animation: lift 6s ease-in-out infinite;
}

.board-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 800;
}

.board-card strong {
  display: block;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.headline-card {
  top: 36px;
  left: 0;
  background: var(--paper);
}

.color-card {
  top: 210px;
  right: 0;
  background: #dfe9ff;
  animation-delay: -1.8s;
}

.stat-card {
  right: 10%;
  bottom: 36px;
  background: #ffe0c9;
  animation-delay: -3.2s;
}

.board-strip {
  position: absolute;
  left: 10%;
  bottom: 96px;
  width: 58%;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0 18px,
    var(--paper) 18px 30px,
    var(--blue) 30px 48px,
    var(--paper) 48px 60px
  );
  transform: rotate(-7deg);
}

.swatches {
  gap: 10px;
}

.swatches i {
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.swatches i:nth-child(1) {
  background: var(--accent);
}

.swatches i:nth-child(2) {
  background: var(--blue);
}

.swatches i:nth-child(3) {
  background: var(--green);
}

.section {
  padding: 86px 0;
}

.section-heading {
  max-width: 720px;
}

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

.work-card {
  min-height: 270px;
  padding: 24px;
  border-radius: 8px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.work-card:hover {
  transform: translate(-4px, -6px);
  background: #fff7d6;
  box-shadow: 9px 9px 0 var(--ink);
}

.work-card span {
  display: block;
  margin-bottom: 80px;
  color: var(--blue);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 34px;
  align-items: start;
}

.service-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
}

.service-list div {
  padding: 24px;
}

.service-list div + div {
  border-top: 2px solid var(--ink);
}

.contact {
  margin-top: 56px;
  margin-bottom: 56px;
  padding: clamp(34px, 7vw, 78px);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.contact .eyebrow,
.contact p {
  color: #ffb58f;
}

.contact h2 {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

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

@keyframes lift {
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 24px, 1140px);
  }

  .menu-button {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
  }

  .menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 0;
    display: none;
    width: min(220px, calc(100vw - 24px));
    padding: 10px;
    border-radius: 8px;
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .hero,
  .split,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-board {
    min-height: 500px;
  }
}

@media (max-width: 520px) {
  .hero,
  .section,
  .contact,
  .site-footer {
    width: min(100% - 24px, 1140px);
  }

  h1 {
    font-size: 3.35rem;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .board-card {
    width: 86%;
  }

  .color-card {
    top: 220px;
  }

  .stat-card {
    right: 0;
  }
}
