:root {
  --ink: #07111f;
  --navy: #0a1930;
  --blue: #1e5aa8;
  --ice: #eaf3ff;
  --white: #ffffff;
  --muted: #677487;
  --line: rgba(7, 17, 31, .14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100; padding: .7rem 1rem; background: white; transform: translateY(-140%); }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0 0 .7rem; font-size: .78rem; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: .9rem clamp(1.1rem, 4vw, 4rem); color: white; background: linear-gradient(to bottom, rgba(3, 9, 18, .78), transparent); transition: background .25s, min-height .25s; }
.site-header.scrolled { min-height: 68px; background: rgba(7, 17, 31, .96); backdrop-filter: blur(12px); }
.brand img { width: clamp(170px, 20vw, 255px); max-height: 52px; object-fit: contain; }
.site-nav { display: flex; gap: clamp(1rem, 2.3vw, 2.2rem); font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.site-nav a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { border-color: currentColor; }
.menu-button { display: none; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .55rem .85rem; color: white; background: transparent; font: 700 .75rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }

.hero { position: relative; min-height: min(920px, 100svh); display: grid; align-items: end; overflow: hidden; color: white; background: var(--ink); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 22%; filter: saturate(.9) contrast(1.03); }
.hero-video { background: var(--ink); }
.hero-shade { background: linear-gradient(90deg, rgba(3,9,18,.88) 0%, rgba(3,9,18,.45) 43%, rgba(3,9,18,.05) 76%), linear-gradient(0deg, rgba(3,9,18,.55), transparent 45%); }
.hero-copy { position: relative; z-index: 2; width: min(760px, 78vw); padding: 10rem clamp(1.25rem, 7vw, 7rem) clamp(4rem, 10vh, 7rem); }
.hero-copy > * { opacity: 0; transform: translateY(24px); animation: hero-rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-copy > :nth-child(1) { animation-delay: .12s; }
.hero-copy > :nth-child(2) { animation-delay: .25s; }
.hero-copy > :nth-child(3) { animation-delay: .42s; }
.hero-copy > :nth-child(4) { animation-delay: .56s; }
.hero h1 { margin: 0; font: clamp(4rem, 10vw, 9.5rem)/.78 var(--serif); letter-spacing: -.075em; text-wrap: balance; }
.hero-intro { margin: 2rem 0 2.2rem; font: italic clamp(1.1rem, 2vw, 1.5rem) var(--serif); }
.button { display: inline-block; padding: .9rem 1.35rem; border: 1px solid white; text-decoration: none; font-size: .78rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; transition: color .2s, background .2s; }
.button:hover, .button:focus-visible { color: var(--ink); background: white; }
.hero-side { position: absolute; z-index: 2; right: 2rem; bottom: 6rem; margin: 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl; }

.section { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6rem); }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr 1fr; align-items: end; gap: 2rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.section-heading h2, .about h2, .community h2, .contact h2 { margin: 0; font: clamp(2.8rem, 6vw, 6.4rem)/.94 var(--serif); letter-spacing: -.055em; }
.section-heading > p:last-child { margin: 0; max-width: 28rem; color: var(--muted); }

.portfolio { background: #f4f7fb; }
.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(220px, 28vw, 420px); gap: clamp(.7rem, 1.4vw, 1.25rem); }
.tile { position: relative; grid-column: span 4; margin: 0; overflow: hidden; background: #d8e0eb; }
.tile-wide { grid-column: span 8; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.tile:hover img { transform: scale(1.025); }
.tile figcaption { position: absolute; inset: auto auto 1rem 1rem; padding: .45rem .7rem; color: white; background: rgba(7,17,31,.78); font-size: .68rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(8px); }

.about { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(3rem, 8vw, 9rem); }
.about-photo-wrap { position: relative; }
.about-photo-wrap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; }
.number { position: absolute; right: -1.8rem; bottom: -2.3rem; color: var(--blue); font: italic clamp(4rem, 8vw, 8rem)/1 var(--serif); }
.about-copy { max-width: 43rem; }
.about-copy h2 { margin-bottom: 2rem; }
.about-copy > p:not(.eyebrow):not(.school) { color: #435065; font-size: 1.05rem; }
.school { margin-top: 2.2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; font-weight: 750; letter-spacing: .06em; }

.comp-card { display: grid; grid-template-columns: 1.15fr 1fr auto; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 6vw, 6rem); color: white; background: linear-gradient(125deg, #102542, #07111f 62%); }
.comp-card h2 { margin: 0 0 1rem; font: clamp(2.5rem, 5vw, 5rem)/.95 var(--serif); letter-spacing: -.05em; }
.comp-card p { max-width: 38rem; margin-bottom: 0; color: #c8d6e8; }
.quick-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin: 0; }
.quick-stats div { border-top: 1px solid rgba(255,255,255,.22); padding-top: .65rem; }
.quick-stats dt { color: #88bcff; font-size: .67rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.quick-stats dd { margin: .18rem 0 0; font: 1.05rem var(--serif); }
.download-button { display: inline-block; white-space: nowrap; border: 1px solid white; padding: .95rem 1.25rem; text-decoration: none; font-size: .74rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; transition: color .2s, background .2s; }
.download-button:hover, .download-button:focus-visible { color: var(--ink); background: white; }

.titles { color: white; background: var(--ink); }
.section-heading.light { border-color: rgba(255,255,255,.18); }
.title-list { list-style: none; margin: 0; padding: 0; }
.title-list li { display: grid; grid-template-columns: 80px 1fr 1fr; align-items: baseline; gap: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.16); padding: 1.7rem 0; }
.title-list span { color: #7eb6ff; font-size: .75rem; letter-spacing: .15em; }
.title-list strong { font: clamp(1.5rem, 3vw, 2.8rem)/1.1 var(--serif); }
.title-list small { color: #b9c7d9; font-size: .9rem; }

.community { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); overflow: hidden; }
.community-copy { max-width: 41rem; }
.community-copy h2 { margin-bottom: 2rem; }
.community-copy > p:not(.eyebrow) { color: #435065; }
.interests { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.interests span { border: 1px solid var(--line); border-radius: 999px; padding: .5rem .85rem; font-size: .78rem; font-weight: 700; }
.community-images { position: relative; min-height: 670px; }
.community-images img { position: absolute; width: 62%; aspect-ratio: 3 / 4; object-fit: cover; }
.community-images img:first-child { top: 0; right: 0; }
.community-images img:last-child { left: 0; bottom: 0; border: 10px solid white; }

.contact { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 10vw, 12rem); color: white; text-align: center; background: linear-gradient(135deg, #0b1e39, #1e5aa8); }
.contact h2 { margin-bottom: 1.5rem; }
.contact > p:not(.eyebrow) { max-width: 46rem; margin: 0 auto; color: #dce9fa; font-size: 1.05rem; }
.contact-button { display: inline-block; margin: 2rem 0 .8rem; border: 1px solid white; padding: .95rem 1.4rem; color: white; text-decoration: none; font-size: .8rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s; }
.contact-button:hover, .contact-button:focus-visible { color: var(--ink); background: white; }
.contact-note { margin-top: 1.1rem !important; font-size: .85rem !important; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2rem clamp(1.25rem, 4vw, 4rem); color: #b9c7d9; background: #040a13; font-size: .74rem; }
.site-footer img { width: 190px; max-height: 50px; object-fit: contain; }
.site-footer p { margin: 0; }
.parent-managed { text-align: right; }

.motion-ready .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.motion-ready .reveal.reveal-left { transform: translateX(-36px); }
.motion-ready .reveal.reveal-right { transform: translateX(36px); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translate(0, 0); }
.motion-ready .portfolio-grid .tile:nth-child(2) { transition-delay: .08s; }
.motion-ready .portfolio-grid .tile:nth-child(3) { transition-delay: .16s; }
.motion-ready .portfolio-grid .tile:nth-child(4) { transition-delay: .06s; }
.motion-ready .portfolio-grid .tile:nth-child(5) { transition-delay: .14s; }
.motion-ready .portfolio-grid .tile:nth-child(6) { transition-delay: .22s; }

@keyframes hero-breathe {
  from { transform: scale(1.01); }
  to { transform: scale(1.075); }
}

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 850px) {
  .site-header { min-height: 68px; background: rgba(7,17,31,.92); }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: .5rem 1.2rem 1rem; background: rgba(7,17,31,.98); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 0; }
  .hero { min-height: 780px; }
  .hero-image { object-position: 58% 20%; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,9,18,.9), rgba(3,9,18,.05) 75%); }
  .hero-copy { width: 100%; padding: 8rem 1.25rem 4rem; }
  .hero h1 { font-size: clamp(3.8rem, 20vw, 6.8rem); }
  .hero-side { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: .5rem; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 55vw; }
  .tile, .tile-wide { grid-column: span 1; }
  .tile-wide { grid-column: span 2; }
  .about, .community { grid-template-columns: 1fr; }
  .comp-card { grid-template-columns: 1fr 1fr; }
  .download-button { justify-self: start; }
  .about-photo-wrap { max-width: 580px; }
  .title-list li { grid-template-columns: 42px 1fr; }
  .title-list small { grid-column: 2; }
  .community-images { min-height: 580px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer img { margin: 0 auto; }
  .parent-managed { text-align: center; }
}

@media (max-width: 520px) {
  .brand img { width: 155px; }
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 125vw; }
  .tile, .tile-wide { grid-column: span 1; }
  .community-images { min-height: 480px; }
  .community-images img { width: 68%; }
  .comp-card { grid-template-columns: 1fr; }
}

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