/* ==========================================================================
   Foundation Years: site styles (layered on Bootstrap 5.3)
   1. Fonts   2. Tokens & base   3. Shared pieces   4. Navigation
   5. Hero    6. Contact + footer backdrop   7. Contact form   8. Footer
   9. Home page   10. About page   11. Projects   12. Contact page   13. Motion
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face { font-family: "Geom"; src: url("../fonts/geom-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geom"; src: url("../fonts/geom-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geom"; src: url("../fonts/geom-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Metro"; src: url("../fonts/metro-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Metro"; src: url("../fonts/metro-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* 2. Tokens & base -------------------------------------------------------- */
:root {
  --fy-ink: #16191d;
  --fy-steel: #4a525c;
  --fy-stone: #f4f1ea;
  --fy-stone-deep: #e9e4d8;   /* stone that still shows up against white */
  --fy-red: #c41e24;
  --fy-red-dark: #9e161b;
  --fy-graphite: #3a4047;
  --fy-red-on-dark: #ff6b70;   /* red text on charcoal or graphite, readable contrast */
  --fy-line: rgba(22, 25, 29, .12);

  --font-head: "Geom", "Segoe UI", system-ui, sans-serif;
  --font-body: "Metro", "Segoe UI", system-ui, sans-serif;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--fy-steel);
  --bs-heading-color: var(--fy-ink);
  --bs-link-color-rgb: 196, 30, 36;
  --bs-link-hover-color-rgb: 158, 22, 27;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.015em; }

.skip-link { position: absolute; z-index: 1100; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--fy-ink); color: #fff; }

/* 3. Shared pieces -------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--fy-red);
}
.eyebrow::before { content: ""; width: 2.5rem; height: 2px; background: currentColor; }

.section, .contact-band { padding-block: clamp(4.5rem, 3rem + 5vw, 7rem); }
.section { overflow-x: clip; }   /* elements flying in from the side never cause sideways scroll */
.section-title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.025em; }
.lead-copy { font-size: 1.1rem; line-height: 1.7; max-width: 34rem; }

/* Faint drafting-paper grid; sections retint it through --grid-rule. */
.bg-grid {
  --grid-rule: rgba(22, 25, 29, .05);
  background-image: linear-gradient(var(--grid-rule) 1px, transparent 1px), linear-gradient(90deg, var(--grid-rule) 1px, transparent 1px);
  background-size: 3rem 3rem;
}
/* Tiles separated by 1px rules: the gap shows the grid's background through. */
.hairline-grid { display: grid; gap: 1px; }

/* Colours come from Bootstrap's button variables. */
.btn-fy, .btn-ink, .btn-sweep {
  --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .85rem;
  --bs-btn-border-radius: 0; --bs-btn-font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
}
.btn-fy {
  --bs-btn-color: #fff; --bs-btn-bg: var(--fy-red); --bs-btn-border-color: var(--fy-red);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--fy-red-dark); --bs-btn-hover-border-color: var(--fy-red-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--fy-red-dark); --bs-btn-active-border-color: var(--fy-red-dark);
  --bs-btn-focus-shadow-rgb: 196, 30, 36;
}
.btn-fy .bi { transition: transform .25s ease; }
.btn-fy:hover .bi { transform: translateX(4px); }

/* Animated buttons: the fill is a ::before layer kept behind the label. */
.btn-ink, .btn-sweep { position: relative; overflow: hidden; isolation: isolate; }
.btn-ink::before, .btn-sweep::before { content: ""; position: absolute; top: 0; left: 0; z-index: -1; height: 100%; }

/* Diagonal charcoal swipe (adapted from Uiverse.io by SujitAdroja). */
.btn-ink {
  --bs-btn-color: var(--fy-ink); --bs-btn-bg: transparent; --bs-btn-border-color: var(--fy-ink);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: transparent; --bs-btn-hover-border-color: var(--fy-ink);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--fy-ink); --bs-btn-active-border-color: var(--fy-ink);
  --bs-btn-focus-shadow-rgb: 22, 25, 29;
  transition: color 1s;
}
.btn-ink::before { left: -40px; width: 0; background: var(--fy-ink); transform: skewX(45deg); transition: width 1s; }
.btn-ink:hover::before, .btn-ink:focus-visible::before { width: 160%; }

/* Red square that grows into a full fill (adapted from Uiverse.io by alexmaracinaru). */
.btn-sweep {
  --bs-btn-color: var(--fy-ink); --bs-btn-bg: transparent; --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: transparent; --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: transparent; --bs-btn-active-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 196, 30, 36;
  transition: color .3s ease, transform .2s ease;
}
/* Starts as a square: width = the button's inner height (padding + one line of text). */
.btn-sweep::before { width: calc(2 * var(--bs-btn-padding-y) + var(--bs-btn-line-height) * .82rem); background: var(--fy-red); transition: width .3s ease; }
.btn-sweep:hover::before, .btn-sweep:focus-visible::before { width: 100%; }
.btn-sweep .bi { transform: translateX(-5px); transition: transform .3s ease; }
.btn-sweep:hover .bi { transform: none; }
.btn-sweep:active { transform: scale(.95); }

.hero::after, .footer-band::before {
  content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--fy-red) 0 22%, var(--fy-ink) 22%);
}

.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--fy-ink); text-decoration: none; }
.brand:hover { color: var(--fy-ink); }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-mark .accent { fill: var(--fy-red); }
.brand-name { display: block; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; }
.brand-sub { display: block; margin-top: .35rem; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--fy-steel); }

/* 4. Navigation ----------------------------------------------------------- */
/* Sits above Bootstrap's offcanvas backdrop (1040) so the menu panel inside it stays clickable. */
.site-nav { z-index: 1045; }

.nav-utility {
  max-height: 2.5rem; overflow: hidden;
  background: var(--fy-ink); color: rgba(255, 255, 255, .7);
  font-size: .78rem; letter-spacing: .04em;
  transition: max-height .35s ease;
}
.nav-utility .container { padding-block: .6rem; }
.nav-utility a { color: inherit; text-decoration: none; }
.nav-utility a:hover { color: #fff; }

.site-nav .navbar {
  --bs-navbar-padding-y: 1.1rem;
  --bs-navbar-color: var(--fy-ink);
  --bs-navbar-hover-color: var(--fy-red);
  --bs-navbar-active-color: var(--fy-red);
  --bs-navbar-nav-link-padding-x: .95rem;
  transition: padding .35s ease;
}
/* Frosted layer lives on a pseudo-element: backdrop-filter on the navbar itself
   would trap the fixed-position offcanvas menu inside it. */
.site-nav .navbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(244, 241, 234, .78);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--fy-line), 0 12px 30px -20px rgba(22, 25, 29, .45);
  opacity: 0; transition: opacity .35s ease;
}
.site-nav.is-scrolled .nav-utility { max-height: 0; }
.site-nav.is-scrolled .navbar { --bs-navbar-padding-y: .6rem; }
.site-nav.is-scrolled .navbar::before { opacity: 1; }

.site-nav .nav-link {
  font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: underline 2px transparent; text-underline-offset: .55em;
  transition: color .25s ease, text-decoration-color .25s ease;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { text-decoration-color: var(--fy-red); }
.site-nav .navbar-toggler { border: 0; box-shadow: none; }

.site-nav .offcanvas { --bs-offcanvas-bg: var(--fy-stone); --bs-offcanvas-width: min(20rem, 85vw); }

@media (max-width: 991.98px) {
  .site-nav .nav-link { padding-block: 1rem; border-bottom: 1px solid var(--fy-line); font-size: .9rem; }
  .site-nav .btn-fy { width: 100%; margin-top: 1.75rem; }
}

/* 5. Hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(9rem, 6rem + 8vw, 12.5rem) 0 clamp(4rem, 3rem + 3vw, 6rem);   /* top clears the fixed nav */
  background: var(--fy-stone);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("https://res.cloudinary.com/dajwj7nny/image/upload/f_auto,q_auto,w_1920/Foundation_Years2_jomapg.png") center / cover no-repeat;
  opacity: .2;
}
.hero::after { bottom: 0; }
/* Home: full height, with room at the bottom for the overlapping metrics panel. */
.hero--home { display: flex; align-items: center; min-height: min(100svh, 58rem); padding-bottom: 9rem; }
.hero--home .hero-est { bottom: 8rem; }

.hero-title { font-size: clamp(2.6rem, 1.8rem + 4vw, 5.25rem); line-height: 1.02; letter-spacing: -.03em; max-width: 15ch; margin-bottom: 1.5rem; }
.hero-content p:not(.eyebrow) { font-size: 1.15rem; line-height: 1.7; max-width: 36rem; margin-bottom: 2.25rem; }

/* Desktop home hero only: shorter inner-page heroes would push the mark into the nav. */
.hero-est { display: none; }
@media (min-width: 992px) { .hero--home .hero-est { display: block; } }
.hero-est {
  position: absolute; right: 1.75rem; bottom: 3rem;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .72rem; letter-spacing: .4em; text-transform: uppercase; color: var(--fy-steel);
}

/* 6. Contact + footer backdrop: one photo, two washes ---------------------- */
.site-end { background: var(--fy-ink) url("https://res.cloudinary.com/dajwj7nny/image/upload/f_auto,q_auto,w_1920/Foundation_Years_k17wbm.png") center 25% / cover no-repeat; }
@media (min-width: 992px) { .site-end { background-attachment: fixed; } }

.contact-band { background: rgba(244, 241, 234, .86); scroll-margin-top: 4rem; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--fy-line); background: rgba(255, 255, 255, .65);
  color: var(--fy-ink); font-size: .85rem; text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--fy-red); color: var(--fy-red); }

/* 7. Contact form --------------------------------------------------------- */
.form-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: #fff;
  box-shadow: 0 40px 70px -40px rgba(22, 25, 29, .55);
}
.form-card-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 1.75rem; }
.form-card .form-control { border-radius: 0; border-color: rgba(22, 25, 29, .18); color: var(--fy-ink); }
.form-card .form-control:focus { border-color: var(--fy-ink); box-shadow: 0 0 0 3px rgba(196, 30, 36, .15); }
.form-card textarea.form-control { height: 9rem; }
.form-card .is-invalid .form-control { border-color: var(--bs-form-invalid-border-color); }
.form-card .req { color: var(--fy-red); }
.form-note { font-size: .85rem; }

/* 8. Footer --------------------------------------------------------------- */
.footer-band {
  position: relative; overflow: hidden;
  padding-top: 5.5rem;
  background: rgba(22, 25, 29, .93); color: rgba(255, 255, 255, .68);
}
.footer-band::before { top: 0; }
.footer-band a { color: inherit; text-decoration: none; transition: color .2s ease; }
.footer-band a:hover, .footer-band .brand { color: #fff; }
.footer-band .brand-sub { color: rgba(255, 255, 255, .55); }

.footer-blurb { margin-top: 1.5rem; max-width: 22rem; line-height: 1.7; }
.footer-title { margin-bottom: 1.25rem; font-family: var(--font-body); font-size: .76rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.footer-list li + li { margin-top: .75rem; }
.footer-contact li { display: flex; gap: .75rem; }
.footer-contact .bi { color: var(--fy-red); }

.footer-bottom { margin-top: 4.5rem; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }

.footer-wordmark {
  margin: 0 0 -.22em; text-align: center; white-space: nowrap;
  font-family: var(--font-head); font-size: 8.8vw; font-weight: 700; line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
  user-select: none;
}

/* 9. Home page ------------------------------------------------------------ */
.stats { position: relative; z-index: 1; margin-top: -5.5rem; }
.stats-panel {
  grid-template-columns: repeat(2, 1fr);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 40px 70px -35px rgba(22, 25, 29, .6);
}
@media (min-width: 992px) { .stats-panel { grid-template-columns: repeat(4, 1fr); } }
.stat {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(1.75rem, 3vw, 2.75rem) 1rem;
  background: var(--fy-graphite); text-align: center; color: rgba(255, 255, 255, .7);
  transition: color .3s ease;
}
.stat::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: 0; background: var(--fy-red);
  transition: height .45s cubic-bezier(.2, .7, .2, 1);
}
.stat:hover { color: #fff; }
.stat:hover::before { height: 100%; }
.stat-icon { display: block; margin-bottom: 1rem; font-size: 1.75rem; color: var(--fy-red-on-dark); transition: color .3s ease, transform .3s ease; }
.stat:hover .stat-icon { transform: translateY(-4px); }
.stat:hover .stat-icon, .stat:hover .stat-plus, .stat:hover .stat-unit { color: #fff; }
.stat-value {
  margin-bottom: .6rem;
  font-family: var(--font-head); font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); font-weight: 700; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
}
.stat-plus, .stat-unit { font-size: .45em; color: var(--fy-red-on-dark); transition: color .3s ease; }
.stat-plus { vertical-align: .9em; margin-right: .1em; }
.stat-unit { margin-left: .15em; }
.stat-label { margin: 0; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }

/* Two identical tracks slide left in turn, so the loop has no visible seam. */
.partners { background: #fff; }
.marquee {
  --gap: clamp(3rem, 6vw, 6rem);
  display: flex; gap: var(--gap); overflow: hidden; margin-top: 3.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track {
  flex-shrink: 0; min-width: 100%; margin: 0;
  display: flex; align-items: center; justify-content: space-around; gap: var(--gap);
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { width: auto; height: clamp(3.5rem, 2.5rem + 3vw, 5rem); transition: transform .3s ease; }
.marquee img:hover { transform: scale(1.06); }

.services { background-color: var(--fy-stone); }
.chip-label { margin: 2rem 0 .85rem; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fy-ink); }
.svc-grid { background: var(--fy-line); border: 1px solid var(--fy-line); }
@media (min-width: 576px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
.svc { position: relative; padding: 2rem 1.75rem; background: rgba(255, 255, 255, .78); transition: background-color .3s ease; }
.svc:hover { background: #fff; }
.svc-num { position: absolute; top: 1.6rem; right: 1.75rem; font-size: .74rem; letter-spacing: .2em; color: var(--fy-steel); }
.svc-icon { width: 3.5rem; height: 3.5rem; margin-bottom: 1.5rem; color: var(--fy-ink); transition: transform .3s ease; }
.svc-icon .accent { stroke: var(--fy-red); }
.svc:hover .svc-icon { transform: translateY(-4px); }
.svc-title { font-size: 1.15rem; line-height: 1.3; margin-bottom: .6rem; }
.svc p { margin: 0; font-size: .95rem; line-height: 1.6; }

.map-band { --grid-rule: rgba(255, 255, 255, .04); background-color: var(--fy-ink); color: rgba(255, 255, 255, .7); }
.map-band .section-title { color: #fff; }
.map-band .eyebrow { color: var(--fy-red-on-dark); }
.map-shell { padding: .75rem; border: 1px solid rgba(255, 255, 255, .15); }
.map-frame { --bs-aspect-ratio: 50%; background: #1f2328; }
@media (max-width: 767.98px) { .map-frame { --bs-aspect-ratio: 125%; } }

/* 10. About page ---------------------------------------------------------- */
.about-facts { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--fy-line); }
.about-facts .stat-label { color: var(--fy-steel); }
.fact-value { margin-bottom: .5rem; font-family: var(--font-head); font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3rem); font-weight: 700; line-height: 1; color: var(--fy-ink); font-variant-numeric: tabular-nums; }
.fact-plus { color: var(--fy-red); }

.mv-card { padding: clamp(1.75rem, 3vw, 2.5rem); color: rgba(255, 255, 255, .88); }
.mv-card--red { background: var(--fy-red); }
.mv-card--graphite { background: var(--fy-graphite); }
.mv-card h3 { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; font-size: 1.6rem; color: #fff; }
.mv-card p { margin: 0; font-size: 1.05rem; line-height: 1.7; }

.registration { background-color: var(--fy-stone); }
.certificate { display: block; max-width: 28rem; margin-inline: auto; cursor: zoom-in; }
.certificate img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 40px 70px -40px rgba(22, 25, 29, .55); transition: transform .4s ease; }
.certificate:is(:hover, :focus-visible) img { transform: translateY(-6px); }

/* 11. Projects ------------------------------------------------------------ */
.chip.is-active { border-color: var(--fy-ink); background: var(--fy-ink); color: #fff; }
.catalogue-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 3rem; }
.catalogue-count { margin: 0; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }

.project-grid { display: grid; gap: 2.5rem 2rem; margin: 0; }
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card { position: relative; height: 100%; padding: 1rem 0 0 1rem; }
.project-card::before, .project-figure::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 45%; aspect-ratio: 1; background: var(--fy-stone-deep);
}
.project-card-box, .project-figure-frame { position: relative; background: #fff; box-shadow: 0 4px 8px rgba(22, 25, 29, .3); }
.project-card-box { display: flex; flex-direction: column; height: 100%; }
.project-card-box::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--fy-red); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.project-card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--fy-stone); }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card-tag {
  position: absolute; top: 1rem; left: 1rem; padding: .35rem .7rem;
  background: var(--fy-ink); color: #fff; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
}
.project-card-body { flex: 1; padding: 1.5rem 1.75rem 2rem; }
.project-card-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-bottom: .75rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.project-card-meta .bi, .project-facts .bi { color: var(--fy-red); }
.project-card-title { margin-bottom: .75rem; font-size: 1.3rem; line-height: 1.3; transition: color .3s ease; }
.project-card-title a { color: inherit; text-decoration: none; }
.project-card-title a:focus-visible { outline: none; }   /* the whole card takes the ring below */
.project-card-summary { margin: 0; font-size: .95rem; line-height: 1.7; }

.project-card:is(:hover, :focus-within) .project-card-media img { transform: scale(1.05); }
.project-card:is(:hover, :focus-within) .project-card-title { color: var(--fy-red); }
.project-card:is(:hover, :focus-within) .project-card-box::after { transform: scaleX(1); }
.project-card:has(:focus-visible) .project-card-box { outline: 2px solid var(--fy-red); outline-offset: 4px; }

.catalogue-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; margin-top: 4rem; font-size: .85rem; }
.catalogue-empty { padding: clamp(3rem, 6vw, 5rem) 1.5rem; background: var(--fy-stone); text-align: center; }
.catalogue-empty .bi { font-size: 2.5rem; color: var(--fy-red); }
.catalogue-empty p { max-width: 30rem; margin: 1rem auto 2rem; font-size: 1.1rem; }

/* Smaller hero title so long project names fit. */
.hero--project .hero-title { max-width: 24ch; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.75rem); }
.project-facts { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fy-ink); }
.project-facts .bi { margin-right: .35rem; }
.project-figure { position: relative; margin: 0; padding: 1.25rem 0 0 1.25rem; }
.project-figure-frame img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1rem 0 0 1.25rem; }
.project-gallery a { display: block; overflow: hidden; box-shadow: 0 4px 8px rgba(22, 25, 29, .3); }
.project-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.project-gallery a:is(:hover, :focus-visible) img { transform: scale(1.05); }
.project-description p:last-child { margin-bottom: 0; }
.project-back {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fy-ink); text-decoration: none;
}
.project-back:hover { color: var(--fy-red); }

/* 12. Contact page -------------------------------------------------------- */
.hero--contact::before { background-image: url("https://res.cloudinary.com/dajwj7nny/image/upload/f_auto,q_auto,w_1600/v1793020930/contact-hero_oqam9t.jpg"); background-position: 70% 40%; }
@media (min-width: 992px) {
  .hero--contact::before {
    left: 38%; opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
    mask-image: linear-gradient(90deg, transparent, #000 45%);
  }
}

.contact-info { position: relative; background: var(--fy-stone); }
.contact-info .section-title { text-transform: uppercase; }
.contact-info-panel { position: relative; z-index: 1; }   /* cards stay above the map where they meet */
/* Highlighter stroke behind the lower half of a heading, repeated on each line if it wraps. */
.marker {
  background: linear-gradient(90deg, var(--fy-red), rgba(196, 30, 36, .1)) no-repeat 0 88% / 100% .3em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.info-list { display: grid; gap: 1.5rem; margin: 2.5rem 0 0; }
.info-card { display: flex; align-items: center; gap: 1.5rem; padding: 1.75rem 2rem; background: #fff; box-shadow: 0 10px 30px -12px rgba(22, 25, 29, .35); }
.info-icon {
  display: grid; place-items: center; flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--fy-red); color: #fff; font-size: 1.3rem; transition: transform .3s ease;
}
.info-card:hover .info-icon { transform: scale(1.08); }
.info-label { margin: 0 0 .25rem; font-size: .85rem; }
.info-value { margin: 0; font-size: clamp(1rem, .9rem + .4vw, 1.15rem); line-height: 1.5; color: var(--fy-ink); overflow-wrap: anywhere; }
.info-value a { color: inherit; text-decoration: none; transition: color .2s ease; }
.info-value a:hover { color: var(--fy-red); }
.info-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fy-red); text-decoration: none; }
.info-link:hover { color: var(--fy-red-dark); }
@media (max-width: 575.98px) {
  .info-card { gap: 1rem; padding: 1.25rem; }
  .info-icon { width: 3rem; height: 3rem; font-size: 1.1rem; }
}

.contact-map { margin-top: 3rem; }
.contact-map-frame { position: relative; display: block; overflow: hidden; color: inherit; }
.contact-map-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 991.98px) { .contact-map-frame { box-shadow: 0 10px 30px -12px rgba(22, 25, 29, .35); } }
@media (max-width: 575.98px) {
  /* A taller crop on phones. object-position matches the pin's spot, so that point stays fixed and the pin lines up. */
  .contact-map-frame img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 60.9% 60.4%; }
}
@media (min-width: 992px) {
  .contact-map { position: absolute; top: 50%; right: 0; width: min(60%, 1282px); margin: 0; transform: translateY(-50%); }
  .contact-map-frame img {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(transparent, #000 18%, #000 82%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(transparent, #000 18%, #000 82%, transparent);
    mask-composite: intersect;
  }
}

/* Branded pin on the spot where Google placed Sparklight Plaza in the screenshot. */
.map-pin {
  position: absolute; left: 60.9%; top: 60.4%; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  transform: translate(-50%, calc(-100% - .9rem));   /* the tip of the point, not the box, marks the spot */
  pointer-events: none;
}
.map-pin-label {
  display: flex; flex-direction: column; align-items: center; padding: .45rem .8rem;
  background: var(--fy-ink); color: #fff; white-space: nowrap; box-shadow: 0 6px 14px -4px rgba(22, 25, 29, .4);
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.map-pin-label small { margin-top: .15rem; font-family: var(--font-body); font-size: .62rem; font-weight: 400; letter-spacing: .14em; color: rgba(255, 255, 255, .7); }
.map-pin-head {
  position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #fff; color: var(--fy-ink); box-shadow: inset 0 0 0 3px var(--fy-red);
  filter: drop-shadow(0 6px 8px rgba(22, 25, 29, .35));
}
.map-pin-head::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -.55rem; border: .55rem solid transparent; border-top: .9rem solid var(--fy-red); border-bottom: 0; }
.map-pin .brand-mark { width: 1.9rem; height: 1.9rem; }
.map-pin::after {
  content: ""; position: absolute; left: 50%; top: calc(100% + .9rem);
  width: 1.6rem; height: .55rem; margin: -.275rem 0 0 -.8rem; border-radius: 50%;
  background: rgba(196, 30, 36, .45); animation: pin-pulse 2s ease-out infinite;
}
.map-credit { position: absolute; right: .5rem; bottom: .35rem; padding: 0 .35rem; background: rgba(244, 241, 234, .8); font-size: .66rem; color: var(--fy-steel); }

/* 13. Motion -------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
@keyframes pin-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

/* Dash 1, gap 2 and a start offset just past 1, so the round caps don't leave dots before drawing begins. */
.js [data-reveal] .svc-icon > * { stroke-dasharray: 1 2; stroke-dashoffset: 1.01; transition: stroke-dashoffset 1.6s ease-in-out; }
.js [data-reveal].is-visible .svc-icon > * { stroke-dashoffset: 0; }
.svc:nth-child(2) .svc-icon > * { transition-delay: .15s; }
.svc:nth-child(3) .svc-icon > * { transition-delay: .3s; }
.svc:nth-child(4) .svc-icon > * { transition-delay: .45s; }

.js .mv-card[data-reveal] { opacity: 0; transform: translateX(5rem); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .mv-card[data-reveal].is-visible { opacity: 1; transform: none; }
.js .mv-card[data-reveal] + .mv-card { transition-delay: .2s; }

.js .project-card[data-reveal] { opacity: 0; transform: translateY(2rem); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .project-card[data-reveal].is-visible { opacity: 1; transform: none; }
@media (min-width: 992px) {
  .project-grid > :nth-child(3n + 2) .project-card { transition-delay: .12s; }
  .project-grid > :nth-child(3n + 3) .project-card { transition-delay: .24s; }
}

.js .info-card[data-reveal] { opacity: 0; transform: translateX(-3rem); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .info-card[data-reveal].is-visible { opacity: 1; transform: none; }
.info-card:nth-child(2) { transition-delay: .1s; }
.info-card:nth-child(3) { transition-delay: .2s; }
.info-card:nth-child(4) { transition-delay: .3s; }
.js .map-pin[data-reveal] { opacity: 0; top: calc(60.4% - 2.5rem); transition: opacity .4s ease .2s, top .7s cubic-bezier(.3, 1.5, .5, 1) .2s; }
.js .map-pin[data-reveal].is-visible { opacity: 1; top: 60.4%; }
.hero-content > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-content > :nth-child(3) { animation-delay: .2s; }
.hero-content > :nth-child(4) { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .hero-content > * { animation: none; }
  .site-end { background-attachment: scroll; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee-track[aria-hidden] { display: none; }
  .js .mv-card[data-reveal], .js [data-reveal] .svc-icon > *, .js .project-card[data-reveal],
  .js .info-card[data-reveal], .js .map-pin[data-reveal] { transition: none; }
  .map-pin::after { animation: none; }
}
