:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f7f8fa;
  --navy: #111827;
  --navy-2: #1f2937;
  --gold: #c88a1d;
  --gold-soft: #f4e6c7;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 108px;
  padding: 22px clamp(24px, 5vw, 86px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand__text {
  display: grid;
  line-height: 1.08;
}

.brand__text strong {
  font-size: 1.18rem;
  font-weight: 800;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.84rem;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--navy);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  color: var(--navy);
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

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

.button--primary:hover {
  background: var(--navy-2);
}

.button--text {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}

.menu-toggle {
  display: none;
}

.hero {
  width: 100%;
  min-height: 100vh;
  padding-top: 108px;
  scroll-margin-top: 108px;
}

.hero-panels {
  display: flex;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}

.hero-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 0.38 1 0;
  min-width: 0;
  min-height: calc(100vh - 108px);
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 56px);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  background-image:
    var(--panel-mask, linear-gradient(180deg, rgba(9, 14, 24, 0.03), rgba(9, 14, 24, 0.34))),
    url("assets/bckg2.jpg");
  background-size: cover;
  background-position: 0% 50%;
  color: #fff;
  overflow: hidden;
  transform: translate3d(-18px, 0, 0);
  opacity: 0;
  transition:
    flex-grow 1400ms cubic-bezier(0.22, 1, 0.36, 1),
    background-position 900ms ease,
    filter 900ms ease,
    transform 1050ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 780ms ease;
  transition-delay: 0ms;
  backface-visibility: hidden;
  contain: layout paint;
  will-change: flex-grow, transform, opacity;
}

body:not(.is-loaded) .hero-panel {
  transition-delay: var(--panel-delay);
}

.hero-panel:last-child {
  border-right: 0;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(9, 14, 24, 0.1));
  opacity: 0.44;
  transition: opacity 360ms ease;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel .hero-panel__title::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12px -18px;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.34) 68%, transparent),
    radial-gradient(circle at 16% 50%, rgba(3, 7, 18, 0.86), transparent 70%);
  border-left: 3px solid rgba(232, 177, 72, 0.8);
  border-radius: 0 14px 14px 0;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0.94;
}

.hero-panel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 520ms ease;
}

.hero-panel .hero-panel__title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 230, 199, 0.8), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-loaded .hero-panel,
.hero-panel.is-open {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.hero-panel--primary {
  flex-grow: 1.05;
  background-position: 0% 50%;
  --panel-mask: linear-gradient(180deg, rgba(126, 82, 14, 0.03), rgba(86, 55, 8, 0.22));
}

.hero-panel--contact {
  background-position: 100% 50%;
  --panel-mask: linear-gradient(180deg, rgba(17, 67, 68, 0.03), rgba(8, 44, 48, 0.22));
}

.hero-panel:nth-child(2) {
  background-position: 34% 50%;
  --panel-mask: linear-gradient(180deg, rgba(50, 20, 72, 0.03), rgba(50, 20, 72, 0.22));
}

.hero-panel:nth-child(3) {
  background-position: 67% 50%;
  --panel-mask: linear-gradient(180deg, rgba(76, 42, 21, 0.03), rgba(76, 42, 21, 0.2));
}

.hero-panels:hover .hero-panel {
  flex-grow: 0.34;
  filter: none;
}

.hero-panels .hero-panel:hover,
.hero-panels .hero-panel:focus-visible,
.hero-panels .hero-panel:focus-within,
.hero-panels .hero-panel.is-active {
  flex-grow: 1.34;
  filter: none;
}

.hero-panel:hover::before,
.hero-panel:focus-visible::before,
.hero-panel:focus-within::before,
.hero-panel.is-active::before,
.hero-panel:hover::after,
.hero-panel:focus-visible::after,
.hero-panel:focus-within::after,
.hero-panel.is-active::after {
  opacity: 1;
  transform: scaleY(1);
}

.hero-panel:hover .hero-panel__title::after,
.hero-panel:focus-visible .hero-panel__title::after,
.hero-panel:focus-within .hero-panel__title::after,
.hero-panel.is-active .hero-panel__title::after {
  transform: scaleX(1);
}

.hero-panel__title,
.hero-panel__text,
.hero-panel__action {
  display: block;
  transform: translate3d(0, 18px, 0);
  opacity: 0;
  transition:
    max-height 820ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms, 0ms, 0ms;
  will-change: transform, opacity;
}

body.is-loaded .hero-panel__title,
.hero-panel.is-open .hero-panel__title {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

body.is-loaded .hero-panel__text,
body.is-loaded .hero-panel__action,
.hero-panel.is-open .hero-panel__text,
.hero-panel.is-open .hero-panel__action {
  max-height: 0;
  overflow: hidden;
  transform: translate3d(0, 18px, 0);
  opacity: 0;
}

.hero-panel:hover .hero-panel__text,
.hero-panel:focus-visible .hero-panel__text,
.hero-panel:focus-within .hero-panel__text,
.hero-panel.is-active .hero-panel__text,
.hero-panel:hover .hero-panel__action,
.hero-panel:focus-visible .hero-panel__action,
.hero-panel:focus-within .hero-panel__action,
.hero-panel.is-active .hero-panel__action {
  max-height: 220px;
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.hero-panel__title {
  position: relative;
  max-width: 520px;
  margin: 0;
  color: var(--gold-soft);
  -webkit-text-stroke: 0.45px rgba(15, 23, 42, 0.7);
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.88),
    0 10px 24px rgba(0, 0, 0, 0.56);
  font-size: clamp(2rem, 4.4vw, 5rem);
  font-weight: 850;
  line-height: 1;
  overflow-wrap: anywhere;
}

.hero-panel:not(.hero-panel--primary) .hero-panel__title {
  font-size: clamp(1.45rem, 2vw, 2.3rem);
  line-height: 1.05;
}

.hero-panel__text {
  max-width: 520px;
  margin-top: 24px;
  padding: 16px 18px 16px 20px;
  color: rgba(255, 255, 255, 0.96);
  background:
    linear-gradient(90deg, rgba(5, 8, 16, 0.86), rgba(5, 8, 16, 0.5)),
    rgba(5, 8, 16, 0.44);
  border-left: 3px solid rgba(232, 177, 72, 0.86);
  border-radius: 0 12px 12px 0;
  backdrop-filter: blur(8px);
  font-size: 1.05rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-panel__action {
  margin-top: 34px;
  color: var(--gold-soft);
  font-weight: 900;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.78),
    0 0 18px rgba(232, 177, 72, 0.16);
}

.hero-panel__action::after {
  content: " →";
}

.hero-panel__title {
  transition-delay: 0ms, 0ms, 0ms;
}

.hero-panel__text {
  transition-delay: 0ms, 0ms, 0ms;
}

.hero-panel__action {
  transition-delay: 0ms, 0ms, 0ms;
}

body:not(.is-loaded) .hero-panel__title {
  transition-delay:
    calc(var(--panel-delay) + 360ms),
    calc(var(--panel-delay) + 360ms),
    calc(var(--panel-delay) + 360ms);
}

body:not(.is-loaded) .hero-panel__text {
  transition-delay:
    calc(var(--panel-delay) + 450ms),
    calc(var(--panel-delay) + 450ms),
    calc(var(--panel-delay) + 450ms);
}

body:not(.is-loaded) .hero-panel__action {
  transition-delay:
    calc(var(--panel-delay) + 540ms),
    calc(var(--panel-delay) + 540ms),
    calc(var(--panel-delay) + 540ms);
}

.hero-panel:hover .hero-panel__text,
.hero-panel:focus-visible .hero-panel__text,
.hero-panel:focus-within .hero-panel__text,
.hero-panel.is-active .hero-panel__text {
  transition-delay: 0ms, 520ms, 520ms;
}

.hero-panel:hover .hero-panel__action,
.hero-panel:focus-visible .hero-panel__action,
.hero-panel:focus-within .hero-panel__action,
.hero-panel.is-active .hero-panel__action {
  transition-delay: 0ms, 660ms, 660ms;
}

.eyebrow {
  margin: 0 0 14px;
  color: #95660f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2.15rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.26;
}

.hero__lead,
.section__intro p,
.institution-panel p,
.contact-card > div > p {
  color: var(--muted);
  font-size: 1.09rem;
}

.hero__lead {
  max-width: 690px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.facts-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.facts-band article {
  min-height: 132px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.facts-band article:last-child {
  border-right: 0;
}

.facts-band span,
.info-card span,
.service-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.facts-band strong {
  color: var(--navy);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.section,
.contact-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
  scroll-margin-top: 118px;
}

.section__intro {
  max-width: 780px;
  margin-bottom: 38px;
}

.section__intro h2 {
  position: relative;
}

.section__intro h2::after {
  content: "";
  display: block;
  width: 86px;
  height: 2px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0.74);
  transform-origin: left;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.section:hover .section__intro h2::after,
.contact-section:hover .section__intro h2::after {
  transform: scaleX(1);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--paper);
}

.info-card {
  min-height: 285px;
  padding: 34px;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 260ms ease, transform 320ms ease, box-shadow 320ms ease;
}

.info-card::after,
.collaboration-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.48) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.info-card:last-child {
  border-right: 0;
}

.info-card:hover {
  background: #fbfbfc;
  box-shadow: 0 22px 54px rgba(17, 24, 39, 0.09);
  transform: translateY(-8px);
}

.info-card:hover::after,
.collaboration-grid article:hover::after {
  transform: translateX(120%);
}

.security-note {
  margin: 28px 0 0;
  padding: 22px 26px;
  border-left: 3px solid var(--gold);
  background: #fff;
  color: var(--navy);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
  font-weight: 700;
}

.info-card span {
  color: var(--gold);
}

.info-card p,
.process-list p,
.service-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.section--dark {
  width: 100%;
  max-width: none;
  padding: 100px clamp(20px, 5vw, 72px);
  background: var(--navy);
}

.section--dark .section__intro {
  width: min(1180px, 100%);
  margin: 0 auto 38px;
  text-align: center;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .section__intro p,
.section--dark .process-list p {
  color: rgba(255, 255, 255, 0.68);
}

.section--dark .eyebrow {
  color: var(--gold-soft);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(1180px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.process-list article {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 34px 28px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.process-list article:last-child {
  border-right: 0;
}

.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 230, 199, 0.55);
  color: var(--gold-soft);
  font-weight: 900;
}

.institution-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.64fr);
  gap: 54px;
  align-items: start;
  padding: 46px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.company-box {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-left: 3px solid var(--gold);
  background: #fafafa;
}

.company-box strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.company-box span {
  color: var(--muted);
}

.service-stack {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 30px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 280ms ease, background 280ms ease;
}

.service-row span {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  text-transform: none;
}

.service-row a {
  color: #8a5c0d;
  font-weight: 900;
  white-space: nowrap;
}

.service-row:hover {
  padding-left: 18px;
  background: rgba(200, 138, 29, 0.04);
}

.collaboration-section {
  position: relative;
}

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

.collaboration-grid article {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 250, 250, 0.98)),
    #fff;
  transition: border-color 280ms ease, box-shadow 320ms ease, transform 320ms ease;
}

.collaboration-grid article:hover {
  border-color: rgba(200, 138, 29, 0.45);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.1);
  transform: translateY(-8px);
}

.collaboration-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.collaboration-grid p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  padding-top: 34px;
}

.subpage-hero {
  display: grid;
  align-items: end;
  min-height: 58vh;
  padding: 190px clamp(24px, 5vw, 86px) 72px;
  background:
    linear-gradient(180deg, rgba(9, 14, 24, 0.26), rgba(9, 14, 24, 0.78)),
    url("assets/bckg2.jpg");
  background-position: 50% 50%;
  background-size: cover;
  color: #fff;
}

.subpage-hero > div {
  width: min(920px, 100%);
}

.subpage-hero h1 {
  color: #fff;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: 58px;
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-details {
  display: grid;
  gap: 7px;
  margin-top: 28px;
  font-weight: 800;
}

.contact-details a:first-child {
  color: var(--navy);
  font-size: 2rem;
}

.contact-details a:not(:first-child) {
  color: #8a5c0d;
}

.contact-details span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 138, 29, 0.12);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr 1fr;
  gap: 34px;
  width: 100%;
  margin: 0;
  padding: 48px clamp(24px, 5vw, 86px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column strong {
  color: var(--navy);
  font-size: 1rem;
}

.footer-column a {
  color: var(--muted);
}

.footer-column a:hover {
  color: #8a5c0d;
}

.footer-credit a {
  color: #8a5c0d;
  font-weight: 800;
}

.privacy-note {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    min-height: 96px;
    padding: 14px 20px;
  }

  .menu-toggle {
    justify-self: end;
    display: inline-grid;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .institution-panel,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .facts-band,
  .info-grid,
  .collaboration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts-band article:nth-child(2),
  .info-card:nth-child(2) {
    border-right: 0;
  }

  .facts-band article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .info-card {
    border-bottom: 1px solid var(--line);
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-row a {
    white-space: normal;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list article {
    border-right: 0;
  }

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

@media (max-width: 640px) {
  .brand__logo {
    width: 52px;
    height: 52px;
  }

  .brand__text small {
    display: none;
  }

  .facts-band,
  .section,
  .contact-section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 96px;
  }

  .hero-panels {
    width: 100%;
    min-height: auto;
    flex-direction: column;
    padding: 0;
  }

  .hero-panel,
  .hero-panel--primary,
  .hero-panels:hover .hero-panel,
  .hero-panels .hero-panel:hover,
  .hero-panels .hero-panel:focus-visible,
  .hero-panels .hero-panel:focus-within,
  .hero-panels .hero-panel.is-active {
    flex: none;
  }

  .hero-panel {
    min-height: 32vh;
    padding: 30px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(18px);
    background-position: center;
  }

  .hero-panel:nth-child(2) {
    background-image:
      var(--panel-mask, linear-gradient(180deg, rgba(9, 14, 24, 0.03), rgba(9, 14, 24, 0.34))),
      url("assets/mobile-curtain-1.webp");
  }

  .hero-panel:nth-child(3) {
    background-image:
      var(--panel-mask, linear-gradient(180deg, rgba(9, 14, 24, 0.03), rgba(9, 14, 24, 0.34))),
      url("assets/mobile-curtain-2.jpg");
  }

  .hero-panel--contact {
    background-image:
      var(--panel-mask, linear-gradient(180deg, rgba(9, 14, 24, 0.03), rgba(9, 14, 24, 0.34))),
      url("assets/mobile-curtain-3.jpg");
  }

  .hero-panel--primary {
    min-height: 54vh;
  }

  body.is-loaded .hero-panel,
  .hero-panel.is-open {
    transform: translateY(0);
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4.5rem);
  }

  .facts-band,
  .info-grid,
  .collaboration-grid {
    grid-template-columns: 1fr;
  }

  .facts-band article,
  .info-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .facts-band article:last-child,
  .info-card:last-child {
    border-bottom: 0;
  }

  .section,
  .contact-section {
    padding: 66px 0;
  }

  .section--dark {
    width: 100%;
    padding: 70px 20px;
  }

  .process-list article {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .institution-panel,
  .contact-card {
    padding: 26px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    width: 100%;
    padding-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-panel,
  .hero-panel__title,
  .hero-panel__text,
  .hero-panel__action {
    opacity: 1;
    transform: none;
  }
}
