/* ============================================================
   CLOUDGEN: visuals layer
   Imagery, process, culture, light/premium softening.
   Loaded AFTER styles.css; overrides where noted.
   ============================================================ */

:root {
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(19,22,20,0.04), 0 8px 24px rgba(19,22,20,0.06);
  --shadow-md: 0 2px 6px rgba(19,22,20,0.05), 0 24px 60px rgba(19,22,20,0.10);
  --tint: #EEF1FB;     /* soft blue wash */
  --warm: #F6F4EF;     /* warm paper */
}

/* ---------- figure primitive ---------- */
.figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}
.figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.figure:hover img { transform: scale(1.04); }
.figure.r-43 { aspect-ratio: 4 / 3; }
.figure.r-32 { aspect-ratio: 3 / 2; }
.figure.r-11 { aspect-ratio: 1 / 1; }
.figure.r-169 { aspect-ratio: 16 / 9; }
.figure.r-45 { aspect-ratio: 4 / 5; }

/* small floating caption chip on a figure */
.fig-chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 251, 249, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 9px 14px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.fig-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* ---------- image hero ---------- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 72px;
  align-items: center;
  padding: 84px 0 92px;
}
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: var(--ink-2);
}
.hero-copy .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hero-copy h1 {
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-copy h1 em { font-style: normal; color: var(--blue); }
.hero-copy .hero-sub {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 50ch;
  text-wrap: pretty;
}
.hero-copy .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-copy .btn { border-radius: 999px; }
.hero-figure-wrap { position: relative; }
.hero-figure-wrap .figure { aspect-ratio: 4 / 5; }
.hero-figure-wrap .figure.stack {
  position: absolute;
  width: 44%;
  aspect-ratio: 1 / 1;
  right: -28px;
  bottom: -28px;
  border: 5px solid var(--paper);
  border-radius: var(--radius-sm);
}

/* trust strip (words, not logos) */
.trust {
  border-top: 1px solid var(--rule);
  padding: 26px 0;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust .label { color: var(--ink-3); flex-shrink: 0; }
.trust ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
}
.trust ul li {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- round buttons globally on new sections ---------- */
.btn.round { border-radius: 999px; }

/* ---------- service cards (home) ---------- */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 30px 30px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  color: inherit;
}
.svc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}
.svc-card .sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.svc-card .sc-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.svc-card .sc-arrow {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.svc-card:hover .sc-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }
.svc-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.svc-card p { font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.svc-card .sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.svc-card .sc-tags span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-2);
}

/* ---------- band: image-backed CTA ---------- */
.cta-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  margin: 0 0 0 0;
}
.cta-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(15,18,30,0.86) 0%, rgba(15,18,30,0.62) 50%, rgba(15,18,30,0.34) 100%);
}
.cta-media-in {
  padding: 86px 64px;
  max-width: 640px;
}
.cta-media .eyebrow { color: #B9C2FF; display: inline-flex; gap: 9px; align-items: center; margin-bottom: 18px; }
.cta-media .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #7E96FF; }
.cta-media h2 {
  color: #fff;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.cta-media p { color: rgba(255,255,255,0.82); margin-top: 16px; font-size: 17px; max-width: 46ch; }
.cta-media .btn-paper { border-radius: 999px; margin-top: 30px; }

/* ---------- process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step .step-n {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--blue);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
}
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 7px; }
.step p { font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.process-media .figure { aspect-ratio: 3 / 4; }

/* ---------- culture ---------- */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  margin-top: 48px;
}
.culture-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.culture-card .figure { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 11; }
.culture-card .cc-body { padding: 24px 24px 26px; }
.culture-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.culture-card p { font-size: 14.5px; color: var(--ink-2); text-wrap: pretty; }
.culture-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.culture-lead .figure { aspect-ratio: 16 / 10; }
.culture-lead .panel {
  background: var(--warm);
  border-radius: var(--radius);
  padding: 44px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.culture-lead .panel h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 14px;
}
.culture-lead .panel p { font-size: 16px; color: var(--ink-2); max-width: 46ch; }

/* ---------- legal document ---------- */
.legal-doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 88px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 96px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.legal-toc .mono { display: block; color: var(--ink-3); margin-bottom: 14px; }
.legal-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.legal-toc ol li { counter-increment: toc; }
.legal-toc ol li a {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s ease;
}
.legal-toc ol li a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--blue);
  padding-top: 2px;
}
.legal-toc ol li a:hover { color: var(--ink); }
.legal-body { max-width: 70ch; }
.legal-body .legal-updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.legal-body .legal-intro { font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.legal-section { padding-top: 40px; }
.legal-section h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  scroll-margin-top: 90px;
}
.legal-section h2 .s-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
}
.legal-section h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; letter-spacing: -0.01em; }
.legal-section p { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 14px; text-wrap: pretty; }
.legal-section ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.legal-section ul li { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); display: flex; gap: 12px; }
.legal-section ul li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; background: var(--blue); flex-shrink: 0; }
.legal-section a { color: var(--blue); }
.legal-section a:hover { text-decoration: underline; }
.legal-note {
  margin-top: 48px;
  padding: 22px 24px;
  background: var(--warm);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .legal-doc { grid-template-columns: 1fr; gap: 8px; }
  .legal-toc { position: static; border-top: none; padding-top: 0; display: none; }
}

/* ---------- light statement (override dark) ---------- */
.statement { background: var(--warm); color: var(--ink); }
.statement h2 { color: var(--ink); }
.statement h2 em { color: var(--blue); }
.statement p { color: var(--ink-2); }
.statement .btn-paper {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}
.statement .btn-paper:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- about media ---------- */
.about-media {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 20px;
  margin-top: 48px;
}
.about-media .figure.a { aspect-ratio: 3 / 2; }
.about-media .figure.b { aspect-ratio: 3 / 4; }

/* ---------- services page header image ---------- */
.page-figure { margin-top: 40px; }
.page-figure .figure { aspect-ratio: 21 / 8; }

/* round the inner-page CTA + nav CTA for consistency */
.topnav-cta a { border-radius: 999px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .hero-figure-wrap .figure { aspect-ratio: 16 / 10; }
  .hero-figure-wrap .figure.stack { width: 38%; right: 0; bottom: 0; }
  .svc-cards { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 36px; }
  .process-media { order: -1; }
  .process-media .figure { aspect-ratio: 16 / 9; }
  .culture-grid { grid-template-columns: 1fr 1fr; }
  .culture-lead { grid-template-columns: 1fr; }
  .about-media { grid-template-columns: 1fr; }
  .about-media .figure.b { aspect-ratio: 16 / 9; }
  .cta-media-in { padding: 64px 36px; }
}

@media (max-width: 680px) {
  .culture-grid { grid-template-columns: 1fr; }
  .hero-figure-wrap .figure.stack { display: none; }
  .page-figure .figure { aspect-ratio: 4 / 3; }
  .cta-media-in { padding: 48px 24px; }
  .cta-media::after {
    background: linear-gradient(180deg, rgba(15,18,30,0.78) 0%, rgba(15,18,30,0.66) 100%);
  }
}

@media (max-width: 480px) {
  .hero-copy .hero-ctas { flex-direction: column; }
  .hero-copy .hero-ctas .btn { width: 100%; justify-content: center; }
  .culture-lead .panel { padding: 28px 24px; }
  .svc-card { padding: 24px 20px; }
  .cta-media-in { padding: 40px 20px; }
}
