/* =========================================================
   ORA CAPITAL — main.css
   Real estate investment & development
   Palette sampled from brand deck + logo
   ========================================================= */

/* ---------- self-hosted fonts (GDPR: no Google CDN, no visitor IP leak) ---------- */
/* Inter — variable, latin + latin-ext */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/fonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/fonts/inter-latinext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}
/* Playfair Display — variable, latin + latin-ext */
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 900;font-display:swap;src:url('/assets/fonts/playfair-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 900;font-display:swap;src:url('/assets/fonts/playfair-latinext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}

:root {
  --navy:   #18243C;
  --navy-2: #1F2E49;
  --steel:  #4884A8;
  --steel-d:#3A6F8E;
  --cream:  #EDEBE4;
  --cream-2:#F5F3EC;
  --gold:   #B2935B;
  --green:  #3E6B52;
  --ink:    #1A2634;
  --ink-2:  #51606E;
  --line:   #D9D6CC;
  --white:  #FFFFFF;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #D6DCE4; }
.section--navy h1,.section--navy h2,.section--navy h3 { color: var(--white); }
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--steel); margin: 0 0 1rem;
}
.section--navy .eyebrow { color: var(--gold); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 60ch; }
.section--navy .lead { color: #C3CBD5; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.rule { width: 54px; height: 2px; background: var(--gold); border: 0; margin: 0 0 1.6rem; }
.center .rule { margin-inline: auto; }

h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4.2vw, 42px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: .04em;
  padding: .95em 1.7em; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: all .25s var(--ease);
}
.btn--primary { background: var(--steel); color: #fff; }
.btn--primary:hover { background: var(--steel-d); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color:#fff; }
.btn--dark { background: var(--navy); color:#fff; }
.btn--dark:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color:#fff; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 76px;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__mark { font-family: var(--serif); font-weight: 700; font-size: 22px; color: #fff; letter-spacing: .02em; line-height: 1; }
.brand__mark b { color: var(--steel); font-weight: 700; }
.site-header.scrolled .brand__mark b { color: var(--steel); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.88);
  letter-spacing: .01em; padding: .4rem 0; position: relative;
  transition: color .2s;
}
.nav a::after {
  content:""; position:absolute; left:0; bottom:-2px; height:1.5px; width:0;
  background: var(--steel); transition: width .25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color:#fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width:100%; }

.lang { display:flex; align-items:center; gap:.4rem; font-size:13px; font-weight:600; letter-spacing:.06em; }
.lang a { color: rgba(255,255,255,.55); padding:.2rem .3rem; }
.lang a[aria-current="true"] { color:#fff; }
.lang span { color: rgba(255,255,255,.3); }

/* solid header after scroll / on interior pages */
.site-header.scrolled, .site-header.solid { background: var(--navy); box-shadow: 0 2px 24px rgba(0,0,0,.25); }
.site-header.solid .site-header__inner { height: 72px; }

.nav-toggle { display:none; background:none; border:0; cursor:pointer; padding:8px; }
.nav-toggle span { display:block; width:24px; height:2px; background:#fff; margin:5px 0; transition:.3s var(--ease); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero__bg { position:absolute; inset:0; z-index:0; }
.hero__bg img { width:100%; height:100%; object-fit: cover; }
.hero__bg::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(24,36,60,.55) 0%, rgba(24,36,60,.25) 40%, rgba(24,36,60,.9) 100%);
}
.hero__inner { position: relative; z-index:1; padding-bottom: clamp(60px, 10vh, 120px); padding-top: 140px; }
.hero h1 { color:#fff; max-width: 15ch; }
.hero .lead { color: #E4E9EF; max-width: 54ch; margin-bottom: 2rem; }
.hero__actions { display:flex; gap: 1rem; flex-wrap: wrap; }

/* page hero (interior, compact) */
.pagehero {
  background: var(--navy); color:#fff; padding-top: 150px; padding-bottom: clamp(48px,7vw,84px);
  position: relative;
}
.pagehero h1 { color:#fff; max-width: 18ch; }
.pagehero .lead { color:#C3CBD5; }
.pagehero .eyebrow { color: var(--gold); }

/* ---------- stats ---------- */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); }
.section--navy .stats { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }
.stat { background: var(--white); padding: 2rem 1.5rem; }
.section--navy .stat { background: var(--navy); }
.section--cream .stat { background: var(--cream); }
.stat__num { font-family: var(--serif); font-size: clamp(30px,4vw,44px); color: var(--navy); line-height:1; margin-bottom:.4rem; }
.section--navy .stat__num { color:#fff; }
.stat__num .u { color: var(--gold); }
.stat__label { font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color: var(--ink-2); }
.section--navy .stat__label { color:#9FB0C2; }

/* ---------- grids ---------- */
.grid { display:grid; gap: clamp(24px,3vw,40px); }
.grid--2 { grid-template-columns: repeat(2,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items:center; }

/* feature cards */
.feature { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding: 2rem 1.9rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.section--cream .feature { background:#fff; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(24,36,60,.1); }
.feature__ico { width:42px; height:42px; color: var(--steel); margin-bottom:1.1rem; }
.feature h3 { font-size: 21px; }
.feature p { color: var(--ink-2); font-size: 16px; margin:0; }

/* project cards */
.project { position:relative; border-radius:var(--radius); overflow:hidden; background: var(--navy); color:#fff; display:block; }
.project__img { aspect-ratio: 4/3; overflow:hidden; background:#223049; }
.project__img img { width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease); }
.project:hover .project__img img { transform: scale(1.06); }
.project__body { padding: 1.4rem 1.5rem 1.7rem; }
.project__status { font-size:11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--gold); }
.project h3 { color:#fff; font-size: 22px; margin:.4rem 0 .3rem; }
.project__meta { font-size:14px; color:#9FB0C2; margin:0; }

/* placeholder image (no photo yet) */
.ph {
  width:100%; height:100%; display:grid; place-items:center;
  background: linear-gradient(135deg, #22314B, #18243C);
  color: rgba(255,255,255,.4); font-family:var(--serif); font-size:13px; letter-spacing:.2em; text-transform:uppercase;
}

/* list with gold ticks */
.ticks li { position:relative; padding-left: 1.9rem; margin-bottom:.9rem; color: var(--ink-2); }
.ticks li::before { content:""; position:absolute; left:0; top:.55em; width:12px; height:2px; background: var(--gold); }
.section--navy .ticks li { color:#C3CBD5; }

/* disclaimer / note box */
.note {
  border-left: 3px solid var(--gold); background: var(--cream-2);
  padding: 1.3rem 1.5rem; font-size: 15px; color: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0;
}
.note strong { color: var(--navy); }

/* image frame */
.frame { border-radius: var(--radius); overflow:hidden; box-shadow: 0 24px 60px rgba(24,36,60,.18); }
.frame img { width:100%; }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color:#fff; text-align:center; }
.cta h2 { color:#fff; }
.cta .lead { color:#C3CBD5; margin-inline:auto; margin-bottom:2rem; }

/* ---------- contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); }
.field { margin-bottom: 1.1rem; }
.field label { display:block; font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-2); margin-bottom:.4rem; }
.field input, .field textarea {
  width:100%; padding:.85rem 1rem; font-family:var(--sans); font-size:16px;
  border:1px solid var(--line); border-radius:var(--radius); background:#fff; color:var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline:none; border-color: var(--steel); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-info dt { font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-2); margin-top:1.4rem; }
.contact-info dd { margin:.2rem 0 0; font-size:17px; color:var(--navy); }
.contact-info dd a:hover { color: var(--steel); }

/* ---------- footer ---------- */
.footer { background: #121C2F; color:#9FB0C2; padding-block: clamp(48px,6vw,72px) 2rem; font-size:14.5px; }
.footer__top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom:2.5rem; border-bottom:1px solid rgba(255,255,255,.1); }
.footer__brand .brand__mark { font-size:24px; margin-bottom:1rem; }
.footer p { color:#8A9AAC; max-width: 34ch; }
.footer h4 { color:#fff; font-family:var(--sans); font-size:13px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; margin-bottom:1.1rem; }
.footer__col a { display:block; padding:.3rem 0; color:#9FB0C2; transition:color .2s; }
.footer__col a:hover { color:#fff; }
.footer__bottom { display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; padding-top:1.8rem; font-size:13px; color:#6C7C8E; }
.footer__bottom a:hover { color:#fff; }

/* ---------- reveal animation ---------- */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .grid--3 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .split, .contact-grid, .footer__top { grid-template-columns: 1fr; }
  .footer__top { gap:2rem; }
}
@media (max-width: 760px) {
  .nav-toggle { display:block; }
  .nav {
    display: none;
    position: fixed; top:0; right:0; bottom:0; width: min(82vw, 330px);
    background: var(--navy); flex-direction: column; align-items:flex-start;
    justify-content:flex-start; gap:.4rem; padding: 88px 2rem 2rem;
    box-shadow: -10px 0 40px rgba(0,0,0,.4);
    animation: navPanel .3s var(--ease) both;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; padding:.6rem 0; width:100%; }
  .lang { margin-top:1rem; }
  body.nav-open { overflow:hidden; }
  .nav-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2){ opacity:0; }
  .nav-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

/* =========================================================
   ENHANCEMENTS — animations + mobile polish
   ========================================================= */

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--steel), var(--gold));
  z-index: 200; transition: width .1s linear; pointer-events: none;
}

/* flex-item overflow guards (prevent min-content from forcing width > viewport) */
.site-header__inner, .hero__inner, .split > *, .contact-grid > * { min-width: 0; }

/* dynamic viewport height for hero (mobile browser chrome safe) */
.hero { min-height: 92vh; min-height: 92svh; }
@keyframes navPanel { from { opacity: 0; } to { opacity: 1; } }

/* hero image: slow ken-burns */
.hero__bg img { animation: kenburns 22s ease-out both; transform-origin: 60% 40%; will-change: transform; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* hero content: staggered entrance on load */
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero .eyebrow   { animation: heroIn .8s .15s var(--ease) both; }
.hero h1         { animation: heroIn .9s .32s var(--ease) both; }
.hero .lead      { animation: heroIn .9s .50s var(--ease) both; }
.hero__actions   { animation: heroIn .9s .66s var(--ease) both; }

/* page hero entrance */
.pagehero .eyebrow { animation: heroIn .7s .05s var(--ease) both; }
.pagehero h1       { animation: heroIn .8s .18s var(--ease) both; }
.pagehero .lead    { animation: heroIn .8s .32s var(--ease) both; }

/* reveal variants + stagger inside grids/stats */
.reveal { will-change: opacity, transform; }
.grid .reveal:nth-child(2)  { transition-delay: .08s; }
.grid .reveal:nth-child(3)  { transition-delay: .16s; }
.grid .reveal:nth-child(4)  { transition-delay: .24s; }
.stat { opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stats.in .stat { opacity: 1; transform: none; }
.stats.in .stat:nth-child(2) { transition-delay: .1s; }
.stats.in .stat:nth-child(3) { transition-delay: .2s; }
.stats.in .stat:nth-child(4) { transition-delay: .3s; }

/* animated gold rule */
.rule { transform-origin: left; }
.center .rule { transform-origin: center; }
.reveal .rule { transform: scaleX(0); transition: transform .7s .15s var(--ease); }
.reveal.in .rule { transform: scaleX(1); }

/* button micro-interaction — arrow nudge + sheen */
.btn--primary::after, .btn--line::after, .btn--dark::after { content: "→"; font-size: 1em; transition: transform .25s var(--ease); }
.btn--primary:hover::after, .btn--line:hover::after, .btn--dark:hover::after { transform: translateX(4px); }

/* link + card polish */
.feature, .project { will-change: transform; }
.project__status { transition: color .25s var(--ease); }

/* nav mobile backdrop */
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(10,16,28,.55);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  z-index: 90; backdrop-filter: blur(2px);
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg img, .hero .eyebrow, .hero h1, .hero .lead, .hero__actions,
  .pagehero .eyebrow, .pagehero h1, .pagehero .lead { animation: none !important; }
  .stat { opacity: 1; transform: none; }
  .reveal .rule { transform: scaleX(1); }
}

/* ---------- MOBILE REFINEMENTS ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(30px, 8.5vw, 44px); line-height: 1.1; }
  h2 { font-size: clamp(25px, 6.6vw, 34px); }
  .lead { font-size: 17px; }

  .site-header__inner { height: 64px; }
  .site-header.solid .site-header__inner { height: 64px; }
  .brand__mark { font-size: 20px; }

  .hero { min-height: 86svh; }
  .hero__inner { padding-top: 110px; padding-bottom: 56px; }
  .hero h1 { max-width: 100%; }
  .hero .lead { max-width: 100%; }
  .hero__actions { gap: .75rem; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }

  .pagehero { padding-top: 104px; }

  .section { padding-block: clamp(48px, 12vw, 72px); }
  .split { gap: 2rem; }

  /* give stat cells breathing room + ensure numbers never clip */
  .stat { padding: 1.5rem 1.1rem; }
  .stat__num { font-size: clamp(28px, 9vw, 38px); }
  .stat__label { font-size: 11px; letter-spacing: .12em; }

  /* larger touch targets */
  .btn { padding: 1em 1.6em; font-size: 15px; }
  .nav a { min-height: 44px; display: flex; align-items: center; }

  /* frames/renders: consistent, tidy aspect on phones */
  .frame img { aspect-ratio: 16/10; object-fit: cover; }

  /* off-canvas menu entrance stagger */
  .nav.open a, .nav.open .lang { animation: navItem .4s var(--ease) both; }
  .nav.open a:nth-child(1){animation-delay:.06s} .nav.open a:nth-child(2){animation-delay:.12s}
  .nav.open a:nth-child(3){animation-delay:.18s} .nav.open a:nth-child(4){animation-delay:.24s}
  .nav.open a:nth-child(5){animation-delay:.30s} .nav.open .lang{animation-delay:.36s}
}
@keyframes navItem { from { opacity:0; transform: translateX(16px); } to { opacity:1; transform:none; } }

@media (max-width: 480px) {
  :root { --pad: 20px; }
  h1 { font-size: clamp(28px, 8.5vw, 40px); }
  .eyebrow { font-size: 11.5px; letter-spacing: .18em; }
  .project h3 { font-size: 20px; }
  .note { padding: 1.1rem 1.2rem; font-size: 14.5px; }
  .contact-info dd { font-size: 16px; word-break: break-word; }
  .footer__bottom { flex-direction: column; gap: .5rem; }
}

/* very small / older devices */
@media (max-width: 360px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat__num { font-size: 30px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* =========================================================
   GDPR (cookie consent) + ACCESSIBILITY
   ========================================================= */

/* ---------- skip link ---------- */
.skip-link {
  position: fixed; top: -120px; left: 16px; z-index: 300;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem;
  border-radius: var(--radius); font-weight: 600; font-size: 14px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- visible keyboard focus ---------- */
:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; border-radius: 2px; }
.site-header :focus-visible, .hero :focus-visible, .cta :focus-visible,
.section--navy :focus-visible, .footer :focus-visible, .pagehero :focus-visible {
  outline-color: var(--gold);
}
main:focus { outline: none; }

/* ---------- cookie consent banner ---------- */
.cc-banner {
  position: fixed; left: 50%; bottom: 20px;
  transform: translateX(-50%) translateY(150%);
  width: min(700px, calc(100vw - 28px)); z-index: 250;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 64px rgba(24,36,60,.28);
  padding: 1.6rem 1.7rem; opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .5s var(--ease), visibility .5s;
}
.cc-banner.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.cc-banner h2 { font-family: var(--serif); font-size: 21px; margin: 0 0 .45rem; }
.cc-banner p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 1.2rem; }
.cc-banner a { color: var(--steel); text-decoration: underline; }
.cc-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.cc-actions .btn { flex: 1 1 140px; justify-content: center; font-size: 13.5px; padding: .85em 1.2em; }
.cc-btn-text {
  background: none; border: 0; color: var(--ink-2); text-decoration: underline;
  cursor: pointer; font-family: var(--sans); font-size: 13.5px; padding: .6em .4em; flex: 0 0 auto;
}
.cc-btn-text:hover { color: var(--navy); }

/* preferences modal */
.cc-modal { position: fixed; inset: 0; z-index: 260; display: none; }
.cc-modal.show { display: block; }
.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(10,16,28,.6); backdrop-filter: blur(3px); }
.cc-modal__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(560px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow: auto;
  background: #fff; border-radius: 12px; padding: 1.9rem;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.cc-modal__panel h2 { font-family: var(--serif); font-size: 23px; margin: 0 0 .4rem; }
.cc-modal__panel > p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 .6rem; }
.cc-cat {
  border-top: 1px solid var(--line); padding: 1.1rem 0;
  display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; align-items: center;
}
.cc-cat h3 { font-family: var(--sans); font-size: 15px; margin: 0; color: var(--navy); }
.cc-cat p { font-size: 13.5px; color: var(--ink-2); margin: .2rem 0 0; grid-column: 1 / -1; }
.cc-modal__actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.cc-modal__actions .btn { flex: 1 1 auto; justify-content: center; font-size: 13.5px; }

/* toggle switch */
.cc-switch { position: relative; width: 46px; height: 26px; flex: none; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-track { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .2s; pointer-events: none; }
.cc-track::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cc-switch input:checked + .cc-track { background: var(--green); }
.cc-switch input:checked + .cc-track::before { transform: translateX(20px); }
.cc-switch input:disabled + .cc-track { opacity: .55; }
.cc-switch input:focus-visible + .cc-track { outline: 3px solid var(--steel); outline-offset: 2px; }

/* ---------- footer legal row ---------- */
.footer__legal { display: flex; gap: 1.3rem; flex-wrap: wrap; align-items: center; }
.footer__legal a { color: #6C7C8E; }
.footer__legal a:hover { color: #fff; }
.footer__cookie {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: 13px; color: #6C7C8E; letter-spacing: inherit;
}
.footer__cookie:hover { color: #fff; }

/* ---------- contact-form consent ---------- */
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1.3rem; font-size: 14px; color: var(--ink-2); }
.consent input { margin-top: .25rem; width: 18px; height: 18px; flex: none; accent-color: var(--steel); }
.consent a { color: var(--steel); text-decoration: underline; }

/* ---------- legal / policy prose ---------- */
.legal { max-width: 780px; }
.legal__updated { font-size: 14px; color: var(--ink-2); margin-bottom: 2.2rem; }
.legal h2 { font-size: clamp(22px, 3vw, 30px); margin: 2.6rem 0 .8rem; }
.legal h3 { font-family: var(--sans); font-size: 17px; color: var(--navy); margin: 1.7rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1.2em; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--steel); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.3rem 0; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: .7rem .85rem; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--cream-2); color: var(--navy); font-family: var(--sans); font-weight: 600; }
.legal .todo { background: #FFF1C2; color: #7a5b00; padding: .05em .35em; border-radius: 3px; font-style: normal; font-weight: 600; }
.legal__toc { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.legal__toc h2 { font-size: 15px; font-family: var(--sans); margin: 0 0 .6rem; }
.legal__toc ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.legal__toc a { font-size: 14px; }
@media (max-width: 560px) { .legal__toc ul { columns: 1; } .legal table, .legal thead, .legal tbody, .legal th, .legal td, .legal tr { display: block; } .legal th { display: none; } .legal td { border: 0; border-bottom: 1px solid var(--line); padding: .4rem 0; } .legal tr { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; margin-bottom: .8rem; } .legal td::before { content: attr(data-label); display: block; font-weight: 600; color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; } }

/* ---------- floating cookie widget (reopen consent anytime) ---------- */
.cc-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 239;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--navy); border: 1px solid var(--line); cursor: pointer;
  display: none; place-items: center; box-shadow: 0 6px 20px rgba(24,36,60,.22);
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.cc-fab.show { display: grid; }
.cc-fab:hover { background: var(--navy); color: #fff; transform: scale(1.06); }
.cc-fab svg { width: 22px; height: 22px; }

/* ---------- accessibility floating button + panel ---------- */
.a11y-fab {
  position: fixed; right: 18px; bottom: 76px; z-index: 240;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(24,36,60,.3);
  transition: transform .2s var(--ease), background .2s;
}
.a11y-fab:hover { transform: scale(1.06); background: var(--steel); }
.a11y-fab svg { width: 27px; height: 27px; }
.a11y-panel {
  position: fixed; right: 18px; bottom: 138px; z-index: 241;
  width: min(344px, calc(100vw - 32px)); max-height: min(72vh, 620px); overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 54px rgba(24,36,60,.26); padding: 1.2rem 1.25rem;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.a11y-panel.show { opacity: 1; visibility: visible; transform: none; }
.a11y-panel h2 { font-family: var(--sans); font-size: 15px; letter-spacing: .02em; margin: 0 0 .9rem; color: var(--navy); }
.a11y-step { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; font-size: 14px; border-top: 1px solid var(--cream); }
.a11y-step:first-of-type { border-top: 0; }
.a11y-stepctl { display: flex; align-items: center; gap: .55rem; }
.a11y-stepctl button { width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; font-size: 17px; line-height: 1; color: var(--navy); }
.a11y-stepctl button:hover { border-color: var(--steel); }
.a11y-stepctl b { min-width: 1.1em; text-align: center; font-size: 14px; font-weight: 600; color: var(--navy); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .95rem 0 .2rem; }
.a11y-tile {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: .55rem .5rem; cursor: pointer; font-family: var(--sans); font-size: 12.5px;
  color: var(--ink-2); text-align: center; min-height: 50px;
  display: flex; align-items: center; justify-content: center; line-height: 1.25;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.a11y-tile:hover { border-color: var(--steel); }
.a11y-tile[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.a11y-reset { margin-top: .9rem; width: 100%; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem; cursor: pointer; font-family: var(--sans); font-size: 13px; color: var(--ink-2); }
.a11y-reset:hover { border-color: var(--steel); color: var(--navy); }

/* reading guide bar (follows cursor) */
.a11y-guide { position: fixed; left: 0; right: 0; height: 42px; margin-top: -21px; background: rgba(24,36,60,.10); border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); pointer-events: none; z-index: 238; }

/* ---------- accessibility applied states ---------- */
/* text size — base per level + relative bump on reading content */
html.a11y-text-1 body { font-size: 18px; }
html.a11y-text-2 body { font-size: 20px; }
html.a11y-text-3 body { font-size: 22px; }
html.a11y-text-4 body { font-size: 25px; }
html[class*="a11y-text-"] .lead,
html[class*="a11y-text-"] .feature p,
html[class*="a11y-text-"] .project__meta,
html[class*="a11y-text-"] .contact-info dd,
html[class*="a11y-text-"] .field input,
html[class*="a11y-text-"] .field textarea,
html[class*="a11y-text-"] .nav a,
html[class*="a11y-text-"] .footer { font-size: 1.08em; }

/* text spacing */
html.a11y-spacing-1 body { line-height: 1.9; }
html.a11y-spacing-2 body { line-height: 2.15; }
html.a11y-spacing-3 body { line-height: 2.45; }
html.a11y-spacing-1 p, html.a11y-spacing-1 li { letter-spacing: .02em; word-spacing: .08em; }
html.a11y-spacing-2 p, html.a11y-spacing-2 li { letter-spacing: .05em; word-spacing: .15em; }
html.a11y-spacing-3 p, html.a11y-spacing-3 li { letter-spacing: .09em; word-spacing: .24em; }

/* readable font — force a highly legible system stack everywhere */
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3,
html.a11y-readable h4, html.a11y-readable .brand__mark, html.a11y-readable .eyebrow,
html.a11y-readable .stat__num, html.a11y-readable button, html.a11y-readable input,
html.a11y-readable textarea, html.a11y-readable .btn {
  font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important; letter-spacing: .01em;
}

/* highlight links */
html.a11y-links a:not(.btn):not(.brand) {
  text-decoration: underline !important; text-underline-offset: 2px;
  outline: 2px solid var(--gold); outline-offset: 1px; border-radius: 2px;
}

/* highlight titles */
html.a11y-headings h1, html.a11y-headings h2, html.a11y-headings h3, html.a11y-headings h4 {
  box-shadow: 0 0 0 2px rgba(72,132,168,.35); background: rgba(72,132,168,.12); border-radius: 3px;
}

/* high contrast — darken muted text, underline links, strengthen borders */
html.a11y-contrast { --ink-2: #202b38; --line: #9aa6b2; }
html.a11y-contrast body { color: #000; }
html.a11y-contrast .lead, html.a11y-contrast p, html.a11y-contrast .ticks li,
html.a11y-contrast .feature p, html.a11y-contrast .project__meta { color: #1a2230; }
html.a11y-contrast .section--navy, html.a11y-contrast .footer,
html.a11y-contrast .hero, html.a11y-contrast .pagehero, html.a11y-contrast .cta { color: #fff; }
html.a11y-contrast main a:not(.btn) { text-decoration: underline; }
html.a11y-contrast .eyebrow { color: var(--steel-d); }

/* invert colours (content only, so the widgets stay readable) */
html.a11y-invert body { background: #0b0f16; }
html.a11y-invert body > header, html.a11y-invert body > main,
html.a11y-invert body > footer, html.a11y-invert body > section { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert body > header img, html.a11y-invert body > main img,
html.a11y-invert body > section img, html.a11y-invert body > footer img { filter: invert(1) hue-rotate(180deg); }

/* grayscale (content only) */
html.a11y-gray body > header, html.a11y-gray body > main,
html.a11y-gray body > footer, html.a11y-gray body > section { filter: grayscale(1); }

/* big cursor */
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l6.5 17 2.4-7 7-2.4z' fill='white' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important;
}

/* hide images */
html.a11y-hideimg img { opacity: 0 !important; }
html.a11y-hideimg .hero, html.a11y-hideimg .pagehero, html.a11y-hideimg .project { background: var(--navy) !important; }

/* align text left */
html.a11y-align body, html.a11y-align .center, html.a11y-align .hero__inner, html.a11y-align .cta { text-align: left !important; }
html.a11y-align .center .rule, html.a11y-align .center .lead { margin-inline: 0 !important; }
html.a11y-align .hero__actions, html.a11y-align .cta .btn { justify-content: flex-start; }

/* pause animations (user-forced, in addition to OS setting) */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}
html.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-motion .stat { opacity: 1 !important; transform: none !important; }
html.a11y-motion .reveal .rule { transform: scaleX(1) !important; }

@media (max-width: 480px) {
  .cc-banner { padding: 1.3rem 1.2rem; }
  .cc-actions .btn { flex: 1 1 100%; }
  .a11y-fab { right: 14px; bottom: 72px; }
  .a11y-panel { bottom: 132px; }
  .cc-fab { left: 14px; bottom: 14px; }
}
