:root {
  --bg: #080a0b;
  --surface: #111416;
  --surface-soft: #171a1d;
  --gold: #f4a20a;
  --gold-soft: #c77d08;
  --text: #f3f0e9;
  --muted: #b9b8b4;
  --line: rgba(244, 162, 10, 0.42);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --radius: 12px;
  --shell: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  background: #050607;
  border-bottom: 1px solid rgba(244, 162, 10, 0.24);
}

.header-inner,
.footer-inner {
  width: var(--shell);
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand span,
.footer-brand {
  display: grid;
}

.brand strong,
.footer-brand strong {
  font-size: 1.55rem;
  letter-spacing: 0.06em;
}

.brand small,
.footer-brand small {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu a {
  position: relative;
  display: block;
  padding: 28px 0 24px;
  color: var(--text);
  font-size: 0.89rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

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

.main-menu a:hover,
.main-menu a:focus-visible,
.main-menu a.active {
  color: var(--gold);
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: 590px;
  border-bottom: 1px solid var(--line);
  background-image: url("design/logos/ta1ztc-plan.jpg");
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 4, 5, 0.2), rgba(3, 4, 5, 0.48) 52%, rgba(3, 4, 5, 0.68)),
    linear-gradient(0deg, rgba(4, 5, 6, 0.82), transparent 48%, rgba(4, 5, 6, 0.2));
  backdrop-filter: contrast(1.12) saturate(1.08);
}

.hero-inner {
  width: var(--shell);
  min-height: 590px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(480px, 1.05fr);
  align-items: center;
  gap: 38px;
  padding: 40px 0;
}

.hero-primary {
  align-self: center;
  height: 540px;
}

.hero-primary img {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.48));
}

.hero-center {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.hero-copy {
  width: min(100%, 720px);
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.84);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-topics {
  width: min(100%, 760px);
  margin: 0 auto;
  color: #f2b94c;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.85;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hero-topics span {
  color: var(--gold);
}

.page-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 36px 0 64px;
}

.panel,
.card {
  background: linear-gradient(145deg, rgba(24, 27, 29, 0.97), rgba(12, 14, 15, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 28px;
  padding: 24px 32px;
}

.intro img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.intro h2 {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 1.1rem;
}

.intro p {
  max-width: 950px;
  margin: 0;
  color: var(--muted);
}

.intro-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, filter 180ms ease, transform 180ms ease;
}

.intro-link:hover,
.intro-link:focus-visible {
  color: #ffb72e;
  filter: brightness(1.08);
  transform: translateX(3px);
}

.intro-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.section {
  padding-top: 42px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-heading span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-heading h2 {
  margin: 0;
  color: #d5d1c8;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.section-note {
  margin: -10px 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.activities-note {
  margin-top: -8px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.activity-card {
  min-width: 0;
  min-height: 330px;
  padding: 28px 16px 24px;
  text-align: center;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.activity-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 162, 10, 0.86);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42), 0 0 18px rgba(244, 162, 10, 0.12);
  filter: brightness(1.035);
}

.activity-card-link {
  color: inherit;
  text-decoration: none;
}

.activity-card-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-color: var(--gold);
}

.activity-card-link:active {
  transform: translateY(-1px) scale(0.99);
  border-color: var(--gold);
  filter: brightness(1.08);
}

.card-icon {
  display: grid;
  width: 168px;
  height: 168px;
  margin: 0 auto 20px;
  place-items: center;
  overflow: visible;
}

.card-icon img {
  width: 168px;
  height: 168px;
  object-fit: contain;
  transform: scale(1.1);
  transition: transform 200ms ease;
}

.activity-card:hover .card-icon img,
.activity-card-link:focus-visible .card-icon img {
  transform: scale(1.14);
}

.activity-card h3,
.project-card h3 {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
}

.activity-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

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

.project-card {
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover,
.mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.project-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 19px;
}

.button {
  display: inline-flex;
  margin-top: 17px;
  padding: 9px 14px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--gold);
  color: #111;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.mini-card {
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.mini-card img {
  width: 100%;
  height: 142px;
  object-fit: cover;
}

.mini-card span {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.mini-card strong {
  color: var(--text);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.mini-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.gallery-grid a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.gallery-grid img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.site-footer {
  position: relative;
  background:
    radial-gradient(circle at 50% 0, rgba(244, 162, 10, 0.08), transparent 38%),
    linear-gradient(180deg, #090b0c, #050607);
  box-shadow: inset 0 18px 40px rgba(255, 255, 255, 0.012);
}

.footer-inner {
  min-height: 190px;
  padding: 0 0 28px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  margin-bottom: 26px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 22%, var(--gold) 50%, var(--gold-soft) 78%, transparent);
  box-shadow: 0 0 18px rgba(244, 162, 10, 0.26);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(24, 27, 29, 0.76), rgba(12, 14, 15, 0.84));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.025);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  padding: 7px 0;
  transition: color 180ms ease, filter 180ms ease, transform 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
  filter: brightness(1.12) drop-shadow(0 0 7px rgba(244, 162, 10, 0.24));
  transform: translateY(-2px);
}

.footer-link-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.footer-lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 22px;
  padding: 22px 8px 0;
  border-top: 1px solid rgba(244, 162, 10, 0.14);
}

.footer-mark {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.footer-mark p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", "Apple Chancery", cursive;
  font-style: italic;
  text-align: right;
}

.footer-mark img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: auto;
  background: rgba(0, 0, 0, 0.93);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: fixed;
  z-index: 1;
  top: 12px;
  right: 18px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(8, 10, 11, 0.9);
  color: var(--gold);
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--gold);
  color: #111;
  transform: scale(1.04);
  outline: none;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
    gap: 24px;
  }

  .hero-primary {
    height: 500px;
  }

  .card-icon,
  .card-icon img {
    width: 140px;
    height: 140px;
  }

  .activity-grid,
  .latest-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 28px, 620px);
  }

  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 13px 0 0;
  }

  .brand {
    align-self: flex-start;
  }

  .main-menu {
    justify-content: space-between;
    gap: 12px;
    overflow-wrap: anywhere;
  }

  .main-menu a {
    padding: 12px 0 17px;
    font-size: 0.75rem;
    text-align: center;
  }

  .main-menu a::after {
    bottom: 9px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero {
    background-image: url("design/logos/ta1ztc-plan-mobile.jpg");
    background-position: 50% center;
    background-size: cover;
  }

  .hero-center {
    padding-left: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0 38px;
  }

  .hero-primary {
    grid-row: 1;
    width: min(100%, 460px);
    height: 460px;
    margin: 0 auto;
  }

  .hero-center {
    display: contents;
  }

  .hero-copy {
    grid-row: 2;
  }

  .hero-topics {
    font-size: 0.83rem;
  }

  .intro {
    grid-template-columns: 64px 1fr;
    gap: 18px;
    padding: 20px;
  }

  .intro img {
    width: 58px;
    height: 58px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .activity-grid,
  .latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-icon,
  .card-icon img {
    width: 130px;
    height: 130px;
  }

  .footer-links {
    gap: 10px 22px;
    padding: 20px;
  }

  .footer-lower {
    flex-direction: column;
    text-align: center;
  }

  .footer-mark {
    justify-content: center;
  }

  .footer-mark p {
    text-align: center;
  }
}

@media (max-width: 440px) {
  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 1.3rem;
  }

  .main-menu {
    justify-content: flex-start;
    align-items: stretch;
  }

  .main-menu li {
    min-width: 0;
  }

  .hero-primary {
    width: min(100%, 400px);
    height: 400px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro img {
    margin: 0 auto;
  }

  .intro h2,
  .intro p {
    text-align: center;
  }

  .intro-link {
    justify-content: center;
  }

  .section-heading {
    gap: 10px;
  }

  .section-heading h2 {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

  .activity-grid,
  .latest-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 220px;
  }

  .activity-card {
    min-height: 290px;
  }

  .card-icon,
  .card-icon img {
    width: 118px;
    height: 118px;
  }

  .footer-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 22px;
  }

  .footer-links a {
    justify-content: flex-start;
  }

  .footer-mark {
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
