/* GR8R Capital — website v3 "The Loop".
   Builds on brand.css (design system v4.0). Brand colours only:
   green #004225, deep blue #183E5A, yellow #E2B93B, white #FFFFFF, plus low-opacity tints. */

:root {
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--header-h); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 50; background: var(--green); color: var(--white); padding: 12px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--white); }
.desktop-links { display: flex; gap: 32px; }
.nav a:not(.button) { color: var(--blue); }
.nav a:not(.button):hover { color: var(--green); }
.header .button--secondary { min-height: 44px; padding: 10px 20px; }
.menu-toggle {
  display: none; min-height: 48px; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--white); color: var(--green);
  font-size: 15px; font-weight: 500; cursor: pointer; align-items: center; gap: 8px;
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0 auto; padding-block: 8px 24px; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 18px; text-decoration: none; color: var(--green); }

/* ---------- Hero ---------- */
.hero { padding-block: 112px 128px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; margin-top: 56px; }
.hero h1 {
  /* one line from tablet up: the headline is ~10.4em wide in Manrope Light */
  font-size: min(88px, calc((100vw - 96px) / 10.8)); line-height: 1.02; letter-spacing: -0.04em; font-weight: 300;
  white-space: nowrap;
}
.hero .lead { max-width: 44ch; margin-top: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }
.hero .actions { margin-top: 40px; }

/* The Loop: horizontal, slim vector version of the logo's yellow 8 with the four process steps */
.lockup { width: 100%; max-width: 640px; justify-self: end; }
.lockup svg { display: block; width: 100%; height: auto; overflow: visible; }
.loop-ghost { fill: rgba(226,185,59,.14); }
.loop-fill { fill: var(--yellow); }
/* the reveal mask: a wide white stroke drawn along the loop's centre line */
.loop-draw { fill: none; stroke: #fff; stroke-width: 72; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: loop-draw 1s cubic-bezier(.45,.05,.35,1) .08s forwards; }
.loop-flow { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; opacity: 0; stroke-dasharray: .06 .94; stroke-dashoffset: 1.06;
  animation: flow-in .3s ease-out 1.1s forwards, flow 4.8s linear 1.1s infinite; }
.step-node line { stroke: var(--border); stroke-width: 1.5; }
.step-node circle { fill: var(--white); stroke: var(--green); stroke-width: 3; transform-box: fill-box; transform-origin: center;
  animation: node-on .2s ease-out var(--d) forwards, node-pulse 4.8s ease-out var(--p) infinite; }
.step-node text { font-family: var(--font); fill: var(--green); font-size: 22px; font-weight: 400; letter-spacing: -0.005em; opacity: .3;
  animation: label-on .24s ease-out var(--d) forwards; }
.step-node text.n { font-size: 11px; font-weight: 500; letter-spacing: .16em; fill: var(--blue); }
@keyframes loop-draw { to { stroke-dashoffset: 0; } }
@keyframes flow-in { to { opacity: .7; } }
@keyframes flow { from { stroke-dashoffset: 1.06; } to { stroke-dashoffset: .06; } }
@keyframes node-on { to { fill: var(--green); } }
@keyframes node-pulse { 0% { transform: scale(1.5); } 14%, 100% { transform: scale(1); } }
@keyframes label-on { to { opacity: 1; } }

/* ---------- Sections ---------- */
.section-title { font-size: clamp(36px, 5vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 300; }
.kicker { display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--yellow); }
.border-top { border-top: 1px solid var(--border); }

/* ---------- Approach: steps joined by a yellow line ---------- */
.steps { position: relative; list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.steps__track, .steps__fill { position: absolute; pointer-events: none; }
.steps__track { background: var(--border); }
.steps__fill { background: var(--yellow); transform-origin: 0 0; transition: transform .18s linear; }
.steps.is-horizontal .steps__track, .steps.is-horizontal .steps__fill { height: 2px; }
.steps.is-vertical .steps__track, .steps.is-vertical .steps__fill { width: 2px; }
.step { position: relative; }
.step__node {
  display: block; width: 18px; height: 18px; border-radius: 50%; position: relative; z-index: 1;
  background: var(--white); border: 2px solid var(--border); transition: border-color .2s ease-out, background-color .2s ease-out;
}
.step.is-reached .step__node { border-color: var(--yellow); background: var(--yellow); }
.step__label { margin: 32px 0 0; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.step h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; font-weight: 300; letter-spacing: -0.02em; margin-top: 12px; }
.step p { font-size: 17px; margin-top: 16px; max-width: 34ch; }

.disclosure {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px 10px 12px;
  background: var(--white); color: var(--green); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .18s ease-out, background-color .18s ease-out;
}
.disclosure:hover { border-color: var(--green); background: var(--tint); }
.disclosure__icon { width: 20px; height: 20px; flex: none; }
.disclosure__icon .v { transition: transform .2s ease-out; transform-origin: 50% 50%; }
.disclosure[aria-expanded="true"] .disclosure__icon .v { transform: scaleY(0); }
.examples-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease-out; }
.examples-wrap.open { grid-template-rows: 1fr; }
.examples-wrap > div { overflow: hidden; }
.examples { list-style: none; margin: 16px 0 0; padding: 0; }
.examples li { padding: 14px 0 14px 20px; border-top: 1px solid var(--border); position: relative; font-size: 16px; }
.examples li::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.examples strong { font-weight: 500; color: var(--green); display: block; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 64px; }
.person { padding-top: 32px; border-top: 1px solid var(--border); }
.person__head { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center; }
.person__photo { width: 160px; height: 160px; object-fit: cover; border-radius: 0; }
.person h3 { font-size: 30px; line-height: 1.15; font-weight: 300; letter-spacing: -0.015em; }
.person .role { margin: 8px 0 0; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
/* Experience: uniform deep-blue logos, no links */
.experience { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.experience img { width: auto; max-width: 120px; opacity: .82; }
.bio { margin: 28px 0 0; padding: 0; list-style: none; }
.bio li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--border); font-size: 16px; line-height: 1.55; }
.bio li::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.together { margin-top: 48px; padding: 20px 24px; border-left: 3px solid var(--yellow); background: var(--tint); font-size: 16px; max-width: none; }
.together strong { font-weight: 500; color: var(--green); }

/* ---------- Acquisition focus ---------- */
.focus { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.criteria { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.criteria li { counter-increment: c; padding: 28px 0 32px; border-top: 1px solid var(--border); }
.criteria li::before { content: counter(c, decimal-leading-zero); display: block; font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--blue); margin-bottom: 16px; }
.criteria h3 { font-size: 24px; line-height: 1.25; font-weight: 400; letter-spacing: -0.01em; }
.criteria p { font-size: 16px; margin-top: 10px; max-width: 34ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.contact-email {
  display: inline-block; font-size: clamp(26px, 3.4vw, 44px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--green); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 6px;
  overflow-wrap: anywhere; transition: color .18s ease-out;
}
.contact-email:hover { color: var(--blue); }
.contact-paths { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-path {
  display: block; padding: 24px; border: 1px solid var(--border); border-radius: var(--card-radius);
  text-decoration: none; color: var(--blue); transition: border-color .18s ease-out, background-color .18s ease-out;
}
.contact-path:hover { border-color: var(--green); background: var(--tint); }
.contact-path .eyebrow { display: block; margin: 0 0 8px; color: var(--green); }
.contact-path__email {
  font-size: clamp(20px, 1.9vw, 26px); font-weight: 300; letter-spacing: -0.01em; color: var(--green);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--yellow); text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.footer { padding-block: 48px; }
.footer.dark { background: var(--green); } /* Murad's choice (7 Oct): racing-green footer */
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
/* Reversed logo (white lettering, yellow 8) derived from logo.png for dark surfaces. */
.footer-logo { display: inline-block; }
.footer-logo img { width: 176px; height: auto; }
.footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { color: var(--white); }
.footer .caption { margin-top: 32px; max-width: 80ch; opacity: .85; }

/* ---------- Privacy page ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 28px; line-height: 1.25; margin-top: 56px; font-weight: 300; }
.prose p, .prose li { font-size: 17px; }
.prose ul { padding-left: 20px; margin: 16px 0 0; }
.prose li + li { margin-top: 8px; }
.placeholder { background: rgba(226,185,59,.25); padding: 0 4px; border-radius: 2px; }

/* ---------- Gentle entrance for below-the-fold blocks ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .24s ease-out, transform .24s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero { padding-block: 80px 96px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; margin-top: 32px; }
  .hero h1 { font-size: min(88px, calc((100vw - 64px) / 10.8)); }
  .lockup { justify-self: start; max-width: 560px; }
  .team { grid-template-columns: 1fr; gap: 0; }
  .person { padding-block: 32px 8px; }
  .focus, .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
  :root { --header-h: 72px; }
  .desktop-links, .nav > .button { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding-block: 56px 72px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); white-space: normal; }
  .lockup { max-width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 48px; padding-left: 40px; margin-top: 48px; }
  .step__node { position: absolute; left: -40px; top: 2px; }
  .step__label { margin-top: 0; }
  .person__head { grid-template-columns: 112px 1fr; gap: 20px; align-items: start; }
  .person__photo { width: 112px; height: 112px; }
  .person h3 { font-size: 24px; }
  .experience { gap: 12px 18px; }
  .experience img { max-width: 96px; transform: scale(.9); transform-origin: left center; }
  .criteria { grid-template-columns: 1fr; }
  .contact-paths { grid-template-columns: 1fr; margin-top: 32px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loop-draw { stroke-dashoffset: 0; animation: none; }
  .step-node circle { fill: var(--green); animation: none; }
  .loop-flow { display: none; }
  .step-node text { opacity: 1; animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .steps__fill { transition: none; }
}
