/* ============================================================
   Yorkshire Phone Repair — shared stylesheet
   Blue / white scheme matched to the Yorkshire PC Repair sign
   ============================================================ */

:root {
  --blue: #0e7ad3;
  --blue-dark: #0a5da6;
  --blue-deep: #073f72;
  --sky: #3db1ff;
  --sky-soft: #9fd6ff;
  --navy: #071c30;
  --navy-2: #0b2a47;
  --ink: #10283d;
  --muted: #5b7288;
  --bg: #f4f9fe;
  --white: #ffffff;
  --line: #dcebf8;
  --radius: 20px;
  --shadow: 0 18px 45px -18px rgba(7, 63, 114, 0.28);
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;        /* no sideways scroll / blank margin, keeps sticky nav working */
  max-width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

section { padding: 90px 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: #e6f3ff;
  border: 1px solid #c9e6ff;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(61, 177, 255, 0.25);
}

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 640px; font-size: 1.05rem; }

.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 55%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(14, 122, 211, 0.55);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -10px rgba(14, 122, 211, 0.6); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-3px); }

.btn-outline {
  background: #fff;
  color: var(--blue-dark);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover { background: #eaf5ff; transform: translateY(-3px); }

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfe6fa;
  font-size: 0.85rem;
  padding: 9px 0;
}

.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: #cfe6fa; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { display: flex; gap: 22px; }
.topbar .tb-note { color: var(--sky-soft); font-weight: 600; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sky), var(--blue-dark));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -6px rgba(14, 122, 211, 0.5);
  flex-shrink: 0;
}

/* real logo image (dropped in as images/logo.png) replaces the icon box */
.brand-mark .brand-logo { display: none; }
.brand-mark.has-logo {
  width: auto; height: 52px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  place-items: center;
}
.brand-mark.has-logo .brand-logo { display: block; height: 52px; width: auto; border-radius: 11px; }
.brand-mark.has-logo .mark-fallback { display: none; }

.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2; color: var(--navy); }
.brand-text span { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sky), var(--blue));
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--blue); }

.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; font-weight: 700; font-size: 0.9rem; padding: 11px 22px; border-radius: 999px; box-shadow: 0 10px 22px -8px rgba(14,122,211,.55); transition: transform .2s, background .2s; }
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-2px); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: 0.3s; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(61, 177, 255, 0.35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(61, 177, 255, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 45%, var(--blue-deep) 100%);
  color: #fff;
  padding: 100px 0 120px;
}

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }

.hero .kicker { background: rgba(61, 177, 255, 0.14); border-color: rgba(61, 177, 255, 0.35); color: var(--sky-soft); }

.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin-bottom: 22px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--sky-soft), var(--sky) 60%, #7cc8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead { color: #bdd8ee; font-size: 1.12rem; max-width: 540px; margin-bottom: 34px; }

.hero-specialisms { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-specialisms li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.86rem; font-weight: 600; color: #cfe6fa;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 9px 16px; border-radius: 999px;
}
.hero-specialisms li svg { color: var(--sky); }
.hero-specialisms li.hot {
  color: #fff;
  background: linear-gradient(135deg, rgba(61,177,255,0.28), rgba(14,122,211,0.28));
  border-color: rgba(61,177,255,0.6);
  box-shadow: 0 0 0 3px rgba(61,177,255,0.12);
}
.hero-specialisms li.hot svg { color: #9fd6ff; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-trust { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-trust .t { display: flex; flex-direction: column; }
.hero-trust .t b { font-family: var(--font-head); font-size: 1.5rem; color: #fff; }
.hero-trust .t small { color: #9dbdd8; font-size: 0.82rem; letter-spacing: 0.04em; }
.hero-trust .stars { color: #ffc93d; letter-spacing: 2px; }

/* floating phone visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual svg { width: 100%; max-width: 520px; height: auto; }

.float-a { animation: floatA 6s ease-in-out infinite; }
.float-b { animation: floatB 7s ease-in-out infinite; }
.float-c { animation: floatA 8s ease-in-out infinite reverse; }

@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(14px); } }

.pulse-ring { animation: pulse 3.2s ease-out infinite; transform-origin: center; }
@keyframes pulse { 0% { opacity: .7; transform: scale(.85);} 70% { opacity: 0; transform: scale(1.18);} 100% { opacity: 0; transform: scale(1.18);} }

/* ---------- brand marquee ---------- */
.marquee-section { padding: 46px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.marquee-label { text-align: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }

.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track { display: flex; gap: 18px; width: max-content; animation: scrollX 34s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 40s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee + .marquee { margin-top: 18px; }

@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 28px;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color .2s, box-shadow .2s;
}
.brand-chip:hover { border-color: var(--sky); box-shadow: 0 8px 20px -10px rgba(14,122,211,.4); }
.brand-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--blue)); }

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color .3s;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #bfe0fa; }

.card .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8f4ff, #d3eaff);
  display: grid; place-items: center;
  margin-bottom: 20px;
}

.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 0.9rem; color: var(--blue); }
.card .card-link:hover { gap: 10px; }
.card .card-link { transition: gap .2s; }

/* ---------- latest phones (dark) ---------- */
.dark-section {
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(61,177,255,.22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}

.dark-section .section-sub { color: #a9c6de; }
.dark-section .kicker { background: rgba(61,177,255,.14); border-color: rgba(61,177,255,.35); color: var(--sky-soft); }

.phones-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 56px; }

.phone-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 38px 28px 30px;
  text-align: center;
  transition: transform .3s, border-color .3s, background .3s;
}
.phone-card:hover { transform: translateY(-8px); border-color: rgba(61,177,255,.5); background: rgba(255,255,255,.07); }
.phone-card svg { width: 150px; height: auto; margin: 0 auto 24px; filter: drop-shadow(0 24px 30px rgba(0,0,0,.45)); }
.phone-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.phone-card p { color: #9dbdd8; font-size: 0.88rem; }
.phone-card .tag { display: inline-block; margin-top: 14px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-soft); border: 1px solid rgba(61,177,255,.4); border-radius: 999px; padding: 5px 14px; }

/* ---------- devices we repair ---------- */
.device-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 54px; }
.device-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 30px 24px 26px;
  text-align: center;
  transition: transform .3s, border-color .3s, background .3s;
}
.device-card:hover { transform: translateY(-8px); border-color: rgba(61,177,255,.5); background: rgba(255,255,255,.07); }
.device-media {
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.device-media svg, .device-media img {
  height: 220px; width: auto; max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.45));
  border-radius: 14px;
}
.device-card h3 { color: #fff; font-size: 1.08rem; margin-bottom: 6px; }
.device-card p { color: #9dbdd8; font-size: .86rem; }
.device-card .tag { display: inline-block; margin-top: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--sky-soft); border: 1px solid rgba(61,177,255,.4); border-radius: 999px; padding: 5px 14px; }

/* ---------- consoles ---------- */
.console-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 54px; }
.console-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 34px 30px;
  transition: transform .3s, border-color .3s, background .3s;
}
.console-card:hover { transform: translateY(-6px); border-color: rgba(61,177,255,.5); background: rgba(255,255,255,.07); }
.console-card .console-icon {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--sky), var(--blue-dark));
  display: grid; place-items: center;
}
.console-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.console-card .models { color: #9dbdd8; font-size: .9rem; margin-bottom: 16px; }
.console-card .console-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.console-card .console-tags span {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sky-soft); border: 1px solid rgba(61,177,255,.4); border-radius: 999px; padding: 5px 12px;
}

/* ---------- accessories catalogue ---------- */
.acc-note {
  display: inline-flex; align-items: center; gap: 10px;
  background: #e6f3ff; border: 1px solid #c9e6ff; color: var(--blue-dark);
  border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: .9rem;
  margin-top: 22px;
}
.acc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.acc-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.acc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #bfe0fa; }
.acc-card .acc-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px;
  background: linear-gradient(135deg, #e8f4ff, #d3eaff); display: grid; place-items: center;
}
.acc-card b { font-family: var(--font-head); font-size: 1.02rem; color: var(--navy); display: block; }
.acc-card span { font-size: .84rem; color: var(--muted); display: block; margin-top: 5px; }

/* ---------- story / about ---------- */
.story { background: var(--bg); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.storefront-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 60px -22px rgba(7, 63, 114, 0.45);
  border: 6px solid #fff;
}

.storefront-frame img, .storefront-frame svg { width: 100%; display: block; }

.storefront-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(7, 28, 48, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,.15);
}
.storefront-badge b { font-family: var(--font-head); display: block; font-size: 0.95rem; }
.storefront-badge span { color: var(--sky-soft); }

.story-body p { color: var(--muted); margin-bottom: 18px; font-size: 1.02rem; }
.story-body p b { color: var(--ink); }

.story-points { display: grid; gap: 14px; margin: 26px 0 34px; }
.story-points li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.story-points li svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- steps ---------- */
.steps { counter-reset: step; }
.step-card { position: relative; padding-top: 30px; }
.step-num {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 800;
  background: linear-gradient(180deg, #cfe9ff, #eaf5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

/* ---------- reviews ---------- */
.review-card { background: var(--white); }
.review-stars { color: #ffb400; letter-spacing: 3px; margin-bottom: 14px; font-size: 1.05rem; }
.review-card p { color: var(--ink); font-size: 0.98rem; font-style: italic; }
.review-card .who { margin-top: 18px; font-weight: 700; font-style: normal; color: var(--blue-dark); font-size: 0.9rem; }
.review-card .who small { display: block; color: var(--muted); font-weight: 500; }

/* ---------- contact ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: stretch; }

.contact-list { display: grid; gap: 18px; margin-top: 30px; }
.contact-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 22px 24px;
  transition: transform .25s, box-shadow .25s;
}
.contact-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-item .ci-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--sky), var(--blue-dark));
  display: grid; place-items: center;
}
.contact-item h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-item p, .contact-item a { color: var(--muted); font-size: 0.95rem; }
.contact-item a:hover { color: var(--blue); }

.map-frame { position: relative; border-radius: 22px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); min-height: 420px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* shown when the map iframe fails to load (blocked embeds etc.) */
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 30px;
  background:
    radial-gradient(500px 300px at 70% 20%, rgba(61,177,255,.28), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #cfe6fa;
}
.map-fallback b { font-family: var(--font-head); color: #fff; font-size: 1.15rem; }

.hours { margin-top: 18px; background: var(--navy); color: #cfe6fa; border-radius: 18px; padding: 22px 24px; }
.hours h4 { color: #fff; margin-bottom: 10px; }
.hours .row { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.hours .row:last-child { border-bottom: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(61,177,255,.4), transparent 65%),
    linear-gradient(120deg, var(--blue-deep), var(--blue) 70%, var(--sky));
  color: #fff;
  border-radius: 28px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  box-shadow: 0 30px 60px -20px rgba(14, 122, 211, 0.5);
}

.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.cta-band p { color: #d7ecff; max-width: 520px; }
.cta-band .btn-primary { background: #fff; color: var(--blue-dark); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(61,177,255,.35), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--blue-deep));
  color: #fff;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 16px; }
.page-hero p { color: #bdd8ee; max-width: 640px; font-size: 1.1rem; }
.page-hero .kicker { background: rgba(61,177,255,.14); border-color: rgba(61,177,255,.35); color: var(--sky-soft); }

/* ---------- brands wall (services page) ---------- */
.brand-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.brand-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 20px; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.brand-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #bfe0fa; }
.brand-tile b { font-family: var(--font-head); font-size: 1.1rem; display: block; color: var(--navy); }
.brand-tile span { font-size: 0.8rem; color: var(--muted); display: block; margin-top: 5px; }

/* ---------- case studies ---------- */
.case { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.case.flip .case-visual { order: 2; }

.case-visual {
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(400px 300px at 70% 20%, rgba(61,177,255,.3), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
  padding: 44px;
  display: flex; justify-content: center;
  box-shadow: 0 30px 60px -24px rgba(7, 63, 114, 0.5);
}
.case-visual svg { width: 100%; max-width: 300px; height: auto; }

.case-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 22px; }
.case-meta span {
  font-size: 0.76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: #e6f3ff; color: var(--blue-dark); border: 1px solid #c9e6ff;
  padding: 6px 14px; border-radius: 999px;
}

.case h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.case p { color: var(--muted); margin-bottom: 16px; }
.case blockquote {
  border-left: 4px solid var(--sky);
  background: var(--bg);
  border-radius: 0 16px 16px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--ink);
}
.case blockquote footer { font-style: normal; font-weight: 700; color: var(--blue-dark); margin-top: 10px; font-size: 0.9rem; }

.case-divider { border: none; border-top: 1px solid var(--line); margin: 90px 0; }

.case-stats { display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.case-stats .s b { font-family: var(--font-head); font-size: 1.5rem; color: var(--blue); display: block; }
.case-stats .s small { color: var(--muted); }

/* ---------- footer ---------- */
footer { background: var(--navy); color: #9dbdd8; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 50px; }
footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
footer li { margin-bottom: 10px; font-size: 0.92rem; }
footer a:hover { color: #fff; }
footer .brand-text { color: #fff; }
footer .brand-text span { color: var(--sky-soft); }
footer .about-blurb { font-size: 0.92rem; margin-top: 16px; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.84rem; }
.footer-bottom a { color: var(--sky-soft); }

/* ---------- entrance animation ----------
   Content is ALWAYS visible: no opacity:0, no JS/scroll dependency. This makes
   it impossible for any section to render as a blank gap on mobile or when
   zoomed. Desktop keeps a subtle one-time fade-up that always ENDS fully
   visible (animation-fill-mode both), so nothing can get stuck hidden. */
.reveal { opacity: 1; transform: none; }

@media (min-width: 821px) and (prefers-reduced-motion: no-preference) {
  .reveal { animation: revealUp .6s ease both; }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .story-grid, .contact-grid, .case, .case.flip { grid-template-columns: 1fr; }
  .case.flip .case-visual { order: 0; }
  .grid-3, .phones-row { grid-template-columns: 1fr 1fr; }
  .grid-4, .brand-wall, .device-row, .console-grid, .acc-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { margin-top: 10px; }
}

@media (max-width: 700px) {
  section { padding: 64px 0; }
  .grid-3, .grid-2, .phones-row, .console-grid { grid-template-columns: 1fr; }
  .acc-grid { grid-template-columns: 1fr 1fr; }
  .device-row { grid-template-columns: 1fr 1fr; }
  .topbar .tb-right { display: none; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    background: #fff;
    padding: 28px 6%;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -20px rgba(7,63,114,.25);
    transform: translateY(calc(-100% - 120px));
    visibility: hidden;
    transition: transform .35s ease, visibility .35s;
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .cta-band { padding: 44px 28px; }
}
