/* Ryske Ventures: 90s "jazz cup" palette, taken from the logo */
:root {
  --navy: #000066;
  --purple: #9933ff;
  --teal: #33cccc;
  --teal-light: #c9f2f2;
  --purple-light: #ecdcff;
  --grey: #999999;
  --paper: #ffffff;
  --text: #000066;
  --muted: #3a3a6e;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, monospace;

  --border: 3px solid var(--navy);
  --pop: 6px 6px 0 var(--navy);
  --max: 72rem;
}

* { box-sizing: border-box; }

/* Clip sideways overflow on both html and body: iOS Safari ignores it on body alone */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

/* Breathing room when a nav link jumps to a section */
#lineup, #how, #contact { scroll-margin-top: 2.5rem; }

h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: baseline;
}

/* Buttons: pill, thick ink border, hard offset "pop" on hover */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: var(--border);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: #fff; transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--teal); }
.btn-ghost { background: var(--paper); color: var(--navy); }
.btn-ghost:hover { color: var(--navy); box-shadow: 3px 3px 0 var(--purple); }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1.125rem; }

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: block; border-radius: 4px; }
.brand img { display: block; width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem 1.5rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-link { font-weight: 500; text-decoration: none; padding: 0.5rem 0; }
.nav-link:hover { text-decoration: underline; }

/* Hero */
main { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 4rem 0 6rem;
}
.hero h1 { font-size: clamp(3rem, 7.5vw, 6.25rem); }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 32rem; margin: 1.5rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-art { position: relative; aspect-ratio: 600 / 460; }
.jazz { display: block; width: 150%; max-width: none; height: auto; margin-left: -8%; animation: drift 9s ease-in-out infinite alternate; }

/* Flat geometric confetti */
.shape { position: absolute; display: block; }
.shape-tri {
  top: 2%; left: 8%;
  width: 0; height: 0;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 44px solid var(--purple);
  transform: rotate(-14deg);
  animation: bob 5s ease-in-out infinite;
}
.shape-ring {
  bottom: 6%; right: 6%;
  width: 56px; height: 56px;
  border: 8px solid var(--navy);
  border-radius: 50%;
  animation: bob 6s ease-in-out -2s infinite;
}

@keyframes bob { 50% { translate: 0 -10px; } }
@keyframes drift { to { transform: rotate(-3deg) translateY(-8px); } }

/* Lineup: a 90s desktop window */
.lineup { padding-bottom: 6rem; }
.window {
  border: var(--border);
  border-radius: 12px;
  box-shadow: 10px 10px 0 var(--navy);
  overflow: hidden;
  background: var(--paper);
}
.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: var(--purple);
  border-bottom: var(--border);
  color: #fff;
}
.window-title { font-family: var(--font-mono); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.04em; }
.window-btns { display: flex; gap: 0.4rem; }
.window-btns i { width: 18px; height: 18px; border: 2px solid var(--navy); border-radius: 4px; background: var(--paper); }
.window-btns i:last-child { background: var(--teal); }
.window-body { padding: 2.5rem; }
.window-body h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.section-lead { color: var(--muted); max-width: 36rem; margin: 0.75rem 0 2.5rem; }

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.tile { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.tile-icon {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 9rem;
  aspect-ratio: 1;
  border: var(--border);
  border-radius: 28%;
  box-shadow: var(--pop);
  transition: transform 0.2s ease;
}
.tile-icon svg { width: 62%; height: auto; }
.tile:nth-child(odd) .tile-icon { transform: rotate(-4deg); }
.tile:nth-child(even) .tile-icon { transform: rotate(3deg); }
.tile:hover .tile-icon { transform: rotate(0) translateY(-6px); }
.tile-ios { background: var(--navy); color: #fff; }
.tile-android { background: var(--teal); color: var(--navy); }
.tile-web { background: var(--purple); color: #fff; }
.tile-next {
  color: var(--navy);
  background: repeating-linear-gradient(-45deg, var(--paper) 0 10px, var(--teal-light) 10px 20px);
}
.tile-label { font-family: var(--font-mono); font-weight: 700; font-size: 0.9375rem; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.checker {
  height: 24px;
  border-top: var(--border);
  background: repeating-conic-gradient(var(--navy) 0 25%, var(--paper) 0 50%) 0 0 / 24px 24px;
}

/* How we work */
.how { padding-bottom: 7rem; }
.how h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 2.5rem; }
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.card {
  border: var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--pop);
  background: var(--paper);
}
.card-teal { background: var(--teal-light); }
.card-purple { background: var(--purple-light); }
.card h3 { font-size: 1.5rem; margin: 0.75rem 0 0.5rem; }
.card p { margin: 0; color: var(--muted); }
.num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.15rem 0.6rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--paper);
}

/* Contact / footer band */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 6rem 1.5rem 2rem;
}
.contact a { color: #fff; }
.contact a:hover { color: var(--teal); }
.contact :focus-visible { outline-color: var(--teal); }
.contact-jazz {
  position: absolute;
  right: -6rem;
  top: -3rem;
  width: min(44rem, 90vw);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}
.contact-inner, .legal { position: relative; max-width: var(--max); margin: 0 auto; }
.contact .eyebrow { color: var(--teal); }
.contact h2 { font-size: clamp(3.5rem, 11vw, 8rem); }
.email {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.125rem, 3vw, 1.75rem);
  word-break: break-all;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 6rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.legal p { margin: 0; }

/* Privacy page */
.contact-slim { padding-top: 0.5rem; }
.contact-slim .legal { margin-top: 0; border-top: 0; }
.prose { max-width: 44rem; padding-top: 3rem; padding-bottom: 5rem; }
.prose h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.prose h2 { font-size: 1.375rem; letter-spacing: -0.01em; margin: 2.25rem 0 0.5rem; }
.prose .meta { font-family: var(--font-mono); font-size: 0.875rem; margin: 0.75rem 0 2rem; }
.prose p { color: var(--muted); }

/* Responsive */
@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; padding: 2rem 0 4rem; }
  /* Bleed the art to the screen edges, but clip it there */
  .hero-art { order: -1; width: calc(100% + 3rem); margin: 0 -1.5rem; overflow: hidden; }
  .jazz { width: 120%; margin-left: -10%; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  .site-header, main { padding-left: 1rem; padding-right: 1rem; }
  .hero-art { width: calc(100% + 2rem); margin: 0 -1rem; }
  .contact { padding-left: 1rem; padding-right: 1rem; }
  .brand img { width: 120px; }
  .nav-link { display: none; }
  .window-body { padding: 1.5rem 1rem; }
  .window-title { font-size: 0.8125rem; }
  .tiles { gap: 1.25rem; }
}

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