:root {
  --ink: #f6efe3;
  --muted: #afa69a;
  --ember: #ff6b35;
  --ember-soft: #ffab75;
  --night: #0d0d0c;
  --panel: #151513;
  --line: rgba(246, 239, 227, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 107, 53, 0.07), transparent 27rem),
    var(--night);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.page-shell {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-mark {
  width: 14px;
  height: 18px;
  background: var(--ember);
  border-radius: 10px 2px 9px 7px;
  box-shadow: 0 0 22px rgba(255, 107, 53, 0.55);
  transform: rotate(24deg);
}

nav {
  display: flex;
  gap: 36px;
}

nav a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 180ms ease;
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 96px);
  padding: 16vh 0 10vh;
  overflow: hidden;
}

.eyebrow,
.section-number {
  color: var(--ember-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1,
h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin-top: 30px;
  font-size: clamp(3.5rem, 8.7vw, 8.5rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 38px 0 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.primary-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--ember);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.primary-link {
  position: relative;
  z-index: 1;
  min-width: 205px;
  padding: 0 0 12px;
}

.primary-link span,
.text-link span {
  color: var(--ember);
  transition: transform 180ms ease;
}

.primary-link:hover span,
.primary-link:focus-visible span,
.text-link:hover span,
.text-link:focus-visible span {
  transform: translate(3px, 3px);
}

.ember-field {
  position: absolute;
  top: 12%;
  right: -2%;
  width: 38vw;
  aspect-ratio: 1;
  opacity: 0.85;
  pointer-events: none;
}

.orb {
  position: absolute;
  inset: 22%;
  border: 1px solid rgba(255, 124, 67, 0.22);
  border-radius: 48% 52% 60% 40%;
  filter: drop-shadow(0 0 60px rgba(255, 76, 18, 0.13));
  animation: turn 18s linear infinite;
}

.orb::before,
.orb::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 170, 112, 0.13);
  border-radius: inherit;
}

.orb::before {
  inset: 12%;
}

.orb::after {
  inset: 29%;
  background: radial-gradient(circle, rgba(255, 102, 41, 0.18), transparent 65%);
}

.ember {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--ember-soft);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--ember);
  animation: drift 6s ease-in-out infinite alternate;
}

.ember-one { top: 10%; left: 43%; }
.ember-two { top: 28%; right: 3%; animation-delay: -2s; }
.ember-three { bottom: 13%; left: 22%; animation-delay: -4s; }
.ember-four { bottom: 28%; right: 20%; animation-delay: -1s; }

.about,
.contact {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 130px 0;
  border-top: 1px solid var(--line);
}

.about-content h2,
.contact h2 {
  max-width: 850px;
  font-size: clamp(2.2rem, 5vw, 5.25rem);
}

.about-content p,
.contact p {
  max-width: 620px;
  margin: 35px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.contact {
  grid-template-columns: 1fr 1.25fr 0.75fr;
  align-items: end;
}

.contact .text-link {
  justify-self: end;
  padding-bottom: 10px;
  text-transform: none;
}

footer {
  min-height: 150px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  font-size: 0.72rem;
}

.footer-brand {
  color: var(--ink);
}

@keyframes turn {
  to { transform: rotate(360deg); }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(0.8); opacity: 0.35; }
  to { transform: translate(20px, -32px) scale(1.2); opacity: 1; }
}

@media (max-width: 820px) {
  .page-shell { width: min(100% - 32px, 1440px); }
  .site-header { min-height: 78px; }
  nav { gap: 22px; }
  .hero { min-height: calc(100vh - 78px); padding-top: 14vh; }
  h1 { font-size: clamp(3rem, 13vw, 6rem); }
  .ember-field { top: 35%; right: -22%; width: 78vw; opacity: 0.6; }
  .about,
  .contact { grid-template-columns: 1fr; padding: 90px 0; }
  .contact .text-link { justify-self: start; }
}

@media (max-width: 520px) {
  .brand { font-size: 0.66rem; }
  nav a:first-child { display: none; }
  h1 { font-size: 12vw; }
  .hero-copy { margin-top: 28px; }
  .about,
  .contact { padding: 72px 0; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 18px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}
