:root {
  --ink: #071b2c;
  --ink-soft: #17364a;
  --cream: #f5f2e9;
  --paper: #fcfbf7;
  --sun: #f6bd3b;
  --sun-bright: #ffd369;
  --leaf: #78bc80;
  --leaf-dark: #2c7257;
  --sky: #9dc8cf;
  --line: rgba(7, 27, 44, 0.16);
  --container: 1180px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px 14px; background: white; border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(7,27,44,.94); box-shadow: 0 12px 36px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; padding: 6px; border-radius: 11px; background: rgba(255,255,255,.08); }
.brand-mark circle { fill: var(--sun); }
.brand-mark path { fill: none; stroke: var(--leaf); stroke-width: 3.5; stroke-linecap: round; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { max-width: 390px; font-size: .96rem; line-height: 1.15; letter-spacing: .005em; }
.brand small { margin-top: 4px; color: rgba(255,255,255,.64); font-size: .72rem; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 23px; }
.site-nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .92rem; font-weight: 600; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: white; }
.site-nav .nav-cta { padding: 10px 18px; color: var(--ink); background: var(--sun); border-radius: 999px; }
.menu-button { display: none; width: 44px; height: 44px; place-content: center; gap: 5px; border: 0; border-radius: 10px; color: white; background: rgba(255,255,255,.08); }
.menu-button > span:not(.sr-only) { width: 20px; height: 2px; margin: 2px auto; display: block; background: currentColor; }

.hero { position: relative; min-height: 790px; overflow: hidden; color: white; background: var(--ink); }
.hero-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(157,200,207,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(157,200,207,.17) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(to right, transparent 6%, black 55%, transparent 100%); transform: perspective(700px) rotateX(54deg) scale(1.7) translateY(18%); transform-origin: bottom; }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; top: -300px; right: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(246,189,59,.26), transparent 66%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: linear-gradient(90deg, var(--sun) 0 28%, var(--leaf) 28% 68%, var(--sky) 68%); }
.hero-orbit { position: absolute; top: 66px; right: calc(50% - 680px); width: 600px; height: 600px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero-orbit span { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.09); }
.hero-orbit span:nth-child(1) { inset: 62px; }
.hero-orbit span:nth-child(2) { inset: 142px; }
.hero-orbit span:nth-child(3) { inset: 245px; background: rgba(246,189,59,.3); border: 0; box-shadow: 0 0 70px rgba(246,189,59,.18); }
.hero-inner { position: relative; z-index: 2; min-height: 690px; padding-top: 132px; padding-bottom: 70px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); align-items: center; gap: 72px; }
.eyebrow, .kicker { margin: 0 0 22px; color: var(--leaf-dark); font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--sun-bright); }
.eyebrow span { width: 30px; height: 1px; background: currentColor; }
.hero h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 6.3vw, 6.4rem); font-weight: 400; line-height: .94; letter-spacing: -.055em; }
.hero h1 em { color: var(--sun-bright); font-weight: 400; }
.hero-lede { max-width: 630px; margin: 34px 0 0; color: rgba(255,255,255,.72); font-size: 1.16rem; line-height: 1.7; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 52px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 800; }
.button-primary { color: var(--ink); background: var(--sun); box-shadow: 0 12px 32px rgba(246,189,59,.16); }
.button-primary:hover { background: var(--sun-bright); }
.text-link { color: white; font-weight: 700; text-underline-offset: 5px; text-decoration-color: rgba(255,255,255,.35); }

.hero-panel { position: relative; min-height: 455px; border: 1px solid rgba(255,255,255,.14); border-radius: 50% 50% 18px 18px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); box-shadow: inset 0 0 80px rgba(255,255,255,.025); }
.panel-label { position: absolute; top: 24px; left: 28px; margin: 0; color: rgba(255,255,255,.5); font-size: .73rem; font-weight: 700; letter-spacing: .14em; }
.research-loop { position: absolute; inset: 54px 18px 56px; }
.research-loop::before, .research-loop::after { content: ""; position: absolute; border: 1px solid rgba(157,200,207,.25); border-radius: 50%; }
.research-loop::before { inset: 22px 72px; }
.research-loop::after { inset: 70px 122px; }
.loop-core { position: absolute; z-index: 2; top: 50%; left: 50%; width: 138px; height: 138px; display: grid; place-content: center; text-align: center; transform: translate(-50%,-50%); border-radius: 50%; color: var(--ink); background: var(--sun); box-shadow: 0 0 0 12px rgba(246,189,59,.08); }
.loop-core strong { font-family: Georgia, serif; font-size: 1.48rem; line-height: 1.05; }
.loop-core span { max-width: 92px; margin: 7px auto 0; font-size: .59rem; font-weight: 800; line-height: 1.25; text-transform: uppercase; }
.loop-item { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.74); font-size: .76rem; line-height: 1.2; }
.loop-item b { width: 36px; height: 36px; display: grid; place-content: center; border-radius: 50%; color: var(--ink); background: var(--leaf); font-size: .7rem; }
.loop-field { top: 12px; left: 50%; transform: translateX(-50%); }
.loop-compute { bottom: 8px; left: 12px; }
.loop-open { right: 4px; bottom: 8px; }
.panel-note { position: absolute; right: 24px; bottom: 19px; left: 24px; margin: 0; color: rgba(255,255,255,.46); font-size: .7rem; text-align: center; letter-spacing: .04em; }
.hero-strip { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.12); }
.strip-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.54); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.strip-inner i { width: 5px; height: 5px; border-radius: 50%; background: var(--sun); }

.section { padding: 120px 0; }
.section-heading { max-width: 820px; margin-bottom: 64px; }
.section-heading h2, .about h2, .contact h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4.6vw, 4.6rem); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 680px; margin: 25px 0 0; color: #526471; font-size: 1.05rem; }
.pillar-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.pillar { position: relative; min-height: 440px; padding: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.pillar::after { content: ""; position: absolute; right: -55px; bottom: -55px; width: 170px; height: 170px; border: 1px solid var(--line); border-radius: 50%; }
.pillar-featured { color: white; background: var(--leaf-dark); border-color: transparent; }
.pillar-featured::after { border-color: rgba(255,255,255,.15); box-shadow: 0 0 0 28px rgba(255,255,255,.035), 0 0 0 56px rgba(255,255,255,.025); }
.pillar-index { color: rgba(7,27,44,.42); font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.pillar-featured .pillar-index { color: rgba(255,255,255,.55); }
.pillar-icon { width: 62px; height: 62px; margin: 40px 0 30px; display: grid; place-content: center; border-radius: 16px; color: var(--leaf-dark); background: rgba(120,188,128,.14); }
.pillar-featured .pillar-icon { color: var(--ink); background: var(--sun); }
.pillar-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin: 0; font-size: 1.55rem; line-height: 1.18; }
.pillar p { color: #5d6c77; }
.pillar-featured p { color: rgba(255,255,255,.72); }
.pillar ul { margin: 22px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.86); font-size: .9rem; }
.pillar li { padding: 9px 0; border-top: 1px solid rgba(255,255,255,.15); }

.consultancy { color: white; background: var(--ink); }
.section-heading-split { max-width: none; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 80px; }
.section-heading-split > p:last-child { color: rgba(255,255,255,.62); }
.kicker-light { color: var(--sun-bright); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project-card { overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(255,255,255,.045); }
.project-card-wide { grid-column: span 1; }
.project-media { aspect-ratio: 16/10; overflow: hidden; background: #eef0eb; }
.project-media-dark { background: #292b2d; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.project-card:hover .project-media img { transform: scale(1.025); }
.project-copy { padding: 28px 30px 32px; }
.project-meta { margin: 0 0 22px; display: flex; justify-content: space-between; gap: 20px; color: var(--sky); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.project-meta b { color: rgba(255,255,255,.36); }
.project-copy h3 { margin: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; line-height: 1.05; }
.project-copy > p:last-child { margin: 16px 0 0; color: rgba(255,255,255,.62); }
.portfolio-band { margin-top: 22px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; padding: 48px; border-radius: var(--radius); background: var(--leaf-dark); }
.portfolio-intro h3 { margin: 0; font-family: Georgia, serif; font-size: 2.65rem; font-weight: 400; }
.portfolio-intro > p:last-child { color: rgba(255,255,255,.7); }
.portfolio-list article { padding: 23px 0; display: grid; grid-template-columns: 44px 1fr; gap: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.portfolio-list article:first-child { border-top: 0; padding-top: 0; }
.portfolio-list article > span { color: var(--sun-bright); font-size: .72rem; font-weight: 800; }
.portfolio-list h4 { margin: 0; font-size: 1.13rem; }
.portfolio-list p { margin: 6px 0 0; color: rgba(255,255,255,.68); font-size: .92rem; }
.case-study { margin-top: 76px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; padding-top: 64px; border-top: 1px solid rgba(255,255,255,.16); }
.case-heading h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 4vw, 4rem); font-weight: 400; line-height: 1; }
.case-client { margin-top: 18px; color: var(--sky); font-weight: 700; }
.case-body > p { margin-top: 0; color: rgba(255,255,255,.68); font-size: 1.05rem; }
.case-steps { margin-top: 32px; }
.case-steps div { padding: 17px 0; display: grid; grid-template-columns: 46px 1fr; gap: 16px; border-top: 1px solid rgba(255,255,255,.15); }
.case-steps b { color: var(--sun-bright); font-size: .72rem; }
.past-projects { background: var(--cream); }
.past-projects .section-heading-split > p:last-child { color: #526471; }
.past-projects .project-card { color: var(--ink); border-color: var(--line); background: white; box-shadow: 0 18px 54px rgba(7,27,44,.06); }
.past-projects .project-meta { color: var(--leaf-dark); }
.past-projects .project-meta b { color: rgba(7,27,44,.36); }
.past-projects .project-copy > p:last-child { color: #5d6c77; }
.completed-case { margin: 0 0 22px; padding: 48px; color: white; border: 0; border-radius: var(--radius); background: var(--ink); }

.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: center; }
.about-copy > p:not(.kicker) { max-width: 680px; color: #526471; font-size: 1.05rem; }
.about-aside { min-height: 390px; padding: 50px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 50% 50% 24px 24px; color: white; background: var(--ink); }
.quote-mark { height: 70px; margin: 0; color: var(--sun); font-family: Georgia, serif; font-size: 6.5rem; line-height: 1; }
.about-aside blockquote { margin: 0; font-family: Georgia, serif; font-size: 2rem; line-height: 1.22; }
.about-aside > p:last-child { margin: 24px 0 0; color: var(--sky); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.contact { padding: 92px 0; color: var(--ink); background: var(--sun); }
.contact-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
.contact .kicker { color: var(--ink); }
.contact h2 { max-width: 760px; }
.contact-action p { margin: 0 0 24px; color: rgba(7,27,44,.74); }
.contact-action a { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 2px solid var(--ink); font-size: 1.18rem; font-weight: 800; text-decoration: none; }
.site-footer { padding: 38px 0; color: rgba(255,255,255,.55); background: #04121e; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 45px; align-items: center; font-size: .82rem; }
.footer-inner p { margin: 0; }
.footer-brand { display: grid; color: white; }
.footer-brand span { color: rgba(255,255,255,.48); font-size: .74rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--sun-bright); outline-offset: 4px; }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-panel { max-width: 620px; width: 100%; margin-inline: auto; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar-featured { grid-column: span 2; }
  .pillar-featured { min-height: 380px; }
  .section-heading-split, .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-band, .case-study { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > p:first-of-type { grid-column: span 2; }
}

@media (max-width: 1080px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 74px; gap: 12px; }
  .brand strong { max-width: 330px; font-size: .9rem; }
  .menu-button { display: block; }
  .site-nav { position: fixed; inset: 70px 0 auto; padding: 30px 22px 36px; display: grid; gap: 4px; background: rgba(7,27,44,.98); border-top: 1px solid rgba(255,255,255,.12); transform: translateY(-130%); transition: transform .28s ease; }
  .site-nav.open { transform: none; }
  .site-nav a { padding: 13px 4px; font-size: 1.05rem; }
  .site-nav .nav-cta { margin-top: 10px; padding: 13px 18px; text-align: center; }
  .hero-inner { padding-top: 124px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 4.7rem); }
  .hero-lede { font-size: 1.04rem; }
  .hero-panel { min-height: 390px; }
  .research-loop { inset: 54px 5px 60px; }
  .research-loop::before { inset: 35px 40px; }
  .research-loop::after { inset: 78px 91px; }
  .loop-compute { left: 0; }
  .loop-open { right: 0; }
  .strip-inner { padding: 24px 0; flex-wrap: wrap; justify-content: flex-start; }
  .section { padding: 84px 0; }
  .section-heading { margin-bottom: 44px; }
  .pillar-grid, .project-grid { grid-template-columns: 1fr; }
  .pillar-featured { grid-column: auto; }
  .pillar { min-height: auto; }
  .project-card-wide { grid-column: auto; }
  .project-copy { padding: 24px; }
  .portfolio-band { padding: 32px 24px; }
  .case-study { margin-top: 58px; padding-top: 48px; }
  .completed-case { margin-top: 0; padding: 32px 24px; }
  .about-aside { min-height: 340px; padding: 38px 30px; }
  .about-aside blockquote { font-size: 1.7rem; }
  .contact { padding: 72px 0; }
  .contact-action a { font-size: 1rem; overflow-wrap: anywhere; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-inner > p:first-of-type { grid-column: auto; }
}

@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { max-width: 220px; font-size: .84rem; }
  .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
