/* ============================================================
   Cloud Nine — page sections
   ============================================================ */

/* ============================================================
   PLACEHOLDER CONTENT — everything awaiting real assets lives
   here or is marked in the HTML with data-placeholder.

   No invented metric is presented as real. Placeholder figures
   render as an em-dash rule plus a visible "placeholder" tag,
   so nothing fabricated can reach production by accident.
   Replace the content, then delete this block.
   ============================================================ */

[data-placeholder] {
  position: relative;
}

.metric__value[data-placeholder]::before {
  content: "———";
  letter-spacing: 0.06em;
  opacity: 0.42;
}

.metric__value[data-placeholder]::after {
  content: "placeholder";
  display: block;
  margin-top: 0.5em;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--daybreak-deep);
  opacity: 0.85;
}

/* Image slots awaiting campaign stills or creator photography. */
.slot {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background:
    linear-gradient(
      145deg,
      rgba(201, 214, 232, 0.16),
      rgba(46, 68, 104, 0.24) 58%,
      rgba(11, 16, 32, 0.32)
    ),
    var(--stratus);
  border: 1px solid var(--rule);
}

.slot::after {
  content: attr(data-slot);
  position: absolute;
  left: var(--s-3);
  bottom: var(--s-3);
  font-family: var(--font-readout);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.5);
}

.slot--portrait {
  aspect-ratio: 4 / 5;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  /* Fills the viewport below the masthead, no more. */
  min-height: min(84vh, 46rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--s-5) var(--s-4);
}

/* The cue sits on the bottom edge of the first screen, where the
   eye lands when it runs out of headline. */
.hero .wrap:last-child,
.hero__cue {
  margin-top: auto;
}

.hero__inner {
  max-width: 22ch;
}

.hero__sub {
  max-width: 44ch;
  margin-top: var(--s-4);
}

.hero__horizon {
  margin-top: var(--s-6);
  margin-bottom: var(--s-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-5);
}

/* A quiet cue that the page is a climb. */
.hero__cue {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-6);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__cue-line {
  display: block;
  width: 3.4rem;
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}

.hero__cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--daybreak);
  transform-origin: left;
  animation: cue 3.4s var(--ease-soft) infinite;
}

@keyframes cue {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  35% {
    transform: scaleX(1);
    opacity: 1;
  }
  70%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cue-line::after {
    animation: none;
    opacity: 0.6;
    transform: scaleX(1);
  }
}

/* ============================================================
   Statement — the positioning line, set large and alone
   ============================================================ */

.statement {
  display: grid;
  gap: var(--s-4) var(--s-6);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

@media (min-width: 900px) {
  .statement {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

.statement__text {
  max-width: 20ch;
}

.statement__note {
  max-width: 42ch;
  padding-bottom: 0.5em;
}

/* ============================================================
   The fork — two sides of the same relationship
   ============================================================ */

/* Dividers are drawn as borders, not as a gap over a coloured
   background — the sky has to show through the panels. */
.fork {
  display: grid;
  grid-template-columns: 1fr;
  border-block: 1px solid var(--rule);
}

.fork__side + .fork__side {
  border-top: 1px solid var(--rule);
}

@media (min-width: 860px) {
  .fork {
    grid-template-columns: 1fr 1fr;
  }

  .fork__side + .fork__side {
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
}

.fork__side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6) clamp(1.35rem, 3vw, 2.8rem);
  background: transparent;
  text-decoration: none;
  isolation: isolate;
  transition: background-color var(--dur) var(--ease-soft);
}

/* The warm rule arrives from the left on hover. */
.fork__side::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--daybreak);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease-out);
}

.fork__side:hover,
.fork__side:focus-visible {
  background: rgba(201, 214, 232, 0.05);
}

.fork__side:hover::before,
.fork__side:focus-visible::before {
  transform: scaleY(1);
}

.fork__who {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--daybreak);
}

.fork__body {
  color: var(--muted);
  max-width: 38ch;
  flex: 1;
}

.fork__more {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: var(--s-3);
  font-size: var(--step--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--strong);
}

.fork__side:hover .link__arrow {
  transform: translateX(0.32em);
}

/* ============================================================
   Platforms
   ============================================================ */

.platforms {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  margin-top: var(--s-5);
}

.platform {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  transition: border-color var(--dur) var(--ease-soft);
}

.platform:hover {
  border-top-color: var(--daybreak);
}

.platform__icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--strong);
  opacity: 0.9;
}

.platform__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 28, "WONK" 1;
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--strong);
}

.platform__note {
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   Brand marquee — typographic wordmarks, no logo files needed
   ============================================================ */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-4);
  border-block: 1px solid var(--rule);
  /* Fade the ends so the loop never visibly cuts. */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(2.2rem, 5vw, 4.6rem);
  animation: marquee 52s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-size: var(--step-2);
  font-weight: 300;
  letter-spacing: -0.015em;
  white-space: nowrap;
  color: var(--strong);
  opacity: 0.62;
  transition: opacity var(--dur-fast) var(--ease-soft);
}

.marquee__item:hover {
  opacity: 1;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  /* The track holds the list twice; -50% lands exactly on the seam. */
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    row-gap: var(--s-3);
  }

  /* The second copy exists only to make the loop seamless. With no
     loop running it is just the list printed twice. */
  .marquee__item[aria-hidden="true"] {
    display: none;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ============================================================
   Metrics
   ============================================================ */

.metrics {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.metric {
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}

.metric__value {
  font-family: var(--font-readout);
  font-size: var(--step-3);
  font-weight: 300;
  color: var(--strong);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.metric__label {
  margin-top: var(--s-2);
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 22ch;
}

/* ============================================================
   Process — a real sequence, so the numbering is earned
   ============================================================ */

.process {
  border-top: 1px solid var(--rule);
  margin-top: var(--s-5);
}

.step {
  display: grid;
  gap: var(--s-2) var(--s-5);
  grid-template-columns: 4rem 1fr;
  align-items: start;
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule);
}

.step__num {
  font-family: var(--font-readout);
  font-size: var(--step--1);
  color: var(--daybreak);
  padding-top: 0.45em;
}

.step__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 28, "WONK" 1;
  font-size: var(--step-2);
  font-weight: 300;
  color: var(--strong);
}

.step__body {
  color: var(--muted);
  max-width: 52ch;
  margin-top: var(--s-2);
}

@media (max-width: 560px) {
  .step {
    grid-template-columns: 1fr;
    gap: var(--s-1);
  }

  .step__num {
    padding-top: 0;
  }
}

/* ============================================================
   Service detail
   ============================================================ */

.service {
  display: grid;
  gap: var(--s-5) var(--s-6);
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--section-y);
  border-top: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  }
}

.service__head {
  position: relative;
}

@media (min-width: 900px) {
  .service__head {
    position: sticky;
    top: 8rem;
    align-self: start;
  }
}

.service__intro {
  margin-top: var(--s-3);
  color: var(--muted);
  max-width: 40ch;
}

.capabilities {
  display: grid;
  gap: 0;
}

.capability {
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule);
}

.capability:first-child {
  padding-top: 0;
}

.capability__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 28, "WONK" 1;
  font-size: var(--step-1);
  font-weight: 400;
  color: var(--strong);
}

.capability__body {
  margin-top: var(--s-2);
  color: var(--muted);
  max-width: 54ch;
}

/* ============================================================
   Portfolio
   ============================================================ */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-block: var(--s-5) var(--s-3);
}

.filters__legend {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: var(--s-2);
}

.filter {
  padding: 0.5em 1.1em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    background-color var(--dur-fast) var(--ease-soft);
}

.filter:hover {
  color: var(--strong);
  border-color: var(--daybreak);
}

.filter[aria-pressed="true"] {
  color: var(--ink);
  background: var(--daybreak);
  border-color: var(--daybreak);
}

.filters__count {
  margin-left: auto;
  font-family: var(--font-readout);
  font-size: var(--step--1);
  color: var(--muted);
}

.work-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(14.5rem, 100%), 1fr));
  margin-top: var(--s-4);
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: rgba(11, 16, 32, 0.14);
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-soft),
    background-color var(--dur) var(--ease-soft);
}

.work-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--daybreak);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease-out);
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(227, 183, 127, 0.4);
  background: rgba(11, 16, 32, 0.22);
}

.work-card:hover::before,
.work-card:focus-within::before {
  transform: scaleY(1);
}

.work-card[hidden] {
  display: none;
}

.work-card__brand {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-size: var(--step-2);
  font-weight: 300;
  letter-spacing: -0.018em;
  color: var(--strong);
  line-height: 1.15;
}

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-2);
  align-items: center;
}

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.28em 0.7em;
  border: 1px solid var(--rule);
  border-radius: 999px;
}

.tag--service {
  color: var(--daybreak);
  border-color: rgba(227, 183, 127, 0.34);
}

.work-empty {
  padding-block: var(--s-6);
  text-align: center;
  color: var(--muted);
}

.work-empty[hidden] {
  display: none;
}

/* ============================================================
   Page intro — the short header on inner pages
   ============================================================ */

.page-head {
  padding-block: var(--s-6) var(--s-5);
}

.page-head__title {
  max-width: 18ch;
}

.page-head__sub {
  max-width: 46ch;
  margin-top: var(--s-4);
}

/* ============================================================
   Two-column prose
   ============================================================ */

.split {
  display: grid;
  gap: var(--s-5) var(--s-6);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }
}

.values {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-top: var(--s-5);
}

.value {
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}

.value__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 28, "WONK" 1;
  font-size: var(--step-1);
  font-weight: 400;
  color: var(--strong);
}

.value__body {
  margin-top: var(--s-2);
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--muted);
}

/* PLACEHOLDER: provisional-content notice. Delete with the content. */
.notice {
  padding: var(--s-3) var(--s-4);
  border: 1px dashed rgba(227, 183, 127, 0.4);
  border-radius: 3px;
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--muted);
  background: rgba(227, 183, 127, 0.05);
}

.notice strong {
  color: var(--daybreak);
  font-weight: 400;
}
