/* =========================================================
   Prometal Resources — Landing page styles
   Palette taken directly from the pitch deck + logo
   ========================================================= */

:root {
  /* Brand palette (from the pitch deck) */
  --navy: #1B3055;
  --navy-2: #27406B;
  --navy-3: #0F1F3C;
  --green: #4C9E2F;
  --green-dark: #3E8526;
  --green-light: #7FC95C;
  --green-tint: #EAF5E2;
  --slate: #51607A;
  --muted: #8A97A8;
  --steel: #8FA2BD;
  --line: #B9C6D9;
  --light: #F2F5F8;
  --white: #FFFFFF;

  --font: "Inter", Arial, Helvetica, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(27, 48, 85, 0.08);
  --shadow-lg: 0 20px 50px rgba(27, 48, 85, 0.16);
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 86px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* off-canvas nav + reveal transforms must never widen the page */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }

.container { width: min(var(--container), calc(100% - 2.5rem)); margin-inline: auto; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 3px;
  background: var(--green);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}
.eyebrow-green { color: var(--green-light); }
.eyebrow-green::before { background: var(--green-light); }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); color: var(--line); }
.section-navy h2, .section-navy h3 { color: var(--white); }

/* Photo background with brand-navy overlay (.bg-photo child carries the inline background-image) */
.bg-media { position: relative; isolation: isolate; }
.bg-media .bg-photo {
  position: absolute; inset: 0; z-index: -2;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  filter: saturate(0.7);
}
.bg-media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(27, 48, 85, 0.9) 0%, rgba(27, 48, 85, 0.8) 50%, rgba(15, 31, 60, 0.92) 100%);
}

.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.section-head .sub { font-size: 1.08rem; color: var(--slate); }
.section-navy .section-head .sub { color: var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 8px 20px rgba(76, 158, 47, 0.3); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(76, 158, 47, 0.38); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(27, 48, 85, 0.08); border-color: rgba(185, 198, 217, 0.5); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height 0.3s; }
.site-header.scrolled .header-inner { height: 72px; }
.brand img { height: 60px; width: auto; transition: height 0.3s; }
.site-header.scrolled .brand img { height: 50px; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 0.25rem; }
.nav a {
  display: block; padding: 0.5rem 0.8rem;
  font-size: 0.92rem; font-weight: 500; color: var(--navy);
  border-radius: 8px; position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 4px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--green-dark); }
.nav a.nav-cta { display: none; }
@media (max-width: 860px) {
  .nav a.nav-cta {
    display: inline-flex; margin: 1.5rem 0.9rem 0; padding: 0.9rem 1.6rem; width: calc(100% - 1.8rem);
    font-size: 1rem; font-weight: 600; color: var(--white); background: var(--green); border-radius: 999px;
  }
  .nav a.nav-cta:hover { background: var(--green-dark); }
  .nav a.nav-cta::after { display: none; }
}

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (video background) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-3);
  color: var(--white);
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 7rem);
  min-height: min(88vh, 820px); display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.05); transform: scale(1.02);
  animation: heroFade 1.6s ease-out both;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 31, 60, 0.9) 0%, rgba(27, 48, 85, 0.72) 45%, rgba(27, 48, 85, 0.3) 100%),
    linear-gradient(180deg, rgba(15, 31, 60, 0.15) 0%, rgba(15, 31, 60, 0.55) 100%);
}
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; margin: 0.4rem 0 1.4rem; color: var(--white); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.hero h1 .accent { color: var(--green-light); position: relative; display: inline-block; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.22em;
  background: var(--green); opacity: 0.45; z-index: -1; border-radius: 4px;
  transform: scaleX(0); transform-origin: left; animation: underline 0.9s 0.9s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 540px; color: var(--line); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 1.8rem; }
.btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-tags li {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 0.85rem; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

.hero-card {
  background: rgba(15, 31, 60, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--white); border-radius: 20px; padding: 1.8rem;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(127, 201, 92, 0.35), transparent 70%);
}
.hc-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.hc-head img { width: 46px; height: 46px; }
.hc-head strong { display: block; font-size: 1.05rem; }
.hc-head span { font-size: 0.85rem; color: var(--line); }
.hc-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; padding: 1.3rem 0; }
.hc-flow li { text-align: center; background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 0.9rem 0.4rem; transition: background 0.25s, transform 0.25s; }
.hc-flow li:hover { background: rgba(127, 201, 92, 0.22); transform: translateY(-3px); }
.hc-flow img { width: 30px; height: 30px; margin: 0 auto 0.45rem; }
.hc-flow span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hc-foot { font-size: 0.9rem; color: var(--line); border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.1rem; }

/* ---------- Stats ---------- */
.stats { background: var(--navy-3); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1.5rem; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--green-light); letter-spacing: -0.02em; line-height: 1; }
.stat-label { display: block; margin-top: 0.5rem; font-size: 0.88rem; color: var(--steel); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon { width: 48px; height: 48px; margin-bottom: 1.1rem; }
.card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; }

/* ---------- Process ---------- */
.process-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; counter-reset: step; }
.process-flow.process-3 { grid-template-columns: repeat(3, 1fr); }
.step {
  position: relative; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 2rem 1.5rem 1.7rem; transition: background 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.step:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-6px); border-color: rgba(127, 201, 92, 0.5); }
.step-num { position: absolute; top: 1.1rem; right: 1.2rem; font-size: 0.8rem; font-weight: 700; color: var(--green-light); letter-spacing: 0.1em; }
.step .icon { width: 46px; height: 46px; margin-bottom: 1.2rem; }
.step h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; color: var(--white); }
.step p { font-size: 0.93rem; color: var(--line); }
.step::after {
  content: ""; position: absolute; top: 50%; right: -1.05rem; width: 0.6rem; height: 0.6rem;
  border-top: 2px solid var(--green-light); border-right: 2px solid var(--green-light); transform: translateY(-50%) rotate(45deg);
}
.step:last-child::after { display: none; }

.pull-line {
  margin-top: clamp(2.2rem, 5vw, 3.2rem); text-align: center; font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600; color: var(--white);
  padding: 1.3rem 1.5rem; border-left: 4px solid var(--green-light); background: rgba(255, 255, 255, 0.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 900px; margin-inline: auto;
}
.pull-line em { font-style: normal; color: var(--green-light); }
.pull-dark { color: var(--navy); background: var(--white); border-left-color: var(--green); box-shadow: var(--shadow); }
.pull-dark em { color: var(--green-dark); }

/* ---------- Business model ---------- */
.material h4 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.material p { font-size: 0.94rem; }

.material-cards { display: grid; gap: 1rem; }
.material-cards-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.material-cards-3 .material { flex-direction: column; border-left: 0; border-top: 4px solid var(--green); }
.material-cards-3 .material:hover { transform: translateY(-6px); }
.material-cards-3 .material-photo { width: 100%; flex: 0 0 auto; height: 170px; }
.material-cards-3 .material > div { padding: 1.4rem 1.5rem 1.6rem; }
.material {
  display: flex; gap: 0; align-items: stretch; overflow: hidden;
  background: var(--light); border-radius: var(--radius);
  border-left: 4px solid var(--green); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.material:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.material:hover .material-photo { transform: scale(1.06); }
.material > div { padding: 1.2rem 1.4rem; }
.material-photo { width: 132px; flex: 0 0 132px; object-fit: cover; transition: transform 0.6s var(--ease); }
.material h4 { display: flex; align-items: center; gap: 0.5rem; }
.material-icon { width: 22px; height: 22px; }

/* ---------- Yards ---------- */
.yard {
  background: var(--white); border-radius: var(--radius); overflow: hidden; text-align: center;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.yard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.yard:hover .yard-photo img { transform: scale(1.06); }
.yard-photo { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.yard-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 48, 85, 0.05), rgba(27, 48, 85, 0.35)); }
.yard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.yard-body { padding: 1.4rem 1.4rem 1.6rem; border-top: 4px solid var(--green); }
.yard h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.06em; }
.yard-city { display: inline-block; margin: 0.35rem 0 0.8rem; font-size: 0.8rem; font-weight: 600; color: var(--green-dark); background: var(--green-tint); padding: 0.2rem 0.7rem; border-radius: 999px; }
.yard p { font-size: 0.93rem; }

/* Main yard feature */
.yard-main {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.yard-main-photo { position: relative; min-height: 340px; overflow: hidden; }
.yard-main-photo img { width: 100%; height: 100%; object-fit: cover; }
.yard-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--green); color: var(--white); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 0.4rem 0.85rem; border-radius: 999px;
}
.yard-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--white); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.yard-main-body { padding: 2.2rem 2.2rem 2rem; align-self: center; }
.yard-main-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.8rem; }
.yard-main-body > p { font-size: 0.98rem; margin-bottom: 1.4rem; }
.yard-specs { display: grid; gap: 0.9rem; }
.yard-specs li { display: flex; gap: 0.9rem; align-items: flex-start; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
.yard-specs img { width: 30px; height: 30px; flex: 0 0 30px; }
.yard-specs strong { display: block; font-size: 0.98rem; color: var(--navy); }
.yard-specs span { font-size: 0.9rem; }

.network { margin-top: clamp(4rem, 8vw, 6rem); }
.net-card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.6rem; border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.net-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.net-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 0.7rem; }
.net-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.net-card p { font-size: 0.94rem; }
.net-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; margin-top: 2.5rem; font-size: 0.95rem; color: var(--slate); }
.net-facts strong { font-size: 1.4rem; color: var(--navy); margin-right: 0.4rem; }

/* ---------- Clients ---------- */
.client-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.client-logos li { text-align: center; }
.logo-box {
  background: var(--white); border-radius: var(--radius); height: 112px;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1.2rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.client-logos li:hover .logo-box { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.logo-box img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.logo-box.logo-text img { width: 30px; height: 30px; }
.logo-box.logo-text strong { font-size: 1rem; font-weight: 800; line-height: 1.1; letter-spacing: 0.03em; color: var(--navy); text-transform: uppercase; text-align: left; }
.client-logos span { display: block; font-size: 0.8rem; color: var(--steel); margin-top: 0.7rem; }
.client-note { margin-top: 3rem; text-align: center; max-width: 720px; margin-inline: auto; }
.client-note .big { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; color: var(--white); margin-bottom: 0.6rem; }
.client-note .big em { font-style: normal; color: var(--green-light); }

/* ---------- Why ---------- */
.why-card {
  display: flex; gap: 1.3rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.why-card img { width: 52px; height: 52px; flex: 0 0 52px; padding: 8px; background: var(--green-tint); border-radius: 12px; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.95rem; }
.quote {
  margin: 3rem auto 0; max-width: 760px; text-align: center;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--navy); letter-spacing: -0.01em;
}

/* ---------- Institution ---------- */
.institution-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; align-items: stretch; }
.inst-photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px; box-shadow: var(--shadow-lg); }
.inst-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.inst-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.5rem;
  color: var(--white); font-weight: 600; font-size: 1.02rem; line-height: 1.4;
  background: linear-gradient(180deg, transparent, rgba(15, 31, 60, 0.9));
}
.commits { display: grid; gap: 1.5rem; }
.commit {
  position: relative; background: var(--light); border-radius: var(--radius); padding: 2.2rem 2rem 2rem; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.commit:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.commit-num { position: absolute; top: -0.4rem; right: 1rem; font-size: 5rem; font-weight: 800; color: var(--line); opacity: 0.45; line-height: 1; }
.commit h3 { font-size: 1.3rem; margin-bottom: 0.8rem; position: relative; }
.commit p { position: relative; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 1.35rem; height: 2px; background: var(--line); }
.timeline li { position: relative; padding-top: 3.2rem; }
.timeline li::before {
  content: ""; position: absolute; top: 0.85rem; left: 0; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--white); border: 3px solid var(--navy); z-index: 1;
}
.timeline li:first-child::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 6px rgba(76, 158, 47, 0.2); }
.tl-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); background: var(--white); border: 1px solid var(--line); padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.9rem; }
.tl-now { color: var(--white); background: var(--green); border-color: var(--green); }
.timeline h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.timeline p { font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); }
.contact.bg-media::after { background: linear-gradient(160deg, rgba(27, 48, 85, 0.9) 0%, rgba(15, 31, 60, 0.94) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 1rem; }
.contact-info .sub { color: var(--line); margin-bottom: 2rem; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.contact-list img { width: 28px; height: 28px; flex: 0 0 28px; margin-top: 2px; }
.contact-list strong { display: block; color: var(--white); font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-list span, .contact-list a { font-size: 0.95rem; color: var(--line); }
.contact-list a:hover { color: var(--green-light); }

.contact-form { background: var(--white); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); }
.contact-form h3 { font-size: 1.35rem; margin-bottom: 1.4rem; }
.contact-form label { display: block; margin-bottom: 1rem; }
.contact-form label span { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--light); color: var(--navy); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(76, 158, 47, 0.15);
}
.contact-form input.invalid { border-color: #d9534f; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--muted); text-align: center; }
.form-note.ok { color: var(--green-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); color: var(--slate); padding-top: 3.5rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand img { height: 94px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 340px; }
.footer-col h4 { color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.footer-col li { font-size: 0.92rem; margin-bottom: 0.55rem; }
.footer-col a:hover { color: var(--green-dark); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 0; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.back-top { color: var(--navy); font-weight: 600; }
.back-top:hover { color: var(--green-dark); }

/* ---------- Scroll reveal ---------- */
.reveal, .reveal-right { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: opacity, transform; }
.reveal-right { transform: translateX(40px); }
.reveal.in, .reveal-right.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-flow, .process-flow.process-3 { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .client-logos { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .header-cta { display: none; }
  .institution-grid { grid-template-columns: 1fr; }
  .inst-photo { min-height: 260px; }
  .yard-main { grid-template-columns: 1fr; }
  .yard-main-photo { min-height: 260px; }
}

@media (max-width: 860px) {
  /* backdrop-filter would make the header the containing block for the fixed drawer */
  .site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); margin: 0;
    background: var(--white); box-shadow: -10px 0 40px rgba(27, 48, 85, 0.18);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s 0.35s; padding: 6rem 1.5rem 2rem; z-index: 99;
  }
  .nav.open { transform: translateX(0); visibility: visible; transition: transform 0.35s var(--ease), visibility 0s; }
  .nav ul { flex-direction: column; gap: 0.2rem; }
  .nav a { font-size: 1.05rem; padding: 0.8rem 0.9rem; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; position: relative; z-index: 101; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(15, 31, 60, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 98; }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.08); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .grid-3, .grid-2, .material-cards-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .reveal-right { transform: translateY(28px); }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 0.45rem; top: 0; bottom: 0; width: 2px; height: auto; right: auto; }
  .timeline li { padding: 0 0 0 2.2rem; }
  .timeline li::before { top: 0.2rem; }
  .timeline li + li { margin-top: 1.5rem; }
}

@media (max-width: 600px) {
  .grid-4, .process-flow, .process-flow.process-3, .client-logos, .form-row, .footer-inner { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .brand img { height: 50px; }
  .site-header.scrolled .brand img { height: 44px; }
  .hero h1 { font-size: 2.4rem; }
  .hc-flow { grid-template-columns: repeat(3, 1fr); }
  .yard-main-body { padding: 1.6rem 1.4rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 1.5rem; }
  .hero { min-height: 0; }
  .hero-video { display: none; }                       /* save data on phones: poster only */
  .hero-media { background: url("../assets/video/hero-poster.jpg") center / cover no-repeat; }
  .material-photo { width: 96px; flex-basis: 96px; }
  .client-logos { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-right { opacity: 1; transform: none; }
  .hero-video { display: none; }
  .hero-media { background: url("../assets/video/hero-poster.jpg") center / cover no-repeat; }
}
