/* Public websites: Kuniya Group and its institutions.
   Layout: the grid and sizes measured on sags.edu.in (container 1440 / 34 px gutters, 51 px
   section rhythm, 81 + 48 px header, 17 px text; 54 px header, 16:9 banner, 30 px rhythm on phones).
   Finish: KGI's own print style (letterheads, ID cards): royal blue on white, the gold of the
   crest, a bold serif for headings, Poppins for text, hairline rules and solid bars.
   No gradients, blobs or dot patterns. Plan: handoff/PLAN_SITE_POLISH_2026-11-13.md.
   --brand = the institution's colour, --accent = gold. */

:root {
  --brand: #293b91;
  --accent: #c9a24b;
  --accent2: #c9a24b;
  --brand-deep: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-tint: color-mix(in srgb, var(--brand) 6%, #fff);
  --ink: #1c2333;
  --text: #3a4256;
  --muted: #6b7386;
  --line: #e2e6ee;
  --paper: #fff;
  --wash: #f6f7fa;
  --serif: "Libre Baskerville", "Times New Roman", Times, serif;
  --sans: "Poppins", "Segoe UI", system-ui, sans-serif;
  --gut: 34px;          /* side gutter */
  --rhythm: 51px;       /* space above and below a section */
  --gap: 17px;          /* gap between cards */
  --radius: 14px;
  --lift: 0 14px 30px -18px rgba(20, 28, 60, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--text); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }
.ico.fill { fill: currentColor; stroke: none; }

/* ---------- buttons, links ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 6px; font: 600 14px/1 var(--sans); text-decoration: none;
       border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--accent); color: #1c1606; }
.btn-gold:hover { background: color-mix(in srgb, var(--accent) 88%, #000); color: #1c1606; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.link2 { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--sans); color: var(--brand); text-decoration: none; }
.link2 .ico { transition: transform .15s; }
.link2:hover .ico { transform: translateX(3px); }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background .15s, color .15s, border-color .15s; }
.round:hover, .round.solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.round.solid:hover { background: var(--brand-deep); }

/* ---------- header: 81 px white row + 48 px brand bar ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: #fff; }
.head-top { position: relative; z-index: 3; border-bottom: 1px solid var(--line); }
.head-top .wrap { display: flex; align-items: center; gap: 24px; height: 81px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; flex: none; }
.brand img.crest { height: 60px; width: auto; }
.brand img.wordmark { height: 46px; width: auto; max-width: 400px; object-fit: contain; object-position: left center; }
.brand-name { display: block; font: 700 19px/1.2 var(--serif); color: var(--brand); letter-spacing: .01em; }
.brand-sub { display: block; font: 500 11.5px/1.3 var(--sans); color: var(--muted); margin-top: 4px; letter-spacing: .02em; }
.quick { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav > ul > li { position: relative; }
.nav .nav-top { display: inline-flex; align-items: center; gap: 5px; height: 48px; padding: 0 14px; font: 500 14px var(--sans); color: #fff; text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav .nav-top .ico { width: 11px; height: 11px; opacity: .8; transition: transform .2s; }
.nav li.open > .nav-top .ico { transform: rotate(180deg); }
.quick .nav-top { height: 36px; padding: 0 11px; color: var(--text); font-size: 13px; }
.quick .nav-top:hover, .quick li.open > .nav-top, .quick .nav-top.current { color: var(--brand); }
.menu-bar { background: var(--brand); }
.menu-bar .wrap { display: flex; justify-content: flex-end; height: 48px; }
.menu-bar .nav-top:hover, .menu-bar li.open > .nav-top, .menu-bar .nav-top.current { background: var(--brand-deep); }
.menu-bar .nav-top.current { box-shadow: inset 0 -3px 0 var(--accent); }
.nav .drop { position: absolute; top: 100%; left: 0; min-width: 250px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--accent);
             border-radius: 0 0 8px 8px; box-shadow: var(--lift); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; z-index: 50; }
.quick .drop { left: auto; right: 0; }
.nav li.open > .drop { opacity: 1; visibility: visible; }
.nav .drop a { display: block; padding: 9px 12px; border-radius: 5px; color: var(--text); text-decoration: none; font: 400 14px/1.35 var(--sans); }
.nav .drop a:hover, .nav .drop a.current { background: var(--brand-tint); color: var(--brand); }
.portal { display: inline-flex; align-items: center; gap: 7px; align-self: center; height: 32px; padding: 0 16px; margin-left: 12px; background: var(--accent); color: #1c1606; font: 600 13px var(--sans); border-radius: 4px; text-decoration: none; white-space: nowrap; }
.portal:hover { background: color-mix(in srgb, var(--accent) 88%, #000); color: #1c1606; }
.nav li.m-only { display: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--brand); cursor: pointer; }
.menu-btn .ico { width: 24px; height: 24px; }
@media (min-width: 1081px) { .menu-bar .nav { display: flex; } .nav .nav-close { display: none; } }

/* ---------- banner ---------- */
.hero { position: relative; height: calc(100vh - 129px); min-height: 420px; max-height: 860px; background: var(--brand-deep); overflow: hidden; color: #fff; isolation: isolate; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img, .hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10, 14, 30, 0) 55%, rgba(10, 14, 30, .6) 100%); }
/* The film fills the banner and is scaled past its edges, so YouTube's title and buttons fall outside. */
.hero-video { position: absolute; inset: 0; overflow: hidden; }
.hero-video iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%) scale(1.32); border: 0; pointer-events: none; }
.hero-poster { position: absolute; inset: 0; z-index: 1; transition: opacity .8s ease; background: var(--brand-deep); }
.hero.playing .hero-poster { opacity: 0; }
.hero-plain { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 40px var(--gut) 110px; background: var(--brand); }
.hero-plain img { height: 150px; width: auto; margin: 0 auto 24px; background: #fff; border-radius: 50%; padding: 14px; }
.hero-plain h1 { color: #fff; font-size: clamp(26px, 3.6vw, 44px); margin-bottom: 10px; }
.hero-plain p { color: rgba(255, 255, 255, .85); font: italic 400 18px var(--serif); margin: 0; }
.hero-cap { position: absolute; left: 0; right: 0; bottom: 96px; z-index: 2; }
.hero-cap .tag { display: inline-block; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hero-cap h2 { color: #fff; font-size: clamp(22px, 2.9vw, 38px); max-width: 760px; margin: 0 0 8px; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.hero-cap p { color: rgba(255, 255, 255, .9); max-width: 620px; margin: 0 0 16px; }
.know { position: absolute; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-decoration: none; font: 600 10.5px var(--sans); letter-spacing: .22em; }
.know .mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 12px; position: relative; }
.know .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translate(-50%, 9px); opacity: 0; } }
.know .ico { width: 14px; height: 14px; opacity: .8; }
.hero-dots { position: absolute; z-index: 3; right: var(--gut); bottom: 30px; display: flex; gap: 8px; }
.hero-dots button { width: 26px; height: 3px; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: var(--accent); }
.sound { position: absolute; z-index: 3; right: var(--gut); top: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(10, 14, 30, .5); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* ---------- sections ---------- */
.section { position: relative; padding: var(--rhythm) 0; }
.bg-a { background: var(--paper); }
.bg-b, .bg-c { background: var(--wash); }
.dots-deco { display: none; }
.sec-title { position: relative; text-align: center; margin-bottom: 30px; }
.sec-title h2 { font-size: 27.5px; margin: 0; letter-spacing: -.005em; }
/* KGI's rule: a hairline with a short gold bar on it */
.bars { position: relative; width: 120px; height: 1px; margin: 14px auto 0; background: var(--line); }
.bars::after { content: ""; position: absolute; left: 50%; top: -1px; width: 36px; height: 3px; margin-left: -18px; background: var(--accent); }
.bars.left { margin: 10px 0 16px; }
.bars.left::after { left: 0; margin-left: 0; }
.sec-title .arrows { position: absolute; right: 0; top: 0; display: flex; gap: 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.center { text-align: center; margin-top: 30px; }

/* sliding rows: cards keep their size, as on SAGS, and the row scrolls */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 340px; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.r3 { grid-auto-columns: 360px; }
.rail.short { justify-content: center; }
.hl { display: flex; flex-direction: column; height: 304px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.hl:hover { box-shadow: var(--lift); border-color: transparent; color: var(--ink); }
.hl .media { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.hl .media img { width: 100%; height: 100%; object-fit: cover; }
.chip-date { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); font: 600 11.5px var(--sans); padding: 5px 10px; border-radius: 4px; }
.chip-date .ico { color: var(--accent); }
.hl h3 { flex: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 14.5px/1.4 var(--sans); text-align: center; margin: 14px 16px; height: 41px; }
/* a card with no photo: the date set large on the brand tint, never an empty grey box */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; height: 100%; background: var(--brand-tint); color: var(--brand); }
.ph b { font: 700 44px/1 var(--serif); }
.ph small { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.ph .ico { width: 36px; height: 36px; opacity: .55; }

/* head's message + why choose: two equal cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; align-items: stretch; }
.duo.one { grid-template-columns: minmax(0, 760px); justify-content: center; }
.duo > .card { padding: 24px; min-height: 328px; }
.pm { display: grid; grid-template-columns: 230px 1fr; gap: 24px; height: 100%; }
.pm-photo { position: relative; border-radius: 10px; overflow: hidden; background: var(--brand-tint); min-height: 278px; }
.pm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font: 600 13px var(--sans); background: linear-gradient(180deg, rgba(10, 14, 30, 0), rgba(10, 14, 30, .85)); }
.card h2.t { font-size: 21px; margin: 0; }
.quote-box { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; font: italic 400 15.5px/1.7 var(--serif); color: var(--text); }
.quote-box p { margin: 0 0 12px; }
.motto { margin-top: 16px; font: italic 400 14px var(--serif); color: var(--brand); }
.why p.lead { font-size: 14.5px; color: var(--text); margin-bottom: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 16px; }
.stat { display: flex; gap: 14px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 20px; }
.stat .ico { width: 26px; height: 26px; color: var(--brand); }
.stat b { display: block; font: 700 22px/1.1 var(--serif); color: var(--ink); }
.stat small { font: 500 12px var(--sans); color: var(--muted); }
.points { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.points li { position: relative; padding-left: 16px; font-size: 14px; color: var(--text); }
.points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--accent); }
.points b { color: var(--ink); font-weight: 600; }

/* news & events: featured story + 2 x 2 */
.news-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; align-items: stretch; }
.news-wrap.one { grid-template-columns: minmax(0, 760px); justify-content: center; }
.feat { position: relative; display: flex; flex-direction: column; background: var(--brand); border-radius: var(--radius); padding: 20px; color: #fff; overflow: hidden; }
.feat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.feat-head img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.feat-head b { display: block; font: 600 13px/1.3 var(--sans); }
.feat-head small { display: block; font: italic 400 11.5px var(--serif); color: rgba(255, 255, 255, .75); }
.feat-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.feat-slide { display: none; }
.feat-slide.on { display: flex; flex-direction: column; flex: 1; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; } }
.feat-media { aspect-ratio: 16 / 8.2; border-radius: 8px; overflow: hidden; background: var(--brand-deep); }
.feat-media img, .feat-media .ph { width: 100%; height: 100%; object-fit: cover; }
.feat-media .ph { background: var(--brand-deep); color: #fff; }
.feat .date { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font: 600 12px var(--sans); letter-spacing: .06em; margin: 16px 0 6px; }
.feat h3 { color: #fff; font-size: 21px; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat p { color: rgba(255, 255, 255, .82); font-size: 14.5px; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat a.more { margin-top: auto; color: var(--accent); font: 600 13px var(--sans); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.feat-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.feat-dots button { width: 22px; height: 3px; border: 0; background: rgba(255, 255, 255, .35); padding: 0; cursor: pointer; }
.feat-dots button[aria-current="true"] { background: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: var(--gap); }
.nc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
a.nc:hover { box-shadow: var(--lift); border-color: transparent; color: var(--text); }
.nc .media { aspect-ratio: 16 / 9; overflow: hidden; flex: none; }
.nc .media img { width: 100%; height: 100%; object-fit: cover; }
.nc .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.nc .date { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px var(--sans); letter-spacing: .06em; color: var(--brand); }
.nc h3 { font: 600 15px/1.4 var(--sans); color: var(--ink); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc .rm { margin-top: auto; padding-top: 8px; font: 600 12.5px var(--sans); color: var(--brand); display: inline-flex; align-items: center; gap: 5px; }

/* campus life: four tiles, 360 px tall */
.life { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.life a { position: relative; height: 360px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; display: flex; align-items: flex-end; background: var(--brand); }
.life img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.life a:hover img { transform: scale(1.05); }
.life a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 30, 0) 50%, rgba(10, 14, 30, .78)); }
.life .lbl { position: relative; z-index: 1; padding: 20px; }
.life .gl { display: none; }
.life b { font: 700 19px/1.3 var(--serif); display: block; }
.life b::after { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); margin-top: 10px; }

/* videos */
.vc { height: 306px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vc button { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; flex: none; border: 0; padding: 0; cursor: pointer; background: #000; }
.vc button img { width: 100%; height: 100%; object-fit: cover; }
.vc .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; transition: transform .2s; }
.vc button:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.vc .play .ico { width: 18px; height: 18px; margin-left: 2px; }
.vc .meta { padding: 14px 16px; }
.vc small { display: block; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.vc b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 14.5px/1.4 var(--sans); color: var(--ink); margin-top: 4px; }
.grid-cards .vc { height: auto; }

/* testimonials */
.tc { height: 284px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.tc .chip { align-self: flex-start; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.tc blockquote { margin: 0 0 8px; font: italic 400 14.5px/1.65 var(--serif); color: var(--text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tc .who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.tc .who img, .tc .av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.tc .av { display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font: 600 13px var(--sans); }
.tc .who b { display: block; font: 600 13.5px var(--sans); color: var(--ink); }
.tc .who small { display: block; font-size: 12px; color: var(--muted); }
.tc .rm { background: none; border: 0; padding: 0; cursor: pointer; font: 600 13px var(--sans); color: var(--brand); display: inline-flex; gap: 5px; align-items: center; align-self: flex-start; }
.grid-cards .tc { height: auto; }

/* institutions (group site) */
.insts { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--gap); }
.inst { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--c, var(--brand)); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); transition: box-shadow .2s; }
.inst:hover { box-shadow: var(--lift); color: var(--text); }
.inst .top { display: flex; gap: 16px; align-items: center; }
.inst img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.inst h3 { font-size: 18px; margin: 0; }
.inst p { color: var(--muted); margin: 0; font-size: 14px; }
.inst .link2 { margin-top: auto; }

/* ---------- inner pages ---------- */
.page-bar { background: var(--brand-deep); color: #fff; }
.page-bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font: 500 13px var(--sans); text-decoration: none; }
.back:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.homei { width: 32px; height: 32px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; color: #fff; }
.page-bar h1 { color: #fff; font-size: 20px; margin: 0; padding-left: 14px; border-left: 2px solid var(--accent); }
.page-bar .sub { color: rgba(255, 255, 255, .72); font-size: 13px; }
#main { background: var(--wash); }
.page { padding-top: 34px; padding-bottom: 68px; }
.page-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 34px; align-items: start; }
.split .pic { border-radius: 10px; overflow: hidden; }
.split .pic img { width: 100%; max-height: 440px; object-fit: cover; }
.pills, .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); background: #fff; color: var(--text); font: 500 12.5px var(--sans); text-decoration: none; }
.pill.dark, .pill.on, a.pill:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.prose { font-size: 16.5px; line-height: 1.75; color: var(--text); max-width: 900px; }
.split .prose, .result.prose { max-width: none; }
.prose h2 { font-size: 23px; margin: 1.5em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { font-size: 18.5px; margin: 1.3em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); font: italic 400 17px/1.7 var(--serif); }
.prose blockquote p { margin: 0; }
.prose > h1.t { font-size: 27px; margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--brand-tint); color: var(--ink); font: 600 13px var(--sans); }
.prose tr:last-child td { border-bottom: 0; }
table.kv { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14.5px; border: 1px solid var(--line); }
table.kv td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.kv td:first-child { width: 42%; color: var(--ink); font-weight: 500; background: var(--brand-tint); }
.more-in { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.more-in b { font: 600 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.empty { border: 1px dashed var(--line); border-radius: 8px; padding: 36px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.album { margin-top: 30px; }
.album h2, .people-group { font-size: 20px; margin: 0; }
.people-group:not(:first-child) { margin-top: 34px; }
.result { margin-bottom: 30px; }
.result h2 { font-size: 21px; margin: 0; }
.result .flyer { max-width: 420px; margin: 0 0 16px; cursor: zoom-in; border: 0; padding: 0; background: none; display: block; }
.result .flyer img { border-radius: 8px; }
.list-ach { display: grid; gap: var(--gap); }
.ach { display: grid; grid-template-columns: 240px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ach .media { min-height: 170px; background: var(--brand-tint); }
.ach .media img { width: 100%; height: 100%; object-fit: cover; }
.ach .body { padding: 20px 24px; }
.ach .rank { display: inline-block; font: 600 11.5px var(--sans); letter-spacing: .1em; color: var(--brand); margin-bottom: 6px; }
.ach h3 { font-size: 19px; margin: 0 0 4px; }
.ach .who { color: var(--brand); font: 600 13.5px var(--sans); margin-bottom: 8px; }
.ach p { font-size: 14.5px; margin: 0; }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--gap); }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; }
.person .pp { aspect-ratio: 1 / 1.05; background: var(--brand-tint); display: grid; place-items: center; overflow: hidden; }
.person .pp img { width: 100%; height: 100%; object-fit: cover; }
.person .avatar { font: 700 38px var(--serif); color: var(--brand); }
.person .avatar[hidden], .person img[hidden] { display: none; }
.person .info { padding: 14px 12px 16px; }
.person b { display: block; font: 600 15px/1.35 var(--sans); color: var(--ink); }
.person span { display: block; color: var(--muted); font-size: 13px; }

/* documents, gallery, contact */
.docs { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.docs a { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; color: var(--text); text-decoration: none; }
.docs a:hover { border-color: var(--brand); color: var(--brand); }
.docs .ico { width: 20px; height: 20px; color: var(--brand); }
.docs small { margin-left: auto; color: var(--muted); }
.masonry { columns: 4 280px; column-gap: var(--gap); }
.masonry button { display: block; width: 100%; margin: 0 0 var(--gap); padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: none; break-inside: avoid; }
.masonry img { width: 100%; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 21px; align-items: start; }
.contact-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .ico { width: 20px; height: 20px; color: var(--brand); margin-top: 4px; }
.contact-line b { display: block; font: 600 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
label.f { display: block; font: 500 13.5px var(--sans); margin-bottom: 6px; color: var(--ink); }
.in { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font: 400 15px var(--sans); background: #fff; color: var(--ink); }
.in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.alert { padding: 13px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 15px; }
.alert.ok { background: #edf7f0; color: #14532d; border: 1px solid #bfe3ca; }
.alert.err { background: #fdf0f0; color: #7f1d1d; border: 1px solid #f1c7c7; }
.hp { position: absolute; left: -9999px; }
.map-frame { width: 100%; height: 340px; border: 0; border-radius: var(--radius); margin-top: 21px; }

/* ---------- footer: KGI's letterhead foot - a rule, the details, a solid bar ---------- */
.footer { background: var(--brand-deep); color: rgba(255, 255, 255, .76); font-size: 14.5px; border-top: 3px solid var(--accent); }
.footer a { color: rgba(255, 255, 255, .84); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; padding-top: 51px; padding-bottom: 40px; }
.foot-logo { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: 8px; padding: 10px 16px; margin-bottom: 18px; }
.foot-logo img.crest { height: 48px; width: auto; }
.foot-logo img.wordmark { height: 36px; width: auto; max-width: 280px; object-fit: contain; }
.foot-logo span { font: 700 14px/1.3 var(--serif); color: var(--brand); max-width: 220px; }
.footer .tagline { font: italic 400 14px var(--serif); color: var(--accent); margin-bottom: 10px; }
.footer h4 { color: #fff; font: 600 12.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-contact li { display: flex; gap: 10px; }
.foot-contact .ico { margin-top: 5px; color: var(--accent); flex: none; }
.follow { margin-top: 18px; font: 600 11.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .22); display: grid; place-items: center; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #1c1606; text-decoration: none; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 0; font-size: 13px; }
.foot-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.foot-bottom .credit b { color: #fff; font-weight: 600; }
.foot-bottom .legal { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- side dock, back to top, dialogs ---------- */
.dock { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 45; display: flex; flex-direction: column; gap: 8px; }
.dock a { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .15s; }
.dock a:hover { background: var(--brand); color: #fff; }
.dock a.wa { background: #1f9d55; }
.dock .ico { width: 16px; height: 16px; }
.to-top { position: fixed; right: 14px; bottom: 18px; z-index: 45; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
dialog.modal { border: 0; padding: 0; border-radius: 10px; max-width: min(92vw, 560px); background: transparent; overflow: visible; }
dialog.modal::backdrop { background: rgba(10, 14, 30, .78); }
dialog.modal img { border-radius: 10px; max-height: 82vh; width: auto; margin: 0 auto; }
dialog.modal .x { position: absolute; top: -16px; right: -16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; z-index: 2; }
dialog.wide { max-width: min(94vw, 980px); width: 100%; }
dialog.wide iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; background: #000; }
dialog.text { background: #fff; padding: 30px; max-width: min(92vw, 620px); }
dialog.text blockquote { margin: 0 0 14px; font: italic 400 16px/1.7 var(--serif); color: var(--text); }

/* loading screen (first page of a visit): the crest on white, as on the letterhead */
.loader { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; text-align: center; background: #fff; transition: opacity .4s; }
html.first .loader { display: grid; }
.loader.done { opacity: 0; pointer-events: none; }
.loader img { height: 96px; width: auto; margin: 0 auto 18px; }
.loader b { display: block; font: 700 19px var(--serif); color: var(--brand); }
.loader small { display: block; margin-top: 6px; font: italic 400 14px var(--serif); color: var(--muted); }
.loader i { display: block; width: 140px; height: 2px; margin: 20px auto 0; background: var(--line); overflow: hidden; position: relative; }
.loader i::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.preview-bar { background: #fff8e1; color: #5c4300; text-align: center; font-size: 13px; padding: 7px 16px; border-bottom: 1px solid #f0dca0; }
.soon { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; background: var(--brand); color: #fff; }
.soon > div { max-width: 680px; min-width: 0; }
.soon img { height: 120px; width: auto; margin: 0 auto 24px; background: #fff; border-radius: 50%; padding: 12px; }
.soon h1 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); }
.soon p { color: rgba(255, 255, 255, .85); }
.soon a { color: #fff; }

/* content settles in once, quietly */
.rv { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.rv.seen { opacity: 1; transform: none; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1080px) {
  :root { --gut: 24px; }
  .quick { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-bar { display: none; }
  body.nav-open .menu-bar { display: block; }
  .menu-bar .wrap { display: block; height: auto; padding: 0; }
  #site-nav { position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); background: var(--brand); z-index: 60; padding: 64px 16px 24px; overflow-y: auto; animation: navin .25s ease; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(10, 14, 30, .55); z-index: 55; }
  body.nav-open .site-head { z-index: 70; }
  #site-nav > ul { flex-direction: column; align-items: stretch; }
  #site-nav .nav-top { width: 100%; justify-content: space-between; height: 48px; padding: 0 10px; font-size: 15.5px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  #site-nav .nav-top.current { box-shadow: none; }
  #site-nav .drop { position: static; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-radius: 0; padding: 4px 0 8px 12px; display: none; min-width: 0; background: none; }
  #site-nav li.open > .drop { display: block; }
  #site-nav .drop a { color: rgba(255, 255, 255, .88); padding: 10px 12px; }
  #site-nav .drop a:hover, #site-nav .drop a.current { background: rgba(255, 255, 255, .1); color: #fff; }
  #site-nav li.m-only { display: block; }
  #site-nav .nav-close { position: absolute; top: 12px; right: 12px; }
  .portal { margin: 20px 0 0; height: 44px; justify-content: center; display: flex; }
  .duo, .news-wrap, .contact-grid, .split { grid-template-columns: 1fr; }
  .life { grid-template-columns: repeat(2, 1fr); }
  .life a { height: 300px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .hero-video iframe { width: 100%; height: 100%; min-width: 0; min-height: 0; }
  .sec-title .arrows { top: -4px; }
}
@keyframes navin { from { transform: translateX(100%); } }
@media (max-width: 640px) {
  :root { --gut: 16px; --rhythm: 30px; --gap: 14px; }
  body { font-size: 15px; }
  .head-top .wrap { height: 54px; gap: 10px; }
  .brand { gap: 10px; }
  .brand img.crest { height: 40px; }
  .brand img.wordmark { height: 30px; max-width: 230px; }
  .brand-name { font-size: 14.5px; }
  .brand-sub { display: none; }
  .sec-title { margin-bottom: 22px; text-align: left; }
  .sec-title h2 { font-size: 22px; padding-right: 96px; }
  .sec-title .bars { margin-left: 0; }
  .sec-title .bars::after { left: 0; margin-left: 0; }
  .hero-cap { bottom: 16px; }
  .hero-cap h2 { font-size: 17px; margin: 0; }
  .hero-cap p, .hero-cap .btn, .hero-cap .tag, .know, .hero-dots { display: none; }
  .hero-plain { padding: 16px; }
  .hero-plain img { height: 64px; margin-bottom: 10px; padding: 6px; }
  .hero-plain h1 { font-size: 18px; margin-bottom: 4px; }
  .hero-plain p { font-size: 13px; }
  .rail, .rail.r3 { grid-auto-columns: 84%; }
  .hl { height: 280px; }
  .duo > .card { padding: 18px; min-height: 0; }
  .pm { grid-template-columns: 1fr; gap: 16px; }
  .pm-photo { min-height: 0; aspect-ratio: 4 / 3.4; }
  .grid2, .form-grid { grid-template-columns: 1fr; }
  .life a { height: 220px; }
  .life b { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; }
  .page { padding-top: 20px; padding-bottom: 40px; }
  .page-card { padding: 18px; }
  .page-bar h1 { font-size: 17px; }
  .prose { font-size: 15.5px; }
  .ach { grid-template-columns: 1fr; }
  .dock { top: auto; bottom: 72px; transform: none; }
  .dock a:not(.call):not(.wa) { display: none; }
  .dock a { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
@media print { .site-head, .dock, .to-top, .footer, .loader { display: none; } }

/* head's message without a photo: the text takes the card, signed at the foot */
.pm.nophoto { grid-template-columns: 1fr; }
.signed { margin-top: 16px; }
.signed b { display: block; font: 700 16px var(--serif); color: var(--ink); }
.signed span { font-size: 13px; color: var(--muted); }
/* the numbers sit in one row, however many there are */
.stats { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stats.n3 { grid-template-columns: repeat(3, 1fr); }
.stats.n2 { grid-template-columns: repeat(2, 1fr); }
.stats.n1 { grid-template-columns: 1fr; }
.stats .stat { border-bottom: 0; border-right: 1px solid var(--line); padding: 16px 12px; }
.stats .stat:first-child { padding-left: 4px; }
.stats .stat:last-child { border-right: 0; }
@media (max-width: 640px) { .stats, .stats.n3 { grid-template-columns: 1fr 1fr; } .stats .stat { border-bottom: 1px solid var(--line); } .stats .stat:nth-child(even) { border-right: 0; } }
.sound[hidden] { display: none; }

/* nothing may push a grid or the page wider than the screen */
.split > *, .contact-grid > *, .form-grid > *, .duo > *, .news-wrap > *, .grid2 > *, .foot-grid > *, .pm > * { min-width: 0; }
.prose, .page-card, .inst, .nc, .footer { overflow-wrap: anywhere; }
table.kv { table-layout: fixed; }
.brand { flex: 0 1 auto; }
.brand img.wordmark { min-width: 0; }
@media (max-width: 640px) {
  .brand img.wordmark { height: auto; max-height: 30px; max-width: calc(100vw - 152px); }
  table.kv td { padding: 9px 10px; font-size: 13.5px; }
  table.kv td:first-child { width: 40%; }
}
/* the home "why" card: the introduction is kept to three lines so both cards stay near SAGS's 328 px */
.why p.lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.foot-logo { max-width: 100%; }
.foot-logo img.wordmark { height: auto; max-height: 36px; min-width: 0; flex: 0 1 auto; max-width: min(280px, calc(100vw - 150px)); }
