/* AI-Human Research Institute — shared by both static language editions. */
:root {
  --ink: #0e2a47;
  --ink2: #234662;
  --slate: #7e98ac;
  --stone: #d8d1c7;
  --sand: #eee7db;
  --paper: #fbfaf7;
  --line: rgba(14, 42, 71, .14);
  --max: 1200px;
  --header-height: 88px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: Inter, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
a { text-decoration: none; color: inherit; }
button { font: inherit; }
.wrap { width: min(calc(100% - 64px), var(--max)); margin: auto; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 500; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.1vw, 4.1rem); letter-spacing: -.04em; }
:root[lang="en"] .hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); letter-spacing: -.03em; }
h3 { font-size: 1.5rem; }

/* Labs heading character-flip (PT edition): keeps the two swapping words on a
   single inline block so the scramble never breaks the serif line. */
.flip-word { display: inline-block; }
p { margin: 0; }
.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); color: #38556c; max-width: 760px; }
.eyebrow { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--ink2); }
:focus-visible { outline: 3px solid var(--ink2); outline-offset: 5px; }
.skip-link { position: fixed; top: 10px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--paper); border: 2px solid var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.nav { position: fixed; inset: 0 0 auto; z-index: 20; background: rgba(251, 250, 247, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav .brand { margin-right: auto; }
.brand-name { font-size: .84rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.nav .brand-name { max-width: 215px; font-size: .7rem; }
.brand-mark { width: 54px; height: 34px; position: relative; flex-shrink: 0; }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; top: 1px; width: 31px; height: 31px; border-radius: 50%; mix-blend-mode: multiply; }
.brand-mark::before { left: 2px; background: rgba(126, 152, 172, .66); }
.brand-mark::after { right: 2px; background: rgba(216, 209, 199, .82); }
.nav-links { order: 1; display: flex; align-items: center; gap: 20px; font-size: .84rem; }
.nav-links a:not(.btn) { position: relative; padding-block: 14px; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-links a:not(.btn)[aria-current] { font-weight: 700; }
.nav-links a:not(.btn)[aria-current]::after { transform: scaleX(1); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink); font-weight: 650; transition: background-color .2s, box-shadow .2s; }
.btn.primary { background: var(--ink); color: #fff; }
.language-switch { order: 2; display: flex; align-items: center; gap: 2px; flex-shrink: 0; border-left: 1px solid var(--line); padding-left: 12px; font-size: .72rem; letter-spacing: .08em; }
.language-switch a { display: grid; place-items: center; min-width: 34px; min-height: 44px; }
.language-switch a[aria-current='page'] { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { order: 3; display: none; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.25rem; width: 44px; height: 44px; flex-shrink: 0; cursor: pointer; }

.hero { position: relative; min-height: 87vh; display: flex; align-items: center; padding: 88px 0 78px; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg-paint { position: absolute; inset: -12% 0; pointer-events: none; }
.hero-bg-paint img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(251, 250, 247, .92), rgba(251, 250, 247, 0) 26%), linear-gradient(90deg, rgba(251, 250, 247, .94) 0%, rgba(251, 250, 247, .82) 36%, rgba(251, 250, 247, .5) 62%, rgba(251, 250, 247, .2) 100%); }
.hero-inner { position: relative; z-index: 1; }
.hero-copy { position: relative; z-index: 2; max-width: 700px; }
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-copy .lead { margin-top: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.page-hero { position: relative; min-height: 48vh; display: flex; align-items: flex-end; padding: 130px 0 58px; isolation: isolate; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(251, 250, 247, .96) 8%, rgba(251, 250, 247, .72) 48%, rgba(251, 250, 247, .45) 100%); }
.divider-paint, .divider-wash { position: absolute; inset: -16% -10%; pointer-events: none; }
.divider-paint picture, .divider-wash picture { display: block; width: 100%; height: 100%; }
.divider-paint img, .divider-wash img { display: block; width: 100%; height: 100%; object-fit: cover; }
.paint-divider { height: clamp(190px, 22vw, 330px); position: relative; overflow: hidden; isolation: isolate; border-block: 1px solid rgba(14, 42, 71, .06); background: var(--sand); }
.paint-divider::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(251, 250, 247, .15), transparent 40%, rgba(251, 250, 247, .1)); pointer-events: none; }
.divider-wash { opacity: .15; mix-blend-mode: multiply; inset: -20% -8%; }
.divider-wash img { object-position: 60% 70%; transform: scaleX(-1); }
.paint-network { height: clamp(180px, 18vw, 270px); }

.section { padding: 104px 0; }
.section.alt { background: #f4f3ef; }
.section-head { display: grid; grid-template-columns: .34fr .66fr; gap: 56px; margin-bottom: 54px; }
.section-head > .eyebrow { border-top: 1px solid var(--line); padding-top: 16px; align-self: start; max-width: 235px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 3px; padding: 28px; background: rgba(251, 250, 247, .84); }
.card h3 { margin-bottom: 14px; }
.card p { color: #405b70; }
.card, .node, .step { position: relative; }
.card::before { content: ''; display: block; width: 34px; height: 3px; margin-bottom: 26px; background: var(--slate); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-link:hover { color: var(--ink2); }
.card .deliverables { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .93rem; color: #405b70; }
.card .deliverables strong { display: block; margin-bottom: 8px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.card .lab-block { margin-top: 14px; font-size: .95rem; color: #405b70; }
.card .lab-block strong { display: block; margin-bottom: 6px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.data-table { width: 100%; border-collapse: collapse; margin-top: 34px; font-size: .95rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }
.data-table thead th { padding: 0 18px 12px 0; border-bottom: 1px solid var(--ink); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.data-table td:first-child { font-weight: 650; color: var(--ink); }
.data-table td { color: #405b70; }
.data-table tbody tr:hover td { background: rgba(126, 152, 172, .07); }
#contact-form { scroll-margin-top: calc(var(--header-height) + 24px); }
.contact-form { margin-top: 46px; max-width: 780px; border: 1px solid var(--line); border-radius: 3px; padding: 34px; background: rgba(251, 250, 247, .84); }
.contact-form > h3 { margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink2); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { font: inherit; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: #fff; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink2); outline-offset: 2px; }
.consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.consent label { font-size: .88rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #405b70; }
.incentives-band { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; padding: 84px 0; }
.incentives-band .band-paint { position: absolute; inset: -14% 0; pointer-events: none; }
.incentives-band .band-paint img { display: block; width: 100%; height: 100%; object-fit: cover; }
.incentives-band::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14, 42, 71, .93) 0%, rgba(14, 42, 71, .84) 55%, rgba(14, 42, 71, .7) 100%); }
.incentives-band .wrap { position: relative; z-index: 1; }
.incentives-band h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); max-width: 860px; color: #fff; }
.incentives-band .band-lead { color: #dbe5ec; max-width: 760px; margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.incentives-band .band-list { padding-left: 20px; color: #dbe5ec; max-width: 760px; margin-top: 18px; }
.incentives-band .band-list li { margin-top: 8px; }
.incentives-band .band-list strong { color: #fff; }
.incentives-band .band-contact { color: #b7c8d5; max-width: 760px; margin-top: 28px; }
.incentives-band .band-contact a { text-decoration: underline; text-underline-offset: 3px; }
.incentives-band .band-actions { margin-top: 26px; }
.incentives-band .btn { border-color: rgba(251, 250, 247, .75); color: var(--paper); }
.incentives-band .btn:hover { background: rgba(251, 250, 247, .14); box-shadow: none; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.form-actions .btn { cursor: pointer; }
.form-note { font-size: .88rem; color: var(--ink2); }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: 18px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--sand); font-size: .92rem; color: var(--ink); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }
.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { padding: 24px 18px; border-top: 1px solid var(--ink); min-height: 205px; }
.step .n { font-size: .75rem; letter-spacing: .15em; margin-bottom: 22px; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: .92rem; color: #405b70; }
.ecosystem { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.node { padding: 30px; border: 1px solid var(--line); border-radius: 3px; background: rgba(251, 250, 247, .88); }
.node h3 { margin-bottom: 14px; }
.node p { color: #405b70; }
.city { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: #38556c; margin-bottom: 16px; }
#about { position: relative; isolation: isolate; background: var(--sand); }
#about::before { content: ''; position: absolute; inset: 0; background: url('assets/about.webp') center / cover no-repeat; opacity: .38; z-index: -1; }
.statement { padding: 48px; background: var(--ink); color: #fff; display: grid; grid-template-columns: .75fr 1.25fr; gap: 34px; }
.statement p { color: #d1dce4; font-size: 1.12rem; }
.statement h2 { overflow-wrap: anywhere; }
/* Editorial footer: all links work without the motion script. */
.footer { padding: 72px 0 0; background: var(--ink); color: #dbe5ec; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .9fr; gap: 56px; padding-bottom: 56px; }
.footer .brand { align-items: center; color: var(--paper); }
.footer .brand-name { font-size: .76rem; max-width: 245px; }
.footer .brand-mark::before, .footer .brand-mark::after { mix-blend-mode: normal; }
.footer-purpose { margin-top: 22px; max-width: 29ch; color: #dbe5ec; font-family: Georgia, serif; font-size: clamp(0.77rem, 1.12vw, 0.91rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.45; }
.footer-purpose .purpose-line { display: block; }
.footer-purpose .purpose-line:last-child { color: #b7c8d5; }
.footer-label { margin: 0 0 20px; color: var(--paper); font-size: .73rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.footer-socials { margin-top: 30px; }
.social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.social-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: #dbe5ec; border: 1px solid rgba(216, 209, 199, .32); border-radius: 50%; }
.social-icon svg { width: 21px; height: 21px; }
.footer-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; list-style: none; padding: 0; margin: -10px 0 0; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 7px; font-size: .92rem; text-underline-offset: 5px; }
.footer-menu li:last-child { grid-column: 1 / -1; margin-top: 8px; }
.footer-menu li:last-child a { font-weight: 700; color: var(--paper); }
.footer-details { margin: 0; font-size: .87rem; }
.footer-details dt { color: #b7c8d5; font-size: .69rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 22px; }
.footer-details dt:first-child { margin-top: 0; }
.footer-details dd { margin: 8px 0 0; overflow-wrap: anywhere; }
.footer-top { display: inline-flex; gap: 14px; align-items: center; min-height: 44px; margin-top: 22px; font-size: .82rem; }
.footer-top span { font-size: 1.2rem; color: var(--stone); }
.footer-bottom { border-top: 1px solid rgba(216, 209, 199, .25); padding-block: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-copyright { font-size: .76rem; color: #b7c8d5; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: .78rem; text-underline-offset: 5px; }
.footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 5px; }
.footer a.brand:hover { text-decoration: none; }
.footer :focus-visible { outline-color: var(--sand); }
.legal-main { min-height: 62vh; padding-block: 80px 104px; }
.legal-main .eyebrow { margin-bottom: 28px; }
.legal-main h1 { max-width: 1050px; font-size: clamp(2.6rem, 5.5vw, 5rem); overflow-wrap: anywhere; }
.legal-status { width: fit-content; margin-top: 28px; padding: 7px 12px; border: 1px solid var(--line); color: var(--ink2); font-size: .78rem; border-radius: 999px; }
.legal-main .lead { margin-top: 24px; }
.legal-main .btn { margin-top: 32px; }
.hero-copy, .section-head > div, .statement > *, .footer-grid > * { min-width: 0; }

/* Content remains visible unless the observer was successfully installed. */
.motion-ready .reveal-target { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .2, 1); }
.motion-ready .reveal-target.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card, .node, .step { transition: transform .25s, box-shadow .25s, border-color .25s; }
  .card:hover, .node:hover { transform: translate3d(0, -3px, 0); border-color: rgba(14, 42, 71, .3); box-shadow: 0 12px 30px rgba(14, 42, 71, .05); }
  .step:hover { transform: translate3d(0, -3px, 0); }
  .btn:hover { box-shadow: 0 4px 16px rgba(14, 42, 71, .12); background: var(--sand); }
  .btn.primary:hover { background: var(--ink2); }
}
@media (max-width: 1100px) {
  :root { --header-height: 78px; }
  /* Without JS, use an in-flow header and show every navigation link. */
  body { padding-top: 0; }
  .nav { position: relative; }
  .nav-inner { flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .nav-links { order: 4; flex-basis: 100%; flex-wrap: wrap; gap: 10px 24px; }
  .menu-ready body { padding-top: var(--header-height); }
  .menu-ready .nav { position: fixed; }
  .menu-ready .nav-inner { height: var(--header-height); padding-block: 0; flex-wrap: nowrap; }
  .menu-ready .menu-toggle { display: grid; place-items: center; }
  .menu-ready .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 12px 32px 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(14, 42, 71, .08); max-height: calc(100vh - var(--header-height)); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  .menu-ready .nav-links.open { display: flex; }
  .menu-ready .nav-links a { padding: 13px 12px; min-height: 46px; }
  .menu-ready .nav-links a::after { display: none; }
  .menu-ready .nav-links a.btn { margin-top: 8px; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { padding: 64px 0; }
  .section-head, .statement { grid-template-columns: 1fr; gap: 28px; }
  .section-head > .eyebrow { max-width: none; }
  .grid-2, .grid-3, .grid-4, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-branding { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(2.1rem, 10.5vw, 3rem); }
  .hero h1 br { display: none; }
  .hero-bg::after { background: linear-gradient(rgba(251, 250, 247, .92), rgba(251, 250, 247, .78)); }
  .divider-wash { display: none; }
  .divider-paint { inset: 0; }
  #about::before { background-image: url('assets/about-mobile.webp'); }
}
@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 32px), var(--max)); }
  .nav .brand { gap: 5px; }
  .nav .brand-name { font-size: .58rem; letter-spacing: .1em; max-width: 148px; }
  .nav .brand-mark { width: 40px; height: 28px; }
  .nav .brand-mark::before, .nav .brand-mark::after { width: 25px; height: 25px; }
  .nav-inner { gap: 8px; }
  .language-switch { gap: 0; padding-left: 6px; }
  .language-switch a { min-width: 28px; }
  .menu-ready .nav-links { padding-inline: 16px; }
  .grid-2, .grid-3, .grid-4, .process, .ecosystem { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding: 54px 0; min-height: 0; }
  .paint-divider { height: 190px; }
  .card, .node { padding: 26px; }
  .contact-form { padding: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .statement { padding: 28px; }
  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 32px; }
  .footer-branding { grid-column: auto; }
  .footer-bottom { align-items: flex-start; gap: 10px; }
  .footer-legal { flex-direction: column; gap: 0; }
  .footer-purpose { font-size: 1.15rem; }
  .legal-main { padding-block: 54px 76px; }
  .step { min-height: 0; padding-inline: 4px; }
}
@media (max-width: 360px) {
  .nav .brand-name { max-width: 105px; font-size: .54rem; }
  .nav .brand-mark { width: 34px; }
  .language-switch { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal-target { opacity: 1 !important; transform: none !important; }
  [data-speed] { transform: none !important; will-change: auto !important; }
}
