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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, #f9f1e6 0%, var(--bg) 55%, #f2ede6 100%);
  background-attachment: fixed;
  line-height: 1.5;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(0deg, rgba(26, 26, 26, 0.03) 1px, transparent 1px);
  background-size: 100% 32px;
  opacity: 0.35;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    url("../media/icons/book.svg"),
    url("../media/icons/computer.svg"),
    url("../media/icons/complexity.svg"),
    url("../media/icons/finops.svg"),
    url("../media/icons/camera.svg"),
    url("../media/icons/microphone.svg"),
    url("../media/icons/handshake.svg"),
    url("../media/icons/speech-bubble.svg"),
    url("../media/icons/spark.svg");
  background-repeat: no-repeat;
  background-size: 120px, 140px, 150px, 130px, 120px, 110px, 120px, 130px, 90px;
  background-position:
    8% 20%,
    86% 18%,
    80% 70%,
    18% 68%,
    50% 85%,
    60% 10%,
    12% 45%,
    72% 45%,
    40% 8%;
  opacity: 0.09;
  z-index: -1;
  filter: saturate(0.2);
}

img,
video {
  max-width: 100%;
  display: block;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

main {
  display: block;
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: var(--space-6) 0;
}

.section--tight {
  padding: var(--space-4) 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

p {
  margin: 0 0 var(--space-2);
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-weight: 600;
  background: #fff7ef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hero {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  padding: var(--space-6) 0 var(--space-4);
}

.hero__title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.hero__subtitle {
  font-size: 1.1rem;
  max-width: 45ch;
}

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--line);
  background: linear-gradient(135deg, rgba(224, 122, 95, 0.12), rgba(47, 111, 96, 0.12));
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  text-align: center;
  padding: var(--space-3);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.receipt {
  font-family: var(--font-mono);
  background: #fffdf8;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.receipt__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line);
}

.receipt__row:last-child {
  border-bottom: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 243, 238, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(215, 207, 196, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: var(--space-2);
}

.brand {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-links a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.nav-drop {
  position: relative;
}

.nav-drop summary {
  list-style: none;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.nav-drop[open] summary {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.nav-drop__menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  display: grid;
  gap: 0.3rem;
  min-width: 220px;
  box-shadow: var(--shadow);
}

.nav-drop__menu a {
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

.nav-drop__menu a:hover {
  background: rgba(224, 122, 95, 0.1);
}

.footer {
  padding: var(--space-4) 0 var(--space-5);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-drop__menu {
    position: static;
    box-shadow: none;
  }

  .hero {
    padding-top: var(--space-4);
  }
}

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