/* ─── who-we-are.html + careers.html ───────────────────────────
   Same tokens, shell and motion as the home page — these pages add layout
   primitives only. Nothing here overrides style.css.

   Width: every section uses `.shell` (1500px) or `.band--wide > .shell`
   (1840px), matching the home page. No page-specific max-widths.
   ──────────────────────────────────────────────────────────── */

/* ─── Page hero (shorter than the home hero — no particle stage) ── */
.page-hero {
  position: relative;
  padding-block: clamp(9rem, 18vh, 13rem) clamp(3.5rem, 7vw, 6rem);
  background: transparent;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 10, 32, 0.95) 0%, rgba(4, 10, 32, 0.8) 42%,
                    rgba(4, 10, 32, 0.35) 68%, rgba(4, 10, 32, 0.14) 100%),
    linear-gradient(180deg, rgba(4, 10, 32, 0.86) 0%, transparent 24%);
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  min-height: 0;              /* the home page reserves intro space; here it'd be a gap */
  max-width: 20ch;
}
.page-hero .lede {
  max-width: 58ch;
  font-size: clamp(1.12rem, 1.5vw, 1.34rem);
}

/* .body-lg has no bottom margin in style.css — fine on the home page, where it
   is always a single paragraph per block. These pages stack two, which ran
   them together into one wall of text. */
.band .body-lg + .body-lg { margin-top: 1.3rem; }

/* ─── Working backwards: the outcome panel ────────────────────── */
.backwards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 1000px) { .backwards { grid-template-columns: 1fr; } }

/* Shows the OUTPUT of the method (one agreed outcome), never the method itself.
   Class name is historical — it previously rendered an internal PR/FAQ template,
   which was public disclosure of our own IP. See README "Disclosure discipline". */
.prfaq {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(18, 35, 90, 0.9), rgba(13, 26, 68, 0.9));
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  box-shadow: 0 30px 80px rgba(3, 8, 26, 0.5);
}
.prfaq-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.prfaq-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}
.prfaq-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.prfaq h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.prfaq p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}
.prfaq dl { display: grid; gap: 0.85rem; margin-top: 1.2rem; }
.prfaq dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.2rem;
}
.prfaq dd { margin: 0; color: var(--paper); font-size: 0.92rem; line-height: 1.55; }

/* ─── Assess / Align / Accelerate ────────────────────────────
   Three phases with the artifact each one produces. Numbered, because it is a
   real sequence — same reasoning as `.method` on the home page. */
.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
  counter-reset: phase;
}
@media (max-width: 1000px) { .phases { grid-template-columns: 1fr; } }
.phase {
  counter-increment: phase;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  padding: 1.9rem 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s;
}
.phase:hover { border-color: rgba(124, 160, 255, 0.45); }
.phase::before {
  content: counter(phase, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}
.phase h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.phase > p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; margin-bottom: 1.3rem; }
.phase-out {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.phase-out dt {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.3rem;
}
.phase-out dd { margin: 0; color: var(--paper); font-size: 0.93rem; font-weight: 500; line-height: 1.5; }
/* Align is the phase most firms skip — it carries the accent. */
.phase--key { background: linear-gradient(160deg, rgba(28, 48, 110, 0.95), rgba(18, 35, 90, 0.95)); }
.phase--key::before { color: var(--violet); }

/* ─── Specialities ───────────────────────────────────────────
   Icon treatment is split by icon family, deliberately:
     · `.svc-tile`  — official AWS Architecture Icons. They carry their own
       coloured tile and pass contrast on the dark ground (measured 4.1–7.9:1),
       so they go bare. A panel behind them would be a box in a box.
     · `.svc-panel` — the AgentCore line-art set and Quick Sight. Their black
       strokes / dark purple measure 1.1–1.9:1 here, i.e. invisible. They sit
       on a light panel, unmodified — which is also what AWS brand guidance
       prefers for a mark on a dark field.
   Never invert or recolour AWS artwork to solve this. */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 1150px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .spec-grid { grid-template-columns: 1fr; } }

.spec {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  padding: 1.8rem 1.7rem 1.5rem;
  transition: border-color 0.35s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.spec:hover { border-color: rgba(124, 160, 255, 0.45); transform: translateY(-3px); }
.spec h3 {
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.spec > p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.3rem; }
.spec-flag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(92, 206, 245, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.9rem;
}

/* Icon row */
.svc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.svc-tile, .svc-panel {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  flex: none;
}
.svc-tile img { width: 34px; height: 34px; object-fit: contain; display: block; }
.svc-panel {
  background: #fff;
  border: 1px solid rgba(195, 208, 239, 0.22);
}
.svc-panel img { width: 27px; height: 27px; object-fit: contain; display: block; }
/* Services with no published icon (Contact Lens, Kiro, Iceberg) get the same
   mono treatment the stack diagrams already use, so the row stays coherent. */
.svc-word {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.42rem 0.55rem;
  white-space: nowrap;
}

/* ─── AWS partner strip ──────────────────────────────────────
   The AWS mark on a light panel: its wordmark is rgb(37,47,62), which is
   ~1.4:1 on --ink. Unmodified logo, light field. */
.partner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.8rem);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(70% 140% at 8% 50%, rgba(255, 153, 0, 0.1), transparent 60%),
    linear-gradient(160deg, var(--ink-3), var(--ink-2));
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
@media (max-width: 700px) { .partner { grid-template-columns: 1fr; } }
.partner-mark {
  display: grid;
  place-items: center;
  width: 132px; height: 92px;
  border-radius: 16px;
  background: #fff;
  flex: none;
}
.partner-mark img { width: 92px; height: auto; display: block; }
.partner h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; margin-bottom: 0.55rem; letter-spacing: -0.02em; }
.partner p { color: var(--muted); font-size: 1rem; line-height: 1.65; max-width: 62ch; }

/* ─── Proof strip (credentials) ──────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.3rem;
}

/* ─── Careers: role list ─────────────────────────────────────
   <details>/<summary>, not a JS accordion: keyboard and screen-reader
   behaviour is native, it works with no JS at all, and Cmd-F finds collapsed
   text in most browsers. */
.roles { display: grid; gap: 1.1rem; }
.role {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  overflow: hidden;
  transition: border-color 0.35s;
}
.role[open], .role:hover { border-color: rgba(124, 160, 255, 0.45); }
.role summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.5rem 1.7rem;
  cursor: pointer;
  list-style: none;
}
.role summary::-webkit-details-marker { display: none; }
.role summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.role-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.role-title span { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 400; font-family: var(--font-body); margin-top: 0.2rem; }
.role-exp {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(92, 206, 245, 0.4);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  white-space: nowrap;
}
/* Chevron rotates on open */
.role-caret {
  width: 11px; height: 11px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.3s, border-color 0.3s;
  flex: none;
}
.role[open] .role-caret { transform: rotate(-135deg); border-color: var(--cyan); }
@media (max-width: 640px) {
  .role summary { grid-template-columns: minmax(0, 1fr) auto; }
  .role-exp { grid-column: 1 / -1; justify-self: start; }
}

.role-body {
  padding: 0 1.7rem 1.7rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 0.2rem;
}
@media (max-width: 1000px) { .role-body { grid-template-columns: 1fr; } }
.role-body h4 {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.8rem;
  font-weight: 400;
}
.role-body ul { list-style: none; display: grid; gap: 0.55rem; margin-bottom: 1.5rem; }
.role-body li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.role-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.role-body strong { color: var(--paper); font-weight: 500; }
/* Sticky, and `align-self: start` rather than stretch: the meta panel is much
   shorter than the responsibilities column, so stretching it left a large void
   under the Apply button on the longer roles. */
.role-meta {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 16, 51, 0.5);
  align-content: start;
  align-self: start;
  position: sticky;
  top: 6.5rem;
}
@media (max-width: 1000px) { .role-meta { position: static; } }
.role-meta div { display: grid; gap: 0.2rem; }
.role-meta dt {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.role-meta dd { margin: 0; color: var(--paper); font-size: 0.92rem; line-height: 1.5; }
.role-meta .btn { margin-top: 0.4rem; text-align: center; padding: 0.7rem 1.2rem; font-size: 0.92rem; }

/* ─── Careers culture pillars ────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  border-top: 2px solid transparent;
  border-image: var(--grad) 1;
  padding-top: 1.4rem;
}
.pillar h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.pillar p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; }

/* ─── Shared closing CTA ─────────────────────────────────────── */
.close-cta { text-align: center; }
.close-cta h2 { margin-inline: auto; max-width: 22ch; }
.close-cta .body-lg { margin: 0 auto 2rem; max-width: 56ch; }
.close-cta .hero-actions { justify-content: center; }
