/* Hallo Group — site styles
   Palette and type are taken from the Hallo Group logo:
   sun yellow circle, logo ink, Caslon-style wordmark, geometric tagline. */

:root {
  --sun: #fdd05a;
  --sun-deep: #e3b23c;
  --sun-tint: #fff4d1;
  --ink: #231f20;
  --ink-soft: #5e5759;
  --line: #e6e1dc;
  --paper: #ffffff;

  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }

.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section.tint { background: var(--sun-tint); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--sans);
  padding: 1em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #3b3537; border-color: #3b3537; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #fff; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.text-link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--sun-deep); }
.text-link:hover { text-decoration-color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--sun-tint); }
.nav a[aria-current="page"] { background: var(--sun-tint); }
.nav .btn { margin-left: 8px; padding: .75em 1.2em; }
.nav .btn:hover, .nav .btn[aria-current="page"] { background: #3b3537; }
.nav .btn[aria-current="page"] { box-shadow: 0 0 0 3px var(--sun); }
.menu-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 999px; font: 600 .95rem var(--sans); padding: 8px 16px; color: var(--ink); }

@media (max-width: 880px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a[aria-current="page"] { background: none; }
  .nav .btn { margin: 16px 0 0; border-radius: 999px; border-bottom: 2px solid var(--ink); }
}

/* Hero */
.hero { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 52px); }
.hero-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.hero h1 { max-width: 12em; margin: 0; }
.hero .lede { margin: 0; }
.hero-tag { font-weight: 500; letter-spacing: .02em; color: var(--ink-soft); margin-bottom: 20px; }
@media (max-width: 960px) { .hero-text { grid-template-columns: 1fr; } }

/* Commercial cycle figure: the one animated moment on the site */
.cycle { margin: 0; background: var(--sun-tint); border-radius: 32px; padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 48px); }
.cycle-track { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 4.3fr); gap: 34px; align-items: center; }
.cycle-track > li, .cycle-loop ol > li { position: relative; }
.cy { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; }
.cy b { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.cy span { display: block; color: var(--ink-soft); font-size: .9rem; line-height: 1.4; margin-top: 4px; }
/* chevrons between steps */
.cycle-track > li:not(:last-child)::after, .cycle-loop ol > li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -23px; width: 11px; height: 11px;
  border-top: 2px solid var(--ink-soft); border-right: 2px solid var(--ink-soft); transform: translateY(-50%) rotate(45deg);
}
.cycle-loop ol > li:not(:last-child)::after { right: -17px; }
.cycle-loop { background: var(--sun); border-radius: 24px; padding: 16px 16px 14px; }
.cycle-loop ol { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cycle-loop .cy { border-width: 1.5px; height: 100%; }
.loop-back { position: relative; height: 18px; margin: 0 12.5%; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 14px 14px; }
.loop-back::before { content: ""; position: absolute; left: -7px; top: -4px; width: 10px; height: 10px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); transform: rotate(45deg); }
.loop-label { text-align: center; font-weight: 600; font-size: .95rem; margin: 8px 0 0; }
.cycle figcaption { color: var(--ink-soft); font-size: 1rem; margin-top: clamp(20px, 3vw, 32px); padding-top: 18px; border-top: 1px solid #f1dfa6; max-width: 46em; }
@media (max-width: 1080px) {
  .cycle-track { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cycle-track > .cycle-loop { grid-column: 1 / -1; }
  .cycle-track > li:nth-child(2)::after { right: 50%; top: auto; bottom: -26px; transform: translateX(50%) rotate(135deg); }
}
@media (max-width: 640px) {
  .cycle-track { grid-template-columns: 1fr; gap: 30px; }
  .cycle-track > li:not(:last-child)::after { right: 50%; top: auto; bottom: -23px; transform: translateX(50%) rotate(135deg); }
  .cycle-loop { padding: 14px 14px 14px 40px; position: relative; }
  .cycle-loop ol { grid-template-columns: 1fr; gap: 26px; }
  .cycle-loop ol > li:not(:last-child)::after { right: 50%; top: auto; bottom: -20px; transform: translateX(50%) rotate(135deg); }
  /* the return arrow becomes a bracket down the left of the list */
  .loop-back { display: none; }
  .cycle-loop ol { position: relative; }
  .cycle-loop ol::before { content: ""; position: absolute; left: -26px; top: 38px; bottom: 38px; width: 16px; border: 2px solid var(--ink); border-right: 0; border-radius: 14px 0 0 14px; }
  .cycle-loop ol::after { content: ""; position: absolute; left: -16px; top: 33px; width: 10px; height: 10px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); }
  .loop-label { text-align: left; }
}
.cy-in { opacity: 0; transform: translateY(10px); animation: cy-in .55s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .4s; } .d3 { animation-delay: .7s; } .d4 { animation-delay: .9s; }
.d5 { animation-delay: 1.1s; } .d6 { animation-delay: 1.3s; } .d7 { animation-delay: 1.6s; }
@keyframes cy-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cy-in { animation: none; opacity: 1; transform: none; }
}

/* Split section: heading column + content column */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > header { position: sticky; top: 112px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split > header { position: static; } }

.rows { list-style: none; border-top: 2px solid var(--ink); }
.rows > li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.rows h3 { margin-bottom: .4em; }
.rows p { color: var(--ink-soft); margin: 0; max-width: 38em; }
.rows .deliver { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rows .deliver li { background: var(--sun-tint); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 500; }
.section.tint .rows .deliver li { background: #fff; }

/* Steps: a real sequence, so it is numbered */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 48px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); font: 700 1.05rem var(--serif); margin-bottom: 16px; }
.steps p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 64px; }
.model { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 36px); }
.model p { color: var(--ink-soft); margin: 0; }
.model .fee { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin: 0 0 12px; }
@media (max-width: 760px) { .models { grid-template-columns: 1fr; } }

/* Case band */
.case-band { background: var(--ink); color: #fff; }
.case-band .lede, .case-band .muted { color: #cfc9c4; }
.case-band h2 { max-width: 17em; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 48px 0 40px; }
.stats li { border-top: 1px solid #4a4446; padding-top: 18px; }
.stats b { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; color: var(--sun); margin-bottom: 10px; font-weight: 700; }
.stats span { color: #cfc9c4; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.case-band .btn-ghost { color: #fff; border-color: #fff; }
.case-band .btn-ghost:hover { background: #fff; color: var(--ink); }

/* Channels */
.channels { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 40px; border-top: 2px solid var(--ink); }
.channels li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.channels b { display: block; font-weight: 600; }
.channels span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .channels { grid-template-columns: 1fr; } }
.after { margin-top: 40px; }
.footer-about { margin-top: 16px; max-width: 28em; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: 48px; }
.person { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px; align-items: start; }
.person img { width: 148px; height: 176px; object-fit: cover; border-radius: 74px 74px 12px 12px; background: var(--sun-tint); }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--ink-soft); font-weight: 500; margin-bottom: 12px; }
.person p:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; } }

/* Two doors: funders / UniqKnow */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.door { border-radius: 24px; padding: clamp(28px, 4vw, 48px); }
.door.light { background: var(--sun-tint); }
.door.outline { border: 2px solid var(--ink); }
.door h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.door p { color: var(--ink-soft); max-width: 32em; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* Call to action */
.cta { background: var(--sun); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin: 0; max-width: 14em; }
.cta p { margin: 12px 0 0; max-width: 34em; }

/* Inner pages */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); max-width: 14em; }
.prose { max-width: 40em; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--sun-deep); }
.prose .facts, .prose .highlights { padding-left: 0; }
.prose .facts li, .prose .highlights li { margin-bottom: 0; }
.prose .facts { margin-top: 32px; }

.facts { list-style: none; border-top: 2px solid var(--ink); }
.facts li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--ink-soft); }

.profile { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid var(--line); }
.profile:last-of-type { border-bottom: 0; }
.profile img { width: 260px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 130px 130px 16px 16px; background: var(--sun-tint); }
.profile-name { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.rows p.more { margin-top: 12px; }
.profile .role { color: var(--ink-soft); font-weight: 500; font-size: 1.1rem; margin-bottom: 20px; }
.highlights { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 28px 0 8px; border-top: 2px solid var(--ink); }
.highlights li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.highlights b { display: block; font-family: var(--serif); font-size: 1.35rem; }
.highlights span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 820px) { .profile { grid-template-columns: 1fr; } .profile img { width: 200px; } }
@media (max-width: 520px) { .highlights { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-card { background: var(--sun-tint); border-radius: 24px; padding: clamp(28px, 4vw, 44px); }
.contact-card .email { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; word-break: break-word; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #cfc9c4; padding: 64px 0 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand span { color: #fff; }
.site-footer h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfc9c4; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.legal { border-top: 1px solid #4a4446; margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
