/* =============================================================================
   Samrongwittayakarn School — public site (/2570), design "เช้าที่สำโรง" (morning at Samrong)
   Plain CSS, no build step. Sections: tokens · base · layout · header · drawer · buttons ·
   hero + scene · ticker · sections · services · banners · news · director · gallery ·
   inner pages · footer · motion · responsive.
   ============================================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy: #17345A;
  --navy-2: #24497A;
  --navy-soft: #E8EEF7;
  --crimson: #D1143E;
  --crimson-dark: #A80F31;
  --gold: #F6B53B;
  --sky: #E3EEFB;
  --rice: #3E9B5C;
  --white: #FFFFFF;
  --soft: #F5F7FB;
  --line: #DCE3EE;
  --muted: #5B6B82;
  --ink: #1C2B40;
  --head: "Anuphan", "Noto Sans Thai", sans-serif;
  --body: "Noto Sans Thai Looped", "Noto Sans Thai", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 20px;
  --shadow: 0 18px 36px -18px rgba(23, 52, 90, .45);
  --header-h: 78px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 17px/1.75 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; line-height: 1.3; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; scroll-margin-top: var(--header-h); }
.section.soft { background: var(--soft); }
.section.flush { padding-top: 0; }   /* continues the section above it */
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.head p { margin-top: 6px; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--crimson); font: 600 16px var(--head); text-decoration: none; white-space: nowrap; }
.more .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.more:hover .ico { transform: translateX(4px); }
.empty { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--muted); background: #fff; }
.empty .ico { width: 40px; height: 40px; color: var(--navy-2); margin: 0 auto 10px; display: block; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(23, 52, 90, .25); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: 52px; width: auto; }
.brand-text { display: none; }   /* only when the logo image cannot load */
.brand img[hidden] + .brand-text { display: block; }
.brand-text b { font: 600 18px/1.2 var(--head); display: block; }
.brand-text small { color: var(--muted); font-size: 13px; }

.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.nav > li { position: relative; list-style: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; font: 500 16px var(--head); color: var(--navy); text-decoration: none; background: none; border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.nav-link .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--crimson); }
.nav li:hover > .nav-link .ico, .nav-link[aria-expanded="true"] .ico { transform: rotate(180deg); }
.dropdown { position: absolute; left: 0; top: 100%; min-width: 280px; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown, .nav-link[aria-expanded="true"] + .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown ul { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: var(--shadow); }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-size: 15px; color: var(--ink); }
.dropdown a .ico { width: 20px; height: 20px; color: var(--crimson); }
.dropdown a:hover { background: var(--soft); color: var(--crimson); }
.nav li:last-child .dropdown, .nav li:nth-last-child(2) .dropdown, .nav li:nth-last-child(3) .dropdown { left: auto; right: 0; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--navy); color: #fff; place-items: center; cursor: pointer; }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; visibility: hidden; }
.drawer .shade { position: absolute; inset: 0; background: rgba(23, 52, 90, .5); opacity: 0; transition: opacity .3s; }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(88%, 380px); background: #fff; padding: 16px; transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; overflow-y: auto; }
.drawer.open { visibility: visible; }
.drawer.open .shade { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer .panel-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; font: 600 17px var(--head); }
.drawer .close { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--soft); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a, .drawer .group-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; background: none; border-radius: 12px; text-decoration: none; font: 500 17px var(--head); color: var(--navy); cursor: pointer; text-align: left; }
.drawer a:hover, .drawer .group-btn:hover { background: var(--soft); }
.drawer a.active { background: var(--navy-soft); color: var(--crimson); }
.drawer .ico { color: var(--crimson); }
.drawer .group-btn .chev { margin-left: auto; color: var(--muted); width: 18px; height: 18px; transition: transform .25s var(--ease); }
.drawer .group-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.drawer .sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.drawer .sub > ul { overflow: hidden; padding-left: 38px; }
.drawer .group-btn[aria-expanded="true"] + .sub { grid-template-rows: 1fr; }
.drawer .sub a { font: 400 16px var(--body); padding: 9px 12px; }
.drawer .sub .ico { width: 18px; height: 18px; }
.drawer .contact { margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer .contact a { justify-content: center; background: var(--crimson); color: #fff; font-weight: 600; }
.drawer .contact a .ico { color: #fff; }
.drawer .contact a + a { background: var(--navy-soft); color: var(--navy); }
.drawer .contact a + a .ico { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 0; font: 600 16px var(--head); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn .ico { width: 20px; height: 20px; }
.btn.primary { background: var(--crimson); color: #fff; box-shadow: 0 10px 24px -10px rgba(209, 20, 62, .7); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(209, 20, 62, .8); }
.btn.second { background: #fff; border: 1.5px solid var(--line); color: var(--navy); }
.btn.second:hover { border-color: var(--navy); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-2); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 72px; background: linear-gradient(180deg, var(--white), var(--sky) 140%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; }
.greet { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 500 15px var(--head); }
.greet .ico { width: 22px; height: 22px; color: var(--gold); }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 700; margin-top: 18px; letter-spacing: -.01em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line span { display: inline-block; }
.hero h1 .line:last-child { color: var(--crimson); }
.motto { margin-top: 16px; font: 500 21px var(--head); color: var(--navy-2); }
.lede { margin-top: 10px; color: var(--muted); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.scene { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 600 / 460; box-shadow: 0 30px 60px -30px rgba(23, 52, 90, .45); background: #fde6c4; }
.scene svg { display: block; width: 100%; height: 100%; }
.scene .caption { position: absolute; left: 16px; right: 16px; bottom: 16px; max-width: 420px; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .95); padding: 10px 16px 10px 10px; border-radius: 16px; font: 500 15px/1.4 var(--head); text-decoration: none; transition: transform .25s var(--ease); }
a.caption:hover { transform: translateY(-2px); }
.scene .caption i { width: 40px; height: 40px; border-radius: 12px; background: var(--crimson); color: #fff; display: grid; place-items: center; flex: none; }
.scene .caption span { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scene .caption small { display: block; color: var(--muted); font: 400 13px var(--body); }

/* ---------- Announcement ticker ---------- */
.ticker { background: var(--navy); color: #fff; }
.ticker .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.ticker .tag { flex: none; display: inline-flex; align-items: center; gap: 8px; background: var(--crimson); padding: 6px 14px; border-radius: 10px; font: 600 15px var(--head); color: #fff; text-decoration: none; }
.ticker .tag .ico { width: 20px; height: 20px; }
.ticker .track-wrap { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker .track { display: flex; width: max-content; }
.ticker .track a { text-decoration: none; white-space: nowrap; color: #dbe6f5; padding-right: 56px; }   /* padding, not gap: the -50% loop lands exactly */
.ticker .track a:hover { color: #fff; text-decoration: underline; }
.ticker .track b { color: var(--gold); font-weight: 500; margin-right: 8px; }
.ticker .pause { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.ticker .pause .ico { width: 18px; height: 18px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.svc { display: flex; flex-direction: column; gap: 4px; padding: 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.svc:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow); }
.svc .badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 12px; color: var(--c, var(--navy)); background: color-mix(in srgb, var(--c, var(--navy)) 12%, white); transition: background .25s, color .25s; }
.svc:hover .badge { background: var(--c, var(--navy)); color: #fff; }
.svc .badge .ico { width: 28px; height: 28px; }
.svc b { font: 600 17px/1.35 var(--head); }
.svc small { color: var(--muted); font-size: 14px; }
@keyframes wiggle { 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg); } }

/* ---------- Banner carousel (admin "แบนเนอร์หน้าแรก") ---------- */
.banners { position: relative; border-radius: 28px; overflow: hidden; background: var(--navy); aspect-ratio: 12 / 5; }
.banners .slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.banners .slide.on { opacity: 1; visibility: visible; }
.banners img { width: 100%; height: 100%; object-fit: cover; }
.banners .slide.noimg { background: radial-gradient(circle at 85% 20%, rgba(246, 181, 59, .45), transparent 40%), linear-gradient(120deg, var(--navy) 40%, var(--crimson)); }
.banners .slide.noimg .shade { display: none; }
.banners .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 52, 90, .9), rgba(23, 52, 90, .3) 55%, transparent); }
.banners .text { position: absolute; left: 0; bottom: 0; padding: 40px; max-width: 680px; color: #fff; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.banners .text .chip { background: var(--crimson); padding: 3px 12px; border-radius: 999px; font: 600 13px var(--head); }
.banners .text h3 { font-size: clamp(24px, 3vw, 40px); font-weight: 700; }
.banners .text p { color: #dbe6f5; }
.banners .cover-link { position: absolute; inset: 0; }
.banners .controls { position: absolute; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.banners .controls button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(23, 52, 90, .35); color: #fff; display: grid; place-items: center; cursor: pointer; }
.banners .dots { display: flex; gap: 6px; }
.banners .dots button { width: 10px; height: 10px; padding: 0; border: 0; background: rgba(255, 255, 255, .5); transition: width .3s var(--ease), background .3s; border-radius: 999px; }
.banners .dots button[aria-current="true"] { width: 28px; background: #fff; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 28px; max-width: 100%; }
.tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 18px; border-radius: 10px; font: 500 15px var(--head); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tabs button .ico { width: 18px; height: 18px; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--navy); transition: left .35s var(--ease), width .35s var(--ease); }

/* ---------- News cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: 22px; overflow: hidden; text-decoration: none; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(23, 52, 90, .5); }
.card .ph { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: linear-gradient(150deg, #9db7dc, var(--navy-2)); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .ph img { transform: scale(1.05); }
.card .ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .8); }
.card .ph .noimg .ico { width: 44px; height: 44px; }
.card .cat { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy); border-radius: 999px; padding: 4px 12px 4px 8px; font: 500 13px var(--head); }
.card .cat .ico { width: 16px; height: 16px; color: var(--crimson); }
.card .pin { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; }
.card .pin .ico { width: 16px; height: 16px; }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 19px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { color: var(--crimson); }
.card .excerpt { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .date { margin-top: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.card .date .ico { width: 16px; height: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Documents + ITA + director ---------- */
.trio { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.doclist { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.doclist li + li { border-top: 1px solid var(--line); }
.doclist a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; text-decoration: none; }
.doclist a:hover b { color: var(--crimson); }
.doc-ext { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font: 700 12px var(--head); color: #fff; background: var(--c, var(--navy-2)); flex: none; }
.doclist b { display: block; font: 600 16px/1.4 var(--head); }
.doclist small { color: var(--muted); font-size: 14px; }
.doclist .dl { margin-left: auto; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--navy); flex: none; transition: background .2s, color .2s; }
.doclist a:hover .dl { background: var(--crimson); color: #fff; }
.side { display: flex; flex-direction: column; gap: 20px; }
.director { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 28px; padding: 32px; margin: 0; }
.director::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 181, 59, .35), transparent 70%); pointer-events: none; }
.director .q { width: 40px; height: 40px; color: var(--gold); }
.director blockquote { margin: 12px 0 22px; font: 500 clamp(19px, 2vw, 23px)/1.6 var(--head); }
.director figcaption { display: flex; align-items: center; gap: 14px; }
.director .avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--navy-2); display: grid; place-items: center; overflow: hidden; flex: none; }
.director .avatar img { width: 100%; height: 100%; object-fit: cover; }
.director figcaption b { display: block; font: 600 17px var(--head); }
.director figcaption small { color: #b9c8de; }
.ita-card { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius); background: color-mix(in srgb, #7A4FC8 10%, white); text-decoration: none; transition: transform .25s var(--ease); }
.ita-card:hover { transform: translateY(-3px); }
.ita-card .badge { width: 56px; height: 56px; border-radius: 16px; background: #7A4FC8; color: #fff; display: grid; place-items: center; flex: none; }
.ita-card b { display: block; font: 600 19px var(--head); }
.ita-card small { color: var(--muted); }
.ita-card > .ico { margin-left: auto; color: #7A4FC8; }
.ita-card.spaced { margin-top: 32px; }
.ita-card.navy { background: var(--navy-soft); }
.ita-card.navy .badge { background: var(--navy); }
.ita-card.navy > .ico { color: var(--navy); }
.updated { margin-top: 32px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.updated .ico { width: 18px; height: 18px; }
.prose.wide { max-width: none; margin-top: 24px; padding: 28px; }

/* ---------- Gallery strip ---------- */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.album { scroll-snap-align: start; text-decoration: none; }
.album .ph { aspect-ratio: 4 / 5; border-radius: 22px; background: linear-gradient(150deg, #9db7dc, var(--navy-2)); position: relative; overflow: hidden; transition: box-shadow .25s; }
.album .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.album:hover .ph img { transform: scale(1.06); }
.album .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(23, 52, 90, .8)); }
.album .ph .title { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; color: #fff; font: 600 18px/1.35 var(--head); }
.album .ph em { position: absolute; z-index: 1; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .92); color: var(--navy); font: 500 13px var(--head); font-style: normal; padding: 4px 10px; border-radius: 999px; }
.album .ph em .ico { width: 15px; height: 15px; }
.album:hover .ph { box-shadow: 0 0 0 3px var(--gold); }

/* ---------- Inner pages: header band ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--white), var(--sky)); padding: 32px 0 44px; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 181, 59, .45), rgba(246, 181, 59, 0) 68%); pointer-events: none; }   /* the morning sun, echoing the home page */
.page-hero .wrap { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; }
.page-hero .mark { width: 72px; height: 72px; border-radius: 22px; background: #fff; border: 1px solid var(--line); color: var(--crimson); display: grid; place-items: center; flex: none; box-shadow: 0 12px 28px -18px rgba(23, 52, 90, .5); }
.page-hero .mark .ico { width: 34px; height: 34px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; margin: 0 0 8px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--crimson); }
.crumbs .ico { width: 14px; height: 14px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; }
.page-hero p { margin-top: 6px; color: var(--muted); max-width: 46em; }
.page-body { padding-top: 48px; padding-bottom: 24px; }   /* top/bottom only: it shares elements with .wrap */
.page-body.tight { padding-top: 20px; }

/* Two columns: content + sticky sidebar */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.box h2 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.box h2 .ico { width: 20px; height: 20px; color: var(--crimson); }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li + li { border-top: 1px solid var(--line); }
.linklist a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; text-decoration: none; font-size: 15.5px; color: var(--ink); }
.linklist a .ico { width: 20px; height: 20px; color: var(--navy-2); }
.linklist a .count { margin-left: auto; font-size: 13px; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 1px 9px; }
.linklist a:hover, .linklist a[aria-current] { color: var(--crimson); }
.linklist a[aria-current] .ico { color: var(--crimson); }
.linklist a[aria-current] { font-weight: 600; }

/* Rich text from the editor */
.prose { color: var(--ink); font-size: 17.5px; line-height: 1.85; max-width: 760px; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; margin-top: 1.6em; color: var(--navy); }
.prose h3 { font-size: 21px; margin-top: 1.4em; color: var(--navy); }
.prose h4 { font-size: 18px; margin-top: 1.2em; }
.prose a { color: var(--crimson); text-underline-offset: 3px; }
.prose img { border-radius: 16px; height: auto; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--crimson); }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--gold); background: var(--soft); border-radius: 0 14px 14px 0; font-family: var(--head); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-family: var(--head); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.prose iframe { max-width: 100%; border: 0; border-radius: 16px; }

/* Cards of sub-pages (about index) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tile { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.tile:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow); }
.tile .badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; color: var(--crimson); background: color-mix(in srgb, var(--crimson) 10%, white); transition: background .25s, color .25s; }
.tile:hover .badge { background: var(--crimson); color: #fff; }
.tile b { display: block; font: 600 18px/1.4 var(--head); }
.tile small { display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; }

/* Contact */
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info .item { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.info .badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff; background: var(--c, var(--navy)); }
.info h2 { font-size: 18px; margin-bottom: 4px; }
.info address { font-style: normal; }
.info a { color: var(--crimson); font-weight: 600; text-decoration: none; }
.info a:hover { text-decoration: underline; }
.info small { color: var(--muted); display: block; }
.map { margin-top: 24px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 9; background: var(--soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Filter bar (news) */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.bar { margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font: 500 15px var(--head); color: var(--navy); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip .ico { width: 18px; height: 18px; color: var(--crimson); }
.chip:hover { border-color: var(--navy); }
.chip[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-current] .ico { color: var(--gold); }
.search { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.field { position: relative; display: flex; align-items: center; }
.field > .ico { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.field input, .field select { height: 46px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 14px 0 44px; font: 400 16px var(--body); color: var(--ink); min-width: 0; }
.field select { padding-left: 14px; padding-right: 36px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B82' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(36, 73, 122, .18); }
.result-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -12px 0 24px; color: var(--muted); }
.result-note a { color: var(--crimson); font-weight: 600; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span { min-width: 46px; height: 46px; padding: 0 12px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font: 600 16px var(--head); border: 1px solid var(--line); background: #fff; }
.pager a:hover { border-color: var(--navy); }
.pager [aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .gap { border: 0; background: none; color: var(--muted); }
.pager .ico { width: 18px; height: 18px; }

/* People */
.dept-nav { position: sticky; top: var(--header-h); z-index: 5; background: rgba(255, 255, 255, .96); padding: 12px 0; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.dept-nav .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dept-nav .chips::-webkit-scrollbar { display: none; }
.people-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.people-tools .field input { width: min(360px, 100%); }
.dept { padding: 36px 0 12px; scroll-margin-top: calc(var(--header-h) + 76px); }
.dept-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 22px; }
.dept-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.dept-head .n { color: var(--muted); }
.dept-head .more { margin-left: auto; }
.heads { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 18px; }
.heads > * { width: min(100%, 600px); }
.head-card { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.head-card .photo { width: 200px; flex: none; aspect-ratio: 3 / 4; background: var(--navy-soft); display: grid; place-items: center; color: var(--navy-2); }
.head-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.head-card .photo .ico { width: 54px; height: 54px; }
.head-card .info-col { padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.role { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--crimson); color: #fff; font: 600 13px/1.4 var(--head); padding: 4px 12px; border-radius: 999px; }
.role .ico { width: 15px; height: 15px; color: var(--gold); }
.head-card h3 { font-size: clamp(20px, 2vw, 24px); }
.head-card p { color: var(--ink); }
.head-card .tel { align-self: flex-start; }
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }   /* flex + center keeps a short last row centred */
.people > * { width: calc(25% - 13.5px); }
.person { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; text-align: center; transition: transform .25s var(--ease), box-shadow .25s; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person .photo { aspect-ratio: 3 / 4; background: var(--navy-soft); display: grid; place-items: center; color: var(--navy-2); overflow: hidden; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person .photo .ico { width: 48px; height: 48px; }
.person .txt { padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 2px; align-items: center; flex: 1; }
.person h3 { font-size: 17px; font-weight: 600; }
.person p { font-size: 14.5px; color: var(--ink); }
.person .duty { color: var(--crimson); font-size: 13.5px; font-weight: 500; }
.tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; text-decoration: none; font: 600 15px var(--head); color: var(--navy); background: var(--soft); margin-top: 8px; transition: background .2s, color .2s; }
.tel .ico { width: 18px; height: 18px; color: var(--crimson); }
.tel:hover { background: var(--crimson); color: #fff; }
.tel:hover .ico { color: #fff; }
.no-match { margin-top: 24px; }

/* Article (news detail) */
.progress { position: fixed; left: 0; top: 0; z-index: 40; height: 4px; width: 100%; background: linear-gradient(90deg, var(--crimson), var(--gold)); transform-origin: left; transform: scaleX(0); }
.article-head .cat-chip { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--crimson) 10%, white); color: var(--crimson-dark); padding: 4px 12px 4px 8px; border-radius: 999px; font: 600 14px var(--head); text-decoration: none; }
.article-head .cat-chip .ico { width: 17px; height: 17px; }
.article-head h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; margin-top: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ico { width: 18px; height: 18px; color: var(--navy-2); }
.cover { margin: 26px 0 0; }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; background: var(--navy-soft); }
.cover figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.article-body { margin-top: 28px; }
.share { margin-top: 36px; padding: 18px 20px; border-radius: var(--radius); background: var(--soft); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share b { font: 600 16px var(--head); margin-right: 6px; display: inline-flex; align-items: center; gap: 8px; }
.share b .ico { width: 20px; height: 20px; color: var(--crimson); }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 0; font: 600 15px var(--head); text-decoration: none; cursor: pointer; color: #fff; }
.share .ico { width: 18px; height: 18px; }
.share .fb { background: #1F4E9C; }
.share .line { background: #06A33B; }
.share .copy { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.share .copy.done { background: var(--rice); color: #fff; border-color: var(--rice); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-grid a { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--navy-soft); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.photo-grid a:hover img { transform: scale(1.06); }
.photo-grid .rest { position: absolute; inset: 0; background: rgba(23, 52, 90, .65); color: #fff; display: grid; place-items: center; font: 600 22px var(--head); }
.block-title { display: flex; align-items: center; gap: 10px; margin: 44px 0 18px; }
.block-title h2 { font-size: 24px; }
.block-title .ico { color: var(--crimson); }
.block-title .more { margin-left: auto; }
.mini { display: flex; gap: 12px; text-decoration: none; padding: 10px 2px; }
.mini + .mini { border-top: 1px solid var(--line); }
.mini .th { width: 84px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; flex: none; background: var(--navy-soft); display: grid; place-items: center; color: var(--navy-2); }
.mini .th img { width: 100%; height: 100%; object-fit: cover; }
.mini .th .ico { width: 22px; height: 22px; }
.mini b { font: 500 15px/1.45 var(--head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.mini small { color: var(--muted); font-size: 13px; }
.mini:hover b { color: var(--crimson); }

/* ---------- Albums ---------- */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.albums .album .ph { aspect-ratio: 4 / 3; }
.album .date-chip { position: absolute; z-index: 1; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; font: 500 13px var(--head); padding: 4px 10px; border-radius: 999px; }
.album .date-chip .ico { width: 15px; height: 15px; color: var(--gold); }
.album-intro { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.album-intro p { max-width: 46em; }
.album-intro .actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Photos keep their own shape: a column layout, each tile sized by the photo's width/height */
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry a { display: block; break-inside: avoid; margin-bottom: 14px; border-radius: 16px; overflow: hidden; background: var(--navy-soft); position: relative; }
.masonry img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.masonry a:hover img { transform: scale(1.04); }
.masonry a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; box-shadow: inset 0 0 0 0 var(--gold); transition: box-shadow .2s; }
.masonry a:hover::after, .masonry a:focus-visible::after { box-shadow: inset 0 0 0 3px var(--gold); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(23, 52, 90, .8)); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; color: var(--crimson); font: 600 16px var(--head); text-decoration: none; }
.back .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.back:hover .ico { transform: translateX(-4px); }

/* ---------- Documents ---------- */
.doclist .desc { display: block; color: var(--ink); font-size: 14.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doclist .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.doclist .facts span { display: inline-flex; align-items: center; gap: 5px; }
.doclist .facts .ico { width: 15px; height: 15px; }
.doclist .txt { min-width: 0; flex: 1; }
.doclist.big a { padding: 18px 22px; }

/* ---------- ITA ---------- */
.ita-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-bottom: 28px; }
.ita-top .intro { color: var(--ink); max-width: 46em; }
.ring { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px 16px 16px; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--navy-soft); }
.ring .done { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 226.2; stroke-dashoffset: calc(226.2 * (1 - var(--p, 0))); }
.ring b { display: block; font: 700 26px/1.1 var(--head); }
.ring small { color: var(--muted); }
.ita-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.ita-tools .field { margin-left: auto; }
.ita-tools .field input { width: min(360px, 100%); }
.ita-section { margin-bottom: 30px; scroll-margin-top: calc(var(--header-h) + 16px); }
.ita-section > h2 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.ita-section > h2 .ico { color: var(--crimson); }
.ita-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ita-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; scroll-margin-top: calc(var(--header-h) + 16px); transition: border-color .2s, box-shadow .2s; }
.ita-item:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 181, 59, .4); }
.ita-item .what { display: flex; gap: 14px; min-width: 0; }
.ita-code { width: 56px; height: 56px; border-radius: 16px; background: var(--crimson); color: #fff; display: grid; place-items: center; font: 700 17px var(--head); flex: none; text-decoration: none; }
.ita-item.pending .ita-code { background: var(--navy-soft); color: var(--navy-2); }
.ita-item h3 { font-size: 17px; line-height: 1.5; }
.ita-item .what p { margin-top: 4px; font-size: 15px; color: var(--ink); }
.evidence { list-style: none; margin: 0; padding: 0; }
.evidence li + li { border-top: 1px solid var(--line); }
.evidence a { display: flex; align-items: center; gap: 12px; padding: 9px 0; text-decoration: none; }
.evidence a:hover b { color: var(--crimson); }
.evidence .txt { min-width: 0; }
.evidence .doc-ext { width: 42px; height: 42px; font-size: 11px; }
.evidence b { display: block; font: 500 15px/1.45 var(--body); color: var(--navy); }
.evidence small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence small .ico { width: 13px; height: 13px; }
.pending-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; padding: 8px 0; }
.pending-note .ico { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--navy); color: #d4def0; margin-top: 60px; }
.footer .wave { position: absolute; left: 0; right: 0; top: -59px; width: 100%; height: 60px; display: block; }
.footer .cols { padding-top: 48px; padding-bottom: 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer h2 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer p, .footer .row { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; text-decoration: none; }
.footer .ico { width: 20px; height: 20px; color: var(--gold); margin-top: 4px; }
.footer a:hover { color: #fff; }
.footer .logo { background: #fff; border-radius: 14px; padding: 8px 10px; display: inline-block; margin-bottom: 14px; }
.footer .logo img { height: 44px; width: auto; }
.footer .bar { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: 14px; color: #a9b9d3; }
.footer .bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 52px; height: 52px; border-radius: 16px; border: 0; background: var(--crimson); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(209, 20, 62, .7); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Motion (all of it is off for "reduce motion") ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line span { animation: rise .9s var(--ease) both; }
  .hero h1 .line:nth-child(2) span { animation-delay: .12s; }
  .greet { animation: fade .7s .05s both; }
  .motto, .lede { animation: fade .8s .35s both; }
  .cta { animation: fade .8s .5s both; }
  .scene { animation: pop 1s .15s var(--ease) both; }
  .scene .caption { animation: fade .8s 1.6s both; }
  #sun { animation: sunrise 2.4s .3s var(--ease) both; }
  #rays { animation: spin 60s linear infinite; transform-origin: 470px 140px; }
  .cloud { animation: drift linear infinite; }
  .cloud.c1 { animation-duration: 38s; }
  .cloud.c2 { animation-duration: 55s; animation-delay: -20s; }
  #flag { animation: raise 2s 1s var(--ease) both; }
  #cloth { animation: wave 2.6s ease-in-out infinite; transform-origin: 0 50%; transform-box: fill-box; }
  .bird { animation: fly 16s linear infinite; }
  .bird.b2 { animation-delay: -7s; animation-duration: 20s; }
  .rice path { animation: sway 4s ease-in-out infinite; transform-origin: bottom; transform-box: fill-box; }
  .rice path:nth-child(even) { animation-delay: -2s; }
  .ticker .track { animation: tick var(--tick, 40s) linear infinite; }
  .ticker.paused .track, .ticker .track-wrap:hover .track, .ticker .track-wrap:focus-within .track { animation-play-state: paused; }
  .svc:hover .badge .ico { animation: wiggle .5s var(--ease); }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .page-hero h1, .article-head h1 { animation: fade .7s .05s both; }
  .page-hero .mark { animation: pop .8s var(--ease) both; }
  .page-hero::after { animation: glow 6s ease-in-out infinite alternate; }
  .ring .done { transition: stroke-dashoffset 1.6s var(--ease) .3s; }
  .js .ring:not(.in) .done { stroke-dashoffset: 226.2; }   /* the ring fills when it scrolls into view */
}
@keyframes glow { to { transform: translate(-20px, 16px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker .track-wrap { overflow-x: auto; }
  .ticker .pause { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@keyframes rise { from { transform: translateY(110%); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(20px); } }
@keyframes sunrise { from { transform: translateY(120px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-180px); } to { transform: translateX(680px); } }
@keyframes raise { from { transform: translateY(150px); } }
@keyframes wave { 0%, 100% { transform: skewY(0) scaleX(1); } 25% { transform: skewY(4deg) scaleX(.96); } 75% { transform: skewY(-3deg) scaleX(1.02); } }
@keyframes fly { from { transform: translate(-60px, 40px); } to { transform: translate(660px, -20px); } }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 1024px) {
  .hero .wrap, .trio, .with-side { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
  .info { grid-template-columns: 1fr; }
  .people > * { width: calc(33.333% - 12px); }
  .albums { grid-template-columns: 1fr 1fr; }
  .ita-item { grid-template-columns: 1fr; }
  .search { margin-left: 0; width: 100%; }
  .banners { aspect-ratio: 16 / 9; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 44px; }
  .hero { padding: 24px 0 48px; }
  .scene { border-radius: 24px; }
  .scene .caption { left: 10px; right: 10px; bottom: 10px; font-size: 13.5px; }
  .section { padding: 56px 0; }
  .head { flex-direction: column; align-items: flex-start; }
  .services { grid-template-columns: 1fr 1fr; gap: 12px; }
  .svc { padding: 18px 14px; }
  .tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .tabs button { flex: none; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .banners { aspect-ratio: 4 / 5; border-radius: 22px; }
  .banners .text { padding: 22px 22px 74px; }
  .director { padding: 24px; }
  .gallery { grid-auto-columns: 78%; margin: 0 -16px; padding: 0 16px 12px; }
  .footer .cols { grid-template-columns: 1fr; }
  .ticker .tag span { display: none; }
  .page-hero { padding: 22px 0 30px; }
  .page-hero .mark { width: 54px; height: 54px; border-radius: 16px; }
  .page-hero .mark .ico { width: 26px; height: 26px; }
  .page-body { padding-top: 32px; }
  .people { gap: 12px; }
  .people > * { width: calc(50% - 6px); }
  .person .txt { padding: 12px 10px 14px; }
  .person h3 { font-size: 15.5px; }
  .person .tel { white-space: nowrap; font-size: 13.5px; padding: 0 10px; gap: 6px; }
  .person .tel .ico { width: 16px; height: 16px; }
  .head-card .photo { width: 120px; }
  .head-card .info-col { padding: 16px; }
  .map { aspect-ratio: 4 / 3; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .search, .search .field, .search .field input, .people-tools .field, .people-tools .field input { width: 100%; }
  .search .field:has(select) { width: auto; flex: 1; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .cover img { border-radius: 18px; }
  .albums { grid-template-columns: 1fr; gap: 16px; }
  .masonry { columns: 2; column-gap: 8px; }
  .masonry a { margin-bottom: 8px; border-radius: 12px; }
  .doclist a, .doclist.big a { padding: 14px 14px; gap: 12px; }
  .doclist .dl { display: none; }
  .ita-top { grid-template-columns: 1fr; }
  .ring { justify-self: start; }
  .ita-tools .field, .ita-tools .field input { width: 100%; margin-left: 0; }
  .ita-item { padding: 16px; }
  .ita-code { width: 48px; height: 48px; font-size: 15px; border-radius: 14px; }
}
