/* ------------------------------------------------------------------ */
/* NOMI STUDIO — service detail pages.                                  */
/* Shares the main site's look: Poppins, black bg, grey accent,         */
/* glass header, dark footer, gooey "blob" buttons.                     */
/* ------------------------------------------------------------------ */

html {
  font-size: 6.9444444444vw; /* same vw-based rem scale as the main page */
}

:root {
  --font: "Poppins", sans-serif;
  --bg: #000000;
  /* kept as --blue for compatibility with the rest of this file; it is the
     grey accent now */
  --blue: #9a9a9a;
  --ink: #ffffff;
  --muted: #a3a3a3;
  --line: #2a2a2a;
  --surface: #101010;
  --surface-2: #1a1a1a;
  --dim: #767676;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 13.4rem;
  margin: 0 auto;
  padding: 0 0.4rem;
}

/* ---------- Header (glassmorphism) ---------- */
.site-header {
  position: fixed;
  top: 0.24rem;
  left: 0.32rem;
  right: 0.32rem;
  height: 0.8rem;
  padding: 0 0.36rem;
  z-index: 100;
  border-radius: 0.24rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 12, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0.06rem 0.3rem rgba(0, 0, 0, 0.5);
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.16rem;
}
.site-header__logo img {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  object-fit: cover;
}
.site-header__name {
  display: flex;
  flex-direction: column;
  font-size: 0.18rem;
  font-weight: 600;
  line-height: 1.02;
  color: var(--ink);
}
.site-header__name span:last-child {
  position: relative;
  left: 0.13rem;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.37rem;
}
.site-header__nav a {
  font-size: 0.14rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.site-header__nav a:hover {
  opacity: 1;
}

/* ---------- Shared bits ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 0.14rem;
  font-weight: 600;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.24rem;
}
.section-label::before {
  content: "";
  width: 0.2rem;
  height: 1px;
  background: var(--blue);
}
.section-title {
  font-size: 0.56rem;
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
}
.pill {
  font-size: 0.14rem;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.1rem 0.2rem;
  background: var(--surface-2);
}

/* ---------- Buttons (gooey blob) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.62rem;
  padding: 0 0.42rem;
  border-radius: 0.4rem;
  font-size: 0.16rem;
  font-weight: 500;
  cursor: pointer;
}
.blob-btn {
  --blob-color: var(--ink);
  --blob-bg: var(--bg);
  --blob-text-hover: var(--bg);
  position: relative;
  z-index: 1;
  color: var(--blob-color);
  background: transparent;
  border: none;
  transition: color 0.5s;
}
.blob-btn::before {
  content: "";
  z-index: 1;
  position: absolute;
  inset: 0;
  border: 2px solid var(--blob-color);
  border-radius: inherit;
  pointer-events: none;
}
.blob-btn:hover {
  color: var(--blob-text-hover);
}
.blob-btn__inner {
  z-index: -1;
  overflow: hidden;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--blob-bg);
}
.blob-btn__blobs {
  position: relative;
  display: block;
  height: 100%;
  filter: url("#goo");
}
.blob-btn__blob {
  position: absolute;
  top: 2px;
  width: 25%;
  height: 100%;
  background: var(--blob-color);
  border-radius: 100%;
  transform: translate3d(0, 150%, 0) scale(1.4);
  transition: transform 0.45s;
}
.blob-btn__blob:nth-child(1) { left: 0%;  transition-delay: 0s; }
.blob-btn__blob:nth-child(2) { left: 30%; transition-delay: 0.08s; }
.blob-btn__blob:nth-child(3) { left: 60%; transition-delay: 0.16s; }
.blob-btn__blob:nth-child(4) { left: 90%; transition-delay: 0.24s; }
.blob-btn:hover .blob-btn__blob {
  transform: translateZ(0) scale(1.4);
}
.btn--light {
  --blob-color: var(--bg);
  --blob-bg: transparent;
  --blob-text-hover: var(--ink);
}
.goo-defs {
  position: absolute;
  width: 0;
  height: 0;
}

/* ---------- Hero ---------- */
.detail-hero {
  padding: 2.1rem 0 1rem;
}
.detail-hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.detail-hero__text {
  max-width: 8rem;
}
.detail-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 0.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02rem;
  color: var(--blue);
  margin-bottom: 0.3rem;
}
.detail-hero__label .dot {
  width: 0.1rem;
  height: 0.1rem;
  border-radius: 50%;
  background: var(--blue);
}
.detail-hero__title {
  font-size: 1.05rem;
  line-height: 1.02;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.detail-hero__sub {
  font-size: 0.22rem;
  line-height: 0.32rem;
  color: var(--muted);
  max-width: 5.8rem;
  margin-bottom: 0.44rem;
}
.detail-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12rem;
  margin-bottom: 0.5rem;
}
.detail-hero__icon {
  flex: none;
  width: 3.4rem;
  height: 3.4rem;
  color: var(--blue);
  opacity: 0.12;
}
.detail-hero__icon svg {
  width: 100%;
  height: 100%;
}

/* ---------- Section base ---------- */
.detail-section {
  padding: 0.9rem 0;
}

/* Overview */
.detail-overview__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0.7rem;
  align-items: start;
}
.detail-overview__body p {
  font-size: 0.2rem;
  line-height: 0.32rem;
  color: var(--muted);
}
.detail-overview__body p + p {
  margin-top: 0.24rem;
}

/* Scroll-driven gradient text fill (see services.js): the copy starts dark
   grey and "fills" to near-white ink as it scrolls through the viewport. */
.fill-text > span {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-color: #333333;
  background-image: linear-gradient(135deg, #ffffff 50%, #333333 60%);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 200%;
  display: inline;
  will-change: background-size;
}
@media (prefers-reduced-motion: reduce) {
  .fill-text > span {
    background-size: 200% 200%;
  }
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.22rem;
  padding: 0.38rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  border-color: #454545;
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.45);
}
.feature-card__icon {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.12rem;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 0.26rem;
}
.feature-card__icon svg {
  width: 0.26rem;
  height: 0.26rem;
}
.feature-card__title {
  font-size: 0.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.13rem;
}
.feature-card__desc {
  font-size: 0.15rem;
  line-height: 0.23rem;
  color: var(--muted);
}

/* Process */
.process-list {
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.process-step {
  display: grid;
  grid-template-columns: 0.9rem 2.8rem 1fr;
  gap: 0.4rem;
  align-items: baseline;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--line);
}
.process-step__num {
  font-size: 0.42rem;
  font-weight: 700;
  color: var(--dim);
}
.process-step__title {
  font-size: 0.24rem;
  font-weight: 600;
  color: var(--ink);
}
.process-step__desc {
  font-size: 0.16rem;
  line-height: 0.25rem;
  color: var(--muted);
}

/* CTA band */
.detail-cta {
  padding: 0.6rem 0 1rem;
}
.detail-cta__inner {
  background: var(--ink);
  border-radius: 0.3rem;
  padding: 0.7rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.detail-cta__title {
  font-size: 0.5rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--bg);
  max-width: 6.5rem;
}

/* More services */
.more-services {
  padding: 0.4rem 0 1rem;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem;
  margin-top: 0.45rem;
}
.more-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  padding: 0.36rem 0.42rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.more-card:hover {
  border-color: var(--blue);
  transform: translateY(-0.04rem);
}
.more-card__label {
  display: block;
  font-size: 0.13rem;
  font-weight: 600;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.08rem;
}
.more-card__title {
  font-size: 0.26rem;
  font-weight: 600;
  color: var(--ink);
}
.more-card__arrow {
  flex: none;
  color: var(--blue);
  font-size: 0.34rem;
  line-height: 1;
}

/* ---------- Footer (dark) ---------- */
.footer {
  background: #000000;
  color: #ffffff;
  padding: 0.9rem 0.4rem 0.5rem;
}
.footer__inner {
  max-width: 13.4rem;
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__logo-row {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  margin-bottom: 0.24rem;
}
.footer__logo-img {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.footer__logo {
  display: flex;
  flex-direction: column;
  font-size: 0.24rem;
  font-weight: 600;
  line-height: 1.02;
  color: #ffffff;
}
.footer__logo span:last-child {
  position: relative;
  left: 0.12rem;
}
.footer__tagline {
  font-size: 0.16rem;
  line-height: 0.24rem;
  color: #94959b;
  max-width: 3.7rem;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.footer__col {
  display: flex;
  flex-direction: column;
}
.footer__heading {
  font-size: 0.13rem;
  font-weight: 600;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
  color: #7a7b81;
  margin-bottom: 0.22rem;
}
.footer__link {
  font-size: 0.16rem;
  color: #d3d4d8;
  padding: 0.08rem 0;
  transition: color 0.2s ease;
}
.footer__link:hover {
  color: #ffffff;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.3rem;
  font-size: 0.14rem;
  color: #7a7b81;
}

/* ------------------------------------------------------------------ */
/* Mobile                                                              */
/* ------------------------------------------------------------------ */
@media (max-width: 700px) {
  .container {
    padding: 0 0.6rem;
  }
  .site-header {
    top: 0.4rem;
    left: 0.5rem;
    right: 0.5rem;
    height: 1.7rem;
    padding: 0 0.7rem;
    border-radius: 0.5rem;
  }
  .site-header__logo img {
    width: 1.15rem;
    height: 1.15rem;
  }
  .site-header__name {
    font-size: 0.52rem;
  }
  .site-header__name span:last-child {
    left: 0.3rem;
  }
  .site-header__nav {
    gap: 0.6rem;
  }
  .site-header__nav a {
    font-size: 0.46rem;
  }

  .section-label {
    font-size: 0.42rem;
  }
  .section-label::before {
    width: 0.5rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .pill {
    font-size: 0.42rem;
    border-radius: 0.9rem;
    padding: 0.28rem 0.5rem;
  }
  .btn {
    height: 1.6rem;
    padding: 0 1.1rem;
    border-radius: 1rem;
    font-size: 0.48rem;
  }

  .detail-hero {
    padding: 3rem 0 1rem;
  }
  .detail-hero__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail-hero__icon {
    display: none;
  }
  .detail-hero__label {
    font-size: 0.46rem;
  }
  .detail-hero__title {
    font-size: 1.7rem;
  }
  .detail-hero__sub {
    font-size: 0.6rem;
    line-height: 0.88rem;
    max-width: 100%;
  }

  .detail-section {
    padding: 1.3rem 0;
  }
  .detail-overview__inner {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .detail-overview__body p {
    font-size: 0.56rem;
    line-height: 0.86rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .feature-card {
    border-radius: 0.6rem;
    padding: 1rem;
  }
  .feature-card__icon {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.34rem;
  }
  .feature-card__icon svg {
    width: 0.72rem;
    height: 0.72rem;
  }
  .feature-card__title {
    font-size: 0.6rem;
  }
  .feature-card__desc {
    font-size: 0.46rem;
    line-height: 0.68rem;
  }

  .process-step {
    grid-template-columns: 1.2rem 1fr;
    gap: 0.5rem;
    padding: 0.7rem 0;
  }
  .process-step__num {
    font-size: 0.9rem;
    grid-row: span 2;
  }
  .process-step__title {
    font-size: 0.66rem;
  }
  .process-step__desc {
    font-size: 0.48rem;
    line-height: 0.72rem;
  }

  .detail-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem 0.9rem;
    border-radius: 0.7rem;
  }
  .detail-cta__title {
    font-size: 1.2rem;
    max-width: 100%;
  }

  .more-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .more-card {
    border-radius: 0.6rem;
    padding: 0.8rem 0.9rem;
  }
  .more-card__label {
    font-size: 0.4rem;
  }
  .more-card__title {
    font-size: 0.7rem;
  }
  .more-card__arrow {
    font-size: 0.9rem;
  }

  .footer {
    padding: 1.4rem 0.6rem 1rem;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding-bottom: 1.1rem;
  }
  .footer__logo-img {
    width: 1.9rem;
    height: 1.9rem;
  }
  .footer__logo {
    font-size: 0.75rem;
  }
  .footer__tagline {
    font-size: 0.44rem;
    line-height: 0.64rem;
    max-width: 100%;
  }
  .footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }
  .footer__heading {
    font-size: 0.36rem;
    margin-bottom: 0.5rem;
  }
  .footer__link {
    font-size: 0.44rem;
    padding: 0.2rem 0;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    font-size: 0.4rem;
  }
}

/* ------------------------------------------------------------------ */
/* Careers — "no open positions" empty state                          */
/* ------------------------------------------------------------------ */
.positions-empty {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 0.3rem;
  padding: 0.9rem 0.6rem 1rem;
}
.positions-empty__icon {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 0.28rem;
}
.positions-empty__icon svg {
  width: 0.44rem;
  height: 0.44rem;
}
.positions-status {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.14rem;
  font-weight: 600;
  letter-spacing: 0.01rem;
  text-transform: uppercase;
  color: #7a7d82;
  margin-bottom: 0.2rem;
}
.positions-status__dot {
  width: 0.1rem;
  height: 0.1rem;
  border-radius: 50%;
  background: #d4d4d4;
}
.positions-empty__title {
  font-size: 0.34rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.16rem;
}
.positions-empty__text {
  font-size: 0.18rem;
  line-height: 0.28rem;
  color: var(--muted);
  max-width: 6rem;
  margin-bottom: 0.42rem;
}

@media (max-width: 700px) {
  .positions-empty {
    padding: 1.4rem 0.9rem;
    border-radius: 0.7rem;
  }
  .positions-empty__icon {
    width: 2.2rem;
    height: 2.2rem;
  }
  .positions-empty__icon svg {
    width: 1.1rem;
    height: 1.1rem;
  }
  .positions-status {
    font-size: 0.42rem;
  }
  .positions-status__dot {
    width: 0.28rem;
    height: 0.28rem;
  }
  .positions-empty__title {
    font-size: 0.9rem;
  }
  .positions-empty__text {
    font-size: 0.5rem;
    line-height: 0.76rem;
    max-width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* Page-transition wave overlay (shared with page-transition.js)      */
/* ------------------------------------------------------------------ */
.loader-wave {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}
.loader-wave__svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 150vh;
  display: block;
}
