/* ==========================================================
   Misfit Toys shared bento look (homepage rules, used by inner pages too). Homepage keeps its own inline copy for speed. (Nov 12, 2026, chat misfit-toys_bento-cleanup)
   THE RULES
   1. Everything sits inside one width (1320px) with the same side margins. Nothing runs past it except the footer.
   2. Every section is bento tiles: 12px rounded corners, 14px gaps, no borders, no lines.
   3. Colors: page #ECE9E3, cream tiles #F7F7F2, near-black tiles #100F0D, ONE gold tile (Coming soon),
      deep red #A11D1D only for buttons, numbers, and small chips. No pure white, no pure black.
   4. One button size everywhere: 240 x 57, rounded 10px (296 didn't fit inside the four equal tiles).
   5. One headline size for every section.
   6. Phones: rows of cards swipe sideways, one card at a time, with the next card peeking.
   ========================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --paper: #ECE9E3;
  --cream: #F7F7F2;
  --white: #F7F7F2;
  --ink: #100F0D;
  --red: #A11D1D;
  --red-dark: #7A1414;
  --gold: #E3C454;
  --gap: 14px;
  --r: 12px;
  --max: 1320px;
  --side: clamp(1.25rem, 3vw, 2rem);
  --pad: clamp(1.25rem, 2.4vw, 2.25rem);
  --h2: clamp(2rem, 3.2vw, 2.9rem);
}
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Chivo', sans-serif; font-weight: 900; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.01em; }
h2 { font-size: var(--h2); }
h3 { font-size: 1.35rem; line-height: 1.05; }
p { max-width: 68ch; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 0; top: -60px; background: var(--ink); color: var(--cream); padding: 0.75rem 1rem; z-index: 10000; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.phone-only { display: none !important; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--side); }
main.wrap { display: flex; flex-direction: column; gap: var(--gap); padding-top: var(--gap); padding-bottom: calc(var(--gap) * 3); }
.row { display: grid; gap: var(--gap); }
.tile { position: relative; border-radius: var(--r); overflow: hidden; background: linear-gradient(135deg, #F4EEE6 0%, #F0E6E1 50%, #E8E4DF 100%); padding: var(--pad); min-width: 0; }
.tile.dark { background: var(--ink); color: var(--cream); }
.tile.gold { background: var(--gold); }
.tile.photo { padding: 0; }
.tile > * + * { margin-top: 1rem; }
.tile.photo > * + * { margin-top: 0; }
.dark a:not(.btn) { color: var(--gold); font-weight: 700; text-decoration: none; }

/* ---------- Buttons: one size everywhere ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; width: 15rem; max-width: 100%; min-height: 57px; padding: 0.6rem 1.25rem; border-radius: 10px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-family: 'Chivo', sans-serif; font-weight: 900; font-size: 1rem; line-height: 1.1; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn:hover { background: var(--ink); color: var(--cream); }
.btn-red { background: var(--red); border-color: var(--red); color: var(--cream); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--cream); }
.dark .btn:not(.btn-red) { border-color: var(--cream); color: var(--cream); }
.dark .btn:not(.btn-red):hover { background: var(--cream); color: var(--ink); }
.btn-col { display: flex; flex-direction: column; gap: 0.75rem; }
.chip { display: inline-block; align-self: flex-start; background: var(--red); color: var(--cream); font-weight: 600; font-size: 0.95rem; line-height: 1.2; padding: 0.35rem 0.7rem; border-radius: 6px; }

/* ---------- Top bar ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: linear-gradient(90deg, #F4EEE6 0%, #F0E6E1 55%, #EBE5DF 100%); border-bottom: 1px solid rgba(16,15,13,0.12); }
.header-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--side); height: 64px; display: flex; align-items: center; gap: 1rem; }
.logo-cell { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex: none; }
.logo-cell img { height: 40px; width: auto; }
.logo-name { font-family: 'Chivo', sans-serif; font-weight: 900; font-size: 1.2rem; text-transform: uppercase; white-space: nowrap; letter-spacing: -0.01em; }
.main-nav { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.main-nav > a, .nav-drop-btn { display: flex; align-items: center; gap: 0.35rem; height: 40px; padding: 0 0.8rem; border-radius: 8px; background: none; border: 0; color: inherit; cursor: pointer; white-space: nowrap; font-family: 'Chivo', sans-serif; font-weight: 700; font-size: 0.92rem; text-transform: uppercase; text-decoration: none; }
.main-nav > a:hover, .nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { background: var(--ink); color: var(--cream); }
.nav-drop { position: relative; }
.nav-drop-btn::after { content: '+'; font-weight: 900; }
.nav-drop.open .nav-drop-btn::after { content: '\2212'; }
.drop-panel { display: none; position: absolute; top: calc(100% + 12px); left: 0; width: min(640px, 90vw); background: var(--cream); border-radius: var(--r); box-shadow: 0 10px 30px rgba(16,15,13,0.18); padding: 0.5rem; z-index: 1100; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
.nav-drop.open .drop-panel { display: grid; }
.main-nav .drop-item { display: grid; grid-template-columns: 64px 1fr; gap: 0.85rem; align-items: center; padding: 0.6rem; border-radius: 10px; text-decoration: none; }
.main-nav .drop-item:hover { background: var(--paper); }
.drop-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.drop-item b { display: block; font-family: 'Chivo', sans-serif; font-weight: 900; font-size: 1rem; text-transform: uppercase; line-height: 1.1; }
.drop-item small { display: block; font-weight: 500; font-size: 0.88rem; margin-top: 0.25rem; }
.main-nav .drop-all { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; min-height: 48px; border-radius: 10px; background: var(--red); color: var(--cream); font-family: 'Chivo', sans-serif; font-weight: 900; text-transform: uppercase; text-decoration: none; }
.main-nav .drop-all:hover { background: var(--red-dark); }
.onview-cell { flex: none; display: flex; align-items: center; gap: 0.5rem; height: 40px; padding: 0 0.9rem; border-radius: 8px; background: var(--red); color: var(--cream); font-weight: 600; font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.onview-cell b { font-family: 'Chivo', sans-serif; font-weight: 900; text-transform: uppercase; }
.onview-cell:hover { background: var(--red-dark); }
.onview-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.nav-onview { display: none !important; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; position: relative; background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--ink); }
.menu-btn span { position: absolute; left: 50%; width: 26px; height: 3px; margin-left: -13px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-btn span:nth-child(1) { top: calc(50% - 9px); } .menu-btn span:nth-child(2) { top: calc(50% - 1.5px); } .menu-btn span:nth-child(3) { top: calc(50% + 6px); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 1240px) { .onview-cell { display: none; } }

/* ---------- Hero: photo melts into the cream tile (same move as Mesa Park) ---------- */
.t-hero, .t-mesa { padding: 0; }
.t-hero { display: flex; align-items: center; min-height: 500px; }
.t-hero img { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.t-hero::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 62%; background: linear-gradient(to left, rgba(247,247,242,0) 55%, rgba(247,247,242,0.7) 82%, #F7F7F2 100%); pointer-events: none; }
.t-hero .tile-copy { position: relative; z-index: 1; width: 46%; padding: var(--pad); display: flex; flex-direction: column; gap: 1.25rem; }
.t-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.75rem); }
.t-hero .subtitle { font-size: 1.15rem; max-width: 34ch; }

/* ---------- Mesa Park: photo melts into near-black ---------- */
.t-mesa { display: flex; align-items: center; min-height: 500px; background: var(--ink); color: var(--cream); }
.t-mesa img { position: absolute; top: 0; left: 0; width: 62%; height: 100%; object-fit: cover; }
.t-mesa::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 62%; background: linear-gradient(to right, rgba(16,15,13,0) 55%, rgba(16,15,13,0.7) 82%, #100F0D 100%); pointer-events: none; }
.t-mesa .tile-copy { position: relative; z-index: 1; margin-left: 57%; padding: var(--pad); display: flex; flex-direction: column; gap: 1.1rem; }
.t-mesa h2 { color: var(--cream); }

/* ---------- Coming soon + installations: four tiles, all the same size ---------- */
.row-work { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row-work .tile { height: 440px; }
.t-soon { padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.t-soon > * + * { margin-top: 0; }
.t-soon h2 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.t-work { display: block; color: var(--cream); text-decoration: none; }
.t-work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.t-work:hover img { transform: scale(1.04); }
.t-work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,15,13,0.94) 0%, rgba(16,15,13,0.6) 32%, rgba(16,15,13,0) 60%); }
.t-work .tile-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; }
.t-work h3 { font-size: 1.45rem; }
.t-work .where { font-weight: 600; color: var(--gold); font-size: 0.95rem; line-height: 1.3; }
.t-work .what { font-size: 0.95rem; line-height: 1.3; }

/* ---------- Ticker: a tile like everything else ---------- */
.ticker { border-radius: var(--r); background: var(--ink); overflow: hidden; }
.ticker-track { display: flex; align-items: center; width: max-content; animation: tick 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: 'Chivo', sans-serif; font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1; padding: 1.1rem 0; white-space: nowrap; color: var(--cream); }
.ticker-track span.alt { color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.ticker-track i { display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--gold); margin: 0 1.25rem; flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Meet the crew (crew, stats, and who we are in one section) ---------- */
.row-crew { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-about { display: flex; flex-direction: column; gap: 1rem; }
.t-about > * + * { margin-top: 0; }
.t-about .btn { margin-top: auto; }
.crew-card-x { display: flex; flex-direction: column; padding: 0; }
.crew-card-x > * + * { margin-top: 0; }
.cx-body { padding: 1.4rem var(--pad) var(--pad); display: flex; flex-direction: column; gap: 0.6rem; }
.cx-body h3 { font-size: 1.9rem; }
.cx-body p { font-size: 0.98rem; line-height: 1.5; }
.cx-who { font-weight: 600; }
.cx-jobs { font-size: 0.92rem !important; }
.cx-body b { font-family: 'Chivo', sans-serif; font-weight: 900; }
.cx-body blockquote { border-left: 3px solid var(--red); padding-left: 0.9rem; font-size: 0.98rem; line-height: 1.5; }
.cx-credit { font-size: 0.85rem !important; color: #55524D; }
.row-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.4rem; min-height: 170px; }
.stat > * + * { margin-top: 0; }
.stat b { font-family: 'Chivo', sans-serif; font-weight: 900; font-size: clamp(2.6rem, 4.2vw, 3.8rem); line-height: 0.95; color: var(--red); }
.stat span { font-weight: 600; }

/* ---------- Partners ---------- */
.row-partners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t-partners-head { grid-row: span 2; display: flex; flex-direction: column; gap: 1rem; }
.t-partners-head > * + * { margin-top: 0; }
.partner-row { display: flex; flex-direction: column; gap: 0.6rem; }
.partner-row > * + * { margin-top: 0; }
.partner-row p { font-size: 0.98rem; line-height: 1.5; flex: 1; }
.partner-row a { font-family: 'Chivo', sans-serif; font-weight: 900; text-decoration: none; color: var(--red); }

/* ---------- Questions ---------- */
.row-faq { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.t-faq-head { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; }
.t-faq-head > * + * { margin-top: 0; }
.faq-item { border-bottom: 1px solid rgba(247,247,242,0.18); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; font-family: 'Chivo', sans-serif; font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-weight: 900; font-size: 1.4rem; line-height: 1; color: var(--gold); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 0 1.1rem; color: #DCD9D2; }
.t-faq-list { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.t-faq-list > * + * { margin-top: 0; }

/* ---------- Connect ---------- */
.row-build { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.build-intro { display: flex; flex-direction: column; gap: 1rem; }
.build-intro > * + * { margin-top: 0; }
.build-photo { margin-top: auto !important; }
.build-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.build-photo figcaption { font-size: 0.85rem; margin-top: 0.4rem; }
.mt-form { display: flex; flex-direction: column; gap: 1.1rem; }
.mt-form > * + * { margin-top: 0; }
.picks { border: 0; }
.picks legend { font-family: 'Chivo', sans-serif; font-weight: 900; margin-bottom: 0.6rem; }
.pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pick { position: relative; display: block; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: flex; align-items: center; min-height: 57px; height: 100%; padding: 0.5rem 1rem; border: 2px solid var(--ink); border-radius: 10px; font-weight: 600; cursor: pointer; }
.pick input:checked + span { background: var(--ink); color: var(--cream); }
.pick input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field label { display: block; font-family: 'Chivo', sans-serif; font-weight: 900; margin-bottom: 0.35rem; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 0.8rem 0.9rem; min-height: 57px; background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.92rem; }
.form-status:empty { display: none; }
.form-status { font-weight: 700; }
.text-alt { display: flex; flex-direction: column; gap: 0.6rem; }

/* ---------- Support + crew portal ---------- */
.t-support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem var(--pad); }
.t-support > * + * { margin-top: 0; }
.support-main, .support-note { display: flex; flex-direction: column; gap: 1rem; }
.support-main > * + *, .support-note > * + * { margin-top: 0; }
.support-note p { font-size: 0.98rem; color: #DCD9D2; }
.support-note strong { color: var(--cream); }
.portal { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.portal > * + * { margin-top: 0; }
.portal h2 { font-size: 1.6rem; margin-bottom: 0.35rem; }


/* Partners head: real photo melting into near-black (adds color, same move as Mesa Park) */
.t-partners-head { padding: 0; gap: 0; }
.t-partners-head img { width: 100%; height: 260px; object-fit: cover; object-position: 50% 45%; }
.t-partners-head::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 260px; background: linear-gradient(to bottom, rgba(16,15,13,0) 55%, rgba(16,15,13,0.75) 82%, #100F0D 100%); pointer-events: none; }
.ph-copy { position: relative; z-index: 1; margin-top: -2.5rem; padding: 0 var(--pad) var(--pad); display: flex; flex-direction: column; gap: 1rem; }
/* Questions head: Misfit logo with the title */
.faq-title-wrap { display: flex; flex-direction: column; gap: 1rem; }
.faq-logo { width: 120px; height: auto; }
@media (max-width: 1280px) { .t-partners-head img, .t-partners-head::after { height: 260px; } }
@media (max-width: 899px) { .t-partners-head img, .t-partners-head::after { height: 220px; } .faq-logo { width: 96px; } }


/* Crew photos: tap to see the whole photo */
.cx-photo { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cx-photo img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 22%; transition: transform 0.3s ease; }
.cx-photo:hover img { transform: scale(1.03); }
.cx-photo { overflow: hidden; }
.photo-pop { margin: auto; padding: 1rem; border: 0; border-radius: var(--r); background: var(--cream); max-width: min(92vw, 640px); max-height: 92vh; }
.photo-pop:popover-open { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.photo-pop img { width: auto; max-width: 100%; max-height: calc(92vh - 110px); height: auto; object-fit: contain; border-radius: 10px; }
.photo-pop::backdrop { background: rgba(16,15,13,0.8); }
/* Partner cards: warm up to gold and lift a little on hover */
.partner-row { transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.partner-row:hover { background: #F4E7B4; transform: translateY(-4px); box-shadow: 0 10px 24px rgba(16,15,13,0.12); }
@media (prefers-reduced-motion: reduce) { .partner-row, .cx-photo img { transition: none; } .partner-row:hover { transform: none; } }
/* Partners photo: show the jacks and blocks, not just the sky */
.t-partners-head img { object-position: 50% 80% !important; }
/* Questions, Connect, Support share the same two columns so their edges line up */
.row-faq, .row-build { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.t-support { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 899px) { .row-faq, .row-build, .t-support { grid-template-columns: 1fr; } }


/* ---------- Phones, tighter (Nov 12, 11:25 PM): smaller cards, cards snap to the middle, compact form ---------- */
@media (max-width: 899px) {
  :root { --pad: 1.25rem; --h2: clamp(1.75rem, 8vw, 2.2rem); }
  main.wrap { gap: 12px; }
  .row { gap: 12px; }
  .swipe { grid-auto-columns: 78%; gap: 10px; scroll-padding: 0; }
  .swipe > * { scroll-snap-align: center; }
  .row-work .swipe > .tile { height: 300px; }
  .t-work .tile-copy { padding: 1rem; }
  .t-work h3 { font-size: 1.2rem; }
  .swipe-hint { margin: 0 0 -4px; font-size: 0.85rem; }
  .t-hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .t-hero .tile-copy, .t-mesa .tile-copy { gap: 0.9rem; }
  .t-soon { gap: 0.75rem; }
  .t-soon h2 { font-size: 1.5rem; }
  .cx-photo img { height: 200px; }
  .cx-body { padding: 1rem 1.1rem 1.2rem; gap: 0.45rem; }
  .cx-body h3 { font-size: 1.5rem; }
  .cx-body p, .cx-body blockquote { font-size: 0.92rem; line-height: 1.45; }
  .stat { min-height: 0; padding: 1rem 1.1rem; }
  .stat b { font-size: 2.2rem; }
  .partner-row { padding: 1.1rem; }
  .t-partners-head img, .t-partners-head::after { height: 180px !important; }
  .build-photo { display: none; }
  .mt-form { gap: 0.8rem; }
  .pick-row { grid-template-columns: 1fr 1fr !important; gap: 0.5rem; }
  .pick span { min-height: 48px; font-size: 0.92rem; line-height: 1.2; padding: 0.4rem 0.7rem; }
  .field label { font-size: 0.95rem; margin-bottom: 0.25rem; }
  .field input { min-height: 48px; padding: 0.6rem 0.8rem; }
  .field textarea { min-height: 110px; }
  .form-note { font-size: 0.85rem; }
  .t-support { gap: 1rem; }
  .faq-item summary { font-size: 1rem; padding: 0.9rem 0; }
  .faq-logo { width: 80px; }
}


/* Crew photos melt into the card (like the hero) */
.cx-photo img { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
.cx-photo:focus-visible { outline-offset: -3px; }
.cx-body { margin-top: -1.25rem !important; position: relative; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #E6E6E6; }
footer .footer-grid { display: grid; grid-template-columns: 1fr 1.8fr 0.7fr 1fr; gap: 2rem 3rem; max-width: var(--max); margin: 0 auto; padding: 3rem var(--side) 2rem; }
footer .footer-col h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--gold); }
footer .footer-col p, footer .footer-col a { display: block; color: #E6E6E6; margin-bottom: 0.45rem; text-decoration: none; }
footer .footer-col a { font-weight: 600; }
footer .footer-col a:hover { color: var(--gold); }
footer .footer-col:nth-child(2) { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1.5rem; align-content: start; }
footer .footer-col:nth-child(2) h3 { grid-column: 1 / -1; }
footer .footer-col:nth-child(2) a { margin: 0; }
footer .footer-base { max-width: var(--max); margin: 0 auto; padding: 1rem var(--side) 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.95rem; }
footer .footer-base a { display: inline-block; border: 2px solid var(--cream); border-radius: 6px; padding: 0.1rem 0.5rem; font-weight: 700; color: var(--cream); text-decoration: none; }
footer .footer-base a:hover { background: var(--cream); color: var(--ink); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 9999; background: var(--cream); border-radius: var(--r); box-shadow: 0 10px 30px rgba(16,15,13,0.25); display: none; align-items: center; gap: 1rem; padding: 0.9rem 1rem; max-width: 760px; margin: 0 auto; }
.cookie-banner.show { display: flex; }
.cookie-text { flex: 1; font-size: 0.9rem; line-height: 1.4; }
.cookie-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-btn { min-height: 44px; padding: 0.5rem 0.9rem; font-family: 'Chivo', sans-serif; font-weight: 700; font-size: 0.9rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--cream); color: var(--ink); cursor: pointer; }
.cookie-btn:hover { background: var(--ink); color: var(--cream); }

/* ---------- In-between widths ---------- */
@media (max-width: 1280px) {
  .row-work { grid-template-columns: 1fr 1fr; }
  .row-crew { grid-template-columns: 1fr 1fr; }
  .t-about { grid-column: 1 / -1; }
  .row-partners { grid-template-columns: 1fr 1fr 1fr; }
  .t-partners-head { grid-row: auto; grid-column: 1 / -1; }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 899px) {
  .phone-only { display: flex !important; }
  .menu-btn { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0.5rem var(--side) 1rem; background: var(--cream); border-bottom: 1px solid rgba(16,15,13,0.12); box-shadow: 0 12px 24px rgba(16,15,13,0.12); max-height: calc(100vh - 64px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop-btn { height: auto; min-height: 52px; width: 100%; justify-content: space-between; padding: 0 0.75rem; font-size: 1.05rem; }
  .nav-onview { display: flex !important; justify-content: flex-start !important; gap: 0.5rem; background: var(--red); color: var(--cream); margin-bottom: 0.35rem; }
  .drop-panel { position: static; width: 100%; box-shadow: none; grid-template-columns: 1fr; padding: 0.25rem 0 0.5rem; background: transparent; }
  .main-nav .drop-item { grid-template-columns: 52px 1fr; }
  .drop-item img { width: 52px; height: 52px; }
  .logo-cell img { height: 36px; }
  .logo-name { font-size: 1.05rem; }

  .t-hero, .t-mesa { flex-direction: column; align-items: stretch; min-height: 0; }
  .t-hero img, .t-mesa img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .t-hero::after { top: 0; bottom: auto; left: 0; width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(to bottom, rgba(247,247,242,0) 60%, rgba(247,247,242,0.7) 85%, #F7F7F2 100%); }
  .t-mesa::after { top: 0; bottom: auto; width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(to bottom, rgba(16,15,13,0) 60%, rgba(16,15,13,0.7) 85%, #100F0D 100%); }
  .t-hero .tile-copy, .t-mesa .tile-copy { width: auto; margin: -2.5rem 0 0; padding: 0 var(--pad) var(--pad); }

  .row-work, .row-crew, .row-partners, .row-faq, .row-build { grid-template-columns: 1fr; }
  .t-support { grid-template-columns: 1fr; }
  .row-stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 130px; }
  .row-work .tile.t-soon { height: auto; }
  .field-row { grid-template-columns: 1fr; }
  .pick-row { grid-template-columns: 1fr; }
  .btn { width: 15rem; }

  /* Swipe rows: one card at a time, next card peeking */
  .swipe { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--side) * -1); padding: 0 var(--side); scroll-padding: 0 var(--side); }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { scroll-snap-align: start; }
  .row-work .swipe > .tile { height: 400px; }
  .swipe-hint { font-size: 0.9rem; font-weight: 600; color: #55524D; }

  footer .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 2.5rem; }
  .cookie-banner { flex-direction: column; align-items: stretch; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
  .cookie-buttons .cookie-btn { flex: 1; }
}
@media (min-width: 900px) { .swipe-hint { display: none; } .swipe { display: contents; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ticker-track { animation: none; } .t-work img, .menu-btn span { transition: none; } }
  
/* Mesa Park round 4 (Nov 13): partner tile, more installations */
.t-partner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.t-partner h2 { margin-bottom: 0.5rem; }
.t-partner h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.t-partner p { max-width: 60ch; }
.t-seemore .btn-row { margin-top: 1rem; }
.t-faq-head { justify-content: flex-start; }
.t-faq-head .btn { margin-top: auto; }
.faq-logo { width: 200px; }
@media (max-width: 899px) { .faq-logo { width: 140px; } }

/* Read more drops */
details.more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; font-family: 'Chivo', sans-serif; font-weight: 900; font-size: 0.95rem; text-transform: uppercase; color: var(--red); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '+'; font-size: 1.2rem; line-height: 1; }
details.more[open] > summary::after { content: '\2212'; }
details.more[open] > summary { margin-bottom: 0.6rem; }
.gold details.more > summary { color: var(--ink); }
/* Questions box: big see-through logo behind the words */
.row-faq .t-faq-head { position: relative; overflow: hidden; }
.row-faq .t-faq-head .faq-logo { position: absolute !important; right: 6%; top: 50%; transform: translateY(-50%); width: 58% !important; max-width: 340px; height: auto; opacity: 0.12; pointer-events: none; z-index: 0; }
.row-faq .t-faq-head .faq-title-wrap { position: static !important; }
.row-faq .t-faq-head h2, .row-faq .t-faq-head > .btn { position: relative; z-index: 1; }

/* Mesa Park: Why here, About the park, Questions side by side; answers below */
.row-trio { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.row-trio .t-faq-head { display: flex; flex-direction: column; gap: 1rem; }
.row-trio .t-faq-head .btn { margin-top: auto; }
.row-faq-full { grid-template-columns: 1fr !important; }
@media (max-width: 1100px) { .row-trio { grid-template-columns: 1fr 1fr !important; } .row-trio .t-faq-head { grid-column: 1 / -1; } }
@media (max-width: 899px) { .row-trio { grid-template-columns: 1fr !important; } }
.t-partner .park-quote { margin-top: 1.2rem; border-left: 3px solid var(--red); padding-left: 1rem; }
.t-partner .park-quote p { font-size: 1.1rem; }
.t-partner > div { flex: 1 1 520px; }

/* Trio: same shape in every box (header, short text, one button at the bottom) */
.row-trio > .tile { display: flex; flex-direction: column; gap: 1rem; }
.row-trio > .tile > * { margin-top: 0; }
.row-trio > .tile > .btn { margin-top: auto; }
.t-qs h2 { color: var(--cream); }
.t-qs .faq-item summary { font-size: 1rem; padding: 0.75rem 0; }
.t-qs .faq-item p { font-size: 0.95rem; }
.row-trio > .tile > details.more { margin-top: auto; }
.row-trio > .tile > details.more + .btn { margin-top: 0; }

/* Nov 13 fixes: five equal install photos, even link buttons, phone partner box */
@media (min-width: 900px) {
  body.mesa .steps { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  body.mesa .step, body.mesa .step:nth-child(4), body.mesa .step:nth-child(5) { grid-column: auto !important; }
  body.mesa .step img, body.mesa .step:nth-child(4) img, body.mesa .step:nth-child(5) img { aspect-ratio: 1 / 1 !important; }
  body.mesa .step-copy { padding: 0 1.1rem 1.2rem; }
  body.mesa .step-copy h3 { font-size: 1.1rem; }
  body.mesa .step-copy p { font-size: 0.95rem; }
}
.t-seemore .btn-row { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.t-seemore .btn-row .btn { width: 100%; }
@media (max-width: 899px) { .t-seemore .btn-row { grid-template-columns: 1fr; } }
@media (max-width: 899px) { .t-partner { flex-direction: column; align-items: stretch; } .t-partner > div { flex: none; } }
.t-partner > div > p + p { margin-top: 0.8rem; }
.t-partner p a { color: var(--red); font-weight: 700; text-decoration: none; }

/* Partner row: three across */
.row-partner3 h3 { font-size: 1.25rem; }
.t-quote h2 { color: var(--cream); }
.t-quote .park-quote { border-left-color: var(--gold); margin-top: 0; }
.t-quote .park-quote p { color: var(--cream); font-size: 1.08rem; }
.t-quote .park-quote cite { color: var(--gold); }
.t-quote h2 { color: var(--ink); }
.t-quote .park-quote { border-left-color: var(--red); }
.t-quote .park-quote p { color: var(--ink); }
.t-quote .park-quote cite { color: var(--ink); }
.t-partner-anchor h2, .t-partner-anchor h3 { color: var(--cream); }
.t-partner-anchor h3 { color: var(--gold); }
/* Phones: park and partner boxes stay together, questions after them */
@media (max-width: 899px) {
  body.mesa main.wrap > .row-trio, body.mesa main.wrap > .row-partner3 { display: contents; }
  body.mesa .row-trio > .t-qs { order: 1; }
  body.mesa main.wrap > .row-partner3 ~ * { order: 2; }
}

/* Phones: fold boxes (header with +, tap to open) */
.fold-btn { all: unset; display: block; width: 100%; cursor: default; }
@media (max-width: 899px) {
  html.folding .fold { gap: 0 !important; }
  html.folding .fold-btn { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; }
  html.folding .fold-btn::after { content: '+'; font-size: 1.6rem; line-height: 1; color: var(--red); }
  html.folding .dark .fold-btn::after { color: var(--gold); }
  html.folding .gold .fold-btn::after { color: var(--ink); }
  html.folding .fold.open .fold-btn::after { content: '\2212'; }
  html.folding .fold:not(.open) > :not(h2) { display: none !important; }
  html.folding .fold.open > h2 { margin-bottom: 1rem; }
  html.folding .fold.open { gap: 1rem !important; }
  .fold-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 4px; }
}

/* Links to the founder page (Nov 13) */
.name-link { color: var(--red); font-weight: 700; text-decoration: none; }
.dark .name-link, .t-mesa .name-link { color: var(--gold); }

/* Nov 15: sentence case everywhere (Dayna: no all caps). The top bar logo name stays as the logo. */
h1, h2, h3, .btn, .drop-item b, .main-nav .drop-all, .main-nav > a, .nav-drop-btn, .onview-cell b, details.more > summary, .sq-name { text-transform: none !important; }

/* Typing boxes blend into the card */
.field input, .field textarea, .field select { background: transparent; }
#gKey { background: transparent; }
#gUser { background: transparent; }
