:root {
  --navy: #0b255d;
  --navy-2: #071a43;
  --green: #3d8a21;
  --green-soft: #e8f4e3;
  --cream: #f4f3ef;
  --cream-2: #fffdf8;
  --white: #ffffff;
  --text: #22304b;
  --muted: #63718c;
  --line: rgba(11, 37, 93, .11);
  --shadow: 0 16px 38px rgba(7, 26, 67, .11);
  --shadow-lg: 0 26px 70px rgba(7, 26, 67, .18);
  --radius: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(61,138,33,.12), transparent 28%),
    radial-gradient(circle at 95% 10%, rgba(11,37,93,.10), transparent 26%),
    linear-gradient(180deg, #fbfcff 0%, var(--cream) 100%);
  overflow-x: hidden;
}

body.modal-open,
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
p { margin: 0 0 1rem; color: var(--muted); line-height: 1.72; }
h1, h2, h3 { margin: 0; color: var(--navy-2); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.15rem, 5.2vw, 4.55rem); max-width: 820px; }
h2 { font-size: clamp(1.72rem, 3.25vw, 3rem); }
h3 { font-size: 1.18rem; }

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: clamp(70px, 8vw, 108px) 0; }
.soft-section { background: rgba(255,255,255,.56); }
.centered { text-align: center; margin-inline: auto; }
.section-heading { max-width: 780px; }
.section-heading.centered { margin-bottom: 46px; }
.section-intro { margin-top: 16px; font-size: 1.06rem; }
.eyebrow { display: inline-block; margin: 0 0 14px; color: var(--green); font-size: .78rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }

.skip-link { position: absolute; left: -999px; top: 14px; z-index: 999; background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 999px; }
.skip-link:focus { left: 16px; }
.folk-ribbon { height: 10px; background: linear-gradient(90deg, var(--navy), var(--green), var(--navy)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,243,239,.90);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 230px; }
.brand img.logo-rehabis { 
    width: 58px; 
    height: 58px; 
    object-fit: contain; 
    background: #fff; 
    border-radius: 0; 
    box-shadow: 0 10px 24px rgba(7,26,67,.07); 
}

.logo-interreg {
    height: 58px;
    width: 180px;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
}

.brand strong { display: block; color: var(--navy); font-size: 1.18rem; letter-spacing: .16em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .86rem; }
.main-nav { display: flex; align-items: center; gap: 7px; font-weight: 900; }
.main-nav a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 999px; color: var(--navy); transition: .2s ease; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: rgba(61,138,33,.13); color: var(--green); }
.main-nav .nav-cta { color: var(--white); background: var(--navy); padding-inline: 20px; }
.main-nav .nav-cta:hover, .main-nav .nav-cta.active { color: var(--white); background: var(--green); }
.language-switch { display: flex; align-items: center; gap: 4px; margin-left: 8px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.76); }
.lang-btn { height: 36px; min-width: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--navy); font-weight: 950; cursor: pointer; }
.lang-btn.active { color: var(--white); background: var(--green); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--navy); padding: 12px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--white); border-radius: 99px; transition: .22s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; overflow: hidden; padding-top: clamp(54px, 7vw, 88px); }
.hero-bg { position: absolute; inset: 0; opacity: .62; background:
  linear-gradient(130deg, transparent 0 58%, rgba(61,138,33,.14) 58% 59%, transparent 59%) 0 70% / 260px 155px repeat-x,
  linear-gradient(50deg, transparent 0 52%, rgba(11,37,93,.13) 52% 53%, transparent 53%) 0 72% / 250px 160px repeat-x;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .88fr); align-items: center; gap: 44px; }
.hero-subtitle { margin-top: 22px; max-width: 660px; font-size: clamp(1.02rem, 1.55vw, 1.22rem); color: #667490; }
.hero-media { position: relative; min-height: 520px; }
.photo-card { position: absolute; margin: 0; overflow: hidden; border: 9px solid rgba(255,255,255,.82); border-radius: 34px; background: var(--cream-2); box-shadow: var(--shadow-lg); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-main { inset: 28px 110px 76px 0; transform: rotate(-1.5deg); }
.photo-small.top { width: 42%; height: 210px; right: 0; top: 0; transform: rotate(2.5deg); }
.photo-small.bottom { width: 39%; height: 240px; right: 22px; bottom: 8px; transform: rotate(3deg); }

.split-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; align-items: start; }
.text-panel, .activity-card, .article-card, .gallery-card { background: rgba(255,255,255,.86); border: 1px solid var(--line); box-shadow: var(--shadow); }
.text-panel { padding: clamp(24px, 4vw, 38px); border-radius: 34px; }
blockquote { margin: 20px 0 0; padding-left: 18px; border-left: 4px solid var(--green); color: var(--navy); font-weight: 850; line-height: 1.6; }

.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.activity-card { padding: 26px; border-radius: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.activity-card .icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; color: var(--green); background: var(--green-soft); font-weight: 950; font-size: 1.32rem; }
.activity-card h3 { margin-bottom: 10px; }
.activity-card p { margin-bottom: 0; }
.activity-wide { grid-column: span 3; background: linear-gradient(135deg, rgba(11,37,93,.96), rgba(61,138,33,.96)); }
.activity-wide h3, .activity-wide p, .activity-wide .icon { color: white; }
.activity-wide .icon { background: rgba(255,255,255,.14); }

.project-section { background: radial-gradient(circle at 0% 10%, rgba(61,138,33,.09), transparent 28%); }

.project-tools { display: flex; justify-content: center; margin: -20px 0 28px; }
.project-count { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 14px; border-radius: 999px; color: var(--navy); background: rgba(255,255,255,.74); border: 1px solid var(--line); font-weight: 900; font-size: .9rem; }

.project-label { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: 999px; color: var(--white); background: rgba(11,37,93,.90); text-align: center; font-weight: 900; font-size: .92rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.project-meta span { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 11px; border-radius: 999px; color: var(--navy); background: rgba(11,37,93,.07); font-weight: 900; font-size: .84rem; }
.project-meta span:first-child { color: var(--white); background: var(--green); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag-list span { padding: 8px 12px; border-radius: 999px; background: rgba(61,138,33,.1); color: var(--green); font-weight: 900; font-size: .88rem; }
.project-content h3 { margin-bottom: 16px; font-size: clamp(1.38rem, 2.15vw, 1.95rem); }
.project-points { display: grid; gap: 14px; margin-top: 24px; }
.project-point { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; border-radius: 22px; background: rgba(61,138,33,.06); border: 1px solid rgba(61,138,33,.15); }
.project-point .num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white); background: var(--green); font-weight: 950; }
.project-point strong { display: block; margin-bottom: 6px; color: var(--navy); }
.project-point p { margin: 0; font-size: .96rem; }

.blog-section { background: radial-gradient(circle at 12% 8%, rgba(61,138,33,.10), transparent 24%), radial-gradient(circle at 92% 8%, rgba(11,37,93,.09), transparent 24%), rgba(255,255,255,.58); overflow: hidden; }
.blog-carousel { position: relative; }
.article-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 31.5%); gap: 18px; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scroll-behavior: smooth; scroll-padding-inline: 5px; padding: 8px 5px 22px; scrollbar-width: thin; scrollbar-color: rgba(11,37,93,.28) transparent; }
.article-track:focus-visible { outline: 3px solid rgba(61,138,33,.28); outline-offset: 8px; border-radius: 28px; }
.article-card { scroll-snap-align: start; overflow: hidden; border-radius: 30px; min-height: 100%; transition: transform .22s ease, box-shadow .22s ease; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.article-card img { width: 100%; height: clamp(210px, 18vw, 250px); object-fit: cover; }
.article-content { padding: 22px; display: grid; min-height: 306px; grid-template-rows: auto auto 1fr auto; }
.article-content span, .modal-category { display: inline-flex; justify-self: start; margin-bottom: 12px; padding: 8px 12px; border-radius: 999px; color: var(--green); background: rgba(61,138,33,.1); font-size: .78rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.article-content h3 { margin-bottom: 12px; font-size: 1.22rem; }
.article-content p { margin-bottom: 18px; font-size: .95rem; }
.article-open { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; border: 0; border-radius: 999px; color: var(--white); background: linear-gradient(135deg, var(--navy), #174196); font-weight: 950; cursor: pointer; transition: .2s ease; }
.article-open:hover { transform: translateY(-2px); background: linear-gradient(135deg, var(--green), var(--navy)); }
.carousel-btn { position: absolute; top: 50%; z-index: 5; transform: translateY(-50%); width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.96); color: var(--navy); box-shadow: var(--shadow); font-size: 2rem; line-height: 1; cursor: pointer; transition: .2s ease; }
.carousel-btn:hover { color: var(--white); background: var(--green); }
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }

.article-modal,
.gallery-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 22px; }
.article-modal.open,
.gallery-modal.open { display: flex; }
.article-modal-backdrop,
.gallery-modal-backdrop { position: absolute; inset: 0; background: rgba(6,25,66,.72); backdrop-filter: blur(10px); }
.article-modal-panel { position: relative; z-index: 1; width: min(1080px, 100%); max-height: min(92vh, 980px); overflow: hidden; border-radius: 34px; background: var(--cream-2); box-shadow: 0 30px 90px rgba(6,25,66,.36); display: grid; grid-template-columns: minmax(340px, .95fr) minmax(0, 1.05fr); }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 4; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--navy); background: rgba(255,255,255,.94); box-shadow: var(--shadow); font-size: 1.7rem; cursor: pointer; transition: .2s ease; }
.modal-close:hover,
.modal-close:focus-visible { color: var(--white); background: var(--green); outline: 0; }
.modal-image { width: 100%; height: 100%; min-height: 560px; max-height: min(92vh, 980px); object-fit: contain; background: #f6f2ea; padding: 14px; }
.modal-body { max-height: min(92vh, 980px); overflow: auto; padding: clamp(26px, 4vw, 42px); }
.modal-body h3 { margin-bottom: 18px; font-size: clamp(1.38rem, 2.35vw, 2.05rem); }
.modal-text p { margin-bottom: 1rem; font-size: 1.02rem; }

.gallery-grid { display: grid; grid-template-columns: 1.15fr .85fr 1fr; grid-auto-rows: 190px; gap: 18px; }
.gallery-card { position: relative; margin: 0; overflow: hidden; border-radius: 28px; cursor: zoom-in; min-height: 100%; display: grid; place-items: center; background: #f6f2ea; transition: transform .22s ease, box-shadow .22s ease; }
.gallery-card:nth-child(1),
.gallery-card:nth-child(6) { grid-row: span 2; }
.gallery-card:nth-child(3) { grid-column: span 1; }
.gallery-card img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .35s ease; }
.gallery-card:hover,
.gallery-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-card:hover img,
.gallery-card:focus-within img { transform: scale(1.015); }
.gallery-card figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 13px 15px; border-radius: 18px; color: var(--white); background: linear-gradient(180deg, rgba(11,37,93,.72), rgba(7,26,67,.92)); font-weight: 900; line-height: 1.35; box-shadow: 0 12px 28px rgba(6,25,66,.24); }
.gallery-open { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color: transparent; cursor: zoom-in; }
.gallery-open:focus-visible { outline: 4px solid rgba(61,138,33,.55); outline-offset: -8px; border-radius: 28px; }
.gallery-modal { overflow: auto; }
.gallery-modal-panel { position: relative; z-index: 1; width: min(1180px, calc(100vw - 44px)); max-height: calc(100dvh - 44px); border-radius: 34px; background: rgba(255,255,255,.98); box-shadow: 0 30px 90px rgba(6,25,66,.40); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; overflow: visible; }
.gallery-modal-figure { width: 100%; max-height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 0; }
.gallery-modal-image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; object-position: center; border-radius: 24px; background: #f6f2ea; box-shadow: 0 12px 30px rgba(6,25,66,.14); }
.gallery-modal-figure figcaption { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 8px; color: var(--navy); font-weight: 950; }
.gallery-modal-counter { flex: 0 0 auto; color: var(--green); font-size: .86rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.gallery-nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: rgba(255,255,255,.95); box-shadow: var(--shadow); font-size: 2.15rem; line-height: 1; cursor: pointer; transition: .2s ease; }
.gallery-nav:hover,
.gallery-nav:focus-visible { color: var(--white); background: var(--green); outline: 0; }
.gallery-prev { left: 26px; }
.gallery-next { right: 26px; }

.contact-section { padding-top: clamp(68px, 7vw, 92px); }
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .75fr); gap: 30px; padding: clamp(26px, 4vw, 40px); border-radius: 38px; background: linear-gradient(135deg, var(--navy-2), var(--navy)); box-shadow: var(--shadow-lg); }
.contact-card h2, .contact-card p, .contact-card .eyebrow { color: white; }
.contact-card p { opacity: .86; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: block; padding: 20px; border-radius: 22px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12); }
.contact-item span { display: block; margin-bottom: 8px; color: rgba(255,255,255,.72); font-size: .78rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.contact-item strong { color: white; line-height: 1.45; }
.site-footer { padding: 34px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 22px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-grid strong { color: var(--navy); }
.footer-grid p { margin: 4px 0 0; font-size: .92rem; }
.back-top { color: var(--navy); font-weight: 900; }
.reveal { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Video Carousel --- */
.video-section { background: var(--cream); }
.video-carousel-wrap { position: relative; display: flex; align-items: center; margin-bottom: 20px; }
.video-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
}
.video-track::-webkit-scrollbar { display: none; }

.video-slide {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  max-width: 900px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.video-slide:hover {
  box-shadow: 0 12px 30px rgba(11, 37, 93, 0.1);
  transform: translateY(-2px);
}
.video-slide video {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 4px solid var(--navy); 
}
.video-caption {
  color: #2d3748;
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: left;
  padding: 2rem 2.5rem;
  margin: 0;
}

.carousel-prev-vid { left: -20px; }
.carousel-next-vid { right: -20px; }

/* --- Projects Carousel --- */
.projects-carousel-wrap { position: relative; display: flex; align-items: center; margin-bottom: 20px; }
.projects-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  padding-bottom: 20px;
}
.projects-list::-webkit-scrollbar { display: none; }

/* --- Modernized Project Cards --- */
.project-card { 
  scroll-snap-align: center; 
  width: 100%; 
  display: grid; 
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); 
  gap: 28px; 
  padding: 24px; 
  border-radius: 36px; 
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  align-items: stretch;
  max-height: 700px; 
}

.project-visual {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  height: 100%; 
}

.project-visual img {
  width: 100%;
  height: 100%; 
  object-fit: cover; 
}

.project-content { 
  display: flex; 
  flex-direction: column; 
  overflow-y: auto; 
  padding-right: 12px;
  max-height: 650px;
}

.project-content::-webkit-scrollbar {
  width: 6px;
}
.project-content::-webkit-scrollbar-track {
  background: rgba(11, 37, 93, 0.05);
  border-radius: 10px;
}
.project-content::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 10px;
}

.project-lead { 
  font-size: 1.04rem; 
  line-height: 1.6;
}
.project-lead img {
  max-width: 100%; 
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: var(--shadow);
  display: block;
}
.project-lead h3, .project-lead h4 {
  margin: 1.5rem 0 0.5rem;
  color: var(--navy-2);
}

.carousel-prev-proj { left: -20px; }
.carousel-next-proj { right: -20px; }

@media (max-width: 1120px) {
  .nav-wrap { min-height: 78px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 88px 20px auto 20px;
    display: grid;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: .22s ease;
  }
  body.nav-open .main-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-nav a { min-height: 48px; justify-content: center; }
  .language-switch { margin: 6px auto 0; }
  .hero-grid, .split-layout, .contact-card { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .activity-wide { grid-column: span 2; }
  .hero-media { min-height: 510px; max-width: 740px; width: 100%; margin: 0 auto; }
  
  .carousel-prev-vid, .carousel-next-vid, 
  .carousel-prev-proj, .carousel-next-proj { display: none; }
}

@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .section-pad { padding: 62px 0; }
  .nav-wrap { min-height: 74px; }
  .brand { min-width: auto; gap: 10px; }
  .brand img.logo-rehabis { width: 50px; height: 50px; }
  .logo-interreg { height: 50px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .74rem; }
  .main-nav { inset: 80px 12px auto 12px; }
  h1 { font-size: clamp(1.95rem, 8.5vw, 3.05rem); line-height: 1.10; letter-spacing: -.02em; max-width: 100%; }
  h2 { font-size: clamp(1.45rem, 6.4vw, 2.1rem); line-height: 1.16; }
  h3 { font-size: 1.12rem; line-height: 1.22; }
  .hero { padding-top: 42px; }
  .hero-grid { gap: 28px; }
  .hero-subtitle { margin-top: 18px; font-size: 1.06rem; }
  .hero-media { min-height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .photo-card { position: static; border-width: 6px; border-radius: 24px; transform: none !important; box-shadow: var(--shadow); }
  .photo-main { grid-column: 1 / -1; height: 330px; }
  .photo-small.top, .photo-small.bottom { width: auto; height: 185px; }
  .section-heading.centered { margin-bottom: 32px; }
  .text-panel { padding: 24px; border-radius: 28px; }
  .activity-grid, .gallery-grid { grid-template-columns: 1fr; }
  .activity-wide { grid-column: span 1; }
  .activity-card { padding: 22px; }
  
  .project-card { 
    grid-template-columns: 1fr; 
    padding: 16px; 
    gap: 20px; 
    max-height: none; 
  }
  .project-content {
    max-height: 500px; 
  }
  .project-visual {
    height: 300px; 
  }
  
  .project-label { font-size: .8rem; line-height: 1.35; border-radius: 20px; }
  .project-point { grid-template-columns: 38px 1fr; gap: 12px; padding: 15px; }
  .project-point .num { width: 38px; height: 38px; }
  .article-track { grid-auto-columns: minmax(82vw, 1fr); gap: 14px; padding: 4px 4px 18px; scroll-padding-inline: 4px; }
  .article-card { border-radius: 24px; }
  .article-card img { height: 210px; }
  .article-content { min-height: 270px; padding: 18px; }
  .carousel-btn { display: none; }
  .article-modal, .gallery-modal { padding: 10px; align-items: center; }
  .article-modal-panel { width: 100%; max-height: 92vh; border-radius: 26px; grid-template-columns: 1fr; overflow: auto; }
  .modal-image { width: 100%; height: auto; max-height: 42vh; min-height: 0; object-fit: contain; padding: 10px; }
  .modal-close { top: 10px; right: 10px; }
  .modal-body { max-height: none; padding: 22px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; }
  .gallery-card,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(6) { grid-column: auto; grid-row: auto; min-height: 265px; }
  .gallery-card figcaption { left: 10px; right: 10px; bottom: 10px; padding: 12px 13px; }
  .gallery-modal-panel { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); height: auto; border-radius: 26px; padding: 14px; overflow: visible; }
  .gallery-modal-figure { gap: 12px; }
  .gallery-modal-image { max-width: 100%; max-height: calc(100dvh - 145px); border-radius: 18px; }
  .gallery-modal-figure figcaption { display: grid; gap: 4px; padding: 0 2px 4px; }
  .gallery-nav { top: 50%; bottom: auto; width: 46px; height: 46px; font-size: 1.85rem; }
  .gallery-prev { left: 18px; }
  .gallery-next { right: 18px; }
  .contact-card { border-radius: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 14px; }
  
  /* Mobile responsiveness for the video caption */
  .video-caption {
    font-size: 1rem;
    padding: 1.5rem;
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  h1 { font-size: clamp(1.75rem, 8vw, 2.35rem); line-height: 1.13; }
  h2 { font-size: clamp(1.32rem, 6vw, 1.85rem); }
  .brand small { display: none; }
  .photo-main { height: 280px; }
  .photo-small.top, .photo-small.bottom { height: 150px; }
  .article-track { grid-auto-columns: minmax(88vw, 1fr); }
  .gallery-card,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(6) { min-height: 230px; }
  .modal-image { max-height: 36vh; min-height: 0; }
  .gallery-modal-image { max-height: calc(100dvh - 138px); }
}