/* 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: #ffffff;
  --bg-soft: #fafaf8;
  --line: #e6e8e5;
  --line-strong: #cfd4d1;
  --text: #101418;
  --muted: #56616b;
  --teal: #00c4a7; /* the slash in the logo */
  --teal-deep: #007a68; /* teal that is readable as text on white */
  --teal-ink: #04231f; /* label color on teal buttons */
  --teal-tint: #f1fbf8;

  --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, Menlo, Consolas, "Liberation Mono", monospace;

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

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

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

html {
  color-scheme: light;
  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,
ul {
  margin: 0;
}

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-deep);
  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 ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
}

h1,
h2 {
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.1;
}

p {
  text-wrap: pretty;
}

/* Links inside running text: ink with a teal underline. */
.hero__lede a,
.point a,
.faq__answer a,
.site-footer__disclaimer a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.hero__lede a:hover,
.point a:hover,
.faq__answer a:hover,
.site-footer__disclaimer a:hover {
  color: var(--teal-deep);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 56px;
  padding: 0 1.5em;
  border-radius: 14px;
  background: var(--teal);
  color: var(--teal-ink);
  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;
}

.btn:hover {
  background: #0ad2b4;
}

.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 {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(4, 35, 31, 0.16),
    0 12px 28px -12px rgba(0, 150, 128, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(4, 35, 31, 0.16),
    0 18px 34px -12px rgba(0, 150, 128, 0.6);
}

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

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

.btn--compact {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.875rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  -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;
}

.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;
}

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

.hero {
  overflow: hidden;
  overflow: clip;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.eyebrow__icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--teal-deep);
}

.hero__title {
  /* Sized so "research peptides." fits on one line down to 320px wide. */
  font-size: clamp(1.75rem, min(10.1vw - 4.1px, 9vw), 4rem);
  line-height: 1.04;
}

.hero__lede {
  display: grid;
  gap: 0.8em;
  max-width: 33em;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 30px;
}

.hero__note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero__stage {
  position: relative;
  isolation: isolate;
  height: clamp(320px, 92vw, 440px);
  margin-inline: calc(var(--pad) * -1);
}

/* A light mint wash behind the molecule. */
.hero__stage::before {
  content: "";
  position: absolute;
  inset: -8% -14%;
  z-index: -2;
  background: radial-gradient(closest-side, rgba(0, 196, 167, 0.12), transparent);
}

/* Dot grid, like graph paper under the specimen. */
.hero__stage::after {
  content: "";
  position: absolute;
  inset: -8% -14%;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(16, 20, 24, 0.17) 1px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent);
  mask-image: radial-gradient(closest-side, #000 20%, transparent);
}

.stage {
  position: absolute;
  inset: 0;
}

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

.stage__fallback {
  object-fit: contain;
  padding: 4%;
  transition: opacity 0.4s 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.6s 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;
}

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

.section {
  padding-bottom: clamp(56px, 8vw, 104px);
}

/* A hairline, a heading on the left, and the content beside it. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
}

.split::before {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  margin-bottom: clamp(24px, 4vw, 56px);
  background: var(--line);
}

/* Inside the group */

.points {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px clamp(28px, 4vw, 56px);
}

.point h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* The teal slash from the logo, used as the list marker. */
.point h3::before {
  content: "";
  flex: none;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  background: var(--teal);
  transform: skewX(26deg);
}

.point p {
  max-width: 30em;
  color: var(--muted);
}

/* FAQ */

.faq {
  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: 20px 2px;
  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 {
  color: var(--teal-deep);
}

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

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

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

/* Closer */

.closer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
  padding: clamp(26px, 4.5vw, 48px);
  border: 1px solid rgba(0, 196, 167, 0.3);
  border-radius: calc(var(--radius) + 4px);
  background: var(--teal-tint);
}

.closer h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
}

/* ---------- Peptide gallery ---------- */

.gallery__head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.gallery__note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 24px);
}

.peptide {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

/* Holds a .stage, the same component the hero uses. */
.peptide__figure {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
}

/* The hero's dot grid again, fainter. */
.peptide__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(16, 20, 24, 0.11) 1px, transparent 1.6px);
  background-size: 24px 24px;
  background-position: center;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
}

/* A flat still drawn without WebGL cannot be turned. */
.stage.is-still .stage__canvas {
  cursor: default;
  touch-action: auto;
}

.peptide__body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(18px, 2.2vw, 24px);
}

.peptide__name {
  position: relative;
  padding-left: 22px;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* The teal slash from the logo. */
.peptide__name::before {
  content: "";
  position: absolute;
  top: 0.28em;
  left: 3px;
  width: 7px;
  height: 14px;
  background: var(--teal);
  transform: skewX(26deg);
}

.nowrap {
  white-space: nowrap;
}

/* Sequences wrap wherever they must rather than push the card wider. */
.peptide__code,
.peptide__residues {
  overflow-wrap: anywhere;
  text-wrap: wrap;
}

.peptide__code {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.peptide__residues {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.peptide__meta {
  margin-top: 2px;
  font-size: 0.875rem;
  font-weight: 600;
}

.peptide__note {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.peptide__mods {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.peptide__mods li {
  padding-block: 10px;
}

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

.peptide__mods li:last-child {
  padding-bottom: 0;
}

/* Retatrutide: a taller stage on a phone so 39 residues have room to stand up. */
.peptide--wide .peptide__figure {
  aspect-ratio: 3 / 4;
}

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

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

.site-footer__inner {
  display: grid;
  gap: 18px;
  padding-block: 36px 44px;
}

.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(--muted);
  font-size: 0.875rem;
}

/* ---------- 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,
  .closer .btn {
    flex: 1 1 100%;
  }

  .hero__note {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (min-width: 600px) {
  .hero__stage {
    height: clamp(380px, 56vw, 480px);
  }

  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
}

@media (min-width: 700px) {
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* The long one gets a full row, with its model laid on its side. */
  .peptide--wide {
    grid-column: 1 / -1;
  }

  .peptide--wide .peptide__figure {
    aspect-ratio: auto;
    height: clamp(300px, 34vw, 400px);
  }
}

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

  /* Tracks the width of the text column so the headline stays on two lines. */
  .hero__title {
    font-size: clamp(2.5rem, (min(100vw, 1240px) - 120px) * 0.0535, 3.75rem);
  }

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

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

  .split > h2 {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: start;
  }

  /* Sequence on the left, modifications beside it. */
  .peptide--wide .peptide__body {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: clamp(32px, 4vw, 56px);
  }

  .peptide--wide .peptide__body > * {
    grid-column: 1;
  }

  .peptide--wide .peptide__mods {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin-top: 0;
    border-top: 0;
  }

  .peptide--wide .peptide__mods li:first-child {
    padding-top: 0;
  }
}

@media (min-width: 1100px) {
  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 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;
  }
}

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

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

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

.flag{display:inline-block;height:.85em;width:auto;vertical-align:-0.08em;margin-left:.25em;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
