/* Playground Labs — shared styles.
   Minimal typographic site. Tokens from the design handoff; one accent (#E85C3A)
   used sparingly. Desktop-first (designed ~1280-1440px); responsive below 900px. */

:root {
  --bg: #ffffff;
  --ink: #131313;
  /* gray ramp darkened to clear WCAG AA (4.5:1) on white; hierarchy is
     carried by size/weight/tracking rather than lightness steps */
  --t-sec: #6E6E6E;   /* body copy (5.1:1) */
  --t-ter: #767676;   /* descriptions, inactive nav (4.5:1) */
  --t-mut: #767676;   /* labels, captions, placeholders */
  --t-mut2: #767676;  /* footer copyright */
  --ghost: #eeeeee;   /* decorative index numbers (non-text, exempt) */
  --feature: #6E6E6E; /* feature row text */
  --accent: #E85C3A;       /* brand accent: large type + graphics only (3.5:1) */
  --accent-text: #C94A20;  /* accent for small type + filled buttons (4.7:1) */
  --border: #F0F0F0;
  --pad: 64px;        /* page horizontal padding */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}
.brand { display: flex; align-items: center; gap: 13px; }
/* nudged down: the logo art is slightly top-heavy in its square, so a true
   box-center leaves the ring reading a touch high next to the wordmark */
.brand-logo { position: relative; top: 1px; width: 44px; height: 44px; object-fit: contain; display: block; }
.wordmark { font-weight: 500; font-size: 23px; line-height: 1; letter-spacing: -0.4px; color: var(--ink); }
.wordmark .period { color: var(--accent); font-size: 34px; display: inline-block; transform-origin: center bottom; cursor: pointer; transition: opacity 0.6s ease, transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1); }

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 32px; position: relative; }
.nav-links a {
  font-weight: 400; font-size: 14px; line-height: 1;
  color: var(--t-ter);
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

/* ---------- Shared bits ---------- */
.rule { height: 1px; background: var(--border); margin: 0 var(--pad); }

.label {
  margin: 0;
  font-weight: 400; font-size: 10px; line-height: 1;
  color: var(--t-mut); letter-spacing: 3px; text-transform: uppercase;
}

.subhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  border-bottom: 1px solid var(--border);
}
.subhead .idx {
  font-weight: 700; font-size: 10px; line-height: 1;
  color: var(--ghost); letter-spacing: 2px;
}

.footer {
  padding: 28px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.footer .copy { font-weight: 400; font-size: 12px; line-height: 1; color: var(--t-mut2); }
.footer-right { display: flex; align-items: center; gap: 13px; }
.footer .gh {
  display: flex; line-height: 0; color: var(--t-mut2);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer .gh svg { width: 15px; height: 15px; }
.footer .gh:hover { color: var(--accent); transform: translateY(-1px); }
.footer .tagline {
  font-weight: 500; font-size: 10px; line-height: 1;
  color: var(--accent-text); letter-spacing: 2px; text-transform: uppercase;
}

/* ---------- Home: hero ---------- */
.hero {
  padding: 120px var(--pad) 104px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero .eyebrow { margin: 0 0 32px; }
.hero .d-light {
  font-weight: 300; font-size: clamp(48px, 11vw, 104px); line-height: 0.95;
  letter-spacing: -4px; color: var(--ink);
}
.hero .d-bold {
  font-weight: 700; font-size: clamp(48px, 11vw, 104px); line-height: 0.95;
  letter-spacing: -4px; margin-bottom: 44px;
}
.hero .d-bold .accent { color: var(--accent); }
.hero .subtext {
  margin: 0;
  font-weight: 400; font-size: 18px; line-height: 1.65;
  color: var(--t-sec); max-width: 380px;
}

/* ---------- Home: apps overview ---------- */
.section { padding: 80px var(--pad); }
.section > .label { margin-bottom: 44px; }

.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card .box {
  height: 300px; border-radius: 10px; margin-bottom: 16px; padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
/* top-anchored with fixed spacing so plat/logo/name/desc land on the same
   line across all cards regardless of description length */
.app-card .plat { font-weight: 500; font-size: 10px; line-height: 1; letter-spacing: 2px; text-transform: uppercase; }
.app-card .app-logo { width: 40px; height: 40px; display: block; margin-top: 32px; }
/* wordmark logo (Flare, Node): auto width, padded to keep the 40px-tall slot so the
   name row still aligns with the icon cards */
.app-card .app-logo--wordmark { width: auto; height: 26px; padding: 7px 0; box-sizing: content-box; }
.app-card .box > div { margin-top: 40px; }
.app-card .name { font-weight: 600; font-size: 26px; line-height: 1; letter-spacing: -0.5px; margin-bottom: 6px; }
.app-card .cat  { font-weight: 400; font-size: 12px; line-height: 1; letter-spacing: 0.3px; }
.app-card .desc { margin: 12px 0 0; font-weight: 400; font-size: 13px; line-height: 1.5; }

/* dark-card text scheme (Flare, EverSaid) */
.box.card--dark .plat { color: rgba(255, 255, 255, 0.55); }
.box.card--dark .name { color: #ffffff; }
.box.card--dark .cat  { color: rgba(255, 255, 255, 0.5); }
.box.card--dark .desc { color: rgba(255, 255, 255, 0.72); }
/* light-card text scheme (Node — paper/ink) */
.box.card--light .plat { color: rgba(29, 31, 32, 0.5); }
.box.card--light .name { color: #1D1F20; }
.box.card--light .cat  { color: rgba(29, 31, 32, 0.55); }
.box.card--light .desc { color: rgba(29, 31, 32, 0.68); }
/* warm-dark card scheme (Flare — dark surface, cream ink) */
.box.card--warm .plat { color: rgba(243, 237, 229, 0.55); }
.box.card--warm .name { color: #F3EDE5; }
.box.card--warm .cat  { color: rgba(243, 237, 229, 0.5); }
.box.card--warm .desc { color: rgba(243, 237, 229, 0.72); }

/* ---------- Home: about ---------- */
.about {
  padding: 80px var(--pad);
  display: grid; grid-template-columns: 160px 1fr; gap: 64px; align-items: start;
}
.about .label { margin-top: 6px; }
.about .lead {
  margin: 0 0 20px;
  font-weight: 300; font-size: clamp(22px, 3vw, 28px); line-height: 1.4;
  letter-spacing: -0.6px; color: var(--ink); max-width: 600px;
}
.about .body {
  margin: 0;
  font-weight: 400; font-size: 16px; line-height: 1.65;
  color: var(--t-sec); max-width: 540px;
}

/* ---------- Apps detail: rows ---------- */
.app-row {
  padding: 72px var(--pad);
  display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: start;
  border-bottom: 1px solid var(--border);
}
.app-row.reverse { grid-template-columns: 420px 1fr; }

.app-meta { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.app-meta .idx  { font-weight: 700; font-size: 10px; line-height: 1; color: var(--ghost); letter-spacing: 2px; }
.app-meta .plat { font-weight: 500; font-size: 10px; line-height: 1; color: var(--accent-text); letter-spacing: 2px; text-transform: uppercase; }
.app-icon {
  width: 64px; height: 64px; border-radius: 15px; margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center;
}
.app-icon img { width: 38px; height: 38px; display: block; }
.app-icon img.wordmark { width: 46px; height: 18px; }

.app-title {
  font-weight: 700; font-size: clamp(48px, 8vw, 80px); line-height: 0.88;
  color: var(--ink); letter-spacing: -3.5px; margin-bottom: 28px;
}
.cat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.cat-row .cat { font-weight: 400; font-size: 10px; line-height: 1; color: var(--accent-text); letter-spacing: 3px; text-transform: uppercase; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; }

.app-desc {
  margin: 0 0 40px;
  font-weight: 300; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5;
  color: var(--ink); letter-spacing: -0.2px; max-width: 500px;
}

.features { display: flex; flex-direction: column; gap: 14px; }
.feature { display: flex; align-items: baseline; gap: 16px; }
.feature .flabel {
  font-weight: 400; font-size: 10px; line-height: 1; color: var(--t-mut);
  letter-spacing: 2px; text-transform: uppercase; flex-shrink: 0; width: 80px;
}
.feature .ftext { font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--feature); }

/* ---------- Image placeholder slots ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slot {
  width: 100%; background: #F7F7F7;
  display: grid; place-items: center;
}
.slot span {
  font-weight: 400; font-size: 10px; line-height: 1;
  letter-spacing: 2px; text-transform: uppercase; color: var(--t-mut);
  padding: 0 12px; text-align: center;
}
.slot.r16 { border-radius: 16px; }
.slot.r10 { border-radius: 10px; }
/* true phone aspect, so real screenshots drop in with no crop */
.shot  { height: auto; aspect-ratio: 1206 / 2622; }
/* desktop-app variant (EverSaid): one wide shot instead of two phone slots */
.shots--single { grid-template-columns: 1fr; }
.shot--desktop { aspect-ratio: 3956 / 2970; }
.slot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.photo { height: 440px; }
.photo-img { width: 100%; height: 440px; object-fit: cover; border-radius: 10px; display: block; }

/* ---------- Team: profile ---------- */
.profile {
  display: grid; grid-template-columns: 420px 1fr; min-height: 520px;
  border-bottom: 1px solid var(--border);
}
.photo-col { border-right: 1px solid var(--border); padding: 48px 48px 48px var(--pad); }
.info-col {
  padding: 48px var(--pad);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.name {
  font-weight: 700; font-size: clamp(48px, 8vw, 80px); line-height: 0.88;
  color: var(--ink); letter-spacing: -3.5px; margin-bottom: 20px;
}
.role-row { display: flex; align-items: center; gap: 10px; }
.role-row .role { font-weight: 400; font-size: 10px; line-height: 1; color: var(--accent-text); letter-spacing: 3px; text-transform: uppercase; }
.bio {
  margin: 0 0 32px;
  font-weight: 300; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5;
  color: var(--ink); letter-spacing: -0.3px; max-width: 480px;
}
.meta-rows { display: flex; flex-direction: column; gap: 12px; }
.meta-rows .flabel { width: 60px; }

/* ---------- Team: player two ---------- */
.player {
  padding: 80px var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.pt-title {
  font-weight: 700; font-size: clamp(40px, 6vw, 56px); line-height: 0.9;
  color: var(--ink); letter-spacing: -2.5px;
}
.pt-title .accent { color: var(--accent); }
.pt-right { padding-bottom: 6px; }
.pt-lead {
  margin: 0 0 16px;
  font-weight: 300; font-size: 20px; line-height: 1.5;
  color: var(--ink); letter-spacing: -0.2px; max-width: 420px;
}
.pt-body { margin: 0; font-weight: 400; font-size: 14px; line-height: 1.6; color: var(--t-ter); }
.pt-link { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 28px; font-weight: 500; font-size: 14px; line-height: 1; color: var(--accent-text); transition: color 0.2s ease; }
.pt-link span { transition: transform 0.2s ease; }
.pt-link:hover span { transform: translateX(4px); }

/* ---------- Nav hover-preview panel ---------- */
.nav-preview {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1); overflow: hidden;
  opacity: 0; pointer-events: none; width: 330px; height: 128px;
  transition: opacity 0.22s ease,
              width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}
.nav-preview.show { opacity: 1; pointer-events: auto; }
/* Panes are fixed-size (not inset:0) so they never reflow while the panel
   animates its width/height — the overflow just clips the fading-out pane. */
.nav-preview__pane { position: absolute; top: 0; right: 0; opacity: 0; transition: opacity 0.2s ease; }
.nav-preview__pane.show { opacity: 1; }
.nav-preview__apps { width: 330px; height: 128px; padding: 14px; display: flex; gap: 10px; }
.nav-preview__team { width: 220px; height: 110px; padding: 18px 22px; }
.mini-card {
  flex: 1; border-radius: 7px; padding: 12px 10px; height: 100px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mini-card .m-plat { font-weight: 400; font-size: 9px; line-height: 1; letter-spacing: 1.5px; text-transform: uppercase; }
.mini-card .m-name { font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: -0.3px; margin-bottom: 3px; white-space: nowrap; }
.mini-card .m-cat { font-weight: 400; font-size: 10px; line-height: 1; white-space: nowrap; }
.mini-team-name { font-weight: 700; font-size: 26px; line-height: 0.9; letter-spacing: -1.2px; color: var(--ink); margin-bottom: 10px; }
.mini-team-role { font-weight: 400; font-size: 9px; line-height: 1; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-text); }

/* ---------- Contact page ---------- */
.contact-intro { padding: 96px var(--pad) 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-intro .label { margin-bottom: 24px; }
.contact-headline { font-weight: 700; font-size: clamp(48px, 8vw, 80px); line-height: 0.9; letter-spacing: -3.2px; color: var(--ink); }
.contact-headline .accent { color: var(--accent); }
.contact-sub { margin: 24px 0 0; font-weight: 400; font-size: 18px; line-height: 1.65; color: var(--t-sec); max-width: 420px; }

.contact-grid { padding: 80px var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.form { display: flex; flex-direction: column; gap: 28px; max-width: 420px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 400; font-size: 10px; line-height: 1; color: var(--t-mut); letter-spacing: 2px; text-transform: uppercase; }
.field input, .field textarea {
  border: none; border-bottom: 1px solid var(--border); padding: 8px 0;
  font: 400 16px/1.4 'Outfit', sans-serif; color: var(--ink); background: transparent;
  outline: none; transition: border-color 0.2s ease;
}
.field textarea { line-height: 1.5; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--t-mut); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.btn-send {
  align-self: flex-start; background: var(--accent-text); color: #fff; border: none;
  border-radius: 8px; padding: 14px 28px; font: 500 14px/1 'Outfit', sans-serif; cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.btn-send:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(201, 74, 32, 0.32); }

.contact-email {
  display: block; font-weight: 300; font-size: clamp(24px, 3vw, 32px); line-height: 1.3;
  color: var(--ink); letter-spacing: -0.8px; transition: color 0.2s ease;
}
.contact-email:hover { color: var(--accent-text); }

/* ---------- Home: quieter About beat + hero CTA ---------- */
.about--quiet { background: #FAFAF8; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 56px;
  font-weight: 500; font-size: 14px; line-height: 1; color: var(--accent-text);
}
.hero-cta span { transition: transform 0.2s ease; }
.hero-cta:hover span { transform: translateX(4px); }

/* ---------- Motion system (gated on JS so content is visible without it) ---------- */
.js .anim {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .anim.in { opacity: 1; transform: none; }
/* spring variant for the hero period + founder label */
.js .anim-spring { transform: translateY(10px) scale(0.85); transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); transition-duration: 0.6s; }

@media (prefers-reduced-motion: no-preference) {
  /* "tinkered" hover tilt on the home app tiles (flat by default) */
  .apps-grid .box { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease; cursor: pointer; }
  /* rotation varies per slot; shadow is keyed to card tone (light cards take
     a softer shadow on the white ground) so reordering cards can't skew it */
  .apps-grid > .app-card:nth-child(1) .box:hover { transform: rotate(-3deg) translateY(-6px); }
  .apps-grid > .app-card:nth-child(2) .box:hover { transform: rotate(2.5deg) translateY(-6px); }
  .apps-grid > .app-card:nth-child(3) .box:hover { transform: rotate(-2deg) translateY(-6px); }
  .apps-grid .box:hover { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22); }
  .apps-grid .box.card--light:hover { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); }
  /* team photo tilt */
  .photo-img { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
  .photo-img:hover { transform: rotate(-1.5deg) scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  .js .anim { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Responsive (≤900px) ---------- */
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .nav-links { gap: 20px; }
  .hero { padding: 72px var(--pad) 56px; }
  .apps-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .app-row, .app-row.reverse { grid-template-columns: 1fr; gap: 40px; }
  .profile { grid-template-columns: 1fr; }
  .photo-col { border-right: none; border-bottom: 1px solid var(--border); padding: 32px var(--pad); }
  .info-col { padding: 32px var(--pad); }
  .player { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .nav-preview { display: none; }
}

@media (max-width: 560px) {
  .nav { padding: 16px var(--pad); }
  .brand { gap: 8px; }
  .brand-logo { width: 28px; height: 28px; }
  .wordmark { font-size: 15px; white-space: nowrap; }
  .wordmark .period { font-size: 21px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
}
