/* ============================================================
   AIANON — Actual Intelligence Anonymous
   (thisishuman.services/actual-intelligence-anonymous)
   Peach ground · azure #0076FF heads · violet #302C4D body
   Transitions: no performance. Everything dissolves, slowly.
   ============================================================ */

@font-face {
  font-family: 'Garton';
  src: url('../fonts/garton/Garton-Regular.woff2') format('woff2'),
       url('../fonts/garton/Garton-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Garton';
  src: url('../fonts/garton/Garton-Italic.woff2') format('woff2'),
       url('../fonts/garton/Garton-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Garton';
  src: url('../fonts/garton/Garton-Bold.woff2') format('woff2'),
       url('../fonts/garton/Garton-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nimbus Sans L';
  src: url('../fonts/nimbus-sans-l/NimbusSanL-Reg.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nimbus Sans L';
  src: url('../fonts/nimbus-sans-l/NimbusSanL-Bol.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --peach: #FFE9E0;   /* #FFE0D2 @ 70% over white — the ground */
  --azure: #0076FF;
  --violet: #302C4D;
  --red: #DC353B;
  --ink: #0C0C0C;
}

@view-transition { navigation: auto; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--peach); }

body {
  background: var(--peach);
  color: var(--violet);
  font-family: 'Garton', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1338px;
  margin: 0 auto;
  padding: 0 51px;
}

/* ---------- Load-in: quiet dissolves, one voice at a time ---------- */

@keyframes dissolve {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.eyebrow, .intro, .hero-painting, .hero-caption {
  opacity: 0;
  animation: dissolve 1100ms ease forwards;
}
.eyebrow        { animation-delay: 0ms; }
.hero-painting, .hero-caption { animation-delay: 300ms; animation-duration: 1600ms; }
.intro          { animation-delay: 700ms; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Scroll reveals: still, slow fades. Nothing moves. ---------- */

html.js-motion .reveal { transition: opacity 1100ms ease; }
html.js-motion .reveal-still { opacity: 0; }
html.js-motion .reveal.revealed { opacity: 1; }

/* ---------- Close ---------- */

.close {
  position: absolute;
  top: 81px;
  right: 109px;
  width: 50px;
  height: 50px;
  color: var(--red);
  transition: color 400ms ease;
  z-index: 2;
}
.close svg { display: block; width: 100%; height: 100%; }
.close:hover { color: var(--violet); }

/* ---------- Hero ---------- */

.eyebrow {
  font-family: 'Nimbus Sans L', Helvetica, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--azure);
  padding-top: 200px;
}

h1 {
  font-weight: 700;
  font-size: clamp(52px, 11.4vw, 164px);
  line-height: 1.0;
  color: var(--azure);
  text-transform: uppercase;
  margin-top: 14px;
}
h1 span { display: block; }

.intro {
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.33;
  margin-top: 46px;
  max-width: 1280px;
}

.hero-painting {
  display: block;
  width: 1280px;
  max-width: 100%;
  height: auto;
  margin: 24px auto 0;
}

.hero-caption {
  margin: 14px auto 0;
  max-width: 1105px;
  text-align: center;
  font-style: italic;
  font-size: 14px;
  line-height: 16px;
}

/* ---------- Buttons (449×66 red blocks, Garton italic) ---------- */

.btn-row { margin-top: 69px; }
.btn-row.centered { text-align: center; }
.btn-row.steps-btn { margin: 69px auto 0; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 449px;
  min-height: 66px;
  padding: 14px 36px;
  background: var(--red);
  color: #FFF1EA;
  font-family: 'Garton', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.1;
  text-align: center;
  transition: background 300ms ease;
}
.btn:hover { background: var(--azure); }

/* The hero button dissolves in with the rest of the load-in. */
header + section .btn-row .btn { opacity: 0; animation: dissolve 1100ms ease forwards 1400ms; }

/* ---------- Sections ---------- */

.section-head {
  font-weight: 700;
  font-size: clamp(40px, 4.8vw, 69px);
  line-height: 1.03;
  color: var(--azure);
  text-transform: uppercase;
  text-align: center;
  margin-top: 100px;
}

.story-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1280px;
  margin: 69px auto 0;
}

.story-cols p, .full-story p, .points p, .charter-list p {
  font-size: 18px;
  line-height: 22px;
}

.label {
  font-weight: 700;
  text-transform: uppercase;
}
.story-cols .label { display: inline; }
.story-cols .col > p + p { margin-top: 22px; }

/* Two paintings, side by side — images take the slow lane. */
html.js-motion .paintings.reveal { transition-duration: 1600ms; }
.paintings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 1280px;
  margin: 92px auto 0;
}
.paintings img {
  width: 100%;
  height: 100%;
  aspect-ratio: 635 / 536;
  object-fit: cover;
  display: block;
}

.paintings-caption {
  margin: 14px auto 0;
  max-width: 1105px;
  text-align: center;
  font-style: italic;
  font-size: 14px;
  line-height: 16px;
}

.full-story {
  max-width: 846px;
  margin: 69px auto 0;
}
.full-story .insight p + p { margin-top: 22px; }
.full-story .insight + .insight { margin-top: 22px; }

/* ---------- The 12 Steps / The Charter: intro beside list ---------- */

/* Column widths and gaps as per the Figma frame:
   12 Steps — aside 411 | 27px | steps 681, centred as a pair.
   Charter — list 469 | 17px | aside 411, centred as a pair. */
.split {
  display: grid;
  grid-template-columns: 411px 681px;
  gap: 27px;
  justify-content: center;
  margin: 69px auto 0;
}
.split.flip { grid-template-columns: 469px 411px; gap: 17px; }

.split .aside {
  font-style: italic;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.33;
}

.steps {
  list-style: none;
  counter-reset: step;
  max-width: 681px;
}
.steps li {
  counter-increment: step;
  font-size: 18px;
  line-height: 22px;
  padding-left: 27px;
  position: relative;
}
.steps li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
}
.steps li + li { margin-top: 44px; }
.steps b { font-weight: 700; }

.charter-list p + p { margin-top: 22px; }
.charter-list b { font-weight: 700; }

/* ---------- What it points to ---------- */

.points {
  max-width: 628px;
  margin: 58px auto 0;
}

.made-by {
  max-width: 628px;
  margin: 56px auto 0;
  font-style: italic;
  font-size: 18px;
  line-height: 22px;
  color: var(--azure);
}
.made-by a { text-decoration: underline; }
.made-by a:hover { color: var(--violet); }

/* ---------- Contact / footer ---------- */

.contact {
  margin-top: 128px;
  padding-bottom: 75px;
  text-align: center;
}
.contact .contact-link {
  position: relative;
  display: inline-block;
}
.contact .gif-frame {
  display: block;
  width: 288px;
  height: 288px;
  border: 30px solid var(--ink);
}
.contact .gif-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contact .cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 442px;
  font-family: 'Nimbus Sans L', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 69px;
  line-height: 69px;
  letter-spacing: 2.76px;
  text-align: center;
  color: var(--red);
  transition: color 400ms ease;
}
.contact .contact-link:hover .cta { color: var(--azure); }

.footer-logo {
  display: block;
  margin: 68px auto 0;
  width: 288px;
  height: auto;
}

/* Type credit — same gap below the logo as contact-to-logo above it. */
.contact .credit {
  margin: 68px 20px 0;
  text-align: center;
  font-family: 'Nimbus Sans L', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--violet);
}
.contact .credit a { text-decoration: underline; }
.contact .credit a:hover { color: var(--azure); }

/* Mid widths: keep the Figma proportions but let the pair shrink. */
@media (max-width: 1240px) and (min-width: 768px) {
  .split { grid-template-columns: minmax(0, 411fr) minmax(0, 681fr); }
  .split.flip { grid-template-columns: minmax(0, 469fr) minmax(0, 411fr); }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .wrap { padding: 0 20px; }

  .close { top: 24px; right: 20px; width: 36px; height: 36px; }

  .eyebrow { padding-top: 80px; }
  h1 { margin-top: 10px; }
  .intro { margin-top: 28px; }

  .hero-painting { margin-top: 48px; }

  .section-head { margin-top: 64px; }
  .story-cols {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 40px;
  }
  .paintings { margin-top: 48px; gap: 8px; }
  .full-story, .points { margin-top: 40px; }

  .split, .split.flip { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .split.flip .aside { order: 1; }
  .split.flip .charter-list { order: 2; }
  .steps li + li { margin-top: 32px; }

  .btn-row { margin-top: 40px; }
  .btn { min-width: 0; width: 100%; font-size: 20px; }

  .contact { margin-top: 80px; padding-bottom: 60px; }
  .contact .gif-frame { width: 239px; height: 239px; }
  .contact .cta {
    position: static;
    transform: none;
    display: block;
    width: auto;
    margin-top: 14px;
    font-size: 18px;
    line-height: 29px;
    letter-spacing: 0.72px;
  }
  .footer-logo { margin-top: 56px; width: 272px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .eyebrow, h1 .l1, h1 .l2, h1 .l3, .intro, .hero-painting, .hero-caption {
    animation: none;
    opacity: 1;
  }
  .contact .cta, .close { transition: none; }
  html.js-motion .reveal { transition: none; }
  html.js-motion .reveal-still { opacity: 1; }
}

/* ---------- Cookie notice ---------- */

@keyframes notice-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 18px 51px;
  background: var(--azure);
  color: var(--peach);
  animation: notice-in 400ms ease both;
}
.cookie-notice p {
  flex: 1 1 auto;
  font-family: 'Nimbus Sans L', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}
.cookie-actions { flex: 0 0 auto; display: flex; gap: 10px; }
.cookie-actions button {
  font-family: 'Nimbus Sans L', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border: 2px solid var(--peach);
  background: transparent;
  color: var(--peach);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.cookie-actions button:hover { background: var(--peach); color: var(--azure); }
@media (max-width: 767px) {
  .cookie-notice { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-notice { animation: none; }
  .cookie-actions button { transition: none; }
}

/* ---------- Next project ---------- */

.next-project {
  margin-top: 128px;
  text-align: center;
}
.next-project .next-label {
  font-family: 'Nimbus Sans L', Helvetica, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--violet);
}
.next-project a {
  display: inline-block;
  margin-top: 10px;
  font-family: 'Garton', Georgia, serif;
  font-weight: 700;
  font-size: clamp(32px, 4.8vw, 69px);
  line-height: 1.03;
  text-transform: uppercase;
  color: var(--azure);
  transition: color 400ms ease;
}
.next-project a:hover { color: var(--violet); }
@media (max-width: 767px) {
  .next-project { margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .next-project a { transition: none; }
}
