/* ============================================================
   thinkless group — Apex Landing Page · Iteration 6
   Logomark-locked inclines via clip-path + aspect-ratio
   Exit incline moved: white cut at bottom of Evidence (dark chapter)
   Geometry: rise 11.66 / run 29.61 = 0.393786 → 21.49°
   Angle is mathematically constant at all viewports
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

:root {
  --max: 1120px;
  --max-wide: 1520px;
  /* whitespace */
  --gutter: 24px;
  --section-y: 44px;
  --section-y-lg: 72px;
  --stack-1: 8px;
  --stack-2: 12px;
  --stack-3: 16px;
  --stack-4: 24px;
  --stack-5: 24px;
  --stack-6: 32px;
  --stack-7: 48px;
  /* incline content reserve — matches logomark rise/run exactly
     CSS % padding is relative to width, so this equals incline height */
  --incline-reserve: 39.3786%;
  --incline-exit-cut-visible: 0.55;
  --incline-exit-cut-bleed: 24px;
  /* type */
  --h1: clamp(2.4rem, 6vw, 4.1rem);
  --h2: clamp(1.6rem, 3.2vw, 2.4rem);
  --h3: 1.05rem;
  --body: 1rem;
  --lead: 1.125rem;
  /* colour */
  --bg: #ffffff;
  --text: #333333;
  --muted: rgba(51,51,51,0.74);
  --rule: rgba(51,51,51,0.12);
  --rule-fine: rgba(51,51,51,0.08);
  --wash: #F5F5F6;
  --nest-rule: rgba(51,51,51,0.16);
  --violet: #440099;
  --violet-light: #BF9BDE;
  --dark: #2A2A2A;
  /* internal */
  --font: 'TT Commons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --text-max: 480px;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: var(--body);
}

.page-wrap {
  width: 100%;
  overflow-x: hidden;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- LOGO ---- */
.logo-lockup {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-lockup svg {
  display: block;
  height: 18px;
  width: auto;
  overflow: visible;
  flex-shrink: 0;
  min-width: 94px;
}

.footer .logo-lockup svg {
  height: 18px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--stack-5);
}

.nav-links a {
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* ============================================================
   INCLINE PLANE — logomark-locked geometry
   ============================================================
   Source: logomark SVG path
     M0,0v31.96h31.96V0H0Z
     M1.18,30.78 V1.18 h29.61 v17.94 L1.18,30.78Z

   Hypotenuse segment: (30.79, 19.12) → (1.18, 30.78)
     Run:   29.61
     Rise:  11.66
     Ratio: 11.66 / 29.61 = 0.393786
     Angle: atan(0.393786) = 21.49°

   Implementation:
     aspect-ratio: 2961 / 1166 locks the box to logomark proportion
     clip-path cuts the visible triangle
     No height tokens. No vw calculations. No min/max caps.
     Ratio is intrinsic — angle is constant at every viewport.

   Direction: slope rises left → right (per brand canon)
   ============================================================ */

.section--has-incline {
  position: relative;
  overflow: hidden;
}

.section--has-incline > .section-inner {
  position: relative;
  z-index: 1;
}

.incline {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  aspect-ratio: 2961 / 1166;
  pointer-events: none;
  z-index: 0;
}

/* Incline A — bottom of Hero: wash triangle, bottom-right fill
   Slope rises left→right. Visible area: right triangle at bottom. */
.incline--entry {
  bottom: 0;
  background: var(--wash);
  clip-path: polygon(0% 100%, 100% 0%, 100% 100%);
}

/* Incline B — DISABLED: dark-at-top approach replaced by white-cut-at-bottom of evidence.
   Element retained in DOM but hidden. */
.incline--exit {
  display: none;
}

/* Incline C — white cut at bottom of Evidence (dark chapter)
   Same logomark geometry as entry incline. White triangle carves into dark,
   creating the diagonal transition into white #origin below.
   Slope rises left→right. Visible area: right triangle at bottom. */
.incline--exit-cut {
  bottom: -1px;
  background: var(--bg);
  clip-path: polygon(0% 100%, 100% 0%, 100% 100%);
}

/* ---- SECTION PATTERN ---- */
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section:first-of-type {
  padding-top: calc(56px + var(--section-y));
}

.overline {
  display: block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
}

.overline::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(68, 0, 153, 0.48);
  margin-top: 8px;
}

.hero-h1 {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--h1);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 20px;
}

.section-h2 {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--h2);
  line-height: 1.14;
  letter-spacing: -0.018em;
  color: var(--text);
  max-width: 540px;
  margin-bottom: 20px;
}

.lead {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--lead);
  line-height: 1.52;
  color: rgba(51,51,51,0.80);
  max-width: var(--text-max);
}

.lead + .lead {
  margin-top: var(--stack-1);
}

/* ---- BANDED SECTION (light wash) ---- */
.section--band {
  background: var(--wash);
}

/* ---- DARK CHAPTER ---- */
.section--dark {
  background: var(--dark);
}

.section--dark .overline {
  color: var(--violet-light);
}

.section--dark .overline::after {
  background: rgba(191, 155, 222, 0.40);
}

.section--dark .section-h2 {
  color: #ffffff;
}

.section--dark .nested {
  border-left-color: rgba(255, 255, 255, 0.08);
}

/* ---- NESTED COLUMN (editorial indent) ---- */
.nested {
  border-left: 1px solid var(--nest-rule);
  padding-left: var(--stack-4);
  margin-top: var(--stack-5);
}

/* ---- 01 · HERO ---- */
#hero .hero-support {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(51,51,51,0.76);
  max-width: var(--text-max);
}

/* ---- 02 · MANIFESTO ---- */
#manifesto {
  border-bottom: 1px solid var(--rule-fine);
}

#manifesto .manifesto-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#manifesto .manifesto-lines p {
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--body);
  line-height: 1.55;
  color: rgba(51,51,51,0.86);
  max-width: var(--text-max);
}

#manifesto .manifesto-lines p:last-child {
  margin-top: 14px;
  color: var(--text);
}

/* ---- 03 · IMPACT PRIORITIES (domain chapters) ---- */
#priorities {
  padding-top: calc(var(--section-y) * 1.3);
  padding-bottom: calc(var(--section-y) * 1.3);
}

#priorities .section-inner {
  max-width: var(--max);
  padding: 0 var(--gutter);
}

#priorities .priorities-head {
  max-width: var(--max);
  margin: 0 auto;
  margin-bottom: var(--stack-7);
}

.priorities-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.priority-item {
  display: flex;
  flex-direction: column;
  gap: var(--stack-4);
  padding: var(--stack-7) 0;
  border-top: 1px solid var(--rule);
}

.priority-item:last-child {
  border-bottom: 1px solid var(--rule);
}

.priority-icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.priority-icon svg {
  width: 80px;
  height: 80px;
  stroke: rgba(68, 0, 153, 0.45);
  stroke-width: 0.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.priority-item h3 {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  letter-spacing: -0.01em;
  color: var(--text);
}

.priority-item p {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--text-max);
  margin-top: 16px;
}

/* ---- 04 · EVIDENCE LAYER (dark chapter) ---- */
.brands-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--stack-6) + 6px);
}

.section--dark .brand-entry {
  padding-bottom: calc(var(--stack-6) + 6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section--dark .brand-entry:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.section--dark .brand-header h3 {
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--h3);
  letter-spacing: -0.015em;
  color: #ffffff;
}

.section--dark .brand-logo {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  opacity: 0.82;
}

.section--dark .brand-logo * {
  fill: rgba(255,255,255,0.88);
  stroke: rgba(255,255,255,0.88);
}

.section--dark .brand-domain {
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 0.02em;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px !important;
  line-height: 1.2;
}

.section--dark .brand-domain svg {
  stroke-opacity: 0.52;
}

.section--dark .brand-tagline {
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.835rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(178, 140, 216, 0.88);
  margin-bottom: var(--stack-2);
}

.section--dark .brand-body {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: var(--text-max);
}

.section--dark .brand-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: rgba(191,155,222,0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(191,155,222,0.22);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.section--dark .brand-link:hover {
  color: rgba(191,155,222,0.95);
  border-bottom-color: rgba(191,155,222,0.40);
}

/* ---- EVIDENCE SEAL (governance mark) ---- */
.section--dark .evidence-seal {
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0.9;
  padding-top: var(--stack-6);
}

.section--dark .seal-svg {
  width: 120px;
  height: 120px;
}

#evidence {
  padding-bottom: calc(var(--section-y) + 18px);
}

/* ---- 05 · ORIGIN ---- */
#origin {
  padding-top: var(--section-y);
}

#origin .lead {
  max-width: var(--text-max);
}

/* ---- ORIGIN: violet surface ---- */
.section--violet {
  background: #440099;
}

.section--violet .overline {
  color: rgba(255, 255, 255, 0.70);
}

.section--violet .overline::after {
  background: rgba(255, 255, 255, 0.30);
}

.section--violet .section-h2 {
  color: #ffffff;
}

.section--violet .lead {
  color: rgba(255, 255, 255, 0.88);
}

.section--violet .nested {
  border-left-color: rgba(255, 255, 255, 0.22);
}

/* ---- 06 · CLOSING ---- */
#closing {
  padding-bottom: calc(var(--section-y) * 1.3);
}

#closing .lead {
  max-width: 440px;
}

#closing .presence-provocation {
  margin-top: 56px;
  margin-bottom: 36px;
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--body);
  line-height: 1.30;
  letter-spacing: 0.005em;
  color: rgba(51, 51, 51, 0.90);
  max-width: 400px;
}

.institutional-enquiries {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.enquiry-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.enquiry-label {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(68, 0, 153, 0.65);
}

.enquiry-item a {
  font-family: var(--font);
  font-size: var(--body);
  color: var(--text);
  text-decoration: none;
}

.enquiry-item a:hover {
  text-decoration: underline;
}

/* ---- 07 · FOOTER ---- */
.footer {
  padding: var(--stack-6) 0;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--stack-1);
}

.footer-copy {
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */

@media (min-width: 768px) {
  :root {
    --section-y: var(--section-y-lg);
    --gutter: 48px;
    --text-max: 500px;
  }

  .nav-inner {
    height: 64px;
  }

  .nav-links {
    display: flex;
  }

  .section:first-of-type {
    padding-top: calc(64px + var(--section-y));
  }

  .nested {
    padding-left: var(--stack-5);
  }

  .priority-item {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--stack-7);
  }

  .priority-icon {
    margin-top: 2px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 64px;
  }

  .hero-h1 {
    max-width: 740px;
  }
}

@media (min-width: 1280px) {
  :root {
    --gutter: 80px;
  }
}
