/* W Training and Consulting - see brand-guide.md */
:root {
  --paper: #F5F5F2;
  --surface: #FFFFFF;
  --ink: #1E2430;
  --dark: #161E38;
  --muted: #5B6674;
  --accent: #1B75BB;
  --accent-strong: #2B3990;
  --line: #DEDEDA;
  --line-dark: #2C3760;
  --paper-on-dark: #ECEDF2;
  --muted-on-dark: #9DA9C6;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --w-content: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 20px;
}
.skip-link:focus { left: 0; color: #fff; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-strong); }

img { max-width: 100%; }

.wrap {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 24px;
}

.prose { max-width: 68ch; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .logo { height: 60px; width: auto; flex: none; }
.brand .desc {
  display: block;
  font-weight: 500;
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .04em;
  max-width: 210px;
  line-height: 1.4;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}
.nav-links .nav-cta a {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 2px;
  border-bottom: none;
}
.nav-links .nav-cta a:hover { background: var(--accent-strong); color: #fff; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .015em;
  padding: 14px 30px;
  border-radius: 2px;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }
.btn.on-dark { background: var(--accent); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.ghost.on-dark { color: var(--paper-on-dark); border-color: var(--line-dark); }
.btn.ghost.on-dark:hover { background: var(--paper-on-dark); color: var(--dark); }
.arrow-link {
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}
.arrow-link::after {
  content: " \2192";
  transition: margin-left .18s ease;
}
.arrow-link:hover::after { margin-left: 4px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: radial-gradient(1100px 620px at 12% -12%, #223058 0%, var(--dark) 58%);
  color: var(--paper-on-dark);
  overflow: hidden;
}
.hero .lattice {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .35;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  padding-top: 112px;
  padding-bottom: 128px;
  max-width: 880px;
}
.hero .eyebrow { color: var(--muted-on-dark); }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  color: #FFFFFF;
  margin: 20px 0 24px;
}
.hero .sub {
  font-size: 1.15rem;
  color: var(--muted-on-dark);
  max-width: 56ch;
  margin-bottom: 40px;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .rise { opacity: 0; animation: rise .7s ease forwards; }
.hero .rise:nth-child(2) { animation-delay: .12s; }
.hero .rise:nth-child(3) { animation-delay: .24s; }
.hero .rise:nth-child(4) { animation-delay: .36s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  border-bottom: 1px solid var(--line);
}
.page-header .wrap { padding-top: 80px; padding-bottom: 64px; }
.page-header h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 16px 0 20px;
  max-width: 20ch;
}
.page-header .intro {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Sections ---------- */
.section .wrap { padding-top: 96px; padding-bottom: 96px; }
.section + .section .wrap { border-top: 1px solid var(--line); }
.section.dark {
  background: var(--dark);
  color: var(--paper-on-dark);
}
.section.dark + .section .wrap, .section + .section.dark .wrap { border-top: none; }
.eyebrow {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--accent);
}
.section h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  margin: 14px 0 20px;
  max-width: 24ch;
}
.section.dark h2 { color: #fff; }
.section .lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
}
.section.dark .lead, .section.dark p { color: var(--muted-on-dark); }

/* Statement (editorial pull-text) */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.35;
  font-weight: 500;
  max-width: 30ch;
  text-wrap: balance;
}
.statement em {
  font-style: normal;
  color: var(--accent);
}
.section.dark .statement { color: #fff; }

/* Two pillars */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}
.pillar { border-top: 2px solid var(--accent); padding-top: 28px; }
.pillar h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}
.pillar p { color: var(--muted); margin-bottom: 18px; }

/* Numbered services */
.services { list-style: none; margin-top: 24px; }
.services li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.services li:last-child { border-bottom: 1px solid var(--line); }
.services .num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 550;
  padding-top: 2px;
}
.services h3 { font-size: 1.3rem; margin-bottom: 10px; }
.services p { color: var(--muted); max-width: 62ch; }
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 3px 9px;
  margin-left: 10px;
  vertical-align: 3px;
  white-space: nowrap;
}

/* W-AI Index band with product logo */
.wai-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 72px;
  align-items: center;
}
.logo-tile {
  background: #FFFFFF;
  border-radius: 4px;
  padding: 18px;
  justify-self: end;
  width: 180px;
}
.logo-tile img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .wai-grid { grid-template-columns: 1fr; gap: 40px; }
  .logo-tile { justify-self: start; width: 150px; }
}

/* Frameworks / credentials strip */
.cred-strip { background: var(--paper); }
.cred-strip .wrap {
  padding-top: 48px;
  padding-bottom: 48px;
  display: grid;
  gap: 12px;
}
.cred-line {
  font-size: .95rem;
  color: var(--muted);
}
.cred-line strong { color: var(--ink); font-weight: 600; }

/* Audience segments */
.segments { display: grid; gap: 0; margin-top: 24px; }
.segment {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.segment:last-child { border-bottom: 1px solid var(--line); }
.segment h3 { font-size: 1.5rem; }
.segment p { color: var(--muted); max-width: 60ch; }

/* CTA band */
.cta-band { background: var(--accent-strong); color: #fff; }
.cta-band .wrap {
  padding-top: 88px;
  padding-bottom: 88px;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  max-width: 26ch;
  margin: 0 auto 16px;
}
.cta-band p { color: #C9D4F0; margin-bottom: 32px; }
.cta-band .btn { background: var(--paper); color: var(--ink); }
.cta-band .btn:hover { background: #fff; color: var(--ink); }

/* Contact blocks */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 24px;
}
.contact-block { border-top: 2px solid var(--accent); padding-top: 24px; }
.contact-block h3 { font-size: 1.25rem; margin-bottom: 12px; }
.contact-block p { color: var(--muted); margin-bottom: 12px; }
.contact-block address { font-style: normal; color: var(--muted); line-height: 1.8; }
.email-big {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 550;
  word-break: break-word;
}

/* Insights placeholders */
.insight-list { list-style: none; margin-top: 24px; }
.insight-list li {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.insight-list li:last-child { border-bottom: 1px solid var(--line); }
.insight-list h3 { font-size: 1.3rem; margin-bottom: 8px; }
.insight-list .meta {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.insight-list p { color: var(--muted); max-width: 62ch; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--muted-on-dark);
  font-size: .92rem;
}
.site-footer .wrap {
  padding-top: 72px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-on-dark);
  margin-bottom: 16px;
}
.site-footer .fname {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted-on-dark); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-legal {
  border-top: 1px solid var(--line-dark);
}
.footer-legal .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: .82rem;
}

/* ---------- Reveal on scroll ---------- */
/* Hidden state only applies once JS has run (html.js), so content is never
   trapped invisible without JavaScript. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }
/* Staggered entrance for numbered service items */
html.js .reveal .services li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
html.js .reveal.in .services li { opacity: 1; transform: none; }
html.js .reveal.in .services li:nth-child(2) { transition-delay: .08s; }
html.js .reveal.in .services li:nth-child(3) { transition-delay: .16s; }
html.js .reveal.in .services li:nth-child(4) { transition-delay: .24s; }
html.js .reveal.in .services li:nth-child(5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .rise, .services li { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: none; }
  .nav-links .nav-cta a { display: inline-block; margin-top: 8px; }
  .brand .desc { display: none; }
  .section .wrap { padding-top: 64px; padding-bottom: 64px; }
  .hero .wrap { padding-top: 72px; padding-bottom: 88px; }
  .pillars, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .segment { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .services li { grid-template-columns: 44px 1fr; gap: 16px; padding: 32px 0; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 36px; }
}
