/* RubySDK standalone stylesheet.
   Tokens from documents/brand-tokens/rubysdk-design-tokens.md. The logo, the
   hero treatment and the grid are taken from the rubysdk.com source at
   src/components/Logo.tsx, HeroPattern.tsx and GridPattern.tsx.
   This page carries no styles from any other site. */

:root {
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  --brand-deep: #420f14;
  --brand-rose: #c5545e;
  --accent: #fb2c36;
  --accent-text: #e7000b;
  --accent-deep: #82181a;
  --accent-soft: #fef2f2;

  --paper: #ffffff;
  --paper-soft: #fafafa;
  --paper-tint: #f4f4f5;

  --text: #18181b;
  --text-body: #3f3f47;
  --text-muted: #52525c;
  --text-dim: #71717b;

  --border: rgba(24, 24, 27, 0.05);
  --line: #e4e4e7;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  --r-md: 0.375rem;
  --r-lg: 0.5rem;
  --r-2xl: 1rem;
  --r-full: 9999px;

  --maxw: 66rem;
}

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

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

body {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75rem;
  font-weight: 400;
  color: var(--text-body);
  background: var(--paper);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ---------- hero treatment ----------
   HeroPattern.tsx: a 25rem band pinned to the top, centred on the viewport and
   pulled 38rem left, carrying the brand gradient at 40% opacity, masked with a
   radial gradient from the top, with the skewed grid over it and the white
   blurred shape on top. */

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34rem;
  overflow: hidden;
  pointer-events: none;
}

.hero-pattern-band {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -38rem;
  height: 25rem;
  width: 81.25rem;
}

.hero-pattern-wash {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: linear-gradient(to right, var(--brand-deep), var(--brand-rose));
  -webkit-mask-image: radial-gradient(farthest-side at top, white, transparent);
  mask-image: radial-gradient(farthest-side at top, white, transparent);
}

.hero-pattern-grid {
  position: absolute;
  left: 0;
  right: 0;
  top: -50%;
  bottom: -50%;
  width: 100%;
  height: 200%;
  transform: skewY(-18deg);
  fill: rgba(130, 24, 26, 0.8);
  stroke: rgba(130, 24, 26, 0.9);
  mix-blend-mode: overlay;
}

.hero-pattern-glow {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -19rem;
  width: 69.5625rem;
  fill: #ffffff;
  filter: blur(26px);
}

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

.masthead {
  position: relative;
  z-index: 1;
  padding: var(--sp-8) 0;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.logo {
  display: block;
  height: 4rem;
  width: auto;
}

/* Quiet download of the capability deck, opposite the logo. Part of the
   furniture, not a call to action: dim until hover or keyboard focus. */
.deck-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: var(--sp-2);
  color: var(--text-dim);
  text-decoration: none;
  border-radius: var(--r-md);
}

.deck-link svg {
  display: block;
  width: 20px;
  height: 20px;
}

.deck-link:hover { color: var(--accent-text); }

.deck-link:focus-visible {
  color: var(--accent-text);
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- sections ---------- */

main, footer { position: relative; z-index: 1; }

section { padding: var(--sp-16) 0; }

section + section { border-top: 1px solid var(--line); }

#proposition { padding-top: var(--sp-8); padding-bottom: var(--sp-16); }

.eyebrow {
  margin: 0 0 var(--sp-3);
  font-size: 0.75rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
}

h1 {
  margin: 0 0 var(--sp-6);
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h2 {
  margin: 0 0 var(--sp-6);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

h3 {
  margin: 0 0 var(--sp-2);
  font-size: 0.875rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

p { margin: 0 0 var(--sp-4); }

p:last-child { margin-bottom: 0; }

.lead {
  max-width: 44rem;
  font-size: 1.125rem;
  line-height: 1.875rem;
}

.note {
  max-width: 44rem;
  margin-top: var(--sp-8);
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--text-dim);
}

/* ---------- capability deck download ----------
   Sits under the proposition. Built from the same parts as the contact link:
   the accent red, the thin underline, no fill and no box, so it reads as a
   line of the page rather than as a button. */

/* ---------- phases ---------- */

.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.phase-num {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: 0.75rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--text-dim);
}

.phase h3 {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.phase ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase li {
  margin-bottom: var(--sp-3);
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.phase li:last-child { margin-bottom: 0; }

.phase li b { color: var(--text); font-weight: 600; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

@media (min-width: 641px) {
  .cards.two, .blocks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: transparent;
}

.card .icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: var(--sp-6);
  color: var(--accent);
}

/* The four component icons and the three client icons are one drawn set,
   carried over from the RubySDK capability deck, at 28px in the accent red. */

.card p {
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--text-muted);
}

/* ---------- platform blocks ---------- */

.blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.block {
  padding-top: var(--sp-4);
  border-top: 2px solid var(--line);
}

.block h3 { font-size: 1rem; margin-bottom: var(--sp-3); }

.block p {
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--text-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  line-height: 1.5rem;
  color: var(--text-body);
}

/* ---------- sector strip ---------- */

.strip {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}

.strip .eyebrow { margin-bottom: var(--sp-2); }

.strip p {
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--text-muted);
}

/* ---------- principals ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.person {
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
}

.person h3 { font-size: 1.125rem; margin-bottom: var(--sp-1); }

.person .role {
  margin-bottom: var(--sp-4);
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--text-dim);
}

.person ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.person li {
  padding-left: var(--sp-4);
  position: relative;
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.person li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--accent);
}

/* ---------- contact ---------- */

.contact { padding-top: var(--sp-12); }

.contact a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 0, 11, 0.3);
}

.contact a:hover,
.contact a:focus-visible { border-bottom-color: var(--accent-text); }

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

footer {
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.5rem;
  color: var(--text-dim);
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  :root { --maxw: 100%; }
  .wrap { padding: 0 var(--sp-4); }
  section { padding: var(--sp-12) 0; }
  #proposition { padding-top: var(--sp-6); padding-bottom: var(--sp-12); }
  .logo { height: 3.25rem; }
  .hero-pattern { height: 26rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  .phases, .cards, .blocks, .people { gap: var(--sp-6); margin-top: var(--sp-8); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
