/* Amino Kits landing page. Plain CSS, no build step. */

/* ---------- Fonts (self-hosted, latin subset, variable weight) ---------- */

@font-face {
  font-family: "Syne";
  src: url("fonts/syne-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #05080f;
  --bg-raised: #080d18;
  --panel: #0b121f;
  --line: rgba(148, 178, 208, 0.15);
  --line-strong: rgba(148, 178, 208, 0.3);
  --text: #eaf1f6;
  --muted: #a3b3c4;
  --dim: #74879c;
  --teal: #00c4a7; /* the slash in the logo */
  --teal-bright: #3be8cc;
  --teal-ink: #021f1b;

  --font-display: "Syne", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;

  --header-h: 68px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 18px;
}

/* ---------- Base ---------- */

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

html {
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

ol,
ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--teal);
  color: var(--teal-ink);
}

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--teal-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Type helpers ---------- */

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 1.1rem + 3vw, 3.1rem);
  line-height: 1.08;
}

.kicker,
.eyebrow,
.hero__note,
.stage__caption,
.reason__num,
.fit__title,
.site-footer__legal {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 18px;
  color: var(--dim);
}

.kicker span {
  margin-right: 0.9em;
  color: var(--teal);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 56px;
  padding: 0 1.5em;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.btn__icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.btn__arrow {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  transition: transform 0.2s ease;
}

.btn--primary {
  background: linear-gradient(180deg, #35e6ca 0%, var(--teal) 100%);
  color: var(--teal-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 44px -14px rgba(0, 196, 167, 0.75);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 20px 54px -14px rgba(0, 196, 167, 0.9);
}

.btn--primary:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--compact {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(0, 196, 167, 0.45);
  border-radius: 10px;
  background: rgba(0, 196, 167, 0.1);
  color: var(--teal-bright);
  font-size: 0.875rem;
}

.btn--compact:hover {
  background: var(--teal);
  color: var(--teal-ink);
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 6px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 6px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.link-quiet:hover {
  color: var(--text);
  text-decoration-color: var(--teal);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

/*
 * logo.png is black ink on a transparent hexagon. On this dark page it needs a
 * white field behind it, so the image is clipped to the hexagon (through the
 * middle of its outline) and given a white background.
 */
.logo-mark {
  background: #fff;
  clip-path: polygon(49.8% 3.1%, 90.4% 26.6%, 90.4% 73.2%, 49.8% 96.7%, 9.2% 73.2%, 9.2% 26.6%);
}

.brand__logo {
  width: 40px;
  height: 40px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav {
  display: none;
  gap: 28px;
  margin-right: 8px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

/* Teal bloom behind the molecule and a cool wash at the top left. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 38% at 50% 76%, rgba(0, 196, 167, 0.14), transparent 72%),
    radial-gradient(80% 40% at 0% 0%, rgba(58, 108, 255, 0.1), transparent 70%);
}

/* Dot grid, like graph paper under the specimen. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(160, 190, 220, 0.2) 1px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(85% 45% at 50% 76%, #000 0%, transparent 78%);
  mask-image: radial-gradient(85% 45% at 50% 76%, #000 0%, transparent 78%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-block: clamp(36px, 8vw, 64px) 28px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
}

.eyebrow__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 196, 167, 0.18);
}

.hero__title {
  font-size: clamp(2.375rem, 1.2rem + 5vw, 4.25rem);
  line-height: 1.02;
}

.hero__accent {
  display: block; /* keeps the teal phrase together on its own line */
  color: var(--teal);
  background: linear-gradient(100deg, var(--teal) 10%, #7af3de 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lede {
  max-width: 34em;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 32px;
}

.hero__note {
  margin-top: 18px;
  color: var(--dim);
}

.hero__stage {
  position: relative;
  height: clamp(300px, 88vw, 460px);
  margin-inline: calc(var(--pad) * -1);
}

.stage {
  position: absolute;
  inset: 0 0 46px; /* leaves room for the caption */
}

.stage__fallback,
.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage__fallback {
  object-fit: contain;
  padding: 4%;
  transition: opacity 0.9s ease;
}

.stage__canvas {
  opacity: 0;
  cursor: grab;
  touch-action: pan-y; /* horizontal drags spin the model, vertical swipes still scroll the page */
  transition: opacity 0.9s ease;
  -webkit-tap-highlight-color: transparent;
}

.stage.is-live .stage__canvas {
  opacity: 1;
}

.stage.is-live .stage__fallback {
  opacity: 0;
}

.stage.is-dragging .stage__canvas {
  cursor: grabbing;
}

.stage__caption {
  position: absolute;
  right: var(--pad);
  bottom: 0;
  left: var(--pad);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  color: var(--dim);
  font-size: 0.6875rem;
  pointer-events: none;
}

.stage__caption span:first-child {
  color: var(--teal);
}

.stage__hint {
  flex-basis: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease 0.6s;
}

.hero__stage:has(.is-live) .stage__hint {
  opacity: 1;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(36px, 5vw, 60px);
}

/* Why join */

.reasons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-raised));
  overflow: hidden;
}

.reason {
  position: relative;
  padding: clamp(26px, 3.4vw, 40px);
  transition: background-color 0.3s ease;
}

.reason + .reason {
  border-top: 1px solid var(--line);
}

/* A teal rule that draws across the top of the cell on hover. */
.reason::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.reason:hover {
  background-color: rgba(0, 196, 167, 0.035);
}

.reason:hover::before {
  transform: scaleX(1);
}

.reason__art {
  width: 120px;
  height: 64px;
  margin-bottom: 28px;
  overflow: visible;
}

.art-line,
.art-dim {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-line {
  stroke: var(--teal);
}

.art-dim {
  stroke: #4a5d73;
}

.art-dash {
  stroke-dasharray: 3 4;
}

.art-fill {
  fill: var(--teal-bright);
}

.reason__num {
  position: absolute;
  top: clamp(26px, 3.4vw, 40px);
  right: clamp(26px, 3.4vw, 40px);
  color: var(--dim);
}

.reason h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

.reason p:last-child {
  color: var(--muted);
  font-size: 1rem;
}

/* Who it's for */

.section--who {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(0, 196, 167, 0.07), transparent 70%),
    var(--bg-raised);
}

.who {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
}

.who__intro p:not(.kicker) {
  max-width: 34em;
  margin-top: 20px;
  color: var(--muted);
}

.who__intro .who__lede {
  color: var(--text);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
}

.who__lists {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
}

.fit {
  padding: 26px 28px 28px;
  border: 1px solid rgba(0, 196, 167, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 196, 167, 0.07), rgba(0, 196, 167, 0.02));
}

.fit--no {
  border-color: var(--line);
  background: rgba(148, 178, 208, 0.03);
}

.fit__title {
  margin-bottom: 18px;
  color: var(--teal-bright);
  font-weight: 500;
}

.fit--no .fit__title {
  color: var(--dim);
}

.fit__list {
  display: grid;
  gap: 14px;
}

.fit__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.4;
}

.fit__list svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(0, 196, 167, 0.16);
  color: var(--teal-bright);
}

.fit--no .fit__list li {
  color: var(--muted);
}

.fit--no .fit__list svg {
  background: rgba(148, 178, 208, 0.1);
  color: var(--dim);
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}

.faq__head p:last-child {
  margin-top: 16px;
  color: var(--muted);
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover,
.faq__item[open] summary {
  color: var(--teal-bright);
}

.faq__icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--teal);
  transition: transform 0.3s ease;
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-width: 40em;
  padding: 0 4px 26px;
  color: var(--muted);
}

.faq__answer a {
  color: var(--teal-bright);
  font-weight: 500;
  text-underline-offset: 4px;
}

.faq__answer a:hover {
  color: var(--text);
}

/* Closing call to action */

.section--cta {
  padding-top: 0;
}

.cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid rgba(0, 196, 167, 0.35);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(60% 140% at 100% 50%, rgba(0, 196, 167, 0.2), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--bg-raised));
  overflow: hidden;
}

.cta__copy {
  flex: 1 1 320px;
}

.cta__copy p {
  max-width: 32em;
  margin-top: 14px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.site-footer__inner {
  display: grid;
  gap: 20px;
  padding-block: 40px 48px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__brand img {
  width: 32px;
  height: 32px;
}

.site-footer__brand .brand__name {
  font-size: 1.05rem;
}

.site-footer__disclaimer {
  max-width: 62em;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.site-footer__disclaimer strong {
  color: var(--text);
  font-weight: 600;
}

.site-footer__legal {
  color: var(--dim);
}

/* ---------- Breakpoints ---------- */

@media (max-width: 400px) {
  .site-header__inner {
    gap: 12px;
  }

  .brand__logo {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    font-size: 1.05rem;
  }

  .btn--compact {
    padding: 0 11px;
    font-size: 0.8125rem;
  }

  .btn--compact .btn__icon {
    display: none;
  }
}

@media (max-width: 479px) {
  .hero__actions .btn--primary {
    flex: 1 1 100%;
  }

  /* The section it points to is one swipe away on a phone. */
  .hero__actions .link-quiet {
    display: none;
  }
}

@media (min-width: 600px) {
  .stage {
    bottom: 30px;
  }

  .stage__hint {
    flex-basis: auto;
    padding-left: 14px;
    border-left: 1px solid var(--line-strong);
  }

  .who__lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__stage {
    height: clamp(380px, 56vw, 480px);
  }
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }

  .hero::before {
    background:
      radial-gradient(42% 60% at 76% 50%, rgba(0, 196, 167, 0.15), transparent 72%),
      radial-gradient(50% 60% at 0% 0%, rgba(58, 108, 255, 0.1), transparent 70%);
  }

  .hero::after {
    -webkit-mask-image: radial-gradient(48% 70% at 76% 50%, #000 0%, transparent 78%);
    mask-image: radial-gradient(48% 70% at 76% 50%, #000 0%, transparent 78%);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: min(calc(100vh - var(--header-h)), 880px);
    min-height: min(calc(100svh - var(--header-h)), 880px);
    padding-block: 40px 48px;
  }

  /* Sized so "Peptide research," always fits the text column on one line. */
  .hero__title {
    font-size: clamp(2.5rem, 4.55vw, 3.75rem);
  }

  .hero__stage {
    align-self: stretch;
    height: auto;
    min-height: 520px;
    margin: -24px calc(var(--pad) * -0.6) -24px 0;
  }

  .stage__caption {
    right: calc(var(--pad) * 0.6);
    left: 0;
    justify-content: flex-end;
  }

  .reasons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reason + .reason {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .who {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
  }

  .who__lists {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }

  .faq__head {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    align-self: start;
  }

  .site-footer__inner {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 56px;
  }

  .site-footer__legal {
    grid-column: 2;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* The fallback drifts a little so the hero never sits completely still. */
  .stage__fallback {
    animation: drift 9s ease-in-out infinite alternate;
  }

  .stage.is-live .stage__fallback {
    animation: none;
  }

  /* Scroll-driven reveal. Browsers without support simply show the content. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

@keyframes drift {
  from {
    transform: translateY(-6px) rotate(-1deg);
  }

  to {
    transform: translateY(6px) rotate(1deg);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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