:root {
  --navy: #0b1626;
  --navy-2: #12233a;
  --blue: #1e4f91;
  --blue-bright: #2e6bc4;
  --gold: #c4a15a;
  --gold-soft: #e0c889;
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --cream: #faf7f1;
  --ink: #121820;
  --muted: #5c6570;
  --line: rgba(18, 24, 32, 0.12);
  --line-light: rgba(244, 239, 230, 0.16);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Manrope", "Avenir Next", Avenir, "Century Gothic", sans-serif;
  --gutter: clamp(1.1rem, 4vw, 3.6rem);
  --header: 4.6rem;
  --radius: 22px;
  --shadow: 0 28px 70px rgba(11, 22, 38, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-weight: 400;
  cursor: none;
}
body.is-touch { cursor: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
input, select, textarea { font-size: 16px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
button { cursor: none; }
body.is-touch button { cursor: pointer; }

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 200; background: var(--navy); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 999px; cursor: pointer;
}

.wrap {
  width: min(1220px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.eyebrow::before {
  content: ""; width: 1.8rem; height: 1px; background: currentColor;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  border: 0; text-decoration: none; position: relative; overflow: hidden;
  padding: 0.98rem 1.45rem;
  border-radius: 999px; font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 16px 40px rgba(196, 161, 90, 0.28); }
.btn-light { background: var(--paper); color: var(--navy); }
.btn-line {
  background: transparent; color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(244, 239, 230, 0.38);
}
.btn-line:hover { background: rgba(244, 239, 230, 0.08); }
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: #071018; }
.btn-wide { width: 100%; }

.cursor {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold);
  pointer-events: none; z-index: 400; mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s ease;
}
.cursor.grow { width: 42px; height: 42px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold); }
body.is-touch .cursor { display: none; }

.demo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  background: var(--gold); color: var(--navy);
  text-align: center; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.48rem 1rem;
}
.demo-mark {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 90;
  display: flex; flex-direction: column; gap: 0.2rem;
  background: var(--navy); color: var(--paper);
  padding: 0.82rem 1rem 0.9rem;
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
  max-width: 17rem;
}
.demo-mark span {
  font-size: 0.68rem; letter-spacing: 0.34em; font-weight: 800; color: var(--gold);
}
.demo-mark strong {
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.3;
}

.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--navy); color: var(--paper);
  display: grid; place-items: center;
}
.loader-inner { width: min(28rem, 84vw); text-align: center; }
.loader-brand {
  font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 4rem);
  font-style: italic; letter-spacing: -0.04em; margin-bottom: 0.3rem;
}
.loader-sub {
  font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2.2rem;
}
.loader-bar {
  height: 1px; background: rgba(244, 239, 230, 0.16); overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%; width: 0; background: var(--gold);
}
.loader-row {
  display: flex; justify-content: space-between; margin-top: 0.8rem;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7;
}

header.nav {
  position: fixed; top: 2.05rem; left: 0; right: 0; z-index: 40;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(11, 22, 38, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line-light);
}
header.nav.hide { transform: translateY(-110%); }
.nav-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header);
  padding-top: env(safe-area-inset-top);
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--paper);
}
.brand-mark { width: 46px; height: 46px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--serif); font-size: 1.35rem; font-style: italic; font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-text span {
  font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft); margin-top: 0.28rem; font-weight: 600;
}
.nav-links {
  display: flex; align-items: center; gap: 0.2rem 1.15rem;
  margin-left: auto; list-style: none; padding: 0;
}
.nav-links a {
  text-decoration: none; font-size: 0.78rem; font-weight: 600;
  color: rgba(244, 239, 230, 0.82); white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-cta .btn { padding: 0.68rem 1.05rem; font-size: 0.76rem; }
.burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 0; background: transparent;
  border-radius: 50%; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 13px; width: 20px; height: 1.6px;
  background: var(--paper); border-radius: 2px; content: "";
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.2s ease;
}
.burger span { top: 22px; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.hero {
  position: relative; min-height: 100svh;
  background: var(--navy); color: var(--paper);
  display: grid; align-items: end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 120%; object-fit: cover;
  transform: scale(1.08);
  filter: saturate(0.82) contrast(1.05);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 22, 38, 0.22) 0%, rgba(11, 22, 38, 0.12) 36%, rgba(11, 22, 38, 0.78) 100%),
    radial-gradient(1200px 500px at 70% 10%, rgba(30, 79, 145, 0.18), transparent 60%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.13;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.18) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 88%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: calc(var(--header) + 4.6rem) 0 4.2rem;
}
.hero h1 {
  font-size: clamp(3.4rem, 10vw, 8.4rem);
  line-height: 0.86; font-style: italic;
  max-width: 10ch; margin-top: 0.9rem;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .word { display: inline-block; }
.lede {
  margin-top: 1.4rem; font-size: 1.08rem; max-width: 38ch;
  color: rgba(244, 239, 230, 0.78); font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line-light);
}
.hero-meta b {
  display: block; font-family: var(--serif); font-size: 1.7rem; font-style: italic; line-height: 1;
}
.hero-meta span {
  display: block; margin-top: 0.28rem; font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65;
}

.marquee {
  background: var(--navy-2); color: var(--gold-soft);
  border-top: 1px solid var(--line-light);
  overflow: hidden; padding: 0.85rem 0;
}
.marquee-track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: marquee 32s linear infinite;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
}
.marquee-track span { white-space: nowrap; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

section { position: relative; padding: 5.4rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 {
  font-size: clamp(2.15rem, 4.6vw, 3.7rem); line-height: 1.04; font-style: italic;
}
.section-head p { margin-top: 0.95rem; font-size: 1.05rem; color: var(--muted); }

.about { background: var(--cream); overflow: hidden; }
.about-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.6rem, 4vw, 4rem); align-items: center;
}
.about-visual { position: relative; }
.about-frame {
  overflow: hidden; border-radius: 2rem 2rem 6rem 2rem;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; right: -0.8rem; bottom: 12%;
  background: var(--navy); color: var(--paper);
  padding: 1.1rem 1.2rem; border-radius: 18px; max-width: 12.5rem;
  box-shadow: var(--shadow);
}
.about-badge b {
  display: block; font-family: var(--serif); font-size: 2.3rem;
  font-style: italic; color: var(--gold); line-height: 0.9;
}
.about-badge span { display: block; margin-top: 0.3rem; font-size: 0.78rem; opacity: 0.75; }
.about-copy h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-style: italic; line-height: 1.06; }
.about-copy p { margin-top: 1rem; color: var(--muted); }
.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.7rem;
}
.fact {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 1rem 1.05rem;
}
.fact strong { display: block; font-size: 0.92rem; margin-bottom: 0.18rem; }
.fact span { font-size: 0.82rem; color: var(--muted); }

.stats {
  background: var(--navy); color: var(--paper); padding: 3.4rem 0;
}
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat {
  padding: 0.4rem 0.4rem 0.2rem;
  border-left: 1px solid var(--line-light);
  padding-left: 1.15rem;
}
.stat b {
  display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-style: italic; line-height: 0.95; color: var(--gold-soft);
}
.stat span {
  display: block; margin-top: 0.45rem; font-size: 0.82rem; opacity: 0.7;
}

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
}
.card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 24px; padding: 1.45rem 1.35rem 1.5rem;
  min-height: 100%;
  transition: transform 0.4s var(--ease), background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  background: var(--navy); color: var(--paper);
  border-color: transparent;
}
.card-num {
  font-family: var(--serif); font-style: italic; color: var(--gold);
  font-size: 1.35rem; margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.55rem; font-style: italic; }
.card p { margin-top: 0.5rem; font-size: 0.94rem; color: var(--muted); }
.card:hover p { color: rgba(244, 239, 230, 0.72); }

.projects { background: var(--navy); color: var(--paper); overflow: hidden; }
.projects .section-head h2 { color: var(--paper); }
.projects .section-head p { color: rgba(244, 239, 230, 0.68); }
.project-list { display: grid; gap: 1.1rem; }
.project {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  min-height: 420px; background: var(--navy-2);
  border-radius: 28px; overflow: hidden;
  text-decoration: none; color: inherit;
}
.project:nth-child(even) { grid-template-columns: 0.85fr 1.15fr; }
.project:nth-child(even) .project-media { order: 2; }
.project-media { position: relative; overflow: hidden; min-height: 280px; }
.project-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.project:hover .project-media img { transform: scale(1.07); }
.project-copy {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.project-copy .tag {
  display: inline-flex; width: fit-content;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 0.8rem;
}
.project-copy h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-style: italic; line-height: 1.08; }
.project-copy p { margin-top: 0.75rem; color: rgba(244, 239, 230, 0.72); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.15rem; }
.chip {
  font-size: 0.74rem; padding: 0.38rem 0.7rem;
  border: 1px solid var(--line-light); border-radius: 999px;
  color: rgba(244, 239, 230, 0.82);
}
.project-link {
  margin-top: 1.3rem; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft);
}

.timeline { background: var(--paper-2); }
.time-list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; position: relative;
}
.time-item {
  background: var(--cream); border-radius: 20px; padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid var(--line); min-height: 100%;
}
.time-item b {
  display: block; font-family: var(--serif); font-size: 1.7rem;
  font-style: italic; color: var(--blue); margin-bottom: 0.55rem;
}
.time-item h3 { font-size: 1.15rem; }
.time-item p { margin-top: 0.4rem; font-size: 0.88rem; color: var(--muted); }

.grant {
  background: var(--cream);
}
.grant-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 0; background: var(--navy); color: var(--paper);
  border-radius: 28px; overflow: hidden;
}
.grant-copy { padding: clamp(1.5rem, 3.4vw, 2.6rem); }
.grant-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-style: italic; }
.grant-copy p { margin-top: 0.85rem; color: rgba(244, 239, 230, 0.74); }
.grant-copy ul { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.grant-copy li {
  padding: 0.45rem 0 0.45rem 1.1rem; position: relative;
  color: rgba(244, 239, 230, 0.84);
}
.grant-copy li::before {
  content: ""; position: absolute; left: 0; top: 0.9rem;
  width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--gold);
}
.grant-aside {
  background:
    linear-gradient(180deg, rgba(11, 22, 38, 0.18), rgba(11, 22, 38, 0.72)),
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1200&q=80") center/cover;
  min-height: 280px; display: flex; align-items: flex-end;
  padding: 1.6rem;
}
.grant-amount {
  background: rgba(11, 22, 38, 0.72); backdrop-filter: blur(10px);
  padding: 1.1rem 1.2rem; border-radius: 18px; width: 100%;
}
.grant-amount b {
  display: block; font-family: var(--serif); font-size: 2.1rem;
  font-style: italic; color: var(--gold-soft);
}
.grant-amount span { font-size: 0.82rem; opacity: 0.75; }

.contact { background: var(--paper); }
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem; align-items: stretch;
}
.info-card, .form {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 28px; padding: 1.55rem 1.45rem;
}
.info-card h3 { font-size: 1.8rem; font-style: italic; margin-bottom: 1rem; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 0.72rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list a { text-decoration: none; font-weight: 600; }
.info-list small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; }
.map-wrap {
  margin-top: 1rem; border-radius: 18px; overflow: hidden; min-height: 220px;
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 220px; border: 0; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; }
label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
input, select, textarea {
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.85rem 0.95rem; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 79, 145, 0.12);
}
textarea { resize: vertical; min-height: 110px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.err { color: #9a3b32; font-size: 0.85rem; grid-column: 1 / -1; min-height: 1.1em; }
.ok { color: #2f6a43; font-size: 0.9rem; }

footer.site {
  background: var(--navy); color: var(--paper);
  padding: 3rem 0 6.8rem; border-top: 1px solid var(--line-light);
}
.foot {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.6rem;
}
.foot h3 { font-family: var(--serif); font-style: italic; font-size: 1.6rem; margin-bottom: 0.7rem; }
.foot a { text-decoration: none; }
.foot p, .foot a, .foot li { color: rgba(244, 239, 230, 0.72); font-size: 0.9rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0.35rem 0; }
.foot-bottom {
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  font-size: 0.78rem; opacity: 0.55;
}

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; gap: 0.55rem;
  padding: 0.7rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(11, 22, 38, 0.94); backdrop-filter: blur(14px);
}
.dock a { flex: 1; }

@media (max-width: 980px) {
  body { cursor: auto; }
  .cursor { display: none; }
  .about-grid, .project, .project:nth-child(even), .grant-card, .contact-grid, .foot {
    grid-template-columns: 1fr;
  }
  .project:nth-child(even) .project-media { order: 0; }
  .services-grid, .stats-row, .time-list { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0;
    top: 100%; background: rgba(11, 22, 38, 0.96); padding: 0.9rem var(--gutter) 1.4rem;
    border-bottom: 1px solid var(--line-light); align-items: flex-start; gap: 0.9rem;
  }
  .about-badge { position: static; margin-top: 0.9rem; max-width: none; }
}
@media (max-width: 640px) {
  .services-grid, .stats-row, .time-list, .facts, .form { grid-template-columns: 1fr; }
  .dock { display: flex; }
  footer.site { padding-bottom: 7.4rem; }
  .demo-mark { left: 0.7rem; bottom: 5.4rem; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
}
