/*
Theme Name: BIO.GAS Corporate
Theme URI: https://bio-gas.net
Author: BIO.GAS
Description: A focused corporate WordPress theme for biomethane engineering, equipment and EPC construction.
Version: 2.1.0
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: biogas
*/

:root {
  --ink: #0a2235;
  --ink-soft: #385164;
  --muted: #64798a;
  --line: #dbe7ee;
  --sky: #0b8fd3;
  --sky-dark: #0572ad;
  --sky-soft: #eaf7fd;
  --sky-pale: #f5fbfe;
  --navy: #071d2c;
  --white: #ffffff;
  --success: #0e8064;
  --shadow: 0 18px 50px rgba(12, 47, 70, 0.09);
  --radius: 18px;
  --container: min(1180px, calc(100vw - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(11, 143, 211, 0.4);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--sky-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.15rem, 4.5vw, 4rem);
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.lead {
  max-width: 740px;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.62;
}

.section {
  padding: clamp(78px, 10vw, 132px) 0;
}

.section-tight {
  padding: clamp(62px, 8vw, 92px) 0;
}

.section-soft {
  background: var(--sky-pale);
}

.section-dark {
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
}

.section-dark h2,
.section-dark h3,
.section-dark .eyebrow {
  color: var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 52px;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn::after {
  content: "→";
  font-size: 1.15rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after {
  transform: translateX(3px);
}

.btn-primary {
  color: var(--white);
  background: var(--sky);
}

.btn-primary:hover {
  background: var(--sky-dark);
}

.btn-light {
  color: var(--navy);
  background: var(--white);
}

.btn-outline {
  color: var(--ink);
  border-color: rgba(10, 34, 53, 0.2);
  background: rgba(255, 255, 255, 0.74);
}

.btn-outline:hover {
  color: var(--sky-dark);
  border-color: var(--sky);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(13, 53, 78, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 2px solid var(--sky);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  border-radius: 999px;
  background: var(--sky);
  content: "";
}

.brand-mark::before {
  width: 12px;
  height: 18px;
  border-radius: 12px 2px 12px 2px;
  transform: translate(-4px, 1px) rotate(-26deg);
}

.brand-mark::after {
  width: 2px;
  height: 18px;
  transform: translate(3px, 4px) rotate(31deg);
}

.brand-word {
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.brand-word span {
  color: var(--sky);
}

.primary-navigation {
  margin-left: auto;
}

.primary-navigation ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  list-style: none;
}

.primary-navigation a {
  position: relative;
  display: inline-flex;
  padding: 29px 0 27px;
  color: #2c4658;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.035em;
}

.primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 21px;
  left: 0;
  height: 2px;
  background: var(--sky);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 0.75rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Homepage hero */
.home-hero {
  position: relative;
  min-height: calc(100svh - 82px);
  overflow: hidden;
  background: #eef8fd;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 252, 255, 0.99) 0%, rgba(247, 252, 255, 0.94) 38%, rgba(247, 252, 255, 0.44) 59%, rgba(247, 252, 255, 0.03) 81%);
  content: "";
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100svh - 82px);
  grid-template-columns: minmax(0, 0.84fr) minmax(280px, 0.46fr);
  gap: 42px;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 86px;
}

.hero-copy {
  max-width: 790px;
}

.hero-copy h1 {
  max-width: 820px;
  margin-bottom: 26px;
}

.hero-copy h1 span {
  color: var(--sky-dark);
}

.hero-copy .lead {
  max-width: 610px;
  margin-bottom: 35px;
}

.hero-panel {
  align-self: end;
  justify-self: end;
  width: min(100%, 320px);
  margin-bottom: 2px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 12px;
  color: var(--white);
  background: rgba(7, 29, 44, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel-label {
  display: block;
  margin-bottom: 22px;
  color: #9bdcff;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1.25;
}

.hero-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.55;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 13px;
  padding: 24px 30px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-item:first-child {
  border-left: 1px solid var(--line);
}

.trust-number {
  color: var(--sky);
  font-size: 0.72rem;
  font-weight: 850;
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  gap: clamp(52px, 8vw, 108px);
  align-items: center;
}

.statement {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  letter-spacing: -0.025em;
  line-height: 1.38;
}

.statement-aside {
  padding-left: 34px;
  border-left: 2px solid var(--sky);
}

.statement-aside p:last-child {
  margin-bottom: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.process-step {
  min-height: 318px;
  padding: 34px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.process-step:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.process-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 70px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #8cd4f7;
  font-size: 0.75rem;
  font-weight: 800;
}

.process-step h3 {
  color: var(--white);
}

.process-step p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

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

.solution-card,
.info-card,
.insight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(8, 46, 70, 0.02);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.solution-card:hover,
.info-card:hover,
.insight-card:hover {
  border-color: #b8dceb;
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.solution-card {
  min-height: 380px;
  padding: 36px;
}

.card-index {
  display: inline-flex;
  width: 48px;
  height: 48px;
  margin-bottom: 92px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--sky-dark);
  background: var(--sky-soft);
  font-size: 0.75rem;
  font-weight: 850;
}

.solution-card h3 {
  margin-bottom: 16px;
}

.solution-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.solution-card::after {
  position: absolute;
  right: -44px;
  bottom: -66px;
  width: 180px;
  height: 180px;
  border: 32px solid rgba(11, 143, 211, 0.055);
  border-radius: 50%;
  content: "";
}

.evidence-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 22px;
  background: var(--navy);
}

.evidence-copy {
  padding: clamp(44px, 7vw, 82px);
}

.evidence-copy h2,
.evidence-copy .eyebrow {
  color: var(--white);
}

.evidence-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.64);
}

.evidence-list {
  display: grid;
  background: #0d2b40;
}

.evidence-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
  padding: 34px clamp(30px, 5vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.evidence-item:last-child {
  border-bottom: 0;
}

.evidence-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #7ed0f5;
  background: rgba(126, 208, 245, 0.1);
}

.evidence-item h3 {
  margin: 2px 0 7px;
  color: var(--white);
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.evidence-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 110px) 0;
  color: var(--white);
  background: var(--sky);
}

.cta-band::after {
  position: absolute;
  right: -90px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border: 92px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 52px;
  align-items: center;
}

.cta-band h2 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--white);
}

/* Inner pages */
.page-hero {
  padding: clamp(82px, 10vw, 130px) 0 clamp(66px, 8vw, 96px);
  overflow: hidden;
  background: linear-gradient(118deg, #f5fbfe 0%, #e8f7fd 100%);
}

.page-hero .container {
  position: relative;
}

.page-hero .container::after {
  position: absolute;
  z-index: 0;
  top: -230px;
  right: -160px;
  width: 470px;
  height: 470px;
  border: 84px solid rgba(11, 143, 211, 0.07);
  border-radius: 50%;
  content: "";
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 890px;
}

.page-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 5.7rem);
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.page-content > *:first-child {
  margin-top: 0;
}

.content-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.info-card {
  padding: clamp(30px, 4vw, 46px);
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card ul,
.scope-list {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.info-card li,
.scope-list li {
  margin-bottom: 8px;
}

.scope-list li::marker {
  color: var(--sky);
}

.info-kicker {
  display: block;
  margin-bottom: 36px;
  color: var(--sky-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.principle {
  min-height: 300px;
  padding: 38px;
  background: var(--white);
}

.principle .card-index {
  margin-bottom: 64px;
}

.timeline {
  position: relative;
  max-width: 930px;
  margin: 0 auto;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 23px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 26px;
  padding-bottom: 42px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 8px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--sky);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0.7rem;
  font-weight: 850;
}

.timeline-content {
  padding: 2px 0 0;
}

.timeline-content p {
  margin-bottom: 0;
  color: var(--muted);
}

.tech-stack {
  display: grid;
  grid-template-columns: 0.74fr 1fr;
  gap: 22px;
}

.tech-stack-intro {
  padding: clamp(42px, 6vw, 70px);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.66);
  background: var(--navy);
}

.tech-stack-intro h2,
.tech-stack-intro .eyebrow {
  color: var(--white);
}

.tech-stack-list {
  display: grid;
  gap: 14px;
}

.tech-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  align-items: center;
  padding: 27px 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.tech-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.04rem;
}

.tech-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.tech-row-number {
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 850;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.impact-card {
  padding: 36px;
  border-top: 3px solid var(--sky);
  background: var(--white);
  box-shadow: var(--shadow);
}

.impact-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.capability-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.capability-item {
  min-height: 215px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.capability-item:last-child {
  border-right: 0;
}

.capability-item strong {
  display: block;
  margin: 48px 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
}

.capability-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.scope-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) 1fr;
  border-bottom: 1px solid var(--line);
}

.scope-row:last-child {
  border-bottom: 0;
}

.scope-row strong,
.scope-row div {
  padding: 24px 28px;
}

.scope-row strong {
  color: var(--ink);
  background: var(--sky-pale);
}

.scope-row div {
  color: var(--muted);
}

.scope-row p {
  margin: 0;
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.insight-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 34px;
}

.insight-meta,
.post-meta {
  margin-bottom: 72px;
  color: var(--sky-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.insight-card h2,
.insight-card h3 {
  margin-bottom: 18px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.insight-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  margin-top: auto;
  align-items: center;
  gap: 8px;
  color: var(--sky-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link::after {
  content: "→";
}

.text-link-light {
  margin-top: 26px;
  color: #8ed8fa;
}

.section-action {
  margin-top: 34px;
}

/* Project imagery */
.project-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  grid-template-rows: repeat(2, minmax(245px, 1fr));
  gap: 18px;
}

.project-visual,
.visual-card,
.feature-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.project-visual-large {
  grid-row: 1 / span 2;
  min-height: 590px;
}

.project-visual img,
.visual-card img,
.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-visual:hover img,
.visual-card:hover img,
.feature-visual:hover img {
  transform: scale(1.018);
}

.project-visual::after,
.visual-card::after,
.feature-visual::after {
  position: absolute;
  inset: 34% 0 0;
  background: linear-gradient(180deg, transparent, rgba(4, 23, 35, 0.9));
  content: "";
  pointer-events: none;
}

.project-visual figcaption,
.visual-card figcaption,
.feature-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 30px;
  color: rgba(255, 255, 255, 0.76);
}

.project-visual figcaption span,
.visual-card figcaption span,
.feature-visual figcaption span {
  display: block;
  margin-bottom: 7px;
  color: #9bdcff;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-visual figcaption strong,
.visual-card figcaption strong,
.feature-visual figcaption strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.project-visual figcaption p,
.visual-card figcaption p {
  max-width: 570px;
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

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

.visual-card {
  min-height: 400px;
}

.feature-visual {
  min-height: 470px;
}

.feature-visual img {
  position: absolute;
  inset: 0;
}

.feature-visual figcaption {
  padding: clamp(28px, 5vw, 52px);
}

.feature-visual figcaption strong {
  max-width: 740px;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
}

.visual-disclaimer {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.post-shell {
  width: min(820px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) 0;
}

.post-shell h1 {
  margin-bottom: 26px;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.post-meta {
  margin-bottom: 42px;
}

.entry-content h2 {
  margin-top: 1.8em;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.entry-content h3 {
  margin-top: 1.6em;
}

.entry-content p,
.entry-content li {
  color: var(--ink-soft);
}

.entry-content a {
  color: var(--sky-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content blockquote {
  margin: 2.2em 0;
  padding: 12px 0 12px 30px;
  border-left: 3px solid var(--sky);
  color: var(--ink);
  font-size: 1.35rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.62fr) minmax(0, 1fr);
  gap: clamp(44px, 8vw, 100px);
  align-items: start;
}

.contact-aside {
  position: sticky;
  top: 120px;
}

.contact-point {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-point:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-point strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-point span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form {
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #cbdbe4;
  border-radius: 6px;
  color: var(--ink);
  background: #fbfdfe;
}

.field input,
.field select {
  height: 54px;
  padding: 0 15px;
}

.field textarea {
  min-height: 170px;
  padding: 14px 15px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--sky);
  outline: 2px solid rgba(11, 143, 211, 0.12);
}

.form-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-message {
  margin-bottom: 26px;
  padding: 15px 18px;
  border-left: 3px solid var(--success);
  color: #075941;
  background: #ecfaf5;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.66);
  background: #061824;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(270px, 1.25fr) repeat(3, minmax(150px, 0.52fr));
  gap: 48px;
  padding: 74px 0 62px;
}

.site-footer .brand {
  margin-bottom: 24px;
  color: var(--white);
}

.footer-intro {
  max-width: 390px;
  margin-bottom: 0;
  font-size: 0.94rem;
}

.footer-heading {
  display: block;
  margin-bottom: 22px;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #8ed8fa;
}

.footer-bottom {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.77rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63d7b0;
  box-shadow: 0 0 0 4px rgba(99, 215, 176, 0.11);
  content: "";
}

/* Responsive */
@media (max-width: 1080px) {
  .header-cta {
    display: none;
  }

  .primary-navigation ul {
    gap: 18px;
  }

  .home-hero .container {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-item:nth-child(2) {
    border-right: 0;
  }

  .capability-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .process-step:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }

  .footer-main {
    grid-template-columns: 1.2fr repeat(2, 0.6fr);
  }

  .footer-main > div:last-child {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  :root {
    --container: min(100% - 34px, 720px);
  }

  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: auto;
    bottom: auto;
    left: 0;
    visibility: hidden;
    width: 100%;
    height: calc(100vh - 72px);
    padding: 24px max(17px, calc((100% - 720px) / 2));
    overflow-y: auto;
    opacity: 0;
    background: var(--white);
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .primary-navigation.is-open {
    visibility: visible;
    opacity: 1;
  }

  .primary-navigation ul {
    display: block;
  }

  .primary-navigation li {
    border-bottom: 1px solid var(--line);
  }

  .primary-navigation a {
    display: flex;
    padding: 20px 0;
    font-size: 1rem;
  }

  .primary-navigation a::after {
    display: none;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero::before {
    background: linear-gradient(180deg, rgba(247, 252, 255, 0.98) 0%, rgba(247, 252, 255, 0.9) 48%, rgba(247, 252, 255, 0.28) 100%);
  }

  .home-hero .container {
    min-height: 780px;
    grid-template-columns: 1fr;
    padding-top: 84px;
    padding-bottom: 38px;
    align-content: space-between;
  }

  .hero-copy h1 {
    font-size: clamp(3.3rem, 12vw, 5.2rem);
  }

  .hero-panel {
    justify-self: start;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-head,
  .split-intro,
  .evidence-panel,
  .tech-stack,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-3,
  .principles-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .project-visual-large {
    min-height: 470px;
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .project-visual:not(.project-visual-large) {
    min-height: 310px;
  }

  .visual-grid-2 {
    grid-template-columns: 1fr;
  }

  .solution-card {
    min-height: 320px;
  }

  .card-index {
    margin-bottom: 62px;
  }

  .principles-grid {
    gap: 1px;
  }

  .principle {
    min-height: auto;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner .button-row {
    justify-self: start;
  }

  .contact-aside {
    position: static;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-main > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 580px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 3rem;
  }

  .section {
    padding: 72px 0;
  }

  .home-hero .container {
    min-height: 720px;
    padding-top: 64px;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 15vw, 4.4rem);
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-grid,
  .process-grid,
  .content-grid-2,
  .impact-grid,
  .field-grid,
  .footer-main,
  .capability-band {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-visual-large {
    min-height: 410px;
    grid-column: auto;
  }

  .project-visual:not(.project-visual-large),
  .visual-card {
    min-height: 330px;
  }

  .feature-visual {
    min-height: 360px;
  }

  .project-visual figcaption,
  .visual-card figcaption,
  .feature-visual figcaption {
    padding: 24px;
  }

  .capability-item,
  .capability-item:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-item:last-child {
    border-bottom: 0;
  }

  .capability-item strong {
    margin-top: 28px;
  }

  .scope-row {
    grid-template-columns: 1fr;
  }

  .scope-row strong,
  .scope-row div {
    padding: 20px;
  }

  .trust-item,
  .trust-item:first-child,
  .trust-item:nth-child(3) {
    min-height: 82px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .process-step,
  .process-step:first-child,
  .process-step:nth-child(3) {
    min-height: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }

  .process-number {
    margin-bottom: 34px;
  }

  .solution-card,
  .info-card,
  .contact-form {
    padding: 28px;
  }

  .evidence-copy {
    padding: 38px 28px;
  }

  .evidence-item {
    grid-template-columns: 1fr;
  }

  .tech-row {
    grid-template-columns: 40px 1fr;
    padding: 24px 20px;
  }

  .insight-meta {
    margin-bottom: 46px;
  }

  .footer-main > div:first-child,
  .footer-main > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
