:root {
  /* Palette, taken from the logo */
  --orange: #F49819;
  --blue: #0C4A74;
  --blue-arrow: #3564AE;
  --sky: #5F8ECA;
  --sky-tint: #E8EFF7;
  --ink: #0E2233;
  --ink-soft: #46596A;
  --white: #FFFFFF;
  --line: #D5DEE7;

  /* Type: Archivo, width axis carries the personality */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --size-small: .875rem;
  --size-body: 1.0625rem;
  --size-lead: clamp(1.25rem, 1.05rem + .7vw, 1.5rem);
  --size-h3: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --size-h2: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  --size-h1: clamp(3.1rem, 1rem + 5.9vw, 7rem);

  --margin: clamp(1rem, 4vw, 4rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--size-body); line-height: 1.55; color: var(--ink); background: var(--white); font-variation-settings: "wdth" 100; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: inherit; font-stretch: 125%; font-weight: 800; }
h1 { font-size: var(--size-h1); line-height: .9; letter-spacing: -.035em; }
h2 { font-size: var(--size-h2); line-height: 1; letter-spacing: -.03em; }
h3 { font-size: var(--size-h3); line-height: 1.2; letter-spacing: -.01em; font-stretch: 112%; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue-arrow); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--margin); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: .75em 1.4em; border: 0; border-radius: 999px; font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s; }
.btn svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 56px; padding-inline: 1.6em; font-size: 1.0625rem; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--blue); }
.link { font-weight: 600; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.link:hover { text-decoration-color: currentColor; }

/* Nav */
.nav { position: relative; z-index: 5; display: flex; align-items: center; gap: 2rem; padding-block: 1rem; }
.nav__logo img { height: 58px; width: auto; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; }
.nav__links a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.nav__toggle { display: none; margin-left: auto; min-height: 44px; padding: 0 .25rem; border: 0; background: none; color: var(--ink); font: 600 1rem var(--font); cursor: pointer; align-items: center; gap: .65rem; }
.nav__burger { position: relative; width: 22px; height: 14px; }
.nav__burger i { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s, top .25s; }
.nav__burger i:first-child { top: 1px; }
.nav__burger i:last-child { top: 10px; }
.nav__toggle[aria-expanded="true"] .nav__burger i:first-child { top: 6px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger i:last-child { top: 6px; transform: rotate(-45deg); }
.nav__only-mobile, .nav__sheet-foot { display: none; }

/* Hero: the logo's disc and arrow, large and flat */
.hero { position: relative; overflow: hidden; min-height: min(calc(100svh - 90px), 860px); display: flex; align-items: center; }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 7rem); }
.hero__copy { max-width: 62rem; }
.hero h1 { max-width: 7.6em; }
.hero__lead { margin-top: 2.25rem; max-width: 34rem; font-size: var(--size-lead); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }
.hero__mark { position: absolute; z-index: 1; width: min(58vw, 900px); right: max(-12vw, -180px); top: 50%; transform: translateY(-50%); overflow: visible; }

/* One orchestrated load: disc grows, arrow rises out of it, words settle */
@media (prefers-reduced-motion: no-preference) {
  .mark__disc { transform-box: fill-box; transform-origin: center; animation: disc 1s cubic-bezier(.2, .8, .2, 1) both; }
  .mark__arrow { animation: arrow .9s cubic-bezier(.2, .8, .2, 1) .45s both; }
  .mark__dots circle { animation: fade .5s ease both; }
  .mark__dots circle:nth-child(1) { animation-delay: .9s; }
  .mark__dots circle:nth-child(2) { animation-delay: 1s; }
  .mark__dots circle:nth-child(3) { animation-delay: 1.1s; }
  .hero__copy > * { animation: settle .8s cubic-bezier(.2, .8, .2, 1) both; }
  .hero__lead { animation-delay: .15s !important; }
  .hero__actions { animation-delay: .25s !important; }
}
@keyframes disc { from { transform: scale(.55); opacity: 0; } }
@keyframes arrow { from { transform: translate(-70px, 70px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes settle { from { transform: translateY(18px); opacity: 0; } }

/* Process: four steps rising like the arrow */
.process { background: var(--blue); color: var(--white); padding-block: var(--section); }
.process h2 { max-width: 12em; }
.steps { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); align-items: start; }
.steps li { border-top: 3px solid var(--orange); padding-top: 1.25rem; }
.steps li:nth-child(1) { margin-top: 10.5rem; }
.steps li:nth-child(2) { margin-top: 7rem; }
.steps li:nth-child(3) { margin-top: 3.5rem; }
.steps__n { display: block; font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 1; color: var(--orange); margin-bottom: 1rem; }
.steps h3 { margin-bottom: .6rem; }
.steps p { color: #D3E1EE; max-width: 26ch; }

/* Services: a definition list */
.services { padding-block: var(--section); display: grid; grid-template-columns: 4fr 8fr; gap: 2rem clamp(2rem, 5vw, 6rem); }
.services__head p { margin-top: 1.5rem; color: var(--ink-soft); max-width: 32ch; }
.services__list { margin: 0; }
.services__list div { display: grid; grid-template-columns: 5fr 7fr; gap: .5rem 2rem; padding-block: 1.5rem; border-top: 2px solid var(--line); }
.services__list div:last-child { border-bottom: 2px solid var(--line); }
.services__list dt { font-stretch: 112%; font-weight: 700; font-size: var(--size-h3); line-height: 1.2; letter-spacing: -.01em; }
.services__list dd { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.services__list dd a { font-weight: 600; color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 3px; white-space: nowrap; }

/* Finder */
.finder { background: var(--sky-tint); padding-block: var(--section); }
.finder__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem clamp(2rem, 5vw, 5rem); align-items: center; }
.finder fieldset { border: 0; margin: 2.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.finder legend { font-weight: 600; margin-bottom: .85rem; padding: 0; }
.finder label { position: relative; }
.finder input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.finder label span { display: inline-flex; align-items: center; min-height: 46px; padding: .5em 1.1em; border-radius: 999px; background: var(--white); border: 2px solid var(--white); transition: background-color .15s, color .15s, border-color .15s; }
.finder label:hover span { border-color: var(--sky); }
.finder input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.finder input:focus-visible + span { outline: 3px solid var(--blue-arrow); outline-offset: 3px; }
.finder__result { background: var(--ink); color: var(--white); padding: clamp(1.75rem, 3.5vw, 3rem); display: grid; gap: 1rem; justify-items: start; }
.finder__intro { color: #AFC3D6; }
.finder__result h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.05; font-stretch: 118%; font-weight: 800; }
.finder__result p { color: #D3E1EE; }
.finder__also span { color: var(--white); font-weight: 600; }
.finder__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.finder__result .btn--ink { background: var(--orange); color: var(--ink); }
.finder__result .btn--ink:hover { background: #FFB347; }
.finder__result.is-changing > * { animation: swap .35s ease both; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

/* Photo band */
.band { margin: 0; }
.band img { width: 100%; height: clamp(260px, 40vw, 620px); object-fit: cover; object-position: 50% 55%; }

/* Stories */
.stories { padding-block: var(--section); }
.stories__head { display: grid; grid-template-columns: 4fr 8fr; gap: 1.5rem clamp(2rem, 5vw, 6rem); align-items: end; }
.stories__head p { color: var(--ink-soft); max-width: 46ch; }
.cases { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.case { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .6rem; padding: clamp(1.5rem, 2.5vw, 2rem); background: var(--sky-tint); }
.case__mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: .75rem; border-radius: 50%; background: var(--blue); color: var(--white); font-stretch: 125%; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.case__sector { font-size: var(--size-small); font-weight: 600; color: var(--blue-arrow); }
.case h3 { font-size: clamp(1.3rem, 1rem + .9vw, 1.75rem); font-stretch: 118%; font-weight: 800; line-height: 1.1; }
.case p:last-child { color: var(--ink-soft); }
.case--feature { grid-column: span 2; grid-row: span 2; justify-content: space-between; gap: 2rem; background: var(--blue); color: var(--white); }
.case--feature > div { display: flex; flex-direction: column; gap: .6rem; }
.case--feature .case__mark { flex-shrink: 0; width: clamp(110px, 14vw, 180px); height: clamp(110px, 14vw, 180px); margin: 0; background: var(--orange); color: var(--ink); font-size: clamp(2rem, 1rem + 3vw, 3.5rem); }
.case--feature .case__sector { color: var(--orange); }
.case--feature h3 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.5rem); }
.case--feature p:last-child { color: #D3E1EE; max-width: 52ch; }
.case__logo { display: block; align-self: flex-start; height: 40px; width: auto; margin: 8px 0 .75rem; }
.case__logo--tall { height: 56px; margin-top: 0; }
.cases__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.75rem; border-top: 2px solid var(--line); }
.cases__cta p { font-size: var(--size-lead); line-height: 1.35; max-width: 40ch; }

/* About */
.about { background: var(--sky-tint); padding-block: var(--section); }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem clamp(2rem, 5vw, 6rem); align-items: center; }
.about__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; max-width: 460px; justify-self: center; outline: 14px solid var(--orange); outline-offset: -14px; }
.about__copy > * + * { margin-top: 1.25rem; }
.about__copy p { max-width: 62ch; }
.about__lead { font-size: var(--size-lead); line-height: 1.4; margin-top: 1.75rem !important; }
.about__copy .link { display: inline-block; margin-top: 1.75rem; }

/* Contact: the disc colour returns as a whole field */
.contact { background: var(--orange); color: var(--ink); padding-block: var(--section); }
.contact__grid { display: grid; grid-template-columns: 6fr 5fr; gap: 3rem clamp(2rem, 5vw, 6rem); align-items: start; }
.contact__copy p { margin-top: 1.5rem; font-size: var(--size-lead); line-height: 1.4; max-width: 28ch; }
.contact__channels { display: grid; justify-items: start; gap: 1.25rem; }
.contact__big { display: inline-block; font-stretch: 125%; font-weight: 800; font-size: clamp(2rem, 1rem + 3.6vw, 4.25rem); line-height: 1; letter-spacing: -.03em; text-decoration: none; }
.contact__big:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.contact__mail { display: inline-block; font-size: var(--size-lead); font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.footer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 2rem 3rem; align-items: end; padding-block: 3rem; font-size: var(--size-small); color: var(--ink-soft); }
.footer img { width: 110px; height: auto; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: var(--white); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(14, 34, 51, .28); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Tablet */
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .steps li:nth-child(1) { margin-top: 3.5rem; }
  .steps li:nth-child(2) { margin-top: 0; }
  .steps li:nth-child(3) { margin-top: 3.5rem; }
  .services, .stories__head, .finder__grid, .contact__grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case--feature { grid-row: auto; }
  .case--program { grid-column: span 2; }
  .about__grid { grid-template-columns: 1fr 1.4fr; }
}

/* Phone */
@media (max-width: 680px) {
  /* Mobile menu: sticky bar + full-screen sheet in the brand blue */
  html { scroll-padding-top: var(--nav-h, 64px); }
  .nav-bar { position: sticky; top: 0; z-index: 50; background: var(--white); }
  .nav { gap: 0; padding-block: .5rem; }
  .nav__logo img { height: 48px; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links { position: fixed; inset: var(--nav-h, 64px) 0 0 0; z-index: 49; margin: 0; display: flex; flex-direction: column; gap: 0; padding: 1.5rem var(--margin) calc(1.5rem + env(safe-area-inset-bottom)); background: var(--blue); color: var(--white); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
  .nav__links.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .nav__links > a { display: block; padding: .45rem 0; font-stretch: 125%; font-weight: 800; font-size: clamp(1.9rem, 1rem + 5vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; text-decoration: none; }
  .nav__links > a:hover, .nav__links > a:focus-visible { color: var(--orange); text-decoration: none; }
  .nav__only-mobile { display: block; }
  .nav__links.is-open > a { animation: menu-in .35s cubic-bezier(.2, .8, .2, 1) both; }
  .nav__links.is-open > a:nth-child(2) { animation-delay: .04s; }
  .nav__links.is-open > a:nth-child(3) { animation-delay: .08s; }
  .nav__links.is-open > a:nth-child(4) { animation-delay: .12s; }
  .nav__links.is-open > a:nth-child(5) { animation-delay: .16s; }
  .nav__sheet-foot { display: grid; justify-items: start; gap: 1rem; margin-top: auto; padding-top: 2.5rem; }
  .btn--wa { background: var(--orange); color: var(--ink); }
  .nav__mail { color: #D3E1EE; font-weight: 600; overflow-wrap: anywhere; }
  body.menu-open { overflow: hidden; }
  body.menu-open .wa-float { display: none; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(12px); } }
  .hero { display: block; min-height: 0; }
  .hero__mark { display: none; }
  .hero__inner { padding-block: 2rem 2.5rem; }
  .hero h1 { max-width: none; }
  .hero__lead { margin-top: 1.5rem; }
  .hero__actions { margin-top: 2rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(n) { margin-top: 0; }
  .services__list div { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .case--feature, .case--program { grid-column: auto; }
  .case--feature .case__mark { width: 96px; height: 96px; font-size: 1.9rem; }
  .cases__cta .btn { width: 100%; justify-content: center; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 240px; justify-self: start; outline-width: 10px; outline-offset: -10px; }
  .footer { grid-template-columns: 1fr; gap: 1.25rem; padding-bottom: 6rem; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}
