:root {
  --bg: #f6f3ee;
  --surface: #ece6dd;
  --card-bg: #ffffff;
  --ink: #1c1917;
  --muted: #453f3a;
  --line: #cfc6ba;
  --accent: #382a22;
  --accent-ink: #ffffff;
  --focus: #8c5a2b;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 0px;
  --card-radius: 0px;
}

body[data-theme="editorial"] {
  --bg: #f8f4f1;
  --surface: #ede5de;
  --ink: #241c19;
  --muted: #4d423d;
  --line: #d6c9bf;
  --accent: #4a2531;
  --radius: 0px;
  --card-radius: 0px;
}

body[data-theme="technical"] {
  --bg: #f3f6f8;
  --surface: #e4ebf0;
  --ink: #14202b;
  --muted: #394856;
  --line: #c2cfd9;
  --accent: #183146;
  --radius: 2px;
  --card-radius: 2px;
}

body[data-theme="natural"] {
  --bg: #f4f7f2;
  --surface: #e5ece2;
  --ink: #18241b;
  --muted: #394a3d;
  --line: #c4d1c0;
  --accent: #1f3a29;
  --radius: 14px;
  --card-radius: 16px;
}

body[data-theme="architectural"] {
  --bg: #f5f4f0;
  --surface: #e8e5dd;
  --ink: #1b2228;
  --muted: #404850;
  --line: #c9c4b8;
  --accent: #22303e;
  --radius: 0px;
  --card-radius: 0px;
}

body[data-sku="MSES-H011"] { --accent: #1b3448; --bg: #f4f6f8; }
body[data-sku="MSES-H021"] { --accent: #4a2531; --bg: #f8f4f1; }
body[data-sku="MSES-H031"] { --accent: #163840; --bg: #f3f7f8; }
body[data-sku="MSES-H041"] { --accent: #3b2d26; --bg: #f6f3ee; }
body[data-sku="MSES-H051"] { --accent: #4d2633; --bg: #f9f5f3; }
body[data-sku="MSES-H061"] { --accent: #4e241b; --bg: #f8f4ee; }
body[data-sku="MSES-H071"] { --accent: #1a2e44; --bg: #f4f6f9; }
body[data-sku="MSES-H081"] { --accent: #1f3b2c; --bg: #f3f6f2; }
body[data-sku="MSES-H091"] { --accent: #23313f; --bg: #f5f4f0; }
body[data-sku="MSES-W001"] { --accent: #4e2a35; --bg: #f9f5f2; }
body[data-sku="MSES-W011"] { --accent: #193247; --bg: #f3f6f9; }
body[data-sku="MSES-W021"] { --accent: #3f242c; --bg: #f7f3ef; }
body[data-sku="MSES-W031"] { --accent: #15353d; --bg: #f2f6f7; }
body[data-sku="MSES-W041"] { --accent: #382a22; --bg: #f6f3ee; }
body[data-sku="MSES-W051"] { --accent: #482431; --bg: #f9f5f4; }
body[data-sku="MSES-W061"] { --accent: #4a2319; --bg: #f8f4ee; }
body[data-sku="MSES-W071"] { --accent: #182c42; --bg: #f3f6f9; }
body[data-sku="MSES-W081"] { --accent: #1d3828; --bg: #f3f7f3; }
body[data-sku="MSES-W091"] { --accent: #22303e; --bg: #f5f4f1; }
body[data-sku="MSES-S001"] { --accent: #522631; --bg: #f8f3ef; }
body[data-sku="MSES-S011"] { --accent: #183146; --bg: #f3f5f8; }
body[data-sku="MSES-S021"] { --accent: #28402e; --bg: #f6f7f2; }
body[data-sku="MSES-S031"] { --accent: #16333b; --bg: #f2f5f7; }
body[data-sku="MSES-S041"] { --accent: #362922; --bg: #f6f3ee; }
body[data-sku="MSES-S051"] { --accent: #273b2c; --bg: #f5f7f3; }
body[data-sku="MSES-S061"] { --accent: #233c29; --bg: #f4f7f2; }
body[data-sku="MSES-S071"] { --accent: #1b2d42; --bg: #f4f6f8; }
body[data-sku="MSES-S081"] { --accent: #1f3a29; --bg: #f3f7f2; }
body[data-sku="MSES-S091"] { --accent: #21303f; --bg: #f5f4f0; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font: 400 15px/1.7 var(--sans);
  max-width: 100%;
  overflow-x: clip;
}

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

button {
  font: inherit;
  cursor: pointer;
}

a, button, summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

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

h1, h2, h3, p, ul {
  margin: 0;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -120px;
  z-index: 100;
  background-color: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* Header & Demo Bar */
.site-chrome {
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
}

.demo-bar {
  background-color: var(--accent);
  color: var(--accent-ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 9px 4.5%;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.demo-bar a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.demo-badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4.5%;
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

body[data-theme="technical"] .wordmark {
  font-family: var(--sans);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}

.site-nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--accent);
}

.header-offer-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding: 6px 0;
  white-space: nowrap;
}

/* Typography & Eyebrows */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.5;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
}

body[data-theme="technical"] h1,
body[data-theme="technical"] h2 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(36px, 5.2vw, 72px);
}

body[data-theme="technical"] h1 {
  font-size: clamp(30px, 4.2vw, 54px);
}

h2 {
  font-size: clamp(30px, 4vw, 56px);
}

body[data-theme="technical"] h2 {
  font-size: clamp(26px, 3.2vw, 42px);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
}

body[data-theme="editorial"] .hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

body[data-theme="architectural"] .hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hero-content {
  padding: clamp(36px, 6vw, 84px) clamp(20px, 5.5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  background-color: var(--bg);
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.mode-pill {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
}

.hero-lead {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.75;
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.primary-button,
.secondary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.primary-button {
  background-color: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.secondary-button,
.outline-button {
  background-color: var(--card-bg);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.secondary-button:hover,
.outline-button:hover {
  background-color: var(--surface);
}

.hero-media {
  position: relative;
  min-height: 420px;
  background-color: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

body[data-theme="natural"] .hero-media {
  margin: 24px 4.5% 24px 0;
  border-radius: var(--card-radius);
}

body[data-theme="technical"] .hero-media {
  border-left: 1px solid var(--line);
}

body[data-theme="architectural"] .hero-media {
  border-left: 2px solid var(--ink);
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 680px;
  object-fit: cover;
}

.hero-caption {
  background-color: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Cards Section (Services/Portfolio for W, Concept Product Cards for S) */
.cards-section {
  padding: clamp(52px, 7vw, 96px) 4.5%;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

.section-header-main {
  max-width: 680px;
  min-width: 0;
}

.section-header-main h2 {
  margin-top: 12px;
}

.section-sub {
  max-width: 460px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

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

body[data-theme="editorial"] .cards-grid {
  gap: 34px;
}

body[data-theme="editorial"] .sector-card:nth-child(even) {
  margin-top: 28px;
}

body[data-theme="technical"] .cards-grid {
  gap: 20px;
}

.sector-card {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body[data-theme="technical"] .sector-card {
  border-top: 3px solid var(--accent);
}

body[data-theme="architectural"] .sector-card {
  border: 1px solid var(--ink);
}

.card-media {
  background-color: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sector-card:hover .card-media img {
  transform: scale(1.02);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.sector-card h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

body[data-theme="technical"] .sector-card h3 {
  font-family: var(--sans);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
}

.card-copy {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.card-action {
  margin-top: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  background-color: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-action:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* About / Photo Story Section */
.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(56px, 7.5vw, 104px) 4.5%;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
}

.story-media {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
  min-width: 0;
}

.story-photo {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-caption {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
  background-color: var(--card-bg);
  border-top: 1px solid var(--line);
}

.story-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.story-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.65;
}

.story-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.text-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Three Features Section */
.features-section {
  padding: clamp(52px, 7vw, 96px) 4.5%;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

.feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

body[data-theme="architectural"] .feature-card {
  border-left: 3px solid var(--accent);
}

.feature-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

body[data-theme="technical"] .feature-card h3 {
  font-family: var(--sans);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.text-button {
  margin-top: auto;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  align-self: flex-start;
}

/* Local-Only Info / Contact Panel */
.local-panel-section {
  padding: clamp(52px, 7vw, 92px) 4.5%;
  background-color: var(--bg);
}

.panel-shell {
  background-color: var(--card-bg);
  border: 1px solid var(--ink);
  border-radius: var(--card-radius);
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.panel-drawer {
  margin-top: 8px;
  padding: 24px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.panel-drawer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.panel-topic-box {
  padding: 12px 16px;
  background-color: var(--card-bg);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.panel-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* Footer */
.site-footer {
  background-color: var(--accent);
  color: var(--accent-ink);
  padding: clamp(40px, 5vw, 64px) 4.5%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 32px;
  align-items: start;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 10px;
}

.footer-note {
  font-size: 13px;
  line-height: 1.7;
  color: #f4f1ed;
  max-width: 68ch;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: end;
}

.footer-links a {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero,
  body[data-theme="editorial"] .hero,
  body[data-theme="architectural"] .hero {
    grid-template-columns: 1fr;
  }

  body[data-theme="natural"] .hero-media {
    margin: 0;
    border-radius: 0;
  }

  body[data-theme="technical"] .hero-media,
  body[data-theme="architectural"] .hero-media {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .story-section {
    grid-template-columns: 1fr;
  }

  .panel-drawer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .demo-bar {
    padding: 8px 5%;
    font-size: 10px;
  }

  .site-header {
    flex-wrap: wrap;
    padding: 16px 5%;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    gap: 14px;
    font-size: 12px;
    order: 3;
  }

  .hero-content {
    padding: 32px 5%;
  }

  .hero-media,
  .hero-photo {
    min-height: 280px;
  }

  .cards-section,
  .story-section,
  .features-section,
  .local-panel-section,
  .site-footer {
    padding-left: 5%;
    padding-right: 5%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body[data-theme="editorial"] .sector-card:nth-child(even) {
    margin-top: 0;
  }

  .primary-button,
  .secondary-button,
  .outline-button {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
/* Photo comes first on compact screens, matching the approved visual direction. */
@media(max-width:680px){.hero-media{order:-1}.hero-media,.hero-photo{min-height:0;height:285px}.hero-caption{display:none}.header-offer-link{display:none}.demo-bar>a:last-child{display:none}.demo-bar{gap:6px;padding-block:8px}.hero-content{padding-top:30px}.hero-actions .secondary-button{display:none}}
