/* ====== HYDRA-EO base palette ====== */
:root {
  --hydra-navy: #003247;   /* barra superior */
  --hydra-blue: #003f7d;   /* títulos */
  --hydra-blue-soft: #f2c94c;
  --hydra-pill-bg: #ffffff;
  --hydra-pill-border: #ffffff;
  --hydra-text-dark: #0f172a;
  --hydra-text-muted: #4b5563;
  --hydra-bg-page: #f4f6fb;
  --hydra-card-bg: #ffffff;
  --hydra-border: #dde3ee;
}


/* Página y navegación */
body {
  background: var(--hydra-bg-page);
  color: var(--hydra-text-dark);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Justify body copy across every Quarto page */
#quarto-content p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

@media (max-width: 768px) {
  #quarto-content p {
    text-align: left;
    hyphens: none;
  }
}

/* Navbar Quarto -> estilo ESA */
.navbar {
  background-color: var(--hydra-navy) !important;
  border-bottom: none !important;
}

.navbar-brand,
.navbar-nav .nav-link {
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--hydra-blue-soft) !important;
}

.navbar-brand {
  font-weight: 700;
}

/* Botón "Main site" */
.navbar .navbar-nav.ms-auto .nav-link {
  border-radius: 999px;
  border: 2px solid #ffffff;
  padding: .25rem 1rem;
  font-weight: 600;
}

/* Contenido principal */
main.content {
  padding-top: 2rem;
}

/* Hero card */
.hero-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem 2.5rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--hydra-border);
  margin-bottom: 2.5rem;
}

.hero-card h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--hydra-blue);
  margin-bottom: .7rem;
}

.hero-card h1 span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--hydra-text-muted);
  margin-left: .4rem;
}

.hero-text {
  color: var(--hydra-text-muted);
  max-width: 760px;
}

/* Pills */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.2rem;
}

.tag-pill {
  background: var(--hydra-pill-bg);
  color: var(--hydra-navy);
  border-radius: 999px;
  border: 1px solid var(--hydra-pill-border);
  padding: .2rem .9rem;
  font-size: .75rem;
  font-weight: 600;
}

/* Section styling */
.section-label {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .7rem;
  color: var(--hydra-blue);
  margin-bottom: .25rem;
}

.section-title-strong {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--hydra-navy);
  margin-bottom: .7rem;
}

.section-intro {
  color: var(--hydra-text-muted);
  max-width: 740px;
  margin-bottom: 1.6rem;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}


.card-grid-1{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  width: 100%;
}
.card-grid.card-grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px){
  .card-grid.card-grid-2{ grid-template-columns: 1fr; }
}
.vbl-card {
  background: var(--hydra-card-bg);
  border-radius: 14px;
  border: 1px solid var(--hydra-border);
  padding: 1.3rem 1.4rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.vbl-card h3 {
  font-size: 1.05rem;
  text-align: left;
  font-weight: 700;
  color: var(--hydra-navy);
  margin-bottom: .4rem;
}

.vbl-card p {
  font-size: .92rem;
  color: var(--hydra-text-muted);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;

}

@media (max-width: 768px){
  .vbl-card p{
    text-align: left;
    hyphens: none;
  }
}


/* =========================================
   VBL CARD – FULL WIDTH (STACKED)
   ========================================= */

.vbl-card-1 {
  width: 100%;
  display: block;
  background: var(--hydra-card-bg);
  border-radius: 18px;
  padding: 22px 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px; /* spacing between stacked cards */
}

/* Optional: slightly larger text for narrative cards */
.vbl-card-1 p {
  font-size: .92rem;
  color: var(--hydra-text-muted);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Ensure links behave nicely */
/* Links inside single-column cards */
.vbl-card-1 a {
  color: #003f7d
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.vbl-card-1 a:hover {
  color: #003247;
  text-decoration: none;
}
.footer-logo {
  display: inline-block;
  height: 40px;
  vertical-align: middle; /
  margin: 0 6px 0 0;     
  opacity: 0.85;
}

.pill-mini {
  display: inline-block;
  padding: .15rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--hydra-border);
  background: #f8fafc;
  color: var(--hydra-text-muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .5rem;
}

/* Footer */
.vbl-footer {
  margin-top: 3rem;
  padding: 1.8rem 0 0.8rem;
  text-align: center;
  color: var(--hydra-text-muted);
  font-size: .85rem;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--hydra-border), transparent);
  margin-bottom: 1rem;
}

.footer-text a {
  color: var(--hydra-blue);
  font-weight: 500;
}

.vbl-footer-classic {
  padding: 0.6rem 1rem;        /* reduce footer height */
}

.vbl-footer-classic p {
  margin: 0.2rem 0;            /* remove big paragraph gaps */
  line-height: 1.35;
}


.vbl-footer-line {
  margin-bottom: 0.4rem;       /* tighten separator spacing */
}


/* Timeline container */
.wp-timeline {
  margin: 2rem 0 1.5rem;
}

.wp-timeline-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, #d1d5db, #9ca3af, #d1d5db);
  overflow: visible;
}

/* Moving marker */
.wp-timeline-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #0069a8; /* HYDRA blue */
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 105, 168, 0.25);
  transition: left 0.35s ease, box-shadow 0.25s ease;
}

/* Labels under the bar */
.wp-timeline-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: .5rem;
  gap: .5rem;
  text-align: center;
  font-size: .8rem;
  color: #4b5563;
}

.wp-timeline-label span {
  display: block;
  font-size: .75rem;
  color: #6b7280;
}

.wp-timeline-label.active {
  color: #0069a8;
  font-weight: 600;
}

/* WP cards list */
.wp-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.wp-phase-title {
  font-weight: 600;
  display: block;
}

.wp-phase-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  display: block;
}

/* Make each WP card slightly “sticky” when scrolling for a nice effect (optional) */
@media (min-width: 900px) {
  .wp-card {
    scroll-margin-top: 5rem;
  }
}

/* ============================
   GANTT / TIMELINE (HYDRA-EO)
   ============================ */

.vbl-gantt {
  margin: 2rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* One row = label + bar */
.vbl-gantt-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 1rem;
}

/* Left label */
.vbl-gantt-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hydra-text-dark, #0f172a);
  line-height: 1.3;
}

.vbl-gantt-label span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--hydra-text-muted, #4b5563);
  margin-top: 2px;
}

/* Bar background */
.vbl-gantt-bar {
  height: 14px;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
  overflow: hidden;
}

/* Phase bars (length = duration) */
.vbl-gantt-bar.phase1 {
  width: 25%;
  background: linear-gradient(
    90deg,
    #93c5fd,
    #60a5fa
  );
}

.vbl-gantt-bar.phase2 {
  width: 10%;
  background: linear-gradient(
    90deg,
    #003247,
    #003f7d
  );
}
.vbl-gantt-bar.phase3 {
  width: 65%;
  background: linear-gradient(
    90deg,
    #60a5fa,
    #2563eb
  );
}

.vbl-gantt-bar.phase4 {
  width: 35%;
  background: linear-gradient(
    90deg,
    #34d399,
    #059669
  );
}



/* Responsive */
@media (max-width: 768px) {
  .vbl-gantt-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .vbl-gantt-bar {
    width: 100% !important;
  }
}

/* --- 3-image cards strip (HydraEO style) --- */
.img-strip{
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.img-frame{
  background: #ffffff;
  border-radius: 18px;
  padding: 0.7rem;
  border: 1px solid var(--border-subtle, #e4e8f4);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.img-frame img{
  width: 100%;
  height: 220px;          /* <-- CLAVE: fija el alto para “card look” */
  border-radius: 14px;
  object-fit: cover;      /* recorta sin deformar */
  object-position: center;
  display: block;
}

.img-caption{
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted, #666);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px){
  .img-strip{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .img-strip{ grid-template-columns: 1fr; }
}

/* RTM-Suite release article */
.rtm-language-badge {
  height: 24px;
  width: auto;
  margin-right: .35rem;
}

.rtm-article-badges {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: .75rem 0 1rem;
}

.rtm-article-badges p { margin: 0; }

.press-lead {
  margin: 1rem 0 2rem;
  padding: 1.25rem 1.4rem;
  border-left: 5px solid #2bb3a3;
  background: #eaf7f5;
  border-radius: 0 14px 14px 0;
  color: var(--hydra-text-dark);
  font-size: 1.1rem;
}

.press-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--hydra-navy), var(--hydra-blue));
  border-radius: 18px;
  font-size: 1.12rem;
  font-weight: 600;
}

.press-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.press-gallery-item {
  padding: .8rem;
  background: #fff;
  border: 1px solid var(--hydra-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  color: var(--hydra-text-muted);
  font-size: .88rem;
}

.press-gallery-item img {
  width: 100%;
  border-radius: 12px;
}

.press-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 2rem 0;
}

.press-actions a,
a.news-button,
a.news-link {
  display: inline-block;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.press-primary,
a.news-button {
  color: #fff !important;
  background: var(--hydra-blue);
}

.press-secondary,
a.news-link {
  color: var(--hydra-blue) !important;
  border: 1px solid var(--hydra-blue);
  background: #fff;
}

@media (max-width: 700px) {
  .press-gallery { grid-template-columns: 1fr; }
}

/* RTM-Suite tools catalogue */
.tools-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 0%, #edf8f7 100%);
  border: 1px solid var(--hydra-border);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
}
.tools-hero h1 { color: var(--hydra-navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.tools-hero-copy > p { color: var(--hydra-text-muted); }
.tools-hero-badges, .tools-hero-badges p { display: flex; gap: .35rem; margin: 0; }
.tools-hero-visual { padding: .7rem; background: #fff; border: 1px solid var(--hydra-border); border-radius: 17px; }
.tools-hero-visual img { width: 100%; border-radius: 12px; }
.tools-hero-visual span, .tools-figure-card p, .tools-figure-wide span { display: block; color: var(--hydra-text-muted); font-size: .82rem; line-height: 1.45; }
.tools-actions, .tools-menu { display: flex; flex-wrap: wrap; gap: .65rem; }
.tools-actions { margin-top: 1.2rem; }
.tools-actions a, .tools-primary, .tools-secondary, .tools-menu a, .tools-card-link { display: inline-block; border-radius: 999px; padding: .62rem 1rem; font-weight: 700; text-decoration: none; }
.tools-primary { color: #fff !important; background: var(--hydra-blue); }
.tools-secondary, .tools-card-link { color: var(--hydra-blue) !important; border: 1px solid var(--hydra-blue); background: #fff; }
.tools-menu { position: sticky; top: 70px; z-index: 20; justify-content: center; padding: .65rem; margin: 0 0 2.5rem; background: rgba(244, 246, 251, .94); backdrop-filter: blur(10px); }
.tools-menu a { color: var(--hydra-navy); background: #fff; border: 1px solid var(--hydra-border); font-size: .85rem; }
.tools-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 1.4rem 0 3rem; }
.tools-package-card, .tools-learning-card { display: flex; flex-direction: column; padding: 1.25rem; background: #fff; border: 1px solid var(--hydra-border); border-radius: 16px; box-shadow: 0 9px 26px rgba(15, 23, 42, .06); }
.tools-package-card > p:first-child,
.tools-learning-card > p:first-child {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 .8rem;
  text-align: left;
}
.tools-package-card .rtm-language-badge,
.tools-learning-card .rtm-language-badge,
.tools-hero-badges .rtm-language-badge {
  display: inline-block;
  flex: 0 0 auto;
  width: auto !important;
  height: 24px !important;
  max-width: none !important;
  margin: 0 !important;
  vertical-align: middle;
}
.tools-package-card h3, .tools-learning-card h3 { color: var(--hydra-navy); }
.tools-package-card p, .tools-learning-card p { color: var(--hydra-text-muted); font-size: .9rem; }
.tools-package-card .tools-card-link, .tools-learning-card .tools-card-link { margin-top: auto; align-self: flex-start; font-size: .82rem; }
.tools-capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1.3rem 0 2rem; }
.tools-capability { padding: 1rem; border-left: 4px solid #2bb3a3; background: #fff; border-radius: 0 12px 12px 0; }
.tools-capability p { margin: 0; color: var(--hydra-text-muted); font-size: .88rem; }
.tools-figure-wide, .tools-figure-card { padding: .75rem; background: #fff; border: 1px solid var(--hydra-border); border-radius: 17px; box-shadow: 0 9px 26px rgba(15, 23, 42, .06); }
.tools-figure-wide { margin: 1rem 0 1.25rem; }
.tools-figure-wide img, .tools-figure-card img { width: 100%; border-radius: 11px; }
.tools-figure-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 3rem; }
.tools-figure-card p { margin: .65rem .25rem .15rem; }
.tools-learning-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.3rem 0 2.5rem; }

@media (max-width: 900px) {
  .tools-hero { grid-template-columns: 1fr; }
  .tools-package-grid, .tools-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-learning-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .tools-hero { padding: 1.25rem; }
  .tools-package-grid, .tools-capability-grid, .tools-figure-pair { grid-template-columns: 1fr; }
  .tools-menu { position: static; justify-content: flex-start; }
}

/* HYDRA-EO 2026 campaign story */
.news-campaign-images,
.news-campaign-images p {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0 1.2rem;
}

.news-campaign-images p { grid-column: 1 / -1; margin: 0; }

.news-campaign-images a {
  display: block;
  height: 210px;
  overflow: hidden;
  border-radius: 13px;
  background: #eef2f6;
}

.news-campaign-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.news-campaign-images a:hover img { transform: scale(1.025); }

.campaign-lead {
  margin: 1rem 0 1.5rem;
  padding: 1.3rem 1.5rem;
  border-left: 5px solid #2bb3a3;
  background: linear-gradient(135deg, #eaf7f5, #f8fbff);
  border-radius: 0 16px 16px 0;
  color: var(--hydra-text-dark);
  font-size: 1.08rem;
}

.campaign-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: 1.8rem 0 2.5rem;
  padding: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--hydra-navy), var(--hydra-blue));
  border-radius: 17px;
}

.campaign-scale span {
  padding: .45rem .7rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.campaign-scale b { color: #f2c94c; }

.campaign-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 2.3rem;
}

.campaign-photo {
  padding: .75rem;
  background: #fff;
  border: 1px solid var(--hydra-border);
  border-radius: 17px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

.campaign-photo img {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 11px;
  background: #eef2f6;
}

.campaign-photo p {
  margin: .65rem .25rem .15rem;
  color: var(--hydra-text-muted);
  font-size: .84rem;
  line-height: 1.5;
}

.campaign-photo-wide { margin: 1.25rem 0 2.3rem; }
.campaign-photo-wide img { max-height: 620px; }

@media (max-width: 700px) {
  .news-campaign-images,
  .news-campaign-images p { grid-template-columns: 1fr; }
  .news-campaign-images a { height: 190px; }
  .campaign-gallery { grid-template-columns: 1fr; }
  .campaign-scale { justify-content: flex-start; }
  .campaign-scale b { transform: rotate(90deg); }
}

/* HYDRA-EO scientific pipeline */
.pipeline-hero {
  padding: 2rem 2.2rem;
  margin-bottom: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--hydra-navy), var(--hydra-blue));
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 50, 71, .18);
}
.pipeline-hero .section-label { color: #8ee4d8; }
.pipeline-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.pipeline-hero p { max-width: 900px; color: rgba(255,255,255,.86); }
.pipeline-actions, .pipeline-actions p { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0 0; }
.pipeline-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap: .55rem; align-items: stretch; margin: 1.4rem 0 3rem; }
.pipeline-step { padding: 1rem; background: #fff; border: 1px solid var(--hydra-border); border-radius: 14px; box-shadow: 0 8px 22px rgba(15,23,42,.05); }
.pipeline-step span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: .65rem; color: #fff; background: var(--hydra-blue); border-radius: 50%; font-size: .75rem; font-weight: 800; }
.pipeline-step p { margin: .35rem 0 0; color: var(--hydra-text-muted); font-size: .78rem; line-height: 1.45; }
.pipeline-step-accent { background: #eaf7f5; border-color: #8ed9d0; }
.pipeline-step-accent span { background: #158777; }
.pipeline-arrow { display: grid; place-items: center; color: #2bb3a3; font-size: 1.4rem; font-weight: 800; }
.pipeline-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin: 1.25rem 0 2rem; }
.pipeline-card { padding: 1.2rem; background: #fff; border: 1px solid var(--hydra-border); border-radius: 15px; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.pipeline-card h3 { color: var(--hydra-navy); }
.pipeline-card p { color: var(--hydra-text-muted); font-size: .88rem; }
.pipeline-image-wide, .pipeline-image-card { padding: .75rem; background: #fff; border: 1px solid var(--hydra-border); border-radius: 16px; box-shadow: 0 9px 26px rgba(15,23,42,.06); }
.pipeline-image-wide { margin: 1rem 0 3rem; }
.pipeline-image-wide img, .pipeline-image-card img { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 11px; background: #eef2f6; }
.pipeline-image-wide span, .pipeline-image-card span { display: block; margin-top: .6rem; color: var(--hydra-text-muted); font-size: .82rem; }
.pipeline-rtm-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: center; margin: 1.3rem 0 3rem; }
.pipeline-rtm-copy { padding: 1.35rem; background: #fff; border-left: 5px solid #2bb3a3; border-radius: 0 16px 16px 0; }
.pipeline-image-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1.25rem 0 3rem; }
.pipeline-inversion-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin: 1.25rem 0 1.6rem; }
.pipeline-inversion-stage { padding: 1rem; color: #fff; background: linear-gradient(135deg, #003247, #06577a); border-radius: 14px; }
.pipeline-inversion-stage p { margin: .4rem 0 0; color: rgba(255,255,255,.8); font-size: .82rem; }
.pipeline-output-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; margin: 1.25rem 0 2rem; }
.pipeline-output { padding: 1.1rem; background: #fff; border-top: 4px solid #2bb3a3; border-radius: 12px; }
.pipeline-output p { margin: .4rem 0 0; color: var(--hydra-text-muted); font-size: .86rem; }
.pipeline-final { padding: 1.4rem 1.6rem; margin: 1.5rem 0; background: #eaf7f5; border: 1px solid #b9e5df; border-radius: 17px; }

@media (max-width: 1050px) {
  .pipeline-flow { grid-template-columns: 1fr; }
  .pipeline-arrow { transform: rotate(90deg); }
  .pipeline-inversion-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .pipeline-card-grid, .pipeline-output-grid { grid-template-columns: 1fr; }
  .pipeline-rtm-layout, .pipeline-image-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pipeline-hero { padding: 1.4rem; }
  .pipeline-inversion-grid { grid-template-columns: 1fr; }
}

/* Updated project timeline */
.timeline-hero { padding: 2rem 2.2rem; color: #fff; background: linear-gradient(135deg, var(--hydra-navy), #075b79); border-radius: 22px; box-shadow: 0 16px 40px rgba(0,50,71,.16); }
.timeline-hero .section-label { color: #8ee4d8; }
.timeline-hero h1 { color: #fff; font-size: clamp(2rem,4vw,3rem); line-height: 1.1; }
.timeline-hero p { max-width: 900px; color: rgba(255,255,255,.84); }
.timeline-now { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; margin: 1rem 0 2.5rem; padding: 1rem 1.2rem; background: #eaf7f5; border: 1px solid #b9e5df; border-radius: 15px; }
.timeline-now span { padding: .4rem .7rem; color: #fff; background: #158777; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.timeline-now p { margin: 0; }
.timeline-roadmap { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1.2rem 0 3rem; }
.timeline-year { position: relative; padding: 1.3rem; background: #fff; border: 1px solid var(--hydra-border); border-radius: 17px; box-shadow: 0 9px 26px rgba(15,23,42,.05); }
.timeline-year-active { border-top: 5px solid #2bb3a3; }
.timeline-year h3 { color: var(--hydra-navy); }
.timeline-year ul { padding-left: 1.1rem; color: var(--hydra-text-muted); font-size: .86rem; }
.timeline-phase-status { display: inline-block; padding: .25rem .6rem; color: #fff; background: #158777; border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.timeline-status-planned { color: var(--hydra-blue); background: #e7eef8; }
.timeline-events { position: relative; margin: 1.4rem 0 3rem; padding-left: 2rem; }
.timeline-events::before { content: ""; position: absolute; top: .4rem; bottom: .4rem; left: .55rem; width: 3px; background: linear-gradient(#2bb3a3 0 58%, #b6c2d0 58%); border-radius: 999px; }
.timeline-event { position: relative; margin-bottom: 1rem; padding: 1.15rem 1.25rem; background: #fff; border: 1px solid var(--hydra-border); border-radius: 15px; box-shadow: 0 8px 22px rgba(15,23,42,.05); }
.timeline-event::before { content: ""; position: absolute; left: -1.88rem; top: 1.25rem; width: 14px; height: 14px; background: #fff; border: 4px solid #2bb3a3; border-radius: 50%; }
.timeline-active::before { border-color: #f2c94c; }
.timeline-event-date { color: var(--hydra-blue); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.timeline-event h3 { margin: .35rem 0; color: var(--hydra-navy); }
.timeline-event p { color: var(--hydra-text-muted); font-size: .88rem; }
.timeline-event-tag { display: inline-block; padding: .25rem .55rem; color: #126d60; background: #dff5f1; border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.timeline-active .timeline-event-tag { color: #725a00; background: #fff4bf; }
.timeline-event-link { font-size: .82rem; font-weight: 700; }
.timeline-event-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .3rem;
  padding: .5rem .8rem;
  color: #fff !important;
  background: var(--hydra-blue);
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.timeline-event-link::after { content: "\2197"; }
.timeline-event-link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,63,125,.16); }
.timeline-gantt-restored { padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--hydra-border); border-radius: 17px; box-shadow: 0 9px 26px rgba(15,23,42,.05); }
.timeline-wp-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1.3rem 0 3rem; }
.timeline-wp-group { padding: 1.2rem; background: #fff; border: 1px solid var(--hydra-border); border-radius: 15px; }
.timeline-wp-current { border-left: 5px solid #2bb3a3; }
.timeline-wp-heading p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin: 0 0 .7rem; }
.timeline-wp-heading span { color: var(--hydra-text-muted); font-size: .72rem; }
.timeline-wp-group ul { margin-bottom: 0; padding-left: 1.1rem; color: var(--hydra-text-muted); font-size: .87rem; }
.timeline-visual-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1.3rem 0 2rem; }
.timeline-visual { padding: .7rem; background: #fff; border: 1px solid var(--hydra-border); border-radius: 16px; box-shadow: 0 9px 26px rgba(15,23,42,.06); }
.timeline-visual img { width: 100%; height: 300px; object-fit: contain; border-radius: 11px; background: #eef2f6; }
.timeline-visual span { display: block; margin-top: .55rem; color: var(--hydra-text-muted); font-size: .82rem; }

@media (max-width: 850px) {
  .timeline-roadmap { grid-template-columns: 1fr; }
  .timeline-wp-groups, .timeline-visual-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .timeline-hero { padding: 1.4rem; }
  .timeline-now { grid-template-columns: 1fr; }
}

/* Contextual navigation between Quarto pages */
.quarto-next {
  margin: 2.5rem 0 1.5rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, #edf8f7, #f7f9ff);
  border: 1px solid #cfe5e5;
  border-radius: 17px;
}
.quarto-next h3 { margin: 0 0 .85rem; color: var(--hydra-navy); font-size: 1rem; }
.quarto-next > p:last-child { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0; }
.quarto-next a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .58rem .9rem;
  color: var(--hydra-blue);
  background: #fff;
  border: 1px solid var(--hydra-blue);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.quarto-next a::after { content: "\2197"; font-size: .9em; }
.quarto-next a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,63,125,.12); }
.quarto-next a.quarto-next-primary { color: #fff; background: var(--hydra-blue); }

/* Contact page */
.contact-hero { position: relative; overflow: hidden; margin: 0 0 2rem; padding: clamp(2rem, 5vw, 4rem); border: 1px solid rgba(25,118,94,.18); border-radius: 28px; background: linear-gradient(130deg,#eef8f4 0%,#f8fbfa 58%,#eef3fb 100%); }
.contact-hero::after { content: ""; position: absolute; right: -4rem; bottom: -6rem; width: 18rem; height: 18rem; border-radius: 50%; background: radial-gradient(circle,rgba(29,145,110,.16),transparent 68%); }
.contact-hero h2 { margin: .35rem 0 .75rem; font-size: clamp(2.25rem,6vw,4.4rem); }
.contact-hero p { position: relative; z-index: 1; max-width: 780px; margin: 0; font-size: 1.12rem; color: #40534d; }
.contact-lead-card { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 2rem; align-items: center; margin: 0 0 3rem; padding: clamp(1.5rem,4vw,2.5rem); border-radius: 24px; color: #fff; background: linear-gradient(135deg,#163f37,#146d58); box-shadow: 0 18px 45px rgba(13,65,53,.18); }
.contact-lead-card h3 { color: #fff; margin: .55rem 0 .3rem; font-size: 1.7rem; }
.contact-lead-card p { color: rgba(255,255,255,.86); }
.contact-lead-card .pill-mini { color: #d8fff1; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); }
.contact-lead-mark { padding: 2rem 1.25rem; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; text-align: center; background: rgba(255,255,255,.08); }
.contact-lead-mark strong { display: block; margin-bottom: .4rem; font-size: 1.55rem; letter-spacing: .06em; }
.contact-lead-mark p { margin: 0; font-size: .9rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.contact-actions a,.contact-repo a { text-decoration: none; }
.contact-primary,.contact-secondary { display: inline-flex; align-items: center; justify-content: center; padding: .68rem 1rem; border-radius: 999px; font-weight: 700; transition: transform .18s ease,box-shadow .18s ease,background .18s ease; }
.contact-primary { color: #125545 !important; background: #fff; box-shadow: 0 7px 18px rgba(0,0,0,.12); }
.contact-lead-card .contact-secondary { color: #fff !important; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.contact-primary:hover,.contact-secondary:hover { transform: translateY(-2px); }
.contact-channel-grid,.contact-repo-grid,.timeline-current-grid { display: grid; gap: 1rem; margin: 1.25rem 0 3rem; }
.contact-channel-grid,.timeline-current-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.contact-repo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.contact-channel,.contact-repo,.timeline-current-item { padding: 1.5rem; border: 1px solid #dbe8e3; border-radius: 20px; background: #fff; box-shadow: 0 9px 28px rgba(20,70,58,.07); }
.contact-channel h3,.contact-repo h3,.timeline-current-item h3 { margin: .65rem 0 .5rem; }
.contact-channel p,.contact-repo p,.timeline-current-item p { color: #566761; }
.contact-channel-icon { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: 12px; color: #fff; font-size: 1.25rem; background: linear-gradient(135deg,#198064,#47a786); }
.contact-text-link { display: block; margin-top: .55rem; font-weight: 700; text-decoration: none; color: #137158; }
.contact-text-link:hover { text-decoration: underline; }
.contact-repo-logo { width: auto; height: 30px; object-fit: contain; object-position: left center; }
.contact-tech-badge { width: auto; height: 32px; }
.contact-repo .contact-secondary { margin: .45rem .35rem 0 0; color: #146b56 !important; border: 1px solid #b9d8cc; background: #f1f8f5; }
@media (max-width:820px) { .contact-lead-card { grid-template-columns: 1fr; } .contact-lead-mark { text-align: left; } .contact-channel-grid,.timeline-current-grid { grid-template-columns: 1fr; } }
@media (max-width:620px) { .contact-repo-grid { grid-template-columns: 1fr; } .contact-actions { align-items: stretch; flex-direction: column; } .contact-actions a { width: 100%; } }
