/* ─────────────────────────────────────────────
   TYN Digital — theme layer (loaded after style.css)
   Light, calm surfaces with deep navy, a coral accent and blue actions.
   Headings use a serif; body text stays Geist.
   ───────────────────────────────────────────── */
:root {
  --ink: #0c1631;
  --ink-2: #111d40;
  --ink-3: #1a2a58;
  --gold: #ff6f5e;        /* accent (kept under its old name so every rule follows) */
  --gold-2: #ff8a7c;
  --gold-ink: #c23f2e;    /* accent for text on light backgrounds */
  --fog: #f2f4f8;         /* light sections */
  --paper: #ffffff;
  --muted: #a7b1c9;
  --ink-text: #101a35;
  --ink-muted: #545f7a;
  --blue: #3d63ff;
  --blue-2: #2a4ff0;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
}

/* Serif headings */
.word, .h2, .svc-h1, .svc-h2, .value h3, .fact-n, .r-avg, .r-form h3, .qa summary, .cc-title,
.brief-head h2, .b-success h3, .sx-tab-title, .cc-brief-text strong, .choice strong,
.flow-card h3, .flow-cta h3, .perk h3, .svc-who-grid h3, .svc-other-text strong {
  font-family: var(--serif);
  font-variation-settings: normal;
  letter-spacing: -0.01em;
}
.word { font-weight: 500; letter-spacing: -0.02em; }
.h2, .svc-h1 { font-weight: 500; line-height: 1.06; }
.value h3, .r-form h3, .qa summary, .cc-title, .brief-head h2, .b-success h3, .sx-tab-title, .choice strong { font-weight: 560; }
.fact-n, .r-avg { font-weight: 500; }

/* One colour per heading: no highlighted words */
.about-title span:nth-child(2), .contact-title span:first-child { color: inherit; }

/* Actions: blue pills */
.btn-gold { background: var(--blue); color: #fff; }
.btn-gold:hover { background: var(--blue-2); box-shadow: 0 12px 30px -12px rgba(61, 99, 255, .7); }
.skip-link { background: var(--blue); color: #fff; }

/* Contact form: the main action is blue too */
.cc-send { background: var(--blue); }
.cc-send:hover { background: var(--blue-2); }

/* Leftover tints of the old gold */
.hero-glow { background: radial-gradient(circle, rgba(61, 99, 255, .22), transparent 60%); }
.word-bar { background: rgba(255, 111, 94, .2); }
.cc::before { background: radial-gradient(circle, rgba(255, 111, 94, .16), transparent 65%); }

/* Light sections: calm grey with white cards */
.section.light { background: var(--fog); }
#services { background: var(--paper); }
.sx-panel { box-shadow: 0 30px 60px -45px rgba(12, 22, 49, .45); }

/* ── Steps: cards with an illustration ───── */
.steps-sec { background: var(--fog); color: var(--ink-text); }
.section-head.center { display: block; text-align: center; max-width: 46rem; margin-inline: auto; }
.section-head.center .lead { margin: 1.1rem auto 0; color: var(--ink-muted); }
.flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; counter-reset: flow; }
.flow-card {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--paper); border-radius: 20px; box-shadow: 0 1px 0 rgba(12, 22, 49, .04), 0 24px 48px -40px rgba(12, 22, 49, .5);
}
.flow-art { margin: 0; background: var(--ink); aspect-ratio: 4 / 3; overflow: hidden; }
.flow-art img { width: 100%; height: 100%; object-fit: cover; }
.flow-body { padding: clamp(1.4rem, 3vw, 2.25rem); }
.flow-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #e8ebf2; color: var(--ink-muted); font-weight: 700; font-size: 0.95rem; margin-bottom: 1.1rem;
  font-variant-numeric: tabular-nums; transition: background-color .5s, color .5s, transform .5s var(--ease);
}
.flow-card.is-on .flow-n { background: var(--gold-ink); color: #fff; transform: scale(1.08); }

/* Illustrations tilt toward the pointer (see flow.js) */
.flow-art { position: relative; perspective: 900px; }
.flow-art img { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.06); transition: transform .7s var(--ease); }
.flow-art.is-tilting img { transition: transform .15s linear; }
.flow-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 45%);
}
.flow-art.is-tilting::after { opacity: 1; }
.flow-card h3 { font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.12; margin-bottom: 0.8rem; text-wrap: balance; }
.flow-card p { color: var(--ink-muted); max-width: 34rem; }
.flow-out { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid rgba(12, 22, 49, .08); font-size: 0.95rem; }
.flow-out strong { color: var(--ink-text); font-weight: 600; }
.flow-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; align-items: stretch; }
.flow-wide .flow-art { aspect-ratio: auto; min-height: 340px; }
.flow-wide .flow-body { align-self: center; padding: clamp(1.6rem, 4vw, 3.25rem); }
.flow-wide.is-flipped .flow-art { order: 2; }

.flow-cta {
  margin-top: 1rem; border-radius: 20px; padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center; color: #fff;
  background:
    radial-gradient(60% 120% at var(--gx, 50%) var(--gy, 120%), rgba(255, 111, 94, .28), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='32' viewBox='0 0 56 32'%3E%3Cpath d='M0 16 28 0l28 16-28 16z' fill='none' stroke='%23ffffff' stroke-opacity='.07'/%3E%3C/svg%3E"),
    var(--ink);
}
.flow-cta h3 { font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.flow-cta p { color: var(--muted); max-width: 36rem; margin: 0.9rem auto 1.6rem; }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-wide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .flow-wide .flow-art { aspect-ratio: 4 / 3; min-height: 0; }
  .flow-wide.is-flipped .flow-art { order: 0; }
}

/* Footer: social links */
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; list-style: none; padding: 0; }
.footer-social a {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); color: var(--muted);
  transition: color .25s, background-color .25s, border-color .25s, transform .25s var(--ease);
}
.footer-social a:hover { color: #fff; background: var(--gold); border-color: transparent; transform: translateY(-2px); }
.footer-social a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
