/* FeedForward — site styles
   Palette and typefaces follow the FeedForward brand identity guidelines. */

@font-face {
  font-family: "Alata";
  src: url("../fonts/alata-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --leaf: #9ACA3C;
  --charcoal: #474747;
  --ink: #2e2e2e;          /* charcoal, deepened for small text on green */
  --teal: #2F8599;
  --teal-deep: #26717F;    /* teal, deepened so white body text passes AA */
  --sand: #AFA18E;
  --ember: #CE6734;
  --white: #FFFFFF;
  --mist: #F4F6EF;

  --display: "Alata", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, dl, dd { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--charcoal); color: var(--white); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-bottom: 1px solid rgba(71, 71, 71, .14);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand img { width: clamp(150px, 18vw, 205px); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); font-size: .975rem; font-weight: 600; }
.site-nav a { text-decoration: none; padding-block: .4rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--leaf); }
.site-nav .nav-cta {
  background: var(--charcoal); color: var(--white);
  padding: .65rem 1.15rem; border-radius: 999px; border-bottom: 0; white-space: nowrap;
}
.site-nav .nav-cta:hover { background: var(--ink); }

@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.btn-line { color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }

/* ---------- hero ---------- */

.hero { background: var(--leaf); color: var(--ink); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.9rem); color: var(--ink); }
.hero-lede { margin-top: 1.75rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 34ch; font-weight: 500; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .85rem; }

/* the feedback loop */

.loop { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin-inline: auto; }
.loop-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop-art path { fill: none; stroke-linecap: butt; }
.loop-f { stroke: var(--white); stroke-width: 34; stroke-dasharray: 1; stroke-dashoffset: 0; }
.loop-f-inner { stroke-width: 30; opacity: .55; }
.loop-ring { stroke: var(--charcoal); stroke-width: 34; stroke-dasharray: 1; stroke-dashoffset: 0; }
.loop-chevrons path { stroke: var(--ember); stroke-width: 12; stroke-linejoin: miter; stroke-linecap: square; }
.loop-chevrons { display: none; }

.loop-step {
  position: absolute; transform: translate(-50%, -50%);
  font: 400 clamp(.9rem, 1.5vw, 1.1rem)/1 var(--display);
  color: var(--ink); background: var(--white);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: .7em 1.05em; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.loop-step:hover { background: var(--mist); }
.loop-step[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.loop-step:focus-visible { outline-color: var(--ink); }
/* points on the ring at 45° intervals: 300 ± 240·sin45 = 130.3 / 469.7 of 600 */
.s1 { left: 21.7%; top: 21.7%; }
.s2 { left: 78.3%; top: 21.7%; }
.s3 { left: 78.3%; top: 78.3%; }
.s4 { left: 21.7%; top: 78.3%; }

.loop-core {
  position: absolute; left: 56%; top: 50%; transform: translate(-50%, -50%);
  width: 44%; text-align: left;
}
.loop-title { font: 400 clamp(1.5rem, 3vw, 2.3rem)/1.05 var(--display); color: var(--ink); }
.loop-text { margin-top: .6rem; font-size: clamp(.86rem, 1.25vw, 1rem); line-height: 1.45; font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .loop-f-outer { animation: draw .7s cubic-bezier(.6, 0, .3, 1) .15s backwards; }
  .loop-f-inner { animation: draw .6s cubic-bezier(.6, 0, .3, 1) .3s backwards; }
  .loop-ring { animation: draw 1.1s cubic-bezier(.6, 0, .2, 1) .75s backwards; }
  .loop-step { animation: pop .3s ease backwards; }
  .s1 { animation-delay: .7s; } .s2 { animation-delay: 1.05s; }
  .s3 { animation-delay: 1.4s; } .s4 { animation-delay: 1.7s; }
  .loop-core { animation: fade .5s ease 1.85s backwards; }
}
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lede { max-width: 44ch; }
  .loop { max-width: 440px; }
}

/* ---------- questions ---------- */

.asks { padding-block: var(--section); }
.ask {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.2;
  max-width: 24ch; padding-block: .2em; text-wrap: balance;
}
.ask + .ask { margin-top: clamp(2rem, 5vw, 3.75rem); }
.ask-a { border-left: 10px solid var(--leaf); padding-left: 1.1rem; max-width: 26ch; }
.ask-b { border-right: 10px solid var(--teal); padding-right: 1.1rem; margin-left: auto; text-align: right; max-width: 20ch; }
.ask-c { border-left: 10px solid var(--ember); padding-left: 1.1rem; max-width: 30ch; }

.answer {
  margin-top: clamp(3rem, 7vw, 5.5rem); margin-left: auto;
  max-width: 40rem; background: var(--charcoal); color: var(--white);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 28px 28px 4px 28px;
}
.answer-head { font: 400 clamp(1.9rem, 4vw, 3rem)/1.05 var(--display); color: var(--leaf); margin-bottom: 1rem; }

/* ---------- services ---------- */

.services { padding-block: var(--section); background: var(--mist); }
.section-lede { margin-top: 1.25rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); max-width: 46ch; }
.service-list { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 2px solid var(--charcoal);
}
.service:last-child { border-bottom: 2px solid var(--charcoal); }
.service h3 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
.service p { max-width: 58ch; }
@media (max-width: 720px) { .service { grid-template-columns: 1fr; } }

/* ---------- story ---------- */

.story { position: relative; overflow: hidden; background: var(--teal-deep); color: var(--white); padding-block: var(--section); }
.story-mark {
  position: absolute; right: 0; bottom: 0; height: 115%; width: auto; max-width: none;
  fill: none; stroke: var(--white); stroke-width: 44; opacity: .09; pointer-events: none;
}
@media (max-width: 900px) { .story-mark { display: none; } }
.story-inner { position: relative; }
.story h2 { color: var(--white); }
.story-lead {
  margin-top: 2rem; font: 400 clamp(1.5rem, 3.2vw, 2.5rem)/1.2 var(--display);
  max-width: 24ch; text-wrap: balance;
}
.story p:not(.story-lead) { margin-top: 1.4rem; max-width: 52ch; font-size: 1.125rem; }

/* ---------- values ---------- */

.values { background: var(--charcoal); color: var(--white); padding-block: var(--section); }
.values-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(1.5rem, 5vw, 5rem); align-items: start; }
.values-head { position: sticky; top: 7rem; }
.value { padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .28); }
.value:first-child { border-top: 0; padding-top: 0; }
.value dt { font: 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.15 var(--display); color: var(--leaf); }
.value dd { margin-top: .5rem; max-width: 52ch; }
@media (max-width: 720px) {
  .values-grid { grid-template-columns: 1fr; }
  .values-head { position: static; }
}

/* ---------- contact ---------- */

.contact { background: var(--leaf); color: var(--ink); padding-block: var(--section); }
.contact h2 { max-width: 16ch; }
.contact-lede { margin-top: 1.25rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); max-width: 40ch; font-weight: 500; }
.contact-mail {
  display: inline-block; margin-top: 2.25rem;
  font: 400 clamp(1.15rem, 3.6vw, 2.5rem)/1.2 var(--display);
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .22em;
  overflow-wrap: anywhere;
}
.contact-mail:hover { text-decoration-color: var(--white); }
.contact-details {
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2rem; border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 2rem;
}
.contact-details dt { font-family: var(--display); font-size: 1.15rem; }
.contact-details dd { margin-top: .3rem; font-weight: 500; }
@media (max-width: 720px) { .contact-details { grid-template-columns: 1fr; } }

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

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .82); font-size: .9rem; padding-block: 2.5rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.site-footer img { width: 190px; }
.footer-copy { margin-left: auto; }
@media (max-width: 720px) { .footer-copy { margin-left: 0; } }

/* ---------- 404 ---------- */

.lost { min-height: 70vh; display: grid; align-items: center; background: var(--leaf); color: var(--ink); padding-block: var(--section); }
.lost h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 14ch; }
.lost p { margin-top: 1.5rem; font-size: 1.2rem; max-width: 40ch; font-weight: 500; }
.lost .btn { margin-top: 2rem; }

/* ---------- v2 additions ---------- */

h2 
.outcome { margin-top: .9rem; padding-left: .9rem; border-left: 4px solid var(--leaf); }

.how { padding-block: var(--section); }
.how-list { list-style: none; counter-reset: how; margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem clamp(1rem, 2.5vw, 2rem); }
.how-list li { counter-increment: how; position: relative; padding-top: 4.25rem; }
.how-list li::before { content: counter(how); position: absolute; top: 0; left: 0; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; font: 400 1.4rem/1 var(--display); background: var(--leaf); color: var(--ink); }
.how-list li:not(:last-child)::after { content: ""; position: absolute; top: 1.5rem; left: 3.5rem; right: -.5rem; height: 4px; background: var(--charcoal); border-radius: 2px; }
.how-list h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.how-list p { margin-top: .6rem; }
@media (max-width: 900px) { .how-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .how-list li:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .how-list { grid-template-columns: 1fr; } .how-list li::after { display: none; } }

.people { padding-block: var(--section); background: var(--mist); }
.people-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2rem clamp(1.5rem, 5vw, 5rem); align-items: center; }
.portrait { width: 100%; object-fit: cover; object-position: 50% 30%; aspect-ratio: 4 / 5; border-radius: 28px 28px 4px 28px; background: var(--teal-deep); position: relative; overflow: hidden; display: grid; place-items: end center; max-width: 380px; }
.portrait svg { position: absolute; inset: 12% 10% 0; width: 80%; height: auto; fill: rgba(255,255,255,.16); }
.portrait span { position: relative; margin-bottom: 1rem; color: var(--white); font-size: .9rem; font-weight: 600; }
.person-name { margin-top: 1.75rem; font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--display); color: var(--ink); }
.person-role { margin-top: .3rem; font-weight: 600; }
.people p:not(.person-name):not(.person-role) { margin-top: 1rem; max-width: 58ch; }
@media (max-width: 720px) { .people-grid { grid-template-columns: 1fr; } .portrait { max-width: 260px; } }

.helps { padding-block: var(--section); }
.help-list { list-style: none; margin: clamp(2rem, 5vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.help-list li { font: 400 clamp(1.15rem, 1.8vw, 1.35rem)/1.3 var(--display); color: var(--ink); background: var(--mist); padding: 1.4rem 1.5rem; border-radius: 20px 20px 4px 20px; }
.help-close { margin-top: 2rem; font-size: 1.15rem; font-weight: 600; }

.first-step { margin-top: 1rem; max-width: 52ch; font-weight: 500; }
.footer-links a { color: var(--white); }

/* privacy page */
.legal { padding-block: var(--section); }
.legal h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal p { margin-top: .6rem; max-width: 65ch; }
.people .quals { font-size: .95rem; color: var(--charcoal); opacity: .85; }
.people ul.quals { margin: 1.25rem 0 0; padding-left: 1.1rem; font-size: .95rem; }
.people ul.quals li + li { margin-top: .2rem; }
.work-h { margin-top: clamp(3rem, 6vw, 4.5rem); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.work-list { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.work-list li { padding-block: 1.1rem; border-top: 2px solid var(--charcoal); max-width: 60ch; }
.work-list strong { display: block; font: 400 1.2rem/1.25 var(--display); color: var(--ink); margin-bottom: .3rem; }
@media (max-width: 720px) { .work-list { grid-template-columns: 1fr; } }
