/* ==========================================================
   Classic Innovations — shared stylesheet
   Palette taken from the logo
   ========================================================== */
:root {
  --ink: #0b3350;        /* deep navy text / dark bands */
  --navy: #104870;       /* the "C" */
  --royal: #003098;      /* wordmark */
  --azure: #2088d8;      /* the "i" */
  --iris: #7878c8;       /* tagline "Diverse growth" */
  --mist: #eef3f9;       /* light section background */
  --line: #d5e0ec;
  --muted: #4d6478;
  --white: #ffffff;

  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--royal); text-underline-offset: .2em; }
a:hover { color: var(--azure); }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.75rem, 6.2vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--royal); color: #fff; padding: .75rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 1rem/1 var(--sans);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--royal);
  background: var(--royal); color: var(--white);
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--azure); border-color: var(--azure); color: var(--white); }
.btn--ghost { background: transparent; color: var(--royal); }
.btn--ghost:hover { background: var(--royal); border-color: var(--royal); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--royal); }
.btn--light:hover { background: var(--azure); border-color: var(--azure); color: var(--white); }

.more {
  font-weight: 600; text-decoration: none; color: var(--royal);
  border-bottom: 2px solid var(--azure); padding-bottom: 2px;
}
.more:hover { color: var(--azure); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 51, 80, .5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font: 700 1.2rem/1.1 var(--sans); color: var(--royal); letter-spacing: -.01em; }
.brand-name span { font: 400 .9rem/1.2 var(--sans); color: var(--iris); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.nav ul a {
  font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav ul a:hover { color: var(--royal); border-color: var(--line); }
.nav ul a[aria-current="page"] { color: var(--royal); border-color: var(--azure); }
.nav .btn { padding: .8rem 1.2rem; }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 10px; width: 24px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .2s, opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 84px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    background: var(--white); padding: 1.5rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav ul a[aria-current="page"] { border-bottom-color: var(--azure); }
  .nav .btn { justify-content: center; }
}

/* ---------- Dot texture (from the logo's dotted "C") ---------- */
.dotted {
  background-color: var(--ink);
  background-image: radial-gradient(rgba(32, 136, 216, .28) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  color: var(--white);
}
.dotted h1, .dotted h2, .dotted h3 { color: var(--white); }
.dotted p { color: #c9d8e6; }
.dotted a:not(.btn) { color: #9fd0ff; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .75rem 0 0; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-mark { width: 100%; max-width: 500px; justify-self: end; }
.hero-mark svg { width: 100%; height: auto; overflow: visible; }

.ring, .ring-dots { stroke-dasharray: 75 100; }
.i-stem { stroke-dasharray: 13 100; }
@media (prefers-reduced-motion: no-preference) {
  .ring, .ring-dots { animation: draw-ring 1.4s var(--ease) .15s both; }
  .i-stem { animation: draw-stem .7s var(--ease) 1.2s both; }
  .globe { transform-box: fill-box; transform-origin: center; animation: pop 0.7s var(--ease) 1.55s both; }
}
@keyframes draw-ring { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 75 100; } }
@keyframes draw-stem { from { stroke-dasharray: 0 100; opacity: 0; } 8% { opacity: 1; } to { stroke-dasharray: 13 100; opacity: 1; } }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.08); } to { transform: scale(1); } }

.hero-services {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.hero-services ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-services li + li { border-left: 1px solid var(--line); }
.hero-services a {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.4rem 1.25rem; text-decoration: none; color: var(--ink); font-weight: 600;
}
.hero-services li:first-child a { padding-left: 0; }
.hero-services i { color: var(--azure); font-size: 1.15rem; width: 1.3rem; text-align: center; }
.hero-services a:hover { color: var(--royal); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { max-width: 230px; justify-self: start; order: -1; }
  .hero-services ul { grid-template-columns: 1fr 1fr; }
  .hero-services li:nth-child(3) { border-left: 0; }
  .hero-services li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-services li:nth-child(3) a { padding-left: 0; }
}
@media (max-width: 520px) {
  .hero-services ul { grid-template-columns: 1fr; }
  .hero-services li + li { border-left: 0; border-top: 1px solid var(--line); }
  .hero-services a { padding-left: 0; }
}

/* ---------- Home: about teaser ---------- */
.about-teaser .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.growth-pair { display: grid; gap: 1.5rem; align-content: start; }
.growth-pair div { border-left: 3px solid var(--azure); padding: .25rem 0 .25rem 1.25rem; }
.growth-pair div:last-child { border-color: var(--iris); }
.growth-pair h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.growth-pair p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .about-teaser .wrap { grid-template-columns: 1fr; } }

/* ---------- Home: services list ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 4rem); }
.service-item {
  display: grid; grid-template-columns: auto 1fr; gap: 0 1.25rem;
  padding: 2rem 0; border-top: 1px solid var(--line);
}
.service-item .icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--azure); font-size: 1.2rem;
  border: 1px solid var(--line);
}
.service-item h3 { margin-bottom: .35rem; }
.service-item p { color: var(--muted); margin-bottom: .75rem; }
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Home: team band ---------- */
.team-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.role-list { list-style: none; margin: 0; padding: 0; }
.role-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.role-list li:first-child { border-top: 1px solid rgba(255, 255, 255, .14); }
.role-list strong { font: 600 1.35rem/1.2 var(--display); }
.role-list span { color: #9fb8cc; font-size: .95rem; text-align: right; }
@media (max-width: 820px) { .team-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Contact details / location ---------- */
.location-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list i { color: var(--azure); font-size: 1.15rem; margin-top: .3rem; }
.contact-list .label { display: block; font-size: .9rem; color: var(--muted); }
.contact-list a, .contact-list address { font-style: normal; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--royal); text-decoration: underline; }
.map {
  width: 100%; min-height: 360px; height: 100%;
  border: 0; border-radius: var(--radius);
  filter: saturate(.85);
  background: var(--mist);
}
@media (max-width: 860px) { .location-grid { grid-template-columns: 1fr; } }

/* ---------- Join band ---------- */
.join-band { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.join-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.join-band h2 { margin: 0 0 .35rem; }
.join-band p { margin: 0; }

/* ---------- Inner page header ---------- */
.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.page-head h1 { margin-bottom: .75rem; }
.page-head p { font-size: 1.2rem; max-width: 56ch; margin: 0; }
.page-head::after {
  content: ""; position: absolute; right: -120px; top: 50%;
  width: 420px; height: 420px; transform: translateY(-50%);
  border-radius: 50%;
  border: 70px solid rgba(32, 136, 216, .18);
  border-right-color: transparent;
  transform: translateY(-50%) rotate(-30deg);
  pointer-events: none;
}
@media (max-width: 700px) { .page-head::after { width: 260px; height: 260px; border-width: 44px; right: -110px; } }

/* ---------- About page ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.statement {
  font: 500 clamp(1.7rem, 3vw, 2.4rem)/1.25 var(--display);
  color: var(--royal); margin: 0; max-width: 24ch;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--azure); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step); display: block;
  font: 600 2.4rem/1 var(--display); color: var(--iris); margin-bottom: .75rem;
}
.steps h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 4rem); }
.values div { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.values h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.values p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }

/* ---------- Services page ---------- */
.jump { border-bottom: 1px solid var(--line); background: var(--white); }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.jump a { display: inline-block; padding: 1.1rem 0; font-weight: 600; text-decoration: none; color: var(--ink); }
.jump a:hover { color: var(--royal); }

.service-detail { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); scroll-margin-top: 100px; }
.service-detail + .service-detail { margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.service-detail .icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mist); color: var(--azure); font-size: 1.6rem; margin-bottom: 1.5rem;
}
.service-detail h2 { max-width: 12ch; }
.service-detail h3 { font: 600 1rem/1.4 var(--sans); color: var(--royal); margin: 1.75rem 0 .75rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .45rem 0 .45rem 1.9rem; }
.ticks li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: .55rem; color: var(--azure); font-size: .9rem;
}
.fit { color: var(--muted); margin: 1.25rem 0 1.75rem; }
.fit strong { color: var(--ink); }
@media (max-width: 820px) { .service-detail { grid-template-columns: 1fr; } }

/* ---------- Team page ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.person { text-align: left; }
.person .avatar {
  aspect-ratio: 1 / 1; border-radius: var(--radius); margin-bottom: 1.25rem;
  display: grid; place-items: center;
  font: 600 3.5rem/1 var(--display); color: var(--white);
  background-color: var(--navy);
  background-image: radial-gradient(rgba(32, 136, 216, .35) 1.2px, transparent 1.3px);
  background-size: 12px 12px;
  overflow: hidden;
}
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: .15rem; font-size: 1.6rem; }
.person .role { color: var(--azure); font-weight: 600; margin-bottom: .6rem; }
.person p { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .people { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  padding: .85rem 1rem; border: 1px solid #b9c9da; border-radius: var(--radius); background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(32, 136, 216, .2); }
.field input[readonly] { background: var(--mist); color: var(--royal); font-weight: 600; }
.field input[type="file"] { padding: .7rem; background: var(--mist); }
.hp { position: absolute; left: -9999px; }
.form-actions { margin-top: 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }

.notice { display: none; padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 500; }
.notice.is-visible { display: flex; gap: .75rem; align-items: flex-start; }
.notice--ok { background: #e3f1fd; color: var(--royal); border-left: 4px solid var(--azure); }
.notice--error { background: #fdecec; color: #8a1c1c; border-left: 4px solid #c43d3d; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(3.5rem, 7vw, 5rem) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.footer-brand .plate { width: 64px; height: 64px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; }
.footer-brand img { width: 44px; height: auto; }
.footer-brand strong { display: block; font: 700 1.2rem/1.2 var(--sans); color: var(--white); }
.footer-brand span { color: #a9a9e6; }
.site-footer h3 { font: 600 1rem/1.4 var(--sans); color: var(--white); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a:not(.btn) { color: #c9d8e6; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--white); text-decoration: underline; }
.footer-contact li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; color: #c9d8e6; }
.footer-contact i { color: var(--azure); margin-top: .35rem; }
.footer-contact address { font-style: normal; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); padding: 1.5rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .92rem; color: #9fb8cc;
}
.footer-bottom p { margin: 0; color: #9fb8cc; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* Scroll reveal styles live in the "Animations" block at the end of this file */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero-services-wrap { display: block; }
.location-grid > *, .split > *, .footer-grid > * { min-width: 0; }
.contact-list a, .footer-contact a { overflow-wrap: anywhere; }

/* ==========================================================
   Hero background slider (Ken Burns)
   Images: images/slide/s1.png, s2.png, s3.png
   ========================================================== */
.hero--slides {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 640px;
  min-height: min(calc(100svh - 84px), 920px);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 0;
  background: var(--ink);
  color: var(--white);
}
.hero--slides .hero-services { margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 961px) { .hero--slides .hero-mark { max-width: 440px; } }

.hero-slides { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide:nth-child(1) { transform-origin: 30% 40%; }
.hero-slide:nth-child(2) { transform-origin: 70% 30%; }
.hero-slide:nth-child(3) { transform-origin: 50% 70%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active,
  .hero-slide.is-leaving { animation: ken-burns 8s linear both; }
}
@keyframes ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

/* Navy overlay keeps the headline readable over any photo */
.hero-slides::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(rgba(32, 136, 216, .22) 1.2px, transparent 1.3px) 0 0 / 14px 14px,
    linear-gradient(90deg, rgba(11, 51, 80, .94) 0%, rgba(11, 51, 80, .82) 45%, rgba(11, 51, 80, .5) 100%);
}

.hero--slides h1 { color: var(--white); }
.hero--slides .lead { color: #d3e1ee; }

.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .75); color: var(--white); }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--royal); }

.hero--slides .ring { stroke: #1a5f96; }
.hero--slides .mark-shadow { display: none; }

.hero--slides .hero-services { border-top-color: rgba(255, 255, 255, .2); }
.hero--slides .hero-services li + li { border-color: rgba(255, 255, 255, .2); }
.hero--slides .hero-services a { color: var(--white); }
.hero--slides .hero-services a:hover { color: #9fd0ff; }
.hero--slides .hero-services i { color: #6fb6f2; }

@media (max-width: 960px) {
  .hero--slides { min-height: 0; }
  .hero-slides::after {
    background:
      radial-gradient(rgba(32, 136, 216, .22) 1.2px, transparent 1.3px) 0 0 / 14px 14px,
      linear-gradient(180deg, rgba(11, 51, 80, .5) 0%, rgba(11, 51, 80, .88) 45%, rgba(11, 51, 80, .94) 100%);
  }
  .hero--slides .hero-services li:nth-child(n+3) { border-top-color: rgba(255, 255, 255, .2); }
}
@media (max-width: 520px) {
  .hero--slides .hero-services li + li { border-top-color: rgba(255, 255, 255, .2); }
}


/* ==========================================================
   Animations
   Everything below is switched off for visitors who have
   "reduce motion" turned on in their device settings.
   ========================================================== */
@property --ring {
  syntax: "<angle>";
  inherits: false;
  initial-value: 290deg;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes word-up {
  from { transform: translateY(105%); }
  to   { transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes ping {
  0%   { opacity: .55; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.35, 1.8); }
}

/* Headline words (split by main.js) */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.word > span { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {

  /* ---- Hero load sequence ---- */
  .js [data-split]:not(.is-split) { opacity: 0; }
  .hero h1 .word > span,
  .page-head h1 .word > span {
    animation: word-up .9s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 70ms + 150ms);
  }
  .hero-grid .lead      { animation: rise .9s var(--ease) .75s both; }
  .hero-grid .hero-actions { animation: rise .9s var(--ease) .9s both; }
  .hero-services li     { animation: rise .8s var(--ease) both; }
  .hero-services li:nth-child(1) { animation-delay: 1.05s; }
  .hero-services li:nth-child(2) { animation-delay: 1.15s; }
  .hero-services li:nth-child(3) { animation-delay: 1.25s; }
  .hero-services li:nth-child(4) { animation-delay: 1.35s; }
  .globe-float { transform-box: fill-box; animation: float 6s ease-in-out 2.4s infinite; }

  /* ---- Scroll reveals ---- */
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .js .reveal.reveal--left  { transform: translateX(-36px); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal.reveal--wipe { opacity: 1; transform: none; }
  .js .reveal--wipe .map,
  .js .reveal--wipe img {
    clip-path: inset(0 0 0 100% round var(--radius));
    transition: clip-path 1.2s var(--ease), transform 1.4s var(--ease);
  }
  .js .reveal--wipe.is-in .map,
  .js .reveal--wipe.is-in img { clip-path: inset(0 0 0 0 round var(--radius)); }

  /* Stagger: the group stays put, its children arrive one by one */
  .js .reveal.reveal--stagger { opacity: 1; transform: none; }
  .js .reveal--stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease), padding .3s var(--ease), background-color .3s;
    transition-delay: calc(var(--i, 0) * 120ms + 80ms);
  }
  .js .reveal--stagger.is-done > * { transition-delay: 0ms; }
  .js .reveal--stagger.reveal--from-right > * { transform: translateX(40px); }
  .js .reveal--stagger.is-in > * { opacity: 1; transform: none; }

  /* About: accent bars grow down */
  .js .growth-pair div { position: relative; border-left-color: transparent; }
  .js .growth-pair div::before {
    content: ""; position: absolute; left: -3px; top: 0; bottom: 0; width: 3px;
    background: var(--azure); transform: scaleY(0); transform-origin: top;
    transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 350ms);
  }
  .js .growth-pair div:last-child::before { background: var(--iris); }
  .js .growth-pair.is-in div::before { transform: scaleY(1); }

  /* Services: icon ring draws like the logo's "C" */
  .service-item .icon { position: relative; border-color: var(--line); transition: background .3s, color .3s, transform .3s var(--ease); }
  .service-item .icon::before {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    background: conic-gradient(from 60deg, var(--azure) var(--ring), transparent 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    transition: --ring 1.1s var(--ease);
    transition-delay: calc(var(--i, 0) * 120ms + 300ms);
  }
  .js .service-grid:not(.is-in) .icon::before { --ring: 0deg; }
  .service-item:hover .icon { background: var(--azure); color: var(--white); transform: rotate(-8deg) scale(1.05); }
  .service-item:hover .icon::before { --ring: 360deg; transition-delay: 0ms; transition-duration: .5s; }

  /* Location: map wipes in from the right */
  .js .reveal--wipe .map, .js .reveal--wipe img { transform: scale(1.08); }
  .js .reveal--wipe.is-in .map, .js .reveal--wipe.is-in img { transform: none; }

  /* Join band: one soft pulse on the button when it appears */
  .reveal--pulse .btn { position: relative; }
  .reveal--pulse .btn::after {
    content: ""; position: absolute; inset: -2px; border-radius: inherit;
    border: 2px solid var(--azure); opacity: 0; pointer-events: none;
  }
  .reveal--pulse.is-in .btn::after { animation: ping 1.4s ease-out 1s 2; }

  /* ---- Hover details ---- */
  .btn { transition: background .2s, border-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0, 48, 152, .6); }
  .btn:active { transform: none; box-shadow: none; }

  .more {
    border-bottom: 0; padding-bottom: 4px;
    background:
      linear-gradient(var(--royal), var(--royal)) 0 100% / 0 2px no-repeat,
      linear-gradient(var(--azure), var(--azure)) 0 100% / 100% 2px no-repeat;
    transition: background-size .35s var(--ease), color .2s;
  }
  .more:hover { background-size: 100% 2px, 100% 2px; }

  .hero-services a { position: relative; }
  .hero-services a::after {
    content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: 0; height: 2px;
    background: var(--azure); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
  }
  .hero-services li:first-child a::after { left: 0; }
  .hero-services a:hover::after, .hero-services a:focus-visible::after { transform: scaleX(1); }
  .hero-services i { transition: transform .3s var(--ease); }
  .hero-services a:hover i { transform: translateY(-3px) scale(1.15); }

  .role-list li:hover { padding-left: .75rem; padding-right: .75rem; background: rgba(255, 255, 255, .05); }

  .contact-list li i { transition: transform .3s var(--ease); }
  .contact-list li:hover i { transform: scale(1.2); }
}

@media (max-width: 960px) {
  .hero-services a::after { left: 0; right: 0; }
}

/* Parallax headroom so no gap shows above the slides */
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  .hero-slides { top: -20%; will-change: transform; }
}


/* ==========================================================
   About page: photos and layout
   ========================================================== */

/* Page header with photo */
.page-head--photo { isolation: isolate; padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(4rem, 8vw, 6.5rem); }
.page-head-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(rgba(32, 136, 216, .22) 1.2px, transparent 1.3px) 0 0 / 14px 14px,
    linear-gradient(90deg, rgba(11, 51, 80, .94) 0%, rgba(11, 51, 80, .8) 50%, rgba(11, 51, 80, .55) 100%);
}

/* Photo frames */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* Who we are: overlapping photos */
.split--media { align-items: center; }
.photo-stack { position: relative; isolation: isolate; padding: 0 0 12% 0; }
.photo--main { width: 80%; margin-left: auto; aspect-ratio: 4 / 5; }
.photo-small-wrap { position: absolute; left: 0; bottom: 0; width: 46%; z-index: 2; }
.photo--small { aspect-ratio: 1 / 1; border: 8px solid var(--white); box-shadow: 0 24px 40px -24px rgba(11, 51, 80, .55); }
.photo-ring { position: absolute; top: -9%; right: -7%; width: 38%; z-index: -1; opacity: .7; }
.photo-ring-arc { stroke-dasharray: 75 100; }
@media (max-width: 820px) {
  .photo-stack { max-width: 520px; }
  .photo-ring { right: 0; top: -6%; }
}

/* Statement over a photo */
.statement-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: var(--ink);
}
.statement-bg { position: absolute; inset: -25% 0; z-index: -2; }
.statement-bg img { width: 100%; height: 100%; object-fit: cover; }
.statement-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(rgba(32, 136, 216, .22) 1.2px, transparent 1.3px) 0 0 / 14px 14px,
    rgba(11, 51, 80, .82);
}
.statement-band .statement {
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.18;
  max-width: 26ch;
}

/* Values beside a photo */
.values-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.values-layout > * { min-width: 0; }
.values-layout .section-head { margin-bottom: 1.5rem; }
.photo--tall { aspect-ratio: 4 / 5; }
.values--icons div { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
.values--icons .value-icon {
  grid-row: span 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mist); color: var(--azure);
}
.values--icons p { grid-column: 2; }
@media (max-width: 900px) {
  .values-layout { grid-template-columns: 1fr; }
  .photo--tall { aspect-ratio: 16 / 10; }
}

/* ==========================================================
   About page: animations
   ========================================================== */
@keyframes settle {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}
@keyframes ring-in {
  from { opacity: 0; transform: translateY(-50%) rotate(-150deg); }
  to   { opacity: 1; transform: translateY(-50%) rotate(-30deg); }
}
@keyframes draw-arc {
  from { stroke-dasharray: 0 100; }
  to   { stroke-dasharray: 75 100; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Page header */
  .page-head-bg img { animation: settle 10s cubic-bezier(.2, .6, .3, 1) both; }
  .page-head p { animation: rise .9s var(--ease) .45s both; }
  .page-head::after { animation: ring-in 1.6s var(--ease) .2s both; }

  /* Ring behind the photos draws when the photos come in */
  .js .ring-host:not(:has(.is-in)) .photo-ring-arc { stroke-dasharray: 0 100; }
  .ring-host:has(.is-in) .photo-ring-arc { animation: draw-arc 1.6s var(--ease) .3s both; }

  /* Photos zoom gently on hover */
  .photo img { transition: clip-path 1.2s var(--ease), transform 1.4s var(--ease); }
  .photo:hover img { transform: scale(1.04); }

  /* Statement rises a little further */
  .js .statement-band .statement.reveal { transform: translateY(40px); transition-duration: 1.1s; }
  .js .statement-band .statement.reveal.is-in { transform: none; }

  /* Steps: number rises, line draws across */
  .js .steps.reveal--stagger > li {
    border-top: 0;
    padding-top: calc(1.25rem + 3px);
    background: linear-gradient(var(--azure), var(--azure)) 0 0 / 0 3px no-repeat;
    transition: opacity .7s var(--ease), transform .7s var(--ease), background-size 1s var(--ease);
    transition-delay: calc(var(--i, 0) * 150ms + 80ms);
  }
  .js .steps.reveal--stagger.is-in > li { background-size: 100% 3px; }
  .js .steps.reveal--stagger > li::before {
    display: block; opacity: 0; transform: translateY(14px) scale(.8);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    transition-delay: calc(var(--i, 0) * 150ms + 380ms);
  }
  .js .steps.reveal--stagger.is-in > li::before { opacity: 1; transform: none; }

  /* Value icons */
  .values--icons .value-icon { transition: background .3s, color .3s, transform .4s var(--ease); }
  .values--icons div:hover .value-icon { background: var(--azure); color: var(--white); transform: rotate(-10deg) scale(1.08); }

}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal--wipe.is-in:hover img { transform: scale(1.04); }
}


/* ==========================================================
   About page: CEO and team
   ========================================================== */
.ring-host { position: relative; isolation: isolate; }

/* Photo placeholder: initials show until a real photo loads */
.avatar-frame {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  display: grid; place-items: center;
  background-color: var(--navy);
  background-image: radial-gradient(rgba(32, 136, 216, .35) 1.2px, transparent 1.3px);
  background-size: 12px 12px;
}
.avatar-frame .initials { font: 600 clamp(2.5rem, 5vw, 4rem)/1 var(--display); color: var(--white); }
.avatar-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* CEO */
.ceo-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.ceo-grid > * { min-width: 0; }
.ceo-photo { max-width: 460px; }
.ceo-photo .photo { aspect-ratio: 4 / 5; }
.photo-ring--ceo { top: auto; right: auto; left: -12%; bottom: -10%; width: 48%; }
.ceo-quote { position: relative; margin: 0 0 2rem; padding-top: 3.5rem; }
.ceo-quote::before {
  content: "\201C";
  position: absolute; top: -.5rem; left: -.25rem;
  font: 600 7rem/1 var(--display); color: var(--azure);
}
.ceo-quote p {
  font: 500 clamp(1.45rem, 2.4vw, 1.9rem)/1.35 var(--display);
  color: var(--ink); max-width: 34ch;
}
.ceo-name { border-left: 3px solid var(--azure); padding-left: 1rem; margin: 0; }
.ceo-name strong { display: block; font-size: 1.15rem; }
.ceo-name span { color: var(--muted); }
@media (max-width: 860px) {
  .ceo-grid { grid-template-columns: 1fr; }
  .ceo-photo { max-width: 360px; }
  .photo-ring--ceo { left: -4%; }
}

/* Team */
.team-section .section-head .btn { align-self: end; }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem, 2.2vw, 1.75rem); }
.member-photo { aspect-ratio: 4 / 5; margin-bottom: 1rem; }
.member h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); margin-bottom: .2rem; display: inline-block; position: relative; }
.member-role { color: #9fd0ff; font-weight: 600; font-size: .95rem; margin: 0; }
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: no-preference) {
  /* CEO quote mark grows in */
  .js .ceo-quote.reveal::before { transform: scale(.4); opacity: 0; transform-origin: bottom left; transition: transform .9s var(--ease) .35s, opacity .6s .35s; }
  .js .ceo-quote.reveal.is-in::before { transform: none; opacity: 1; }

  /* Name bar grows down */
  .js .ceo-name.reveal { border-left-color: transparent; background: linear-gradient(var(--azure), var(--azure)) 0 0 / 3px 0 no-repeat; transition: opacity .8s var(--ease), transform .8s var(--ease), background-size .8s var(--ease) .5s; }
  .js .ceo-name.reveal.is-in { background-size: 3px 100%; }

  /* Team cards */
  .member-photo img { transition: transform .6s var(--ease), filter .6s; }
  .member-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 48, 152, .55), transparent 55%);
    opacity: 0; transition: opacity .4s;
  }
  .member:hover .member-photo img { transform: scale(1.06); }
  .member:hover .member-photo::after { opacity: 1; }
  .member h3::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--azure); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
  }
  .member:hover h3::after { transform: scaleX(1); }
}
.team-section .avatar-frame { background-color: #14588a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }


/* ==========================================================
   Services page: photos, sticky section links, animations
   ========================================================== */

/* Sticky section links under the header */
.jump { position: sticky; top: 84px; z-index: 90; background: var(--white); }
.jump ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.jump ul::-webkit-scrollbar { display: none; }
.jump li { flex: none; }
.jump a { position: relative; white-space: nowrap; transition: color .25s; }
.jump a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--azure); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.jump a.is-active { color: var(--royal); }
.jump a.is-active::after { transform: scaleX(1); }

/* Service rows with photos */
.service-detail--media { grid-template-columns: 1fr 1fr; align-items: start; scroll-margin-top: 170px; }
.service-detail--flip .service-media { order: 2; }
.service-media { position: sticky; top: 180px; }
.service-content > div { margin-top: .25rem; }
.service-detail--media h2 { max-width: 14ch; }

/* Mirror the photo stack on flipped rows */
.photo-stack--flip .photo--main { margin-left: 0; margin-right: auto; }
.photo-stack--flip .photo-small-wrap { left: auto; right: 0; }
.photo-stack--flip .photo-ring { right: auto; left: -7%; }

/* Closing call to action */
.cta-band .statement { margin-bottom: .75rem; }
.cta-band p { color: #d3e1ee; font-size: 1.2rem; margin-bottom: 2rem; }

@media (max-width: 820px) {
  .service-detail--media { grid-template-columns: 1fr; scroll-margin-top: 150px; }
  .service-media { position: static; }
  .service-detail--flip .service-media { order: 0; }
  .photo-stack--flip .photo-ring { left: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Quicker stagger for long text blocks */
  .js .reveal--stagger.reveal--quick > * { transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
  .js .reveal--stagger.reveal--quick.is-done > * { transition-delay: 0ms; }

  /* Service icon: ring draws like the logo's "C" */
  .service-content .icon { position: relative; transition: background .3s, color .3s, transform .3s var(--ease); }
  .service-content .icon::before {
    content: ""; position: absolute; inset: -5px; border-radius: 50%;
    background: conic-gradient(from 60deg, var(--azure) var(--ring), transparent 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    transition: --ring 1.2s var(--ease) .3s;
  }
  .js .service-content:not(.is-in) .icon::before { --ring: 0deg; }
  .service-detail:hover .service-content .icon { background: var(--azure); color: var(--white); transform: rotate(-8deg); }
  .service-detail:hover .service-content .icon::before { --ring: 360deg; transition-delay: 0ms; transition-duration: .5s; }

  /* Ticks pop in one by one after the list appears */
  .js .service-content .ticks li::before { display: inline-block; transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
  .js .service-content.is-in .ticks li::before { transform: scale(1); }
  .js .service-content.is-in .ticks li:nth-child(1)::before { transition-delay: .75s; }
  .js .service-content.is-in .ticks li:nth-child(2)::before { transition-delay: .87s; }
  .js .service-content.is-in .ticks li:nth-child(3)::before { transition-delay: .99s; }
  .js .service-content.is-in .ticks li:nth-child(4)::before { transition-delay: 1.11s; }
  .js .service-content.is-in .ticks li:nth-child(5)::before { transition-delay: 1.23s; }

  /* Row divider draws across */
  .service-detail--media + .service-detail--media { border-top-color: transparent; position: relative; }
  .service-detail--media + .service-detail--media::before {
    content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
    background: var(--line); transform: scaleX(0); transform-origin: left;
    transition: transform 1.2s var(--ease);
  }
  .service-detail--media.is-near + .service-detail--media::before,
  .service-detail--media + .service-detail--media.is-near::before { transform: scaleX(1); }
}


/* ==========================================================
   Gallery page: photo grid and viewer
   ========================================================== */
.gallery-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(160px, 17vw, 240px);
  grid-auto-flow: dense;
  gap: clamp(.6rem, 1.4vw, 1rem);
}
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile--big  { grid-column: span 2; grid-row: span 2; }

.tile a {
  position: relative; display: block; width: 100%; height: 100%;
  overflow: hidden; border-radius: var(--radius);
  background: var(--mist);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 51, 80, .6), rgba(0, 48, 152, .1) 60%);
  opacity: 0;
}
.tile-zoom {
  position: absolute; z-index: 1; right: .9rem; bottom: .9rem;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--royal);
  opacity: 0;
}
.tile a:hover::after, .tile a:focus-visible::after { opacity: 1; }
.tile a:hover .tile-zoom, .tile a:focus-visible .tile-zoom { opacity: 1; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(140px, 26vw, 220px); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .tile--big { grid-row: span 1; }
  .tile-zoom { opacity: 1; width: 36px; height: 36px; right: .5rem; bottom: .5rem; }
}

/* Viewer */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 1rem; padding: clamp(1rem, 3vw, 2.5rem);
  background-color: rgba(8, 30, 48, .96);
  background-image: radial-gradient(rgba(32, 136, 216, .18) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  opacity: 0;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-stage { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-width: 0; }
.lb-img {
  max-width: 100%; max-height: calc(100vh - 8rem); max-height: calc(100svh - 8rem);
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}
.lb-count { color: #c9d8e6; font-weight: 600; font-size: .95rem; }
.lb-btn {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08);
  color: var(--white); cursor: pointer;
}
.lb-btn:hover { background: var(--azure); border-color: var(--azure); }
.lb-close { position: absolute; top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem); z-index: 2; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 4.5rem .75rem 1.25rem; }
  .lb-stage { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-row: 2; justify-self: end; }
  .lb-next { grid-row: 2; justify-self: start; }
  .lb-img { max-height: calc(100svh - 12rem); }
}
body.lb-lock { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  /* Tiles scale up into place */
  .js .reveal.reveal--scale { transform: translateY(24px) scale(.94); }
  .js .reveal.reveal--scale.is-in { transform: none; }

  .tile img { transition: transform .8s var(--ease); }
  .tile a::after { transition: opacity .35s; }
  .tile-zoom { transform: scale(.6) rotate(-45deg); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.5, .5, 1); }
  .tile a:hover img { transform: scale(1.08); }
  .tile a:hover .tile-zoom, .tile a:focus-visible .tile-zoom { transform: none; }

  /* Viewer opens, and photos slide between each other */
  .lightbox { transition: opacity .35s ease; }
  .lb-img { transition: opacity .3s ease, transform .45s var(--ease); }
  .lightbox:not(.is-open) .lb-img { transform: scale(.94); }
  .lb-img.is-leaving-next { opacity: 0; transform: translateX(-40px); }
  .lb-img.is-leaving-prev { opacity: 0; transform: translateX(40px); }
  .lb-img.is-entering-next { opacity: 0; transform: translateX(40px); transition: none; }
  .lb-img.is-entering-prev { opacity: 0; transform: translateX(-40px); transition: none; }
  .lb-btn { transition: background .25s, border-color .25s, transform .25s var(--ease); }
  .lb-prev:hover { transform: translateX(-3px); }
  .lb-next:hover { transform: translateX(3px); }
  .lb-close:hover { transform: rotate(90deg); }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .tile-zoom { transform: none; }
}

/* ==========================================================
   Contact page: map pin pulse and contact details
   ========================================================== */
.map-wrap { position: relative; min-height: 360px; }
.map-wrap .map { display: block; }
.map-ping {
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* Contact icons pop in after each row arrives */
  .js .contact-list.reveal--stagger li i { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * 120ms + 400ms); }
  .js .contact-list.reveal--stagger.is-in li i { transform: none; }
  .js .contact-list.reveal--stagger.is-done li i { transition-delay: 0ms; }

  /* Row lines draw across */
  .js .contact-list.reveal--stagger li { border-bottom-color: transparent; background: linear-gradient(var(--line), var(--line)) 0 100% / 0 1px no-repeat; }
  .js .contact-list.reveal--stagger li:first-child { border-top-color: transparent; background: linear-gradient(var(--line), var(--line)) 0 0 / 0 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 0 1px no-repeat; }
  .js .contact-list.reveal--stagger > li { transition: opacity .7s var(--ease), transform .7s var(--ease), background-size 1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 80ms); }
  .js .contact-list.reveal--stagger.is-in li { background-size: 100% 1px; }
  .js .contact-list.reveal--stagger.is-in li:first-child { background-size: 100% 1px, 100% 1px; }

  /* Directions button arrow nudges on hover */
  .btn--directions i { transition: transform .3s var(--ease); }
  .btn--directions:hover i { transform: translateX(3px) rotate(8deg); }

  /* Pulse over the map marker once the map has wiped in */
  .map-ping::before, .map-ping::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid var(--azure); opacity: 0;
  }
  .map-wrap.is-in .map-ping::before { animation: map-ping 1.8s ease-out 1.3s 3; }
  .map-wrap.is-in .map-ping::after  { animation: map-ping 1.8s ease-out 1.9s 3; }
}
@keyframes map-ping {
  0%   { opacity: .9; transform: scale(.6); }
  100% { opacity: 0;  transform: scale(4); }
}


/* ==========================================================
   Footer: Facebook feed
   ========================================================== */
/* Four columns only when the footer includes the feed */
.footer-grid:has(.footer-facebook) { grid-template-columns: 1fr auto 1.3fr minmax(260px, 320px); gap: clamp(1.75rem, 3vw, 2.5rem); }
.fb-feed {
  position: relative; width: 100%; max-width: 500px; height: 200px;
  border-radius: var(--radius); overflow: hidden;
  background-color: rgba(255, 255, 255, .06);
  background-image: radial-gradient(rgba(32, 136, 216, .3) 1.2px, transparent 1.3px);
  background-size: 12px 12px;
}
.fb-feed::before {
  content: "Loading Facebook posts…";
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #9fb8cc; font-size: .92rem;
}
.fb-feed iframe { position: relative; display: block; width: 100%; opacity: 0; transition: opacity .6s ease; }
.fb-feed.is-loaded iframe { opacity: 1; }
.fb-feed.is-loaded::before { content: none; }
.fb-feed.is-blocked::before { content: "Posts couldn't load here. Use the link below to see our Facebook page."; padding: 1.5rem; text-align: center; }
.fb-feed.is-blocked::before { font-size: .88rem; }
.fb-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; font-weight: 600; }
.site-footer .fb-link i { color: #6fb6f2; font-size: 1.1rem; }

@media (max-width: 1100px) {
  .footer-grid:has(.footer-facebook) { grid-template-columns: 1fr 1fr; }
  .footer-grid:has(.footer-facebook) > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .footer-facebook { grid-column: 1 / -1; max-width: 500px; }
}
@media (max-width: 540px) {
  .footer-grid:has(.footer-facebook) { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .fb-feed:not(.is-loaded):not(.is-blocked)::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%) 0 0 / 200% 100%;
    animation: fb-shimmer 1.6s linear infinite;
  }
  .site-footer .fb-link i { transition: transform .3s var(--ease); }
  .site-footer .fb-link:hover i { transform: scale(1.2) rotate(-8deg); }
}
@keyframes fb-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }


/* ==========================================================
   Footer: social media icons
   ========================================================== */
.social-links { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; gap: .75rem; }
.social-links li { margin: 0; }
.site-footer .social-links a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: var(--white); font-size: 1.1rem; text-decoration: none;
}
.site-footer .social-links a:hover,
.site-footer .social-links a:focus-visible { color: var(--white); text-decoration: none; border-color: transparent; }
.site-footer .social-links .social--facebook:hover,
.site-footer .social-links .social--facebook:focus-visible { background: #1877f2; }
.site-footer .social-links .social--instagram:hover,
.site-footer .social-links .social--instagram:focus-visible { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.site-footer .social-links .social--tiktok:hover,
.site-footer .social-links .social--tiktok:focus-visible { background: #000000; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }

@media (prefers-reduced-motion: no-preference) {
  .site-footer .social-links a { transition: background .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease); }
  .site-footer .social-links a:hover { transform: translateY(-3px); }
  .site-footer .social-links a i { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
  .site-footer .social-links a:hover i { transform: scale(1.15); }

  /* Icons pop in one after another when the footer comes into view */
  .js .social-links.reveal--stagger > li { transform: scale(.4); }
  .js .social-links.reveal--stagger.is-in > li { transform: none; transition-timing-function: cubic-bezier(.3, 1.6, .5, 1); }
}

/* Stop slide-in animations from causing sideways scrolling on phones */
html, body { overflow-x: clip; }

/* ==========================================================
   Home page: section photos
   ========================================================== */
.about-teaser .about-copy { display: grid; align-content: start; gap: 2.25rem; }
.about-teaser .photo-stack { align-self: center; }

/* Team thumbnails linking to the gallery */
.team-thumbs {
  grid-column: 1 / -1; list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.4vw, 1rem);
}
.team-thumbs a {
  display: block; overflow: hidden; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
}
.team-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 820px) {
  .about-teaser .photo-stack { max-width: 480px; }
}

@media (prefers-reduced-motion: no-preference) {
  .team-thumbs img { transition: transform .7s var(--ease); }
  .team-thumbs a:hover img { transform: scale(1.06); }
  .team-thumbs a { transition: box-shadow .3s; }
  .team-thumbs a:hover { box-shadow: 0 0 0 2px var(--azure); }
}