/* ════════════════════════════════════════════════════════════
   M CELLPHONES · UPGRADE LAYER  (loaded LAST, overrides styles.css)
   (A) oak palette de-blue  (B) category picker  (C) broken-screen story
   Palette: warm white / oak / walnut / black — no blue, no neon.
   ════════════════════════════════════════════════════════════ */
:root{
  --mc-bg:#f7f3ed; --mc-white:#ffffff; --mc-warm:#efebe4;
  --mc-oak:#8b5e3c; --mc-walnut:#4b2f1f; --mc-black:#050505;
  --mc-text:#6e6e73; --mc-line:rgba(0,0,0,.08); --mc-champagne:#d9c4a8;
  /* De-blue: re-point the hero + site accents to oak/walnut. */
  --mc-blue:#8b5e3c; --mc-blue-2:#4b2f1f;
  --lime:#8b5e3c; --green:#4b2f1f; --cyan:#d9c4a8; --pink:#b9836a;
}
/* hero accent de-blue (the canonical hero hardcodes some blue) */
.mc-eyebrow{ color:var(--mc-oak) !important; }
.mc-hero-title span{ background-image:linear-gradient(100deg,#c89b6a,#e7d6bd) !important; background-color:transparent !important; -webkit-background-clip:text !important; background-clip:text !important; -webkit-text-fill-color:transparent !important; color:transparent !important; }
.mc-btn-primary{ background:var(--mc-black) !important; box-shadow:0 14px 30px -14px rgba(5,5,5,.6) !important; }
.mc-btn-primary:hover{ background:#000 !important; }
.mc-search button, .mc-search-header button, .mc-search-hero button{ background:var(--mc-black) !important; color:#fff !important; }
/* header call pill / CTA inherit --lime → now oak automatically */

/* ════════════════ (B) CATEGORY / MODEL PICKER ════════════════ */
.mc-cats{ background:var(--mc-bg); padding:clamp(56px,9vh,110px) clamp(20px,5vw,72px); }
.mc-cats-head{ max-width:780px; margin:0 auto clamp(28px,4vw,48px); text-align:center; }
.mc-cats-head .eyebrow{ color:var(--mc-oak); letter-spacing:.16em; text-transform:uppercase; font-weight:700; font-size:13px; }
.mc-cats-head h2{ font:800 clamp(28px,4vw,46px)/1.08 Inter,system-ui,sans-serif; letter-spacing:-.03em; color:#1a120b; margin:10px 0 12px; }
.mc-cats-sub{ color:var(--mc-text); font-size:clamp(15px,1.4vw,18px); margin:0; }
.mc-cats-sub a{ color:var(--mc-oak); font-weight:600; }
.mc-cats-grid{ max-width:1180px; margin:0 auto; display:grid; gap:18px; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); transition:opacity .3s ease, filter .3s ease; }
.mc-cats-grid.mc-cats-dim{ opacity:.5; filter:saturate(.7); }
.mc-cat-card{ position:relative; overflow:hidden; text-align:left; cursor:pointer; background:var(--mc-white); border:1px solid var(--mc-line); border-radius:24px; padding:26px 24px; display:flex; flex-direction:column; gap:8px; box-shadow:0 10px 30px -22px rgba(40,26,15,.5); opacity:0; transform:translateY(20px); animation:mc-rise .8s cubic-bezier(.22,.61,.36,1) forwards; animation-delay:var(--d,0s); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mc-cat-card:hover{ transform:translateY(-4px); box-shadow:0 26px 50px -26px rgba(40,26,15,.5); border-color:rgba(139,94,60,.35); }
.mc-cat-icon{ width:48px; height:48px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg, rgba(139,94,60,.14), rgba(217,196,168,.22)); color:var(--mc-walnut); margin-bottom:6px; }
.mc-cat-icon svg{ width:26px; height:26px; }
.mc-cat-name{ font:700 19px Inter,sans-serif; color:#1a120b; letter-spacing:-.01em; }
.mc-cat-desc{ font-size:14px; line-height:1.5; color:var(--mc-text); }
.mc-cat-cta{ margin-top:6px; font-size:14px; font-weight:600; color:var(--mc-oak); }
.mc-cat-cta em{ font-style:normal; transition:transform .18s ease; display:inline-block; }
.mc-cat-card:hover .mc-cat-cta em{ transform:translateX(4px); }
.mc-cats-panel{ max-width:1180px; margin:22px auto 0; background:var(--mc-white); border:1px solid var(--mc-line); border-radius:28px; padding:clamp(20px,3vw,34px); box-shadow:0 30px 70px -40px rgba(40,26,15,.55); animation:mc-rise .5s cubic-bezier(.22,.61,.36,1) both; }
.mc-panel-top{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 18px; margin-bottom:18px; }
.mc-panel-back{ background:rgba(139,94,60,.1); color:var(--mc-walnut); border:0; border-radius:999px; padding:9px 16px; font:600 14px Inter,sans-serif; cursor:pointer; }
.mc-panel-back:hover{ background:rgba(139,94,60,.18); }
.mc-panel-top h3{ font:800 clamp(20px,2.4vw,30px) Inter,sans-serif; letter-spacing:-.02em; color:#1a120b; margin:0; flex:0 0 auto; }
.mc-panel-search{ flex:1 1 240px; min-width:200px; }
.mc-panel-search input{ width:100%; border:1px solid var(--mc-line); border-radius:999px; padding:11px 18px; font:500 15px Inter,sans-serif; background:var(--mc-bg); color:#1a120b; }
.mc-popular{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:0 0 16px; border-bottom:1px solid var(--mc-line); margin-bottom:8px; }
.mc-popular-label{ font:700 11px Inter,sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--mc-oak); }
.mc-popular-row{ display:flex; gap:8px; flex-wrap:wrap; }
.mc-series-head{ width:100%; display:flex; align-items:center; justify-content:space-between; background:none; border:0; cursor:pointer; padding:14px 4px; font:700 16px Inter,sans-serif; color:#1a120b; border-bottom:1px solid var(--mc-line); }
.mc-series-head em{ font-style:normal; color:var(--mc-oak); transition:transform .2s ease; }
.mc-series[data-open="1"] .mc-series-head em{ transform:rotate(180deg); }
.mc-series-body{ display:flex; flex-wrap:wrap; gap:8px; max-height:0; overflow:hidden; transition:max-height .35s ease, padding .35s ease; }
.mc-series[data-open="1"] .mc-series-body{ max-height:600px; padding:14px 0 18px; }
.mc-model{ display:inline-flex; align-items:center; text-decoration:none; border:1px solid var(--mc-line); border-radius:999px; padding:9px 16px; font:600 14px Inter,sans-serif; color:var(--mc-walnut); background:var(--mc-bg); transition:transform .14s, background .14s, border-color .14s; }
.mc-model:hover{ transform:translateY(-2px); background:#fff; border-color:var(--mc-oak); }
.mc-model-pop{ background:linear-gradient(135deg, rgba(139,94,60,.12), rgba(217,196,168,.2)); border-color:rgba(139,94,60,.3); }
.mc-panel-foot{ margin-top:20px; padding-top:16px; border-top:1px solid var(--mc-line); color:var(--mc-text); font-size:14px; }
.mc-panel-foot a{ color:var(--mc-oak); font-weight:700; }
@keyframes mc-rise{ to{ opacity:1; transform:none; filter:none; } }

/* ════════════════ (C) BROKEN-SCREEN SCROLL STORY ════════════════ */
.mc-bs{ position:relative; background:radial-gradient(120% 80% at 50% 0%, #1b130c, #0a0705 60%, #050505); color:#f3ead9; }
.mc-bs-track{ height:560vh; }                 /* scroll distance for 6 steps */
.mc-bs-stage{ position:sticky; top:0; height:100vh; display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:40px; max-width:1180px; margin:0 auto; padding:0 clamp(20px,5vw,72px); }
.mc-bs-copy .mc-bs-kicker{ color:var(--mc-champagne); font:700 13px Inter,sans-serif; letter-spacing:.18em; text-transform:uppercase; margin:0 0 14px; }
.mc-bs-copy h2{ font:800 clamp(30px,4.4vw,56px)/1.05 Inter,sans-serif; letter-spacing:-.03em; margin:0 0 22px; color:#fff; }
.mc-bs-steps{ position:relative; min-height:140px; }
.mc-bs-step{ position:absolute; inset:0; opacity:0; transform:translateY(16px); transition:opacity .5s ease, transform .5s ease; }
.mc-bs-step[data-on="1"]{ opacity:1; transform:none; }
.mc-bs-step .num{ display:inline-flex; width:30px; height:30px; border-radius:50%; align-items:center; justify-content:center; background:rgba(217,196,168,.16); color:var(--mc-champagne); font:700 13px Inter,sans-serif; margin-bottom:12px; }
.mc-bs-step p{ font:400 clamp(16px,1.5vw,20px)/1.5 Inter,sans-serif; color:#d9cdba; margin:0; max-width:30ch; }
.mc-bs-cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; opacity:0; transform:translateY(10px); transition:opacity .5s ease, transform .5s ease; }
.mc-bs-stage[data-step="5"] .mc-bs-cta{ opacity:1; transform:none; }
.mc-bs-cta a{ border-radius:999px; padding:13px 24px; font:600 15px Inter,sans-serif; text-decoration:none; }
.mc-bs-cta .go{ background:linear-gradient(135deg,var(--mc-oak),var(--mc-walnut)); color:#fff; }
.mc-bs-cta .call{ background:rgba(255,255,255,.1); color:#fff; border:1px solid rgba(217,196,168,.4); }

/* the phone */
.mc-bs-device{ justify-self:center; position:relative; width:min(280px,70vw); aspect-ratio:9/19; }
.mc-bs-frame{ position:absolute; inset:0; border-radius:38px; background:linear-gradient(160deg,#3a342c,#15110c); box-shadow:0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 2px rgba(217,196,168,.18); }
.mc-bs-screen{ position:absolute; inset:10px; border-radius:30px; overflow:hidden; background:#0c0a08; }
/* old (cracked/dark) screen */
.mc-bs-old{ position:absolute; inset:0; background:linear-gradient(160deg,#241c14,#0c0a08); transition:transform .7s cubic-bezier(.5,0,.2,1), opacity .6s ease; }
.mc-bs-cracks{ position:absolute; inset:0; opacity:0; transition:opacity .5s ease; }
.mc-bs-cracks path{ stroke:rgba(230,220,200,.7); stroke-width:1.4; fill:none; filter:drop-shadow(0 0 2px rgba(255,255,255,.4)); }
/* new screen slides in */
.mc-bs-new{ position:absolute; inset:0; background:linear-gradient(160deg,#caa06f,#7a5230); transform:translateY(105%); transition:transform .8s cubic-bezier(.5,0,.2,1); }
.mc-bs-new::after{ content:""; position:absolute; inset:0; background:radial-gradient(60% 50% at 50% 38%, rgba(255,255,255,.5), transparent 70%); opacity:0; transition:opacity .6s ease; }
.mc-bs-glow{ position:absolute; inset:-12% ; border-radius:46px; background:radial-gradient(circle at 50% 45%, rgba(217,196,168,.5), transparent 60%); opacity:0; transition:opacity .7s ease; filter:blur(8px); }
/* step states */
.mc-bs-stage[data-step="0"] .mc-bs-cracks{ opacity:1; animation:mc-crackshimmer 2.5s ease-in-out infinite; }
.mc-bs-stage[data-step="1"] .mc-bs-cracks{ opacity:1; }
.mc-bs-stage[data-step="1"] .mc-bs-old{ transform:translateY(-14%) rotate(-3deg); opacity:.85; }
.mc-bs-stage[data-step="2"] .mc-bs-old{ transform:translateY(-120%) rotate(-6deg); opacity:0; }
.mc-bs-stage[data-step="2"] .mc-bs-cracks{ opacity:0; }
.mc-bs-stage[data-step="3"] .mc-bs-old,.mc-bs-stage[data-step="4"] .mc-bs-old,.mc-bs-stage[data-step="5"] .mc-bs-old{ transform:translateY(-120%); opacity:0; }
.mc-bs-stage[data-step="3"] .mc-bs-new{ transform:translateY(8%); }
.mc-bs-stage[data-step="4"] .mc-bs-new,.mc-bs-stage[data-step="5"] .mc-bs-new{ transform:translateY(0); }
.mc-bs-stage[data-step="4"] .mc-bs-new::after,.mc-bs-stage[data-step="5"] .mc-bs-new::after{ opacity:1; }
.mc-bs-stage[data-step="4"] .mc-bs-glow,.mc-bs-stage[data-step="5"] .mc-bs-glow{ opacity:1; }
@keyframes mc-crackshimmer{ 0%,100%{ filter:brightness(1);} 50%{ filter:brightness(1.5);} }

/* static fallback (reduced motion / no-JS) */
.mc-bs-static{ display:none; }
@media (prefers-reduced-motion: reduce){
  .mc-cat-card,.mc-cats-panel{ animation:none !important; opacity:1 !important; transform:none !important; }
  .mc-series-body{ transition:none !important; }
  .mc-bs-track{ height:auto; }
  .mc-bs-stage{ display:none; }
  .mc-bs-static{ display:block; padding:clamp(48px,8vh,90px) clamp(20px,5vw,72px); max-width:760px; margin:0 auto; }
  .mc-bs-static .s{ border-bottom:1px solid rgba(217,196,168,.18); padding:18px 0; }
  .mc-bs-static .s b{ color:var(--mc-champagne); }
}
@media (max-width:860px){
  .mc-cats-grid{ grid-template-columns:1fr 1fr; gap:12px; }
  .mc-cat-desc{ display:none; }
  .mc-bs-stage{ grid-template-columns:1fr; text-align:center; gap:24px; }
  .mc-bs-device{ width:min(200px,55vw); order:-1; }
  .mc-bs-steps{ min-height:120px; }
}

/* ════════════════ BUTTON SYSTEM (readable everywhere) ════════════════ */
:root{
  --button-primary-bg:#050505; --button-primary-text:#ffffff;
  --button-secondary-bg:#ffffff; --button-secondary-text:#1a120b;
  --button-accent-bg:#8b5e3c; --button-accent-text:#ffffff;
}
.button.primary, button.primary, .btn-primary{ background:var(--button-primary-bg) !important; color:var(--button-primary-text) !important; border:1px solid var(--button-primary-bg) !important; }
.button.primary:hover, button.primary:hover, .btn-primary:hover{ filter:brightness(1.12); }
.button.secondary, .btn-secondary{ background:var(--button-secondary-bg) !important; color:var(--button-secondary-text) !important; border:1px solid rgba(0,0,0,.2) !important; }
.button.secondary:hover, .btn-secondary:hover{ background:#f3eee6 !important; }
/* on dark sections, secondary becomes readable glass */
.mc-hero .button.secondary, .mc-hero .mc-btn-ghost{ background:#1a120b !important; color:#fff !important; border-color:rgba(217,196,168,.55) !important; }
.search-bar button, .mc-search button, .mc-search-panel button, .mc-search-header button{ background:#050505 !important; color:#fff !important; border:none !important; }
:focus-visible{ outline:2px solid var(--mc-oak); outline-offset:2px; border-radius:6px; }

/* ════════════════ REPAIR VIDEO SECTION ════════════════ */
.mc-video-repair{ background:var(--mc-bg); padding:clamp(56px,9vh,112px) clamp(20px,5vw,72px); }
.mc-vr-inner{ max-width:1180px; margin:0 auto; display:grid; grid-template-columns:1fr 1.12fr; gap:clamp(28px,4vw,56px); align-items:center; }
.mc-vr-copy .eyebrow{ color:var(--mc-oak); letter-spacing:.16em; text-transform:uppercase; font-weight:700; font-size:13px; }
.mc-vr-copy h2{ font:800 clamp(28px,3.8vw,46px)/1.08 Inter,system-ui,sans-serif; letter-spacing:-.03em; color:#1a120b; margin:10px 0 12px; }
.mc-vr-lead{ color:var(--mc-text); font-size:clamp(15px,1.4vw,18px); line-height:1.55; margin:0 0 22px; max-width:46ch; }
.mc-vr-steps{ list-style:none; margin:0 0 24px; padding:0; display:grid; gap:14px; }
.mc-vr-steps li{ display:flex; gap:14px; align-items:flex-start; }
.mc-vr-steps span{ flex:0 0 auto; width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,rgba(139,94,60,.16),rgba(217,196,168,.26)); color:var(--mc-walnut); display:flex; align-items:center; justify-content:center; font:700 14px Inter,sans-serif; }
.mc-vr-steps strong{ display:block; color:#1a120b; font:700 15px Inter,sans-serif; }
.mc-vr-steps em{ font-style:normal; color:var(--mc-text); font-size:14px; line-height:1.45; }
.mc-vr-cta{ display:flex; gap:12px; flex-wrap:wrap; }
.mc-vr-cta .button{ border-radius:999px; padding:13px 24px; font:600 15px Inter,sans-serif; text-decoration:none; }
.mc-vr-frame{ position:relative; border-radius:28px; overflow:hidden; background:#000; box-shadow:0 44px 90px -42px rgba(40,26,15,.6); }
.repair-video{ display:block; width:100%; height:auto; border-radius:28px; }
.mc-vr-frame::after{ content:""; position:absolute; inset:0; border-radius:28px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); pointer-events:none; }
@media (max-width:860px){ .mc-vr-inner{ grid-template-columns:1fr; } .mc-vr-media{ order:-1; } }

/* ════════════════ SOFT SECTION FADES (Apple-style reveal) ════════════════ */
/* only hide when JS is active (html.mcjs) so a JS failure never hides content */
html.mcjs .reveal-soft{ opacity:0; transform:translateY(20px); filter:blur(6px); transition:opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1), filter .8s ease; }
html.mcjs .reveal-soft.is-in{ opacity:1; transform:none; filter:blur(0); }
.soft-divider{ height:1px; max-width:1180px; margin:0 auto; background:linear-gradient(90deg,transparent,rgba(0,0,0,.08),transparent); }

/* ════════════════ LAG: calm canvases + runway ════════════════ */
.runway-model{ transition:opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1) !important; }
@media (max-width:900px){ #particle-bg, #repair-scene, #hero-phone-canvas{ display:none !important; } }
@media (prefers-reduced-motion: reduce){
  #particle-bg, #repair-scene, #hero-phone-canvas{ display:none !important; }
  .reveal-soft{ opacity:1 !important; transform:none !important; filter:none !important; transition:none !important; }
  .repair-video{ /* poster shown; JS skips autoplay */ }
}

/* Final premium refinement pass: calmer motion, stronger contrast, less visual noise. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(139,94,60,.72);
  outline-offset: 3px;
}

.mc-btn,
.button,
.card-actions a,
.card-actions button,
.repair-service-card,
.department,
.deal-card {
  text-decoration: none;
}

.mc-btn-call,
.header-cta,
.footer-call {
  background: #ffffff !important;
  color: #050505 !important;
  border: 1px solid rgba(5,5,5,.16) !important;
}

.top-contact-bar a,
.footer-actions a {
  color: inherit;
}

.iphone-runway {
  min-height: 310vh;
  overflow: clip;
  background:
    radial-gradient(circle at 72% 38%, rgba(217,196,168,.34), transparent 28%),
    radial-gradient(circle at 58% 56%, rgba(139,94,60,.12), transparent 38%),
    linear-gradient(180deg,#fbf8f2 0%,#ffffff 48%,#f7f3ed 100%);
}

.iphone-runway .runway-sticky {
  grid-template-columns: minmax(280px,.72fr) minmax(420px,1.28fr);
  min-height: calc(100vh - 118px);
}

.iphone-runway .runway-copy {
  position: relative;
  z-index: 4;
}

.iphone-runway .runway-copy h2 {
  max-width: 11ch;
  color: #120d08;
}

.runway-current {
  display: grid;
  gap: 5px;
  margin: 24px 0 12px;
}

.runway-current span {
  color: var(--mc-oak);
  font: 800 12px/1 Inter, system-ui, sans-serif;
  letter-spacing: .12em;
}

.runway-current strong {
  color: #120d08;
  font: 800 clamp(20px,2.8vw,34px)/1 Inter, system-ui, sans-serif;
  letter-spacing: -.03em;
}

.runway-progress {
  width: min(100%, 320px);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(75,47,31,.13);
}

.runway-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#8b5e3c,#1a120b);
  transform: scaleX(var(--runway-progress,0));
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}

.iphone-runway .runway-actions {
  margin-top: 26px;
}

.runway-stack {
  min-height: min(78vh, 760px);
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 1600px;
  overflow: visible;
}

.runway-stack::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, 82vw);
  aspect-ratio: 1.36 / 1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.88), rgba(247,243,237,.34) 42%, transparent 68%),
    radial-gradient(ellipse at 50% 86%, rgba(26,18,11,.18), transparent 48%);
  filter: blur(.2px);
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.runway-stack::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: min(560px, 62vw);
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(26,18,11,.22), transparent 70%);
  filter: blur(18px);
  transform: translateX(-50%) scaleX(calc(.86 + (var(--runway-progress, 0) * .18)));
  opacity: .64;
  pointer-events: none;
}

.runway-model {
  --runway-x: 0px;
  --runway-y: 0px;
  --runway-scale: 1;
  --runway-rotate: 0deg;
  --runway-opacity: 0;
  --runway-blur: 0px;
  left: 50% !important;
  right: auto !important;
  top: 50% !important;
  bottom: auto !important;
  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: var(--runway-opacity) !important;
  filter: blur(var(--runway-blur)) saturate(.96);
  transform:
    translate(-50%, -50%)
    translate3d(var(--runway-x), var(--runway-y), 0)
    rotate(var(--runway-rotate))
    scale(var(--runway-scale)) !important;
  transform-style: preserve-3d;
  transition:
    opacity .62s ease,
    transform .72s cubic-bezier(.22,.61,.36,1),
    filter .62s ease !important;
}

.runway-model.visible {
  pointer-events: none;
}

.runway-model.settled {
  z-index: 1;
}

.runway-model.active {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto;
  z-index: 20;
}

.runway-model.after {
  z-index: 2;
}

.runway-model img {
  display: block;
  width: min(360px, 29vw) !important;
  max-height: min(620px, 72vh) !important;
  object-fit: contain;
  transform: translate3d(0,0,24px);
  filter: drop-shadow(0 42px 34px rgba(26,18,11,.28)) !important;
  transition: transform .72s cubic-bezier(.22,.61,.36,1), filter .62s ease;
}

.runway-model.active img {
  transform: translate3d(0,-10px,88px) scale(1.06);
  filter: drop-shadow(0 52px 40px rgba(26,18,11,.32)) !important;
}

.runway-model div {
  display: none !important;
}

.runway-model span {
  color: #fff !important;
  background: #1a120b !important;
}

.runway-model h3 {
  color: #120d08;
  font-size: clamp(36px,4.8vw,72px) !important;
  letter-spacing: -.055em;
}

.runway-model p {
  color: #6e6258 !important;
  font-size: 15px;
}

.runway-card-link {
  position: absolute;
  inset: -18px;
  z-index: 4;
  display: block;
  border-radius: 40px;
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.runway-card-link:focus-visible {
  outline: 3px solid rgba(139,94,60,.48);
  outline-offset: 8px;
}

.runway-carousel-controls {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4vh, 40px);
  z-index: 30;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.runway-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(26,18,11,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #1a120b;
  box-shadow: 0 16px 36px rgba(26,18,11,.12);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.runway-arrow::before {
  display: block;
  font: 600 28px/1 Inter, system-ui, sans-serif;
  transform: translateY(-1px);
}

.runway-arrow.prev::before {
  content: "\2039";
}

.runway-arrow.next::before {
  content: "\203A";
}

.runway-arrow:hover,
.runway-arrow:focus-visible {
  background: #1a120b;
  border-color: #1a120b;
  color: #fff;
  transform: translateY(-2px);
  outline: none;
}

.repair-video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050505 url("videos/broken-screen-repair-poster.jpg") center / cover no-repeat;
}

.mc-vr-frame {
  isolation: isolate;
}

.mc-vr-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.22));
}

.mc-vr-frame::after {
  z-index: 2;
}

.mc-video-repair + .mc-product-story {
  padding-top: clamp(38px, 6vw, 72px);
}

@media (max-width: 900px) {
  .iphone-runway {
    min-height: auto;
    overflow: visible;
  }

  .iphone-runway .runway-sticky {
    grid-template-columns: 1fr;
  }

  .runway-current,
  .runway-progress {
    display: none;
  }

  .runway-stack::before {
    display: none;
  }

  .runway-stack::after,
  .runway-carousel-controls {
    display: none;
  }

  .runway-stack {
    min-height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 18px;
    margin-inline: calc(var(--page-pad, 22px) * -1);
    padding: 12px var(--page-pad, 22px) 42px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .runway-model,
  .runway-model.visible,
  .runway-model.settled,
  .runway-model.active {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    display: grid !important;
    flex: 0 0 min(74vw, 340px);
    width: min(74vw, 340px) !important;
    grid-template-columns: 1fr !important;
    justify-items: center;
    align-content: end;
    gap: 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
    min-height: 430px !important;
    scroll-snap-align: center;
  }

  .runway-model img {
    width: min(260px, 58vw) !important;
    max-height: 350px !important;
    transform: none !important;
  }

  .runway-model div {
    display: grid !important;
    justify-items: center;
    gap: 5px;
    padding: 0;
    border-left: 0;
    background: transparent;
    backdrop-filter: none;
    text-align: center;
  }

  .runway-model span {
    display: none;
  }

  .runway-model h3 {
    max-width: 14ch;
    font-size: 23px !important;
    letter-spacing: -.03em;
  }

  .runway-model p {
    font-size: 13px;
  }

  .runway-card-link {
    inset: 0;
    border-radius: 0;
  }

  .mc-video-repair {
    padding-top: 42px;
    padding-bottom: 54px;
  }
}

.footer-link-button {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e8ebff;
  font: 700 1rem/1.35 Inter, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.cookie-bar {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 9999;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 1080px;
  margin-inline: auto;
  padding: 14px;
  border: 1px solid rgba(26,18,11,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 70px rgba(26,18,11,.2);
  color: #1a120b;
  backdrop-filter: blur(18px);
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
}

.show-cookie-bar .cookie-bar {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.cookie-bar strong {
  display: block;
  margin-bottom: 4px;
  font: 800 15px/1.1 Inter, system-ui, sans-serif;
}

.cookie-bar p {
  margin: 0;
  max-width: 66ch;
  color: #5c5148;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-actions a,
.cookie-actions button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  font: 800 13px/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.cookie-actions a {
  display: inline-flex;
  align-items: center;
  color: #1a120b;
  background: #f3eee6;
}

.cookie-actions button {
  border: 1px solid rgba(26,18,11,.14);
  background: #fff;
  color: #1a120b;
  cursor: pointer;
}

.cookie-actions button[data-cookie-choice="all"] {
  border-color: #050505;
  background: #050505;
  color: #fff;
}

.policy-page {
  background: #fbf8f2;
}

.policy-wrap {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0 clamp(60px, 9vw, 110px);
}

.policy-card {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(26,18,11,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 30px 90px rgba(26,18,11,.08);
}

.policy-card h2 {
  margin: 0 0 10px;
  color: #120d08;
  font: 850 clamp(24px, 3vw, 36px)/1.08 Inter, system-ui, sans-serif;
  letter-spacing: -.03em;
}

.policy-card h3 {
  margin: 0 0 8px;
  color: #120d08;
  font: 800 18px/1.2 Inter, system-ui, sans-serif;
}

.policy-card p,
.policy-card li {
  color: #5c5148;
  font-size: 16px;
  line-height: 1.65;
}

.policy-card p {
  margin: 0;
}

.policy-card ul {
  margin: 0;
  padding-left: 20px;
}

.policy-card section {
  display: grid;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(26,18,11,.08);
}

.policy-card section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #8b5e3c;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

@media (max-width: 760px) {
  .cookie-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions a,
  .cookie-actions button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .policy-wrap {
    width: min(100% - 24px, 980px);
    padding-top: 24px;
  }

  .policy-card {
    padding: 20px;
    border-radius: 8px;
  }

  .policy-card p,
  .policy-card li {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-bar {
    transition: none;
  }
}

.product-art.cutout-art {
  background: transparent !important;
  overflow: visible !important;
}

.product-art.cutout-art::before {
  display: none !important;
}

.product-art.cutout-art .product-photo {
  width: min(88%, 330px);
  filter: drop-shadow(0 24px 26px rgba(15, 23, 42, .18));
}

.catalog-page .product-art.cutout-art {
  min-height: 300px;
  height: 300px;
}

.catalog-page .product-art.cutout-art .product-photo {
  height: 270px;
  max-height: 270px;
}

@media (max-width: 760px) {
  .catalog-page .product-art.cutout-art {
    min-height: 246px;
    height: 246px;
  }

  .catalog-page .product-art.cutout-art .product-photo {
    height: 224px;
    max-height: 224px;
  }
}

/* ════════════════════════════════════════════════════════════
   FIX PASS — hero buttons visible on black + mobile refinement
   ════════════════════════════════════════════════════════════ */
/* Hero CTAs were black-on-black (invisible) — make each readable on the dark hero */
.mc-hero .mc-hero-cta .mc-btn-call{ background:#ffffff !important; color:#1a120b !important; border:none !important; }
.mc-hero .mc-hero-cta .mc-btn-primary{ background:linear-gradient(135deg,#8b5e3c,#4b2f1f) !important; color:#ffffff !important; border:none !important; }
.mc-hero .mc-hero-cta .mc-btn-ghost{ background:rgba(255,255,255,.14) !important; color:#ffffff !important; border:1px solid rgba(217,196,168,.55) !important; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }

@media (max-width:720px){
  /* one search only: keep the header search, drop the hero duplicate */
  .mc-search-hero{ display:none !important; }
  /* hero: full-width readable stacked buttons */
  .mc-hero-cta{ width:100%; display:flex; flex-direction:column; gap:10px; }
  .mc-hero-cta .mc-btn{ width:100%; }
  .mc-hero{ padding-bottom:40px !important; }
  /* remove the big empty gaps: tighten every section */
  main > section{ padding-top:44px !important; padding-bottom:44px !important; }
  /* product + repair grids: clean compact 2-up cards (was one giant column) */
  .product-grid, .featured-grid, .repair-command-grid{ grid-template-columns:1fr 1fr !important; gap:12px !important; margin-top:16px !important; }
  .product-card{ border-radius:16px !important; }
  .product-art{ min-height:0 !important; }
  .product-photo, .product-photo.large{ height:124px !important; width:auto !important; max-width:80% !important; }
  /* trim featured list length on mobile (show 6) */
  #featured-products .product-card:nth-child(n+7){ display:none !important; }
  .store-lanes{ grid-template-columns:1fr !important; }
  /* compact, premium cookie bar */
  .cookie-bar{ left:10px !important; right:10px !important; bottom:10px !important; padding:16px !important; border-radius:20px !important; }
  .cookie-actions{ display:grid !important; gap:8px !important; }
}
/* keep a compact 2-up store grid down to small phones; only collapse to a
   single column on the very narrowest devices */
@media (max-width:359px){
  .product-grid, .featured-grid{ grid-template-columns:1fr !important; }
  .product-photo, .product-photo.large{ height:158px !important; }
}

/* ════════════════════════════════════════════════════════════
   HERO OPENING — phones fan out, then the stage fades into the
   background and settles into its resting look (transform left to
   the scroll/tilt logic so this never fights it).
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference){
  #mc-hero-stage{ animation: mcHeroIntro 1.25s cubic-bezier(.22,.61,.36,1) both; }
  @keyframes mcHeroIntro{
    0%   { opacity:0; filter:saturate(.7) brightness(.85); }
    55%  { opacity:1; }
    100% { opacity:1; filter:saturate(1) brightness(1); }
  }
}
/* product art glow: drop the leftover blue from the conic sweep */
.product-art::before{
  background: conic-gradient(from 90deg, transparent, rgba(217,196,168,.38), transparent, rgba(139,94,60,.20), transparent) !important;
}

/* ════════════════════════════════════════════════════════════
   MOBILE: featured grid = compact teaser cards. The full variant
   picker (colors/storage/specs) lives on the product detail view,
   so the homepage browse grid stays short and scannable.
   ════════════════════════════════════════════════════════════ */
@media (max-width:720px){
  #featured-products .product-specs,
  #featured-products .stock-options{ display:none !important; }
  #featured-products .product-body{ padding:12px 13px !important; gap:6px !important; }
  #featured-products .product-body > span{
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    font-size:12.5px !important; line-height:1.45 !important;
  }
  #featured-products .product-art{ height:152px !important; min-height:0 !important; }
  #featured-products .card-actions{ flex-direction:column !important; gap:8px !important; margin-top:4px !important; }
  #featured-products .card-actions > *{ width:100% !important; }
}

/* ════════════════════════════════════════════════════════════
   CLEANUP: kill leftover neon-lime + navy from the pre-oak theme
   ════════════════════════════════════════════════════════════ */
/* logo had a neon-lime glow ring (182,255,43) — swap for a soft oak halo */
.brand-logo{ box-shadow:0 0 0 4px rgba(139,94,60,.14) !important; }
/* mobile top contact bar: was oak + navy w/ dark text (low contrast) */
.top-contact-bar a{ color:#ffffff !important; border:none !important; }
.top-contact-bar a:nth-of-type(1){ background:linear-gradient(135deg,#8b5e3c,#a06c44) !important; }
.top-contact-bar a:nth-of-type(2){ background:#3a2618 !important; }

/* store-lane category tiles: single column + tighter on mobile (kill empty top) */
@media (max-width:720px){
  #inspected-phones .store-lanes{ grid-template-columns:1fr !important; gap:12px !important; }
  #inspected-phones .store-lanes a{ min-height:0 !important; padding:18px 18px !important; }
}
