:root {
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #657286;
  --line: #dbe4f0;
  --brand: #1f5fa8;
  --brand-strong: #174778;
  --accent: #b8663f;
  --soft: #e8f1fb;
  --gold: #c4953f;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.09);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
summary,
label[for],
[role="button"] {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 228, 240, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 180px;
  border-radius: 8px;
  padding: 6px;
  margin-left: -6px;
}

.brand:hover,
.brand:focus-visible {
  background: var(--soft);
  color: var(--brand-strong);
}

.brand-logo {
  width: 46px;
  height: 34px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

[data-lab-name] .lab-name-detail {
  display: block;
}

[data-university] .affiliation-detail {
  display: block;
}

.brand-name .lab-name-detail {
  font-size: 14px;
  line-height: 1.35;
}

.brand-sub .affiliation-detail {
  display: block;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 8px;
  padding: 10px 12px;
  color: #2f3d52;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--brand-strong);
}

.member-link {
  border: 1px solid rgba(31, 95, 168, 0.3);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 82vh, 760px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(12, 22, 38, 0.84) 0%, rgba(16, 34, 58, 0.62) 34%, rgba(16, 34, 58, 0.16) 62%, rgba(16, 34, 58, 0.02) 100%),
    linear-gradient(0deg, rgba(246, 248, 251, 0.34) 0%, rgba(246, 248, 251, 0) 18%),
    url("hero-welding-surface-corrosion-scc.jpg") center / cover no-repeat;
}

.hero.hero-mode-instagram {
  background:
    linear-gradient(90deg, rgba(12, 22, 38, 0.86) 0%, rgba(16, 34, 58, 0.64) 38%, rgba(16, 34, 58, 0.18) 68%, rgba(16, 34, 58, 0.02) 100%),
    linear-gradient(0deg, rgba(246, 248, 251, 0.34) 0%, rgba(246, 248, 251, 0) 18%),
    url("hero-welding-surface-corrosion-scc.jpg") center / cover no-repeat;
}

.hero-instagram-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  align-items: start;
  justify-content: end;
  padding: 132px max(36px, calc((100vw - 1180px) / 2)) 96px 32px;
  pointer-events: none;
}

.hero.hero-mode-instagram .hero-instagram-layer {
  display: grid;
}

.hero-instagram-widget {
  width: min(280px, 24vw) !important;
  height: min(280px, 24vw) !important;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(23, 32, 51, 0.2);
  opacity: 0.9;
  animation: hero-instagram-float 12s ease-in-out infinite alternate;
}

@keyframes hero-instagram-float {
  0% {
    transform: translate3d(0, 0, 0);
  }
  45% {
    transform: translate3d(-42px, 36px, 0);
  }
  100% {
    transform: translate3d(16px, 78px, 0);
  }
}

.hero-inner,
.section-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  max-width: 720px;
  padding: 88px 0 118px;
}

.hero-logo {
  width: min(180px, 42vw);
  height: auto;
  margin-bottom: 24px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.32));
}

.hero h1 {
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.46);
}

.hero .eyebrow {
  color: #dbeafe;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.hero .lead {
  color: #f4f7fb;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.14;
  letter-spacing: 0;
}

h1 .lab-name-detail {
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.22;
}

.lead {
  max-width: 660px;
  color: #344258;
  font-size: 18px;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
  line-height: 1.3;
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  border-color: rgba(31, 95, 168, 0.32);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-strong);
}

.button.secondary:hover,
.button.secondary:focus-visible,
.info-list a:hover,
.info-list a:focus-visible,
.person a:hover,
.person a:focus-visible,
.profile-links a:hover,
.profile-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  background: var(--soft);
  color: var(--brand-strong);
}

.info-list a,
.person a {
  border-radius: 6px;
  padding: 2px 4px;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--brand-strong);
}

.button.danger {
  border-color: rgba(150, 37, 37, 0.28);
  background: #b93737;
  color: #fff;
}

.band {
  padding: 72px 0;
}

.band.white {
  background: var(--paper);
}

.band.soft {
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
}

.section-heading p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.news-list {
  display: grid;
  gap: 12px;
}

.archive-year {
  display: grid;
  gap: 10px;
}

.archive-year + .archive-year {
  margin-top: 16px;
}

.archive-year-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--brand-strong);
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.05);
  list-style: none;
}

.archive-year-heading:hover,
.archive-year-heading:focus-visible,
.archive-year[open] .archive-year-heading {
  border-color: rgba(31, 95, 168, 0.28);
  background: var(--soft);
}

.archive-year-heading::-webkit-details-marker {
  display: none;
}

.archive-year-title {
  font-size: 28px;
  font-weight: 800;
}

.archive-year-title::before {
  content: "＋";
  display: inline-block;
  width: 1.6em;
  color: var(--brand);
}

.archive-year[open] .archive-year-title::before {
  content: "−";
}

.archive-year-meta {
  color: var(--muted);
  font-weight: 800;
}

.news-item {
  display: grid;
  grid-template-columns: 128px 120px 1fr;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 10px;
}

.news-item.has-image {
  grid-template-columns: 128px 120px 108px 1fr;
}

.news-thumb {
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  grid-column: 3;
  grid-row: 1;
  cursor: zoom-in;
}

.news-item.has-image .news-date {
  grid-column: 1;
}

.news-item.has-image .tag {
  grid-column: 2;
}

.news-item.has-image .news-title {
  grid-column: 4;
}

.news-item:hover,
.news-item:focus-visible {
  background: var(--soft);
  color: var(--brand-strong);
}

.news-date {
  color: var(--muted);
  font-weight: 700;
}

.tag {
  width: fit-content;
  border: 1px solid rgba(184, 102, 63, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff7f4;
  color: #8b3f2d;
  font-size: 12px;
  font-weight: 800;
}

.news-title {
  display: grid;
  gap: 4px;
}

.news-title strong {
  font-size: 17px;
}

.news-title span {
  color: var(--muted);
  font-size: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.page-hero {
  padding: 88px 0 50px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero .lead {
  margin-bottom: 0;
}

.image-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 40px;
}

.image-split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.person-list {
  display: grid;
  gap: 12px;
}

.person {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.person-role {
  color: var(--brand-strong);
  font-weight: 800;
}

.person h3 {
  margin-bottom: 4px;
}

.person p {
  margin-bottom: 4px;
  color: var(--muted);
}

.staff-profile-list {
  display: grid;
  gap: 24px;
}

.staff-profile {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
  box-shadow: var(--shadow);
}

.staff-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.staff-profile-body h3 {
  margin-bottom: 2px;
  font-size: 26px;
}

.roman,
.staff-title {
  color: var(--muted);
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.keyword-list span {
  border: 1px solid rgba(31, 95, 168, 0.24);
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}

.profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.profile-columns.single {
  grid-template-columns: 1fr;
}

.profile-columns h4 {
  margin: 0 0 8px;
  color: var(--brand-strong);
}

.profile-columns ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-links a {
  border: 1px solid rgba(31, 95, 168, 0.26);
  border-radius: 8px;
  color: var(--brand-strong);
  font-weight: 800;
  padding: 8px 12px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.history-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
  box-shadow: var(--shadow);
}

.history-card h3 {
  margin-bottom: 4px;
}

.info-list {
  display: grid;
  gap: 16px;
}

.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.info-row dt {
  color: var(--brand-strong);
  font-weight: 800;
}

.info-row dd {
  margin: 0;
  color: var(--muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.photo-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
}

.photo-card div {
  padding: 14px 16px 16px;
}

.photo-card strong {
  display: block;
}

.photo-card span {
  color: var(--muted);
  font-size: 13px;
}

.photo-card strong + span {
  display: block;
  margin-top: 4px;
}

.research-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(31, 95, 168, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(31, 95, 168, 0.16), transparent 35%),
    linear-gradient(135deg, #ffffff, #edf5fb);
  box-shadow: var(--shadow);
}

.research-map::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(31, 95, 168, 0.24);
  border-radius: 8px;
  pointer-events: none;
}

.research-map-center {
  grid-column: 2 / span 2;
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 35, 59, 0.92), rgba(31, 95, 168, 0.92)),
    url("hero-welding-surface-corrosion-scc.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 26px;
  box-shadow: 0 20px 45px rgba(23, 32, 51, 0.18);
}

.research-map-center strong {
  display: block;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.research-map-center span {
  font-weight: 800;
  color: #dcecff;
}

.research-map article,
.process-lane article,
.strength-grid article,
.fit-grid article,
.collaboration-flow article,
.project-examples article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.research-map article {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 18px;
}

.research-map article span,
.theme-card span,
.collaboration-flow article span {
  color: var(--brand);
  font-weight: 900;
}

.research-map article strong {
  color: var(--brand-strong);
  font-size: 17px;
}

.research-map article small {
  color: var(--muted);
  font-weight: 700;
}

.process-lane {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-lane article {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px;
}

.process-lane article + article::before {
  content: "";
  position: absolute;
  top: 36px;
  left: -22px;
  width: 28px;
  height: 2px;
  background: var(--brand);
}

.process-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-strong);
  font-weight: 900;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.theme-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.theme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-card div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
}

.theme-card h3 {
  margin-bottom: 0;
  color: var(--brand-strong);
}

.theme-card p,
.process-lane p,
.collaboration-flow p {
  margin-bottom: 0;
  color: var(--muted);
}

.theme-card.accent-blue {
  border-color: rgba(31, 95, 168, 0.28);
}

.theme-card.accent-teal {
  border-color: rgba(0, 116, 124, 0.3);
}

.theme-card.accent-amber {
  border-color: rgba(196, 149, 63, 0.46);
}

.strength-grid,
.fit-grid,
.project-examples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.strength-grid article,
.fit-grid article,
.project-examples article {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.strength-grid strong,
.fit-grid strong,
.project-examples strong {
  color: var(--brand-strong);
}

.strength-grid span,
.fit-grid span,
.project-examples span {
  color: var(--muted);
}

.industry-strip,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-strip span,
.pill-list span {
  border: 1px solid rgba(31, 95, 168, 0.26);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-strong);
  font-weight: 900;
}

.industry-strip span {
  padding: 14px 18px;
}

.pill-list span {
  padding: 7px 12px;
  font-size: 13px;
}

.audience-grid {
  display: grid;
  gap: 20px;
}

.audience-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.audience-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.audience-card > div {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 44px);
}

.day-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.day-timeline article {
  position: relative;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  box-shadow: var(--shadow);
}

.day-timeline article::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 18px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--brand);
  border-radius: 999px;
  background: #fff;
}

.day-timeline time {
  color: var(--brand);
  font-weight: 900;
}

.day-timeline strong {
  color: var(--brand-strong);
}

.day-timeline span {
  color: var(--muted);
  font-size: 14px;
}

.annual-wheel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.annual-wheel article {
  display: grid;
  gap: 6px;
  min-height: 138px;
  border: 1px solid rgba(31, 95, 168, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 241, 251, 0.8));
  padding: 18px;
}

.annual-wheel strong {
  color: var(--accent);
  font-size: 24px;
}

.annual-wheel span {
  color: var(--brand-strong);
  font-weight: 900;
}

.annual-wheel small {
  color: var(--muted);
  font-weight: 700;
}

.collaboration-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.collaboration-flow article {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px;
}

.collaboration-flow article + article::before {
  content: "";
  position: absolute;
  top: 34px;
  left: -18px;
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.collaboration-flow article span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--soft);
}

.has-lightbox {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 32, 51, 0.72);
}

.image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(980px, 100%);
  margin: 0;
}

.image-lightbox-image {
  width: 100%;
  max-height: min(76vh, 760px);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  background: var(--paper);
  object-fit: contain;
}

.image-lightbox-caption {
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.image-lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: var(--paper);
  color: var(--brand-strong);
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: var(--soft);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.album-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.album-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.album-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.album-body h3 {
  margin-bottom: 0;
  color: var(--brand-strong);
}

.album-body p {
  margin-bottom: 0;
  color: var(--muted);
}

.album-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.album-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.album-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.album-count {
  color: var(--brand-strong) !important;
  font-size: 13px;
  font-weight: 800;
}

.slider-shell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
}

.slider-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(31, 95, 168, 0.24);
  border-radius: 8px;
  background: var(--paper);
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.slider-button:hover {
  background: var(--soft);
}

.instagram-track {
  display: grid;
  grid-auto-columns: minmax(280px, 360px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.instagram-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.instagram-card:hover {
  transform: translateY(-2px);
}

.instagram-media {
  position: relative;
  display: block;
}

.instagram-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.instagram-type {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  background: rgba(23, 32, 29, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}

.instagram-body {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.instagram-body time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.instagram-body strong {
  font-size: 17px;
}

.instagram-body span {
  color: var(--muted);
  font-size: 13px;
}

.instagram-section-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 24px;
  align-items: start;
}

.instagram-profile-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
  box-shadow: var(--shadow);
}

.instagram-profile-card h3 {
  margin-bottom: 8px;
  color: var(--brand-strong);
}

.instagram-profile-card p:not(.eyebrow) {
  color: var(--muted);
}

.instagram-widget-slot:not(:empty) {
  margin-bottom: 18px;
}

.instagram-feed-widget {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px;
  box-shadow: var(--shadow);
}

.snapwidget-widget {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0;
}

.hero .hero-instagram-widget {
  width: min(280px, 24vw) !important;
  max-width: none;
  height: min(280px, 24vw) !important;
}

.instagram-embed-area {
  display: grid;
  justify-items: center;
  margin-top: 24px;
}

.instagram-embed-area .instagram-media {
  max-width: min(100%, 540px);
  width: 100%;
  border-radius: 8px;
}

.login-panel {
  max-width: 520px;
}

.contact-form-section {
  max-width: 760px;
}

.login-panel p {
  color: var(--muted);
}

.registration-box {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.registration-box summary {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(31, 95, 168, 0.26);
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-strong);
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
}

.registration-box summary::-webkit-details-marker {
  display: none;
}

.registration-box summary span {
  color: var(--brand-strong);
  font-size: 18px;
  font-weight: 800;
}

.registration-box summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.registration-box[open] summary {
  margin-bottom: 16px;
}

.registration-box[open] {
  border-top-color: transparent;
}

.alumni-session-bar {
  position: sticky;
  top: 86px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
  border: 1px solid rgba(31, 95, 168, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  backdrop-filter: blur(14px);
}

.alumni-session-bar .eyebrow {
  margin-bottom: 2px;
}

.alumni-session-bar strong {
  display: block;
  color: var(--brand-strong);
  font-size: 20px;
  line-height: 1.35;
}

.logout-button {
  min-width: 180px;
  min-height: 52px;
  font-size: 17px;
}

.alumni-gallery-heading {
  margin-top: 48px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

label {
  color: var(--brand-strong);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  background: #14233b;
  color: #edf4fb;
  padding: 42px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 64px;
  height: 46px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  grid-row: 1 / span 2;
}

.footer-brand strong,
.footer-brand p {
  grid-column: 2;
}

.footer-inner p {
  margin-bottom: 0;
  color: #b9c7d8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #dbe7f5;
  font-weight: 700;
}

.footer-links a {
  border-radius: 8px;
  padding: 8px 10px;
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    inset: 72px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    padding: 8px 16px 16px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    border-radius: 6px;
    padding: 13px 8px;
  }

  .hero {
    min-height: 660px;
    background:
      linear-gradient(0deg, rgba(12, 22, 38, 0.88) 0%, rgba(12, 22, 38, 0.66) 54%, rgba(12, 22, 38, 0.18) 100%),
      url("hero-welding-surface-corrosion-scc.jpg") 58% center / cover no-repeat;
  }

  .hero.hero-mode-instagram {
    background:
      linear-gradient(0deg, rgba(12, 22, 38, 0.9) 0%, rgba(12, 22, 38, 0.68) 56%, rgba(12, 22, 38, 0.2) 100%),
      url("hero-welding-surface-corrosion-scc.jpg") 58% center / cover no-repeat;
  }

  .hero-instagram-layer {
    position: relative;
    order: 2;
    inset: auto;
    z-index: 1;
    justify-content: start;
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto 64px;
    padding: 0;
    opacity: 0.9;
  }

  .hero-instagram-widget {
    width: min(190px, 48vw) !important;
    height: min(190px, 48vw) !important;
    animation: hero-instagram-float-mobile 9s ease-in-out infinite alternate;
  }

  .hero .hero-instagram-widget {
    width: min(190px, 48vw) !important;
    height: min(190px, 48vw) !important;
  }

  .hero-content {
    padding: 190px 0 36px;
  }

  @keyframes hero-instagram-float-mobile {
    0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(42px, 0, 0);
    }
  }

  .section-heading,
  .footer-inner {
    display: grid;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news-item.has-image {
    grid-template-columns: 1fr;
  }

  .news-item.has-image .news-thumb {
    grid-column: 1;
    grid-row: auto;
    width: min(180px, 100%);
    margin-top: 4px;
  }

  .news-item.has-image .news-date,
  .news-item.has-image .tag,
  .news-item.has-image .news-title {
    grid-column: 1;
  }

  .archive-year-heading {
    display: grid;
    gap: 2px;
  }

  .grid-3,
  .grid-2,
  .image-split,
  .photo-grid,
  .album-grid,
  .history-list,
  .instagram-section-layout,
  .research-map,
  .process-lane,
  .theme-grid,
  .strength-grid,
  .fit-grid,
  .project-examples,
  .audience-card,
  .day-timeline,
  .annual-wheel,
  .collaboration-flow {
    grid-template-columns: 1fr;
  }

  .research-map {
    padding: 14px;
  }

  .research-map::before,
  .process-lane article + article::before,
  .collaboration-flow article + article::before {
    display: none;
  }

  .research-map-center {
    grid-column: auto;
    min-height: 170px;
  }

  .theme-card {
    grid-template-columns: 1fr;
  }

  .theme-card img,
  .audience-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .person,
  .info-row,
  .staff-profile,
  .profile-columns {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .slider-shell {
    grid-template-columns: 1fr;
  }

  .slider-button {
    display: none;
  }

  .instagram-track {
    grid-auto-columns: minmax(260px, 86%);
  }
}

@media (max-width: 560px) {
  .header-inner,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-name {
    font-size: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 38px;
    height: 28px;
  }

  .brand-sub {
    display: none;
  }

  .band {
    padding: 54px 0;
  }

  .page-hero {
    padding: 64px 0 38px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 58px;
  }

  .lead {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .alumni-session-bar {
    top: 76px;
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .alumni-session-bar strong {
    font-size: 18px;
  }

  .logout-button {
    min-width: 0;
  }

  .footer-brand {
    grid-template-columns: 1fr;
  }

  .footer-logo,
  .footer-brand strong,
  .footer-brand p {
    grid-column: auto;
  }
}
