/* =====================================================================
   TRIC — Design tokens v2
   Fresh white background, amber accent (replaces the earlier teal/green),
   still grounded in a "research ledger" structural motif.
   ===================================================================== */

:root {
  --ink:      #14181F;   /* near-black navy, primary text + dark surfaces */
  --paper:    #FFFFFF;   /* pure white background */
  --paper-2:  #F6F7F9;   /* very light gray-white for alt sections */
  --accent:   #FFAC00;   /* primary amber accent */
  --accent-2: #E69500;   /* darker amber for hover/depth */
  --accent-ink: #3D2900; /* dark text-on-amber */
  --slate:    #5B6472;   /* secondary text */
  --line:     #E7E9ED;   /* hairline rule */
  --white:    #FFFFFF;
  --success:  #1B8A5A;
  --error:    #C23B22;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  --radius: 6px;
  --shadow-soft: 0 2px 16px rgba(20,24,31,0.06);
  --shadow-lift: 0 18px 40px rgba(20,24,31,0.12);
}

/* ---------------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--slate); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent-2);
}

/* ---------------------------------------------------------------------
   Scroll-reveal (IntersectionObserver toggles .is-visible via main.js)
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }

/* ---------------------------------------------------------------------
   Top contact bar
   --------------------------------------------------------------------- */
.topbar { background: var(--ink); color: rgba(255,255,255,0.85); font-size: 13.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-contact a { color: inherit; opacity: 0.9; transition: color 0.15s ease; }
.topbar-contact a:hover { color: var(--accent); }
.topbar-contact .dot { margin: 0 10px; opacity: 0.4; }
.topbar-cta { font-family: var(--font-mono); letter-spacing: 0.06em; font-size: 12px; color: var(--accent); transition: color 0.15s ease; }
.topbar-cta:hover { color: var(--white); }

/* ---------------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------------- */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo-img { height: 46px; width: auto; }
.brand-mark {
  font-family: var(--font-mono);
  font-weight: 500; font-size: 15px; letter-spacing: 0.08em;
  color: var(--white); background: var(--ink);
  border-radius: 3px; padding: 8px 10px;
}
.brand-full { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--ink);
  position: relative; padding: 6px 0; white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--accent-2); }

.nav-toggle { display: none; }
.nav-burger { display: none; }

@media (max-width: 1080px) {
  .main-nav {
    position: fixed; inset: 84px 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px 24px;
    transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto;
  }
  .nav-toggle:checked ~ .main-nav { transform: translateX(0); }
  .nav-link { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; cursor: pointer;
  }
  .nav-burger span, .nav-burger::before, .nav-burger::after {
    content: ''; display: block; height: 2px; width: 24px; background: var(--ink);
  }
}

/* ---------------------------------------------------------------------
   Hero — two column: text/CTA left, admin-managed image carousel right
   --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-bg-shape {
  position: absolute; top: -220px; right: -220px; width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,172,0,0.16), rgba(255,172,0,0) 70%);
  animation: float-slow 14s ease-in-out infinite;
  pointer-events: none;
}
.hero-bg-shape.two {
  top: auto; bottom: -260px; right: auto; left: -200px; width: 480px; height: 480px;
  background: radial-gradient(circle at 60% 40%, rgba(20,24,31,0.05), rgba(20,24,31,0) 70%);
  animation-duration: 18s; animation-delay: -4s;
}
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 28px) scale(1.05); }
}

.hero-inner { position: relative; padding: 64px 0 72px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; padding: 40px 0 48px; } }

.hero h1 { font-size: clamp(32px, 4.6vw, 54px); color: var(--ink); max-width: 15ch; }
.hero-lede { font-size: 17.5px; color: var(--slate); max-width: 52ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.1; box-shadow: var(--shadow-lift); background: var(--paper-2); }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease;
  animation: kenburns 12s ease-in-out infinite;
}
.hero-slide.is-active { opacity: 1; }
@keyframes kenburns {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.hero-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px;
  background: linear-gradient(0deg, rgba(20,24,31,0.72), transparent);
  color: #fff; font-size: 14px; font-weight: 500;
}
.hero-media-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--slate); font-family: var(--font-mono); font-size: 13px; text-align: center; padding: 20px;
}

/* ---------------------------------------------------------------------
   Stats ledger — sits BELOW the hero, fully admin editable
   --------------------------------------------------------------------- */
.ledger-section { background: var(--ink); }
.ledger {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.ledger-plate { padding: 30px 24px; border-right: 1px solid rgba(255,255,255,0.12); transition: background 0.2s ease; }
.ledger-plate:hover { background: rgba(255,255,255,0.03); }
.ledger-plate:last-child { border-right: none; }
.ledger-code { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 10px; }
.ledger-value { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: #fff; display: block; }
.ledger-label { font-size: 13px; color: rgba(255,255,255,0.6); }
@media (max-width: 780px) {
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger-plate:nth-child(2) { border-right: none; }
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 13px 24px; border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.18s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262c38; transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
section { padding: 84px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Specimen index — research areas (dynamic, image-backed)
   --------------------------------------------------------------------- */
.specimen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.specimen-card { background: var(--paper); transition: box-shadow 0.25s ease, transform 0.25s ease; position: relative; }
.specimen-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); z-index: 1; }
.specimen-media { aspect-ratio: 4/3; background: var(--paper-2) center/cover no-repeat; position: relative; overflow: hidden; }
.specimen-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.specimen-card:hover .specimen-media img { transform: scale(1.06); }
.specimen-body { padding: 24px 22px; }
.specimen-code { font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); letter-spacing: 0.12em; }
.specimen-card h3 { font-size: 18px; margin: 12px 0 10px; }
.specimen-rule { height: 1px; background: var(--line); margin: 12px 0; }
.specimen-card ul { margin: 0; padding: 0; list-style: none; }
.specimen-card li { font-size: 13.5px; color: var(--slate); padding: 4px 0; position: relative; padding-left: 16px; }
.specimen-card li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.specimen-card a.specimen-link { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--ink); font-family: var(--font-mono); }
@media (max-width: 940px) { .specimen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .specimen-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Sub-area chips (used on research.php under each main area)
   --------------------------------------------------------------------- */
.subarea-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 22px; }
.subarea-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.subarea-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.subarea-media { aspect-ratio: 16/10; background: var(--paper-2) center/cover no-repeat; }
.subarea-body { padding: 16px 18px; }
.subarea-body h4 { font-size: 15px; margin-bottom: 6px; }
.subarea-body p { font-size: 13.5px; margin: 0; }

/* ---------------------------------------------------------------------
   Generic card grid (news, projects, publications, jobs, videos)
   --------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 940px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.card-media { aspect-ratio: 16/10; background: var(--paper-2) center/cover no-repeat; position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); background: rgba(255,172,0,0.16); padding: 4px 9px; border-radius: 2px;
  display: inline-block; margin-bottom: 12px; align-self: flex-start;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 14px; }
.card-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.empty-state { padding: 40px; text-align: center; color: var(--slate); border: 1px dashed var(--line); border-radius: var(--radius); font-family: var(--font-mono); font-size: 14px; }

/* Video gallery */
.video-card { cursor: pointer; }
.video-thumb { position: relative; aspect-ratio: 16/9; background: var(--ink) center/cover no-repeat; }
.video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-play span {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,172,0,0.92);
  display: flex; align-items: center; justify-content: center; color: var(--accent-ink);
  transition: transform 0.2s ease;
}
.video-card:hover .video-play span { transform: scale(1.1); }

/* ---------------------------------------------------------------------
   About / mission-vision panels
   --------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel h3 { font-size: 20px; }

/* ---------------------------------------------------------------------
   Team
   --------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 940px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { text-align: left; }
.team-photo { aspect-ratio: 1; border-radius: var(--radius); background: var(--paper-2) center/cover no-repeat; margin-bottom: 14px; }
.team-card h4 { font-size: 16px; margin-bottom: 2px; }
.team-role { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-2); }

/* ---------------------------------------------------------------------
   Collaborators — infinite scrolling marquee
   --------------------------------------------------------------------- */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-logo { height: 56px; width: auto; display: flex; align-items: center; justify-content: center; }
.marquee-logo img { max-height: 48px; width: auto; filter: grayscale(1); opacity: 0.7; transition: all 0.2s ease; }
.marquee-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---------------------------------------------------------------------
   News ticker marquee (upcoming events, single line)
   --------------------------------------------------------------------- */
.ticker { background: var(--accent); overflow: hidden; }
.ticker-track { display: flex; gap: 60px; width: max-content; animation: marquee 26s linear infinite; padding: 10px 0; }
.ticker-item { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }

/* ---------------------------------------------------------------------
   SDG tiles
   --------------------------------------------------------------------- */
.sdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sdg-tile { border-radius: var(--radius); padding: 18px 16px; color: #fff; min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sdg-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.sdg-tile .num { font-family: var(--font-mono); font-size: 22px; font-weight: 600; opacity: 0.85; }
.sdg-tile .title { font-size: 13px; font-weight: 600; line-height: 1.25; }

/* ---------------------------------------------------------------------
   Downloads list
   --------------------------------------------------------------------- */
.download-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 14px; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.download-row:hover { box-shadow: var(--shadow-soft); transform: translateX(4px); }
.download-icon { font-family: var(--font-mono); font-size: 11px; color: var(--accent-ink); background: rgba(255,172,0,0.16); border-radius: 4px; padding: 10px 12px; }
.download-title { font-weight: 600; margin-bottom: 2px; }
.download-desc { font-size: 13.5px; color: var(--slate); margin: 0; }

/* ---------------------------------------------------------------------
   Logo strip (legacy grid variant, kept for pages that want a static grid)
   --------------------------------------------------------------------- */
.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; align-items: center; }
@media (max-width: 860px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }
.logo-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; align-items: center; justify-content: center; height: 92px; }
.logo-tile img { max-height: 52px; width: auto; filter: grayscale(1); opacity: 0.75; transition: all 0.2s ease; }
.logo-tile:hover img { filter: grayscale(0); opacity: 1; }

/* ---------------------------------------------------------------------
   CTA band
   --------------------------------------------------------------------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 0; }

/* ---------------------------------------------------------------------
   Forms (contact, internship application, admin)
   --------------------------------------------------------------------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-row { margin-bottom: 20px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row.two { grid-template-columns: 1fr; } }
label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
label .req { color: var(--error); }
input[type=text], input[type=email], input[type=tel], input[type=file], input[type=password], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper-2); color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 12.5px; color: var(--slate); margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: 4px; font-size: 14.5px; margin-bottom: 24px; border: 1px solid transparent; }
.alert-success { background: rgba(27,138,90,0.08); border-color: var(--success); color: var(--success); }
.alert-error { background: rgba(194,59,34,0.08); border-color: var(--error); color: var(--error); }

/* ---------------------------------------------------------------------
   Contact page split layout
   --------------------------------------------------------------------- */
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent-ink); border: 1px solid var(--line);
  border-radius: 4px; padding: 8px; min-width: 40px; text-align: center; background: rgba(255,172,0,0.1);
}

/* ---------------------------------------------------------------------
   Breadcrumb / page header (inner pages) with subtle parallax backdrop
   --------------------------------------------------------------------- */
.page-header { background: var(--ink); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.page-header-parallax {
  position: absolute; inset: -20% 0 0 0; opacity: 0.5; background-size: cover; background-position: center;
  will-change: transform;
}
.page-header-inner { position: relative; }
.page-header .eyebrow { color: var(--accent); }
.page-header .eyebrow::before { background: var(--accent); }
.page-header h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); max-width: 20ch; }
.page-header p { color: rgba(255,255,255,0.75); max-width: 56ch; margin-top: 10px; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-mark { margin-bottom: 16px; display: inline-block; }
.footer-logo-img { height: 40px; margin-bottom: 16px; }
.footer-about p { color: rgba(255,255,255,0.55); font-size: 14px; }
.footer-col h4 { color: #fff; font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-note { display: block; color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 10px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding: 22px 0; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ---------------------------------------------------------------------
   Utility
   --------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.tag-filter {
  font-family: var(--font-mono); font-size: 12.5px; padding: 8px 14px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--slate); background: var(--white); transition: all 0.15s ease;
}
.tag-filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Simple CMS page content styling (for admin-authored HTML in `pages`) */
.page-content h2 { font-size: 24px; margin-top: 1.4em; }
.page-content h3 { font-size: 19px; margin-top: 1.2em; }
.page-content p { color: var(--ink); opacity: 0.85; }
.page-content ul, .page-content ol { color: var(--slate); padding-left: 22px; }
.page-content img { border-radius: var(--radius); margin: 20px 0; }
.page-content a { color: var(--accent-2); font-weight: 600; text-decoration: underline; }
