/* ============================================================
   MEDDORE ENERGY — corporate site stylesheet
   Palette: warm paper + deep green ink + emerald accent
   ============================================================ */

:root {
  --ink: #0e1512;
  --ink-2: #22312b;
  --paper: #f7f5f0;
  --card: #ffffff;
  --line: #e5e1d6;
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #156a52;
  --accent-2: #3aa57f;
  --accent-soft: #e4efe9;
  --gold: #c8a15a;
  --muted: #68756f;
  --muted-2: #94a09a;
  --danger: #b3492f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -24px rgba(14, 21, 18, 0.25);
  --shadow-sm: 0 10px 30px -18px rgba(14, 21, 18, 0.35);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", serif;
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.container--narrow { width: min(880px, calc(100% - 48px)); }

/* ---------- typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--light { color: #9fd8c2; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

.display {
  font-size: clamp(40px, 6.2vw, 76px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.025em; line-height: 1.08; }
.h3 { font-size: clamp(21px, 2.4vw, 26px); }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.lede { font-size: 18px; color: var(--muted); max-width: 60ch; }
.lead-light { color: rgba(255, 255, 255, 0.72); }

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--dark { background: var(--ink); color: #f2f1ec; }
.section--card { background: var(--card); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .h2 { margin: 18px 0 16px; }
.section-head.on-dark .lede { color: rgba(255, 255, 255, 0.6); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #0f5742; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #f2f1ec; color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.link-arrow:hover { border-color: currentColor; }
.link-arrow svg { transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 60;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { height: 30px; width: auto; display: block; flex: none; }
.site-footer .brand__logo { height: 26px; }
/* transparent header over dark hero: swap to light logo + white wordmark */
.brand__logo--light { display: none; }
.site-header:not(.is-scrolled):not(.is-solid) .brand__logo--dark { display: none; }
.site-header:not(.is-scrolled):not(.is-solid) .brand__logo--light { display: block; }
.site-header:not(.is-scrolled):not(.is-solid) .brand__name { color: #fff; }
.site-header:not(.is-scrolled):not(.is-solid) .brand__sub { color: rgba(255, 255, 255, 0.55); }
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.brand__name { font-weight: 700; letter-spacing: 0.04em; font-size: 16px; line-height: 1.1; }
.brand__sub { display: block; font-size: 10px; letter-spacing: 0.34em; color: var(--muted); font-weight: 600; }
.on-dark-brand .brand__sub { color: rgba(255, 255, 255, 0.5); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: rgba(14, 21, 18, 0.06); }
.main-nav a.is-active { background: var(--ink); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  place-items: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 2.5px auto; transition: 0.25s; }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  z-index: 55;
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-size: 22px;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroZoom 12s ease forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 13, 0.35) 0%, rgba(10, 16, 13, 0.25) 40%, rgba(8, 12, 10, 0.88) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 140px 0 0; width: 100%; }
.hero .eyebrow { margin-bottom: 22px; }
.hero .display { max-width: 15ch; }
.hero__sub { margin-top: 24px; max-width: 58ch; font-size: 17px; color: rgba(255, 255, 255, 0.78); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__stats {
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 0 40px;
}
.hero__stat b { display: block; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.hero__stat span { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }

/* page hero (subpages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(48px, 6vw, 72px);
  color: #fff;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 13, 0.55), rgba(10, 16, 13, 0.82));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .display { max-width: 18ch; }
.page-hero .lede { margin-top: 20px; color: rgba(255, 255, 255, 0.75); }

/* ---------- marquee ---------- */

.marquee {
  background: var(--ink);
  color: #8ba79b;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}
.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track b { color: #e8e6df; font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- split / editorial ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__media--tall img { aspect-ratio: 3.4 / 4; }

.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.fact-row div { border-top: 1px solid var(--line); padding-top: 14px; }
.fact-row b { display: block; font-size: 22px; font-weight: 600; }
.fact-row span { font-size: 13px; color: var(--muted); }

/* ---------- cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.app-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.app-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: -1;
}
.app-card:hover img { transform: scale(1.05); }
.app-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 16, 13, 0.05) 30%, rgba(8, 12, 10, 0.85));
}
.app-card__body { padding: 26px; }
.app-card h3 { font-size: 21px; margin-bottom: 6px; }
.app-card p { font-size: 14px; color: rgba(255, 255, 255, 0.68); }
.app-card__go {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #9fd8c2;
}

.cap-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.cap-card:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-4px); }
.cap-card__num { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: #9fd8c2; }
.cap-card h3 { margin: 14px 0 10px; font-size: 19px; }
.cap-card p { font-size: 14.5px; color: rgba(255, 255, 255, 0.6); }

/* ---------- product cards ---------- */

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eceae3; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(247, 245, 240, 0.94);
  color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
}
.product-card__fav {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(247, 245, 240, 0.94);
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.product-card__fav:hover { transform: scale(1.08); }
.product-card__fav.is-active { background: var(--accent); color: #fff; }
.product-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__cat { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.product-card__body h3 { font-size: 17.5px; line-height: 1.3; }
.product-card__tagline { font-size: 13.5px; color: var(--muted); flex: 1; }
.product-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card__actions { display: flex; gap: 10px; margin-top: 8px; }
.product-card__actions .btn { flex: 1; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
}

/* filter pills */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-pill {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.2s ease;
}
.filter-pill:hover { border-color: var(--ink); }
.filter-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- certifications ---------- */

.cert-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cert-band .chip { padding: 12px 20px; font-size: 13px; background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); color: #e8e6df; }
.cert-band .chip:hover { border-color: rgba(255, 255, 255, 0.4); }

/* ---------- CTA band ---------- */

.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: #fff; }
.cta-band img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4;
}
.cta-band__inner { position: relative; z-index: 2; padding: clamp(48px, 7vw, 88px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band .h2 { max-width: 18ch; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.66); padding: 72px 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.site-footer__brand p { font-size: 14.5px; max-width: 34ch; margin-top: 18px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 26px; font-size: 13px; color: rgba(255, 255, 255, 0.4); }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(21, 106, 82, 0.12);
}
.field__hint { font-size: 12.5px; color: var(--muted); }
.field--error input { border-color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.form-status { display: none; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.form-status.is-error { display: flex; background: #f9e9e4; color: #8c3520; }
.form-status.is-success { display: flex; background: var(--accent-soft); color: #0f5742; }

.success-panel {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.success-panel.is-visible { display: block; }
.success-panel__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin: 0 auto 22px;
}

/* ---------- info cards ---------- */

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-card span { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.info-card b { font-size: 16.5px; font-weight: 600; }
.info-card p { font-size: 14px; color: var(--muted); }

/* ---------- contact layout ---------- */

.contact-layout { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 16px; }

/* ---------- account ---------- */

.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.otp-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }

.account-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 36px; }
.account-head__meta { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 19px;
}
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; }
.tab-btn {
  border: none; background: none;
  padding: 14px 18px;
  font-size: 15px; font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tab-btn.is-active { color: var(--ink); border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.inquiry-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
}
.inquiry-item__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.inquiry-item__date { font-size: 13px; color: var(--muted); }
.inquiry-item__msg { font-size: 14.5px; color: var(--ink-2); white-space: pre-wrap; }
.inquiry-item__meta { font-size: 13px; color: var(--muted); margin-top: 10px; }

.status-chip {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}

.saved-item {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}
.saved-item img { width: 84px; height: 68px; object-fit: cover; border-radius: 10px; flex: none; }
.saved-item__body { flex: 1; }
.saved-item__body h4 { font-size: 15px; }
.saved-item__body span { font-size: 12.5px; color: var(--muted); }

.empty-state {
  text-align: center;
  padding: 56px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 15, 13, 0.6);
  backdrop-filter: blur(6px);
  z-index: 90;
  display: none;
  padding: 24px;
  overflow-y: auto;
}
.modal-backdrop.is-open { display: flex; align-items: flex-start; justify-content: center; }
.modal {
  background: var(--paper);
  border-radius: 22px;
  max-width: 980px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px); } }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(247, 245, 240, 0.92);
  display: grid; place-items: center;
  z-index: 5;
}
.modal__media { position: relative; }
.modal__media img { width: 100%; max-height: 380px; object-fit: cover; }
.modal__body { padding: clamp(26px, 4vw, 44px); }
.modal__body .lede { margin: 12px 0 22px; font-size: 15.5px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.spec-table td:last-child { font-weight: 600; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 120;
  box-shadow: var(--shadow);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--danger); }

/* ---------- timeline ---------- */

.timeline { display: grid; gap: 0; max-width: 760px; }
.timeline__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line-dark);
}
.timeline__year { font-family: var(--font-serif); font-style: italic; font-size: 21px; color: #9fd8c2; }
.timeline__item h3 { font-size: 17px; margin-bottom: 6px; }
.timeline__item p { font-size: 14.5px; color: rgba(255, 255, 255, 0.6); }

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, 240px); gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.gallery img:first-child { grid-row: span 2; }

/* ---------- misc ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

.skeleton {
  background: linear-gradient(90deg, #eceae3 25%, #f4f2ec 50%, #eceae3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
  height: 320px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.loading-note { color: var(--muted); font-size: 14px; padding: 24px 0; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media--tall img { aspect-ratio: 4 / 3; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .fact-row { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 64px 1fr; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3, 200px); }
  .gallery img:first-child { grid-row: auto; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .otp-row { grid-template-columns: 1fr; }
  .cta-band__inner { padding: 36px 26px; }
}

/* ============ SEO prose block ============ */
.prose { font-size: 16px; line-height: 1.75; color: var(--ink); }
.prose p { margin-bottom: 16px; }
.prose strong { font-weight: 600; }
.prose .h2 { margin-bottom: 12px; }
