/* ════════════════════════════════════════════════════════════════
   FK & Partner Co. — Water Platform (production)
   Ported 1:1 from the approved design: FKP Water Platform v2
   Tokens: primary #2563EB · ink #0F172A · page #F4F7FA · tint #F8FAFC
   Type: Plus Jakarta Sans (display) · Inter (body) · JetBrains Mono (labels)
   Fonts are self-hosted — see /assets/fonts/fonts.css
   ════════════════════════════════════════════════════════════════ */

:root {
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --ink: #0F172A;
  --body: #1E293B;
  --secondary: #475569;
  --muted: #64748B;
  /* label/caption gray — darkened from the design's #94A3B8 to meet WCAG AA 4.5:1 on white */
  --faint: #64748B;
  --border: #E2E8F0;
  --hairline: #F1F5F9;
  --page: #F4F7FA;
  --tint: #F8FAFC;
  --emerald-bg: #ECFDF5;
  --emerald-bd: #A7F3D0;
  --emerald-tx: #047857;
  --display: 'Plus Jakarta Sans', sans-serif;
  --sans: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--page);
  background-image:
    linear-gradient(rgba(15,23,42,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
::selection { background: var(--blue); color: #fff; }
img { max-width: 100%; }

@keyframes fkpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes fkrise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fkdrift { from { transform: translate(0,0) scale(1); } to { transform: translate(-60px,40px) scale(1.12); } }
@keyframes fkshimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
@keyframes fkfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fkwave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fkdash { to { stroke-dashoffset: 0; } }

/* fixed white → transparent veil over the top of the page */
.veil {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70vh;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(248,250,252,0.7) 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; width: 100%; }

/* ─── Nav ─── */
.nav { position: relative; z-index: 50; padding: 20px 0 0; }
.nav-pill {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  padding: 14px 24px;
  border-radius: 16px;
  border: 1.5px solid var(--blue-200);
  box-shadow: 0 6px 20px rgba(37,99,235,0.08), 0 1px 3px rgba(15,23,42,0.05);
}
.nav-brand { display: flex; align-items: center; gap: 11px; cursor: pointer; flex: 1; min-width: 0; }
.nav-brand img { height: 34px; width: 34px; display: block; flex-shrink: 0; }
.nav-brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-brand-ar {
  font-size: 12px; font-weight: 600; color: var(--blue); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.nav-brand-en {
  font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--blue);
  line-height: 1.25; letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.nav-links { display: flex; gap: 15px; align-items: center; flex-shrink: 0; }
.nav-links > a { font-size: 14px; font-weight: 500; color: var(--secondary); }
.nav-links > a:hover { color: var(--blue); }
.nav-cta {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff !important;
  padding: 10px 20px; border-radius: 12px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,99,235,0.3); }

/* ─── Shared section chrome ─── */
.section { position: relative; padding: 64px 0; z-index: 1; }
.section-white { background: #fff; }
.section-tint { background: var(--tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 672px; margin-bottom: 44px; }
.badge {
  display: inline-flex; padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #2563EB, #3B82F6); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.h2 {
  font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; margin: 0 0 16px; line-height: 1.1;
}
.lead { color: var(--secondary); font-size: 18px; margin: 0; line-height: 1.6; }

.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.head-row .section-head { margin-bottom: 0; }

.arrow-btn {
  width: 44px; height: 44px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.3s;
}
.arrow-btn.disabled { color: #CBD5E1; cursor: default; pointer-events: none; }
.arrow-pair { display: flex; gap: 12px; flex-shrink: 0; }

/* ─── Hero ─── */
.hero { position: relative; padding: 56px 0 72px; z-index: 1; overflow: hidden; }
.hero-orb-a {
  position: absolute; top: -120px; right: -80px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 62%);
  filter: blur(30px); animation: fkdrift 16s ease-in-out infinite alternate; pointer-events: none;
}
.hero-orb-b {
  position: absolute; bottom: -140px; left: -80px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.16), transparent 62%);
  filter: blur(36px); animation: fkdrift 20s ease-in-out infinite alternate-reverse; pointer-events: none;
}
.hero-waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 72px; overflow: hidden; pointer-events: none; }
.hero-waves svg { position: absolute; left: 0; width: 200%; height: 56px; }
.hero-waves .w1 { bottom: 14px; animation: fkwave 16s linear infinite; }
.hero-waves .w2 { bottom: 0; animation: fkwave 9s linear infinite; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; position: relative; }

.loc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--blue-200); background: var(--blue-50); color: var(--blue-hover);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  animation: fkrise 0.8s 0.05s cubic-bezier(0.22,1,0.36,1) both;
}
.loc-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--blue); animation: fkpulse 1.8s ease-in-out infinite; }

.h1 {
  font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 32px; color: var(--ink);
  animation: fkrise 0.8s 0.15s cubic-bezier(0.22,1,0.36,1) both;
}
.h1-grad {
  position: relative; display: inline-block;
  background: linear-gradient(90deg, #1D3547, #2563EB, #3B82F6, #2563EB, #1D3547);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fkshimmer 8s linear infinite;
}
.h1-underline { position: absolute; left: 2px; right: 2px; bottom: -10px; width: calc(100% - 4px); height: 14px; overflow: visible; }
.h1-underline path { stroke-dasharray: 330; stroke-dashoffset: 330; animation: fkdash 1.3s 0.9s ease forwards; }

.hero-lead {
  font-size: 20px; color: var(--secondary); margin: 0 0 40px; line-height: 1.65;
  font-weight: 300; max-width: 560px;
  animation: fkrise 0.8s 0.25s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; animation: fkrise 0.8s 0.35s cubic-bezier(0.22,1,0.36,1) both; }
.btn-primary {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #2563EB, #3B82F6); color: #fff !important;
  padding: 16px 28px; border-radius: 16px;
  font-weight: 600; font-size: 16px;
  box-shadow: 0 10px 25px rgba(37,99,235,0.2);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,99,235,0.3); }

.stats-panel {
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  padding: 12px; border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  animation: fkrise 0.9s 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.stats-tray {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: linear-gradient(160deg, #DBEAFE, #F8FAFC 70%);
  border-radius: 20px; padding: 8px;
}
.stat-tile {
  background: #fff; padding: 24px; border-radius: 16px;
  border: 1px solid rgba(226,232,240,0.7);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); font-weight: 700; margin: 0 0 8px; }
.stat-row { display: flex; align-items: baseline; gap: 4px; }
.stat-num { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--ink); }
.stat-unit { font-size: 12px; color: var(--blue); font-weight: 600; }
.stat-cap { font-size: 12px; color: var(--muted); margin: 4px 0 0; }

/* ─── Cards (divisions / phases / projects) ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card {
  background: var(--tint); border: 1px solid var(--border);
  padding: 32px; border-radius: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover { border-color: var(--blue-300); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,23,42,0.08); }
.icon-chip {
  width: 56px; height: 56px; background: var(--blue-100); color: var(--blue);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; transition: all 0.3s;
}
.card:hover .icon-chip { background: var(--blue); color: #fff; transform: scale(1.1) rotate(-4deg); box-shadow: 0 8px 20px rgba(37,99,235,0.3); }
.card h3 { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.card-body { color: var(--secondary); font-size: 14px; line-height: 1.65; margin: 0 0 24px; }
.checklist { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 24px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #334155; font-weight: 500; }
.check-row svg { flex-shrink: 0; }

/* ─── Sliders (projects + methodology) ─── */
.slider-clip { overflow: hidden; }
.slider-track { display: flex; gap: 32px; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }
.slide-card {
  flex: 0 0 calc((100% - 32px) / 2);
  box-sizing: border-box;
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.slide-card:hover { border-color: var(--blue-300); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,23,42,0.08); }
.proj-top { padding: 32px 32px 16px; }
.proj-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.proj-client { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.1em; }
.proj-status { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-hover); border: 1px solid var(--blue-200); }
.proj-title {
  font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink);
  margin: 0 0 12px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj-scope {
  color: var(--secondary); font-size: 14px; line-height: 1.65; margin: 0 0 24px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.proj-bottom { padding: 0 32px 32px; }
.proj-mini {
  padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 24px;
}
.mini-label { font-size: 10px; text-transform: uppercase; font-family: var(--mono); color: var(--faint); display: block; }
.mini-cap { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }
.mini-type { font-family: var(--display); font-weight: 700; font-size: 12px; color: #334155; }
.proj-read {
  width: 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 14px; border-radius: 12px; border: none;
  font-family: var(--sans); font-weight: 600; font-size: 14px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,99,235,0.12);
  transition: background 0.3s;
}
.proj-read:hover { background: var(--blue-hover); }

.phase-card {
  flex: 0 0 calc((100% - 32px) / 2);
  box-sizing: border-box;
  background: var(--tint); border: 1px solid var(--border);
  padding: 32px; border-radius: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.phase-card:hover { border-color: var(--blue-300); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,23,42,0.08); }
.phase-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.12em; display: block; margin-bottom: 16px; }
.phase-card h3 { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 12px; line-height: 1.35; white-space: nowrap; }
.phase-card p { color: var(--secondary); font-size: 14px; line-height: 1.65; margin: 0; }
.phase-foot {
  margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600; color: #334155;
}
.pill-std { background: #ECFEFF; color: #0E7490; border: 1px solid #A5F3FC; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.pill-ver { background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-200); padding: 3px 10px; border-radius: 999px; font-weight: 700; }

/* ─── Process viewer ─── */
.sim-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  background: #fff; color: var(--body); font-weight: 600; font-size: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: var(--sans);
}
.sim-toggle:hover { background: var(--tint); }
.sim-dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; background: #F59E0B; animation: fkpulse 1.5s ease-in-out infinite; }
.sim-dot.paused { background: var(--blue); animation: none; }

.sim-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 32px; align-items: start; }
.stage-list { display: flex; flex-direction: column; gap: 12px; }
.stage-tab {
  width: 100%; box-sizing: border-box; text-align: left;
  padding: 20px 24px; border-radius: 16px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; transition: all 0.3s;
  background: #fff; color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  font-family: var(--sans);
}
.stage-tab.active {
  background: var(--blue); color: #fff;
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(37,99,235,0.18);
}
.stage-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: #fff; color: var(--blue);
  border: 1px solid var(--border);
}
.stage-tab.active .stage-icon { border-color: #fff; }
.stage-num { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; display: block; margin-bottom: 4px; color: var(--faint); }
/* white (not blue-200) on the active blue tab for WCAG AA contrast */
.stage-tab.active .stage-num { color: #FFFFFF; }
.stage-tab h3 { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 0; line-height: 1.3; color: inherit; }

.sim-panel { background: #fff; border: 1px solid var(--border); padding: 48px; border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.sim-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.sim-panel-id { display: flex; align-items: center; gap: 12px; }
.sim-panel-icon {
  width: 48px; height: 48px; background: var(--blue-100); color: var(--blue);
  border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sim-kicker { font-size: 11px; text-transform: uppercase; font-family: var(--mono); letter-spacing: 0.12em; color: var(--blue); font-weight: 700; }
.sim-name { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--ink); margin: 2px 0 0; }
.pill-live { padding: 4px 12px; background: var(--emerald-bg); color: var(--emerald-tx); font-size: 12px; font-weight: 600; border-radius: 999px; border: 1px solid var(--emerald-bd); white-space: nowrap; }
.sim-desc { color: var(--secondary); font-size: 18px; line-height: 1.7; margin: 0 0 32px; }
.param-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.param-tile { background: var(--tint); padding: 20px; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.param-label { font-size: 10px; text-transform: uppercase; font-family: var(--mono); color: var(--faint); letter-spacing: 0.08em; display: block; margin-bottom: 4px; }
.param-value { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; }
.info-rows { display: flex; flex-direction: column; gap: 24px; }
.info-row { display: flex; align-items: flex-start; gap: 16px; }
.info-icon {
  width: 48px; height: 48px; background: var(--tint); border-radius: 12px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.info-label { font-size: 11px; text-transform: uppercase; font-family: var(--mono); color: var(--faint); display: block; margin-bottom: 4px; }
.info-value { color: var(--body); font-weight: 500; margin: 0; }
.info-value a { color: var(--body); }
.info-value a:hover { color: var(--blue); }

.form-card {
  background: var(--tint); border: 1px solid var(--border);
  padding: 48px; border-radius: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.form-card h3 { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 24px; }
.form { display: flex; flex-direction: column; gap: 24px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field-label {
  display: block; font-size: 11px; text-transform: uppercase; font-family: var(--mono);
  color: var(--muted); letter-spacing: 0.08em; margin-bottom: 8px;
}
.input, .select, .textarea {
  width: 100%; box-sizing: border-box;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; color: var(--body);
  font-size: 15px; font-family: var(--sans);
  outline: none; transition: border-color 0.3s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); }
.textarea { resize: none; }
.attach-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; border: 1px dashed #CBD5E1; border-radius: 12px;
  padding: 18px 16px; cursor: pointer; transition: border-color 0.3s;
}
.attach-btn:hover { border-color: var(--blue); }
.attach-label { font-size: 14px; font-weight: 500; color: var(--secondary); }
.attach-label.over { color: #B91C1C; }
.submit-btn {
  width: 100%; background: var(--blue); color: #fff;
  padding: 16px; border-radius: 12px; border: none;
  font-weight: 600; font-size: 15px; font-family: var(--sans); cursor: pointer;
  box-shadow: 0 10px 25px rgba(37,99,235,0.25);
  transition: background 0.3s;
}
.submit-btn:hover { background: var(--blue-hover); }
.submit-btn:disabled { opacity: 0.7; cursor: default; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form-error {
  margin: -8px 0 0;
  font-size: 14px;
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 12px;
  padding: 12px 16px;
}
.form-error a { font-weight: 600; }

/* ─── Detail / legal views ─── */
.view-main { position: relative; flex: 1; width: 100%; box-sizing: border-box; padding: 48px 48px 96px; max-width: 1280px; margin: 0 auto; z-index: 1; }
.view-main.narrow { max-width: 1056px; padding-bottom: 64px; }
.back-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--blue);
  background: var(--blue-50); border: 1px solid var(--blue-200);
  padding: 10px 16px; border-radius: 12px; margin-bottom: 32px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background 0.3s;
  font-family: var(--sans);
}
.back-pill:hover { background: var(--blue-100); }
.panel { background: #fff; border: 1px solid var(--border); padding: 48px; border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.panel + .center-cta { margin-top: 48px; }
.detail-panel { margin-bottom: 48px; }

.detail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.detail-client {
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--blue);
  background: var(--blue-50); padding: 4px 12px; border-radius: 6px;
  border: 1px solid var(--blue-200); text-transform: uppercase; letter-spacing: 0.06em;
}
.detail-status { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--emerald-bg); color: var(--emerald-tx); border: 1px solid var(--emerald-bd); }
.detail-h1 { font-family: var(--display); font-size: 38px; font-weight: 700; color: var(--ink); margin: 0 0 6px; line-height: 1.15; letter-spacing: -0.01em; }
.detail-sub { font-size: 15px; font-weight: 600; color: var(--blue); margin: 0 0 24px; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.spec-tile { background: var(--tint); padding: 16px; border-radius: 16px; border: 1px solid var(--border); }
.spec-label { font-size: 10px; text-transform: uppercase; font-family: var(--mono); color: var(--faint); display: block; margin-bottom: 4px; }
.spec-value { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); }
.detail-block { margin-bottom: 40px; }
.detail-block h3, .gallery-h { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.detail-scope { color: var(--secondary); font-size: 18px; line-height: 1.7; margin: 0; }
.detail-para { color: var(--secondary); font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
.about-callout { margin-bottom: 40px; background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: 16px; padding: 24px 28px; }
.about-callout h3 { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--blue-hover); margin: 0 0 10px; }
.about-callout p { color: #334155; font-size: 15px; line-height: 1.7; margin: 0; }

.equip-table { max-width: 760px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.equip-head { display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(135deg, #2563EB, #3B82F6); }
.equip-head span { padding: 13px 20px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; }
.equip-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.equip-row:nth-child(odd) { background: var(--tint); }
.equip-row:nth-child(even) { background: #fff; }
.equip-row.strong { background: var(--blue-50); }
.equip-name { padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--ink); font-family: var(--display); }
.equip-app { padding: 12px 20px; font-size: 14px; font-weight: 400; color: var(--secondary); line-height: 1.5; }
.equip-row.strong .equip-name { font-weight: 700; }
.equip-row.strong .equip-app { font-weight: 700; color: var(--blue-hover); }

.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hl-card {
  background: var(--tint); border: 1px solid var(--border);
  padding: 20px; border-radius: 16px;
  display: flex; align-items: flex-start; gap: 12px;
}
.hl-card svg { flex-shrink: 0; margin-top: 2px; }
.hl-card p { font-size: 14px; font-weight: 500; color: #334155; line-height: 1.6; margin: 0; }

.gallery-h { margin-bottom: 24px !important; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.g1 { grid-template-columns: minmax(0, 640px); }
.gallery-card { background: var(--tint); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.04); display: flex; flex-direction: column; }
/* frames match the photos' native 16:9 — every image shows whole, unmodified */
.gallery-img { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--tint); }
.gallery-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fig-pill {
  position: absolute; top: 12px; right: 12px;
  background: rgba(15,23,42,0.55); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; font-family: var(--mono); font-weight: 600;
  text-transform: uppercase; color: #fff; pointer-events: none;
}
.gallery-text { padding: 16px 20px 18px; }
.gallery-text h4 { font-family: var(--display); font-weight: 700; font-size: 15px; margin: 0 0 6px; line-height: 1.3; color: var(--ink); }
.gallery-text p { font-size: 12px; color: var(--secondary); line-height: 1.6; margin: 0; }

.center-cta { text-align: center; }
.big-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff !important; font-weight: 600;
  padding: 16px 32px; border-radius: 16px; cursor: pointer;
  box-shadow: 0 10px 25px rgba(37,99,235,0.2);
  transition: background 0.3s;
  border: none; font-size: 16px; font-family: var(--sans);
}
.big-cta:hover { background: var(--blue-hover); }

/* legal pages */
.legal-kicker { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.12em; }
.legal-h1 { font-family: var(--display); font-size: 38px; font-weight: 700; color: var(--ink); margin: 8px 0 8px; line-height: 1.15; }
.legal-meta { font-size: 13px; color: var(--faint); margin: 0 0 8px; }
.legal-h3 { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); margin: 32px 0 8px; }
.legal-p { font-size: 15px; color: var(--secondary); line-height: 1.7; margin: 0 0 8px; }
.legal-ul { font-size: 15px; color: var(--secondary); line-height: 1.7; margin: 0; padding-left: 20px; }
.legal-link { color: var(--blue); font-weight: 600; cursor: pointer; }
.mewa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.mewa-tile { background: var(--tint); border: 1px solid var(--border); padding: 24px; border-radius: 16px; }
.mewa-label { font-size: 10px; text-transform: uppercase; font-family: var(--mono); color: var(--faint); letter-spacing: 0.08em; display: block; margin-bottom: 6px; }
.mewa-tile p { font-size: 14px; color: #334155; line-height: 1.6; margin: 0; }

/* ─── Footer ─── */
.footer { position: relative; background: #fff; color: var(--secondary); padding: 20px 0; border-top: 1px solid var(--border); z-index: 1; margin-top: auto; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 12px; color: var(--faint); }
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links span { color: var(--faint); cursor: pointer; }
.footer-links span:hover { color: var(--secondary); }

/* ─── Back to top ─── */
.top-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 55;
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37,99,235,0.3);
  transition: opacity 0.35s, transform 0.35s;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  border: none;
}
.top-btn.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ─── Cookie banner ─── */
.consent-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0 48px 24px; }
.consent-card {
  max-width: 1280px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.14);
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.consent-info { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 320px; }
.consent-shield {
  width: 40px; height: 40px; background: var(--blue-50); border: 1px solid var(--blue-200);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0;
}
.consent-title { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.consent-text { font-size: 13px; color: var(--secondary); line-height: 1.55; margin: 0; }
.consent-actions { display: flex; gap: 12px; flex-shrink: 0; }
.consent-essential {
  padding: 11px 20px; border-radius: 12px; background: #fff;
  border: 1px solid var(--border); color: #334155;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--sans);
  transition: background 0.3s;
}
.consent-essential:hover { background: var(--tint); }
.consent-all {
  padding: 11px 20px; border-radius: 12px; background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: var(--sans);
  box-shadow: 0 4px 12px rgba(37,99,235,0.2);
  transition: background 0.3s;
}
.consent-all:hover { background: var(--blue-hover); }

[hidden] { display: none !important; }
html.fkp-consented .consent-wrap { display: none; }

/* ─── Responsive ─── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-panel { max-width: 560px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .hl-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .h1 { font-size: 52px; }
}

@media (max-width: 820px) {
  .wrap { padding: 0 24px; }
  .view-main { padding-left: 24px; padding-right: 24px; }
  .consent-wrap { padding: 0 16px 16px; }
  .nav-mid { display: none; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 30px; }
  .hero-lead, .lead { font-size: 17px; }
  .grid-3 { grid-template-columns: 1fr; }
  .slide-card, .phase-card { flex: 0 0 100%; }
  .head-row { flex-wrap: wrap; }
  .form-row2 { grid-template-columns: 1fr; }
  .form-card, .sim-panel, .panel { padding: 28px 24px; }
  .param-grid { grid-template-columns: 1fr; }
  .hl-grid, .gallery-grid, .gallery-grid.g2 { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .detail-h1 { font-size: 28px; }
  .legal-h1 { font-size: 28px; }
  .mewa-grid { grid-template-columns: 1fr; }
  .stats-tray { grid-template-columns: 1fr 1fr; }
  .proj-title { white-space: normal; }
  .phase-card h3 { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb-a, .hero-orb-b, .hero-waves svg, .loc-dot, .sim-dot, .h1-grad { animation: none !important; }
  .h1-underline path { animation: none !important; stroke-dashoffset: 0; }
  .loc-badge, .h1, .hero-lead, .hero-ctas, .stats-panel { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
