:root {
  --bone: #f8f6f1;
  --cream: #ede8df;
  --dust: #c8c0b4;
  --fire: #ff4d00;
  --ink: #111111;
  --white: #ffffff;
  --muted: #5c564e;

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --max-width: 1120px;
  --header-height: 88px;
  --section-pad-y: clamp(3.5rem, 8vw, 7.5rem);
  --section-pad-x: clamp(1rem, 4vw, 2.5rem);
  --grid-size: 48px;
  --radius-pill: 999px;
  --hairline: 1px solid rgba(17, 17, 17, 0.12);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

.section {
  padding-block: var(--section-pad-y);
  position: relative;
  width: 100%;
  scroll-margin-top: calc(var(--header-height) + 0.5rem);
}

.section--cream {
  background: var(--cream);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label__number {
  color: var(--fire);
  font-weight: 600;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.body-text {
  color: var(--muted);
  max-width: 42rem;
  overflow-wrap: break-word;
}

.accent {
  color: var(--fire);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

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

.btn--fire {
  background: var(--fire);
  color: var(--white);
}

.btn--fire:hover {
  background: #e64500;
}

.grid-bg {
  background-color: var(--bone);
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.hairline {
  border: 0;
  border-top: var(--hairline);
  margin: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: var(--header-height);
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled,
.header.is-open {
  border-bottom-color: rgba(17, 17, 17, 0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(360px, 72vw);
  line-height: 0;
}

.header__logo {
  height: 64px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.header__link:hover {
  color: var(--ink);
}

.header__cta {
  white-space: nowrap;
  width: auto;
}

.header__menu-btn {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.header__menu-btn span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.header.is-open .header__menu-btn span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.header.is-open .header__menu-btn span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.header__mobile {
  display: none;
}

/* Hero */
.hero {
  padding-top: clamp(2.75rem, 7vw, 5.5rem);
  padding-bottom: 0;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  width: 100%;
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 2.2vw, 0.72rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__eyebrow-line {
  width: clamp(1rem, 4vw, 2rem);
  height: 1px;
  background: var(--dust);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.35rem, 11vw, 6.5rem);
  max-width: min(14ch, 100%);
  width: 100%;
}

.hero__sub {
  font-size: clamp(1.05rem, 3.2vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  max-width: 36rem;
  width: 100%;
}

.hero__body {
  font-size: clamp(0.98rem, 2.8vw, 1.0625rem);
  width: 100%;
}

.hero__cta {
  margin-top: 0.35rem;
}

.hero__meta {
  border-top: var(--hairline);
  background: rgba(248, 246, 241, 0.7);
  width: 100%;
}

.hero__meta-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding-block: 0.9rem;
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 2vw, 0.68rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__star {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--ink);
  opacity: 0.12;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.hero__star--1 {
  top: 18%;
  right: 12%;
  width: 22px;
  height: 22px;
  background: var(--fire);
  opacity: 0.85;
}

.hero__star--2 {
  top: 42%;
  right: 6%;
  opacity: 0.18;
}

.hero__star--3 {
  bottom: 28%;
  right: 22%;
  width: 10px;
  height: 10px;
  opacity: 0.14;
}

/* Positioning */
.positioning__title {
  font-size: clamp(1.85rem, 6vw, 3.75rem);
  max-width: min(18ch, 100%);
  width: 100%;
  margin-bottom: 1rem;
}

.positioning__subtitle {
  font-size: clamp(1.05rem, 3vw, 1.375rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 36rem;
  width: 100%;
}

.positioning__body {
  font-size: clamp(0.98rem, 2.8vw, 1.0625rem);
  width: 100%;
}

/* Services */
.services__title {
  font-size: clamp(1.85rem, 6vw, 3.75rem);
  max-width: min(16ch, 100%);
  margin-bottom: clamp(1.75rem, 5vw, 3rem);
  width: 100%;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  background: rgba(17, 17, 17, 0.12);
  border: var(--hairline);
}

.service-card {
  background: var(--bone);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  min-width: 0;
}

.service-card__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--fire);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.service-card__desc {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  line-height: 1.55;
  max-width: 32rem;
}

/* Close */
.close__title {
  font-size: clamp(1.85rem, 6vw, 3.75rem);
  max-width: min(18ch, 100%);
  width: 100%;
  margin-bottom: 2rem;
}

.close__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  width: 100%;
}

.close__email {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 3vw, 0.95rem);
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  overflow-wrap: anywhere;
}

.close__email:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(247, 244, 239, 0.88);
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer__blurb {
  max-width: 28rem;
  color: rgba(247, 244, 239, 0.65);
  font-size: 0.975rem;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.45);
  margin-bottom: 0.75rem;
}

.footer__cols a {
  display: block;
  color: rgba(247, 244, 239, 0.88);
  font-weight: 500;
  transition: color 0.15s ease;
  overflow-wrap: anywhere;
}

.footer__cols a:hover {
  color: var(--fire);
}

.footer .hairline {
  border-top-color: rgba(247, 244, 239, 0.12);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.45);
}

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
    --grid-size: 36px;
  }

  .body-text {
    max-width: none;
  }

  .header__nav {
    display: none;
  }

  .header__menu-btn {
    display: inline-flex;
  }

  .header__logo {
    height: 52px;
  }

  .header__mobile {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    background: var(--bone);
  }

  .header__mobile.is-open {
    max-height: 220px;
    opacity: 1;
    pointer-events: auto;
    border-top: var(--hairline);
  }

  .header__mobile-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-block: 1rem 1.25rem;
  }

  .header__mobile-link {
    font-size: 1.125rem;
    font-weight: 600;
  }

  .header__mobile-cta,
  .hero__cta,
  .close__actions .btn {
    width: 100%;
  }

  .hero__star--2,
  .hero__star--3 {
    display: none;
  }

  .hero__star--1 {
    right: 1rem;
    top: 12%;
  }

  .services__grid,
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero__meta-inner {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .hero__title {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }
}
