/* ===========================================================================
   Awamu IT Group RSA — under-construction landing page
   Aesthetic: deep navy ground drawn from the Awamu Group mosaic-globe logo,
   with the logo's crimson as the hot accent, blueprint rule work and technical
   monospace labelling. Palette source of truth: public/assets/logo-mark.png —
   navy #003c61, red #c10016.
   =========================================================================== */

:root {
  --ink:        #0a1a28;
  --ink-deep:   #06121c;
  --surface:    #0f2436;
  --surface-hi: #143048;
  --line:       rgba(143, 196, 226, 0.16);
  --line-soft:  rgba(143, 196, 226, 0.08);

  --paper:      #eef4f9;
  --paper-mid:  rgba(238, 244, 249, 0.68);
  --paper-low:  rgba(238, 244, 249, 0.42);

  /* Logo navy is too dark to read as an accent on a navy ground, so the
     accent pair is that same hue brightened; --navy stays for solid fills. */
  --navy:       #003c61;
  --sky:        #5aa8d6;
  --sky-hi:     #8fc4e2;
  --red:        #c10016;
  --red-hi:     #e01c33;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-mono:    "Martian Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: clamp(1.35rem, 5vw, 5.5rem);
  --rule: 1px solid var(--line);
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.1rem);
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  /* Blueprint grid, drawn once on the page ground. */
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 74px 74px, 74px 74px;
  background-position: center top;
}

/* --- fixed atmospheric layers (never scroll, never interactive) ---------- */

.grain,
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow {
  background:
    radial-gradient(58% 44% at 14% 4%, rgba(90, 168, 214, 0.17), transparent 68%),
    radial-gradient(52% 50% at 96% 88%, rgba(193, 0, 22, 0.14), transparent 70%),
    linear-gradient(180deg, transparent 55%, var(--ink-deep) 100%);
}

.grain {
  opacity: 0.32;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter) clamp(2rem, 5vw, 4rem);
}

/* --- shared type ---------------------------------------------------------- */

.eyebrow {
  margin: 0 0 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
}

/* --- masthead ------------------------------------------------------------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
  border-bottom: var(--rule);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.lockup__mark {
  width: clamp(44px, 4.6vw, 54px);
  height: auto;
  padding: 5px;
  background: var(--paper);
  border-radius: 9px;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.85);
  transition: transform 0.5s var(--ease);
}

.lockup:hover .lockup__mark { transform: rotate(-6deg) scale(1.06); }

.lockup__text { display: flex; align-items: baseline; gap: 0.5rem; }

.lockup__name {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.32rem);
  font-weight: 700;
  font-variation-settings: "wdth" 88;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lockup__thin { font-weight: 300; color: var(--paper-mid); }

.lockup__region {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  padding: 0.24rem 0.42rem;
  color: var(--sky-hi);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.44rem 0.85rem 0.44rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-hi);
  background: rgba(90, 168, 214, 0.07);
  border: 1px solid var(--line);
  border-radius: 100px;
}

.chip__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-hi);
  box-shadow: 0 0 0 0 rgba(224, 28, 51, 0.55);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224, 28, 51, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(224, 28, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 28, 51, 0); }
}

/* --- stage: asymmetric split --------------------------------------------- */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-top: clamp(2.75rem, 7vw, 6rem);
}

/* --- hero ----------------------------------------------------------------- */

.hero__title {
  margin: 0;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__line { display: block; }

.hero__line--sm {
  font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.6rem);
  font-weight: 400;
  font-variation-settings: "wdth" 96;
  letter-spacing: -0.01em;
  color: var(--paper-mid);
  margin-bottom: 0.5rem;
}

.hero__line--lg {
  font-size: clamp(3rem, 1.6rem + 8.4vw, 7.6rem);
  font-variation-settings: "wdth" 82, "opsz" 96;
  background: linear-gradient(94deg, var(--paper) 18%, var(--sky-hi) 62%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* nudged out of the text column for a grid-breaking edge */
  margin-left: -0.055em;
}

.hero__lede {
  max-width: 46ch;
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
  color: var(--paper-mid);
  text-wrap: pretty;
}

.hero__lede strong { color: var(--paper); font-weight: 600; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.6rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.82rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 0.28s var(--ease), background-color 0.28s var(--ease),
              border-color 0.28s var(--ease), color 0.28s var(--ease);
}

.btn svg { transition: transform 0.28s var(--ease); }

.btn--solid {
  color: var(--paper);
  background: linear-gradient(100deg, var(--red-hi), var(--red) 130%);
  box-shadow: 0 10px 28px -14px rgba(193, 0, 22, 0.85);
}

.btn--solid:hover { transform: translateY(-2px); }
.btn--solid:hover svg { transform: translateX(3px); }

.btn--ghost {
  color: var(--paper-mid);
  border-color: var(--line);
}

.btn--ghost:hover {
  color: var(--paper);
  border-color: var(--sky);
  background: rgba(90, 168, 214, 0.06);
  transform: translateY(-2px);
}

.btn:focus-visible,
.lockup:focus-visible,
a:focus-visible {
  outline: 2px solid var(--sky-hi);
  outline-offset: 3px;
}

/* --- build-log panel ------------------------------------------------------ */

.panel {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: linear-gradient(168deg, var(--surface-hi), var(--surface) 62%);
  border: var(--rule);
  border-radius: 6px;
  box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.9);
  /* off-axis so the panel reads as a physical card pinned to the grid */
  transform: rotate(-0.7deg);
  margin-top: clamp(0.5rem, 2vw, 1.75rem);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: var(--rule);
}

.panel__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}

.panel__meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--paper-low);
}

.gauge { padding: 1.35rem 0 1.5rem; }

.gauge__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.gauge__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-mid);
}

.gauge__value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variation-settings: "wdth" 85;
  letter-spacing: -0.02em;
  color: var(--sky-hi);
}

.gauge__track {
  position: relative;
  height: 5px;
  border-radius: 100px;
  background: rgba(238, 244, 249, 0.08);
  overflow: hidden;
}

.gauge__fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0.432);
  border-radius: 100px;
  background: linear-gradient(90deg, var(--red), var(--sky-hi));
  animation: fill 1.5s 0.5s var(--ease) both;
}

@keyframes fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(0.432); }
}

.log {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule);
}

.log__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.82rem 0;
  border-bottom: var(--rule);
  font-size: 0.92rem;
}

.log__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--paper-low);
}

.log__name { color: var(--paper-mid); }

.log__state {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-low);
}

.log__item.is-done .log__dot { background: var(--sky); border-color: var(--sky); }
.log__item.is-done .log__name { color: var(--paper); }
.log__item.is-done .log__state { color: var(--sky); }

.log__item.is-active .log__dot {
  border-color: var(--sky-hi);
  background: transparent;
  animation: blink 1.9s steps(1, end) infinite;
}
.log__item.is-active .log__name { color: var(--paper); }
.log__item.is-active .log__state { color: var(--sky-hi); }

@keyframes blink {
  0%, 49%  { background: var(--sky-hi); }
  50%, 100% { background: transparent; }
}

.panel__foot {
  margin: 1.25rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--paper-low);
}

/* --- services ------------------------------------------------------------- */

.services {
  grid-column: 1 / -1;
  margin-top: clamp(4rem, 9vw, 8.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: var(--rule);
}

.services__intro { max-width: 34ch; }

.services__title {
  margin: 0;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  font-weight: 600;
  font-variation-settings: "wdth" 88;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.services__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
  margin: clamp(2.25rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

/* staggered vertical rhythm: the right column rides low against the left */
.services__list > li:nth-child(even) { margin-top: clamp(0rem, 2vw, 2.2rem); }

.service {
  position: relative;
  padding: 1.5rem 0 1.5rem 3.1rem;
  border-bottom: var(--rule);
}

.service__num {
  position: absolute;
  top: 1.62rem;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--sky);
}

.service__num::after {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.5rem;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--sky), transparent);
  transition: height 0.4s var(--ease);
}

.service:hover .service__num::after { height: 1.6rem; }

.service__name {
  margin: 0 0 0.4rem;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  font-weight: 600;
  font-variation-settings: "wdth" 92;
  letter-spacing: -0.018em;
}

.service__copy {
  margin: 0;
  max-width: 42ch;
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--paper-low);
}

/* --- footer --------------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: baseline;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: var(--rule);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--paper-low);
}

.footer__brand,
.footer__note,
.footer__copy { margin: 0; }

.footer__brand {
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer__copy { margin-left: auto; }

.footer a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.footer a:hover { border-bottom-color: var(--sky); }

/* --- entrance choreography ------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .masthead,
  .hero .eyebrow,
  .hero__line--sm,
  .hero__line--lg,
  .hero__lede,
  .actions,
  .panel,
  .services {
    animation: rise 0.85s var(--ease) both;
  }

  .masthead        { animation-delay: 0.05s; }
  .hero .eyebrow   { animation-delay: 0.18s; }
  .hero__line--sm  { animation-delay: 0.26s; }
  .hero__line--lg  { animation-delay: 0.34s; }
  .hero__lede      { animation-delay: 0.46s; }
  .actions         { animation-delay: 0.56s; }
  .panel           { animation: rise-tilt 0.95s 0.5s var(--ease) both; }
  .services        { animation-delay: 0.68s; }
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes rise-tilt {
  from { opacity: 0; transform: translate3d(0, 26px, 0) rotate(1.6deg); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) rotate(-0.7deg); }
}

/* --- responsive collapse -------------------------------------------------- */

@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); row-gap: clamp(2.5rem, 7vw, 4rem); }
  .panel { transform: none; margin-top: 0; }
  .services__list { grid-template-columns: minmax(0, 1fr); }
  .services__list > li:nth-child(even) { margin-top: 0; }
  .footer__copy { margin-left: 0; }

  @media (prefers-reduced-motion: no-preference) {
    .panel { animation: rise 0.85s 0.5s var(--ease) both; }
  }
}

@media (max-width: 520px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .hero__line--lg { margin-left: -0.03em; }
  .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .chip__pulse,
  .log__item.is-active .log__dot { animation: none; }
  .log__item.is-active .log__dot { background: var(--sky-hi); }
  .gauge__fill { animation: none; }
  * { scroll-behavior: auto; }
}
