:root {
  --bg: #f4efe6;
  --paper: rgba(255, 251, 245, 0.88);
  --paper-strong: #fffaf2;
  --ink: #16211c;
  --muted: #4f5f57;
  --line: rgba(22, 33, 28, 0.12);
  --accent: #b04928;
  --accent-deep: #7b2712;
  --accent-soft: #e6c9a8;
  --shadow: 0 24px 70px rgba(56, 33, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(176, 73, 40, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(70, 92, 79, 0.18), transparent 26%),
    linear-gradient(180deg, #efe2cf 0%, var(--bg) 44%, #e8e0d5 100%);
  font-family: "Source Serif 4", Georgia, serif;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.hero,
.panel {
  background: var(--paper);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.hero-shell {
  width: min(100vw - 20px, 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 280px);
  gap: 28px;
  align-items: start;
  padding: 44px 36px 36px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -40% auto;
  width: 360px;
  height: 360px;
  background:
    linear-gradient(135deg, rgba(176, 73, 40, 0.16), rgba(70, 92, 79, 0.08)),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.22) 14px 16px);
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow,
.hero-links,
.section-heading p,
.services p,
.note p,
.access-form label,
.inline-code {
  font-family: "Space Grotesk", sans-serif;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 8ch;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.93;
  margin-top: 10px;
}

.lede {
  max-width: 650px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  margin: 22px 0 0;
  position: relative;
  z-index: 1;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.link-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-links a,
.services a,
.access-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 7px;
  border: 1px solid rgba(123, 39, 18, 0.18);
  background: var(--paper-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
}

.access-form button {
  background: var(--accent);
  color: #fffaf5;
}

main {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border-radius: 10px;
  padding: 28px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 24px;
}

.note {
  padding: 18px;
  border-radius: 8px;
  background: rgba(176, 73, 40, 0.08);
  border: 1px solid rgba(176, 73, 40, 0.14);
}

.note h3 {
  font-size: 1.05rem;
}

.note p {
  margin: 10px 0 0;
  line-height: 1.55;
  color: var(--muted);
}

.inline-code {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(22, 33, 28, 0.08);
  font-size: 0.92em;
}

.highlights,
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.highlights article,
.services article {
  min-width: 0;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
}

.highlights p,
.services p,
.section-heading p {
  margin: 8px 0 0;
  line-height: 1.55;
  color: var(--muted);
}

.service-code {
  margin-top: 14px;
}

.code-label {
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  text-transform: lowercase;
  color: var(--muted);
}

.service-code pre {
  margin: 0 0 12px;
  padding: 12px 14px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-radius: 7px;
  border: 1px solid rgba(22, 33, 28, 0.1);
  background: rgba(22, 33, 28, 0.05);
}

.service-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink);
}

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
}

.chip-list li {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(22, 33, 28, 0.06);
  border: 1px solid rgba(22, 33, 28, 0.1);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin-top: 20px;
}

.video-card {
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(22, 33, 28, 0.08);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.access-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.access-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.honey-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.access-form label:last-of-type,
.access-form button {
  grid-column: 1 / -1;
}

.access-form input,
.access-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(22, 33, 28, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
}

.access-form textarea {
  resize: vertical;
}

.access-form button {
  cursor: pointer;
  width: fit-content;
}

@media (max-width: 840px) {
  .page-shell {
    width: min(100vw - 20px, 1120px);
    padding-top: 10px;
  }

  .panel {
    padding: 22px;
  }

  .hero {
    width: 100%;
    border-radius: 0;
  }

  .intro-grid,
  .highlights,
  .services,
  .video-grid,
  .access-form {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 24px 16px 22px;
    gap: 18px;
  }

  .hero-photo {
    justify-self: start;
    width: min(220px, 58vw);
  }

  .access-form label:last-of-type,
  .access-form button {
    grid-column: auto;
  }

  .hero::after {
    width: 240px;
    height: 240px;
    inset: auto -12% -28% auto;
  }
}
.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-photo {
  margin: 0;
  align-self: start;
  justify-self: end;
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(22, 33, 28, 0.14);
  box-shadow: 0 18px 40px rgba(22, 33, 28, 0.14);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
