/* ProductiveQ — shared corporate identity and accessible site shell. */
:root {
  --paper: #f5f2ec;
  --surface: #faf7f1;
  --ink: #16283a;
  --navy: #0e1d2c;
  --muted: #465665;
  --subtle: #5e6d7c;
  --copper: #a9501b;
  --copper-hover: #863e14;
  --signal: #c96f2e;
  --line: rgba(22, 40, 58, .17);
  --font-body: 'Hanken Grotesk', 'Segoe UI', sans-serif;
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--copper); text-decoration: none; text-underline-offset: .25em; }
a:hover { color: var(--copper-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 5px;
}
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.875rem); font-weight: 500; line-height: 1.16; letter-spacing: -.02em; }
h3 { font-size: 1.5rem; line-height: 1.25; }
p { text-wrap: pretty; }
::selection { background: #e6c5a7; color: var(--ink); }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  margin: 0;
  font: 500 .75rem/1.7 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--subtle);
}
.section-heading { max-width: 48rem; }
.section-heading h2 { margin: 1.1rem 0 0; font-weight: 500; }
.skip-link {
  position: fixed; z-index: 100; top: 1rem; left: 1rem;
  padding: .75rem 1.25rem; background: var(--ink); color: var(--surface);
  border-radius: .375rem; transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); color: var(--surface); }

/* Navigation remains usable without JavaScript; the toggle progressively enhances it. */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 242, 236, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-nav { display: flex; align-items: center; gap: 2rem; min-height: 5.25rem; }
.site-brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.site-brand img { display: block; width: auto; height: 2rem; max-width: 12.5rem; object-fit: contain; }
.site-nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 1.65rem; margin-left: auto; }
.site-nav-links > a:not(.button) {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  position: relative; color: var(--muted); font-size: .9375rem; font-weight: 500;
  text-decoration: none;
}
.site-nav-links > a:not(.button)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .2rem;
  height: 2px; background: var(--copper); transform: scaleX(0);
  transform-origin: left; transition: transform .18s ease;
}
.site-nav-links > a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.site-nav-links > a[aria-current="page"]::after,
.site-nav-links > a:not(.button):hover::after { transform: scaleX(1); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.125rem; padding: .8rem 1.4rem;
  border: 1px solid transparent; border-radius: .375rem;
  font: 600 1rem/1.4 var(--font-body); text-align: center; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button-primary { background: var(--copper); border-color: var(--copper); color: var(--surface); }
.button-primary:hover { background: var(--copper-hover); border-color: var(--copper-hover); color: var(--surface); box-shadow: 0 3px 10px rgba(90, 44, 16, .12); }
.button-secondary { background: transparent; border-color: rgba(22,40,58,.35); color: var(--ink); }
.button-secondary:hover { background: rgba(22,40,58,.045); border-color: var(--ink); color: var(--ink); }
.site-nav .nav-cta { min-height: 2.75rem; padding: .65rem 1rem; font-size: .9375rem; }
.nav-toggle { display: none; }
.button-row { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2rem; }

/* Home: editorial argument on the left; the existing analytical diagram on the right. */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { display: flex; gap: .7rem; align-items: baseline; font-size: .75rem; letter-spacing: .09em; }
.hero-copy .eyebrow::before { content: ''; flex: 0 0 1.5rem; height: 2px; background: var(--copper); align-self: center; }
.hero-copy h1 { font-weight: 500; margin: 1.5rem 0 0; font-size: clamp(2.625rem, 4.7vw, 4.125rem); line-height: 1.075; max-width: 15ch; }
.hero-copy h1 span { color: var(--copper); }
.hero-intro { margin: 1.75rem 0 0; font-size: 1.125rem; line-height: 1.75; color: var(--muted); max-width: 49ch; }
.hero-assurance { margin: 1.25rem 0 0; padding-left: 1rem; border-left: 2px solid var(--signal); font-size: .9375rem; line-height: 1.6; color: var(--ink); max-width: 48ch; }
.hero-figure { min-width: 0; margin: 0; }
.hero-figure > svg { display: block; width: 100%; height: auto; border-radius: .875rem; box-shadow: 0 16px 40px -24px rgba(22,40,58,.28); }
.hero-figure figcaption { margin-top: .9rem; padding-left: .15rem; font: .75rem/1.65 var(--font-mono); color: var(--subtle); }
.home-problem { border-block: 1px solid var(--line); background: var(--surface); }
.home-problem > .container, .home-process > .container { padding-block: var(--section-space); }
.home-problem h2 { max-width: 28ch; }
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; margin-top: 3.25rem; }
.problem-card { min-width: 0; padding: 1.75rem 0 0; border-top: 1px solid var(--line); }
.problem-card .step-number, .process-step .step-number { font: .8125rem/1.5 var(--font-mono); color: var(--copper); margin: 0; }
.problem-card h3 { font-size: 1.625rem; font-weight: 500; margin: 1rem 0 .75rem; }
.problem-card p:last-child { margin: 0; font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 34ch; }
.process-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2rem; margin-top: 3rem; }
.process-step { min-width: 0; border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.process-step h3 { font-size: 1.5rem; margin: .85rem 0 .75rem; font-weight: 500; }
.process-step p:last-child { margin: 0; font-size: 1rem; line-height: 1.75; color: var(--muted); }
.process-cta { margin-top: 2.5rem; }
.home-principles { background: var(--navy); color: var(--surface); }
.home-principles > .container { padding-block: clamp(3rem,6vw,4.75rem); }
.home-principles .eyebrow { color: #a8b6c4; }
.principles-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2rem; margin-top: 2rem; }
.principle { border-top: 1px solid rgba(245,242,236,.25); padding-top: 1.25rem; min-width: 0; }
.principle::before { content: ''; display: block; width: 1.5rem; height: 2px; background: var(--signal); margin-bottom: 1rem; }
.principle p { margin: 0; font-size: 1rem; line-height: 1.65; color: #e9e4da; }
.home-closing { text-align: center; }
.home-closing .container { max-width: 920px; padding-block: clamp(4.5rem,9vw,7.5rem); }
.home-closing p { margin: 0; font: 500 clamp(1.75rem,3vw,2.625rem)/1.35 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.home-closing .button { margin-top: 2.25rem; }

.site-footer { background: var(--navy); color: var(--paper); border-top: 1px solid rgba(245,242,236,.14); }
.site-footer > .container { padding-top: 3.5rem; padding-bottom: 1.5rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr .75fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-positioning { max-width: 27ch; margin: 1.25rem 0 0; font-size: .9375rem; line-height: 1.65; color: #a8b6c4; }
.footer-nav { display: grid; gap: .1rem; align-content: start; }
.footer-nav a { min-height: 2.75rem; display: inline-flex; align-items: center; width: fit-content; color: #e9e4da; font-size: .9375rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-contact { padding-top: .25rem; }
.footer-contact p { color: #bdc9d2; font-size: .9375rem; margin: 0 0 .5rem; }
.footer-contact a { color: #e3a16e; overflow-wrap: anywhere; }
.footer-contact a:hover { color: #f2c7a6; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; column-gap: 1.5rem; row-gap: .75rem; padding-top: 1.5rem; border-top: 1px solid rgba(245,242,236,.18); color: #a8b6c4; font-size: .8125rem; }
.footer-bottom > :first-child { margin-right: auto; }
.footer-bottom a { color: #bdc9d2; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.site-footer a:focus-visible { outline-color: #e3a16e; }

/* Keep content visible and diagrams still, including export-era infinite animations. */
main svg [style*="animation"] { animation: none !important; }

@media (max-width: 68rem) {
  .site-nav { flex-wrap: wrap; gap: 0 1rem; min-height: 4.5rem; justify-content: space-between; }
  .site-nav-links { width: 100%; margin: 0; padding: .5rem 0 1.25rem; justify-content: flex-start; flex-wrap: wrap; gap: .5rem 1.5rem; }
  .site-nav.is-enhanced .nav-toggle { display: inline-flex; align-items: center; gap: .75rem; padding: .6rem .75rem; min-height: 2.75rem; margin-left: auto; border: 1px solid var(--line); border-radius: .375rem; background: transparent; color: var(--ink); font-size: .9375rem; font-weight: 600; }
  .nav-toggle-icon { position: relative; width: 1rem; height: .625rem; border-block: 1.5px solid currentColor; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon { height: 1rem; border: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before,
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { content: ''; position: absolute; left: 0; top: .45rem; width: 1rem; height: 1.5px; background: currentColor; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: rotate(-45deg); }
  .site-nav.is-enhanced .site-nav-links { display: none; }
  .site-nav.is-enhanced .site-nav-links[data-open="true"] { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .375rem 1rem; max-height: calc(100dvh - 5rem); overflow-y: auto; border-top: 1px solid var(--line); padding-top: 1rem; }
  .site-nav-links > a:not(.button) { min-height: 2.75rem; }
  .site-nav-links > a:not(.button)::after { right: auto; width: 1.25rem; }
  .site-nav .nav-cta { margin-top: .25rem; }
  .home-hero { grid-template-columns: minmax(0,1fr) minmax(0,.92fr); gap: 2rem; }
  .hero-copy h1 { font-size: clamp(2.625rem,5vw,3.75rem); }
  .hero-copy .eyebrow { font-size: .75rem; }
  .hero-intro { font-size: 1.0625rem; }
  .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .principles-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 48rem) {
  html { scroll-padding-top: 5.5rem; }
  .site-brand img { height: 1.75rem; max-width: 11rem; }
  .home-hero { grid-template-columns: minmax(0,1fr); padding-top: 3rem; gap: 2.5rem; }
  .hero-copy { max-width: 38rem; }
  .hero-copy h1 { max-width: 17ch; font-size: clamp(2.625rem,7vw,3.75rem); }
  .hero-copy .eyebrow { max-width: 34rem; font-size: .75rem; }
  .hero-intro { font-size: 1.125rem; }
  .hero-figure { max-width: 36rem; width: 100%; justify-self: center; }
  .problem-grid { grid-template-columns: minmax(0,1fr); gap: 1.75rem; margin-top: 2rem; }
  .problem-card p:last-child { max-width: 56ch; }
  .process-grid { gap: 2rem 1.5rem; }
  .principles-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.75rem; }
  .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-positioning { max-width: none; }
  .footer-bottom > :first-child { flex-basis: 100%; }
}
@media (max-width: 30rem) {
  .site-nav.is-enhanced .site-nav-links[data-open="true"] { grid-template-columns: minmax(0,1fr); }
  .site-nav-links > a:not(.button) { padding-inline: .25rem; }
  .button-row { flex-direction: column; align-items: stretch; }
  .hero-copy .eyebrow { font-size: .75rem; letter-spacing: .06em; }
  .process-grid, .principles-grid, .footer-main { grid-template-columns: minmax(0,1fr); }
  .footer-identity { grid-column: auto; }
  .footer-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-bottom { gap: .75rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .button, .nav-toggle { border: 1px solid ButtonText; }
  .site-nav-links > a[aria-current="page"] { text-decoration: underline; }
}
