﻿/* CSG 360: reference-inspired typography, photography, and motion. */
@font-face { font-family: Barlow; src: url('../fonts/barlow-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  --color-page: #f4f3ef;
  --color-section-alt: #eae9e5;
  --color-surface: #fff;
  --color-ink: #131313;
  --color-muted: #4c4c4a;
  --color-line: #d4d3cd;
  --color-brand: #f6082c;
  --color-brand-hover: #c80020;
  --color-brand-dark: #080808;
  --color-accent: #f6082c;
  --color-accent-soft: #f6082c12;
  --font-display: 'Barlow Condensed', Impact, sans-serif;
  --font-body: Barlow, Arial, sans-serif;
  --site-width: 1320px;
  --gutter: clamp(22px, 5vw, 80px);
  --section-space: clamp(64px, 7vw, 108px);
  --radius: 0px;
  --button-radius: 0px;
}

html { scroll-padding-top: 104px; }
body { font-size: 18px; }
::selection { background: var(--color-brand); color: white; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 5px; }
.section { border: 0; }
.section + .section { border-top: 0; }
.hero h1, .section h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; line-height: .94; }
.section h2 { font-size: clamp(48px, 5.2vw, 78px); max-width: 100%; margin-bottom: 26px; }
.section h3 { font-family: var(--font-display); text-transform: uppercase; }
.hero p, .section p { line-height: 1.55; }
.hero p + p, .section p + p { margin-top: 18px; }
.hero .section-eyebrow, .section .section-eyebrow {
  display: flex; align-items: center; gap: 16px; margin: 0 0 20px;
  color: inherit; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .22em; line-height: 1.4; text-transform: uppercase;
}
.section-eyebrow::before { content: ''; flex: 0 0 42px; height: 3px; background: var(--color-brand); }

/* Header stays legible as the page moves underneath it. */
#site-header { position: sticky; top: 0; z-index: 50; }
.site-header { position: relative; padding-block: 14px; background: #080808f5; color: #fff; border: 0; box-shadow: none; transition: background .25s, box-shadow .25s; }
.site-header.is-scrolled { background: #080808fa; box-shadow: 0 1px 0 #ffffff20; }
.nav { gap: 28px; justify-content: space-between; }
.brand { color: #fff; gap: 12px; }
.academy-logo { display: block; width: 62px; height: auto; flex-shrink: 0; }
.brand-wordmark { font-family: var(--font-display); font-style: italic; font-size: 34px; font-weight: 900; letter-spacing: -.025em; line-height: .85; }
.brand-wordmark b { color: var(--color-brand); }
.brand-wordmark small { display: block; margin-top: 9px; font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .17em; }
.nav-links { gap: clamp(16px, 2.4vw, 34px); }
.nav-links a { position: relative; color: #fff; font-family: var(--font-display); font-size: 16px; letter-spacing: .045em; }
.nav-links a::after { content: ''; position: absolute; bottom: 2px; left: 0; right: 0; height: 2px; background: var(--color-brand); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover, .nav-links a:focus-visible { color: white; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 26px;
  padding: 17px 30px; min-height: 56px; margin-top: 30px; border: 1px solid var(--color-brand); border-radius: 0;
  background: var(--color-brand); color: #fff; font-family: var(--font-display); font-size: 18px; font-weight: 700;
  line-height: 1.1; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; box-shadow: none;
  transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.button::after { content: '\2197'; font-family: Arial, sans-serif; font-size: 20px; transition: transform .25s; }
.button:hover, .button:focus-visible { background: #d90022; border-color: #d90022; transform: translateY(-3px); box-shadow: 0 8px 28px #f6082c30; }
.button:hover::after { transform: translate(3px, -3px); }
.button:active { transform: translateY(0); }
.nav-action .button { min-height: 48px; padding: 14px 22px; font-size: 15px; letter-spacing: .04em; margin-top: 0; }
.nav-action .button::after { display: none; }
.nav-toggle { color: #fff; background: transparent; border-color: #ffffff50; border-radius: 0; }
.nav-toggle span { background: #fff; }

/* Full-bleed photograph and strong type, following the reference hero. */
.home-hero { min-height: 770px; min-height: min(850px, calc(100svh + 80px)); isolation: isolate; display: flex; align-items: center; background: #080808; color: #fff; padding-block: 54px 96px; }
.home-hero .inner { position: relative; z-index: 2; padding-block: 0; }
.home-hero .homepage-copy { max-width: 680px; }
.home-hero h1 { font-size: clamp(76px, 8.5vw, 130px); line-height: .85; max-width: 780px; margin: 0 0 26px; }
.home-hero h1 span { display: block; }
.home-hero p:not(.section-eyebrow) { max-width: 565px; font-size: 18px; line-height: 1.5; color: #dedede; }
.home-hero .section-eyebrow { font-size: 15px; }
.hero-team-photo { position: absolute; inset: 0 0 0 auto; width: 75%; height: 100%; object-fit: cover; object-position: 60% 44%; filter: grayscale(1); z-index: -2; }
.home-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #080808 0%, #080808ed 28%, #0808089e 52%, #08080812 80%), linear-gradient(0deg, #080808a6, transparent 40%); }
.scroll-cue { position: absolute; bottom: 26px; left: var(--gutter); z-index: 3; display: flex; align-items: center; gap: 12px; color: #ccc; text-decoration: none; text-transform: uppercase; font: 700 12px var(--font-display); letter-spacing: .2em; }
.scroll-cue span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #ffffff45; color: var(--color-brand); transition: transform .25s; }
.scroll-cue:hover span { transform: translateY(4px); }

/* Editorial image and copy pairings. */
.homepage-media-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.homepage-copy { min-width: 0; }
/* Clip a viewport-fixed watermark to each light section as it scrolls past. */
.home-intro, .home-we-defy, .location-contact {
  position: relative;
  isolation: isolate;
  clip-path: inset(0);
}
.home-intro::before, .home-we-defy::before, .location-contact::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('../media/images/csg360-logo.png') center / min(88vw, 90vh) auto no-repeat;
  opacity: .055;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.home-intro > .inner, .home-we-defy > .inner, .location-contact > .inner {
  position: relative;
  z-index: 1;
}
.section-photo { display: block; width: 100%; height: auto; border-radius: 0; }
.home-intro { background: var(--color-page); }
.home-intro .homepage-copy { grid-column: 2; grid-row: 1; }
.home-intro h2 span { display: block; }
.about-portrait { position: relative; grid-column: 1; grid-row: 1; margin: 0 24px 32px 0; align-self: stretch; min-height: 620px; }
.professor-photo { height: 100%; max-height: 880px; object-fit: cover; object-position: 50% 25%; filter: saturate(.45); transition: filter .6s; }
.belt-detail { position: absolute; right: -24px; bottom: 44px; width: 38%; height: 230px; object-fit: cover; object-position: 50% 72%; border: 5px solid var(--color-page); }
.about-portrait figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 26px 20px 16px; background: linear-gradient(transparent, #000e); color: #fff; font: 700 22px var(--font-display); text-transform: uppercase; }
.about-portrait figcaption span { display: block; margin-top: 3px; font-size: 12px; letter-spacing: .16em; color: #ddd; }
.professor-heading { margin: 28px 0 12px; padding-top: 24px; border-top: 1px solid var(--color-line); font-size: 27px; line-height: 1.1; }

/* Four numbered program cards, with all supplied copy visible. */
.home-services { background: #080808 !important; color: white; }
.home-services h2 { font-size: clamp(46px, 4.5vw, 68px); }
.home-services .service-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: program; margin-top: 34px; }
.home-services .service-item { position: relative; padding: 0 0 28px; border: 1px solid #292929; background: #0d0d0d; border-radius: 0; box-shadow: none; counter-increment: program; transition: border-color .35s, box-shadow .35s, translate .35s; }
.home-services .service-item:hover { transform: none; }
.home-services .service-card-media { margin: 0; height: 290px; }
.home-services .service-card-media::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #0d0d0d); pointer-events: none; }
.home-services .service-card-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .65s cubic-bezier(.2,.7,.3,1), filter .65s; }
.home-services .service-item:nth-child(2) .service-card-image { object-position: 44% center; }
.home-services .service-item:nth-child(3) .service-card-image { object-position: 50% 65%; }
.home-services .service-item:nth-child(4) .service-card-image { object-position: 60% center; }
.program-copy { position: relative; z-index: 1; margin-top: -24px; padding: 0 20px; }
.program-number { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--color-brand); font: 900 32px/.9 var(--font-display); }
.program-number::before { content: counter(program, decimal-leading-zero); }
.program-number::after { content: ''; width: 42px; height: 2px; background: var(--color-brand); transition: width .35s; }
.home-services .service-item h3 { margin: 0 0 12px; color: #fff; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.05; }
.home-services .service-item p { margin: 0; color: #c6c6c6; font-size: 16px; line-height: 1.45; }
.home-services .section-outro { display: flex; align-items: center; justify-content: space-between; gap: 36px; max-width: none; margin: 40px 0 0; padding-top: 30px; border-top: 1px solid #292929; text-align: left; }
.home-services .section-outro p { max-width: 760px; color: #b4b4b4; font-size: 17px; }
.home-services .section-outro .button { flex-shrink: 0; margin: 0; }

.home-we-defy { background: #eae9e5 !important; }
.home-we-defy .homepage-media-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.home-we-defy h2 { max-width: 720px; }
.foundation-media { position: relative; display: grid; place-items: center; min-height: 470px; padding: 50px; border: 1px solid #c9c8c2; }
.foundation-media::before, .foundation-media::after { content: ''; position: absolute; width: 44px; height: 44px; border-color: var(--color-brand); border-style: solid; }
.foundation-media::before { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.foundation-media::after { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }
.foundation-logo { display: block; width: min(100%, 240px); height: auto; mix-blend-mode: multiply; transition: transform .45s; }
.reviews { background: #111 !important; color: white; text-align: center; }
.reviews .section-eyebrow { justify-content: center; }
.reviews h2 { max-width: 820px; margin-inline: auto; }
.google-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 42px; text-align: left; }
.review-card { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 28px; border: 1px solid #333; background: #181818; transition: border-color .3s, translate .3s; }
.review-rating { color: #ffba35; font-size: 23px; letter-spacing: .12em; line-height: 1; }
.review-card blockquote { flex: 1; margin: 24px 0 28px; }
.reviews .review-card blockquote p { color: #d2d2d2; font-size: 16px; line-height: 1.6; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid #ffffff20; }
.review-avatar { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; background: #f6082c20; color: #ff4964; font: 700 18px var(--font-display); }
.review-card figcaption strong { display: block; color: #fff; font-size: 17px; font-weight: 600; }
.review-source { display: block; margin-top: 3px; font-size: 12px; color: #aaa; }
@media (hover: hover) and (pointer: fine) {
  .review-card:hover { border-color: var(--color-brand); translate: 0 -5px; }
}
@media (max-width: 900px) {
  .google-reviews { grid-template-columns: 1fr; }
}
.location-contact { background: var(--color-page) !important; }
.location-contact .contact-card { background: transparent; border: 0; border-top: 1px solid #c9c8c2; border-radius: 0; box-shadow: none; padding: 24px 0 0; margin-top: 28px; }
.contact-details { font-style: normal; font-size: 18px; color: var(--color-ink); }
.contact-details a { text-decoration-color: #c5c3bd; text-underline-offset: 4px; transition: color .2s; }
.contact-details a:hover { color: #d50024; }
.contact-photo { position: relative; overflow: hidden; }
.contact-photo img { aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); transition: filter .6s, transform .6s; }
.photo-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 25px; color: white; background: linear-gradient(transparent,#000c); font: 700 13px var(--font-display); text-transform: uppercase; letter-spacing: .15em; }
.academy-map { margin-top: 56px; border: 1px solid var(--color-line); }
.map-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; background: #111; color: #fff; }
.map-heading h3 { margin: 0 0 6px; font-size: 30px; line-height: 1; }
.location-contact .map-heading p { color: #bbb; font-size: 15px; }
.map-directions { display: inline-flex; flex-shrink: 0; align-items: center; gap: 18px; min-height: 44px; color: #fff; font: 700 17px var(--font-display); text-transform: uppercase; text-decoration: none; }
.map-directions span[aria-hidden] { color: var(--color-brand); transition: transform .2s; }
.map-directions:hover span[aria-hidden] { transform: translate(3px, -3px); }
.academy-map .map-placeholder { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; background: #eae9e5; }
.academy-map .map-placeholder iframe { display: block; width: 100%; height: clamp(300px, 35vw, 440px); border: 0; }
.map-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .academy-map { margin-top: 36px; }
  .map-heading { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; }
}
.site-footer { background: #080808; border-top: 3px solid var(--color-brand); color: #aaa; padding-block: 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 0; }
.footer-bottom p { font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: white; font: 700 15px var(--font-display); text-transform: uppercase; text-decoration: none; }
.footer-links a:hover { color: var(--color-brand); }
.footer-logo-link { flex-shrink: 0; }
.lead-modal-panel { border-radius: 0; }
.lead-capture-form { font-family: var(--font-body); }

/* Reveal classes are added only after the observer is ready. */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.3,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-enter { animation: hero-enter .85s cubic-bezier(.2,.7,.3,1) both; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  .home-services .service-item:hover { translate: 0 -8px; border-color: var(--color-brand); box-shadow: 0 18px 40px #0005; }
  .home-services .service-item:hover .service-card-image { transform: scale(1.055); filter: grayscale(0); }
  .home-services .service-item:hover .program-number::after { width: 65px; }
  .about-portrait:hover .professor-photo { filter: saturate(1); }
  .foundation-media:hover .foundation-logo { transform: scale(1.035); }
  .contact-photo:hover img { filter: grayscale(0); transform: scale(1.025); }
}

@media (min-width: 1600px) {
  .scroll-cue { left: calc((100% - var(--site-width)) / 2); }
}
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .brand-wordmark { font-size: 28px; }
  .brand-wordmark small { font-size: 8px; }
  .nav-links { gap: 18px; }
  .nav-action .button { padding-inline: 16px; }
  .home-services .service-list { gap: 12px; }
  .program-copy { padding-inline: 15px; }
  .home-services .service-card-media { height: 240px; }
  .home-services .section-outro { align-items: flex-start; }
  .home-hero .homepage-copy { max-width: 590px; }
  .about-portrait { min-height: 670px; margin-right: 12px; }
  .belt-detail { right: -12px; }
}
@media (max-width: 900px) {
  .brand-wordmark { display: none; }
  .home-hero { min-height: 780px; }
  .home-hero h1 { font-size: clamp(78px, 11vw, 100px); }
  .home-hero p:not(.section-eyebrow) { max-width: 490px; }
  .hero-team-photo { width: 100%; }
  .home-hero::after { background: linear-gradient(90deg,#080808f5,#080808ad 55%,#08080835),linear-gradient(0deg,#080808c9,transparent); }
  .home-services .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .home-services .service-card-media { height: 320px; }
  .home-services .service-item h3 { font-size: 30px; }
  .home-services .section-outro { flex-direction: column; gap: 22px; }
  .homepage-media-layout { gap: 32px; }
  .home-intro .homepage-media-layout { grid-template-columns: 1fr; }
  .home-intro .homepage-copy { grid-column: auto; grid-row: auto; }
  .about-portrait { grid-column: auto; grid-row: 2; height: 570px; min-height: 0; max-width: 620px; width: calc(100% - 24px); }
  .professor-photo { object-position: center 20%; }
  .belt-detail { width: 35%; height: 220px; }
  .home-we-defy .homepage-media-layout { grid-template-columns: 1.2fr .8fr; }
  .foundation-media { min-height: 360px; padding: 28px; }
  .location-contact .homepage-media-layout { grid-template-columns: 1fr; }
  .contact-photo img { aspect-ratio: 3 / 2; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 86px; }
  .site-header { padding-block: 12px; }
  .nav { gap: 12px; }
  .academy-logo { width: 50px; }
  .nav-action .button { min-height: 44px; font-size: 14px; padding: 12px 16px; }
  .nav-links { padding: 14px 0 6px; margin-top: 8px; border-color: #ffffff25; }
  .nav-links a { font-size: 20px; min-height: 50px; width: 100%; justify-content: flex-start; }
  .nav.nav-open .nav-links { justify-items: start; }
  .home-hero { min-height: 760px; padding-block: 48px 90px; }
  .home-hero h1 { font-size: clamp(64px, 12.5vw, 88px); margin-bottom: 24px; }
  .home-hero .section-eyebrow { font-size: 12px; max-width: 350px; letter-spacing: .15em; gap: 12px; }
  .section-eyebrow::before { flex-basis: 28px; }
  .home-hero p:not(.section-eyebrow) { max-width: 520px; font-size: 17px; }
  .hero-team-photo { object-position: 62% center; }
  .home-hero::after { background: linear-gradient(90deg,#080808e8,#08080898),linear-gradient(0deg,#080808 0%,transparent 70%); }
  .section h2 { font-size: clamp(46px, 9vw, 62px); }
  .section p { font-size: 17px; }
  .home-we-defy .homepage-media-layout { grid-template-columns: 1fr; }
  .foundation-media { min-height: 350px; }
  .foundation-logo { max-width: 190px; }
  .home-services .service-list { gap: 16px; }
  .home-services .service-card-media { height: 240px; }
  .home-services .service-item h3 { font-size: 26px; }
  .home-services .service-item p { font-size: 16px; }
  .footer-bottom { flex-wrap: wrap; justify-content: flex-start; gap: 20px; }
  .footer-bottom p { flex: 1; }
  .footer-links { width: 100%; padding-top: 18px; border-top: 1px solid #ffffff20; }
}
@media (max-width: 480px) {
  .home-hero { min-height: 0; }
  .home-hero h1 { font-size: clamp(58px, 14vw, 68px); }
  .home-hero .button { width: 100%; }
  .home-services .service-list { grid-template-columns: 1fr; gap: 24px; }
  .home-services .service-card-media { height: 300px; }
  .program-copy { padding-inline: 24px; }
  .home-services .service-item h3 { font-size: 32px; }
  .home-services .section-outro .button { width: 100%; }
  .about-portrait { height: 470px; }
  .belt-detail { height: 180px; }
  .section .section-eyebrow { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .home-services .service-item:hover { translate: none; }
  .review-card:hover { translate: none; }
}
