:root{
  --text:#1a1512;
  --muted:#6b5f58;
  --background:#f6f2ef;
  --surface:#ffffffcc;
  --primary:#7b4b35;
  --secondary:#e7d5cc;
  --accent:#d8a7b5;
  --line:rgba(26,21,18,.12);
  --shadow:0 18px 50px rgba(26,21,18,.18);
  --radius:22px;
}

body{
  margin:0;
  background:var(--background);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
}

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

.project-page{
  width:min(860px,92vw);
  margin:80px auto 120px;
}

.project-hero{
  text-align:center;
  margin-bottom:60px;
}

.project-eyebrow{
  font-size:11px;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:var(--muted);
}

.project-title{
  font-size:clamp(40px,6vw,72px);
  font-weight:900;
  letter-spacing:-.03em;
  margin:16px 0 8px;
}

.project-subtitle{
  color:var(--muted);
  font-size:16px;
}

.project-hero-media{
  margin-top:36px;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}

.project-hero-media img,
.project-hero-media video{
  width:100%;
  display:block;
}

.project-facts{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin:60px 0;
}

.project-facts ul{
  list-style:none;
  padding:24px 0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:24px;
}

.project-facts strong{
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  display:block;
}

.project-block{
  margin-bottom:64px;
}

.project-block h2{
  margin-bottom:16px;
  font-size:22px;
}

.project-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  margin-bottom:64px;
}

.project-list{
  padding-left:18px;
}

.project-list li{
  margin-bottom:10px;
}

.project-gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:24px;
}

.project-gallery img{
  width:100%;
  border-radius:14px;
}

.accent{
  background:color-mix(in srgb,var(--secondary) 70%, white 30%);
  padding:32px;
  border-radius:var(--radius);
}

.project-links{
  display:flex;
  gap:28px;
  justify-content:center;
  margin-top:80px;
}

.project-links a{
  font-size:12px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  border-bottom:1px solid var(--text);
  padding-bottom:4px;
}

@media(max-width:900px){
  .project-split{ grid-template-columns:1fr; }
  .project-gallery{ grid-template-columns:1fr; }
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:color-mix(in srgb, var(--background) 86%, white 14%);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  padding:18px 16px 12px;
}

.topnav{
  display:flex;
  justify-content:center;
  gap:clamp(16px,4vw,56px);
}

.topnav a{
  text-decoration:none;
  color:var(--text);
  font-size:12px;
  letter-spacing:.28em;
  text-transform:uppercase;
  padding:8px 0;
  border-bottom:2px solid transparent;
  opacity:.85;
}

.topnav a:hover{
  border-bottom-color:var(--accent);
  opacity:1;
}

.one,.two,.three{
  border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow:0 10px 28px rgba(26,21,18,.10);
}

.two{background:var(--surface)}

.three{
  background:linear-gradient(180deg, color-mix(in srgb, var(--secondary) 88%, white 12%), var(--secondary));
}
.stage{
  position:relative;
  padding:32px 0 20px;

  /* breakout */
  width:100vw;
  margin-left:calc(50% - 50vw);
}

.stage-inner{
  width:min(1080px, 92vw);
  margin:0 auto;
  position:relative;
}


.stage-bg{
  height:clamp(280px, 36vw, 460px);
  background:linear-gradient(180deg, #141414, #0b0b0c);
  border-radius:30px;
  border:1px solid rgba(0,0,0,.14);
  box-shadow:0 35px 100px rgba(0,0,0,.22);
}

.stage-poster{
  position:absolute;
  inset:42px;               /* your “inset card” look */
  width:calc(100% - 84px);
  height:calc(100% - 84px);

  border:0;                 /* ✅ iframe clean */
  border-radius:24px;
  overflow:hidden;          /* ✅ helps clip inner player edges */
  display:block;

  box-shadow:0 22px 70px rgba(0,0,0,.28);
}

/* ✅ Mobile: reduce inset so the video doesn’t shrink too much */
@media (max-width: 640px){
  .stage-poster{
    inset:18px;
    width:calc(100% - 36px);
    height:calc(100% - 36px);
    border-radius:18px;
  }

  .stage-bg{
    border-radius:22px;
  }
}
.carousel{
  position:relative;
  margin-top:24px;
  background:color-mix(in srgb,var(--secondary) 70%, white 30%);
  /* border:1px solid var(--line); */
  border-radius:var(--radius);
  /* box-shadow:var(--shadow); */
  padding:18px 18px 56px;
  overflow:hidden;
}

.carousel-track-container{
  overflow:hidden;
  border-radius:18px;
}

.carousel-track{
  display:flex;
  transition:transform .45s ease;
  will-change:transform;
}

.carousel-slide{
  min-width:100%;
  flex:0 0 100%;
}

.carousel-slide img{
  width:100%;
  height:clamp(260px, 42vw, 560px);
  object-fit:cover;
  display:block;
  border-radius:18px;
  background:color-mix(in srgb,var(--secondary) 70%, white 30%);
}

.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border:none;
  border-radius:999px;
  background:color-mix(in srgb, var(--background) 82%, white 18%);
  color:var(--text);
  box-shadow:0 10px 24px rgba(26,21,18,.16);
  cursor:pointer;
  font-size:22px;
  line-height:1;
  display:grid;
  place-items:center;
  transition:transform .2s ease, background .2s ease, opacity .2s ease;
  z-index:3;
}

.carousel-btn:hover{
  background:var(--secondary);
  transform:translateY(-50%) scale(1.04);
}

.carousel-btn.prev{
  left:24px;
}

.carousel-btn.next{
  right:24px;
}

.carousel-dots{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
}

.dot{
  width:11px;
  height:11px;
  border:none;
  border-radius:999px;
  background:color-mix(in srgb, var(--muted) 35%, white 65%);
  cursor:pointer;
  padding:0;
  transition:transform .2s ease, background .2s ease;
}

.dot:hover{
  transform:scale(1.1);
  background:var(--primary);
}

.dot.active{
  background:var(--accent);
  transform:scale(1.15);
}

@media (max-width: 640px){
  .carousel{
    padding:14px 14px 50px;
  }

  .carousel-btn{
    width:40px;
    height:40px;
    font-size:18px;
  }

  .carousel-btn.prev{
    left:14px;
  }

  .carousel-btn.next{
    right:14px;
  }

  .carousel-slide img{
    height:260px;
  }
}



/* ── Playtest section ──────────────────────────────────────── */
.playtest-section {
  margin-bottom: 80px;
}

.playtest-header {
  margin-bottom: 36px;
}

.playtest-header h2 {
  font-size: 22px;
  margin: 8px 0 10px;
}

.playtest-header p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  max-width: 520px;
}

/* ── Stage tabs ────────────────────────────────────────────── */
.pt-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.pt-tab {
  background: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 20px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all .2s ease;
}

.pt-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pt-tab:hover:not(.active):not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.pt-tab-future {
  opacity: .38;
  cursor: not-allowed;
}

.pt-tab-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.pt-tab-sub {
  display: block;
  font-size: 11px;
  opacity: .72;
  margin-top: 2px;
  letter-spacing: .02em;
}

/* ── Hidden stage ──────────────────────────────────────────── */
.pt-stage.hidden { display: none; }

/* ── Metric row ────────────────────────────────────────────── */
.pt-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.pt-metric {
  background: color-mix(in srgb, var(--secondary) 45%, white 55%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px 18px;
  text-align: center;
}

.pt-metric-num {
  display: block;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--primary);
  line-height: 1;
}

.pt-metric-den {
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}

.pt-metric-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 7px 0 0;
}

/* ── Two-col layout ────────────────────────────────────────── */
.pt-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .pt-two-col { grid-template-columns: 1fr; }
}

/* ── Shared card ───────────────────────────────────────────── */
.pt-card {
  background: color-mix(in srgb, var(--secondary) 38%, white 62%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
}

.pt-card-wide {
  background: color-mix(in srgb, var(--secondary) 38%, white 62%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
  margin-bottom: 18px;
}

.pt-card-title {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

/* ── Score bars ────────────────────────────────────────────── */
.pt-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pt-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pt-bar-score {
  width: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
}

.pt-bar-track {
  flex: 1;
  height: 26px;
  background: color-mix(in srgb, var(--secondary) 55%, white 45%);
  border-radius: 7px;
  overflow: hidden;
}

.pt-bar-fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  min-width: 28px;
  transition: width .9s cubic-bezier(.16,1,.3,1);
}

/* ── Pacing rings ──────────────────────────────────────────── */
.pt-pacing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pt-pace-item {
  background: color-mix(in srgb, var(--secondary) 55%, white 45%);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.pt-pace-pct {
  display: block;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--primary);
}

.pt-pace-label {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.pt-pace-bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 12px;
  background: var(--line);
  overflow: hidden;
}

.pt-pace-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(.16,1,.3,1);
}

/* ── Issues ────────────────────────────────────────────────── */
.pt-issues {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pt-issues li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.4;
}

.pt-issues li:last-child { border-bottom: none; }

.pt-pill {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Quotes ────────────────────────────────────────────────── */
.pt-quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .pt-quote-grid { grid-template-columns: 1fr; }
}

.pt-quote {
  margin: 0;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  padding: 18px 20px;
}

.pt-quote p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
}

.pt-quote cite {
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
  letter-spacing: .05em;
}

/* ── Animate bars on load ──────────────────────────────────── */
.pt-bar-fill.animated { width: var(--pct); }
