/* Ckuens website (interim) -- layout. Colours and the face come from brand.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-darker); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.band { background: var(--grey-50); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: var(--navy); font-size: .9375rem; }
.nav a:hover { color: var(--blue-darker); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue-darker); font-weight: 700; }
.nav .btn { color: var(--white); }
.menu { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1.5px solid var(--blue-darker);
  background: var(--blue-darker);
  color: var(--white);
  font-family: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.2;
  cursor: pointer;
}
.btn:hover { background: var(--navy); border-color: var(--navy); text-decoration: none; color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue-darker); }
.btn-ghost:hover { background: var(--blue-darker); border-color: var(--blue-darker); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.more { display: inline-block; margin-top: 28px; font-weight: 700; font-size: .9375rem; }

/* ---------- headings ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--grey-600);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--green); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.section-head p { margin-top: 16px; font-size: 1.0625rem; }

/* ---------- hero ---------- */
.hero { background: var(--grey-50); border-bottom: 1px solid var(--grey-200); }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); letter-spacing: -0.01em; }
.hero .lede { margin-top: 24px; font-size: 1.1875rem; max-width: 34em; }
.facts {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-top: 4px solid var(--blue-darker);
  border-radius: 8px;
  padding: 8px 28px;
}
.facts div { padding: 18px 0; border-bottom: 1px solid var(--grey-200); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-600); }
.facts dd { margin: 4px 0 0; color: var(--navy); font-size: 1.0625rem; }

.page-hero { background: var(--grey-50); border-bottom: 1px solid var(--grey-200); }
.page-hero .wrap { padding-top: 80px; padding-bottom: 72px; }
.page-hero h1 { font-size: clamp(2.25rem, 4.2vw, 3rem); }
.page-hero .lede { margin-top: 20px; font-size: 1.1875rem; max-width: 40em; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  padding: 28px;
  display: flex; flex-direction: column;
}
.card h3 { font-size: 1.1875rem; margin-bottom: 12px; }
.card p { font-size: .9375rem; }
.card .more { margin-top: auto; padding-top: 20px; }
.icon {
  width: 46px; height: 46px; margin-bottom: 20px; flex: none;
  border-radius: 10px; color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 9%, var(--white));
  display: flex; align-items: center; justify-content: center;
}
.icon svg { width: 22px; height: 22px; }
.tag { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }

/* ---------- service blocks ---------- */
.service {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px;
  padding: 48px 0; border-top: 1px solid var(--grey-200);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service h2 { font-size: 1.625rem; }
.service .icon { margin-bottom: 16px; }
.service-body > p { font-size: 1.0625rem; }
.ticks { list-style: none; margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.ticks li { position: relative; padding-left: 22px; font-size: .9375rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.note { margin-top: 20px; padding: 14px 18px; background: var(--blue-subtle); border-radius: 6px; font-size: .9375rem; color: var(--navy); }
.subhead { margin-top: 28px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-600); }
.inline-list { margin-top: 8px; font-size: .9375rem; }

/* ---------- platforms ---------- */
.platform {
  display: grid; grid-template-columns: 280px 1fr; gap: 56px;
  padding: 48px 0; border-top: 1px solid var(--grey-200);
}
.platform:first-child { border-top: 0; padding-top: 0; }
.platform-name { font-size: 2rem; color: var(--blue-darker); }
.platform-kind { margin-top: 6px; color: var(--navy); font-weight: 700; }
.platform-body > p { font-size: 1.0625rem; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th {
  text-align: left; vertical-align: bottom;
  padding: 12px 16px; background: var(--navy); color: var(--white);
  font-size: .8125rem; font-weight: 700; letter-spacing: .02em;
}
.table td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--grey-200); }
.table tbody tr:nth-child(even) td { background: var(--grey-50); }
.table .num { width: 44px; text-align: right; color: var(--grey-600); }
.table td:nth-child(2) { color: var(--navy); font-weight: 700; width: 24%; }

/* ---------- quotes ---------- */
.quote { margin: 0; padding: 28px; background: var(--white); border: 1px solid var(--grey-200); border-left: 4px solid var(--green); border-radius: 8px; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 20px; color: var(--navy); font-size: 1.0625rem; line-height: 1.6; }
.quote figcaption { margin-top: auto; font-size: .875rem; }
.quote figcaption strong { display: block; color: var(--navy); }
.quote-lg { max-width: 860px; margin: 0 auto; text-align: center; border: 0; background: transparent; padding: 0; }
.quote-lg blockquote { font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.5; }

/* ---------- about ---------- */
.founder { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.founder img { width: 100%; height: auto; border-radius: 8px; }
.founder h2 { font-size: 2rem; }
.founder .role { margin: 6px 0 24px; color: var(--grey-600); font-weight: 700; }
.value h3 { font-size: 1.125rem; margin-bottom: 8px; }
.value p { font-size: .9375rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 700; color: var(--navy); }
.field .optional { font-weight: 400; color: var(--grey-600); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--grey-200); border-radius: 6px;
  font-family: inherit; font-size: 1rem; color: var(--navy); background: var(--white);
}
.field input:focus, .field textarea:focus { border-color: var(--blue-darker); outline: none; }
.field textarea { resize: vertical; min-height: 160px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; font-size: .875rem; color: var(--grey-600); }
.form-error { margin-top: 14px; font-size: .9375rem; color: #B42318; }
.form-ok { padding: 28px; background: var(--blue-subtle); border-radius: 8px; color: var(--navy); }
.form-ok h2 { font-size: 1.375rem; margin-bottom: 8px; }
.details { background: var(--grey-50); border-radius: 8px; padding: 28px; }
.details div { padding: 14px 0; border-bottom: 1px solid var(--grey-200); }
.details div:first-child { padding-top: 0; }
.details div:last-child { border-bottom: 0; padding-bottom: 0; }
.details dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-600); }
.details dd { margin: 4px 0 0; font-size: 1.0625rem; color: var(--navy); }
[hidden] { display: none !important; }

/* ---------- call to action ---------- */
.cta { background: var(--navy); color: var(--white); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta p { margin-top: 8px; color: #D1D8DE; }
.cta .btn { background: var(--white); border-color: var(--white); color: var(--navy); flex: none; }
.cta .btn:hover { background: var(--blue-subtle); border-color: var(--blue-subtle); }

/* ---------- footer ---------- */
.site-footer { background: #16294A; color: #B9C3D0; font-size: .9375rem; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid #2C4470; }
.foot-top img { height: 24px; width: auto; margin-bottom: 16px; }
.foot-top h4 { color: var(--white); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.foot-top ul { list-style: none; }
.foot-top li { margin-bottom: 8px; }
.site-footer a { color: #DCE3EB; }
.foot-bottom { padding-top: 24px; font-size: .8125rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
  .service, .platform { grid-template-columns: 1fr; gap: 20px; }
  .founder { grid-template-columns: 260px 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer;
    padding: 8px 14px; border: 1.5px solid var(--navy); border-radius: 6px;
    color: var(--navy); font-weight: 700; font-size: .875rem;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--navy); color: var(--white); }
  .menu-panel {
    position: absolute; right: 0; top: calc(100% + 12px); width: 240px;
    background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px;
    box-shadow: 0 12px 32px rgba(31, 56, 100, .12);
    padding: 8px;
  }
  .menu-panel a { display: block; padding: 10px 14px; border-radius: 6px; color: var(--navy); }
  .menu-panel a:hover { background: var(--grey-50); text-decoration: none; }
  .menu-panel a[aria-current="page"] { color: var(--blue-darker); font-weight: 700; }
  .grid-3 { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > div:first-child { grid-column: 1 / -1; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder img { max-width: 300px; }
  .btn-row .btn { width: 100%; text-align: center; }
  .foot-top { grid-template-columns: 1fr; }
  /* the engagements table becomes one card per row */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--grey-200); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
  .table td { border-bottom: 0; padding: 6px 16px; }
  .table tbody tr:nth-child(even) td { background: var(--white); }
  .table td.num { text-align: left; padding-top: 14px; width: 100%; }
  .table td.num::before { content: "Engagement "; }
  .table td:nth-child(2) { width: 100%; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); }
  .table td:last-child { padding-bottom: 16px; }
}

.lede-sm { margin-top: 16px; font-size: 1.0625rem; }
.grid-2 h2 { font-size: 1.625rem; }
.grid > * { min-width: 0; }
.card .ticks { grid-template-columns: 1fr; margin-top: 4px; }
.span-2 { grid-column: 1 / -1; }
.quotes-below { margin-top: 56px; }
@media (max-width: 640px) { .span-2 { grid-column: auto; } }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.industry h3 { font-size: 1.125rem; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump a { padding: 8px 14px; border: 1px solid var(--grey-200); border-radius: 6px; background: var(--white); color: var(--navy); font-size: .875rem; font-weight: 700; }
.jump a:hover { border-color: var(--blue-darker); color: var(--blue-darker); text-decoration: none; }
section[id] { scroll-margin-top: 72px; }
@media (max-width: 1000px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid-3, .grid-5 { grid-template-columns: 1fr; }
}
.section-head + .service { border-top: 0; padding-top: 0; }

/* ---------- icons and illustrations (v2) ---------- */
.illus { margin: 0; }
.illus img { width: 100%; height: auto; }
.hero-illus { padding: 8px 0; }
.lifecycle-illus { margin-top: 48px; padding: 28px 32px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 10px; }
.panel { background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: 10px; padding: 32px; display: flex; align-items: center; justify-content: center; }
.panel img { max-width: 440px; }

.strip { border-bottom: 1px solid var(--grey-200); background: var(--white); }
.facts-strip { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-strip > div { position: relative; padding: 28px 24px 28px 76px; border-left: 1px solid var(--grey-200); }
.facts-strip > div:first-child { border-left: 0; padding-left: 52px; }
.facts-strip > div:first-child .fi { left: 0; }
.facts-strip dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-600); }
.facts-strip dd { margin: 4px 0 0; color: var(--navy); font-size: .9375rem; line-height: 1.45; }
.fi {
  position: absolute; left: 24px; top: 28px;
  width: 36px; height: 36px; border-radius: 8px;
  color: var(--emerald); background: color-mix(in srgb, var(--emerald) 9%, var(--white));
  display: flex; align-items: center; justify-content: center;
}
.fi svg { width: 17px; height: 17px; }

.platform { grid-template-columns: 1.05fr .95fr; align-items: center; }
.platform.flip .platform-body { order: 2; }
.platform-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.platform-head .icon { margin-bottom: 0; width: 52px; height: 52px; }
.platform-head .icon svg { width: 26px; height: 26px; }
.platform-body .ticks { grid-template-columns: 1fr; }
.platform-body > p + p { margin-top: 0; }

.value .icon { margin-bottom: 16px; }
.details .with-icon { position: relative; padding-left: 52px; }
.details .with-icon .fi { left: 0; top: 14px; }
.details .with-icon:first-child .fi { top: 0; }
.card .icon + .tag { margin-top: -4px; }

@media (max-width: 1000px) {
  .facts-strip { grid-template-columns: repeat(2, 1fr); }
  .facts-strip > div:nth-child(3) { border-left: 0; padding-left: 52px; }
  .facts-strip > div:nth-child(3) .fi { left: 0; }
  .facts-strip > div:nth-child(n+3) { border-top: 1px solid var(--grey-200); }
  .platform { grid-template-columns: 1fr; gap: 32px; }
  .platform.flip .platform-body { order: 0; }
  .hero-illus { max-width: 640px; }
}
@media (max-width: 640px) {
  .facts-strip { grid-template-columns: 1fr; }
  .facts-strip > div { border-left: 0; padding-left: 52px; border-top: 1px solid var(--grey-200); }
  .facts-strip > div:first-child { border-top: 0; }
  .facts-strip > div .fi { left: 0; }
  .lifecycle-illus { padding: 20px; }
  .lifecycle-illus img { max-width: 260px; margin: 0 auto; }
  .panel { padding: 16px; }
}

.hero .wrap { grid-template-columns: 1fr 1.15fr; gap: 48px; }
.hero-illus img { width: 100%; max-width: 640px; margin-left: auto; }
@media (max-width: 1000px) { .hero .wrap { grid-template-columns: 1fr; } .hero-illus img { margin-left: 0; } }
@media (max-width: 640px) { .hero-illus img { max-width: 340px; margin: 0 auto; } }

.field select {
  width: 100%; padding: 12px 40px 12px 14px;
  border: 1px solid var(--grey-200); border-radius: 6px; background-color: var(--white);
  font-family: inherit; font-size: 1rem; color: var(--navy);
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field select:focus { border-color: var(--blue-darker); outline: none; }
