:root {
  --sky: #1CA7EC;
  --sky-mid: #309CD8;
  --sky-deep: #4093C8;
  --mist: #C4DAEE;
  --logo-blue: #27AAE1;
  --grad: linear-gradient(100deg, var(--sky), var(--sky-mid) 55%, var(--sky-deep));
  --grad-btn: linear-gradient(100deg, var(--sky), var(--sky-mid));
  --ground: #F2F8FD;
  --solid: #FFFFFF;
  --solid-2: #E4F0F9;
  --ink: #0B2A4A;
  --ink-soft: #3D5873;
  --accent: #1A67A0;
  --glass: rgb(255 255 255 / 0.58);
  --glass-lite: rgb(255 255 255 / 0.72);
  --edge: rgb(255 255 255 / 0.85);
  --edge-lite: rgb(11 42 74 / 0.08);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 24px 60px -36px rgb(20 80 140 / 0.45), 0 2px 10px -4px rgb(20 80 140 / 0.12);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --pad: clamp(16px, 4vw, 48px);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
  position: relative;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vmax 34vmax at 8% 4%, rgb(28 167 236 / 0.22), transparent 70%),
    radial-gradient(42vmax 36vmax at 96% 18%, rgb(196 218 238 / 0.75), transparent 70%),
    radial-gradient(50vmax 40vmax at 30% 62%, rgb(48 156 216 / 0.12), transparent 72%),
    radial-gradient(46vmax 38vmax at 88% 92%, rgb(64 147 200 / 0.16), transparent 72%),
    linear-gradient(180deg, #FFFFFF, var(--ground) 40%, #EAF4FB);
}
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 10px; font-weight: 600; }
.skip:focus { left: var(--pad); }
.wrap { padding-inline: var(--pad); }
.inner { max-width: 1200px; margin-inline: auto; }

.glass {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: var(--shadow);
}
.glass-lite { background: var(--glass-lite); border: 1px solid var(--edge); border-radius: var(--r-md); box-shadow: 0 18px 40px -30px rgb(20 80 140 / 0.4); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-lite, .bar-in, .mosaic figcaption { background: var(--solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body::before { opacity: 0.5; }
}

.bar { position: sticky; top: 12px; z-index: 20; margin-top: 12px; }
.bar-in {
  max-width: 1200px; margin-inline: auto;
  display: flex; align-items: center; gap: 0.75rem 1.5rem;
  padding: 0.55rem 0.75rem 0.55rem 1rem; border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.72);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.brand-mark { width: 52px; height: auto; }
.brand-word { height: 34px; width: auto; }
nav { flex: 1; }
nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 1.25rem; }
nav a, .lang { display: inline-block; padding: 0.5rem 0.1rem; text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; transition: color 160ms ease; }
.bar-end { display: flex; align-items: center; gap: 0.9rem; flex: none; }
.lang { color: var(--accent); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { nav a:hover, .lang:hover { color: var(--ink); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--grad-btn); color: var(--ink); font-weight: 600; text-decoration: none;
  padding: 0.8rem 1.5rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.6);
  box-shadow: 0 10px 24px -14px rgb(28 140 210 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.45);
  transition: transform 160ms var(--ease), box-shadow 160ms ease, filter 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.btn-ghost { background: rgb(255 255 255 / 0.6); color: var(--ink); border-color: rgb(11 42 74 / 0.18); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.06) saturate(1.05); box-shadow: 0 14px 28px -14px rgb(28 140 210 / 1), inset 0 1px 0 rgb(255 255 255 / 0.5); }
  .btn-ghost:hover { background: rgb(255 255 255 / 0.9); filter: none; box-shadow: none; }
}

.hero { padding-block: clamp(28px, 6vw, 72px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-copy { padding: clamp(26px, 4.5vw, 60px); }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
h1 span { display: block; }
.alias { margin-top: 0.9rem; color: var(--accent); font-weight: 600; font-size: 1.05rem; }
.mission { margin-top: 1.75rem; max-width: 34rem; font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.45; text-wrap: pretty; }
.mission span { color: var(--ink-soft); }
.area { margin-top: 0.9rem; color: var(--ink-soft); }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.since { display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; margin-bottom: 1.1rem; padding: 0.3rem 0.85rem 0.3rem 0.6rem; border-radius: 999px; background: linear-gradient(100deg, #E3F2FC, #D6EAF8); border: 1px solid rgb(255 255 255 / 0.9); color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.since::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.hero-grid.has-photos { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: stretch; }
.has-photos h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.has-photos .hero-copy { display: flex; flex-direction: column; justify-content: center; }
.mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1.45fr 1fr; gap: 12px; min-height: clamp(340px, 36vw, 540px); }
.mosaic .m { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--edge); background: var(--solid-2); box-shadow: 0 24px 50px -34px rgb(20 80 140 / 0.55); }
.mosaic .m0 { grid-column: 1 / 3; }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.mosaic figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 0.55rem 0.85rem; border-radius: var(--r-sm); background: rgb(255 255 255 / 0.74); border: 1px solid rgb(255 255 255 / 0.9); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); color: var(--ink); font-size: 0.9rem; font-weight: 500; line-height: 1.35; }
.hero-logo { padding: clamp(24px, 4vw, 48px); justify-self: center; width: min(100%, 520px); }
.hero-logo img { width: 100%; height: auto; }

.sec { padding-top: clamp(64px, 10vw, 136px); }
.sec-near { padding-top: clamp(48px, 6vw, 80px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: clamp(24px, 3vw, 40px); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.sec-head h2::after, .about h2::after, .contact h2::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 0.7rem; border-radius: 999px; background: var(--grad); }
.link { color: var(--accent); font-weight: 600; text-underline-offset: 0.2em; }
.prose { max-width: 66ch; font-size: 1.125rem; }
.prose p + p { margin-top: 1em; }
.prose p { text-wrap: pretty; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 64px); padding: clamp(26px, 4.5vw, 60px); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.news-strip { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.news-card { position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform 220ms var(--ease), box-shadow 220ms ease; }
.news-card .media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--solid-2); }
.news-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-empty { display: grid; place-items: center; background: linear-gradient(140deg, #FFFFFF, var(--solid-2)); }
.news-card .media-empty img { position: static; width: 96px; height: auto; }
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.news-body time { color: var(--ink-soft); font-size: 0.92rem; }
.news-body h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.news-body h3 a { text-decoration: none; }
.news-body h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-body p { color: var(--ink-soft); }
.more { margin-top: auto; padding-top: 0.5rem; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.news-card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.news-card a:focus-visible { outline: none; }
.news-card.compact .news-body { padding: 16px 20px 20px; gap: 0.35rem; }
.news-card.compact h3 { font-size: 1.1rem; }
.news-card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.news-card.feature .media { aspect-ratio: auto; min-height: 320px; }
.news-card.feature .news-body { padding: clamp(24px, 3.5vw, 44px); justify-content: center; }
.news-card.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (hover: hover) and (pointer: fine) {
  .news-card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -30px rgb(20 80 140 / 0.55); }
}

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.member { padding: 12px 12px 18px; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; background: var(--solid-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-empty { display: grid; place-items: center; }
.portrait-empty span { font-size: 2.6rem; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }
.m-name { margin-top: 0.9rem; padding-inline: 6px; font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.m-role { margin-top: 0.25rem; padding-inline: 6px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.4; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--solid-2); box-shadow: 0 16px 36px -28px rgb(20 80 140 / 0.6); }
.shot figcaption { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.95rem; }

.join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(26px, 4.5vw, 56px); background: linear-gradient(110deg, rgb(28 167 236 / 0.16), rgb(255 255 255 / 0.6) 55%, rgb(64 147 200 / 0.14)); }
.join p { margin-top: 0.75rem; max-width: 40rem; font-size: 1.125rem; color: var(--ink-soft); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 64px); padding: clamp(26px, 4.5vw, 60px); }
.contact-intro { margin-top: 1rem; color: var(--ink-soft); max-width: 22rem; }
.contact-body { display: flex; flex-direction: column; gap: 1.5rem; }
.mail { font-size: clamp(1.35rem, 3vw, 2.1rem); font-weight: 700; color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 2px; overflow-wrap: anywhere; transition: color 160ms ease; }
.mail.mail-2 { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink); margin-top: -0.75rem; }
.phone span { display: block; color: var(--ink-soft); font-size: 0.95rem; }
.phone a { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.socials h3 { font-size: 1rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.75rem; }
.socials ul, .foot-social { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a, .foot-social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 1.1rem; border-radius: 999px; background: rgb(255 255 255 / 0.75); border: 1px solid rgb(11 42 74 / 0.12); text-decoration: none; font-weight: 600; color: var(--ink); transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease); }
.socials a:active, .foot-social a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .mail:hover { color: var(--ink); }
  .socials a:hover, .foot-social a:hover { background: #FFFFFF; border-color: var(--sky-mid); }
}

.foot { padding-block: clamp(64px, 9vw, 112px) 40px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; padding: clamp(24px, 3.5vw, 40px); color: var(--ink-soft); font-size: 0.95rem; }
.foot-id { display: flex; flex-direction: column; gap: 0.35rem; }
.foot-logo { width: 260px; height: auto; margin-bottom: 0.75rem; }
.foot-name { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.foot-since { color: var(--accent); font-weight: 600; }
.foot-links { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 0.9rem; }
.foot-mail { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.25rem 1.25rem; }
.foot-mail a { color: var(--ink); text-underline-offset: 0.2em; }
.foot-social { justify-content: flex-end; gap: 8px; }
.foot-social a { min-height: 40px; padding: 0.4rem 0.95rem; font-size: 0.9rem; }
.foot-copy { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--edge-lite); font-size: 0.88rem; }

.page-top { padding-top: clamp(28px, 5vw, 64px); }
.crumb { margin-bottom: 1.25rem; color: var(--ink-soft); font-size: 0.95rem; }
.crumb a { color: var(--accent); text-underline-offset: 0.2em; }
.page-h { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.article { max-width: 920px; display: flex; flex-direction: column; gap: 20px; }
.art-head { padding: clamp(24px, 4vw, 48px); }
.art-head time { display: block; color: var(--ink-soft); margin-top: 1rem; }
.art-cover img { width: 100%; height: auto; max-height: min(820px, 85vh); object-fit: contain; border-radius: var(--r-lg); background: var(--solid-2); }
.art-text { padding: clamp(24px, 4vw, 48px); max-width: none; }
.art-text p { max-width: 66ch; }
.notfound { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes drift { to { transform: translate3d(-2vmax, 1.5vmax, 0); } }
  body::before { animation: drift 28s ease-in-out infinite alternate; }
  .hero-copy > * { animation: rise 700ms var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .hero-copy > :nth-child(4) { animation-delay: 210ms; }
  .hero-copy > :nth-child(5) { animation-delay: 280ms; }
  .mosaic .m { animation: rise 800ms var(--ease) both; }
  .mosaic .m1 { animation-delay: 90ms; }
  .mosaic .m2 { animation-delay: 180ms; }
}

@media (max-width: 960px) {
  .bar { position: relative; top: 0; }
  .bar-in { flex-wrap: wrap; }
  nav { order: 3; flex-basis: 100%; }
  nav ul { justify-content: flex-start; gap: 0 1rem; }
  .bar-end { margin-left: auto; }
  .hero-grid, .hero-grid.has-photos, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .mosaic { order: -1; min-height: clamp(260px, 62vw, 440px); }
  .news-card.feature { grid-template-columns: minmax(0, 1fr); }
  .news-card.feature .media { aspect-ratio: 16 / 10; min-height: 0; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-links { align-items: flex-start; }
  .foot-mail, .foot-social { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .glass { -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shot img { border-radius: var(--r-sm); }
  .shot figcaption { margin-top: 0.4rem; font-size: 0.8rem; line-height: 1.35; }
}
@media (max-width: 480px) {
  .brand-word { display: none; }
  .bar-end { gap: 0.6rem; }
  .actions .btn { flex: 1 1 100%; }
  .mosaic figcaption { display: none; }
  .foot-logo { width: 220px; }
}
