/* ==========================================================================
   PlayApp Inc. — playapp.ca
   ========================================================================== */

:root {
  --bg:          #fbfaf7;
  --sand:        #f3efe6;
  --ink:         #1a1a17;
  --body:        #3a3833;
  --muted:       #6f6b63;
  --line:        #e5e0d6;
  --line-strong: #d8d2c6;
  --rust:        #b23a2e;
  --rust-dark:   #8f2c22;
  --ember:       #e0705f;
  --on-dark:     #d8d3c9;
  --on-dark-dim: #8f8b82;

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --serif:   'Newsreader', Charter, Georgia, serif;
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1200px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-dark); }

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

::selection { background: var(--rust); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  color: var(--bg);
}

/* --------------------------------------------------------------- type ---- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0;
}
.eyebrow--light { color: var(--ember); }

.rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.rule__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.rule__line--capped { max-width: 120px; flex: none; width: 120px; }
.rule__line--light { background: rgba(251, 250, 247, .16); }
.rule__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
}

.h-hero {
  font-size: clamp(40px, 7.2vw, 96px);
  line-height: .98;
  letter-spacing: -.025em;
  max-width: 16ch;
}
.h-section {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
}
.h-section--tight { max-width: 20ch; }

.lede {
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.55;
  color: var(--body);
  max-width: 56ch;
  margin: 32px 0 0;
}

.ital-accent { font-style: italic; color: var(--rust); }
.ital-accent--light { font-style: italic; color: var(--ember); }

.inline-link { border-bottom: 1px solid rgba(178, 58, 46, .4); }

/* ------------------------------------------------------------- buttons ---- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--rust); color: var(--bg); }

.btn--ghost { color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--sand); color: var(--ink); }

.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--ember); color: var(--ink); }

.btn--block { display: block; text-align: center; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ----------------------------------------------------------------- nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.wordmark__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -.02em;
}
.wordmark__suffix {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rust);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__link {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--ink); }

.nav__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 8px;
  transition: background .22s var(--ease);
}
.nav__cta:hover { background: var(--rust); color: var(--bg); }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s linear;
}
.nav__toggle span { margin: 0 auto; position: relative; }
.nav__toggle span::before,
.nav__toggle span::after { content: ''; position: absolute; left: 0; }
.nav__toggle span::before { top: -5.5px; }
.nav__toggle span::after  { top: 5.5px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero ---- */

.hero {
  padding-top: 90px;
  padding-bottom: 70px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px 22px 20px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__n {
  font-family: var(--display);
  font-weight: 600;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.01em;
}
.stat__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 9px;
}

/* ------------------------------------------------------------ sections ---- */

.section { padding: 96px 0; }
.section--dark { background: var(--ink); color: var(--bg); }
.section--sand {
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 88px 0;
}
.section--dark .lede,
.section--dark p { color: var(--on-dark); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ------------------------------------------------------------ flagship ---- */

.flagship__title {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
}
.flagship__title span { color: var(--ember); }

.flagship__copy {
  font-size: 20px;
  line-height: 1.6;
  color: var(--on-dark);
  margin: 24px 0 0;
  max-width: 44ch;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 34px;
}
.tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 15px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bg);
  font: inherit;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.tab:hover { background: rgba(251, 250, 247, .06); }
.tab[aria-selected="true"] {
  background: rgba(224, 112, 95, .1);
  border-color: rgba(224, 112, 95, .5);
}
.tab__idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ember);
}
.tab__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
}
.tab__tasks {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--on-dark-dim);
}

.panel {
  background: var(--bg);
  color: var(--ink);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.panel__module {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rust);
  flex: none;
}
.panel__app {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.panel__headline {
  font-size: 32px;
  letter-spacing: -.01em;
  margin: 22px 0 0;
}
.panel__body {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--body);
  margin: 12px 0 0;
}
.panel__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.metric {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.metric__n {
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
}
.metric__n--accent { color: var(--rust); }
.metric__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.readiness { margin-top: 18px; }
.readiness__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.readiness__track {
  height: 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.readiness__fill {
  height: 100%;
  width: 0;
  background: var(--rust);
  border-radius: 99px;
  transition: width .5s var(--ease);
}

/* ------------------------------------------------------------ services ---- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 2px solid var(--ink);
}
.service {
  padding: 32px 28px 40px;
  border-right: 1px solid var(--line);
  transition: background .25s var(--ease);
}
.service:last-child { border-right: 0; }
.service:hover { background: var(--sand); }
.service__idx {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--rust);
  letter-spacing: .06em;
}
.service__title { font-size: 26px; letter-spacing: -.01em; margin: 16px 0 0; }
.service__body {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--body);
  margin: 12px 0 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 4px 10px;
}

/* ---------------------------------------------------------- industries ---- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); }
.section-head__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.industry {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.industry:hover { border-color: var(--rust); transform: translateY(-2px); }
.industry__idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rust);
}
.industry__title { font-size: 23px; margin: 14px 0 0; }
.industry__body {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--body);
  margin: 9px 0 0;
}

/* ---------------------------------------------------------------- work ---- */

.work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.work-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.work-card:hover {
  border-color: var(--ink);
  background: var(--sand);
  color: var(--ink);
  transform: translateY(-2px);
}
.work-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.work-card__name { font-size: 26px; letter-spacing: -.01em; }
.work-card__cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rust);
  white-space: nowrap;
}
.work-card__body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  margin: 12px 0 0;
}
.work-card__domain {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
  letter-spacing: .04em;
}

/* ------------------------------------------------------------- contact ---- */

.about__title {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.04;
  margin: 22px 0 0;
}
.about__copy {
  font-size: 19px;
  line-height: 1.62;
  color: var(--on-dark);
  margin: 24px 0 0;
  max-width: 46ch;
}

.contact-card {
  background: rgba(251, 250, 247, .04);
  border: 1px solid rgba(251, 250, 247, .14);
  border-radius: 16px;
  padding: 34px;
}
.contact-card__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember);
}
.contact-card h3 { font-size: 30px; margin: 16px 0 0; }

.contact-list { margin-top: 26px; }
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(251, 250, 247, .14);
  color: var(--bg);
  transition: color .2s var(--ease);
}
.contact-row:last-child { border-bottom: 1px solid rgba(251, 250, 247, .14); }
a.contact-row:hover { color: var(--ember); }
.contact-row__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
.contact-row__value {
  font-family: var(--serif);
  font-size: 18px;
  text-align: right;
}

.contact-card .btn { margin-top: 26px; padding: 15px; }

/* -------------------------------------------------------------- footer ---- */

.footer {
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid rgba(251, 250, 247, .12);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer .wordmark { color: var(--bg); }
.footer .wordmark__name { font-size: 20px; }
.footer .wordmark__suffix { color: var(--ember); }
.footer__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--on-dark-dim);
}

/* -------------------------------------------------------------- reveal ---- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------- breakpoints ---- */

@media (max-width: 1080px) {
  .split { gap: 44px; }
  .industries { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .nav__toggle { display: flex; align-items: center; justify-content: center; }

  .nav__links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
  }
  .nav__cta { margin-top: 16px; text-align: center; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 72px 0; }
  .section--sand { padding: 64px 0; }
  .hero { padding-top: 64px; padding-bottom: 48px; }

  .services { grid-template-columns: 1fr; }
  .service {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0 32px;
  }
  .service:last-child { border-bottom: 0; }

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

  .stats { margin-top: 52px; }
}

@media (max-width: 780px) {
  .work { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 18px 16px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }

  .industries { grid-template-columns: 1fr; }

  .rule { flex-wrap: wrap; gap: 8px; }
  .rule__line--capped { width: 60px; }

  .panel { padding: 22px; }
  .panel__bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .panel__headline { font-size: 26px; }
  .panel__metrics { grid-template-columns: 1fr; }

  .contact-card { padding: 24px; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .contact-row__value { text-align: left; }

  .work-card, .industry { padding: 24px; }
  .work-card__head { flex-direction: column; gap: 6px; }

  .btn-row { gap: 10px; }
  .btn { flex: 1 1 auto; text-align: center; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .nav, .nav__toggle { position: static; }
  .section--dark, .footer { background: #fff; color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
