@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("https://www.cm-greeneryproperties.com/assets/fonts/IBMPlexSansThai-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("https://www.cm-greeneryproperties.com/assets/fonts/IBMPlexSansThai-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("https://www.cm-greeneryproperties.com/assets/fonts/IBMPlexSansThai-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #10241c;
  --ink-soft: #244237;
  --forest: #153d2f;
  --forest-deep: #081b14;
  --paper: #f2f0e9;
  --paper-bright: #fbfaf6;
  --white: #ffffff;
  --sand: #d3ae5b;
  --sand-light: #f0d990;
  --muted: #66736d;
  --line: rgba(16, 36, 28, .14);
  --line-light: rgba(255, 255, 255, .18);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 34px;
  --shadow-soft: 0 22px 70px rgba(8, 27, 20, .10);
  --shadow-card: 0 12px 34px rgba(8, 27, 20, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: clamp(92px, 10vw, 112px); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; touch-action: manipulation; }
button, input { font: inherit; }
button, summary { touch-action: manipulation; }
h1, h2 { font-weight: 300; }
h3 { font-weight: 400; }
::selection { background: var(--sand-light); color: var(--forest-deep); }

.sp-skip {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 18px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.sp-skip:focus { transform: none; }
.sp-wrap { width: min(1240px, calc(100% - 52px)); margin-inline: auto; }

/* Floating glass navigation — inspired by the calm, rounded NEURA shell. */
.sp-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  width: min(1440px, calc(100% - 36px));
  min-height: 76px;
  padding: 10px 14px 10px 20px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 24px;
  background: rgba(10, 27, 21, .78);
  color: #f8f6ef;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .16);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}
.sp-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.sp-brand img { width: 46px; height: 46px; object-fit: contain; }
.sp-brand span {
  display: grid;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .16em;
}
.sp-brand strong { color: var(--sand-light); font-size: 13px; letter-spacing: .12em; }
.sp-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); margin-left: auto; }
.sp-nav a {
  position: relative;
  color: rgba(255, 255, 255, .80);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.sp-nav > a:not(.sp-lang):not(.sp-header-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--sand-light);
  transition: transform .25s ease;
}
.sp-nav > a:hover::after,
.sp-nav > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.sp-nav a:hover, .sp-nav a:focus-visible { color: var(--white); }
.sp-lang {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}
.sp-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 20px 0 23px;
  border-radius: 999px;
  background: var(--sand-light);
  color: var(--forest-deep) !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.sp-header-cta::after { content: "\2197"; font-size: 16px; }
.sp-header-cta:hover { transform: translateY(-2px); background: #f6e4a7; box-shadow: 0 12px 30px rgba(0, 0, 0, .16); }

.sp-mobile-menu { display: none; margin-left: auto; }
.sp-mobile-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}
.sp-mobile-menu summary::-webkit-details-marker { display: none; }
.sp-mobile-panel {
  position: fixed;
  top: 94px;
  right: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  max-height: calc(100svh - 112px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  background: rgba(8, 27, 20, .97);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.sp-mobile-panel a { padding: 11px 13px; border-radius: 12px; color: #fff; text-decoration: none; }
.sp-mobile-panel a:hover, .sp-mobile-panel a:focus-visible { background: rgba(255, 255, 255, .08); }

/* Cinematic home hero with real Greenery portfolio imagery. */
.sp-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: max(760px, 96svh);
  overflow: hidden;
  padding: 156px 0 78px;
  background: #18392d url("https://www.cm-greeneryproperties.com/assets/uploads/portfolio/5926a-720207594_1405998751560347_8008479126940958917_n.jpg") center 54% / cover no-repeat;
  color: #fff;
}
.sp-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 13, .92) 0%, rgba(4, 18, 13, .74) 43%, rgba(4, 18, 13, .20) 72%, rgba(4, 18, 13, .10) 100%),
    linear-gradient(0deg, rgba(4, 18, 13, .76) 0%, transparent 46%);
}
.sp-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 20%, rgba(240, 217, 144, .24), transparent 25%),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 86px 100%;
}
.sp-breadcrumb {
  position: absolute;
  z-index: 1;
  top: 122px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  letter-spacing: .03em;
}
.sp-breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .55; }
.sp-breadcrumb a { text-decoration: none; }
.sp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .55fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: end;
}
.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--sand-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sp-eyebrow::after { content: ""; width: 52px; height: 1px; background: currentColor; opacity: .72; }
.sp-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(46px, 6.2vw, 92px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.022em;
  text-wrap: balance;
  text-shadow: 0 5px 28px rgba(0, 0, 0, .22);
  animation: sp-rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.sp-lead {
  max-width: 760px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.65;
  animation: sp-rise .8s .08s cubic-bezier(.2, .7, .2, 1) both;
}
.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; animation: sp-rise .8s .16s cubic-bezier(.2, .7, .2, 1) both; }
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.sp-btn-primary { background: var(--sand-light); color: var(--forest-deep); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.sp-btn-quiet { border-color: rgba(255, 255, 255, .34); color: #fff; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sp-btn:hover, .sp-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, .19); }
.sp-btn-primary:hover, .sp-btn-primary:focus-visible { background: #f6e4a7; }
.sp-btn-quiet:hover, .sp-btn-quiet:focus-visible { border-color: rgba(255, 255, 255, .64); background: rgba(255, 255, 255, .14); }
.sp-btn:focus-visible, .sp-nav a:focus-visible, .sp-related a:focus-visible, .sp-faq summary:focus-visible { outline: 3px solid rgba(240, 217, 144, .7); outline-offset: 3px; }

.sp-proof {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 26px;
  background: rgba(8, 27, 20, .70);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .20);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  animation: sp-rise .8s .12s cubic-bezier(.2, .7, .2, 1) both;
}
.sp-proof strong { display: block; color: var(--sand-light); font-size: 30px; line-height: 1.15; }
.sp-proof p { margin: 8px 0 0; color: rgba(255, 255, 255, .68); font-size: 13px; }
.sp-proof dl { display: grid; gap: 13px; margin: 24px 0 0; }
.sp-proof dl div { display: flex; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.sp-proof dt { color: rgba(255, 255, 255, .56); }
.sp-proof dd { margin: 0; text-align: right; font-weight: 600; }

.sp-section { position: relative; padding: clamp(72px, 8vw, 120px) 0; }
.sp-section-white { background: var(--paper-bright); }
.sp-section-dark { overflow: hidden; background: var(--forest-deep); color: #f8f6ef; }
.sp-section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 90% 12%, rgba(211, 174, 91, .16), transparent 33%);
}
.sp-section-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 64px; align-items: end; margin-bottom: 44px; }
.sp-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid rgba(16, 36, 28, .16);
  border-radius: 999px;
  color: #725e2f;
  background: rgba(255, 255, 255, .48);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.sp-section-dark .sp-kicker { border-color: rgba(240, 217, 144, .25); background: rgba(255, 255, 255, .05); color: var(--sand-light); }
.sp-section h2 { max-width: 880px; margin: 12px 0 0; font-size: clamp(34px, 4.7vw, 62px); font-weight: 300; line-height: 1.13; letter-spacing: -.018em; text-wrap: balance; }
.sp-section-head > p { margin: 0; color: var(--muted); }
.sp-section-dark .sp-section-head > p { color: rgba(255, 255, 255, .64); }

.sp-answer {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 26px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(211, 174, 91, .34);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(240, 217, 144, .24), rgba(255, 255, 255, .84) 62%);
  box-shadow: var(--shadow-soft);
}
.sp-answer::after { content: ""; position: absolute; top: -100px; right: -100px; width: 230px; height: 230px; border: 1px solid rgba(211, 174, 91, .22); border-radius: 50%; }
.sp-answer b { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--sand-light); font-size: 14px; }
.sp-answer h2, .sp-answer h3 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 38px); font-weight: 400; line-height: 1.25; }
.sp-answer p { margin: 0; }

.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-card {
  position: relative;
  min-height: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .70);
  box-shadow: 0 0 0 rgba(8, 27, 20, 0);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sp-card:hover { transform: translateY(-5px); border-color: rgba(211, 174, 91, .48); box-shadow: var(--shadow-card); }
.sp-card-num { display: inline-flex; align-items: center; min-height: 28px; margin-bottom: 34px; padding: 0 10px; border-radius: 999px; background: rgba(211, 174, 91, .16); color: #7e6530; font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.sp-card h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.32; }
.sp-card p { margin: 0; color: var(--muted); }
.sp-card ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.sp-section-dark .sp-card { border-color: rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .05); }
.sp-section-dark .sp-card:hover { border-color: rgba(240, 217, 144, .42); box-shadow: 0 22px 60px rgba(0, 0, 0, .18); }
.sp-section-dark .sp-card p, .sp-section-dark .sp-card ul { color: rgba(255, 255, 255, .66); }

.sp-steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.sp-step { counter-increment: step; display: grid; grid-template-columns: 100px minmax(180px, .55fr) minmax(0, 1fr); gap: 26px; padding: 31px 0; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease; }
.sp-step:hover { padding-inline: 18px; background: rgba(255, 255, 255, .42); }
.sp-step::before { content: counter(step, decimal-leading-zero); color: #8d7234; font-size: 13px; font-weight: 600; letter-spacing: .14em; }
.sp-step h3 { margin: 0; font-size: 22px; }
.sp-step p { margin: 0; color: var(--muted); }

.sp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.sp-table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; scrollbar-color: var(--sand) rgba(16, 36, 28, .08); scrollbar-width: thin; }
.sp-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.sp-table th, .sp-table td { padding: 19px 21px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.sp-table th { background: var(--ink); color: #f8f3e4; font-size: 13px; letter-spacing: .03em; }
.sp-table tr:last-child td { border-bottom: 0; }
.sp-table tbody tr { transition: background .2s ease; }
.sp-table tbody tr:hover { background: rgba(211, 174, 91, .08); }
.sp-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.sp-calculator { display: grid; grid-template-columns: minmax(230px, .65fr) minmax(0, 1fr); gap: 30px; padding: 34px; border: 1px solid rgba(240, 217, 144, .18); border-radius: var(--radius-lg); background: linear-gradient(135deg, #0b261b, #184333); color: #fff; box-shadow: var(--shadow-soft); }
.sp-calc-input label { display: block; color: rgba(255, 255, 255, .72); }
.sp-calc-value { margin: 14px 0; color: var(--sand-light); font-size: 40px; font-weight: 600; }
.sp-calc-input input[type="range"] { width: 100%; accent-color: var(--sand); }
.sp-calc-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sp-calc-result { padding: 22px; border: 1px solid rgba(240, 217, 144, .20); border-radius: 18px; background: rgba(255, 255, 255, .055); }
.sp-calc-result span { display: block; color: rgba(255, 255, 255, .60); font-size: 12px; }
.sp-calc-result strong { display: block; margin-top: 8px; color: var(--sand-light); font-size: 22px; }

.sp-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sp-project { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); transition: transform .32s ease, box-shadow .32s ease; }
.sp-project:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.sp-project-media { aspect-ratio: 16 / 10; overflow: hidden; background: #dfe8e1; }
.sp-project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2, .7, .2, 1); }
.sp-project:hover img { transform: scale(1.04); }
.sp-project-body { padding: 27px; }
.sp-project h3 { margin: 0 0 8px; font-size: 25px; }
.sp-project dl { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 9px 16px; margin: 18px 0 0; font-size: 14px; }
.sp-project dt { color: var(--muted); }
.sp-project dd { margin: 0; font-weight: 600; }

.sp-faq { display: grid; gap: 10px; }
.sp-faq details { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .74); transition: border-color .25s ease, box-shadow .25s ease; }
.sp-faq details[open] { border-color: rgba(211, 174, 91, .50); box-shadow: var(--shadow-card); }
.sp-faq summary { position: relative; cursor: pointer; list-style: none; padding: 21px 62px 21px 23px; font-weight: 600; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; transform: translateY(-50%); border: 1px solid rgba(16, 36, 28, .18); border-radius: 50%; color: #806630; font-size: 21px; font-weight: 500; }
.sp-faq details[open] summary::after { content: "\2212"; background: var(--ink); color: var(--sand-light); }
.sp-faq details div { padding: 0 23px 23px; color: var(--muted); }
.sp-faq details div p { margin: 0; }

.sp-related { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sp-related a { position: relative; display: flex; min-height: 122px; align-items: flex-end; padding: 22px 58px 22px 22px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.sp-related a::after { content: "\2197"; position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; color: var(--sand-light); }
.sp-related a:hover { transform: translateY(-4px); border-color: rgba(240, 217, 144, .54); background: rgba(211, 174, 91, .10); }

.sp-cta { position: relative; overflow: hidden; padding: 82px 0; background: linear-gradient(120deg, #d1aa51, #f0d990 64%, #e3c171); color: var(--forest-deep); }
.sp-cta::after { content: ""; position: absolute; top: -140px; right: 6%; width: 390px; height: 390px; border: 1px solid rgba(8, 27, 20, .15); border-radius: 50%; box-shadow: 0 0 0 46px rgba(255, 255, 255, .06), 0 0 0 92px rgba(255, 255, 255, .04); }
.sp-cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 44px; align-items: center; }
.sp-cta h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); font-weight: 300; line-height: 1.12; letter-spacing: -.02em; }
.sp-cta p { max-width: 720px; margin: 16px 0 0; }
.sp-cta .sp-btn { background: var(--forest-deep); color: #fff; }
.sp-cta .sp-btn:hover { background: #163b2e; }

.sp-footer { padding: 64px 0 112px; background: #061710; color: rgba(255, 255, 255, .66); }
.sp-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.sp-footer h2, .sp-footer h3 { color: #fff; }
.sp-footer h2 { margin: 12px 0; font-size: 25px; }
.sp-footer h3 { margin: 0 0 14px; color: var(--sand-light); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.sp-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; }
.sp-footer a { text-decoration: none; }
.sp-footer a:hover { color: var(--sand-light); }
.sp-footer small { display: block; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .11); }
.sp-mobile-actions { display: none; }

.sp-consent {
  position: fixed;
  z-index: 3000;
  right: 18px;
  bottom: 18px;
  width: min(450px, calc(100% - 36px));
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: rgba(8, 27, 20, .96);
  color: #fff;
  box-shadow: 0 26px 76px rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.sp-consent[hidden] { display: none; }
.sp-consent p { margin: 0 0 14px; color: rgba(255, 255, 255, .72); font-size: 13px; }
.sp-consent-actions { display: flex; gap: 8px; }
.sp-consent button { flex: 1; min-height: 44px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: transparent; color: #fff; cursor: pointer; }
.sp-consent button:last-child { border-color: transparent; background: var(--sand-light); color: var(--forest-deep); font-weight: 600; }

@keyframes sp-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1080px) {
  .sp-brand span { display: none; }
  .sp-nav { gap: 15px; }
  .sp-nav a { font-size: 12px; }
  .sp-header-cta { padding-inline: 18px; }
}

@media (max-width: 1023px) {
  .sp-header { top: 10px; width: calc(100% - 20px); min-height: 66px; padding: 8px 10px 8px 14px; border-radius: 20px; }
  .sp-nav { display: none; }
  .sp-mobile-menu { display: block; }
  .sp-brand img { width: 42px; height: 42px; }
  .sp-mobile-panel { top: 86px; right: 10px; left: 10px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .sp-wrap { width: min(100% - 30px, 740px); }
  .sp-hero { min-height: 760px; padding: 136px 0 54px; background-position: 61% center; }
  .sp-hero::before { background: linear-gradient(90deg, rgba(4, 18, 13, .90), rgba(4, 18, 13, .48)), linear-gradient(0deg, rgba(4, 18, 13, .82), transparent 58%); }
  .sp-breadcrumb { top: 104px; }
  .sp-hero-grid, .sp-section-head, .sp-calculator, .sp-cta-grid, .sp-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .sp-proof { max-width: 540px; }
  .sp-section { padding: 68px 0; }
  .sp-grid, .sp-grid-2, .sp-projects, .sp-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-step { grid-template-columns: 58px 1fr; }
  .sp-step p { grid-column: 2; }
  .sp-footer nav { grid-template-columns: 1fr; }
  .sp-footer { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .sp-mobile-actions {
    position: fixed;
    z-index: 1000;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 20px;
    background: rgba(8, 27, 20, .92);
    box-shadow: 0 20px 52px rgba(0, 0, 0, .28);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .sp-mobile-actions a { display: grid; place-items: center; min-height: 49px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; }
  .sp-mobile-actions a:last-child { background: var(--sand-light); color: var(--forest-deep); }
  .sp-consent { bottom: 88px; }
}

@media (max-width: 620px) {
  .sp-header { border-radius: 18px; }
  .sp-mobile-panel { top: 86px; right: 10px; left: 10px; }
  .sp-hero { min-height: 720px; padding-bottom: 46px; background-position: 67% center; }
  .sp-hero h1 { font-size: clamp(36px, 11.5vw, 50px); line-height: 1.06; }
  .sp-lead { font-size: 17px; }
  .sp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .sp-hero .sp-actions .sp-btn-primary { grid-column: 1 / -1; }
  .sp-btn { width: auto; min-height: 50px; padding-inline: 16px; }
  .sp-proof { padding: 20px; }
  .sp-proof dl { gap: 10px; margin-top: 20px; }
  .sp-section { padding: 56px 0; }
  .sp-section-head { gap: 18px; margin-bottom: 30px; }
  .sp-grid, .sp-grid-2, .sp-projects, .sp-related, .sp-calc-results { grid-template-columns: 1fr; }
  .sp-answer { grid-template-columns: 1fr; padding: 24px; }
  .sp-answer b { width: 46px; height: 46px; }
  .sp-step { grid-template-columns: 44px 1fr; gap: 14px; }
  .sp-card, .sp-project-body { padding: 22px; }
  .sp-project dl { grid-template-columns: 1fr; gap: 4px; }
  .sp-project dd + dt { margin-top: 8px; }
  .sp-cta::after { display: none; }
  .sp-consent { right: 10px; width: calc(100% - 20px); padding: 18px; }
  .sp-consent-actions { gap: 6px; }
  .sp-mobile-actions { left: 50%; right: auto; width: min(520px, calc(100% - 20px)); transform: translateX(-50%); }
}

@media (max-width: 380px) {
  .sp-wrap { width: calc(100% - 24px); }
  .sp-brand img { width: 38px; height: 38px; }
  .sp-header { min-height: 62px; }
  .sp-breadcrumb { font-size: 11px; }
  .sp-hero h1 { font-size: clamp(34px, 11vw, 42px); }
  .sp-lead { font-size: 16px; }
  .sp-btn { padding-inline: 13px; font-size: 13px; }
  .sp-consent p { font-size: 12px; }
  .sp-consent button { min-height: 46px; font-size: 14px; }
}

@media (hover: none) {
  .sp-card:hover, .sp-project:hover, .sp-related a:hover, .sp-btn:hover, .sp-header-cta:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

@media print {
  .sp-header, .sp-mobile-actions, .sp-consent, .sp-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .sp-hero, .sp-section-dark { min-height: auto; background: #fff; color: #000; }
  .sp-hero::before, .sp-hero::after, .sp-section-dark::before { display: none; }
  .sp-section { padding: 24px 0; }
}

/* Final coherence pass: align the SEO/AEO shell with the established site header. */
.sp-header {
  top: 0;
  width: 100%;
  min-height: 70px;
  padding: 8px clamp(18px, 4vw, 56px);
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(3, 15, 10, .86);
  box-shadow: none;
}

.sp-breadcrumb { top: 102px; }

@media (max-width: 1023px) {
  .sp-header {
    top: 0;
    width: 100%;
    min-height: 70px;
    padding: 8px 14px;
    border-radius: 0;
  }

  .sp-mobile-panel {
    top: 76px;
    right: 10px;
    left: 10px;
  }
}

/* Keep consent readable without competing with the mobile conversion bar. */
@media (max-width: 900px) {
  body:has(.sp-consent:not([hidden])) .sp-mobile-actions { display: none; }

  .sp-consent {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
  }
}

@media (max-width: 620px) {
  .sp-consent {
    padding: 14px;
    border-radius: 18px;
  }

  .sp-consent p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .sp-consent-actions { gap: 5px; }
  .sp-consent button { min-height: 38px; padding-inline: 7px; font-size: 12px; }
}
