:root {
  --black: #0a0a0a;
  --white: #f5f4f1;
  --grey-100: #ebebeb;
  --grey-200: #d4d4d4;
  --grey-400: #9a9a9a;
  --grey-600: #5a5a5a;
  --grey-800: #2a2a2a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--black); overflow-x: hidden; }

/* Nav: logo + links; transparent on hero, solid bar on light sections */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(28px, 5vw, 64px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-nav.is-on-dark {
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
}
.site-nav.is-on-light {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.04);
}
.site-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* Solid light tile on dark hero so black line art in CGS.png stays visible */
.site-nav.is-on-dark .site-logo-link {
  background: var(--white);
  border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}
.site-nav.is-on-light .site-logo-link {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--grey-200);
  box-shadow: 0 4px 24px rgba(10, 10, 10, 0.07);
}
.site-nav.is-on-dark .site-logo-link:hover {
  border-color: rgba(10, 10, 10, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.site-nav.is-on-light .site-logo-link:hover {
  border-color: var(--grey-400);
}
.logo-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav.is-on-dark .nav-links a {
  color: rgba(245, 244, 241, 0.72);
}
.site-nav.is-on-dark .nav-links a:hover {
  color: var(--white);
}
.site-nav.is-on-light .nav-links a {
  color: var(--grey-600);
}
.site-nav.is-on-light .nav-links a:hover {
  color: var(--black);
}
.nav-cta {
  padding: 8px 18px;
  border-radius: 2px;
  font-weight: 500 !important;
}
.site-nav.is-on-dark .nav-cta {
  background: var(--white) !important;
  color: var(--black) !important;
}
.site-nav.is-on-dark .nav-cta:hover {
  background: var(--grey-100) !important;
}
.site-nav.is-on-light .nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
}
.site-nav.is-on-light .nav-cta:hover {
  background: var(--grey-800) !important;
  color: var(--white) !important;
}
.nav-toggle {
  display: none;
}
.nav-backdrop {
  display: none;
}

/* HERO: type-led (no photo required); subtle depth so it doesn’t read as a “broken” empty block */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 72px;
  display: grid;
  grid-template-rows: 1fr auto;
  background-color: var(--black);
  background-image: radial-gradient(ellipse 90% 60% at 50% 110%, rgba(245, 244, 241, 0.07) 0%, transparent 55%);
  position: relative;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 40px 60px;
  position: relative;
  z-index: 2;
  min-height: 50vh;
}
.hero-headline {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(3.25rem, 11vw, 14rem);
  line-height: 0.88;
  color: var(--white);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
}
.hero-headline .outline {
  -webkit-text-stroke: 1.5px var(--white);
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-headline .hero-studios {
  display: block;
  margin-top: 0.02em;
  font-size: 0.42em;
  letter-spacing: 0.02em;
}
@supports not (-webkit-text-stroke: 1px currentColor) {
  .hero-headline .outline {
    color: rgba(245, 244, 241, 0.92);
    -webkit-text-fill-color: rgba(245, 244, 241, 0.92);
  }
}
.hero-subtext {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(245, 244, 241, 0.82);
  font-weight: 400;
}
.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 24px;
}
.hero-sub { font-size: 0.9rem; color: rgba(245,244,241,0.68); max-width: 400px; line-height: 1.75; font-weight: 300; }
.hero-ctas { display: flex; gap: 10px; align-items: center; }
.btn-white { background: var(--white); color: var(--black); padding: 12px 26px; border-radius: 2px; font-size: 0.78rem; font-weight: 500; text-decoration: none; letter-spacing: 0.03em; transition: background 0.2s; }
.btn-white:hover { background: var(--grey-100); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: rgba(245,244,241,0.78); padding: 12px 26px; border-radius: 2px; font-size: 0.78rem; text-decoration: none; transition: all 0.2s; }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ABOUT */
#about { padding: 100px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.section-tag { font-family: 'DM Mono', monospace; font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-400); }
.about-left .section-tag { display: block; margin-bottom: 28px; }
.about-headline { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 5vw, 5.5rem); line-height: 0.93; letter-spacing: 0.01em; color: var(--black); }
.about-right { padding-top: 6px; display: flex; flex-direction: column; gap: 22px; }
.about-body { font-size: 0.95rem; line-height: 1.8; color: var(--grey-600); font-weight: 300; }
.about-body strong { color: var(--black); font-weight: 500; }

/* PILLARS */
#pillars { padding-bottom: 100px; }
.pillars-header { padding: 0 40px 40px; border-bottom: 1px solid var(--grey-200); }
.pillars-outer { overflow-x: auto; scrollbar-width: none; cursor: grab; }
.pillars-outer::-webkit-scrollbar { display: none; }
.pillars-outer.grabbing { cursor: grabbing; }
.pillars-track { display: flex; border-bottom: 1px solid var(--grey-200); width: max-content; }
.pillar-card {
  min-width: 270px; padding: 36px 32px 40px;
  border-right: 1px solid var(--grey-200); flex-shrink: 0;
  transition: background 0.25s; cursor: default;
}
.pillar-card:hover { background: var(--black); }
.pillar-card:hover .pillar-num, .pillar-card:hover .pillar-title, .pillar-card:hover .pillar-desc { color: var(--white); }
.pillar-card:hover .pillar-rule { background: rgba(255,255,255,0.12); }
.pillar-num { font-family: 'DM Mono', monospace; font-size: 0.6rem; color: var(--grey-400); letter-spacing: 0.1em; margin-bottom: 36px; transition: color 0.25s; }
.pillar-rule { width: 20px; height: 1px; background: var(--grey-200); margin-bottom: 18px; transition: background 0.25s; }
.pillar-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.04em; color: var(--black); margin-bottom: 10px; transition: color 0.25s; }
.pillar-desc { font-size: 0.8rem; line-height: 1.65; color: var(--grey-600); font-weight: 300; transition: color 0.25s; }

/* APPS SHOWCASE */
#apps { padding: 100px 0; background: var(--black); }
.apps-hdr { padding: 0 40px 52px; }
.apps-hdr .section-tag { color: rgba(245,244,241,0.52); display: block; margin-bottom: 14px; }
.apps-headline { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.8rem, 5vw, 5.5rem); color: var(--white); line-height: 0.92; letter-spacing: 0.01em; }
.apps-scroll { overflow-x: auto; padding: 0 40px 8px; scrollbar-width: none; cursor: grab; }
.apps-scroll::-webkit-scrollbar { display: none; }
.apps-scroll.grabbing { cursor: grabbing; }
.apps-track { display: flex; gap: 2px; width: max-content; }

.app-card {
  width: 450px; border: 1px solid rgba(255,255,255,0.09);
  border-radius: 3px; overflow: hidden; flex-shrink: 0;
  cursor: pointer; transition: border-color 0.3s; background: rgba(255,255,255,0.04);
}
.app-card:hover { border-color: rgba(255,255,255,0.3); }
.app-card-hdr { padding: 32px 32px 24px; display: flex; justify-content: space-between; align-items: flex-start; }
.app-badge {
  font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey-400);
  border: 1px solid rgba(255,255,255,0.12); padding: 5px 11px; border-radius: 1px;
}
.app-arrow {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--grey-400); font-size: 0.8rem; transition: all 0.25s;
}
.app-card:hover .app-arrow { background: var(--white); color: var(--black); border-color: var(--white); }
.app-card-name { font-family: 'Bebas Neue', sans-serif; font-size: 5rem; color: var(--white); line-height: 0.88; letter-spacing: 0.02em; padding: 0 32px 20px; }
.app-card-desc { padding: 0 32px 28px; font-size: 0.82rem; color: var(--grey-400); line-height: 1.65; font-weight: 300; }

/* phone screens in cards */
.app-screen-wrap { margin: 0 32px 32px; border-radius: 12px; overflow: hidden; height: 240px; }
.turf-preview-wrap {
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.turf-preview-img {
  width: min(62%, 220px);
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  background: #0d0d0d;
}
.s-turf { width: 100%; height: 100%; background: #111; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.s-row { display: flex; justify-content: space-between; align-items: center; }
.s-label { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: var(--white); letter-spacing: 0.06em; }
.s-meta { font-family: 'DM Mono', monospace; font-size: 0.55rem; color: var(--grey-400); letter-spacing: 0.07em; }
.s-map { flex: 1; background: #1a1a1a; border-radius: 8px; position: relative; overflow: hidden; }
.s-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 22px 22px; }
.s-pin { position: absolute; width: 7px; height: 7px; background: var(--white); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,0.12); }
.s-pills { display: flex; gap: 7px; }
.s-pill { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 2px; padding: 5px 9px; font-family: 'DM Mono', monospace; font-size: 0.55rem; color: var(--grey-400); letter-spacing: 0.05em; }
.s-pill b { color: var(--white); font-weight: 500; }
.s-campsite { width: 100%; height: 100%; background: #0d0d0d; padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.sc-hdr { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: var(--white); letter-spacing: 0.06em; }
.sc-card { border: 1px solid #1e1e1e; border-radius: 7px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.sc-card-name { font-size: 0.75rem; color: var(--white); margin-bottom: 3px; }
.sc-card-meta { font-family: 'DM Mono', monospace; font-size: 0.55rem; color: var(--grey-400); }
.sc-tag { font-family: 'DM Mono', monospace; font-size: 0.52rem; border: 1px solid #2a2a2a; padding: 4px 7px; border-radius: 1px; color: var(--grey-400); }
.sc-row { display: flex; align-items: center; gap: 9px; padding: 8px 12px; background: #141414; border-radius: 6px; }
.sc-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--grey-600); flex-shrink: 0; }
.sc-txt { font-size: 0.68rem; color: var(--grey-400); }
.sc-txt b { color: rgba(245,244,241,0.65); font-weight: 400; }

/* APP DETAIL */
.app-detail { padding: 100px 40px; scroll-margin-top: 72px; }
#turf-detail { background: var(--white); }
#campsite-detail { background: var(--black); color: var(--white); }

.detail-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 72px; padding-bottom: 40px; border-bottom: 1px solid var(--grey-200);
}
#campsite-detail .detail-top { border-bottom-color: rgba(255,255,255,0.1); }
.detail-big-name { font-family: 'Bebas Neue', sans-serif; font-size: clamp(5rem, 12vw, 12rem); line-height: 0.88; letter-spacing: 0.01em; }
.detail-right-top { max-width: 340px; text-align: right; }
.detail-tagline { font-size: 0.92rem; line-height: 1.75; color: var(--grey-600); font-weight: 300; margin-bottom: 22px; }
#turf-detail .detail-tagline + .detail-tagline { margin-top: -12px; }
#campsite-detail .detail-tagline { color: rgba(245,244,241,0.45); }
#campsite-detail .detail-tagline + .detail-tagline { margin-top: -12px; }
.detail-cta-row { display: flex; gap: 10px; justify-content: flex-end; }
.btn-black { background: var(--black); color: var(--white); padding: 12px 26px; border-radius: 2px; font-size: 0.78rem; font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s; }
.btn-black:hover { background: var(--grey-800); }
.btn-outline { border: 1px solid var(--grey-200); color: var(--grey-600); background: transparent; padding: 12px 26px; border-radius: 2px; font-size: 0.78rem; text-decoration: none; cursor: pointer; transition: all 0.2s; }
.btn-outline:hover { border-color: var(--black); color: var(--black); }
.btn-wh { background: var(--white); color: var(--black); padding: 12px 26px; border-radius: 2px; font-size: 0.78rem; font-weight: 500; text-decoration: none; border: none; cursor: pointer; }
.btn-wh:hover { background: var(--grey-100); }
.btn-outline-wh { border: 1px solid rgba(255,255,255,0.2); color: rgba(245,244,241,0.55); background: transparent; padding: 12px 26px; border-radius: 2px; font-size: 0.78rem; text-decoration: none; transition: all 0.2s; }
.btn-outline-wh:hover { border-color: var(--white); color: var(--white); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.detail-feats { display: flex; flex-direction: column; }
.df {
  padding: 22px 0; border-bottom: 1px solid var(--grey-100);
  display: grid; grid-template-columns: 20px 1fr; gap: 18px; align-items: start;
}
#campsite-detail .df { border-bottom-color: rgba(255,255,255,0.08); }
.df-n { font-family: 'DM Mono', monospace; font-size: 0.6rem; color: var(--grey-400); padding-top: 2px; }
.df-t { font-weight: 500; font-size: 0.88rem; color: var(--black); margin-bottom: 4px; }
#campsite-detail .df-t { color: var(--white); }
.df-b { font-size: 0.8rem; line-height: 1.65; color: var(--grey-600); font-weight: 300; }
#campsite-detail .df-b { color: rgba(245,244,241,0.42); }

.detail-right-col { display: flex; flex-direction: column; gap: 32px; }

/* phone mock in detail */
.d-phones {
  border: 1px solid var(--grey-200); border-radius: 3px;
  background: #111; padding: 24px; display: flex; gap: 14px; align-items: flex-end;
}
.turf-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  overflow: visible;
}
.turf-gallery-shot {
  width: 100%;
  max-width: 170px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  display: block;
  background: #0d0d0d;
  cursor: zoom-in;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.turf-gallery-shot:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  border-color: rgba(0,0,0,0.2);
}
#turf-detail .d-phones {
  background: transparent;
  border: none;
  justify-content: center;
  padding: 52px 20px 52px;
  gap: 32px;
  position: relative;
  overflow: visible;
}
/* Ambient orange radial glow behind the phones */
#turf-detail .d-phones::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(ellipse 85% 75% at 50% 50%,
    rgba(232,112,53,0.13) 0%, rgba(232,112,53,0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#turf-detail .turf-gallery {
  width: auto;
  max-width: 380px;
  position: relative;
  z-index: 1;
  transform: perspective(900px) rotateX(var(--tpm-tilt-x, 0deg)) rotateY(var(--tpm-tilt-y, 0deg));
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* screenshot lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  width: min(92vw, 420px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 22px 46px rgba(0,0,0,0.45);
  background: #0d0d0d;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(245,244,241,0.28);
  background: rgba(245,244,241,0.08);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
#campsite-detail .d-phones { border-color: rgba(255,255,255,0.1); }
.d-phone {
  width: 120px; height: 240px; background: #0a0a0a;
  border-radius: 20px; border: 1px solid #1e1e1e; overflow: hidden; flex-shrink: 0;
  display: flex; flex-direction: column; padding: 12px 9px 9px; gap: 7px;
}
.d-phone.t { height: 280px; width: 132px; }
.d-notch { width: 28px; height: 3px; background: #1a1a1a; border-radius: 2px; margin: 0 auto 7px; }
.d-lbl { font-family: 'Bebas Neue', sans-serif; font-size: 0.82rem; letter-spacing: 0.05em; color: var(--white); }
.d-sub { font-family: 'DM Mono', monospace; font-size: 0.4rem; color: var(--grey-600); letter-spacing: 0.05em; }
.d-map { flex: 1; background: #161616; border-radius: 7px; position: relative; overflow: hidden; }
.d-map::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 14px 14px; }
.d-pin { position: absolute; width: 6px; height: 6px; background: var(--white); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,0.12); }
.d-stat { background: #161616; border-radius: 5px; padding: 5px; text-align: center; }
.d-sv { font-family: 'Bebas Neue', sans-serif; font-size: 0.8rem; color: var(--white); }
.d-sl { font-family: 'DM Mono', monospace; font-size: 0.38rem; color: var(--grey-600); }
.d-row { display: flex; gap: 4px; }
.d-li { display: flex; align-items: center; gap: 5px; background: #161616; border-radius: 4px; padding: 4px 6px; }
.d-li-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--grey-600); flex-shrink: 0; }
.d-li-txt { font-size: 0.38rem; color: var(--grey-600); }

/* pricing */
.pricing-box { border: 1px solid var(--grey-200); border-radius: 3px; overflow: hidden; }
#campsite-detail .pricing-box { border-color: rgba(255,255,255,0.1); }
.pricing-lbl { padding: 16px 20px; border-bottom: 1px solid var(--grey-100); }
#campsite-detail .pricing-lbl { border-bottom-color: rgba(255,255,255,0.08); }
.pricing-lbl span { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-400); }
.pricing-plans { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.plan { padding: 20px; border-right: 1px solid var(--grey-100); }
#campsite-detail .plan { border-right-color: rgba(255,255,255,0.08); }
.plan:last-child { border-right: none; }
.plan.hi { background: var(--black); }
#campsite-detail .plan.hi { background: var(--white); }
.plan-t { font-family: 'DM Mono', monospace; font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 10px; }
.plan-p { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 0.02em; color: var(--black); }
.plan.hi .plan-p { color: var(--white); }
#campsite-detail .plan-p { color: var(--white); }
#campsite-detail .plan.hi .plan-p { color: var(--black); }
.plan-per { font-size: 0.6rem; color: var(--grey-400); }
.plan-ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.plan-ul li { font-size: 0.7rem; color: var(--grey-600); font-weight: 300; display: flex; gap: 7px; }
.plan.hi .plan-ul li { color: rgba(245,244,241,0.45); }
#campsite-detail .plan-ul li { color: rgba(245,244,241,0.35); }
#campsite-detail .plan.hi .plan-ul li { color: var(--grey-600); }
.plan-ul li::before { content: '·'; color: var(--grey-200); flex-shrink: 0; }
.plan.hi .plan-ul li::before { color: rgba(255,255,255,0.15); }

/* COMMITMENT */
#commitment { padding: 100px 40px; background: var(--white); }
.commit-hdr { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--grey-200); flex-wrap: wrap; gap: 24px; }
.commit-headline { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 6vw, 7rem); line-height: 0.9; color: var(--black); letter-spacing: 0.01em; }
.commit-body { font-size: 0.88rem; line-height: 1.78; color: var(--grey-600); font-weight: 300; max-width: 320px; text-align: right; }
.commit-stats { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--grey-200); border-radius: 3px; overflow: hidden; }
.cs { padding: 44px 32px; border-right: 1px solid var(--grey-200); transition: background 0.25s; }
.cs:last-child { border-right: none; }
.cs:hover { background: var(--black); }
.cs:hover .cs-num, .cs:hover .cs-lbl { color: var(--white); }
.cs:hover .cs-line { background: rgba(255,255,255,0.12); }
.cs-num { font-family: 'Bebas Neue', sans-serif; font-size: 4rem; line-height: 1; color: var(--black); letter-spacing: -0.02em; display: block; margin-bottom: 10px; transition: color 0.25s; }
.cs-line { width: 18px; height: 1px; background: var(--grey-200); margin-bottom: 10px; transition: background 0.25s; }
.cs-lbl { font-size: 0.78rem; color: var(--grey-600); line-height: 1.55; font-weight: 300; transition: color 0.25s; }

/* CONTACT */
#contact { padding: 100px 40px; background: var(--black); }
.contact-hdr { margin-bottom: 56px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.contact-hdr .section-tag { color: rgba(245,244,241,0.52); display: block; margin-bottom: 18px; }
.contact-headline { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 6vw, 7rem); color: var(--white); line-height: 0.9; letter-spacing: 0.01em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.contact-card {
  position: relative;
  padding: 40px 36px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  background: rgba(255,255,255,0.025);
}
.cc-lbl { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,244,241,0.52); margin-bottom: 8px; }
.cc-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; color: var(--white); letter-spacing: 0.04em; margin-bottom: 10px; }
.cc-body { font-size: 0.82rem; color: rgba(245,244,241,0.68); line-height: 1.75; font-weight: 300; margin-bottom: 28px; }
.cc-body a { color: var(--white); text-decoration-color: rgba(245,244,241,0.45); text-underline-offset: 2px; }
.cc-body a:hover { color: rgba(245,244,241,0.9); text-decoration-color: rgba(245,244,241,0.75); }

/* LEGAL SECTION (light theme variant of contact blocks) */
#legal { padding: 100px 40px; background: var(--white); }
#legal .contact-hdr { border-bottom-color: var(--grey-200); }
#legal .contact-hdr .section-tag { color: var(--grey-400); }
#legal .contact-headline { color: var(--black); }
#legal .contact-card {
  background: var(--white);
  border-color: var(--grey-200);
}
#legal .cc-lbl { color: var(--grey-400); }
#legal .cc-title { color: var(--black); }
#legal .cc-body { color: var(--grey-600); }
#legal .cc-body a { color: var(--black); text-decoration-color: rgba(15,15,15,0.45); }
#legal .cc-body a:hover { color: var(--grey-700); text-decoration-color: rgba(15,15,15,0.75); }
.form { display: flex; flex-direction: column; gap: 9px; }
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-status {
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 4px 0 0;
  font-weight: 400;
}
.form-status.ok { color: rgba(245, 244, 241, 0.72); }
.form-status.err { color: #d4a59a; }
.fsub:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.fi { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 2px; padding: 11px 14px; color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.8rem; outline: none; transition: border-color 0.2s; width: 100%; }
.fi::placeholder { color: rgba(245,244,241,0.4); }
.fi:focus { border-color: rgba(255,255,255,0.28); }
select.fi { cursor: pointer; }
textarea.fi { resize: vertical; min-height: 84px; }
.fsub { padding: 11px 22px; background: var(--white); color: var(--black); border: none; border-radius: 2px; font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: background 0.2s; align-self: flex-start; letter-spacing: 0.02em; }
.fsub:hover { background: var(--grey-100); }

/* FOOTER */
footer { background: var(--black); border-top: 1px solid rgba(255,255,255,0.09); padding: 52px 40px 32px; }
.ft-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; flex-wrap: wrap; gap: 36px; }
.ft-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}
.ft-sub { font-size: 0.8rem; color: rgba(245,244,241,0.62); font-weight: 300; max-width: 280px; line-height: 1.65; }
.ft-sub-email { margin-top: 12px; max-width: 280px; }
.ft-sub-email a { color: rgba(245,244,241,0.85); }
.ft-sub-email a:hover { color: var(--white); }
.ft-cols { display: flex; gap: 52px; flex-wrap: wrap; }
.ft-col-hd { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,244,241,0.52); margin-bottom: 14px; }
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ft-links a { font-size: 0.82rem; color: rgba(245,244,241,0.72); text-decoration: none; transition: color 0.2s; }
.ft-links a:hover { color: var(--white); }
.ft-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ft-copy { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: rgba(245,244,241,0.48); letter-spacing: 0.04em; line-height: 1.5; }

/* ─────────────────────────────────────────────
   TURF PHONE MOCKUPS
   Designed at 375 × 812 px (iPhone), scaled to 170 px wide.
   --tpm-scale = 170 / 375 ≈ 0.4533
───────────────────────────────────────────── */
:root { --tpm-scale: 0.4533; }

.turf-phone-mock {
  position: relative;
  width: 100%;
  max-width: 170px;
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  overflow: hidden;
  border: none;
  margin: 0 auto;
  display: block;
  cursor: default;
  box-shadow:
    0 0 0 8px #1a1a1a,
    0 0 0 9px rgba(255,255,255,0.1),
    0 20px 40px rgba(0,0,0,0.22),
    0 6px 14px rgba(0,0,0,0.14),
    0 40px 80px rgba(232,112,53,0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
/* Screen glare — thin diagonal sheen */
.turf-phone-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 55%);
  z-index: 52;
  pointer-events: none;
  border-radius: inherit;
}
/* Dynamic island */
.turf-phone-mock::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 7px;
  background: #161616;
  border-radius: 20px;
  z-index: 55;
  pointer-events: none;
}
.turf-phone-mock:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 0 0 8px #1a1a1a,
    0 0 0 9px rgba(255,255,255,0.12),
    0 28px 56px rgba(0,0,0,0.28),
    0 10px 22px rgba(0,0,0,0.18),
    0 50px 100px rgba(232,112,53,0.16);
}

/* Inner canvas — full iPhone size, then scaled */
.tpm {
  position: absolute;
  top: 0; left: 0;
  width: 375px;
  height: 812px;
  transform: scale(var(--tpm-scale));
  transform-origin: top left;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'DM Sans', sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Shared: status bar ── */
.tpm-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px 6px;
  background: #F5F4F0;
  position: relative; z-index: 2;
}
.tpm-time { font-size: 15px; font-weight: 600; color: #1a1a1a; letter-spacing: -0.2px; }
.tpm-sicons { display: flex; align-items: center; gap: 5px; }
.tpm-sig {
  display: inline-block; width: 16px; height: 11px;
  background: #1a1a1a;
  clip-path: polygon(0 100%, 25% 60%, 50% 35%, 75% 12%, 100% 0, 100% 100%);
}
.tpm-bat {
  display: inline-block; width: 22px; height: 12px;
  border: 2px solid #1a1a1a; border-radius: 3px; position: relative;
}
.tpm-bat::before {
  content: ''; position: absolute;
  right: -5px; top: 2px; width: 3px; height: 6px;
  background: #1a1a1a; border-radius: 0 2px 2px 0;
}
.tpm-bat::after {
  content: ''; position: absolute;
  left: 2px; top: 2px; width: 13px; height: 6px;
  background: #1a1a1a; border-radius: 1px;
}

/* ── Shared: bottom nav ── */
.tpm-botnav {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-around;
  padding: 10px 4px 28px;
  background: rgba(245,244,240,0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0,0,0,0.07);
  z-index: 10;
}
.tpm-botnav-light { background: rgba(240,238,234,0.96); border-color: rgba(0,0,0,0.09); }
.tpm-navi {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #b0b0b0;
}
.tpm-navi svg { width: 22px; height: 22px; }
.tpm-navi span { font-size: 10px; font-weight: 500; }
.tpm-navi-on { color: #1a1a1a !important; }

/* ════════════════════════════
   HOME SCREEN
════════════════════════════ */
.tpm-home {
  background: #F5F4F0;
  display: flex; flex-direction: column;
  padding-bottom: 68px;
}

/* Greeting */
.tpm-greet {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 24px 14px;
}
.tpm-hi { font-size: 18px; font-weight: 400; color: #666; line-height: 1.2; }
.tpm-name { font-size: 40px; font-weight: 800; color: #1a1a1a; line-height: 1.05; letter-spacing: -1.5px; }
.tpm-avatar { width: 52px; height: 52px; border-radius: 50%; background: #ddd; overflow: hidden; flex-shrink: 0; }
.tpm-avatar svg { width: 100%; height: 100%; display: block; }

/* Map card */
.tpm-mapcard {
  margin: 0 16px 12px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.09);
}
.tpm-mapsat {
  height: 148px;
  background: linear-gradient(140deg, #2e4a3f 0%, #1a3328 30%, #223b2e 55%, #1d3430 75%, #16292a 100%);
  position: relative; overflow: hidden;
}
/* Road grid overlay */
.tpm-mapsat::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,185,150,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,185,150,0.18) 1px, transparent 1px),
    radial-gradient(ellipse 70% 60% at 35% 45%, rgba(80,110,80,0.28) 0%, transparent 65%),
    radial-gradient(circle at 72% 30%, rgba(60,90,65,0.18) 0%, transparent 45%);
  background-size: 28px 28px, 22px 22px, 100% 100%, 100% 100%;
}
/* Wider roads */
.tpm-mapsat::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(210,195,160,0.3) 2px, transparent 2px),
    linear-gradient(90deg, rgba(210,195,160,0.25) 2px, transparent 2px);
  background-size: 84px 84px, 66px 66px;
  background-position: 18px 12px, 10px 8px;
}
.tpm-mapbadges {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 14px; z-index: 2;
}
.tpm-badge-left, .tpm-badge-right {
  background: rgba(245,244,240,0.93);
  backdrop-filter: blur(8px);
  border-radius: 30px; padding: 7px 14px;
  font-size: 13px; font-weight: 500; color: #1a1a1a;
}
.tpm-badge-right { font-weight: 600; display: flex; align-items: center; gap: 5px; }
.tpm-live { color: #E87035; font-size: 9px; }

/* Stats row */
.tpm-statsrow {
  display: flex; align-items: center; padding: 12px 16px 14px; gap: 14px;
}
.tpm-terrstat { flex: 1; }
.tpm-terrlbl { font-size: 10px; font-weight: 500; color: #999; letter-spacing: 0.07em; text-transform: uppercase; }
.tpm-terrval { font-size: 28px; font-weight: 800; color: #1a1a1a; line-height: 1.1; letter-spacing: -0.5px; }
.tpm-terrval span { font-size: 15px; font-weight: 400; }
.tpm-mini { text-align: center; }
.tpm-mn { font-size: 22px; font-weight: 700; color: #1a1a1a; line-height: 1; }
.tpm-ml { font-size: 9px; font-weight: 500; color: #999; letter-spacing: 0.07em; text-transform: uppercase; margin-top: 2px; }
.tpm-green .tpm-mn { color: #16a34a; }

/* Quick actions */
.tpm-actions { display: flex; gap: 10px; padding: 0 16px 12px; }
.tpm-act {
  flex: 1; background: #fff; border-radius: 18px; padding: 12px 10px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.tpm-act-on { border: 2px solid #E87035; background: #FFF5EE; }
.tpm-acticon {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(232,112,53,0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.tpm-acticon svg { width: 16px; height: 16px; display: block; }
.tpm-actlbl { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.tpm-actsub { font-size: 11px; color: #999; line-height: 1.3; }

/* Section headers */
.tpm-sechdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 10px;
}
.tpm-sectitle { font-size: 13px; font-weight: 700; color: #1a1a1a; letter-spacing: 0.04em; }
.tpm-seeall { font-size: 12px; color: #999; }

/* Recent */
.tpm-recent { display: flex; gap: 10px; padding: 0 16px 12px; overflow: hidden; }
.tpm-rec {
  flex: 1; background: #fff; border-radius: 18px; padding: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07); min-width: 0;
}
.tpm-rmeta { font-size: 10px; font-weight: 500; color: #999; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.tpm-rdist { font-size: 26px; font-weight: 800; color: #1a1a1a; line-height: 1; letter-spacing: -0.5px; }
.tpm-rdist span { font-size: 14px; font-weight: 400; }
.tpm-rinfo { font-size: 11px; color: #777; margin: 4px 0 10px; }
.tpm-rbar { height: 4px; background: #e4e4e4; border-radius: 2px; overflow: hidden; }
.tpm-rbar > div { height: 100%; background: #bbb; border-radius: 2px; }

/* Gym plan */
.tpm-gymplan {
  display: flex; align-items: center; gap: 12px;
  background: #fff; margin: 0 16px 12px; border-radius: 18px;
  padding: 14px; box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.tpm-gymico {
  width: 46px; height: 46px; background: #FFF0E8; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tpm-gymico svg { width: 22px; height: 22px; display: block; }
.tpm-gyminfo { flex: 1; min-width: 0; }
.tpm-gymname { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.tpm-gymsub { font-size: 11px; color: #999; margin-bottom: 6px; }
.tpm-gymtags { display: flex; gap: 5px; overflow: hidden; }
.tpm-gymtags span {
  font-size: 10px; font-weight: 500; color: #E87035;
  background: #FFF0E8; border-radius: 20px; padding: 3px 9px; white-space: nowrap;
}
.tpm-gymarrow { font-size: 22px; color: #ccc; flex-shrink: 0; line-height: 1; }

/* ════════════════════════════
   MAP SCREEN
════════════════════════════ */
.tpm-mapscreen {
  background: #d4d0c8; position: relative;
  display: flex; flex-direction: column; overflow: hidden;
}
.tpm-mapfull { position: absolute; inset: 0; z-index: 0; }
.tpm-mapbase {
  position: absolute; inset: 0; overflow: hidden;
  background: #cdc9c0;
}
/* Street grid */
.tpm-mapbase::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.55) 1px, transparent 1px);
  background-size: 26px 26px;
}
/* Sea at bottom */
.tpm-mapbase::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 18%;
  background: linear-gradient(to bottom, #b0ccde, #94b8d2);
}
/* Orange territory */
.tpm-terrblob {
  position: absolute;
  top: 6%; left: 5%; right: 14%; bottom: 20%;
  background: rgba(232,112,53,0.72);
  border-radius: 28% 22% 32% 18% / 22% 28% 18% 32%;
}
.tpm-terrblob::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: inherit;
}
/* Teal route */
.tpm-terrroute {
  position: absolute;
  top: 12%; left: 49%; width: 22px; bottom: 20%;
  background: rgba(16,175,155,0.65);
  border-radius: 5px;
}
.tpm-terrroute::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 22px 22px;
}
/* Map labels */
.tpm-maplabel {
  position: absolute; color: rgba(40,40,40,0.75);
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  white-space: nowrap; pointer-events: none; line-height: 1.3;
}
.tpm-mlsm { font-size: 9.5px; }
.tpm-mlbold { font-size: 13px; font-weight: 700; color: rgba(30,30,30,0.8); }

/* Floating status bar on map screen */
.tpm-statusbar-float {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; z-index: 20; padding: 14px 22px 6px;
}
.tpm-statusbar-float .tpm-time { color: #1a1a1a; text-shadow: 0 1px 3px rgba(255,255,255,0.6); }
.tpm-statusbar-float .tpm-sig, .tpm-statusbar-float .tpm-bat { filter: drop-shadow(0 1px 2px rgba(255,255,255,0.5)); }

/* Map header (toggle + count) */
.tpm-mapheader {
  position: absolute; top: 42px; left: 16px; right: 16px; z-index: 15;
}
.tpm-toggle {
  display: inline-flex; background: rgba(255,255,255,0.9);
  border-radius: 50px; padding: 4px; gap: 2px; margin-bottom: 8px;
}
.tpm-ton {
  padding: 7px 18px; border-radius: 50px;
  background: #E87035; color: #fff; font-size: 14px; font-weight: 600;
}
.tpm-toff {
  padding: 7px 18px; border-radius: 50px;
  font-size: 14px; font-weight: 500; color: #555;
}
.tpm-mapcnt {
  font-size: 15px; font-weight: 600; color: #1a1a1a;
  text-shadow: 0 1px 4px rgba(255,255,255,0.85);
}

/* Map control buttons */
.tpm-mapctrls {
  position: absolute; right: 14px; top: 38%;
  display: flex; flex-direction: column; gap: 9px; z-index: 15;
}
.tpm-ctrlbtn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
}
.tpm-ctrlbtn svg { display: block; }

/* Mockup disclaimer under phones */
.turf-mockup-note {
  font-size: 0.62rem;
  color: var(--grey-400);
  text-align: center;
  margin-top: 14px;
  letter-spacing: 0.03em;
  font-weight: 300;
}

/* ── Phone: in-screen message toast ── */
.tpm-msg {
  position: absolute;
  bottom: 90px;
  left: 18px; right: 18px;
  background: rgba(12,12,12,0.88);
  backdrop-filter: blur(14px);
  color: #f5f4f1;
  font-size: 22px; /* scaled down to ~10px at 0.45 — intentionally small & cute */
  font-weight: 600;
  padding: 16px 18px;
  border-radius: 20px;
  text-align: center;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
  border: 1px solid rgba(255,255,255,0.12);
  line-height: 1.4;
}
.tpm-msg.tpm-msg-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.tpm-msg.tpm-msg-out {
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

/* ── Phone: rank gold state ── */
.tpm-rank-gold {
  background: rgba(255,210,50,0.95) !important;
  color: #1a1a1a !important;
}

/* ── Interactive cursor hints ── */
.tpm-home .tpm-badge-right,
.tpm-home .tpm-green,
.tpm-home .tpm-avatar,
.tpm-home .tpm-mapsat,
.tpm-mapscreen .tpm-terrblob,
.tpm-mapscreen .tpm-toggle { cursor: pointer; }

/* ── Keyframe animations (applied via JS class) ── */
@keyframes tpm-jiggle {
  0%,100% { transform: rotate(0); }
  18%     { transform: rotate(-7deg) scale(1.06); }
  36%     { transform: rotate(7deg)  scale(1.06); }
  54%     { transform: rotate(-5deg); }
  72%     { transform: rotate(5deg); }
  90%     { transform: rotate(-2deg); }
}
@keyframes tpm-shake {
  0%,100% { transform: translateX(0); }
  14%     { transform: translateX(-9px); }
  28%     { transform: translateX(9px); }
  42%     { transform: translateX(-7px); }
  56%     { transform: translateX(7px); }
  70%     { transform: translateX(-4px); }
  84%     { transform: translateX(4px); }
}
@keyframes tpm-bounce {
  0%,100% { transform: translateY(0) scale(1); }
  28%     { transform: translateY(-14px) scale(1.1); }
  56%     { transform: translateY(-3px) scale(0.95); }
  76%     { transform: translateY(-7px) scale(1.03); }
}
@keyframes tpm-pop {
  0%,100% { transform: scale(1); }
  38%     { transform: scale(1.22); }
  70%     { transform: scale(0.95); }
}
@keyframes tpm-ripple-flash {
  0%   { filter: brightness(1); }
  30%  { filter: brightness(1.55); }
  100% { filter: brightness(1); }
}
@keyframes tpm-terr-grow {
  0%,100% { transform: scale(1); filter: brightness(1); }
  45%     { transform: scale(1.06); filter: brightness(1.25) saturate(1.3); }
}
@keyframes tpm-glitch {
  0%,100% { transform: translateX(0); filter: none; }
  10%     { transform: translateX(-4px); filter: hue-rotate(80deg); }
  20%     { transform: translateX(4px);  filter: hue-rotate(-80deg); }
  30%     { transform: translateX(-2px); filter: invert(0.12); }
  40%     { transform: translateX(2px);  filter: none; }
}

.tpm-do-jiggle  { animation: tpm-jiggle  0.58s ease; }
.tpm-do-shake   { animation: tpm-shake   0.65s ease; }
.tpm-do-bounce  { animation: tpm-bounce  0.52s ease; }
.tpm-do-pop     { animation: tpm-pop     0.38s ease; }
.tpm-do-flash   { animation: tpm-ripple-flash 0.55s ease; }
.tpm-do-grow    { animation: tpm-terr-grow    0.48s ease; }
.tpm-do-glitch  { animation: tpm-glitch  0.45s ease; }

/* ── Capture ripple effect on phone 2 territory ── */
.tpm-capture-ring {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(232,112,53,0.7);
  animation: tpm-capture-ripple 0.7s ease-out forwards;
  pointer-events: none;
}
@keyframes tpm-capture-ripple {
  0%   { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .site-nav {
    height: 68px;
    padding: 0 clamp(20px, 5vw, 36px) 0 clamp(22px, 5vw, 40px);
    z-index: 201;
  }
  .site-logo-link {
    width: 50px;
    height: 50px;
    border-radius: 11px;
  }
  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  }
  .site-nav.is-on-dark .nav-toggle-bar {
    background: var(--white);
  }
  .site-nav.is-on-light .nav-toggle-bar {
    background: var(--black);
  }
  body.nav-open .nav-toggle-bar:nth-of-type(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open .nav-toggle-bar:nth-of-type(2) {
    opacity: 0;
  }
  body.nav-open .nav-toggle-bar:nth-of-type(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-backdrop {
    display: block !important;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 199;
    background: rgba(10, 10, 10, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #primary-nav.nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 200;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 20px;
    margin: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
    max-height: calc(100dvh - 68px);
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
  }
  body.nav-open #primary-nav.nav-links {
    display: flex;
  }
  #primary-nav.nav-links li {
    border-bottom: 1px solid var(--grey-100);
  }
  #primary-nav.nav-links li:last-child {
    border-bottom: none;
    padding-top: 8px;
  }
  #primary-nav.nav-links a {
    display: block;
    padding: 14px 20px;
    font-size: 0.8rem;
    color: var(--grey-600);
  }
  #primary-nav.nav-links a:hover {
    color: var(--black);
  }
  #primary-nav.nav-links a.nav-cta {
    margin: 0 20px;
    text-align: center;
    border-radius: 2px;
    background: var(--black) !important;
    color: var(--white) !important;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* Hero: flex column, headline centred in black area */
  #hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 68px;
  }
  .hero-inner {
    flex: 1;
    justify-content: center;
    min-height: 0;
    padding: 28px 20px 32px;
    isolation: isolate;
  }
  .hero-headline {
    font-size: clamp(2.65rem, 13vw, 4.25rem);
  }
  .hero-bottom {
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 28px 20px 24px;
    gap: 20px;
    isolation: isolate;
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0) 0%,
      rgba(10, 10, 10, 0.55) 22%,
      rgba(10, 10, 10, 0.94) 100%
    );
  }
  .hero-sub {
    max-width: none;
    color: rgba(245, 244, 241, 0.66);
  }
  .hero-ctas {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #hero .hero-ctas .btn-white,
  #hero .hero-ctas .btn-ghost {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .hero-subtext {
    max-width: none;
    font-size: 0.9rem;
  }
  #about { padding: 64px 20px; grid-template-columns: 1fr; gap: 32px; }
  #pillars { padding-bottom: 64px; }
  .pillars-header { padding: 0 20px 32px; }
  #apps { padding: 72px 0; }
  .apps-hdr { padding: 0 20px 40px; }
  .apps-scroll { padding: 0 20px 8px; }
  .app-detail { padding: 64px 20px; }
  .turf-preview-img { width: min(72%, 220px); }
  .turf-gallery {
    grid-template-columns: 1fr;
    max-width: 220px;
  }
  .turf-gallery-shot {
    max-width: 190px;
  }
  .turf-phone-mock { max-width: 190px; --tpm-scale: 0.5067; }
  .detail-top { flex-direction: column; gap: 18px; }
  .detail-right-top { text-align: left; }
  .detail-cta-row { justify-content: flex-start; }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .pricing-plans { grid-template-columns: 1fr; }
  .plan { border-right: none; border-bottom: 1px solid var(--grey-100); }
  #commitment { padding: 64px 20px; }
  .commit-hdr { flex-direction: column; gap: 20px; }
  .commit-body { text-align: left; }
  .commit-stats { grid-template-columns: 1fr; }
  .cs { border-right: none; border-bottom: 1px solid var(--grey-200); }
  #contact, #legal { padding: 64px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  footer { padding: 40px 20px 28px; }
  .ft-row { flex-direction: column; }
}
