/* Cloud Codero site. One theme family, auto light/dark. Radius rule: buttons are pills, panels 16px. */

/* Colours from the Cloud Codero logo: signal red, charcoal, steel grey, white. */
:root {
  --bg: #f5f5f6;
  --surface: #ffffff;
  --surface-2: #ececee;
  --ink: #18181b;
  --ink-2: #3d3d43;
  --muted: #64646b;
  --line: #dcdce0;
  --accent: #d91f28;          /* buttons and brand mark, white text on top */
  --accent-ink: #ffffff;
  --accent-text: #c01b23;     /* links and small accent text */
  --accent-soft: #fbe9ea;
  --accent-strong: #a8161d;
  --steel: #8e9096;
  --shadow: 0 1px 2px rgba(24, 24, 27, .05), 0 12px 32px rgba(24, 24, 27, .08);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --surface: #1b1b1e;
    --surface-2: #232327;
    --ink: #f4f4f5;
    --ink-2: #d0d0d5;
    --muted: #9d9da4;
    --line: #2f2f34;
    --accent: #e0242d;
    --accent-ink: #ffffff;
    --accent-text: #ff5c63;
    --accent-soft: #2a1a1c;
    --accent-strong: #ff3d46;
    --steel: #8e9096;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 999px; z-index: 30; }
.skip:focus { left: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 13px/1 var(--font-display); letter-spacing: .02em; }
.brand-name { font: 650 18px/1 var(--font-display); letter-spacing: -.01em; }
.site-header nav { margin-left: auto; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: 999px; padding: 13px 22px; font: 600 16px/1 var(--font); text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background-color .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 88px 0 72px; min-height: min(78dvh, 720px); }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
h1 { margin: 0; font: 680 clamp(40px, 5.4vw, 64px)/1.04 var(--font-display); letter-spacing: -.035em; max-width: 14ch; }
.lede { margin: 22px 0 0; font-size: 19px; color: var(--ink-2); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.practice-index { display: grid; gap: 0; border-top: 1px solid var(--line); }
.practice { display: grid; gap: 4px; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .25s cubic-bezier(.16, 1, .3, 1); }
.practice:hover { padding-left: 14px; }
.practice-name { font: 640 clamp(22px, 2.4vw, 28px)/1.15 var(--font-display); letter-spacing: -.02em; }
.practice:hover .practice-name { color: var(--accent-text); }
.practice-desc { color: var(--muted); font-size: 15px; }

/* Section titles */
.section-title { margin: 0 0 32px; font: 660 clamp(30px, 3.6vw, 44px)/1.1 var(--font-display); letter-spacing: -.03em; max-width: 22ch; }

/* Services bento: 3 items, 3 cells */
.services { padding: 72px 0; }
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tile { border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); background: var(--surface); }
.tile h3 { margin: 0 0 10px; font: 650 24px/1.2 var(--font-display); letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.tile-lead { grid-row: span 2; background:
  radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 60%),
  var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 380px; }
.tile-lead h3 { font-size: clamp(28px, 3vw, 36px); }
.tile-tint { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.tile-plain { background: var(--surface-2); border-color: transparent; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }

/* Product */
.product { padding: 72px 0; display: grid; gap: 36px; }
.product-copy { max-width: 62ch; }
.product-copy p { margin: 0 0 18px; color: var(--ink-2); font-size: 18px; }
.text-link { font-weight: 600; color: var(--accent-text); text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--accent-text) 35%, transparent); padding-bottom: 2px; }
.text-link:hover { border-bottom-color: var(--accent-text); }
.product-shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #111114; }

/* Approach */
.approach { padding: 72px 0; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin: 0; }
.principle dt { font: 640 20px/1.3 var(--font-display); letter-spacing: -.01em; margin-bottom: 6px; }
.principle dd { margin: 0; color: var(--ink-2); max-width: 44ch; }

/* Contact */
.contact { margin-block: 56px 96px; padding: 56px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact h2 { margin: 0 0 8px; font: 660 clamp(28px, 3.4vw, 40px)/1.1 var(--font-display); letter-spacing: -.03em; }
.contact p { margin: 0 0 24px; color: var(--ink-2); }
.contact-email { font: 650 clamp(24px, 3.6vw, 40px)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--accent-text); text-decoration: none; word-break: break-word; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
.footer-brand { margin: 0 0 6px; color: var(--ink); font-weight: 600; }
.footer-grid p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--accent-text); }
.footer-note { grid-column: 1 / -1; }

/* Reveal motion (enabled only when JS runs and motion is allowed) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 48px; min-height: 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-lead { grid-row: auto; min-height: 0; }
}
@media (max-width: 720px) {
  .site-header nav { display: none; }
  .header-row { justify-content: space-between; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .tile { padding: 24px; }
  .contact { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
}
