:root {
  color-scheme: light;
  --ground: #f3f4f0;
  --paper: #fff;
  --ink: #191c1a;
  --muted: #505750;
  --mint: #a1ffcb;
  --gutter: clamp(16px, 4vw, 64px);
  --padding: clamp(24px, 4vw, 56px);
  --gap: 8px;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 1rem/1.55 var(--body);
}
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #08734f; outline-offset: 4px; }
::selection { background: var(--mint); color: var(--ink); }

.shell { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  background: var(--mint);
  padding: 12px 16px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-header { min-height: 84px; padding-block: 12px; }
.brand, nav a, .site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
}
.brand img { flex: none; }
nav { display: flex; gap: clamp(14px, 3vw, 36px); }
nav a:hover, .site-footer a:hover, .copy-email:hover { text-decoration: underline; text-underline-offset: .22em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.11fr) minmax(0, 1fr);
  gap: var(--gap);
}
.hero-copy {
  min-height: clamp(390px, 39vw, 620px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  background: var(--paper);
  padding: var(--padding);
}
h1, h2, h3, .studio-statement { font-family: var(--display); }
h1 {
  font-size: clamp(3.5rem, 8.35vw, 8rem);
  font-weight: 650;
  letter-spacing: -.084em;
  line-height: .88;
  margin-inline-start: -.062em;
}
.hero-bottom { display: grid; justify-items: start; gap: 20px; }
.hero-bottom p { font-size: clamp(1.125rem, 1.75vw, 1.5rem); color: var(--muted); letter-spacing: -.035em; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 600;
  transition: color 180ms, background-color 180ms;
}
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #315343; }
.button span, .app h3 span { font-size: 1.2em; line-height: 1; }

.hero-art {
  isolation: isolate;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: var(--ink);
}
.art-grid {
  position: absolute;
  inset: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='1' fill='%23a1ffcb' opacity='.22'/%3E%3C/svg%3E") center;
}
.hero-loop { position: relative; width: min(100%, 650px); height: auto; }
.art-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border: solid #a1ffcb96;
  border-width: 0;
}
.top-left { top: 22px; left: 22px; border-top-width: 1px; border-left-width: 1px; }
.top-right { top: 22px; right: 22px; border-top-width: 1px; border-right-width: 1px; }
.bottom-left { bottom: 22px; left: 22px; border-bottom-width: 1px; border-left-width: 1px; }
.bottom-right { bottom: 22px; right: 22px; border-bottom-width: 1px; border-right-width: 1px; }

section[id] { scroll-margin-top: 18px; }
.apps { margin-block: clamp(46px, 6vw, 88px); }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 18px;
}
h2 {
  font-size: clamp(2.25rem, 4.05vw, 4.25rem);
  font-weight: 650;
  letter-spacing: -.075em;
  line-height: 1;
}
.section-heading p, .app-copy p, .studio-copy > p:last-child { color: var(--muted); }
.app-index {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.app-index li { display: flex; }
.app {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  text-decoration: none;
}
.app-art {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.5;
}
.app-art img:not(.app-scene) {
  position: relative;
  width: 38%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 22.5%;
  transition: transform 260ms ease-out;
}
.app:is(:hover, :focus-visible) .app-art img:not(.app-scene) { transform: scale(1.07); }
.bill-bee { background: #ffd670; }
.bee-cell {
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  background: #efb73c;
}
.bee-cell-left { left: -12%; top: -10%; transform: rotate(18deg); }
.bee-cell-right { right: -12%; bottom: -13%; transform: rotate(-14deg); }
.brain-together { background: #314b42; }
.app-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.76);
}
.purring { background: #efd7eb; }
.purring-orbit { position: absolute; aspect-ratio: 1; border-radius: 50%; }
.purring-orbit-outer { width: 86%; background: #e7c5e1; }
.purring-orbit-inner { width: 59%; background: #e0b6d8; }
.app-copy { padding: clamp(16px, 2.35vw, 32px); }
.app h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(1.375rem, 2.3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -.05em;
  line-height: 1.08;
  margin-bottom: 8px;
}
.app h3 span { font-size: .72em; transition: transform 180ms ease; }
.app:is(:hover, :focus-visible) h3 span { transform: translate(2px, -2px); }

.studio {
  display: grid;
  grid-template-columns: 1fr 2.02fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.studio-label, .studio-copy { padding: var(--padding); background: var(--paper); }
.studio-label { background: var(--ink); color: var(--paper); }
.studio-label h2 { font-size: clamp(1.75rem, 3vw, 3.125rem); }
.studio-copy { display: grid; gap: 16px; }
.studio-statement {
  max-width: 20ch;
  font-size: clamp(2rem, 3.7vw, 4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.067em;
}
.studio-copy > p:last-child { max-width: 52ch; }
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--mint);
  padding: var(--padding);
}
.contact h2 { margin-bottom: 12px; }
.contact-actions { display: grid; justify-items: start; position: relative; }
.contact-actions a { max-width: 100%; overflow-wrap: anywhere; }
.copy-email {
  cursor: pointer;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  padding: 0;
}
.copy-status {
  position: absolute;
  top: 100%;
  min-width: 100%;
  font-size: .875rem;
}
.site-footer {
  min-height: 84px;
  padding-block: 12px;
  font-size: .875rem;
  color: var(--muted);
}
.error-content { margin-block: 10vh; }
.error-content h1 { font-size: clamp(2.5rem, 8vw, 6rem); }
.error-content p { margin-block: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-loop { animation: current-flow 4.5s ease-in-out; }
  .enter { animation: enter 420ms ease-out; }
  @keyframes current-flow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .83; transform: scale(.965); }
  }
  @keyframes enter {
    from { transform: translateY(8px); opacity: .86; }
    to { transform: translateY(0); opacity: 1; }
  }
}

@media (max-width: 850px) {
  .hero-copy { min-height: 350px; }
  h1 { font-size: clamp(3.125rem, 8.7vw, 5.625rem); }
  .section-heading { flex-wrap: wrap; }
  .app h3 { font-size: clamp(1.2rem, 2.7vw, 1.7rem); }
}
@media (max-width: 660px) {
  .site-header { min-height: 68px; }
  .brand img { width: 35px; height: 35px; }
  nav { gap: 14px; font-size: .875rem; }
  .hero, .studio { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; gap: 29px; padding-block: 31px 25px; }
  h1 { font-size: clamp(3.375rem, 12vw, 5.625rem); }
  .hero-bottom { gap: 15px; }
  .hero-art { aspect-ratio: 1.6; }
  .hero-loop { width: 87%; }
  .apps { margin-block: 46px; }
  .app-index { grid-template-columns: 1fr; }
  .app { display: grid; grid-template-columns: minmax(88px, 33%) 1fr; }
  .app-art { aspect-ratio: auto; min-height: 110px; }
  .app-art img:not(.app-scene) { width: 61%; max-width: 100px; }
  .app h3 { font-size: clamp(1.25rem, 4.2vw, 1.75rem); }
  .contact { align-items: flex-start; flex-direction: column; padding-bottom: calc(var(--padding) + 16px); }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 0; }
  .site-footer p { padding-top: 8px; }
}
@media (max-width: 400px) {
  .brand span { max-width: 11ch; font-size: .875rem; line-height: 1.05; text-wrap: balance; }
  .brand { gap: 7px; }
  nav { gap: 10px; }
  nav a { gap: 4px; }
  .app-copy { padding-inline: 13px; }
}
@media (max-width: 350px) {
  .brand span {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
