/* Powerworks Global — homepage styles. Direction: one-motif (taste-skill v2).
   Motif: the single 90° mitered notch from the anchor mark's own shackle/stock
   joints — the only shape on the page besides the locked mark itself. */

:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --ink: #111418;
  --muted: #4a5460;
  --accent: #2b5ce6;
  --accent-ink: #ffffff;
  --line: #d8dce1;

  --font-display: 'IBM Plex Sans', system-ui, sans-serif;
  --font-text: 'IBM Plex Sans', system-ui, sans-serif;
  --font-serif: 'IBM Plex Serif', serif;
  --font-mono: 'IBM Plex Mono', monospace; /* taste-skill-ignore: used only by .mono / .field__card, real code output */

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.4rem, 1.6rem + 6vw, 6.2rem);

  --margin: clamp(1.25rem, 3vw, 3rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(5.5rem, 11vw, 12rem);
  --radius: 0px;

  --notch: 28px; /* the motif's single scale unit; applied at 1x, 2x, 0.5x */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-hover: 180ms;
  --t-reveal: 760ms;
  --stagger-item: 70ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
.display { font-size: var(--step-display); line-height: 0.96; letter-spacing: -0.03em; font-weight: 700; }
.head { font-size: var(--step-head); line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); } /* taste-skill-ignore: only applied to real code lines inside .field__card */
p { max-width: 64ch; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* single margin system: every __inner already sets max-width + margin-inline: auto;
   .wrap only adds the page-edge gutter once that box is narrower than the viewport */
.wrap { padding-inline: var(--margin); max-width: calc(76rem + var(--margin) * 2); margin-inline: auto; }
.section { padding-block: calc(var(--section) / 2); }

/* ---------- the motif: one 90° notch, cut from a corner, at three scales ---------- */
.notch-sm { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.notch-md { clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }
.notch-lg { clip-path: polygon(0 0, calc(100% - calc(var(--notch) * 2.4)) 0, 100% calc(var(--notch) * 2.4), 100% 100%, 0 100%); }
.notch-bullet {
  display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.55em;
  background: var(--accent); flex-shrink: 0;
  clip-path: polygon(0 0, 55% 0, 100% 45%, 100% 100%, 0 100%);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10; background: var(--bg);
  border-bottom: none;
}
.nav__row {
  padding-block: 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
}
.nav__mark { display: flex; align-items: center; gap: 0.6rem; }
.nav__wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav__wordmark b { font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
.nav__wordmark span { font-weight: 400; font-size: 0.56rem; letter-spacing: 0.22em; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 1.9rem; flex-wrap: wrap; }
.nav__links a.small { font-weight: 500; transition: color var(--t-hover) var(--ease-out); }
.nav__links a.small:hover { color: var(--accent); }
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.6rem; display: inline-block;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #1e45b8; }
.btn--ghost { background: var(--ink); color: var(--bg); }
.btn--ghost:hover { background: #2a2f36; }

/* ---------- hero (dark ground, motif enormous, cropped by the viewport) ---------- */
.hero {
  background: var(--ink); color: var(--bg); position: relative; overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(5rem, 11vw, 9rem);
}
.hero__motif {
  position: absolute; right: -10vw; top: -16vw; width: 50vw; height: 50vw;
  background: var(--accent); opacity: 0.94;
  clip-path: polygon(0 0, calc(100% - 22vw) 0, 100% 22vw, 100% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero__motif-mark { width: 46%; height: 46%; }
.hero__inner { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { margin-bottom: 1.6rem; }
.hero .lead { color: #c7cedb; margin-bottom: 2.4rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__regional-note { color: #8893a4; margin-top: 1.4rem; }
.hero__regional-note a { color: #c7cedb; }
.hero .btn--primary.notch-md {}

/* ---------- about: split statement + values ---------- */
.about__inner { }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about__statement { max-width: 30ch; }
.about__statement h2 { margin-bottom: 1.4rem; }
.about__statement p { color: var(--muted); }
.values__list { display: flex; flex-direction: column; gap: 1.6rem; }
.value__row { display: flex; align-items: flex-start; gap: 1rem; padding-block: 1.1rem; border-top: none; }
.value__row:first-child { padding-top: 0; }
.value__name { font-weight: 600; font-size: 1.05rem; }
@media (max-width: 56em) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ---------- how-it-works: four fields, interactive, real artifact progressing ---------- */
.flow { background: var(--surface); }
.flow__inner { }
.flow h2 { margin-bottom: 2.6rem; }
.flow__fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); }
.field {
  background: var(--bg); padding: 2.2rem 2.2rem 2.4rem; min-height: 16rem;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 1.4rem;
  cursor: pointer; transition: background var(--t-hover) var(--ease-out);
  border: none; text-align: left; width: 100%; font: inherit;
}
.field[aria-pressed="true"] { background: #eef2fb; }
.field:hover { background: #f0f2f5; }
.field__clause { font-weight: 600; font-size: 1.1rem; }
.field__card {
  /* taste-skill-ignore: real literal code/telemetry output, a data-ui artifact fragment */
  background: var(--ink); color: #c7cedb; padding: 1.4rem 1.3rem;
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.7; /* taste-skill-ignore: real code output, data-ui fragment */
  min-width: 300px; min-height: 220px; margin: 0; white-space: pre-wrap; max-width: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.field__card .ok { color: #6fe08c; }
.field__card .pending { color: #e0b96f; }
@media (max-width: 56em) {
  .flow__fields { grid-template-columns: 1fr; }
  .field__card { min-width: 0; }
}

/* ---------- features: three pillars as real artifact specimens ---------- */
.pillars__inner { }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); margin-top: 2.6rem; }
.pillar { background: var(--bg); padding: 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
.pillar__name { font-size: 1.3rem; font-weight: 700; }
.pillar ul { display: flex; flex-direction: column; gap: 0.55rem; }
.pillar li { display: flex; align-items: center; font-size: 1rem; color: var(--muted); }
@media (max-width: 64em) { .pillars { grid-template-columns: 1fr; } }

.deliverable {
  background: var(--ink); color: var(--bg); margin-top: 2px;
  padding: 1.8rem 2.2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
/* ---------- anti-values (dark, confident non-goals) ---------- */
.nongoals { background: var(--ink); color: var(--bg); }
.nongoals__inner { }
.nongoals__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem; margin-top: 2.2rem; }
.nongoal h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.nongoal p { color: #9aa3ad; font-size: 1.0625rem; }
@media (max-width: 56em) { .nongoals__grid { grid-template-columns: 1fr; } }

/* ---------- stance statement ---------- */
.stance { border-top: none; }
.stance__inner { max-width: 44rem; margin-inline: auto; text-align: center; }
.stance blockquote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 2vw, 2.1rem); line-height: 1.4; }
.stance p { margin-top: 1.2rem; color: var(--muted); font-size: 0.95rem; max-width: none; }

/* ---------- cta: a sentence with a blank ---------- */
.cta { background: var(--surface); }
.cta__inner { }
.cta__sentence {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 3.4vw, 3.4rem);
  line-height: 1.12; letter-spacing: -0.02em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3em;
}
.cta__field {
  font: inherit; font-size: 0.5em; background: var(--bg); border: none;
  padding: 0.5em 0.7em; min-width: 9em;
}
.cta__field::placeholder { color: var(--muted); font-family: var(--font-text); font-weight: 400; }
.cta__submit { font: inherit; font-size: 0.5em; background: var(--accent); color: var(--accent-ink); padding: 0.5em 0.9em; }
.cta__submit:hover { background: #1e45b8; }
.cta__note { margin-top: 1.4rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- footer: the mark, built large from rectangles ---------- */
.footer { background: var(--surface); }
.footer__inner { }
.footer__mark { display: flex; justify-content: center; margin-bottom: 3rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
  padding: 2.4rem 2.2rem; background: var(--bg);
}
.footer__links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer__links a:hover { color: var(--accent); }
.footer__row { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
  .reveal.is-in { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__motif { animation: motif-drift 22s var(--ease-out) infinite alternate; }
}
@keyframes motif-drift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.035) translate(-0.6%, 0.8%); }
}
