/* ============================================================
   Innoveev — Superwhisper-style home.
   Aurora dissolving over midnight glass. Self-contained:
   styles the home page only (index.html), nothing else.
   ============================================================ */

:root {
  /* accent (rationed — one chromatic signal) */
  --signal: #0088ff;          /* tweakable */
  --sky: #60a5fa;

  /* neutrals */
  --white: #ffffff;
  --pearl: #cccccc;
  --mist: #b8babf;
  --ash: #888b91;
  --fog: #70757c;
  --bone: #e5e7eb;

  /* surfaces */
  --canvas: #000000;
  --obsidian: #0f0f10;
  --indigo: #030719;
  --navy: #001b33;
  --charcoal: #1c1d1f;
  --graphite: #333333;
  --hair: rgba(255, 255, 255, 0.10);
  --hair-2: rgba(255, 255, 255, 0.16);

  /* aurora hero gradient (tweakable) */
  --aurora: linear-gradient(180deg,
    #000000 0.85%, #0a1c4d 24%, #112d72 38%, #4b52aa 56%,
    #a887dc 76%, #e6c4e7 94%, #fcdbef 106%);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --track-display: -0.055em;

  --r-card: 24px;
  --r-sm: 18px;
  --r-btn: 9px;
  --r-pill: 9999px;

  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "ss01" on, "cv11" on;
  font-weight: 400;
  color: var(--white);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--signal); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* reveal */
/* Visible IS the resting state — never gate content visibility on a
   transition completing. The entrance is a transform-only enhancement;
   if the timeline is throttled/frozen, content is still fully painted. */
.reveal {
  opacity: 1;
  transform: translateY(14px);
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.reveal--in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
}

.brand { display: inline-flex; align-items: center; color: var(--white); }
.suffix { font: inherit; }
.arrow { transition: transform 0.3s var(--ease); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font: 500 12px/1 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
}

/* ===== Buttons ===== */
.abtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 15px/1 var(--font);
  letter-spacing: -0.01em;
  padding: 13px 20px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
  white-space: nowrap;
}
.abtn:hover .arrow { transform: translateX(3px); }
.abtn--white { background: var(--white); color: #000; }
.abtn--white:hover { transform: translateY(-2px); }
.abtn--dark {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--hair-2);
}
.abtn--dark:hover { background: #25262a; }
.abtn--sm { padding: 9px 14px; font-size: 14px; }

/* inline tertiary link */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--mist);
  transition: color 0.2s var(--ease);
}
.tlink:hover { color: var(--white); }
.tlink svg { opacity: 0.7; }

/* (Header nav comes from the original styles.css + nav.jsx — see overrides at end of file.) */

/* ===== Hero ===== */
.hero { position: relative; height: 128vh; padding: 0; }
.hero__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero__card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--aurora);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(56px, 10vh, 128px) 32px clamp(72px, 12vh, 150px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  will-change: inset, border-radius;
}
/* readability veil keeps white type crisp over the bright horizon */
.hero__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 30%, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font: 500 12px/1 var(--font);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.86);
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  margin-bottom: 28px;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 10px var(--signal);
}
.hero__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: var(--track-display);
  color: #fff;
  text-wrap: balance;
}
.hero__lede {
  margin: 26px auto 0;
  max-width: 40ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
}
.hero__ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hero__fine {
  margin-top: 22px;
  font: 400 13px/1.5 var(--font);
  color: rgba(255, 255, 255, 0.7);
}
.hero__fine .kbd {
  font: 400 11px/1 var(--mono);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 6px;
  border-radius: 5px;
  color: #fff;
}

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.07;
  letter-spacing: -0.04em;
  color: #fff;
  text-wrap: balance;
}
.section-head__title .sig { color: var(--signal); }
.section-head__lede {
  margin: 18px 0 0;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--mist);
}

/* ===== Stats ===== */
.stats-section { padding-top: 0; }
.stats-head { margin-bottom: 30px; }
.stats-head .eyebrow { margin-bottom: 14px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  overflow: hidden;
}
.stat {
  position: relative;
  background: var(--obsidian);
  padding: 38px 30px 34px;
  transition: background 0.3s var(--ease);
}
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--signal), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.stat:hover { background: #121316; }
.stat:hover::before { opacity: 0.9; }
.stat__val {
  font-weight: 600;
  font-size: clamp(44px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff;
}
.stat__val .suffix { color: var(--signal); }
.stat__label { margin-top: 14px; font-size: 16px; font-weight: 500; color: #fff; letter-spacing: -0.015em; }
.stat__note { margin-top: 7px; font-size: 13.5px; line-height: 1.5; color: var(--ash); max-width: 30ch; }

/* ===== Feature cards (services) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fcard {
  position: relative;
  background: var(--tint, var(--indigo));
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.fcard:hover { transform: translateY(-4px); border-color: var(--hair-2); }
.fcard__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-btn);
  display: grid; place-items: center;
  color: var(--signal);
  background: rgba(0, 136, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 136, 255, 0.3);
  margin-bottom: 60px;
}
.fcard__title {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: #fff;
}
.fcard__desc { margin: 10px 0 0; font-size: 15px; line-height: 1.5; letter-spacing: -0.01em; color: var(--mist); }
.fcard__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.fcard__tag {
  font: 400 11px/1 var(--mono);
  color: var(--mist);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hair);
  padding: 6px 8px;
  border-radius: 5px;
}

/* ===== Work ===== */
.work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  background: var(--obsidian);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  padding: 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: var(--hair-2); background: #141416; }
.tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 54px;
}
.tile__glyph {
  width: 48px; height: 48px;
  border-radius: var(--r-btn);
  background: var(--navy);
  color: var(--signal);
  display: grid; place-items: center;
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(0, 136, 255, 0.22);
}
.tile__chip {
  font: 400 11px/1 var(--mono);
  color: var(--ash);
  border: 1px solid var(--hair);
  padding: 6px 9px;
  border-radius: var(--r-pill);
}
.tile__name { font-weight: 600; font-size: 20px; letter-spacing: -0.03em; color: #fff; }
.tile__blurb { margin: 7px 0 0; font-size: 14px; line-height: 1.5; letter-spacing: -0.01em; color: var(--mist); }
.tile__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tile__metric { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pearl); }
.tile__metric .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.tile__go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--signal); }

/* ===== Offices ===== */
.offices {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 20px;
  align-items: stretch;
}
.offices__panel {
  background: var(--obsidian);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.offices__lede { margin: 16px 0 26px; font-size: 16px; line-height: 1.55; letter-spacing: -0.01em; color: var(--mist); max-width: 44ch; }
.offices__list { list-style: none; margin: 0; padding: 0; }
.office {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 2px;
  border-top: 1px solid var(--hair);
}
.office:last-child { border-bottom: 1px solid var(--hair); }
.office__flag { font-size: 20px; line-height: 1; }
.office__city { display: block; font-weight: 500; font-size: 16px; letter-spacing: -0.02em; color: #fff; }
.office__role { display: block; font-size: 13px; color: var(--ash); margin-top: 2px; }
.office__time { font: 500 15px/1 var(--mono); color: var(--mist); }
.office--hq .office__city { color: var(--signal); }
.offices__viz {
  position: relative;
  background: radial-gradient(120% 120% at 50% 40%, #03142b 0%, #010409 70%);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 420px;
}
.offices__viz-inner { position: absolute; inset: 0; }
.offices__viz-cap {
  position: absolute;
  left: 22px; bottom: 20px;
  font: 400 11px/1 var(--mono);
  color: var(--ash);
  letter-spacing: 0.02em;
}

/* ===== Final CTA ===== */
.fcta { padding: 16px; }
.fcta__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--aurora);
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.fcta__card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 30%, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 62%);
  pointer-events: none;
}
.fcta__inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.fcta__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #fff;
  text-wrap: balance;
}
.fcta__lede { margin: 18px auto 0; max-width: 42ch; font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.9); }
.fcta__ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fcta__meta { margin: 24px 0 0; font: 400 13px/1 var(--mono); letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.75); }

/* (Footer comes from the original styles.css + closer.jsx — see overrides at end of file.) */

/* ===== Apps showcase ("What's inside" cards) ===== */
.eyebrow--mag { color: #dd55e7; }
.eyebrow--mag .dot { background: #dd55e7; box-shadow: 0 0 10px #dd55e7; }
.whats__head { max-width: 720px; margin-bottom: 36px; }
.whats__scroll { width: 100%; }
.appsrow {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 28px 22px max(28px, calc((100vw - var(--container)) / 2 + 28px));
  scroll-padding-left: max(28px, calc((100vw - var(--container)) / 2 + 28px));
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.appsrow::-webkit-scrollbar { height: 8px; }
.appsrow::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 99px; }
.appsrow__pad { flex: 0 0 8px; }
.appcard {
  position: relative;
  flex: 0 0 370px;
  min-height: 460px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--r-card);
  padding: 22px;
  overflow: hidden;
  background: #07070a;
  border: 1px solid var(--hair);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.appcard__bg { position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, 0.28); }
.appcard__bg image-slot { width: 100%; height: 100%; display: block; }
/* color fades down into the card's accent, then to near-black for legibility */
.appcard__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(7, 7, 10, 0) 0%,
    rgba(7, 7, 10, 0.05) 34%,
    color-mix(in srgb, var(--c) 26%, rgba(6, 7, 10, 0.82)) 64%,
    color-mix(in srgb, var(--c) 30%, #060709) 84%,
    #060709 100%);
}
.appcard__content { position: relative; z-index: 2; }
.appcard__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.appcard__icon {
  width: 40px; height: 40px;
  flex: none;
  border-radius: var(--r-btn);
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 22%, rgba(0, 0, 0, 0.5));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent);
}
.appcard__icon image-slot { width: 100%; height: 100%; }
.appcard__title {
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.appcard__market {
  margin-left: auto;
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.02em;
  color: var(--mist);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.appcard__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.appcard__tagline {
  margin: 14px 0 2px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
@media (max-width: 600px) {
  .appcard { flex-basis: 84vw; }
  .appcard__market { display: none; }
}

/* ===== Services slider (mirrors the apps slider + fade) ===== */
.svcrow {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 28px 22px max(28px, calc((100vw - var(--container)) / 2 + 28px));
  scroll-padding-left: max(28px, calc((100vw - var(--container)) / 2 + 28px));
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.svcrow::-webkit-scrollbar { height: 8px; }
.svcrow::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 99px; }
.svccard {
  position: relative;
  flex: 0 0 330px;
  min-height: 420px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--r-card);
  padding: 24px;
  overflow: hidden;
  background: #07070a;
  border: 1px solid var(--hair);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svccard:hover { transform: translateY(-4px); border-color: var(--hair-2); }
.svccard__bg { position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, 0.28); }
.svccard__bg image-slot { width: 100%; height: 100%; display: block; }
.svccard__fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(7, 7, 10, 0) 0%,
    rgba(7, 7, 10, 0.05) 34%,
    color-mix(in srgb, var(--c) 26%, rgba(6, 7, 10, 0.82)) 64%,
    color-mix(in srgb, var(--c) 30%, #060709) 84%,
    #060709 100%);
}
.svccard__content { position: relative; z-index: 2; }
.svccard__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-btn);
  display: grid; place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 18%, rgba(0, 0, 0, 0.5));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 42%, transparent);
  margin-bottom: 14px;
}
.svccard__title {
  font-weight: 600; font-size: 23px; letter-spacing: -0.03em; color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.svccard__desc {
  margin: 9px 0 0; font-size: 14.5px; line-height: 1.5; letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 66px;
}
.svccard__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.svccard__tag {
  font: 400 11px/1 var(--mono); color: #fff;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 9px; border-radius: var(--r-pill);
}
@media (max-width: 600px) {
  .svccard { flex-basis: 80vw; }
}

/* ===== Per-service-card image editor (Edit image button) ===== */
.svccard__edit {
  display: none;
  position: absolute; top: 14px; left: 14px; z-index: 6;
  align-items: center; gap: 6px;
  font: 500 12px/1 var(--font); color: #fff;
  background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 9px; padding: 8px 11px;
  cursor: pointer; pointer-events: auto; transition: background 0.18s, border-color 0.18s;
}
.svccard__edit:hover { background: rgba(0, 0, 0, 0.72); }
.svccard__hint {
  position: absolute; left: 14px; right: 14px; top: 50px; z-index: 6; display: none;
  font: 500 11px/1.45 var(--font); color: #fff;
  background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 9px; padding: 8px 10px;
}
.svccard__hint b { color: var(--signal); font-weight: 600; }
.svccard--editing .svccard__bg { z-index: 5; }
.svccard--editing .svccard__fade,
.svccard--editing .svccard__content { pointer-events: none; }
.svccard--editing .svccard__edit { background: var(--signal); border-color: var(--signal); }
.svccard--editing .svccard__hint { display: block; }

/* ===== Tech keyboard ("Works anywhere") ===== */
.kbd-section { padding: 78px 0 92px; }
.kbd-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.kbd-head .eyebrow { justify-content: center; color: var(--signal); }
.kbd-head .eyebrow .dot { background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.kbd-head__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: #fff;
  text-wrap: balance;
}
.kbd-head__title .dim { color: var(--ash); }
.kbd-head__lede { margin: 16px auto 0; max-width: 46ch; font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; color: var(--mist); }

/* ===== Tech marquee (app-style tiles) ===== */
.techmq-section { overflow: hidden; }
.techmq-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 54px; }
.techmq {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.techmq__track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 8px 0;
  animation: mq-l var(--dur, 50s) linear infinite;
}
.techmq[data-dir="r"] .techmq__track { animation-name: mq-r; }
.techmq__track:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .techmq__track { animation: none; } }
@keyframes mq-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mq-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* tile base (technologies/styles.css isn't loaded on home) */
.tech-tile { display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 23%; flex: none; }

.techapp {
  flex: none;
  width: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 12px 6px;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.28s var(--ease);
}
.techapp__tile { display: block; transition: filter 0.28s var(--ease); }
.techapp .tech-tile {
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  transition: box-shadow 0.28s var(--ease);
}
.techapp__name {
  font-size: 14px; font-weight: 600; color: #fff; letter-spacing: -0.01em; line-height: 1.1;
  max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.techapp__role { font-size: 11px; color: var(--ash); letter-spacing: 0.01em; }
.techapp:hover { transform: translateY(-8px) scale(1.14); }
.techapp:hover .tech-tile {
  box-shadow: 0 20px 38px -10px rgba(0, 136, 255, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.20);
}
@media (max-width: 600px) {
  .techapp { width: 96px; }
  .techmq-rows { gap: 8px; }
}

.kbd-stage { display: flex; justify-content: center; perspective: 1800px; padding: 6px 0 4px; overflow: hidden; }
.kbd {
  --k: clamp(21px, 3.15vw, 40px);
  --gap: calc(var(--k) * 0.12);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: calc(var(--k) * 0.34);
  border-radius: calc(var(--k) * 0.5);
  background: linear-gradient(180deg, #3c3d41 0%, #232427 60%, #1b1c1e 100%);
  box-shadow:
    0 50px 90px -28px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -3px 8px rgba(0, 0, 0, 0.55);
  transform: rotateX(13deg);
  transform-origin: center top;
}
.kbd-row { display: flex; gap: var(--gap); justify-content: center; }
.kbd-key {
  position: relative;
  width: var(--k);
  height: var(--k);
  flex: none;
  border-radius: calc(var(--k) * 0.2);
  background: linear-gradient(180deg, #313236 0%, #1d1e20 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 1.5px 2px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--ash);
  user-select: none;
  overflow: hidden;
  transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease);
}
.kbd-key--fn { height: calc(var(--k) * 0.6); }
.kbd-key--mod { background: linear-gradient(180deg, #2a2b2e 0%, #171819 100%); }
.kbd-tech { cursor: pointer; }
.kbd-tech:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 18px -3px var(--glow, rgba(0, 0, 0, 0.6));
}
.kbd-tech.is-down { transform: translateY(1px) scale(0.97); }
.kbd-key__letter {
  font-weight: 700;
  font-size: calc(var(--k) * 0.46);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tc, #e5e7eb);
}
.kbd-key__name {
  font-size: calc(var(--k) * 0.185);
  line-height: 1;
  max-width: 94%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mist);
}
.kbd-key__lbl { font-size: calc(var(--k) * 0.2); line-height: 1; color: var(--fog); letter-spacing: 0; }
.kbd-key__sym { font-size: calc(var(--k) * 0.32); line-height: 1; color: var(--fog); }
.kbd-arrows { display: flex; gap: var(--gap); align-items: flex-end; }
.kbd-arrows__col { display: flex; flex-direction: column; gap: var(--gap); }
.kbd-key--half { height: calc((var(--k) - var(--gap)) / 2); }
@media (max-width: 680px) {
  .kbd-key__name { display: none; }
  .kbd-key__letter { font-size: calc(var(--k) * 0.5); }
}

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .stats { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr 1fr; }
  .offices { grid-template-columns: 1fr; }
  .offices__viz { min-height: 360px; }
  .work__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .work__grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .fcard__icon { margin-bottom: 36px; }
  .tile__top { margin-bottom: 36px; }
}

/* ===== Original header + footer on the dark aurora page =====
   styles.css supplies the real Nav/Footer; these rules keep the
   aurora content unaffected and keep the page locked to dark. */
.ahome .eyebrow::before { content: none; }
.ahome .section-head { display: block; gap: 0; }
.nav .brand { color: #fff; }
.theme-toggle { display: none; }

/* ===== Temporary per-card image editor (Edit image button) ===== */
.appcard__edit {
  display: none;
  position: absolute; top: 14px; left: 14px; z-index: 6;
  align-items: center; gap: 6px;
  font: 500 12px/1 var(--font); color: #fff;
  background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 9px; padding: 8px 11px;
  cursor: pointer; pointer-events: auto; transition: background 0.18s, border-color 0.18s;
}
.appcard__edit:hover { background: rgba(0, 0, 0, 0.72); }
.appcard__hint {
  position: absolute; left: 14px; right: 14px; top: 50px; z-index: 6; display: none;
  font: 500 11px/1.45 var(--font); color: #fff;
  background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 9px; padding: 8px 10px;
}
.appcard__hint b { color: var(--signal); font-weight: 600; }
.appcard--editing .appcard__bg { z-index: 5; }
.appcard--editing .appcard__fade,
.appcard--editing .appcard__content { pointer-events: none; }
.appcard--editing .appcard__edit { background: var(--signal); border-color: var(--signal); }
.appcard--editing .appcard__hint { display: block; }

/* ===== Homescreen header — same treatment now mirrored globally in
   aurora-theme.css so every interior page matches this exactly. ===== */
.ahome .nav--scrolled {
  background: linear-gradient(to bottom,
    rgba(6, 7, 9, 0.72) 0%,
    rgba(6, 7, 9, 0.28) 55%,
    rgba(6, 7, 9, 0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}
.ahome .nav--scrolled::before,
.ahome .nav--scrolled::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ahome .nav--scrolled::before {
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 28%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 28%, transparent 70%);
}
.ahome .nav--scrolled::after {
  backdrop-filter: blur(5px) saturate(1.2);
  -webkit-backdrop-filter: blur(5px) saturate(1.2);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.6) 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.6) 55%, transparent 100%);
}
.ahome .nav--scrolled > * { position: relative; z-index: 1; }
.ahome .nav--menu-open::before,
.ahome .nav--menu-open::after { display: none; }
