/* ===========================================================
   MAXEFF — design system
   Industrial Contrast x Technical Editorial
   =========================================================== */

:root {
  --bg: #F7F5EF;
  --bg-2: #F1EDE3;
  --ink: #111714;
  --muted: #68706A;
  --line: #D8D3C8;
  --line-soft: #E4DFD4;
  --panel: #111714;
  --panel-2: #19201C;
  --panel-line: rgba(247, 245, 239, 0.12);
  --panel-muted: #8A938C;
  --accent: #C7653A;       /* tweakable */
  --accent-ink: #FBF7F1;
  --pillar-water: #2F7E92;
  --pillar-energy: #C7653A;
  --pillar-gas: #6D68A8;
  --pillar-material: #697F4A;
  --pillar-pilot: #72766F;
  --shell: 1220px;
  --pad: 40px;
  --radius: 2px;
  --f-head: "Sora", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

[data-pillar] {
  --pillar: var(--accent);
  --pillar-soft: color-mix(in srgb, var(--pillar) 12%, var(--bg));
  --pillar-line: color-mix(in srgb, var(--pillar) 42%, var(--line));
  --mono-accent: var(--pillar);
}
[data-pillar="water"] { --pillar: var(--pillar-water); }
[data-pillar="energy"] { --pillar: var(--pillar-energy); }
[data-pillar="gas"] { --pillar: var(--pillar-gas); }
[data-pillar="material"] { --pillar: var(--pillar-material); }
[data-pillar="pilot"] { --pillar: var(--pillar-pilot); }

.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); width: 100%; }

.mono-label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  padding: 13px 22px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; transition: all .22s ease;
  white-space: nowrap;
}
.btn-inner { display: inline-flex; align-items: center; gap: 10px; }
.btn .arrow { transition: transform .22s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost-dark { background: transparent; color: var(--bg); border-color: var(--panel-line); }
.btn-ghost-dark:hover { border-color: var(--bg); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; padding: 0; margin-top: 8px;
  color: var(--accent); white-space: nowrap;
}
.text-link .arrow { transition: transform .2s ease; }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- section heads ---------- */
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-eyebrow { display: block; margin-bottom: 18px; }
.sec-title {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1;
  letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}
.sec-sub { color: var(--muted); font-size: 18px; margin: 18px 0 0; max-width: 620px; }
.sec-head.on-dark .sec-title { color: var(--bg); }
.sec-head.on-dark .sec-sub { color: var(--panel-muted); }
.sec-head.on-dark .mono-label { color: var(--panel-muted); }

/* =========================================================
   HEADER
   ========================================================= */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; flex-direction: column; gap: 6px; background: none; border: none; padding: 0; align-items: flex-start; }
.brand-logo { width: 150px; height: auto; display: block; }
.brand-line { font-size: 9.5px; letter-spacing: 0.22em; color: var(--muted); }
.nav-main { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-link {
  background: none; border: none; padding: 8px 14px;
  font-size: 15px; color: var(--ink); font-weight: 450;
  position: relative; transition: color .18s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; box-shadow: 0 18px 40px -20px rgba(17,23,20,.25);
  display: flex; flex-direction: column;
}
.drop-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  background: none; border: none; text-align: left; font-size: 15px; color: var(--ink);
  border-radius: var(--radius); transition: background .15s ease;
}
.drop-link:hover { background: var(--pillar-soft); }
.drop-glyph { color: var(--pillar, var(--accent)); display: flex; }
.hdr-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; padding: 3px; background: var(--bg); }
.lang-btn { background: none; border: none; padding: 5px 12px; border-radius: 100px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.lang-btn.on { background: var(--ink); color: var(--bg); }
.burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; }
.burger span { width: 20px; height: 1.6px; background: var(--ink); display: block; }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--line); padding: 10px var(--pad); }
.mobile-link { background: none; border: none; text-align: left; padding: 13px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line-soft); }

/* =========================================================
   HERO
   ========================================================= */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; padding-top: 84px; padding-bottom: 96px; align-items: center; }
.hero-eyebrow { display: block; margin-bottom: 26px; }
.hero-title { font-family: var(--f-head); font-weight: 600; font-size: clamp(46px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.035em; margin: 0; }
.hero-title span { display: block; }
.hero-title-2 { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 19px; line-height: 1.62; max-width: 500px; margin: 30px 0 38px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero diagram (dark panel) */
.hero-diagram {
  position: relative; background: var(--panel); border-radius: var(--radius);
  padding: 44px 40px 40px; min-height: 440px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid var(--panel-2);
}
.hd-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--panel-line) 1px, transparent 1px), linear-gradient(90deg, var(--panel-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}
.hd-stage { position: relative; z-index: 2; text-align: center; }
.hd-stagelabel { color: var(--panel-muted); font-size: 12px; letter-spacing: 0.18em; }
.hd-loss { margin-bottom: 4px; }
.hd-op { width: 100%; max-width: 320px; border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 18px 16px; background: rgba(247,245,239,0.03); }
.hd-op-label { color: var(--bg); display: block; font-size: 11px; }
.hd-op-ticks { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.hd-op-ticks span { width: 2px; height: 16px; background: var(--accent); display: block; opacity: .35; animation: tick 1.4s ease-in-out infinite; }
.hd-op-ticks span:nth-child(2) { animation-delay: .2s; }
.hd-op-ticks span:nth-child(3) { animation-delay: .4s; }
@keyframes tick { 0%,100% { opacity: .25; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1); } }
.hd-conduit { position: relative; width: 1px; height: 52px; background: var(--panel-line); z-index: 2; overflow: visible; }
.hd-flow { position: absolute; left: -1px; top: 0; width: 3px; height: 20px; border-radius: 2px;
  background: linear-gradient(to bottom, transparent, var(--panel-muted), transparent); animation: flowDown 1.9s linear infinite; }
.hd-flow-accent { background: linear-gradient(to bottom, transparent, var(--accent), transparent); }
@keyframes flowDown { 0% { transform: translateY(-20px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(52px); opacity: 0; } }
.hd-return { margin-top: 4px; }
.hd-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; z-index: 2; position: relative; }
.hd-tag {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; color: var(--bg);
  border: 1px solid var(--panel-line); border-radius: 100px; padding: 6px 14px;
  opacity: 0; animation: tagIn .6s ease forwards, tagGlow 3.4s ease-in-out infinite;
}
@keyframes tagIn { to { opacity: 1; } }
@keyframes tagGlow { 0%,100% { border-color: var(--panel-line); color: var(--bg); } 50% { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: #fff; } }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.manifesto-inner { padding-top: 64px; padding-bottom: 64px; }
.manifesto-line { font-family: var(--f-head); font-weight: 500; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -0.02em; margin: 0; max-width: 900px; text-wrap: balance; }
.manifesto-accent { color: var(--accent); }

/* =========================================================
   RECOVERY MAP
   ========================================================= */
.rmap { padding-top: 100px; padding-bottom: 100px; }
.rmap-lanes { border-top: 1px solid var(--line); }
.lane { border-bottom: 1px solid var(--line); padding: 26px 0; cursor: pointer; transition: padding .25s ease, background .25s ease; }
.lane-row { display: grid; grid-template-columns: 240px 1fr 48px; gap: 32px; align-items: center; }
.lane-domain { display: flex; align-items: center; gap: 12px; }
.lane-glyph { color: var(--ink); display: flex; transition: color .25s ease; }
.lane-domain-text { color: var(--ink); font-size: 12.5px; letter-spacing: .12em; }
.lane-track { display: flex; align-items: center; gap: 20px; }
.lane-from { color: var(--muted); font-size: 16px; white-space: nowrap; }
.lane-to { color: var(--ink); font-size: 16px; font-weight: 500; white-space: nowrap; text-align: right; }
.lane-line { flex: 1; height: 1px; background: var(--line); position: relative; min-width: 40px; }
.lane-line-fill { position: absolute; inset: 0; width: 0; background: var(--pillar, var(--accent)); transition: width .5s cubic-bezier(.5,0,.2,1); }
.lane-num { color: var(--muted); text-align: right; }
.lane-detail { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .35s ease, margin .35s ease; }
.lane-detail-text { color: var(--muted); font-size: 16px; margin: 10px 0 0; max-width: 720px; }
.lane-steps { display: block; margin-top: 16px; }
.lane.lane-on { padding-bottom: 30px; }
.lane.lane-on { background: linear-gradient(90deg, color-mix(in srgb, var(--pillar) 7%, transparent), transparent 45%); }
.lane.lane-on .lane-glyph { color: var(--pillar, var(--accent)); }
.lane.lane-on .lane-line-fill { width: 100%; }
.lane.lane-on .lane-detail { max-height: 160px; opacity: 1; margin-top: 6px; }
.lane.lane-on .lane-domain-text { color: var(--pillar, var(--accent)); }

/* =========================================================
   PILLARS
   ========================================================= */
.pillars { padding-top: 72px; padding-bottom: 88px; }
.pillars-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); }
.sol-card { position: relative; padding: 34px 32px 30px; border-right: 1px solid var(--line); cursor: pointer; transition: background .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; min-height: 100%; background: linear-gradient(180deg, color-mix(in srgb, var(--pillar) 6%, transparent), transparent 58%), var(--bg); overflow: hidden; }
.sol-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--pillar, var(--accent)); transform: scaleX(.48); transform-origin: left; transition: transform .25s ease; }
.pillars-grid .sol-card:last-child { border-right: none; }
.sol-card:hover { background: var(--pillar-soft); box-shadow: inset 0 -1px 0 var(--pillar-line); }
.sol-card:hover::before { transform: scaleX(1); }
.sol-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.sol-glyph { color: var(--pillar, var(--accent)); display: flex; }
.sol-glyph.lg, .sol-glyph.xl { color: var(--pillar, var(--ink)); }
.sol-tag { color: var(--muted); }
.sol-name { font-family: var(--f-head); font-weight: 600; font-size: 27px; letter-spacing: -0.02em; margin: 0 0 14px; }
.sol-desc { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.sol-subs { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line-soft); }
.sol-subs li { font-size: 14.5px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-family: var(--f-mono); letter-spacing: .01em; }
.sol-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--pillar, var(--accent)); }
.sol-more .arrow { transition: transform .2s ease; }
.sol-card:hover .sol-more .arrow { transform: translateX(4px); }

/* =========================================================
   FEATURED (dark)
   ========================================================= */
.featured { background: var(--panel); padding: 88px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--panel-line); }
.feat-card { padding: 34px 32px; border-right: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); cursor: pointer; transition: background .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; box-shadow: inset 0 3px 0 color-mix(in srgb, var(--pillar, var(--accent)) 82%, transparent); }
.feat-card:hover { background: color-mix(in srgb, var(--pillar, var(--accent)) 14%, var(--panel-2)); }
.feat-card-lead { grid-row: span 2; border-bottom: none; }
.feat-grid .feat-card:nth-child(3n) { border-right: none; }
.feat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.feat-pillar { color: color-mix(in srgb, var(--pillar, var(--accent)) 76%, var(--panel-muted)); display: flex; }
.feat-name { font-family: var(--f-head); font-weight: 600; font-size: 24px; color: var(--bg); margin: 0 0 14px; letter-spacing: -0.01em; }
.feat-card-lead .feat-name { font-size: 32px; }
.feat-short { color: var(--panel-muted); font-size: 16px; margin: 0 0 16px; }
.feat-angle { color: #C9CFC9; font-size: 16px; border-top: 1px solid var(--panel-line); padding-top: 16px; margin: 4px 0 16px; }
.feat-type { margin-top: auto; color: var(--panel-muted); }

/* =========================================================
   TECH SNAPSHOT + LIST
   ========================================================= */
.tech-snap { padding: 100px 0; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 36px; }
.tech-card { background: var(--bg); padding: 28px 26px; cursor: pointer; transition: background .2s ease; }
.tech-card:hover { background: var(--pillar-soft); }
.tech-kicker { display: block; margin-bottom: 14px; }
.tech-name { font-family: var(--f-head); font-weight: 600; font-size: 19px; margin: 0 0 12px; letter-spacing: -0.01em; }
.tech-desc { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.tech-supports { display: flex; flex-wrap: wrap; gap: 8px; }
.support-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink); border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px; }
.support-chip svg { color: var(--pillar, var(--accent)); }

.tech-list { padding-bottom: 100px; }
.tech-row { position: relative; display: grid; grid-template-columns: 48px 1fr 220px; gap: 32px; padding: 36px 0; border-top: 1px solid var(--line); align-items: start; }
.tech-row::before { content: ""; position: absolute; left: 0; top: 36px; bottom: 36px; width: 2px; background: var(--pillar, var(--accent)); opacity: .56; }
.tech-row:last-child { border-bottom: 1px solid var(--line); }
.tech-row-num { color: color-mix(in srgb, var(--pillar, var(--accent)) 70%, var(--muted)); padding-top: 4px; }
.tech-row-title { font-family: var(--f-head); font-weight: 600; font-size: 24px; margin: 0 0 20px; letter-spacing: -0.01em; }
.tech-row-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tech-row-cols p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
.tech-row-label { display: block; }
.tech-row-supports .tech-row-label { margin-bottom: 12px; }

/* =========================================================
   PROJECTS
   ========================================================= */
.proj-snap { padding: 100px 0; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proj-grid-page { margin-top: 8px; }
.proj-card { background: linear-gradient(180deg, color-mix(in srgb, var(--pillar) 5%, transparent), transparent 62%), var(--bg); padding: 30px 28px; cursor: pointer; transition: background .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.proj-card:hover { background: var(--pillar-soft); box-shadow: inset 0 3px 0 var(--pillar, var(--accent)); }
.proj-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.proj-sector { color: var(--muted); }
.proj-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; border: 1px solid var(--line); border-radius: 100px; padding: 4px 10px; white-space: nowrap; }
.proj-pill svg { color: var(--pillar, var(--accent)); }
.proj-title { font-family: var(--f-head); font-weight: 600; font-size: 22px; margin: 0 0 20px; letter-spacing: -0.01em; line-height: 1.15; }
.proj-block { margin-bottom: 16px; }
.proj-blabel { display: block; margin-bottom: 6px; }
.proj-block p { margin: 0; font-size: 15px; color: var(--muted); }
.proj-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--pillar, var(--accent)); padding-top: 6px; }
.proj-more .arrow { transition: transform .2s ease; }
.proj-card:hover .proj-more .arrow { transform: translateX(4px); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-chip { white-space: nowrap; }
.filter-chip { background: var(--bg); border: 1px solid var(--line); border-radius: 100px; padding: 8px 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: all .18s ease; }
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.on { background: var(--pillar, var(--ink)); border-color: var(--pillar, var(--ink)); color: var(--bg); }

/* =========================================================
   ENGINEERING
   ========================================================= */
.eng-snap { padding-top: 88px; padding-bottom: 88px; }
.eng-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); margin-bottom: 32px; }
.eng-block { padding: 32px 30px; border-right: 1px solid var(--line); }
.eng-grid .eng-block:last-child { border-right: none; }
.eng-num { display: block; color: var(--accent); font-size: 13px; margin-bottom: 18px; }
.eng-name { font-family: var(--f-head); font-weight: 600; font-size: 20px; margin: 0 0 12px; letter-spacing: -0.01em; }
.eng-body { color: var(--muted); font-size: 15.5px; margin: 0; }

.eng-list { padding-bottom: 100px; }
.eng-row { display: grid; grid-template-columns: 60px 280px 1fr; gap: 32px; padding: 34px 0; border-top: 1px solid var(--line); align-items: baseline; }
.eng-row:last-child { border-bottom: 1px solid var(--line); }
.eng-row-num { font-size: 14px; }
.eng-row-title { font-family: var(--f-head); font-weight: 600; font-size: 23px; margin: 0; letter-spacing: -0.01em; }
.eng-row-body { color: var(--muted); font-size: 16.5px; margin: 0; }

/* =========================================================
   CTA BAND (dark)
   ========================================================= */
.cta-band { background: var(--panel); position: relative; overflow: hidden; }
.cta-inner { padding: 92px var(--pad); position: relative; z-index: 2; text-align: center; max-width: 820px; }
.cta-grid-deco { position: absolute; inset: 0; pointer-events: none; opacity: .4; background-image: linear-gradient(var(--panel-line) 1px, transparent 1px), linear-gradient(90deg, var(--panel-line) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 75%); }
.cta-title { font-family: var(--f-head); font-weight: 600; font-size: clamp(28px, 4vw, 46px); color: var(--bg); letter-spacing: -0.025em; margin: 0 auto; line-height: 1.08; max-width: 16ch; text-wrap: balance; }
.cta-sub { color: var(--panel-muted); font-size: 18px; margin: 20px auto 34px; max-width: 540px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.ftr { background: var(--panel); padding: 72px 0 56px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.ftr-logo { width: 170px; height: auto; filter: invert(1) brightness(2.2); margin-bottom: 22px; }
.ftr-tag { color: var(--panel-muted); font-size: 16px; max-width: 360px; margin: 0 0 24px; }
.ftr-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: 0 0 28px; }
.ftr-contact-h { margin-bottom: 6px; }
.ftr-contact-line { color: var(--panel-muted); font-size: 15px; line-height: 1.45; text-decoration: none; max-width: 340px; transition: color .16s ease; }
.ftr-contact-line:hover { color: var(--bg); }
.ftr-contact-mail { color: var(--accent); }
.ftr-rights { color: #5C645E; font-size: 10.5px; }
.ftr-h { display: block; margin-bottom: 18px; color: #6E776F; }
.ftr-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ftr-link { background: none; border: none; padding: 0; color: var(--panel-muted); font-size: 15px; line-height: 1.35; text-decoration: none; transition: color .16s ease; text-align: left; }
.ftr-col { gap: 18px; }
.ftr-link:hover { color: var(--bg); }
.ftr-email { color: var(--accent) !important; margin-top: 6px; }

/* =========================================================
   INNER PAGE HEAD
   ========================================================= */
.page { animation: pageIn .4s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.phead { padding-top: 84px; padding-bottom: 56px; max-width: var(--shell); }
.phead-label { display: block; margin-bottom: 22px; }
.phead-title { font-family: var(--f-head); font-weight: 600; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.03em; margin: 0; max-width: 16ch; text-wrap: balance; }
.phead-intro { color: var(--muted); font-size: 19px; margin: 24px 0 0; max-width: 640px; }
.crumb { background: none; border: none; padding: 0; margin-bottom: 24px; color: var(--muted); display: inline-flex; }
.crumb:hover .mono-label { color: var(--accent); }

/* solutions landing */
.sol-list { padding-bottom: 40px; }
.sol-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); align-items: start; }
.sol-row:last-child { border-bottom: 1px solid var(--line); }
.sol-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.sol-row-num { color: var(--muted); }
.sol-row-title { font-family: var(--f-head); font-weight: 600; font-size: 40px; letter-spacing: -0.025em; margin: 0 0 18px; }
.sol-row-intro { color: var(--muted); font-size: 17.5px; margin: 0 0 28px; }
.sol-row-subs { list-style: none; margin: 0; padding: 0; }
.sol-row-subs li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; font-family: var(--f-mono); letter-spacing: .01em; }
.sol-row-subs li:first-child { border-top: 1px solid var(--line-soft); }
.sub-dot { width: 6px; height: 6px; background: var(--pillar, var(--accent)); flex: none; }

/* solution detail */
.sol-detail-head { padding-bottom: 40px; }
.sol-detail-title-row { display: flex; align-items: center; gap: 20px; }
.sol-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 24px; padding-bottom: 64px; }
.col-label { display: block; margin-bottom: 22px; }
.stack-list { list-style: none; margin: 0; padding: 0; }
.stack-item { font-size: 17px; padding: 22px 24px; border: 1px solid var(--line); border-bottom: none; color: var(--ink); }
.stack-list .stack-item:last-child { border-bottom: 1px solid var(--line); }
.stack-item-accent { border-left: 2px solid var(--pillar, var(--accent)); }
.rel-block { padding-bottom: 72px; }
.rel-tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 24px; }
.rel-tech { background: var(--bg); border: none; text-align: left; padding: 24px 24px; cursor: pointer; transition: background .18s ease; }
.rel-tech:hover { background: var(--pillar-soft); }
.rel-tech h4 { font-family: var(--f-head); font-weight: 600; font-size: 18px; margin: 0 0 8px; }
.rel-tech p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* project detail */
.proj-detail-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.pd-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); margin-top: 40px; margin-bottom: 64px; }
.pd-block { padding: 30px 28px; border-right: 1px solid var(--line); }
.pd-blocks .pd-block:last-child { border-right: none; }
.pd-block-accent { background: var(--pillar-soft); }
.pd-label { display: block; margin-bottom: 14px; }
.pd-body { font-size: 16px; margin: 0; color: var(--ink); }
.pd-block .pd-body { color: var(--muted); }
.pd-story { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; margin-bottom: 32px; }
.pd-story-main, .pd-story-points { background: var(--bg); padding: 34px 32px; }
.pd-story-main { background: linear-gradient(180deg, color-mix(in srgb, var(--pillar) 8%, transparent), transparent 78%), var(--bg); }
.pd-story-main p { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.52; max-width: 760px; }
.pd-value-list { list-style: none; margin: 0; padding: 0; }
.pd-value-list li { color: var(--muted); font-size: 15.5px; line-height: 1.5; padding: 14px 0 14px 20px; border-top: 1px solid var(--line-soft); position: relative; }
.pd-value-list li:first-child { border-top: none; padding-top: 0; }
.pd-value-list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 7px; height: 7px; background: var(--pillar, var(--accent)); }
.pd-value-list li:first-child::before { top: 8px; }
.scope-note { margin-top: 28px; padding: 22px 24px; border: 1px dashed var(--line); }
.scope-note p { margin: 0; color: var(--muted); font-size: 15px; }

/* about */
.about-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; padding-bottom: 64px; align-items: start; }
.about-text p { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.about-lead { font-size: 22px !important; color: var(--ink) !important; line-height: 1.5; }
.about-stats { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.about-stat { padding: 26px 0; border-bottom: 1px solid var(--line); }
.about-stat-val { font-family: var(--f-head); font-weight: 600; font-size: 48px; color: var(--accent); letter-spacing: -0.03em; display: block; line-height: 1; margin-bottom: 8px; }
.about-photo { margin: 0 0 64px; border: 1px solid var(--line); background: var(--bg-2); }
.about-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 42%; filter: grayscale(1); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; padding-bottom: 100px; align-items: start; }
.focus-list { display: flex; flex-direction: column; }
.focus-opt { display: flex; align-items: center; gap: 14px; background: none; border: none; border-top: 1px solid var(--line); padding: 18px 0; font-size: 17px; color: var(--ink); text-align: left; transition: padding .18s ease; }
.focus-list .focus-opt:last-child { border-bottom: 1px solid var(--line); }
.focus-dot { width: 9px; height: 9px; border: 1.5px solid var(--muted); border-radius: 50%; flex: none; transition: all .18s ease; }
.focus-opt:hover { padding-left: 8px; }
.focus-opt.on { color: var(--pillar, var(--accent)); }
.focus-opt.on .focus-dot { background: var(--pillar, var(--accent)); border-color: var(--pillar, var(--accent)); }
.err-msg { color: var(--accent); margin-top: 12px; display: block; }
.contact-image { margin-top: 34px; border: 1px solid var(--line); background: var(--bg-2); }
.contact-image.contact-direct-only .contact-direct { border-top: none; }
.contact-image.contact-direct-only .contact-direct + .contact-direct { border-top: 1px solid var(--line); }
.contact-phone { font-variant-numeric: tabular-nums; }
.contact-addr { display: block; font-family: var(--f-head); font-weight: 600; font-size: 18px; line-height: 1.4; color: var(--ink); text-decoration: none; transition: color .18s ease; }
.contact-addr:hover { color: var(--accent); }
.contact-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 38%; filter: grayscale(1); }
.contact-direct { border-top: 1px solid var(--line); padding: 18px 20px 20px; }
.contact-direct .mono-label { color: var(--muted); display: block; margin-bottom: 8px; }
.contact-mail { font-family: var(--f-head); font-weight: 600; font-size: clamp(20px, 2vw, 28px); color: var(--ink); text-decoration: none; word-break: break-word; transition: color .18s ease; }
.contact-mail:hover { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field-label { color: var(--muted); }
.field input, .field textarea { font-family: var(--f-body); font-size: 16px; padding: 13px 15px; border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius); color: var(--ink); resize: vertical; transition: border-color .18s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field-err input, .field-err textarea { border-color: var(--accent); }
.contact-form .btn { align-self: flex-start; }
.consent { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.consent-err { color: var(--accent); }
.contact-sent { border: 1px solid var(--line); padding: 48px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; background: var(--bg-2); }
.sent-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.contact-sent p { font-family: var(--f-head); font-size: 22px; margin: 0; }

/* image slot */
.img-slot { width: 100%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background-color: var(--bg-2);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 11px, rgba(104,112,106,.07) 11px, rgba(104,112,106,.07) 12px); }
.img-slot-label { color: var(--muted); }

/* =========================================================
   TWEAKS panel polish (keeps host styles, light theme)
   ========================================================= */

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  :root { --pad: 28px; }
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { max-width: 520px; }
  .about-body, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 1180px) and (min-width: 861px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid .sol-card:nth-child(2n) { border-right: none; }
  .pillars-grid .sol-card:last-child { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav-main { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: flex; }
  .pillars-grid, .tech-grid, .proj-grid, .eng-grid, .feat-grid, .rel-tech-grid, .pd-blocks, .pd-story { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .feat-card-lead { grid-row: auto; }
  .feat-card, .sol-card, .eng-block { border-right: none !important; border-bottom: 1px solid var(--line); }
  .feat-card { border-bottom: 1px solid var(--panel-line); }
  .sol-row, .sol-two-col, .tech-row-cols { grid-template-columns: 1fr; gap: 24px; }
  .tech-row { grid-template-columns: 1fr; gap: 18px; padding-left: 22px; }
  .eng-row { grid-template-columns: 1fr; gap: 10px; }
  .lane-row { grid-template-columns: 1fr; gap: 12px; }
  .lane-num { display: none; }
  .lane-track { flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; padding-bottom: 64px; }
  .rmap, .pillars, .featured, .tech-snap, .proj-snap { padding-top: 64px; padding-bottom: 64px; }
}

/* ---------- heat-pump flow (energy solution) ---------- */
.hpflow-sec { padding-top: 8px; padding-bottom: 96px; }
.hpflow-panel {
  position: relative; background: var(--panel); border: 1px solid var(--panel-2);
  border-radius: var(--radius); overflow: hidden; margin-top: 36px;
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 0;
}
.hpflow-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--panel-line) 1px, transparent 1px), linear-gradient(90deg, var(--panel-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 82%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 82%);
}
.hpflow-copy { position: relative; z-index: 2; padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; gap: 30px; border-right: 1px solid var(--panel-line); }
.hpflow-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.hpflow-step { display: grid; grid-template-columns: 12px 1fr; gap: 16px; align-items: start; }
.hpflow-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.hpflow-step-txt { display: flex; flex-direction: column; gap: 4px; }
.hpflow-step-k { font-family: var(--f-head); font-weight: 600; font-size: 18px; color: var(--bg); letter-spacing: -0.01em; }
.hpflow-step-d { color: var(--panel-muted); font-size: 15px; line-height: 1.5; }
.hpflow-meta { display: flex; gap: 36px; padding-top: 28px; border-top: 1px solid var(--panel-line); flex-wrap: wrap; }
.hpflow-meta-i { display: flex; flex-direction: column; gap: 7px; }
.hpflow-meta-v { font-family: var(--f-head); font-weight: 600; font-size: 26px; color: var(--bg); letter-spacing: -0.02em; }
.hpflow-meta-k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--panel-muted); }
.hpflow-figure { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 28px 28px 20px; min-height: 600px; }
.hpflow-figure svg { width: 100%; height: 100%; max-height: 640px; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hpflow-figure .hp-glow { animation: hpfGlow 3.4s ease-in-out infinite; transform-origin: center; }
  .hpflow-figure .hp-arrow { animation: hpfArrow 2.4s ease-in-out infinite; }
  .hpflow-figure .hp-arrow.a2 { animation-delay: .5s; }
  .hpflow-figure .hp-comp-ring { animation: hpfSpin 9s linear infinite; transform-origin: 550px 510px; }
}
@keyframes hpfGlow { 0%,100% { opacity: .4; } 50% { opacity: .85; } }
@keyframes hpfArrow { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes hpfSpin { to { transform: rotate(360deg); } }
@media (max-width: 880px) {
  .hpflow-panel { grid-template-columns: 1fr; }
  .hpflow-copy { border-right: none; border-bottom: 1px solid var(--panel-line); padding: 40px 32px; }
  .hpflow-figure { min-height: 0; padding: 24px; }
  .hpflow-figure svg { max-height: 520px; }
}

/* ---------- heat-pump example unit (energy solution) ---------- */
.hpunit-sec { padding-top: 4px; padding-bottom: 96px; }
.hpunit-figure { margin: 36px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.hpunit-img-wrap { background: #fff; padding: 20px 28px 10px; display: flex; align-items: center; justify-content: center; }
.hpunit-img-wrap img { display: block; width: 100%; height: auto; }
.hpunit-cap { display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; align-items: baseline; padding: 20px 28px; border-top: 1px solid var(--line-soft); }
.hpunit-cap .mono-label { color: var(--accent); white-space: nowrap; }
.hpunit-cap-txt { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 72ch; margin: 0; }
.hpunit-cap-txt strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .hpunit-cap { grid-template-columns: 1fr; gap: 8px; }
  .hpunit-img-wrap { padding: 14px 16px 6px; }
}

  
