/* IFIS home: premium layout. Plain Inter type, solid colour blocks, full-bleed photography, no divider lines, no hover effects. */
.home .sec { background: #fff; padding: 64px 0; }
.home .sec.soft { background: #f4f2ed; }
.home .sec.night { background: #0c0d11; color: #fff; }
.home .sec.night h2, .home .sec.night p { color: #fff; }
.home .sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.home .sec-head h2 { margin: 0; font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; }

/* hero */
.hx { background-size: cover; background-position: center 30%; }
.hx-shade { background: rgba(8, 9, 13, .62); min-height: min(82vh, 700px); display: flex; align-items: center; }
.hx-inner { padding-top: 96px; padding-bottom: 130px; }
.hx h1 { color: #fff; font-size: clamp(2.7rem, 6.4vw, 5.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; margin: 0 0 22px; max-width: 12.5em; }
.hx-lede { color: #fff; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.55; max-width: 36em; margin: 0 0 32px; }
.hx-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.lg { padding: 16px 28px; font-size: 1rem; }
.btn.white { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light { background: transparent; color: #fff; border-color: #fff; }
.hx-stats { position: relative; z-index: 3; margin-top: -68px; background: #fff; display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: 0 24px 60px rgba(8, 9, 13, .22); }
.hx-stats > div { padding: 26px 30px; }
.hx-stats b { display: block; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.hx-stats span { font-size: .95rem; font-weight: 500; }

/* standards row */
.fw { padding: 34px 0 0; }
.fw .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; }
.fw p { margin: 0; font-weight: 800; }
.fw ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 30px; font-weight: 600; }

/* courses */
.cc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cc-feature { grid-column: span 2; flex-direction: row; }
.cc-feature .cc-img { flex: 1.1; aspect-ratio: auto; min-height: 330px; }
.cc-feature .cc-body { flex: 1; justify-content: center; padding: 30px; }
.cc-feature h3 { font-size: 2rem; letter-spacing: -.02em; margin-bottom: 12px; }
.cc-feature p { font-size: 1.05rem; }
.cc-feature .cc-foot { margin-top: 8px; }

/* two-column feature blocks */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.duo.wide-right { grid-template-columns: .85fr 1.15fr; }
.vc h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 18px; }
.vc .big { font-size: 1.3rem; font-weight: 600; line-height: 1.45; }
.vc p { margin: 0 0 16px; }
.round { border-radius: 12px; }
.aw-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; display: block; }

/* why */
.why2 { background-size: cover; background-position: center; }
.why2-shade { background: rgba(7, 38, 54, .9); padding: 68px 0; }
.why2 h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; margin: 0 0 30px; }
.why2-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why2-grid > div::before { content: ''; display: block; width: 44px; height: 4px; background: var(--accent); margin-bottom: 16px; }
.why2-grid h3 { color: #fff; font-size: 1.2rem; line-height: 1.25; margin: 0 0 10px; }
.why2-grid p { color: #fff; margin: 0; font-size: .97rem; }

/* events */
.evx { display: grid; gap: 8px; }
.evx-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto; gap: 20px; align-items: center; background: #f4f2ed; padding: 14px 20px 14px 14px; text-decoration: none; color: var(--ink); }
.evx-date { background: var(--accent); color: #fff; text-align: center; padding: 10px 6px; line-height: 1.1; }
.evx-date b { display: block; font-size: 1.5rem; font-weight: 800; }
.evx-date span { font-size: .8rem; font-weight: 600; }
.evx-what h3 { font-size: 1.2rem; margin: 0 0 3px; }
.evx-what p { margin: 0; font-size: .92rem; }
.evx-fee { font-weight: 800; white-space: nowrap; }

/* photo mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 8px; }
.mosaic a { display: block; overflow: hidden; background: #ddd; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic .m1 { grid-column: span 2; grid-row: span 2; }
.mosaic .m6, .mosaic .m7 { grid-column: span 2; }

/* membership tiers */
.tiers { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.tiers li { display: flex; justify-content: space-between; gap: 16px; background: #f4f2ed; padding: 12px 16px; }
.tiers b { font-weight: 800; }

/* alumni */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qt { margin: 0; background: #fff; padding: 28px; }
.qt-main { grid-column: 1 / -1; padding: 38px; }
.qt blockquote { margin: 0 0 18px; font-size: 1.15rem; line-height: 1.5; font-weight: 500; }
.qt-main blockquote { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.qt figcaption b { display: block; }

/* blog */
.posts3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; align-items: stretch; }
.pc { display: flex; flex-direction: column; background: #f4f2ed; text-decoration: none; color: var(--ink); min-width: 0; }
.pc-img { aspect-ratio: 16 / 10; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-body { padding: 16px 18px 20px; }
.pc-date { font-size: .82rem; font-weight: 600; color: var(--accent); }
.pc h3 { font-size: 1.15rem; line-height: 1.25; margin: 6px 0 8px; }
.pc p { margin: 0; font-size: .93rem; }
.pc-main h3 { font-size: 1.6rem; letter-spacing: -.02em; }

@media (max-width: 1020px) {
  .hx-stats { grid-template-columns: 1fr 1fr; }
  .cc-grid { grid-template-columns: 1fr 1fr; }
  .duo, .duo.wide-right { grid-template-columns: 1fr; gap: 28px; }
  .why2-grid { grid-template-columns: 1fr 1fr; }
  .posts3 { grid-template-columns: 1fr 1fr; }
  .pc-main { grid-column: 1 / -1; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .home .sec { padding: 44px 0; }
  .hx-inner { padding-top: 60px; padding-bottom: 100px; }
  .hx-stats { grid-template-columns: 1fr 1fr; }
  .hx-stats > div { padding: 18px 16px; }
  .cc-grid, .why2-grid, .posts3, .quotes { grid-template-columns: 1fr; }
  .cc-feature { grid-column: auto; flex-direction: column; }
  .cc-feature .cc-img { min-height: 0; aspect-ratio: 16 / 10; }
  .evx-row { grid-template-columns: 76px 1fr; }
  .evx-fee, .evx-row .btn { grid-column: 2; justify-self: start; }
  .mosaic { grid-auto-rows: 140px; }
  .home .sec-head { flex-direction: column; align-items: flex-start; }
}

/* course carousel: identical cards in a sliding track */
.car-ctl { display: flex; align-items: center; gap: 8px; }
.car-btn { width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: #fff; border: 0; border-radius: 3px; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.car-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0; outline: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > .cc { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.car-track .cc-img { aspect-ratio: 16 / 10; }
@media (max-width: 1020px) { .car-track > .cc { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 640px) { .car-track > .cc { flex-basis: 86%; } .car-ctl { width: 100%; justify-content: space-between; } }

/* blog cards: identical size */
.posts3 { grid-template-columns: repeat(3, 1fr); }
.pc, .pc-main { grid-column: auto; }
.pc-img, .pc-main .pc-img { aspect-ratio: 16 / 10; }
.pc-body { flex: 1; }
.pc h3, .pc-main h3 { font-size: 1.15rem; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1020px) { .posts3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts3 { grid-template-columns: 1fr; } }
.hx h1 { line-height: 1; }
.home .sec-head h2, .vc h2, .why2 h2 { line-height: 1.05; }
.cc-feature h3 { line-height: 1.08; }


/* ---- smaller type scale on the home page ---- */
.hx h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.hx-lede { font-size: clamp(.98rem, 1.3vw, 1.1rem); max-width: 34em; }
.hx-stats b { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.hx-stats span { font-size: .85rem; }
.home .sec-head h2, .vc h2, .why2 h2 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); }
.vc .big { font-size: 1.08rem; }
.vc p { font-size: .93rem; }
.why2-grid h3 { font-size: 1.02rem; }
.why2-grid p { font-size: .88rem; }
.cc-feature h3 { font-size: 1.5rem; }
.evx-what h3 { font-size: 1.05rem; }
.evx-what p, .evx-fee { font-size: .86rem; }
.qt blockquote { font-size: 1rem; }
.qt-main blockquote { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.pc h3, .pc-main h3 { font-size: 1.02rem; }
.pc p { font-size: .86rem; }
.tiers li, .fw ul, .fw p { font-size: .9rem; }

/* ---- hero buttons: one consistent family ---- */
.hx-cta { gap: 12px; }
.hx-cta .btn, .hx-cta .btn.lg { min-height: 50px; padding: 0 28px; font-size: .95rem; font-weight: 600; border-radius: 4px; justify-content: center; display: inline-flex; align-items: center; border-width: 2px; }
.hx-cta .btn.accent { border-color: var(--accent); }
.hx-cta .btn.light { background: transparent; color: #fff; border-color: #fff; }
.hx-cta .btn.light:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---- stats card ---- */
.hx-stats { grid-template-columns: repeat(4, 1fr); padding: 8px 0; border-radius: 6px; }
.hx-stats > div { padding: 26px 20px; text-align: center; }
.hx-stats b { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; margin: 0 0 14px; position: relative; padding-bottom: 14px; }
.hx-stats b::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 34px; height: 3px; margin-left: -17px; background: var(--accent); }
.hx-stats span { font-size: .9rem; font-weight: 600; }
@media (max-width: 1020px) { .hx-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hx-cta .btn { width: 100%; } .hx-stats > div { padding: 20px 10px; } }

/* ---- floating "next event" card on the far right of the hero ---- */
.hx-inner { position: relative; }
.hx-next { position: absolute; right: var(--gutter); bottom: 112px; width: 236px; background: #fff; padding: 10px; border-radius: 8px; box-shadow: 0 22px 50px rgba(0, 0, 0, .38); z-index: 4; }
.hx-next-img { display: block; aspect-ratio: 1 / 1; background: #f4f2ed; border-radius: 4px; overflow: hidden; }
.hx-next-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hx-next-body { padding: 12px 4px 4px; }
.hx-next-tag { display: inline-block; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; margin-bottom: 8px; }
.hx-next h3 { font-size: .98rem; line-height: 1.2; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hx-next h3 a { color: var(--ink); text-decoration: none; }
.hx-next p { margin: 0 0 10px; font-size: .82rem; font-weight: 600; }
@media (max-width: 1100px) { .hx-next { width: 200px; } }
@media (max-width: 860px) { .hx-next { position: static; width: 100%; max-width: 320px; margin-top: 24px; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; } .hx-next-body { padding: 0; } .hx-next .btn { width: auto; } }

/* ---- next-event card: smaller, and floating over the hero ---- */
.hx-next { width: 176px; padding: 8px; bottom: 120px; border-radius: 10px; box-shadow: 0 26px 48px rgba(0, 0, 0, .45), 0 4px 10px rgba(0, 0, 0, .25); }
.hx-next-body { padding: 9px 3px 3px; }
.hx-next-tag { font-size: .62rem; padding: 2px 7px; margin-bottom: 6px; }
.hx-next h3 { font-size: .84rem; line-height: 1.2; margin-bottom: 3px; -webkit-line-clamp: 3; }
.hx-next p { font-size: .72rem; margin-bottom: 8px; }
.hx-next .btn.sm { padding: 7px 10px; font-size: .76rem; }
@media (prefers-reduced-motion: no-preference) {
  .hx-next { animation: hx-float 5s ease-in-out infinite; }
  @keyframes hx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
}
@media (max-width: 1100px) { .hx-next { width: 160px; } }
@media (max-width: 860px) { .hx-next { animation: none; width: 100%; max-width: 280px; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); } }

/* ---- next-event card: image on the left, wording on the right ---- */
.hx-next { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; width: 318px; padding: 10px; }
.hx-next-img { width: 92px; height: 92px; aspect-ratio: auto; align-self: start; }
.hx-next-body { padding: 0; min-width: 0; }
.hx-next-tag { margin-bottom: 5px; }
.hx-next h3 { font-size: .86rem; margin-bottom: 3px; -webkit-line-clamp: 3; }
.hx-next p { margin-bottom: 8px; font-size: .74rem; }
.hx-next .btn.sm { width: auto; display: inline-block; padding: 7px 16px; }
@media (max-width: 1100px) { .hx-next { width: 290px; } }
@media (max-width: 860px) { .hx-next { width: 100%; max-width: 340px; } }

/* ---- next-event card v3: image spans the full height of the box; tag level with its top, button level with its bottom ---- */
.hx-next { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; align-items: stretch; width: 330px; border-radius: 10px; }
.hx-next-img { width: 108px; height: 100%; min-height: 132px; aspect-ratio: auto; border-radius: 0; align-self: stretch; background: #f4f2ed; }
.hx-next-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-next-body { display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px; min-width: 0; gap: 8px; }
.hx-next-tag { align-self: flex-start; margin: 0; }
.hx-next h3 { margin: 0; font-size: .86rem; }
.hx-next p { margin: 2px 0 0; }
.hx-next .btn.sm { align-self: flex-start; margin: 0; }
@media (max-width: 860px) { .hx-next { width: 100%; max-width: 340px; } }

/* ---- alumni carousel: square photo, quote, name and role; slides with arrows and dots ---- */
.al-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.al-track::-webkit-scrollbar { display: none; }
.al-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); background: #fff; min-width: 0; }
.al-photo { width: 280px; height: 280px; background: #efeadf; display: grid; place-items: center; overflow: hidden; }
.al-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-photo span { font-size: 3.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.al-body { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 28px 36px; min-width: 0; }
.al-body blockquote { margin: 0; font-size: clamp(1.1rem, 1.9vw, 1.45rem); line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.al-body figcaption b { display: block; font-size: 1rem; }
.al-body figcaption span { display: block; font-size: .9rem; }
.al-dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.al-dots button { width: 44px; height: 24px; background: none; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; }
.al-dots button::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #c9c4b6; display: block; }
.al-dots button[aria-current="true"]::before { background: var(--ink); width: 22px; border-radius: 5px; }
@media (max-width: 720px) {
  .al-slide { grid-template-columns: 1fr; text-align: center; }
  .al-photo { width: min(240px, 70%); height: auto; aspect-ratio: 1 / 1; margin: 22px auto 0; }
  .al-body { padding: 20px 20px 26px; }
}


/* ===== no stripes on tiles ===== */
.why2-grid > div::before { display: none; content: none; }
.hx-stats b::after { display: none; content: none; }
.hx-stats b { padding-bottom: 0; margin-bottom: 10px; }
.car-track, .al-track { outline: none; }

/* ---- upcoming events on the home page: compact on phones ---- */
.evx-act { display: contents; }
@media (max-width: 640px) {
  .evx { gap: 8px; }
  .evx-row { grid-template-columns: 62px minmax(0, 1fr); gap: 6px 12px; align-items: start; padding: 12px; }
  .evx-date { grid-row: 1 / span 2; padding: 8px 4px; align-self: start; }
  .evx-date b { font-size: 1.1rem; line-height: 1.15; }
  .evx-date span { font-size: .68rem; }
  .evx-what { grid-column: 2; min-width: 0; }
  .evx-what h3 { font-size: .98rem; line-height: 1.2; margin: 0 0 2px; }
  .evx-what p { font-size: .8rem; line-height: 1.35; }
  .evx-act { display: flex; grid-column: 2; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
  .evx-fee { font-size: .86rem; white-space: normal; }
  .evx-row .btn.sm { padding: 6px 14px; font-size: .78rem; min-height: 0; flex: none; }
}

/* ---- alumni on phones: small round profile icon instead of a big square ---- */
@media (max-width: 720px) {
  .al-photo { width: 84px; height: 84px; aspect-ratio: auto; border-radius: 50%; margin: 24px auto 0; flex: none; }
  .al-photo img { border-radius: 50%; }
  .al-photo span { font-size: 1.6rem; }
  .al-body { gap: 12px; padding: 16px 20px 24px; }
  .al-body blockquote { font-size: 1.02rem; line-height: 1.5; }
}

/* ---- phones: centred hero, one-line buttons, blog slider ---- */
@media (max-width: 640px) {
  .hx-inner { text-align: center; }
  .hx-lede { margin-left: auto; margin-right: auto; }
  .hx-cta { flex-wrap: nowrap; justify-content: center; gap: 8px; }
  .hx-cta .btn, .hx-cta .btn.lg { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: .88rem; white-space: nowrap; }
  .hx-next { margin-left: auto; margin-right: auto; text-align: left; }
  .posts3 { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .posts3::-webkit-scrollbar { display: none; }
  .posts3 > .pc { flex: 0 0 82%; max-width: 330px; scroll-snap-align: start; }
}

@media (max-width: 860px) {
  .hx-next { width: 100%; max-width: 360px; grid-template-columns: 104px minmax(0, 1fr); }
  .hx-next-body { padding: 12px 14px; gap: 8px; }
  .hx-next .btn.sm { align-self: stretch; display: flex; align-items: center; justify-content: center; text-align: center; width: auto; min-height: 40px; padding: 0 16px; font-size: .88rem; font-weight: 600; line-height: 1; }
}

.aw-video { object-fit: cover; }
@media (max-width: 860px) {
  .duo, .duo.wide-right { gap: 18px; }
  .duo .vc > p:last-child { margin-bottom: 0; }
  .duo > div:has(> .aw-video) { margin: 0; line-height: 0; }
}

@media (max-width: 640px) { .posts3 { scroll-padding-left: 16px; scroll-padding-right: 16px; } }

@media (max-width: 640px) {
  .home .sec-head.sec-inline { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 10px; }
  .home .sec-head.sec-inline h2 { font-size: 1.3rem; white-space: nowrap; }
  .home .sec-head.sec-inline .btn { white-space: nowrap; flex: none; }
}
