/* ============================================================
   MIDDLE GROUND — Inner Pages v4
   Same playful energy as homepage · Images · Illustrations
   ============================================================ */

/* ── Page hero (shared) ─────────────────────────────────── */
.page-hero {
  min-height: clamp(340px, 48vw, 580px);
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
  padding-bottom: clamp(48px,7vw,96px);
  position: relative;
  overflow: hidden;
}
.ph-bg-terra  { background: var(--terracotta); }
.ph-bg-dark   { background: var(--dark); }
.ph-bg-cream  { background: var(--cream); }
.ph-bg-blue   { background: #0d1117; }

/* Gradient overlay on coloured heros */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.ph-bg-cream::before { background: transparent; }

/* Floating image orbs in page heroes */
.ph-orbs { position: absolute; inset: 0; pointer-events: none; }
.ph-orb {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255,255,255,0.25);
}
.ph-orb img { width:100%; height:100%; object-fit:cover; opacity:0.7; }
.ph-orb-a {
  width: clamp(100px,13vw,200px);
  height: clamp(100px,13vw,200px);
  top: 12%; right: 8%;
  animation: phFloat1 8s ease-in-out infinite;
}
.ph-orb-b {
  width: clamp(70px,9vw,140px);
  height: clamp(70px,9vw,140px);
  bottom: 14%; right: 22%;
  animation: phFloat2 10s ease-in-out infinite 1.2s;
}
.ph-orb-c {
  width: clamp(80px,10vw,160px);
  height: clamp(80px,10vw,160px);
  top: 30%; right: 30%;
  animation: phFloat1 12s ease-in-out infinite 2.5s;
}
@keyframes phFloat1 {
  0%,100%{ transform:translate(0,0) rotate(0deg); }
  33%    { transform:translate(-6px,-14px) rotate(2deg); }
  66%    { transform:translate(5px,-8px) rotate(-1.5deg); }
}
@keyframes phFloat2 {
  0%,100%{ transform:translate(0,0) rotate(0deg); }
  50%    { transform:translate(8px,-18px) rotate(-2deg); }
}

.ph-content { position:relative; z-index:1; }
.ph-content .eyebrow { margin-bottom:12px; }
.ph-content h1 { margin-bottom:16px; }
.ph-content .t-lead { max-width:520px; }

/* Illustration floating right side — cream bg only */
.ph-illus {
  position: absolute;
  right: clamp(20px,6vw,100px);
  bottom: 0;
  height: 85%;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: multiply;
  filter: saturate(0.2);
}
.ph-illus img { height:100%; width:auto; }

/* ── Shared section decorators ──────────────────────────── */
/* Illustration accent — used on white/cream sections */
.illus-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: multiply;
  filter: saturate(0.2);
}
.illus-accent img { width:100%; }
.illus-tr  { top:-40px; right:-60px; width:clamp(180px,22vw,340px); transform:rotate(8deg); }
.illus-br  { bottom:-40px; right:-60px; width:clamp(180px,22vw,340px); transform:rotate(-8deg); }
.illus-bl  { bottom:-40px; left:-60px; width:clamp(180px,22vw,340px); transform:rotate(6deg); }
.illus-tl  { top:-40px; left:-60px; width:clamp(180px,22vw,340px); transform:rotate(-6deg); }
.illus-mid { top:50%; left:50%; transform:translate(-50%,-50%) rotate(-4deg); width:clamp(200px,30vw,420px); opacity:0.04; }

/* ── Bouncing photo orb accent ──────────────────────────── */
.photo-orb-accent {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  z-index: 0;
}
.photo-orb-accent img { width:100%; height:100%; object-fit:cover; }
.poa-tr {
  width: clamp(100px,12vw,180px);
  height: clamp(100px,12vw,180px);
  top: 24px; right: clamp(20px,5vw,80px);
  border: 3px solid var(--white);
  animation: phFloat1 7s ease-in-out infinite;
}
.poa-bl {
  width: clamp(80px,10vw,150px);
  height: clamp(80px,10vw,150px);
  bottom: 24px; left: clamp(20px,5vw,80px);
  border: 3px solid var(--white);
  animation: phFloat2 9s ease-in-out infinite 1s;
}
.poa-br {
  width: clamp(90px,11vw,160px);
  height: clamp(90px,11vw,160px);
  bottom: 24px; right: clamp(20px,5vw,80px);
  border: 3px solid var(--white);
  animation: phFloat1 8s ease-in-out infinite 0.5s;
}

/* ── Photo grid / stacks shared ─────────────────────────── */
.photo-stack { position:relative; }
.stack-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.stack-secondary {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  animation: phFloat2 9s ease-in-out infinite;
}
.stack-secondary-br { bottom:-28px; right:-28px; }
.stack-secondary-bl { bottom:-28px; left:-28px; }
.stack-pill {
  position: absolute;
  top:20px; right:-14px;
  background: var(--terracotta);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
  transform: rotate(3deg);
  animation: pillBounce 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes pillBounce {
  0%,100%{ transform:rotate(3deg) translateY(0); }
  50%    { transform:rotate(3deg) translateY(-6px); }
}

/* Photo row — 3 images in a row */
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.photo-row-img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.3s ease;
  border: 3px solid var(--white);
}
.photo-row-img:nth-child(2) { margin-top: 24px; }
.photo-row-img:nth-child(3) { margin-top: -16px; }
.photo-row-img:hover { transform:scale(1.04) rotate(1deg); box-shadow:var(--shadow-md); }

/* ── Marquee (inner pages) ──────────────────────────────── */
.inner-marquee {
  background: var(--terracotta);
  padding: 13px 0;
  overflow: hidden;
}
.inner-marquee .marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 26s linear infinite;
  width: max-content;
}
.inner-marquee .marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.inner-marquee .marquee-sep {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
}
@keyframes marqueeScroll {
  from { transform:translateX(0); }
  to   { transform:translateX(-50%); }
}

/* ── Feature cards (inner pages) ────────────────────────── */
.feat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(16px,2.5vw,28px);
}
.feat-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px,3vw,36px);
}
.inner-feat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px,3vw,40px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.inner-feat::before {
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:3px;
  background:linear-gradient(90deg,var(--terracotta),transparent);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 0.35s var(--ease-out-expo);
}
.inner-feat:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--terracotta-pale); }
.inner-feat:hover::before { transform:scaleX(1); }

.if-icon {
  width:48px; height:48px;
  background:var(--terracotta-pale);
  border-radius:var(--radius-md);
  display:flex; align-items:center; justify-content:center;
  color:var(--terracotta);
  transition: background 0.2s ease, transform 0.3s var(--ease-out-expo);
  flex-shrink:0;
}
.if-icon svg { width:24px; height:24px; }
.inner-feat:hover .if-icon { background:var(--terracotta); color:var(--white); transform:rotate(-6deg) scale(1.06); }
.inner-feat h3 { font-size:clamp(1rem,1.5vw,1.2rem); margin-bottom:4px; }
.inner-feat p  { font-size:0.875rem; color:var(--dark-mid); line-height:1.65; flex:1; }

/* ── Step / numbered list ────────────────────────────────── */
.steps-list { display:flex; flex-direction:column; gap:clamp(16px,2.5vw,28px); }
.step-item {
  display:flex;
  gap:clamp(16px,2.5vw,28px);
  align-items:flex-start;
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:clamp(20px,2.5vw,32px);
  box-shadow:var(--shadow-sm);
  transition:transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.step-item:hover { transform:translateX(6px); box-shadow:var(--shadow-md); }
.step-num {
  width:44px; height:44px;
  border-radius:50%;
  background:var(--terracotta);
  color:var(--white);
  font-family:var(--font-heading);
  font-size:0.85rem; font-weight:800;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  box-shadow:0 4px 14px rgba(198,93,59,0.3);
  transition:transform 0.3s var(--ease-out-expo);
}
.step-item:hover .step-num { transform:scale(1.12) rotate(-4deg); }
.step-body h3 { margin-bottom:6px; }
.step-body p  { font-size:0.875rem; color:var(--dark-mid); line-height:1.65; }

/* ── Accordion ──────────────────────────────────────────── */
.accordion-item { border-bottom:1px solid var(--cream-deeper); }
.accordion-trigger {
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 0;
  font-family:var(--font-heading);
  font-size:0.95rem; font-weight:600;
  color:var(--dark); text-align:left; gap:16px;
  transition:color 0.2s ease;
}
.accordion-trigger:hover { color:var(--terracotta); }
.accordion-icon {
  font-size:1.3rem; font-weight:300; color:var(--terracotta);
  flex-shrink:0; transition:transform 0.3s var(--ease-out-expo); line-height:1;
}
.accordion-item.open .accordion-icon { transform:rotate(45deg); }
.accordion-body { max-height:0; overflow:hidden; transition:max-height 0.4s var(--ease-out-expo); }
.accordion-body p { padding-bottom:22px; font-size:0.9rem; color:var(--dark-mid); line-height:1.7; }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { display:flex; flex-direction:column; gap:6px; margin-bottom:18px; }
.form-group label {
  font-family:var(--font-heading); font-size:0.65rem; font-weight:700;
  letter-spacing:0.12em; text-transform:uppercase; color:var(--dark-mid);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding:12px 16px;
  border:2px solid var(--cream-deeper);
  border-radius:var(--radius-md);
  font-size:0.925rem;
  background:var(--white);
  color:var(--dark);
  outline:none;
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color:var(--terracotta);
  box-shadow:0 0 0 3px rgba(198,93,59,0.1);
}
.form-group textarea { resize:vertical; min-height:100px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }

/* ── Membership cards ────────────────────────────────────── */
.mem-grid-4 {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:clamp(14px,2vw,22px);
  align-items:start;
}
.mem-card-v2 {
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:clamp(22px,2.5vw,32px);
  box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column; gap:10px;
  border:2px solid transparent;
  transition:transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, border-color 0.2s;
  position:relative; overflow:visible;
}
.mem-card-v2:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--terracotta-pale); }
.mem-card-featured-v2 { border-color:var(--terracotta); transform:translateY(-6px); box-shadow:var(--shadow-md); }
.mem-card-featured-v2:hover { transform:translateY(-11px); }
.mem-card-dark-v2 { background:var(--dark); }
.mem-badge-v2 {
  position:absolute; top:-11px; left:50%; transform:translateX(-50%);
  background:var(--terracotta); color:var(--white);
  font-family:var(--font-heading); font-size:0.58rem; font-weight:700;
  letter-spacing:0.14em; text-transform:uppercase;
  padding:3px 14px; border-radius:var(--radius-full); white-space:nowrap;
}
.mem-tier { font-family:var(--font-heading); font-size:0.65rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--terracotta); }
.mem-card-dark-v2 .mem-tier { color:var(--terracotta-soft); }
.mem-price { font-family:var(--font-heading); font-size:clamp(1.8rem,3.5vw,2.4rem); font-weight:900; color:var(--dark); letter-spacing:-0.03em; line-height:1; }
.mem-card-dark-v2 .mem-price { color:var(--cream); }
.mem-cadence { font-size:0.72rem; color:var(--dark-mid); margin-top:-4px; }
.mem-card-dark-v2 .mem-cadence { color:rgba(244,239,234,0.45); }
.mem-best { font-family:var(--font-heading); font-size:0.65rem; font-weight:600; color:var(--dark-mid); font-style:italic; }
.mem-card-dark-v2 .mem-best { color:rgba(244,239,234,0.4); }
.mem-perks { list-style:none; display:flex; flex-direction:column; gap:9px; flex:1; margin:6px 0 14px; }
.mem-perks li { font-size:0.82rem; color:var(--dark-soft); padding-left:18px; position:relative; line-height:1.4; }
.mem-perks li::before { content:''; position:absolute; left:0; top:6px; width:8px; height:8px; border-radius:50%; background:var(--terracotta-pale); border:2px solid var(--terracotta); }
.mem-card-dark-v2 .mem-perks li { color:rgba(244,239,234,0.65); }
.mem-card-dark-v2 .mem-perks li::before { background:rgba(198,93,59,0.3); border-color:var(--terracotta-soft); }
.mem-card-v2 .btn { width:100%; justify-content:center; margin-top:auto; }

/* ── Compare table ──────────────────────────────────────── */
.compare-table { width:100%; border-collapse:collapse; margin-top:40px; overflow:hidden; border-radius:var(--radius-lg); }
.compare-table th {
  background:var(--dark); color:var(--cream);
  font-family:var(--font-heading); font-size:0.75rem; font-weight:700;
  letter-spacing:0.08em; text-transform:uppercase;
  padding:16px 18px; text-align:left;
}
.compare-table td { padding:13px 18px; font-size:0.875rem; border-bottom:1px solid var(--cream-deeper); }
.compare-table tr:last-child td { border-bottom:none; }
.compare-table tr:hover td { background:var(--cream); }
.compare-table tbody tr:nth-child(even) td { background:rgba(244,239,234,0.5); }
.compare-table tbody tr:nth-child(even):hover td { background:var(--cream); }
.check-icon { color:var(--terracotta); }
.check-icon svg { width:16px; height:16px; }
.dash { color:var(--dark-mid); opacity:0.4; }

/* ── Business cards (Family Guide) ──────────────────────── */
.biz-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(18px,2.5vw,28px);
}
.biz-card {
  background:var(--white);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column;
  transition:transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.biz-card:hover { transform:translateY(-5px) rotate(0.4deg); box-shadow:var(--shadow-md); }
.biz-img {
  width:100%;
  /* No fixed aspect-ratio — images are 553x629 portrait,
     let them display at full natural height with no cropping */
  background:var(--cream-deep);
  display:block;
  overflow:hidden;
  transition:background 0.3s ease;
}
.biz-img img {
  width:100%;
  height:auto;       /* full image, no cropping */
  display:block;
  object-fit:unset;  /* override any inherited cover */
}
.biz-card:hover .biz-img { background:var(--terracotta-pale); color:var(--terracotta); }
.biz-img svg { width:40px; height:40px; opacity:0.55; }
.biz-body { padding:clamp(18px,2.5vw,26px); flex:1; display:flex; flex-direction:column; }
.biz-body h3 { font-size:clamp(0.95rem,1.4vw,1.1rem); margin-bottom:8px; }
.biz-name-row { display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.biz-name-row h3 { margin-bottom:0; line-height:1.25; }
.biz-logo {
  width:96px; height:96px; flex-shrink:0;
  border-radius:var(--radius-md);
  object-fit:contain;
  background:var(--white);
  border:1px solid var(--cream-deeper);
  box-shadow:var(--shadow-sm);
  padding:8px;
  box-sizing:border-box;
}
.biz-logo-lg {
  /* Same as biz-logo now — all logos unified at 96px */
  width:96px; height:96px;
  padding:8px;
}
.biz-badge-lg {
  height:44px; width:auto;
}
/* Joffrey logo: reduce padding so text/graphic fills the box more */
.biz-logo-joffrey {
  padding:3px;
  object-fit:contain;
}
.biz-card-premium {
  position:relative;
  border:3px solid var(--terracotta);
  box-shadow: 0 0 0 4px rgba(198,93,59,0.1), var(--shadow-md);
}
.biz-premium-badge {
  position:absolute; top:16px; left:16px; z-index:2;
  background:var(--terracotta); color:var(--white);
  font-family:var(--font-heading); font-size:0.66rem; font-weight:800;
  letter-spacing:0.1em; text-transform:uppercase;
  padding:6px 16px; border-radius:var(--radius-full);
  box-shadow:0 4px 14px rgba(198,93,59,0.4);
}
.biz-body p  { font-size:0.85rem; color:var(--dark-mid); line-height:1.6; margin-bottom:14px; }
/* biz-fill stretches to fill space; content inside stays tight */
.biz-fill > p:first-child { margin-bottom:10px; }
.biz-reviews { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.biz-review {
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.biz-review-dark  { background: var(--dark); }
.biz-review-terra { background: var(--terracotta); }
.biz-review-stars { font-size: 0.7rem; letter-spacing: 1px; color: #FFC93C; margin-bottom: 5px; line-height: 1; }
.biz-review p {
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--cream);
  font-style: italic;
  margin-bottom: 0;
  flex: none;
}
.biz-tip {
  background:var(--terracotta-pale); border-radius:var(--radius-sm);
  padding:10px 14px; margin-bottom:14px;
  margin-top:auto;  /* anchors tip+footer block to bottom of card — keeps all cards aligned */
}
.biz-tip-label {
  display:block; font-family:var(--font-heading); font-size:0.6rem; font-weight:800;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--terracotta);
  margin-bottom:4px; opacity:0.85;
}
.biz-tip p { font-size:0.78rem; font-style:italic; color:var(--terracotta); line-height:1.5; margin:0; }
.biz-fill { flex:1 1 auto; display:flex; flex-direction:column; }
.biz-footer {
  display:flex; flex-direction:row; align-items:flex-end;
  justify-content:space-between; gap:10px; flex-wrap:wrap;
  padding-top:12px; border-top:1px solid var(--cream-deep);
  margin-top:0;  /* biz-tip above already handles the push-to-bottom */
}
.biz-footer-btns {
  display:flex; gap:8px; flex-wrap:wrap;
  min-height:34px;               /* match height of a single button row */
  align-items:flex-end;
}
.biz-badges { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.biz-badge-icon { height:34px; width:auto; object-fit:contain; flex-shrink:0; }

/* ── Event cards ─────────────────────────────────────────── */
.events-full-grid { display:grid; grid-template-columns:1fr 1fr; gap:clamp(18px,3vw,32px); }
.event-full-card {
  background:var(--white); border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); display:flex; flex-direction:column;
  transition:transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.event-full-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }
.event-full-img {
  width:100%; aspect-ratio:16/7;
  background:var(--cream-deep);
  display:flex; align-items:center; justify-content:center;
  color:var(--dark-mid);
  transition:background 0.3s ease;
}
.event-full-card:hover .event-full-img { background:var(--terracotta-pale); color:var(--terracotta); }
.event-full-img svg { opacity:0.5; transition:opacity 0.2s ease; }
.event-full-card:hover .event-full-img svg { opacity:0.8; }
.event-full-body { padding:clamp(20px,3vw,32px); flex:1; display:flex; flex-direction:column; }
.event-full-body h3 { margin:12px 0 8px; font-size:clamp(0.95rem,1.4vw,1.15rem); }
.event-full-body p  { font-size:0.875rem; color:var(--dark-mid); flex:1; line-height:1.6; margin-bottom:18px; }
.event-meta-row { display:flex; gap:14px; flex-wrap:wrap; font-size:0.78rem; color:var(--dark-mid); padding-top:14px; border-top:1px solid var(--cream-deeper); margin-bottom:18px; }
.event-meta-item { display:flex; align-items:center; gap:5px; }
.event-meta-item svg { width:13px; height:13px; flex-shrink:0; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-layout { display:grid; grid-template-columns:1fr 2fr; gap:clamp(40px,6vw,88px); align-items:start; }
.contact-detail { display:flex; gap:14px; align-items:flex-start; margin-bottom:22px; }
.cd-icon {
  width:44px; height:44px;
  background:var(--terracotta-pale); border-radius:var(--radius-md);
  display:flex; align-items:center; justify-content:center;
  color:var(--terracotta); flex-shrink:0;
}
.cd-icon svg { width:20px; height:20px; }
.cd-text strong { display:block; font-family:var(--font-heading); font-size:0.72rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--dark-mid); margin-bottom:2px; }
.cd-text span   { font-size:0.9rem; color:var(--dark); }
.contact-form-card { background:var(--white); border-radius:var(--radius-xl); padding:clamp(32px,4vw,56px); box-shadow:var(--shadow-md); }
.form-type-tabs { display:flex; gap:4px; background:var(--cream); border-radius:var(--radius-full); padding:4px; margin-bottom:28px; }
.form-type-tab { flex:1; font-family:var(--font-heading); font-size:0.72rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; padding:9px 12px; border-radius:var(--radius-full); color:var(--dark-mid); transition:all 0.2s ease; text-align:center; cursor:pointer; border:none; background:transparent; }
.form-type-tab.active { background:var(--white); color:var(--terracotta); box-shadow:var(--shadow-sm); }

/* ── Filter buttons ─────────────────────────────────────── */
.filter-bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:40px; }
.filter-btn {
  font-family:var(--font-heading); font-size:0.72rem; font-weight:700;
  padding:8px 18px; border-radius:var(--radius-full);
  border:2px solid var(--cream-deeper); color:var(--dark-mid);
  background:transparent; cursor:pointer;
  transition:all 0.2s ease;
}
.filter-btn.active, .filter-btn:hover {
  background:var(--terracotta); border-color:var(--terracotta); color:var(--white);
}

/* ── Campaign stats bar ─────────────────────────────────── */
.campaign-stats-bar {
  display:inline-flex; align-items:center;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:var(--radius-full);
  padding:16px clamp(16px,4vw,40px);
  backdrop-filter:blur(10px);
}
.c-stat { text-align:center; padding:0 clamp(14px,3vw,32px); }
.c-stat-val { display:block; font-family:var(--font-heading); font-size:clamp(1.1rem,2.5vw,1.6rem); font-weight:800; color:var(--cream); letter-spacing:-0.02em; }
.c-stat-label { display:block; font-family:var(--font-heading); font-size:0.6rem; font-weight:700; letter-spacing:0.15em; text-transform:uppercase; color:rgba(244,239,234,0.4); margin-top:2px; }
.c-stat-sep { width:1px; height:36px; background:rgba(255,255,255,0.1); flex-shrink:0; }

/* ── Quote card ─────────────────────────────────────────── */
.quote-card {
  background:var(--white); border-radius:var(--radius-lg); padding:28px;
  box-shadow:var(--shadow-sm);
  transition:transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.quote-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.quote-mark { font-family:var(--font-heading); font-size:2.8rem; font-weight:900; color:var(--terracotta); line-height:0.8; margin-bottom:8px; }
.quote-text { font-style:italic; color:var(--dark); font-size:0.92rem; line-height:1.6; margin-bottom:16px; }
.quote-author { display:flex; align-items:center; gap:10px; font-family:var(--font-heading); font-size:0.72rem; font-weight:600; color:var(--dark-mid); }
.quote-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }

/* ── Welcome founder ─────────────────────────────────────── */
.welcome-page { background:#0d1117; min-height:100svh; }
.welcome-screen { min-height:100svh; display:flex; align-items:center; justify-content:center; text-align:center; padding:var(--nav-h) var(--gutter) 60px; position:relative; overflow:hidden; }
.welcome-content { position:relative; z-index:1; max-width:560px; }
.founder-num { font-family:var(--font-heading); font-size:clamp(3.5rem,11vw,8rem); font-weight:900; color:var(--cream); line-height:0.9; letter-spacing:-0.05em; }
.founder-num span { color:var(--terracotta); }
.question-card { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:var(--radius-xl); padding:clamp(28px,5vw,52px); margin-top:36px; backdrop-filter:blur(12px); }
.question-text { font-family:var(--font-heading); font-size:clamp(1.05rem,3vw,1.5rem); font-weight:700; color:var(--cream); line-height:1.3; margin-bottom:22px; }
.answer-textarea { width:100%; padding:15px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); border-radius:var(--radius-md); color:var(--cream); font-family:var(--font-body); font-size:0.92rem; resize:none; min-height:80px; outline:none; transition:border-color 0.2s,background 0.2s; }
.answer-textarea:focus { border-color:var(--terracotta); background:rgba(255,255,255,0.09); }
.answer-textarea::placeholder { color:rgba(244,239,234,0.3); }
.char-count { font-family:var(--font-heading); font-size:0.68rem; font-weight:600; color:rgba(244,239,234,0.3); text-align:right; margin-top:5px; display:block; }
.preview-dot { width:16px; height:16px; border-radius:50%; background:var(--terracotta); margin:18px auto; box-shadow:0 0 20px rgba(198,93,59,0.5); animation:dotPulseAnim 2s ease-in-out infinite; }
@keyframes dotPulseAnim { 0%,100%{transform:scale(1);}50%{transform:scale(1.3);} }
.share-card { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:var(--radius-xl); padding:clamp(28px,5vw,52px); margin-top:28px; }
.share-btns { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:22px; }
.share-btn { display:inline-flex; align-items:center; gap:7px; padding:11px 22px; border-radius:var(--radius-full); font-family:var(--font-heading); font-size:0.78rem; font-weight:700; cursor:pointer; border:none; transition:transform 0.2s,box-shadow 0.2s; }
.share-btn:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.share-ig { background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366); color:#fff; }
.share-x  { background:#000; color:#fff; }
.share-cp { background:var(--white); color:var(--dark); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width:1024px) {
  .mem-grid-4 { grid-template-columns:1fr 1fr; }
  .feat-grid-3 { grid-template-columns:1fr 1fr; }
  .biz-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:900px) {
  .contact-layout { grid-template-columns:1fr; }
  .events-full-grid { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .page-hero { min-height:clamp(280px,55vw,420px); padding-bottom:clamp(36px,6vw,56px); }
  .ph-orb-b,.ph-orb-c { display:none; }
  .ph-orb-a { width:clamp(80px,15vw,130px); height:clamp(80px,15vw,130px); }
  .feat-grid-3,.feat-grid-2 { grid-template-columns:1fr; }
  .mem-grid-4 { grid-template-columns:1fr; }
  .mem-card-featured-v2 { transform:none; }
  .biz-grid { grid-template-columns:1fr; }
  .photo-row { grid-template-columns:1fr 1fr; }
  .photo-row-img:nth-child(2) { margin-top:0; }
  .photo-row-img:nth-child(3) { display:none; }
  .poa-tr,.poa-bl,.poa-br { display:none; }
  .form-row { grid-template-columns:1fr; }
  .form-type-tabs { flex-direction:column; border-radius:var(--radius-lg); }
  .campaign-stats-bar { flex-direction:column; border-radius:var(--radius-lg); padding:16px 20px; }
  .c-stat-sep { width:100%; height:1px; }
  .stack-secondary { display:none; }
  .share-btns { flex-direction:column; }
}
@media (max-width:768px) {
  /* biz-img: no aspect-ratio override needed — images display full height */
  .biz-logo, .biz-logo-lg { width:80px; height:80px; }
}
@media (max-width:480px) {
  /* biz-img: no aspect-ratio override needed — images display full height */
  .biz-grid { grid-template-columns:1fr; }
  .biz-logo, .biz-logo-lg { width:72px; height:72px; padding:6px; }
  .mem-grid-4 { grid-template-columns:1fr; }
  .photo-row { grid-template-columns:1fr 1fr; }
  .filter-bar { gap:6px; }
  .filter-btn { padding:7px 12px; font-size:0.66rem; }
  .contact-form-card { padding:24px 18px; }
  .question-card { padding:24px 18px; }
  .share-card { padding:24px 18px; }
  /* feat-grid cards at single col on small screens */
  .feat-grid-3, .feat-grid-2 { gap: 14px; }
  .inner-feat { padding: 20px 18px; gap: 10px; }
  .inner-feat h3 { font-size: 1rem; }
  .inner-feat p  { font-size: 0.875rem; }
  .if-icon { width: 42px; height: 42px; margin-bottom: 2px; }
  .if-icon svg { width: 20px; height: 20px; }
}