/* ==========================================================================
   RUWY Media — shared styles
   Tokens mirror the Claude Design "Modern branding guidelines" project.
   Swap --ruwy-head / --ruwy-accent to retheme (see "Theme variants" below).
   ========================================================================== */

:root {
  /* Palette */
  --ink: #101010;
  --black: #000000;
  --white: #ffffff;
  --charcoal: #1c1c1c;
  --panel: #161616;
  --line-dark: #333333;
  --line-light: #ced2d8;
  --mist: #ced2d8;
  --muted: #6b7078;
  --blue: #1F2BF3;
  --sky: #85c2ff;
  --orange: #ff7415;

  /* Theme levers */
  --ruwy-head: 'Sora';
  --ruwy-head-weight: 700;
  --ruwy-head-ls: -0.045em;
  --ruwy-accent: var(--blue);
  --ruwy-on-accent: var(--white);
  --ruwy-spark: var(--sky);

  /* Layout */
  --wrap: clamp(1360px, 72vw, 1760px);
  --gutter: clamp(20px, 5vw, 64px);
  --font-body: 'Proxima Nova', 'proxima-nova', 'Figtree', sans-serif;
  --font-head: var(--ruwy-head), 'Figtree', sans-serif;
  --gradient-edge: linear-gradient(160deg, var(--sky) 0%, var(--blue) 45%, var(--orange) 100%);
}

/* Theme variants (optional): add to <html> */
.accent-orange { --ruwy-accent: var(--orange); --ruwy-on-accent: var(--charcoal); --ruwy-spark: var(--orange); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
input, textarea, button { font: inherit; color: inherit; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }

.theme-dark a:hover { color: var(--sky); }
.theme-light { background: var(--white); color: var(--charcoal); }
.theme-light a:hover { color: var(--blue); }

.page { position: relative; min-height: 100vh; overflow: hidden; }

.wrap {
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font-head);
  font-weight: var(--ruwy-head-weight);
  letter-spacing: var(--ruwy-head-ls);
  text-wrap: balance;
}
.h1 { line-height: 0.92; }
.h2 { font-size: clamp(36px, 5.4vw, 84px); line-height: 0.98; max-width: 14ch; }
.h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; }
.lede { font-size: clamp(17px, 1.4vw, 20px); max-width: 44ch; text-wrap: pretty; }
.pretty { text-wrap: pretty; }
.dot-orange { color: var(--orange); }
.dot-spark { color: var(--ruwy-spark); }
.gradient-text {
  background: linear-gradient(95deg, var(--sky) 0%, var(--white) 40%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding: 0 0.06em 0.14em 0;
  display: inline-block;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow--both::after { content: ""; width: 40px; height: 1px; background: currentColor; flex-shrink: 0; }
.eyebrow--blue { color: var(--blue); }
.eyebrow--sky { color: var(--sky); }

.caps {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.text-sky { color: var(--sky); }
.text-blue { color: var(--blue); }
.text-mist { color: var(--mist); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  min-height: 52px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { padding: 14px 26px; min-height: 48px; }
.btn--primary { background: var(--ruwy-accent); color: var(--ruwy-on-accent); }
.theme-dark .btn--primary:hover { background: var(--white); color: var(--charcoal); }
.theme-light .btn--primary:hover,
.on-light .btn--primary:hover { background: var(--charcoal); color: var(--white); }
.btn--outline-dark { border: 1.5px solid var(--charcoal); background: transparent; color: var(--charcoal); }
.btn--outline-dark:hover { background: var(--charcoal); color: var(--white) !important; }
.btn--ghost { padding: 16px 8px; background: transparent; color: var(--white); gap: 12px; }
.btn--ghost .play {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid currentColor;
  display: grid; place-items: center; font-size: 11px;
}

.link-underline {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 4px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: relative;
  z-index: 2;
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: block;
  width: 132px;
  aspect-ratio: 841 / 430;
  overflow: hidden;
  flex-shrink: 0;
}
.logo img { width: 100%; margin-top: -25%; }
.logo--lg { width: 180px; }
.theme-dark .logo img { filter: invert(1) brightness(1.4); }

.main-nav {
  display: flex;
  gap: 6px clamp(10px, 1.5vw, 28px);
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.theme-dark .main-nav [aria-current="page"] { color: var(--sky); }
.theme-light .main-nav [aria-current="page"] { color: var(--blue); }

.header-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.theme-dark .header-cta { border: 1px solid var(--white); color: var(--white); }
.theme-dark .header-cta:hover { background: var(--white); color: var(--charcoal); }
.theme-light .header-cta { border: 1px solid var(--charcoal); background: var(--charcoal); color: var(--white); }
.theme-light .header-cta:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; row-gap: 12px; }
  .main-nav {
    order: 3;
    flex-basis: calc(100% + 2 * var(--gutter));
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 15px 0; flex-shrink: 0; }
}

/* ---------- Atmosphere: glows, grain ---------- */
.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  pointer-events: none;
}
.glow--blue   { background: radial-gradient(closest-side, rgba(31, 43, 243, var(--a, .8)), rgba(31, 43, 243, 0)); }
.glow--orange { background: radial-gradient(closest-side, rgba(255, 116, 21, var(--a, .75)), rgba(255, 116, 21, 0)); }
.glow--sky    { background: radial-gradient(closest-side, rgba(133, 194, 255, var(--a, .35)), rgba(133, 194, 255, 0)); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
}

.band-top { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .25); }
.band {
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { position: relative; }
.bg-ink { background: var(--ink); }
.bg-black { background: var(--black); }
.bg-white { background: var(--white); color: var(--charcoal); }
.rule-y { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.rule-b { border-bottom: 1px solid var(--line-dark); }

.stack { display: grid; }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 24px;
  align-items: end;
}

/* Numbered list rows (services, steps) */
.rows { display: grid; border-top: 1px solid var(--charcoal); }
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px 40px;
  align-items: baseline;
  padding: clamp(24px, 3vw, 40px) clamp(0px, 1vw, 16px);
  border-bottom: 1px solid var(--line-light);
  color: var(--charcoal);
  transition: background-color .25s, color .25s;
}
a.row:hover { background: var(--charcoal); color: var(--white) !important; }
.row__title { display: flex; gap: clamp(16px, 3vw, 48px); align-items: baseline; }
.row__num { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; }
.row__name {
  font-family: var(--font-head);
  font-weight: var(--ruwy-head-weight);
  letter-spacing: var(--ruwy-head-ls);
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1;
}
.row__desc { max-width: 48ch; text-wrap: pretty; }

/* Gradient-edged frame */
.edge {
  padding: 1px;
  border-radius: 8px;
  background: var(--gradient-edge);
  box-shadow: 0 30px 80px rgba(31, 43, 243, .25);
}
.edge > * { border-radius: 7px; overflow: hidden; }

/* ---------- Forms ---------- */
.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.field input, .field textarea {
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
}
.field textarea { resize: vertical; }
/* Underline style (dark) */
.field--line input, .field--line textarea {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  min-height: 48px;
}
.field--line input:focus, .field--line textarea:focus { border-bottom-color: var(--sky); }
.theme-dark ::placeholder { color: #8c9199; }
.theme-light ::placeholder { color: var(--muted); }
/* Boxed style (light) */
.field--box { gap: 8px; letter-spacing: 0.16em; }
.field--box input, .field--box textarea {
  padding: 14px 16px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--white);
  font-size: 17px;
}
.field--box input { min-height: 52px; }
.field--box input:focus, .field--box textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 43, 243, .15);
}
.field input:focus-visible, .field textarea:focus-visible { outline: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.chip:hover { border-color: var(--charcoal); }
.chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-dark); background: var(--black); }
.site-footer__inner {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: 32px;
  display: grid;
  gap: 40px;
  justify-items: center;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-meta {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: var(--mist);
}
.theme-light .site-footer { background: var(--mist); border-top-color: var(--charcoal); }
.theme-light .footer-meta { border-top-color: var(--charcoal); color: var(--charcoal); }

/* ---------- CTA section (shared) ---------- */
.cta-section { position: relative; overflow: hidden; background: var(--ink); }
.cta-section .h2 { font-size: clamp(40px, 6vw, 96px); line-height: 0.95; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: var(--ink);
}
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,16,16,.35) 0%, rgba(16,16,16,0) 30%, rgba(16,16,16,.85) 100%);
}
.eclipse {
  position: absolute;
  right: max(clamp(-60px, 5vw, 120px), calc((100vw - 1760px) / 2 + 40px));
  top: clamp(96px, 12vw, 180px);
  width: clamp(260px, 38vw, 600px);
  aspect-ratio: 1;
}
.eclipse__ring {
  position: absolute; inset: 0; border-radius: 999px;
  background: conic-gradient(from 210deg, var(--sky) 0deg, var(--blue) 90deg, var(--orange) 200deg, var(--white) 260deg, var(--sky) 360deg);
  box-shadow: 0 0 140px rgba(255,116,21,.45), 0 0 60px rgba(133,194,255,.35);
}
.eclipse__moon {
  position: absolute; inset: 0; border-radius: 999px; background: var(--ink);
  transform: translate(-7%, 6%) scale(0.985);
  box-shadow: inset -30px 30px 80px rgba(31,43,243,.35);
}
.hero__body {
  position: relative;
  z-index: 1;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(40px, 5vw, 72px);
  display: grid;
  align-content: end;
  gap: clamp(28px, 4vw, 48px);
}
.hero__title { font-size: clamp(48px, 9.4vw, 156px); max-width: 12ch; }
.hero__lede { font-size: clamp(18px, 1.6vw, 22px); max-width: 46ch; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 720px) {
  .hero { min-height: 0; }
  .eclipse { top: 196px; }
}

.section-pad { padding-block: clamp(80px, 11vw, 160px); }
.section-pad--md { padding-block: clamp(72px, 10vw, 140px); }

.founder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
}
.founder__copy {
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  display: grid;
  gap: 28px;
  align-content: center;
}
.founder__copy .h2 { font-size: clamp(34px, 4.4vw, 68px); line-height: 1; max-width: none; }
.founder__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.founder__list li {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line-dark);
}
.founder__list strong { display: block; font-weight: 600; font-size: 18px; }
.founder__list span.text-mist { font-size: 16px; }
.founder__photo-wrap {
  padding: clamp(20px, 4vw, 64px) var(--gutter);
  display: grid; justify-items: center; align-content: center;
}
.founder__photo-wrap .edge { width: 100%; max-width: clamp(320px, 34vw, 560px); }
.portrait { position: relative; background: var(--ink); }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 864 / 1184; object-fit: cover;
  filter: contrast(1.08) saturate(.82) brightness(.86);
}
.portrait::before, .portrait::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.portrait::before { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 38%); }
.portrait::after { background: linear-gradient(120deg, rgba(31,43,243,.22), rgba(255,116,21,.16)); mix-blend-mode: soft-light; }
.portrait figcaption {
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vw, 48px); z-index: 2;
  padding: 0 24px; display: grid; gap: 8px; justify-items: center; text-align: center;
}
.portrait__quote {
  font-size: clamp(18px, 1.7vw, 24px); font-weight: 500;
  text-shadow: 0 1px 12px rgba(0,0,0,.8); max-width: 28ch; text-wrap: balance;
}
.portrait figcaption .caps { text-shadow: 0 1px 8px rgba(0,0,0,.8); }

.home-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.glass-form {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  background: rgba(16,16,16,.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.glass-form .btn { justify-self: start; }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.pf-hero {
  position: relative; z-index: 1;
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.pf-hero .h1 { font-size: clamp(52px, 8vw, 128px); }
.collage { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1 / 0.84; justify-self: center; }
.collage img {
  position: absolute; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.65);
}
.collage img:nth-child(1) { left: 0; top: 4%; width: 78%; transform: rotate(-4deg); border: 1px solid var(--line-dark); }
.collage img:nth-child(2) { right: 0; top: 33%; width: 56%; transform: rotate(3deg); border: 1px solid var(--line-dark); }
.collage img:nth-child(3) { left: 9%; bottom: 0; width: 33%; transform: rotate(-2deg); }

.reel-nav a { display: flex; gap: 12px; align-items: baseline; letter-spacing: 0.18em; }
.reel-nav .n { color: var(--sky); }
.reel-nav .c { color: var(--mist); }

.reel { display: grid; gap: clamp(32px, 5vw, 64px); }
.reel__head { display: grid; gap: 20px; }
.gallery { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); align-items: start; }
.grid--2   { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid--cans { grid-template-columns: minmax(0, 7.92fr) minmax(0, 7.92fr) minmax(0, 16.34fr); }
.grid--print { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .6fr); }
.grid--web { grid-template-columns: minmax(0, 17fr) minmax(0, 17fr) minmax(0, 7.5fr); }
.grid--auto300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--auto240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--squares { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(150px, 30%)), 1fr)); }
.grid--stack { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 720px) {
  .grid--2, .grid--print, .grid--web { grid-template-columns: minmax(0, 1fr); }
  .grid--cans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--cans > .span-all { grid-column: 1 / -1; }
}

.work { min-width: 0; display: grid; gap: 12px; align-content: start; }
.work__media { border-radius: 6px; overflow: hidden; background: var(--charcoal); }
.work__media > img { width: 100%; height: 100%; object-fit: cover; }
.work__media--top > img { object-position: center top; }
.work__media--stage { background-color: var(--panel); display: flex; align-items: center; justify-content: center; }
.work__media--stage > img { height: 80%; width: auto; min-width: 0; flex-shrink: 1; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.6)); }
.work__media--pad { background-color: var(--panel); }
.work__media--pad > img { object-fit: contain; filter: drop-shadow(0 24px 34px rgba(0,0,0,.65)); }
.work figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.work figcaption span + span { color: var(--mist); }
/* Stage glows */
.stage-orange { background-image: radial-gradient(70% 55% at 50% 55%, rgba(255,116,21,.4), rgba(22,22,22,0)); }
.stage-blue   { background-image: radial-gradient(70% 55% at 50% 55%, rgba(31,43,243,.55), rgba(22,22,22,0)); }
.stage-sky    { background-image: radial-gradient(60% 55% at 50% 55%, rgba(133,194,255,.34), rgba(22,22,22,0)); }
.stage-orange-soft { background-image: radial-gradient(60% 60% at 50% 50%, rgba(255,116,21,.28), rgba(22,22,22,0)); }
.stage-orange-mid  { background-image: radial-gradient(65% 55% at 50% 50%, rgba(255,116,21,.38), rgba(22,22,22,0)); }
.stage-blue-mid    { background-image: radial-gradient(65% 55% at 50% 50%, rgba(31,43,243,.55), rgba(22,22,22,0)); }

.decks {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.decks__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px); max-width: 860px; width: 100%; justify-self: end;
}
.decks__grid .work { gap: 8px; }
.decks__grid .work__media { border-radius: 4px; border: 1px solid var(--line-light); aspect-ratio: 16 / 9; background: var(--white); }
.decks__grid figcaption { font-size: 11px; color: var(--charcoal); }
@media (max-width: 720px) { .decks { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-hero {
  position: relative; z-index: 1;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(40px, 5vw, 72px);
  display: grid; gap: clamp(20px, 3vw, 32px);
  justify-items: center; text-align: center;
}
.blog-hero .h1 { font-size: clamp(52px, 9vw, 144px); }
.blog-hero .lede { font-size: clamp(17px, 1.5vw, 21px); max-width: 46ch; }

.feature {
  display: block; color: var(--white);
  transition: box-shadow .3s;
}
.theme-dark .feature:hover { color: var(--white); box-shadow: 0 30px 90px rgba(31,43,243,.45); }
.feature__inner {
  position: relative; background: var(--ink);
  padding: clamp(28px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.feature__inner::before {
  content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(31,43,243,.55), rgba(31,43,243,0));
}
.feature__inner > div { position: relative; display: grid; gap: 20px; }
.feature .h2 { font-size: clamp(32px, 4.6vw, 72px); max-width: none; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.card {
  display: grid; gap: 40px; align-content: space-between; min-height: 300px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-dark); border-radius: 8px; background: var(--panel); color: var(--white);
  transition: border-color .2s, background-color .2s;
}
.theme-dark .card:hover { border-color: var(--sky); color: var(--white); background: var(--charcoal); }
.card__top { display: flex; justify-content: space-between; gap: 12px; }
.card__body { display: grid; gap: 14px; }
.card__body p { color: var(--mist); font-size: 16px; text-wrap: pretty; }
.card--accent { border: 0; background: var(--ruwy-accent); color: var(--ruwy-on-accent); }
.theme-dark .card--accent:hover { background: var(--white); color: var(--charcoal); }
.card--accent .card__body p { color: inherit; font-weight: 600; }

.article { background: var(--white); color: var(--charcoal); }
.article[hidden] { display: none; }
.article__inner {
  max-width: 760px; margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 40px) clamp(64px, 8vw, 120px);
  display: grid; gap: 28px;
}
.article a { color: inherit; }
.article .back {
  justify-self: start; color: var(--blue); font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.theme-dark .article .back:hover { color: var(--orange); }
.article .h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1; }
.article__dek { font-size: clamp(19px, 1.8vw, 23px); text-wrap: pretty; }
.byline {
  display: flex; align-items: center; gap: 14px; padding: 20px 0;
  border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
  font-size: 15px; font-weight: 600;
}
.byline img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; object-position: center 22%; }
.prose { display: grid; gap: 20px; font-size: 19px; line-height: 1.65; }
.prose p { text-wrap: pretty; }
.prose h2 {
  margin-top: 16px; font-family: var(--font-head); font-weight: var(--ruwy-head-weight);
  font-size: 28px; line-height: 1.1; letter-spacing: -0.03em;
}
.article__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line-light); }
.article .btn--primary { color: var(--ruwy-on-accent); }
.article .btn--primary:hover { background: var(--charcoal); color: var(--white); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-hero {
  position: relative; z-index: 1;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.contact-hero .h1 { font-size: clamp(56px, 9vw, 144px); }
.contact-hero .lede { font-size: clamp(18px, 1.6vw, 22px); max-width: 40ch; }
.direct {
  display: flex; align-items: center; gap: 16px;
  padding-top: clamp(12px, 2vw, 24px); border-top: 1px solid var(--line-light); max-width: 440px;
}
.direct img { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; object-position: center 22%; flex-shrink: 0; }
.direct p { font-size: 16px; text-wrap: pretty; }
.direct strong { font-weight: 600; }

.contact-card { padding: 1px; border-radius: 12px; background: var(--gradient-edge); box-shadow: 0 30px 80px rgba(31,43,243,.16); }
.contact-form, .contact-sent {
  border-radius: 11px; background: var(--white);
}
.contact-form { display: grid; gap: 22px; padding: clamp(24px, 3vw, 44px); }
.contact-form fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.contact-form legend {
  padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 22px; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; font-size: 14px; }
.contact-sent {
  display: grid; gap: 20px; align-content: center; min-height: 420px;
  padding: clamp(28px, 4vw, 56px);
}
.contact-sent .h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1; max-width: none; }
.contact-sent[hidden], .contact-form[hidden] { display: none; }
.form-error { color: #b42318; font-size: 14px; }

.steps .row { padding-inline: 0; }
.steps .row__name { font-size: clamp(26px, 3.2vw, 48px); }

/* ---------- Motion helpers ---------- */
.js-motion [data-reveal] { opacity: 0; }
.js-motion [data-reveal].is-in { opacity: 1; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.theme-light :focus-visible, .bg-white :focus-visible, .article :focus-visible { outline-color: var(--blue); }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--charcoal); font-weight: 600;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}