/* Fonts are served from this site (SIL Open Font License, see /fonts). No third-party requests. */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-600.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --ink: #0b1020;
  --ink-2: #121a30;
  --card: rgb(255 255 255 / 4%);
  --card-border: rgb(255 255 255 / 9%);
  --mist: #e7ebf3;
  --grey: #a3acbf;
  --ember: #f5a524;
  --ember-hi: #ffcf70;
  --violet: #8b7dff;
  --radius: 18px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--mist);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* Night sky: a few layers of stars that drift very slowly, plus a soft glow from the staff. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 75% -10%, rgb(139 125 255 / 18%), transparent 70%),
    radial-gradient(700px 420px at 15% 10%, rgb(245 165 36 / 10%), transparent 70%),
    linear-gradient(180deg, #0b1020 0%, #0e1530 55%, #0b1020 100%);
}
.sky::before,
.sky::after {
  content: '';
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 140px 80px, #cfd6ff, transparent),
    radial-gradient(1.4px 1.4px at 260px 160px, #fff, transparent),
    radial-gradient(1px 1px at 380px 40px, #ffe9b8, transparent),
    radial-gradient(1.2px 1.2px at 90px 220px, #fff, transparent),
    radial-gradient(1px 1px at 320px 260px, #cfd6ff, transparent);
  background-size: 420px 300px;
  opacity: 0.55;
  animation: drift 160s linear infinite;
}
.sky::after {
  background-size: 620px 460px;
  opacity: 0.3;
  animation-duration: 260s;
}
@keyframes drift {
  to {
    transform: translate3d(-210px, 150px, 0);
  }
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgb(11 16 32 / 72%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 600 1.25rem var(--serif);
  letter-spacing: 0.01em;
}
.brand em {
  font-style: normal;
  font-weight: 400;
  color: var(--grey);
}
.brand img {
  border-radius: 9px;
}
.brand.small {
  font-size: 1rem;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 28px);
  font-size: 15px;
}
.nav nav a {
  text-decoration: none;
  color: var(--grey);
  transition: color 0.15s;
}
.nav nav a:hover {
  color: var(--mist);
}
.nav .nav-cta {
  padding: 8px 14px;
  border: 1px solid rgb(245 165 36 / 50%);
  border-radius: 999px;
  color: var(--ember-hi);
}

/* Layout */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.section {
  padding: clamp(56px, 9vw, 104px) 0 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}
.section-head h2,
.about h2,
.contact h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.eyebrow {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-hi);
}
.lede {
  max-width: 620px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--grey);
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
}

/* Hero */
.hero {
  padding: clamp(72px, 14vw, 150px) 0 clamp(24px, 4vw, 40px);
}
.hero h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 7.5vw, 5rem);
  font-weight: 450;
}
.glow {
  background: linear-gradient(100deg, var(--ember-hi), var(--ember) 45%, #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgb(245 165 36 / 25%);
}
.hero .lede {
  margin-top: 22px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-ember {
  background: linear-gradient(180deg, var(--ember-hi), var(--ember));
  color: #1a1206;
  box-shadow: 0 8px 30px rgb(245 165 36 / 25%);
}
.btn-ember:hover {
  box-shadow: 0 10px 40px rgb(245 165 36 / 38%);
}
.btn-ghost {
  border: 1px solid rgb(255 255 255 / 18%);
  color: var(--mist);
}
.btn-ghost:hover {
  background: rgb(255 255 255 / 6%);
}
.btn-big {
  padding: 16px 28px;
  font-size: 1.05rem;
}
:focus-visible {
  outline: 2px solid var(--ember-hi);
  outline-offset: 3px;
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}
.work-feature {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: linear-gradient(160deg, rgb(245 165 36 / 9%), rgb(255 255 255 / 3%) 55%);
}
.work-feature h3,
.work-next h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.work-feature p,
.work-next p {
  color: var(--grey);
}
.work-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fbf7ef;
  font-size: 34px;
}
.muted-badge {
  background: rgb(139 125 255 / 18%);
  margin-bottom: 16px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 12%);
  font-size: 13px;
  color: var(--grey);
}
.text-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--ember-hi);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service h3 {
  font-size: 1.25rem;
  margin: 18px 0 8px;
}
.service p {
  color: var(--grey);
  font-size: 15.5px;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgb(245 165 36 / 12%);
}
.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ember-hi);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Steps and principles */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgb(245 165 36 / 50%);
  color: var(--ember-hi);
  font: 600 0.95rem var(--serif);
}
.steps h3 {
  font-size: 1.35rem;
  margin: 16px 0 8px;
}
.steps p {
  color: var(--grey);
  font-size: 15.5px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--grey);
  font-size: 15px;
}
.principles b {
  color: var(--mist);
}

/* About */
.about-card {
  padding: clamp(28px, 5vw, 52px);
  background: radial-gradient(600px 300px at 0% 0%, rgb(139 125 255 / 14%), transparent 70%), var(--card);
}
.about-card p:last-child {
  max-width: 680px;
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--grey);
}

/* Contact and footer */
.contact {
  text-align: center;
  padding-bottom: clamp(64px, 10vw, 110px);
}
.contact .lede {
  margin: 14px auto 28px;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 40px) 40px;
  border-top: 1px solid rgb(255 255 255 / 7%);
  color: var(--grey);
  font-size: 14px;
}

/* Smaller screens */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-grid,
  .steps,
  .principles {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .nav nav a:not(.nav-cta) {
    display: none;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .work-feature {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sky::before,
  .sky::after {
    animation: none;
  }
  .btn {
    transition: none;
  }
}
