/* =========================================================================
   IBEC styles
   Direction: quiet, photo-led and mostly black and white (after specialized.com).
   The logo green is the only accent: primary buttons, focus rings, link hover.
   ========================================================================= */

/* ---------- Fonts (self-hosted Barlow, SIL OFL; see assets/fonts/LICENSE-Barlow.txt) ---------- */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink: #222222;          /* text, dark buttons */
  --ink-2: #5c5c5c;        /* secondary text (7:1 on white) */
  --surface: #f5f5f3;      /* tiles, quiet sections (a hint of pearl) */
  --rule: #e3e3e0;
  --white: #ffffff;
  --green: #075d33;        /* from the logo; the only accent */
  --green-dark: #054a28;

  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --max: 1440px;
  --pad: clamp(16px, 3.4vw, 48px);
  --gap: clamp(12px, 1.7vw, 24px);
  --tile-r: 10px;
  --btn-r: 4px;
  --header-h: 64px;
  --sect: clamp(56px, 7vw, 104px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; -webkit-tap-highlight-color: rgba(7, 93, 51, .12); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; text-wrap: balance; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--green); color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
mark.todo { background: #fff3b0; color: var(--ink); padding: 0 .2em; border-radius: 2px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--btn-r); font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sect { padding-block: var(--sect); }
.sect + .sect { padding-top: 0; }
.sect--surface { background: var(--surface); }
.sect--surface + .sect, .sect + .sect--surface { padding-top: var(--sect); }

/* ---------- Type scale ---------- */
.t-hero { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -1px; }
.t-1 { font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -1px; }
.t-2 { font-size: clamp(1.75rem, 2.6vw, 2rem); }
.t-3 { font-size: 1.5rem; }
.t-4 { font-size: 1.125rem; letter-spacing: -0.2px; }
.lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.prose { max-width: 64ch; }
.prose > * + * { margin-top: 1em; }

.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 32px); }
.head-row p { color: var(--ink-2); max-width: 46ch; }
@media (max-width: 700px) { .head-row { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--btn-r); border: 1px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--light { background: #f8f8f8; color: var(--ink); }
.btn--light:hover { background: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s var(--ease); }
.link:hover { color: var(--green); }
.link-plain { font-weight: 600; transition: color .2s var(--ease); }
.link-plain:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.utility { background: var(--surface); font-size: .8125rem; color: var(--ink-2); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 32px; }
.utility nav { display: flex; gap: 20px; }
.utility a { transition: color .2s var(--ease); }
.utility a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header .wrap { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand img { height: 28px; width: auto; }
.menu { display: flex; gap: 4px; }
.menu a { position: relative; padding: 8px 14px; font-weight: 600; font-size: 1rem; }
.menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -13px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { justify-self: end; display: flex; align-items: center; gap: 20px; }
.header-cta .link-plain { font-size: .9375rem; }
.burger { display: none; justify-self: end; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { position: fixed; inset: calc(var(--header-h) + var(--util-h, 0px)) 0 0; z-index: 40; background: var(--white); padding: 8px var(--pad) 32px; overflow-y: auto; overscroll-behavior: contain; }
.drawer a { display: block; padding: 16px 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.3px; border-bottom: 1px solid var(--rule); }
.drawer .btn { display: flex; margin-top: 24px; border-bottom: 0; font-size: 1rem; }
.nav-open { overflow: hidden; }

@media (max-width: 960px) {
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .menu, .header-cta { display: none; }
  .burger { display: block; }
  .utility nav { display: none; }
}
@media (min-width: 961px) { .drawer { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(720px, calc(100svh - var(--header-h) - 32px)); color: var(--white); background: #2a2a2a; overflow: hidden; }
.hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,0) 68%), linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 55%); }
.hero .wrap { padding-block: clamp(40px, 6vw, 72px); }
.hero__copy { max-width: 720px; }
.hero__copy p { margin-top: 16px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 52ch; color: rgba(255,255,255,.92); }
.hero__copy .link-plain:hover { color: var(--white); }
.hero__copy > * { animation: rise .8s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 700px) {
  .hero { min-height: 560px; }
  .hero::after { background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.05) 90%); }
}

/* ---------- Photo tiles (the Specialized-style card) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1 / 1; padding: 24px; border-radius: var(--tile-r); overflow: hidden; color: var(--white); background: #333; }
.tiles--2 .tile { aspect-ratio: 16 / 10; padding: clamp(24px, 3vw, 40px); }
.tile > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.42) 28%, rgba(0,0,0,0) 58%, rgba(0,0,0,.28) 100%); }
.tile h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.12; }
.tile p { margin-top: 6px; font-size: 1rem; color: var(--white); max-width: 34ch; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tile .arrow { align-self: flex-end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .2s var(--ease), color .2s var(--ease); }
.tile .btn { align-self: flex-start; }
a.tile:hover > img { transform: scale(1.03); }
a.tile:hover .arrow { background: var(--white); color: var(--ink); }
@media (max-width: 1024px) {
  .tiles:not(.tiles--2) { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(260px, 42%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
  .tiles:not(.tiles--2)::-webkit-scrollbar { display: none; }
  .tiles:not(.tiles--2) > * { scroll-snap-align: start; }
}
@media (max-width: 700px) {
  .tiles:not(.tiles--2) { grid-auto-columns: 78%; }
  .tiles--2 { grid-template-columns: 1fr; }
  .tiles--2 .tile { aspect-ratio: 4 / 3; }
}

/* ---------- School tiles (logo on a quiet surface) ---------- */
.schools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.school { display: block; }
.school__logo { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18%; background: var(--surface); border-radius: var(--tile-r); transition: background-color .25s var(--ease); }
.school__logo img { max-height: 72px; width: auto; max-width: 100%; object-fit: contain; }
.school h3 { margin-top: 14px; font-size: 1.125rem; letter-spacing: -0.2px; }
.school p { color: var(--ink-2); font-size: .9375rem; }
a.school:hover .school__logo { background: #ececea; }
a.school:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1200px) { .schools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .schools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-weight: 700; font-size: .9375rem; color: var(--ink-2); margin-bottom: 10px; }
.steps h3 { font-size: 1.25rem; letter-spacing: -0.3px; }
.steps p { margin-top: 6px; color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 3.5vw, 48px); }
.page-head .lede { margin-top: 16px; }
.page-photo { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--tile-r); }
@media (max-width: 700px) { .page-photo { aspect-ratio: 4 / 3; } }

/* ---------- Split (text + photo) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--top { align-items: start; }
.split > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tile-r); }
.split .t-2 + * { margin-top: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip > img { order: -1; } }

/* ---------- Gallery ---------- */
.gallery { --tile-w: clamp(220px, 24vw, 340px); overflow: hidden; padding: 16px 0 40px; }
.gallery__track { display: flex; width: max-content; animation: gallery-roll 70s linear infinite; }
.gallery figure { flex: none; width: var(--tile-w); margin-right: var(--gap); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--tile-r); background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.gallery:hover .gallery__track, .gallery:focus-within .gallery__track { animation-play-state: paused; }
@media (hover: hover) { .gallery figure:hover img { transform: translateY(-6px) scale(1.025); box-shadow: 0 14px 28px rgba(0, 0, 0, .18); } }
@keyframes gallery-roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .gallery { overflow-x: auto; }
  .gallery__track { animation: none; padding-inline: var(--pad); }
  .gallery figure[aria-hidden="true"] { display: none; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Partners ---------- */
.partner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.partner__logo { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 12%; background: var(--surface); border-radius: var(--tile-r); }
.partner__logo img { max-height: 200px; width: auto; }
.wordmark { font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -0.5px; text-align: center; line-height: 1.1; }
.partner__role { font-weight: 600; color: var(--ink-2); }
.partner h2 { margin-top: 4px; }
.partner p:not(.partner__role) { margin-top: 12px; color: var(--ink-2); max-width: 56ch; }
@media (max-width: 760px) { .partner { grid-template-columns: 1fr; } }

/* ---------- Icon list (Sponsor Us) ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); }
.features li { padding-top: 20px; border-top: 1px solid var(--rule); }
.features svg { color: var(--ink); margin-bottom: 14px; }
.features h3 { font-size: 1.25rem; letter-spacing: -0.3px; }
.features p { margin-top: 6px; color: var(--ink-2); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.aside > * + * { margin-top: 28px; }
.aside h2 { font-size: 1.25rem; letter-spacing: -0.3px; }
.aside p { margin-top: 6px; color: var(--ink-2); }
.aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tile-r); }
.ticks { margin-top: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ticks svg { flex: none; margin-top: 2px; color: var(--green); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding: clamp(24px, 3vw, 40px); background: var(--surface); border-radius: var(--tile-r); }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .hint { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--white); border: 1px solid #c9c9c6; border-radius: var(--btn-r); font-size: 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a86; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(7, 93, 51, .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b42318; }
.field .error { color: #b42318; font-size: .875rem; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 4px; }
.form__note { font-size: .875rem; color: var(--ink-2); max-width: 40ch; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .form__foot .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); font-size: .9375rem; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 40px; }
.foot-brand { display: flex; align-items: center; gap: 16px; align-self: start; }
.foot-brand .logo { width: 160px; flex: none; }
.foot-brand span { font-weight: 600; font-size: 1.4375rem; line-height: 1.25; letter-spacing: -0.3px; max-width: 13ch; }
@media (max-width: 560px) { .foot-brand .logo { width: 112px; } .foot-brand span { font-size: 1.1875rem; } }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; }
.site-footer li + li { margin-top: 8px; }
.site-footer li a { color: var(--ink-2); transition: color .2s var(--ease); }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: .8125rem; }
@media (max-width: 860px) { .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .top > :first-child { grid-column: 1 / -1; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
