/* insightCISO — site styles. Colours are the brand kit's palette; the one
   rule: on light grounds the accent is Harbour, on dark grounds it is Sky.
   Sky on a light ground measures 2.20:1 and is never used there. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #13212A;
  --harbour: #326485;
  --sky: #6CB1D0;
  --mist: #D4E6ED;
  --paper: #F7F6F2;
  --slate: #5A6872;
  --line: #D8DFE4;
  --ring-1: #1B3241;
  --ring-2: #234358;
  --display: "Fraunces", Georgia, serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 7vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--harbour); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--harbour); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .foot :focus-visible { outline-color: var(--sky); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; }
h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
h3 { font-size: clamp(24px, 2vw, 28px); line-height: 1.25; margin-bottom: 12px; }
p { margin: 0; }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 17px/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sky { background: var(--sky); color: var(--ink); min-height: 46px; padding: 0 22px; font-size: 16px; }
.btn-sky:hover { background: var(--mist); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); min-height: 52px; }
.btn-paper:hover { background: var(--mist); color: var(--ink); }
.btn-ghost { border-color: var(--mist); color: var(--paper); min-height: 52px; }
.btn-ghost:hover { background: var(--ring-2); color: #FFFFFF; }
.btn-harbour { background: var(--harbour); color: #FFFFFF; min-height: 52px; border: 0; width: 100%; }
.btn-harbour:hover { background: var(--ink); color: #FFFFFF; }

/* Hero: concentric rings from Ink through Harbour into Sky, centred off the
   bottom-right corner. Radii scale with the viewport; text sits clear of Sky. */
.hero {
  --r: clamp(84px, 10.5vw, 150px);
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  background:
    radial-gradient(circle at 84% 97%,
      var(--sky) 0 var(--r),
      var(--harbour) calc(var(--r) + 0.5px) calc(var(--r) * 1.667),
      var(--ring-2) calc(var(--r) * 1.667 + 0.5px) calc(var(--r) * 2.333),
      var(--ring-1) calc(var(--r) * 2.333 + 0.5px) calc(var(--r) * 3),
      var(--ink) calc(var(--r) * 3 + 0.5px));
  padding-bottom: 104px;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--mist); text-decoration: none; font-size: 16px; font-weight: 500;
}
.nav-link:hover { color: #FFFFFF; }
.nav .btn { margin-left: 14px; }

.hero-copy { padding-top: clamp(48px, 6vw, 88px); }
.hero-copy > * { max-width: 620px; }
.eyebrow { font-size: 16px; font-weight: 600; color: var(--sky); margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1.06; letter-spacing: -0.025em; max-width: 680px; }
.lede { margin-top: 26px; font-size: clamp(18px, 1.5vw, 20px); color: var(--mist); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Sections */
.section { padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(64px, 7vw, 96px); }
.section-white { background: #FFFFFF; }
.intro { font-size: 19px; color: var(--slate); max-width: 680px; }
.intro + .intro { margin-top: 14px; }
.strong { font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.card { background: #FFFFFF; border-radius: 20px; padding: 36px 34px; }
.card .num { font-family: var(--display); font-size: 22px; color: var(--harbour); margin-bottom: 22px; }
.card p { font-size: 17px; color: var(--slate); }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 72px; margin-top: 48px; }
.principle { border-top: 2px solid var(--harbour); padding-top: 20px; }
.p-head { font-family: var(--display); font-size: 28px; line-height: 1.3; }
.principle p + p { margin-top: 8px; color: var(--slate); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 96px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.opt { font-weight: 400; color: var(--slate); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--slate); border-radius: 12px; background: #FFFFFF; color: var(--ink);
  font: 16px/1.5 var(--body);
}
.field input { height: 52px; padding: 0 16px; }
.field textarea { padding: 14px 16px; resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.note { font-size: 15px; color: var(--slate); }

.foot { background: var(--ink); color: var(--mist); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 120px; padding-top: 28px; padding-bottom: 28px; }
.foot img { height: 34px; width: auto; }
.foot p { font-size: 15px; }
.foot a { color: var(--mist); }
.foot a:hover { color: #FFFFFF; }

/* 404 */
.plain { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.plain img { height: 160px; width: auto; margin-bottom: 12px; }
.plain h1 { font-size: clamp(36px, 4vw, 52px); letter-spacing: -0.02em; }

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .principles { grid-template-columns: 1fr; gap: 32px; }
  .nav-link { display: none; }
  .brand img { height: 34px; }
  .nav .btn { margin-left: 0; font-size: 15px; padding: 0 16px; min-height: 44px; }
  /* Rings drop to the bottom-right corner, below the copy. */
  .hero { --r: 64px; padding-bottom: 240px;
    background:
      radial-gradient(circle at 100% 100%,
        var(--sky) 0 var(--r),
        var(--harbour) calc(var(--r) + 0.5px) calc(var(--r) * 1.667),
        var(--ring-2) calc(var(--r) * 1.667 + 0.5px) calc(var(--r) * 2.333),
        var(--ring-1) calc(var(--r) * 2.333 + 0.5px) calc(var(--r) * 3),
        var(--ink) calc(var(--r) * 3 + 0.5px)); }
  .card { padding: 28px 24px; }
}
@media (max-width: 420px) {
  .btn-sky { display: none; }
}
.btn-inline { width: auto; }

/* Contact form states */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.status { font-size: 16px; font-weight: 600; min-height: 0; }
.status:empty { display: none; }
.status.ok { color: #2F5A3A; }
.status.err { color: #8A2A31; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
