/* ==================================================================
   services.css — the service detail pages (UX design, web development)
   and the career page. Loaded after site.css; everything here builds on
   its tokens, surfaces and components (.card, .btn, .step, .pill …).
   ================================================================== */

/* ── Page hero ──────────────────────────────────────────────────────
   The homepage hero's graphite ground, shorter, with the copy sitting
   on the bottom edge and a bar of meta underneath.
   ──────────────────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 60rem);
  padding-top: var(--header-h);
  background:
    var(--dots),
    radial-gradient(120% 90% at 85% 10%, #828282 0%, transparent 60%),
    radial-gradient(90% 80% at 10% 100%, #4a4a4a 0%, transparent 65%),
    radial-gradient(70% 60% at 70% 85%, #767676 0%, transparent 70%),
    #545454;
}
.page-hero--short { min-height: min(78svh, 48rem); }
.page-hero__grid {
  position: relative;
  z-index: 1;
  flex: 1;
  align-content: end;
  row-gap: var(--space-lg);
  padding-block: var(--space-xl) var(--space-lg);
}
.page-hero__text {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--space-md);
  align-content: end;
}
.page-hero__title { max-width: 12ch; }
.page-hero__sub { max-width: 30ch; color: var(--ink-soft); text-wrap: balance; }
.page-hero__art {
  grid-column: 1 / -1;
  display: none;
}
@media (min-width: 64rem) {
  .page-hero__text { grid-column: 1 / span 6; }
  /* big, out of the corner and level with the copy: centred in the
     columns from the copy to the edge */
  .page-hero__art {
    display: block;
    grid-column: 7 / -1;
    align-self: center;
    justify-self: center;
    width: min(100%, 30rem, 52svh);   /* capped by height too, for short laptop screens */
  }
}
.page-hero [data-enter] {
  animation: enter 1s var(--ease-out) both;
  animation-delay: calc(150ms + var(--d, 0) * 90ms);
}
.page-hero .pills { margin-top: 0; }

/* the service icon on a tile cut from the same gradient as the large plan */
.icon-tile {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  color: var(--brand-white);
  background:
    radial-gradient(90% 120% at 100% 0%, #6f80ff 0%, transparent 60%),
    radial-gradient(80% 100% at 0% 100%, #2f45ff 0%, transparent 70%),
    linear-gradient(160deg, #0022ff, #0019c2);
}
.icon-tile .grain { --grain-opacity: .14; }
.icon-tile svg {
  position: relative;
  z-index: 1;
  width: 42%;
  height: 42%;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-.5rem); } }

/* The same tile as a 3D object (services.js builds it around the flat one):
   a slab with thickness, the icon floating in front of its face, and a
   glare, all turning to face the pointer (--rx / --ry). */
.page-hero__art { perspective: 1100px; }
.icon-3d {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 30%;
  --gy: 20%;
  --sx: 0px;
  --sy: 16px;
  position: relative;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.icon-3d__face { transform: translateZ(0); }
/* the thickness: rounded slices stacked behind the face, darker as they go */
.icon-3d__slice {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background: color-mix(in srgb, #0019c2, #000 calc(var(--i) * 3.5%));
  transform: translateZ(calc(var(--i) * -2.6px));
}
.icon-3d__glare {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(55% 55% at var(--gx) var(--gy), rgb(255 255 255 / .3), transparent 65%);
  mix-blend-mode: soft-light;
}
.icon-3d__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--brand-white);
  pointer-events: none;
  transform: translateZ(64px);
}
.icon-3d__glyph svg {
  width: 42%;
  height: 42%;
  filter: drop-shadow(var(--sx) var(--sy) 14px rgb(0 8 90 / .55));
  animation: float 6s ease-in-out infinite;
}

.page-hero__bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem var(--space-md);
  padding-block: var(--space-sm);
  border-top: 1px solid var(--rule);
  font-size: .875rem;
  color: var(--ink-soft);
}

/* ── Overview: a sticky title beside copy that inks in on scroll ── */
.overview {
  display: grid;
  gap: var(--space-lg) var(--gutter);
}
@media (min-width: 64rem) {
  .overview { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .overview__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--space-sm)); align-self: start; }
  .overview__body { grid-column: 7 / -1; }
}
.overview__head { display: grid; gap: var(--space-sm); align-content: start; }
.overview__body { display: grid; gap: var(--space-md); }
.overview__body p { text-wrap: pretty; line-height: 1.08; }
/* services.js sets --p from 0 to 1 as each paragraph passes; without the
   script the copy is simply full colour */
.fill-text {
  --p: 1;
  color: color-mix(in srgb, var(--ink) calc(var(--p) * 100%), color-mix(in srgb, var(--ink) 22%, transparent));
}
.js .fill-text { --p: 0; }

/* ── What's included ─────────────────────────────────────────────── */
/* site.css caps section headings at 14ch; this one reads better wider */
.section__head--wide .t-display { max-width: 22ch; }
.features {
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { min-height: 17rem; }
.feature__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
  padding-bottom: var(--space-lg);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: calc(var(--radius-well) * .75);
  background: var(--brand-accent);
  color: var(--brand-white);
  transition: rotate .5s var(--ease-button);
}
.feature__icon svg { width: 1.5rem; height: 1.5rem; }
@media (hover: hover) { .feature:hover .feature__icon { rotate: -8deg; } }

/* the five steps reuse the homepage .process/.step, minus the pills */
.process--plain .step { min-height: 16rem; }
.process--plain .step p { margin-top: auto; }
@media (max-width: 47.99rem) {
  .process--plain .step { min-height: 0; }
  .process--plain .step .t-title { margin-top: var(--space-sm); }
}

/* ── Call to action ──────────────────────────────────────────────── */
.cta-band { padding-block: var(--space-2xl); }
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-lg);
  justify-items: start;
}
.cta-band__inner .t-display { max-width: 15ch; text-wrap: balance; }

/* ── More services ───────────────────────────────────────────────── */
.more-grid { display: grid; gap: var(--space-xs); }
.more-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-card);
  background: var(--panel);
  transition: background var(--dur-base) var(--ease-out);
}
.more-card__text { display: grid; gap: var(--space-xs); }
.more-card__label {
  font-size: var(--text-caption);
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: uppercase;
}
.more-card__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--brand-white);
  transition: transform .5s var(--ease-button);
}
.more-card__arrow svg { width: 1.25rem; height: 1.25rem; }
@media (hover: hover) {
  .more-card:hover .more-card__arrow { transform: rotate(-45deg); }
}

/* ── Career: the empty state ─────────────────────────────────────── */
.empty {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-md);
}
@media (min-width: 64rem) {
  .empty { grid-template-columns: repeat(12, minmax(0, 1fr)); padding: var(--space-xl) var(--space-lg); }
  .empty__lead { grid-column: 1 / span 6; }
  .empty__aside { grid-column: 8 / -1; }
}
.empty__lead { display: grid; gap: var(--space-md); align-content: start; }
.empty__aside { display: grid; gap: var(--space-md); align-content: end; justify-items: start; }
.empty__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-well);
  background: var(--canvas);
  color: var(--ink);
}
.empty__icon svg { width: 1.75rem; height: 1.75rem; }
.status--off::before {
  background: var(--ink-soft);
  animation: none;
}
.badge {
  display: inline-flex;
  width: fit-content;
  padding: .5rem .875rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  font-size: .875rem;
}
