/* W Strategic Solutions — site styles */

:root {
  /* Brand colors sampled from the logo: navy, teal, gold */
  --ink: #0d2a53;
  --ink-2: #173d70;
  --ink-soft: #42526a;
  --muted: #5d6b7e;
  --accent: #2c7c7d;
  --accent-strong: #1f6364;
  --accent-tint: #e8f2f2;
  --gold: #d0a428;
  --accent-on-dark: #e0b94a;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #e4e2db;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 33, 56, .06), 0 8px 24px rgba(15, 33, 56, .07);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --brand: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1280px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-strong); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.45rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden { display: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--brand);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 .98rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: .55rem 1.05rem; font-size: .9rem; }
.btn:disabled { opacity: .6; cursor: progress; }

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-strong);
}
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 58px;
  height: 40px;
  flex: none;
}
.brand-text {
  display: grid;
  gap: 5px;
  font-family: var(--brand);
  line-height: 1;
  text-transform: uppercase;
}
.brand-name {
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .07em;
  color: var(--ink);
}
.brand-tag {
  font-weight: 500;
  font-size: .6rem;
  letter-spacing: .25em;
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a:not(.btn) {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 55% at 88% 18%, rgba(44, 124, 125, .11), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: .45em; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 40px;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.hero-facts strong {
  display: block;
  font: 600 1.35rem/1.3 var(--serif);
  color: var(--ink);
}
.hero-facts span {
  display: block;
  font-size: .88rem;
  line-height: 1.4;
  color: var(--muted);
}

.hero-visual {
  margin: 0;
  padding: 24px 24px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-visual figcaption {
  margin-top: 6px;
  font-size: .85rem;
  text-align: center;
  color: var(--muted);
}

.eco-ring { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 6; }
.eco-lines line { stroke: var(--accent); stroke-width: 1.5; opacity: .35; }
.eco-pulses line {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 140;
  animation: eco-flow 4s linear infinite;
}
.eco-pulses line:nth-child(2) { animation-delay: -.8s; }
.eco-pulses line:nth-child(3) { animation-delay: -1.6s; }
.eco-pulses line:nth-child(4) { animation-delay: -2.4s; }
.eco-pulses line:nth-child(5) { animation-delay: -3.2s; }
@keyframes eco-flow { to { stroke-dashoffset: -150; } }

.eco-halo { fill: var(--accent-tint); }
.eco-core { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.eco-nodes circle { stroke: #fff; stroke-width: 3; }
.eco-nodes .n-navy { fill: var(--ink); }
.eco-nodes .n-teal { fill: var(--accent); }
.eco-nodes .n-gold { fill: var(--gold); }
.eco-labels text {
  font: 600 15px var(--sans);
  fill: var(--ink-soft);
  text-anchor: middle;
}

/* Sections */
.section { padding: 96px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  margin-bottom: 56px;
}
/* Headings fill the row; "pretty" avoids a lone word on the last line */
.section-head h2 { text-wrap: pretty; }
.section-head p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* Why us */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.pillar {
  padding-top: 20px;
  border-top: 3px solid var(--ink);
}
.pillar:nth-child(2) { border-top-color: var(--accent); }
.pillar:nth-child(3) { border-top-color: var(--gold); }
.pillar-num {
  display: block;
  margin-bottom: 12px;
  font: 600 .95rem/1 var(--serif);
  color: var(--accent);
}
.pillar p {
  margin: 0;
  font-size: .98rem;
  color: var(--ink-soft);
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d5d2c8;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-strong);
}
.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service p {
  margin: 0;
  font-size: .97rem;
  color: var(--ink-soft);
}

/* Who we work with */
.audience {
  padding: 56px 0;
  background: var(--ink);
  color: #fff;
}
.audience-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}
.audience h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #fff;
}
.chips {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 260px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: .5rem 1rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .92);
}

/* Approach */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
}
.step p {
  margin: 0;
  font-size: .97rem;
  color: var(--ink-soft);
}

/* Selected experience */
.cases {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.case {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
}
.case:nth-child(n + 4) { grid-column: span 3; }
.case:nth-child(3n + 2) { border-top-color: var(--accent); }
.case:nth-child(3n) { border-top-color: var(--gold); }
.case-stat {
  margin: 0;
  font: 600 2.6rem/1 var(--serif);
  letter-spacing: -.02em;
  color: var(--ink);
}
.case-stat-label {
  margin: 8px 0 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-strong);
}
.case h3 { font-size: 1.15rem; }
.case-text {
  font-size: .96rem;
  color: var(--ink-soft);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: auto 0 0;
  padding-top: 8px;
  font-size: .82rem;
  color: var(--muted);
}
.case-tag {
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-weight: 600;
}

/* Founder */
.founder-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.portrait {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  box-shadow: var(--shadow);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}
.credentials li {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .93rem;
  line-height: 1.45;
}
.credentials strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}
.credentials span { color: var(--muted); }

.pubs { margin-bottom: 28px; }
.pubs h3 {
  margin-bottom: .75em;
  font: 600 .8rem/1.2 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pubs ol {
  margin: 0;
  padding-left: 1.2em;
  font-size: .93rem;
  color: var(--ink-soft);
}
.pubs li { margin-bottom: .6em; }

/* Ways to work together */
.engage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.engage-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.engage-card h3 { font-size: 1.15rem; }
.engage-card p {
  font-size: .96rem;
  color: var(--ink-soft);
}
.engage-card .engage-fit {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
}
.engage-fit strong { font-weight: 600; color: var(--ink); }
.engage-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--accent-tint);
  border-radius: var(--radius);
}
.engage-cta p {
  max-width: 460px;
  margin: 0;
  font: 600 1.2rem/1.35 var(--serif);
  color: var(--ink);
}
.engage-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font: 600 1.1rem/1.35 var(--serif);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-strong);
  font: 600 1.15rem/1 var(--sans);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0 0 20px;
  padding-right: 44px;
  color: var(--ink-soft);
}

/* Contact */
.contact {
  background: var(--ink);
  color: #fff;
}
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--accent-on-dark); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy p { color: rgba(255, 255, 255, .78); font-size: 1.08rem; }
.contact-list {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.contact-list .label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}
.contact-list a { color: #fff; }
.contact-actions { margin-top: 28px; }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--accent-on-dark); }

.contact-form {
  padding: 32px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: .88rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid #cfd3da;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .97rem;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 124, 125, .2);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form .btn { width: 100%; margin-top: 4px; }
.form-note {
  margin: 12px 0 0;
  font-size: .82rem;
  color: var(--muted);
}
.form-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  padding: 36px 0;
  background: #081d3a;
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Privacy notice page */
.legal { padding: 64px 0 96px; }
.legal-body { max-width: 760px; }
.legal-body h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-body h2 { margin-top: 2em; font-size: 1.35rem; }
.legal-body p,
.legal-body li { color: var(--ink-soft); }
.legal-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal-body li { margin-bottom: .4em; }
.legal-meta { font-size: .9rem; color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { width: 100%; max-width: 460px; margin: 0 auto; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .chips { justify-content: flex-start; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .case, .case:nth-child(n + 4) { grid-column: span 1; }
  .case:last-child { grid-column: span 2; }
  .engage { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 33, 56, .08);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .site-nav .btn { margin-top: 16px; padding: .85rem 1.4rem; }
}

@media (max-width: 880px) {
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { position: static; max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 48px 0 64px; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .pillars, .services, .steps, .cases { grid-template-columns: 1fr; }
  .case, .case:nth-child(n + 4), .case:last-child { grid-column: auto; }
  .case { padding: 24px; }
  .engage { grid-template-columns: 1fr; }
  .engage-cta { padding: 24px 20px; }
  .engage-actions .btn { flex: 1 1 auto; }
  .faq details p { padding-right: 0; }
  .credentials { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .brand { gap: .55rem; }
  .brand-mark { width: 46px; height: 32px; }
  .brand-name { font-size: .78rem; letter-spacing: .05em; }
  .brand-tag { font-size: .5rem; letter-spacing: .2em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
