/* The three deep-dive pages — /product, /educator and /full, all served from
   journey.html.

   The landing page does not use this file: it is painted by the design tool's
   own stylesheet in _ds/. So everything here belongs to journey.html alone,
   and the two only have to agree on the palette, which is the block of custom
   properties immediately below.

   Order of the file: tokens, then base elements, then components roughly in
   the order they appear down the page, then the responsive overrides last. */

:root {
  --bg: #ffffff;
  --bg-2: #f4f4f9;
  --ink: #17181f;
  --muted: rgba(23, 24, 31, 0.62);
  --faint: rgba(23, 24, 31, 0.42);
  --blue: #7263c9;
  --blue-2: #5e50b5;
  --sky: #7263c9;
  --live: #17a34a;
  --grad: linear-gradient(110deg, #7263c9 0%, #4c3fa0 100%);
  --glass: #ffffff;
  --glass-2: #f4f4f9;
  --glass-brd: rgba(23, 24, 31, 0.12);
  --btn-ink: #17181f;
  --mono: "Inter", system-ui, sans-serif;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- depth blobs (disabled in the light/technical theme) ---------- */
.aurora { display: none; }
.aurora__blob {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
  will-change: transform;
}
.aurora__blob--1 { background: radial-gradient(circle, #7263c9, transparent 62%); top: -12%; left: -8%; animation: drift1 22s ease-in-out infinite; }
.aurora__blob--2 { background: radial-gradient(circle, #4c3fa0, transparent 62%); top: 30%; right: -12%; animation: drift2 26s ease-in-out infinite; }
.aurora__blob--3 { background: radial-gradient(circle, #7263c9, transparent 62%); bottom: -14%; left: 18%; animation: drift3 30s ease-in-out infinite; }
.aurora__blob--4 { background: radial-gradient(circle, #3f3486, transparent 62%); top: 8%; left: 42%; width: 42vw; height: 42vw; animation: drift4 24s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(18vw, 12vh) scale(1.2); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.1); } 50% { transform: translate(-14vw, 16vh) scale(0.9); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(12vw, -14vh) scale(1.25); } }
@keyframes drift4 { 0%,100% { transform: translate(0,0) scale(0.9); } 50% { transform: translate(-16vw, -10vh) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .aurora__blob { animation: none; } }

main { position: relative; z-index: 2; }

/* ---------- cursor + progress ---------- */
.cursor-glow { display: none; }
.cursor-glow-unused {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(114, 99, 201, 0.55);
  background: rgba(114, 99, 201, 0.08);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width .25s, height .25s, opacity .3s, border-color .3s, background .3s;
}
.cursor-glow-unused.big { width: 44px; height: 44px; border-color: rgba(114, 99, 201, 0.85); background: rgba(114, 99, 201, 0.12); }


.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--blue);
  z-index: 9998;
  box-shadow: 0 0 12px rgba(114, 99, 201, .55);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  transition: padding .3s, background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  padding: 14px clamp(20px, 5vw, 60px);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-brd);
}
.nav__brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__brand span { color: var(--blue); }
.nav__logo {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: block;
  border: 1.5px solid var(--glass-brd);
  transition: transform .3s, border-color .3s;
}
.nav__brand:hover .nav__logo { transform: scale(1.06) rotate(-2deg); border-color: var(--blue); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color .25s;
}
.nav__links a::before {
  content: "> ";
  color: var(--blue);
  opacity: 0;
  transition: opacity .2s;
}
.nav__links a:hover::before { opacity: 1; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .3s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__lang {
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 600;
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s, transform .2s, color .3s;
}
.nav__lang:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 3px rgba(114, 99, 201, .12);
  transform: translateY(-1px);
}
.nav__cta {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: border-color .3s, box-shadow .3s, transform .2s, background .3s;
}
.nav__cta:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 26px -10px rgba(114, 99, 201, .5);
  transform: translateY(-1px);
}
@media (max-width: 720px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(20px, 5vw, 60px) 80px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; }
}

/* ---------- hero portrait ---------- */
.hero__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: min(360px, 78vw);
  aspect-ratio: 1;
}
.hero__photo-ring {
  position: absolute;
  inset: -14px;
  border-radius: 20px;
  background: conic-gradient(from 0deg, #7263c9, #17181f, #7263c9);
  filter: blur(16px);
  opacity: 0.32;
  animation: spin 8s linear infinite;
  z-index: 0;
}
.hero__photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  background: linear-gradient(160deg, #f4f5f8 0%, #ffffff 100%);
  box-shadow: 0 24px 60px -30px rgba(114, 99, 201, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floaty 6s ease-in-out infinite;
}
.hero__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero__photo-fallback {
  display: none;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__photo-frame.is-empty .hero__photo-fallback { display: block; }
.hero__photo-badge {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--glass-brd);
  white-space: nowrap;
  box-shadow: 0 8px 24px -14px rgba(0,0,0,.25);
}
.hero__photo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 10px var(--live);
  animation: pulse 2s infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero__eyebrow {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 26px;
}
.hero__eyebrow::before { content: "> "; }
.hero__title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.7rem, 10.5vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__sub {
  max-width: 620px;
  margin-top: 32px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
}
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- persona switcher ---------- */
.persona { margin-top: 34px; }
.persona__label {
  display: block;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.persona__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.persona__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  transition: transform .25s, border-color .3s, box-shadow .3s, background .3s;
}
.persona__btn:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 16px 40px -22px rgba(114, 99, 201, 0.45);
}
.persona__btn[data-persona="edu"]:hover {
  border-color: var(--ink);
  box-shadow: 0 16px 40px -22px rgba(23, 24, 31, 0.25);
}
.persona__btn-icon { font-size: 1.6rem; line-height: 1; }
.persona__btn-text { display: flex; flex-direction: column; }
.persona__btn-text strong { font-family: "Inter", system-ui, sans-serif; font-size: 1.02rem; font-weight: 700; }
.persona__btn-text em { font-style: normal; font-size: .78rem; color: var(--faint); }
@media (max-width: 480px) { .persona__btn { flex: 1; } }

.btn {
  font-family: var(--mono);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 6px;
  transition: transform .2s, box-shadow .3s, background .3s, border-color .3s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border: 1px solid var(--ink);
}
.btn--primary:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 16px 40px -14px rgba(114, 99, 201, .5); }
.btn--ghost {
  border: 1px solid var(--glass-brd);
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--bg-2); transform: translateY(-3px); }

/* book a call — blue outline tint */
.btn--book {
  background: rgba(114, 99, 201, 0.07);
  color: var(--ink);
  border: 1px solid rgba(114, 99, 201, 0.4);
}
.btn--book:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  background: rgba(114, 99, 201, 0.12);
}
/* download CV — plain outline */
.btn--cv {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--glass-brd);
}
.btn--cv:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  background: var(--bg-2);
}
.btn__icon { font-size: 1.05rem; line-height: 1; }
/* coming-soon (URL not set yet) */
.btn--soon {
  opacity: .55;
  cursor: default;
  border-style: dashed !important;
  box-shadow: none !important;
}
.btn--soon:hover { transform: none; box-shadow: none !important; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 22px;
  margin-top: 60px;
  max-width: 640px;
}
.stat { border-left: 1px solid var(--glass-brd); padding-left: 16px; }
.stat__num {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--faint);
}
@media (max-width: 620px) { .hero__stats { grid-template-columns: repeat(2, 1fr); } }

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--blue), transparent);
  animation: scrollpulse 2s infinite;
}
@keyframes scrollpulse { 0%,100%{opacity:.3; transform:scaleY(.6)} 50%{opacity:1; transform:scaleY(1)} }

/* ---------- generic section ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 150px) clamp(20px, 5vw, 60px);
}
.section__head { margin-bottom: 60px; }
.section__index {
  font-family: var(--mono);
  color: var(--blue);
  font-size: .84rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.section__index::before { content: "> "; }
.section__title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ---------- about ---------- */
.about__grid { display: grid; gap: 50px; }
.about__lead { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--muted); max-width: 860px; }
.about__lead strong { color: var(--ink); }
.about__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .about__cards { grid-template-columns: 1fr; } }

.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 10px;
  padding: 28px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s;
  transform-style: preserve-3d;
}
.glass::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  border-top-right-radius: 10px;
  opacity: .4;
  transition: opacity .3s;
  pointer-events: none;
}
.glass:hover {
  border-color: rgba(114, 99, 201, .45);
  box-shadow: 0 20px 50px -26px rgba(114, 99, 201, .3);
}
.glass:hover::before { opacity: 1; }
.about__chapter {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.glass h3 { font-family: "Inter", system-ui, sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; }
.glass p { color: var(--muted); font-size: .98rem; }

/* ---------- section lead ---------- */
.section__lead {
  margin-top: 18px;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- products ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 820px) { .products { grid-template-columns: 1fr; } }

.prod {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 26px;
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  border-radius: 10px;
  background: var(--glass);
  transition: border-color .3s, box-shadow .35s;
}
.prod:hover { border-color: rgba(114, 99, 201, .4); box-shadow: 0 20px 50px -30px rgba(114, 99, 201, .28); }
.prod::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s;
}
.prod:hover::before { transform: scaleY(1); }
.prod--featured { grid-column: 1 / -1; }

/* card background image (e.g. Upwork Top Rated Plus) */
.prod--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.prod--bg > * { position: relative; z-index: 1; }
.prod--featured .prod__what { font-size: 1.12rem; }

.prod__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.prod__kind {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  padding: 5px 12px;
  border: 1px solid rgba(114, 99, 201, .35);
  border-radius: 6px;
  background: rgba(114, 99, 201, .06);
}
.prod__date { font-family: var(--mono); font-size: .78rem; color: var(--faint); white-space: nowrap; }
.prod__name {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.prod__role { color: var(--blue); font-size: .9rem; margin-top: 2px; }
.prod__what { color: var(--muted); margin-top: 14px; font-size: 1rem; }

.prod__gallery {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.prod__shot {
  flex: 0 0 auto;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  line-height: 0;
  transition: transform .25s, border-color .3s, box-shadow .3s;
}
.prod__shot img {
  width: 210px;
  height: 132px;
  object-fit: cover;
  display: block;
}
.prod__shot:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 14px 34px -18px rgba(114, 99, 201, 0.4);
}
.prod--featured .prod__shot img { width: 236px; height: 148px; }

/* single image → show it in full (uncropped), e.g. the Top Rated Plus profile */
.prod__gallery--single { display: block; }
.prod__gallery--single .prod__shot { width: 100%; max-width: 560px; }
.prod__gallery--single .prod__shot img { width: 100%; height: auto; }
@media (max-width: 560px) { .prod__shot img { width: 168px; height: 106px; } }

/* ---------- inline video (constrained, centered) ---------- */
.prod__video {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 20px auto 4px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--glass-brd);
  background: var(--bg-2);
  cursor: pointer;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.2);
}
.prod__video--dark {
  background:
    radial-gradient(circle at 28% 30%, rgba(114, 99, 201, 0.14), transparent 55%),
    radial-gradient(circle at 72% 72%, rgba(114, 99, 201, 0.1), transparent 55%),
    var(--bg-2);
}
.prod__video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s, filter .3s;
}
.prod__video:hover .prod__video-poster { transform: scale(1.05); filter: brightness(0.85); }
.prod__video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.3rem;
  padding-left: 5px;
  background: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  transition: transform .25s, box-shadow .3s, background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod__video:hover .prod__video-play { transform: translate(-50%, -50%) scale(1.12); background: var(--blue); }
.prod__video iframe,
.prod__video video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; object-fit: cover; background: #000; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 9, 15, 0.94);
  padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background .25s, border-color .25s, transform .2s;
}
.lightbox__close {
  top: 24px; right: 24px;
  width: 46px; height: 46px;
  font-size: 1.1rem;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox__prev { left: 3vw; }
.lightbox__next { right: 3vw; }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(114, 99, 201, 0.25); border-color: var(--blue); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 600px) {
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }
}

.prod__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .86rem;
  color: var(--muted);
  background: rgba(23, 163, 74, 0.07);
  border: 1px solid rgba(23, 163, 74, 0.32);
}
.prod__note-icon { flex-shrink: 0; }

.prod__section { margin-top: 18px; }
.prod__label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
}
.prod__built { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.prod__built li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: .93rem;
}
.prod__built li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--blue);
}

.prod__impact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.prod__metric {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--ink);
  background: rgba(114, 99, 201, .07);
  border: 1px solid rgba(114, 99, 201, .3);
}

.prod__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-brd);
}
.prod__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job__tag {
  font-family: var(--mono);
  font-size: .72rem;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--glass-brd);
  color: var(--muted);
}
.prod__cta {
  font-family: var(--mono);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 6px;
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  transition: transform .2s, box-shadow .3s, background .3s, border-color .3s;
}
.prod__cta:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 12px 32px -14px rgba(114, 99, 201, .5); }
.prod__cta-arrow { display: inline-block; transition: transform .2s; }
.prod__cta:hover .prod__cta-arrow { transform: translate(2px, -2px); }
.prod__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.prod__cta--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--glass-brd);
  box-shadow: none;
}
.prod__cta--ghost:hover { border-color: var(--ink); background: var(--bg-2); box-shadow: none; }
.prod__cta--soon {
  background: transparent;
  color: var(--faint);
  border: 1px dashed var(--glass-brd);
  box-shadow: none;
  cursor: default;
}
.prod__cta--nda {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(114, 99, 201, 0.3);
  box-shadow: none;
  cursor: default;
}
.prod__lock { filter: grayscale(0.2); }

/* ---------- skills ---------- */
.skills__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) { .skills__grid { grid-template-columns: 1fr; } }
.skillcat {
  position: relative;
  padding: 28px;
  border-radius: 10px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  transition: border-color .3s, box-shadow .3s;
}
.skillcat::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  border-top-right-radius: 10px;
  opacity: .4;
  transition: opacity .3s;
  pointer-events: none;
}
.skillcat:hover { border-color: rgba(114, 99, 201, .4); box-shadow: 0 16px 44px -26px rgba(114, 99, 201, .32); }
.skillcat:hover::before { opacity: 1; }
.skillcat h3 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.skillcat h3::before { content: "> "; color: var(--blue); }
.skillcat__chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--mono);
  font-size: .8rem;
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--glass-2);
  border: 1px solid var(--glass-brd);
  color: var(--muted);
  transition: color .25s, border-color .25s, background .25s, transform .2s;
}
.chip:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact__inner { max-width: 820px; margin: 0 auto; }
.contact__title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 16px 0 20px;
}
.contact__sub { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 0 auto; }
.contact__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.contact__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 50px;
}
@media (max-width: 720px) { .contact__links { grid-template-columns: 1fr; } }
.contact__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  text-align: left;
  transition: transform .25s, border-color .3s, box-shadow .3s;
}
.contact__link::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  border-top-right-radius: 10px;
  opacity: .4;
  transition: opacity .3s;
  pointer-events: none;
}
.contact__link:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 20px 46px -26px rgba(114, 99, 201, .35);
}
.contact__link:hover::before { opacity: 1; }
.contact__link-label {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--faint);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.contact__link-val { font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 1rem; word-break: break-all; }

/* ---------- contact form ---------- */
.contact__form {
  max-width: 560px;
  margin: 44px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.contact__form input,
.contact__form textarea {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--glass-2);
  border: 1px solid var(--glass-brd);
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.contact__form textarea { resize: vertical; min-height: 110px; }
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--faint); }
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(114, 99, 201, 0.04);
  box-shadow: 0 0 0 3px rgba(114, 99, 201, 0.12);
}
.contact__form input:user-invalid,
.contact__form textarea:user-invalid { border-color: #e0294a; }
.form__submit { align-self: flex-start; border: none; cursor: pointer; margin-top: 4px; }
.form__submit:disabled { opacity: .6; cursor: default; }
.form__status { font-size: .92rem; color: var(--muted); min-height: 1.2em; margin: 0; }
.form__status.is-ok { color: var(--live); }
.form__status.is-err { color: #e0294a; }

.footer {
  max-width: var(--max);
  margin: 60px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--glass-brd);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-family: var(--mono);
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: .78rem;
}
.footer__views {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer__views a {
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--glass-brd);
  transition: color .25s, border-color .25s, background .25s;
}
.footer__views a:hover { color: var(--ink); border-color: var(--ink); }
.footer__views a.is-current {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  font-weight: 600;
}

/* ---------- cookie consent ---------- */
.cookie {
  position: fixed;
  z-index: 9997;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  width: min(560px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1);
}
.cookie.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.cookie__text { font-size: .86rem; color: var(--muted); margin: 0; flex: 1; }
.cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie__btn {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .2s, box-shadow .3s, border-color .3s, background .3s;
}
.cookie__btn--accept {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}
.cookie__btn--accept:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.cookie__btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--glass-brd);
}
.cookie__btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 520px) {
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie__actions { justify-content: center; }
}

/* ---------- reveal (fade-in removed — elements show instantly) ---------- */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   ARABIC / RTL
   ========================================================= */
body.ar { font-family: "Cairo", "Inter", sans-serif; }
body.ar * { font-family: "Cairo", "Inter", sans-serif; }

/* right-align body text in Arabic; keep centered sections centered */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .contact,
[dir="rtl"] .hero__scroll { text-align: center; }
[dir="rtl"] .contact__form { text-align: right; }

/* mirror the gradient accent bar on cards */
[dir="rtl"] .prod::before { left: auto; right: 0; }
[dir="rtl"] .glass::before,
[dir="rtl"] .skillcat::before,
[dir="rtl"] .contact__link::before { right: auto; left: -1px; border-right: none; border-left: 2px solid var(--blue); border-top-right-radius: 0; border-top-left-radius: 10px; }

/* flip the stat divider */
[dir="rtl"] .stat {
  border-left: none;
  border-right: 1px solid var(--glass-brd);
  padding-left: 0;
  padding-right: 16px;
}

/* flip bullet lists */
[dir="rtl"] .prod__built li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .prod__built li::before { left: auto; right: 0; }

/* scroll progress grows from the right in Arabic */
[dir="rtl"] .scroll-progress { left: auto; right: 0; }

/* keep Latin brand mark upright */
[dir="rtl"] .nav__brand,
[dir="rtl"] .hero__photo-fallback { direction: ltr; }

/* Arabic is cursive — remove Latin letter-spacing that breaks glyph joining */
body.ar .hero__eyebrow,
body.ar .section__index,
body.ar .hero__title,
body.ar .section__title,
body.ar .contact__title,
body.ar .prod__kind,
body.ar .prod__name,
body.ar .prod__label,
body.ar .cookie__text { letter-spacing: normal; }
body.ar .hero__title,
body.ar .section__title,
body.ar .contact__title { text-transform: none; }

/* =========================================================
   NOCTURNE ALIGNMENT
   Brings these pages onto the landing page's theme: one
   typeface at one weight scale, sentence case, pill CTAs,
   and none of the terminal "> " motif.
   ========================================================= */

/* the "> " prefixes are the old technical motif; the landing page has none */
.nav__links a::before,
.hero__eyebrow::before,
.section__index::before { content: none; }
.nav__links a::after { display: none; }

/* brand: the landing page's "AT." square followed by the name */
.nav__logo { display: none; }
.nav__brand {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  gap: 10px;
  color: var(--ink);
  transition: opacity .25s;
}
.nav__brand .nav__mark {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 8px);
  background: var(--ink);
  flex: 0 0 auto;
}
.nav__brand .nav__mark img { width: 20px; height: 20px; display: block; }
.nav__brand .nav__name { color: var(--ink); }
.nav__brand:hover { opacity: .82; }

/* nav links: sentence case Inter, accent on hover */
.nav__links { gap: 18px; align-items: center; }
.nav__links a {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.nav__links a:hover { color: var(--blue); }

/* CTA + language toggle: outlined pills */
.nav__cta {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(114, 99, 201, 0.45);
  color: var(--blue);
}
.nav__cta:hover {
  background: transparent;
  border-color: var(--blue);
  color: #4c3fa0;
  box-shadow: none;
  transform: none;
}
.nav__lang {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  width: 34px; height: 34px;
  border-radius: 999px;
}

/* headings: Inter at the design system's 500, sentence case */
.hero__title,
.section__title {
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.025em;
}
.hero__title { line-height: 1.02; }
.glass h3,
.persona__btn-text strong,
.contact__link-val { font-weight: 600; }
.stat__num { font-weight: 600; }
.hero__photo-fallback { font-weight: 600; }

/* small labels: same family, calmer tracking */
.hero__eyebrow { letter-spacing: 1.4px; }
.section__index { letter-spacing: 1.2px; }
.hero__scroll { letter-spacing: 1.6px; }

/* buttons: pills, sentence case */
.btn {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 999px;
  padding: 13px 24px;
}

/* headings and buttons the block above didn't reach */
.contact__title {
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.025em;
}
.skillcat h3 {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
}
.skillcat h3::before { content: none; }
.prod__cta,
.cookie__btn {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 999px;
}
.prod__cta { padding: 11px 20px; }
.cookie__btn { padding: 9px 18px; }

/* "My journey" dropdown — same hover behaviour as the landing page */
.nav__menu { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.nav__menu-btn {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color .25s;
}
.nav__menu-caret { color: var(--muted); transition: transform .16s ease, color .25s; }
.nav__menu:hover .nav__menu-btn,
.nav__menu:focus-within .nav__menu-btn,
.nav__menu:hover .nav__menu-caret,
.nav__menu:focus-within .nav__menu-caret { color: var(--blue); }
.nav__menu:hover .nav__menu-caret,
.nav__menu:focus-within .nav__menu-caret { transform: rotate(180deg); }
.nav__menu-panel {
  position: absolute;
  top: 100%; right: 0;
  padding-top: 14px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__menu:hover .nav__menu-panel,
.nav__menu:focus-within .nav__menu-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu-card {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 18px 50px -16px rgba(23, 24, 31, 0.2);
}
.nav__menu-card a {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.nav__menu-card a:hover { background: var(--bg-2); color: var(--blue); }
.nav__menu-card a.is-current { color: var(--blue); background: var(--bg-2); }
[dir="rtl"] .nav__menu-panel { right: auto; left: 0; }

/* same 1120px measure as the landing page's header */
.nav {
  padding: 20px max(40px, calc((100vw - 1120px) / 2 + 40px));
}
.nav.scrolled {
  padding: 14px max(40px, calc((100vw - 1120px) / 2 + 40px));
}
/* links and the right-hand cluster read as one group, as on the landing page */
.nav__links { margin-left: auto; }
.nav__right { margin-left: 18px; gap: 12px; }

/* hero without the portrait: one column, status as a pill on the eyebrow line */
.hero__grid { grid-template-columns: 1fr; }
.hero__topline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero__topline .hero__eyebrow { margin-bottom: 0; }
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2px;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  white-space: nowrap;
}
.hero__status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 10px var(--live);
  animation: pulse 2s infinite;
}
.hero__sub { max-width: 680px; }

/* galleries show four shots; the rest wait in the lightbox behind a "+N" tile */
.prod__shot.is-extra { display: none; }
.prod__shot[data-more] { position: relative; }
.prod__shot[data-more]::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: rgba(23, 24, 31, 0.58);
  transition: background .25s;
}
.prod__shot[data-more]:hover::after { background: rgba(23, 24, 31, 0.45); }

/* =========================================================
   RESPONSIVE — tablet and phone
   ========================================================= */
.nav__name { white-space: nowrap; }
.nav__burger { display: none; }
.nav__burger > summary {
  list-style: none; cursor: pointer;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  color: var(--ink);
}
.nav__burger > summary::-webkit-details-marker { display: none; }
.nav__burger[open] > summary { border-color: var(--blue); color: var(--blue); }
.nav__burger-sheet {
  position: absolute; top: 54px; right: clamp(20px, 5vw, 60px); z-index: 200;
  min-width: 220px; display: flex; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 18px 50px -16px rgba(23, 24, 31, 0.22);
}
.nav__burger-sheet a { padding: 11px 12px; border-radius: 6px; color: var(--ink); font-size: 15px; }
.nav__burger-sheet a:hover { background: var(--bg-2); color: var(--blue); }
.nav__burger-sheet a.is-current { background: var(--bg-2); color: var(--blue); }
.nav__burger-cta {
  margin-top: 4px; text-align: center; font-weight: 500;
  border: 1px solid rgba(114, 99, 201, 0.45);
  color: var(--blue) !important;
}
[dir="rtl"] .nav__burger-sheet { right: auto; left: clamp(20px, 5vw, 60px); }

/* the full link row stops fitting around here — same breakpoint as the landing page */
@media (max-width: 1000px) {
  .nav__links { display: none !important; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__right { margin-left: auto; }
}

/* iPad and phones */
@media (max-width: 900px) {
  /* the scroll cue is anchored to a full-height hero; once that shortens it lands on the stats */
  .hero__scroll { display: none; }
  .hero { padding-top: 104px; padding-bottom: 56px; }
  .stat__label { line-height: 1.35; }
}

@media (max-width: 560px) {
  .hero__stats { gap: 18px 14px; }
  .hero__topline { gap: 10px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .nav { padding-left: 18px !important; padding-right: 18px !important; }
  .nav__burger-sheet { right: 18px; left: 18px; min-width: 0; }
}

@media (max-width: 360px) {
  .nav__name { display: none; }
}

/* ============================================================
   PHONE TAB BAR
   A hamburger hides everything behind a tap and then asks you to
   read a list. On a phone the pattern people already know is a row
   of tabs at the bottom, in reach of a thumb, showing where you
   are — so the three views become the tabs and the menu goes.
   ============================================================ */
.tabbar { display: none; }

@media (max-width: 1000px) {
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--line, rgba(23, 24, 31, 0.1));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 9px 2px 8px; min-height: 54px;
    color: var(--muted, #5c5e70); font-family: "Inter", system-ui, sans-serif;
    font-size: 10.5px; font-weight: 500; line-height: 1.2;
    letter-spacing: 0; text-transform: none; text-align: center; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar a i { font-size: 21px; }
  .tabbar a.is-on { color: var(--blue, #7263c9); }
  /* An icon drawn as a mask uses background-color as its own paint, so a
     filled pill behind it is not available here. Colour and weight do it. */
  .tabbar a.tabbar__cta { color: var(--blue, #7263c9); font-weight: 600; }
  /* nothing should end up underneath the bar */
  body { padding-bottom: 66px; }
  /* the menu button has nothing left to do */
  .nav__burger { display: none !important; }
  /* the cookie banner is fixed to the bottom too — it sits above the bar,
     not on top of it */
  .cookie { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* On a tablet the bar still spans the screen, but five tabs stretched across
   800px stop reading as a group. Keep them together in the middle, at the
   width they have on a phone. */
@media (min-width: 620px) and (max-width: 1000px) {
  .tabbar {
    padding-left: max(0px, calc((100% - 520px) / 2));
    padding-right: max(0px, calc((100% - 520px) / 2));
  }
}

/* the two credit lines stack, so the footer's other half stays put */
.footer__credit { display: flex; flex-direction: column; gap: 3px; }
