:root {
  --ink: #090a0b;
  --ink-soft: #0e1012;
  --panel: #141619;
  --panel-2: #1a1c1f;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.19);
  --text: #f2f0e9;
  --muted: #aaa79f;
  --muted-2: #7f7d77;
  --amber: #e7a544;
  --amber-soft: #f6c979;
  --amber-dark: #8b5819;
  --ok: #8ebf92;
  --danger: #dc8d77;
  --max: 1240px;
  --radius: 22px;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 6%, rgba(231, 165, 68, 0.08), transparent 28rem),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 64px 64px, 64px 64px, auto;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

::selection {
  color: #17120a;
  background: var(--amber-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  outline-color: var(--amber-soft);
  outline-offset: 4px;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: #111;
  background: var(--amber-soft);
  border-radius: 999px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(9, 10, 11, 0.76);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(9, 10, 11, 0.92);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--amber-soft);
  border: 1px solid rgba(231, 165, 68, 0.44);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark::after {
  position: absolute;
  right: -7px;
  width: 14px;
  height: 1px;
  content: "";
  background: var(--amber);
  box-shadow: 8px -4px 0 -0.1px var(--amber);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.86rem;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-action {
  min-width: max-content;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  content: "";
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78rem 1.15rem;
  color: #15110b;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(231, 165, 68, 0.12);
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  box-shadow: 0 15px 42px rgba(231, 165, 68, 0.2);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: rgba(231, 165, 68, 0.55);
  background: rgba(231, 165, 68, 0.06);
}

.button.small {
  min-height: 42px;
  padding: 0.62rem 0.95rem;
  font-size: 0.84rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--amber-soft);
  font-weight: 650;
}

.text-link::after {
  content: "↗";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translate(2px, -2px);
}

main {
  overflow: clip;
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(4rem, 10vw, 8rem) 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.office-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 6vh, 5rem) 0 clamp(3rem, 5vh, 4rem);
  border-bottom: 1px solid rgba(231, 165, 68, 0.22);
}

.office-hero::before,
.office-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.office-hero::before {
  background:
    radial-gradient(circle at 79% 48%, rgba(231, 165, 68, 0.13), transparent 31%),
    linear-gradient(90deg, rgba(4, 5, 6, 0.78) 0%, rgba(4, 5, 6, 0.54) 28%, rgba(4, 5, 6, 0.22) 58%, rgba(4, 5, 6, 0.08) 82%),
    linear-gradient(180deg, rgba(3, 4, 5, 0.27), transparent 38%, rgba(3, 4, 5, 0.56));
}

.office-hero::after {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(255, 255, 255, 0.025) 50%, transparent calc(50% + 1px)),
    linear-gradient(180deg, transparent 0, transparent calc(50% - 1px), rgba(255, 255, 255, 0.02) 50%, transparent calc(50% + 1px));
  background-size: 72px 72px;
  opacity: 0.34;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.32) 65%, transparent 88%);
}

.office-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.office-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.84) contrast(1.07) saturate(0.92);
}

.office-hero .hero-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
}

.office-hero .hero-copy {
  max-width: 740px;
  margin-left: clamp(1.5rem, 11vw, 8.5rem);
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.78);
}

.office-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.7rem, 6.4vw, 6.6rem);
}

.hero-brand-line {
  white-space: nowrap;
}

.office-hero .lead {
  max-width: 52ch;
  color: #e1ded5;
}

.office-hero .button.secondary {
  background: rgba(8, 9, 10, 0.58);
  backdrop-filter: blur(12px);
}

.office-hero .hero-note {
  color: #c8c4ba;
}

.office-scene-note {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: 1.25rem;
  z-index: 2;
  display: grid;
  margin: 0;
  padding: 0.65rem 0.8rem;
  color: rgba(242, 240, 233, 0.66);
  background: rgba(7, 8, 9, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  backdrop-filter: blur(12px);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.office-scene-note span {
  color: var(--amber-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.4rem;
  color: var(--amber-soft);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 1px;
  content: "";
  background: currentColor;
}

.office-hero .eyebrow::before {
  display: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Arial Narrow", "Roboto Condensed", ui-sans-serif, sans-serif;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.3rem, 7.3vw, 7rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero h1 em {
  color: var(--amber-soft);
  font-style: normal;
}

.lead {
  max-width: 66ch;
  color: #d3d0c8;
  font-size: clamp(1.06rem, 1.7vw, 1.3rem);
}

.hero-copy .lead {
  max-width: 55ch;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(231, 165, 68, 0.11);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  padding: 1rem;
}

.hero-visual::before {
  position: absolute;
  inset: 8% 5% 3% 12%;
  content: "";
  background: radial-gradient(circle, rgba(231, 165, 68, 0.15), transparent 65%);
  filter: blur(30px);
}

.plan-frame {
  position: relative;
  height: 100%;
  min-height: 530px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.07), transparent 40%),
    rgba(17, 18, 20, 0.76);
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: perspective(1300px) rotateY(-7deg) rotateX(4deg);
}

.plan-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.03);
}

.plan-caption {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  z-index: 2;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  background: rgba(9, 10, 11, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.plan-svg {
  width: 100%;
  height: 100%;
  min-height: 530px;
}

.plan-wall {
  fill: none;
  stroke: rgba(242, 240, 233, 0.72);
  stroke-width: 3;
}

.plan-thin {
  fill: none;
  stroke: rgba(242, 240, 233, 0.23);
  stroke-width: 1;
}

.plan-wire {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 8;
  filter: drop-shadow(0 0 5px rgba(231, 165, 68, 0.56));
  animation: current-flow 8s linear infinite;
}

.plan-node {
  fill: #15110b;
  stroke: var(--amber-soft);
  stroke-width: 2;
}

.plan-room {
  fill: rgba(255, 255, 255, 0.02);
  stroke: rgba(255, 255, 255, 0.06);
}

.plan-text {
  fill: rgba(242, 240, 233, 0.48);
  font-family: Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes current-flow {
  to {
    stroke-dashoffset: -150;
  }
}

.signal-card {
  position: absolute;
  right: -1.2rem;
  bottom: 2.4rem;
  z-index: 3;
  max-width: 220px;
  padding: 1rem 1.1rem;
  background: rgba(14, 16, 18, 0.94);
  border: 1px solid rgba(231, 165, 68, 0.35);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.signal-card strong,
.signal-card span {
  display: block;
}

.signal-card strong {
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
}

.signal-card span {
  color: var(--muted);
  font-size: 0.75rem;
}

.section {
  position: relative;
  padding: clamp(5.5rem, 10vw, 9rem) 0;
}

.section.tight {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section-top {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 0.35fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-top h2,
.page-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5.6vw, 5.1rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.section-top p {
  margin-bottom: 0;
  color: var(--muted);
}

.kicker {
  margin-bottom: 1rem;
  color: var(--amber-soft);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.divider {
  border-top: 1px solid var(--line);
}

.service-grid,
.feature-grid,
.article-grid,
.question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.feature-card,
.article-card,
.empty-card,
.info-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 1.6rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 40%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.service-card:hover,
.article-card:hover {
  border-color: rgba(231, 165, 68, 0.45);
  transform: translateY(-4px);
}

.card-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-glyph {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--amber-soft);
  border: 1px solid rgba(231, 165, 68, 0.3);
  border-radius: 50%;
}

.service-card h3,
.feature-card h3,
.article-card h3,
.info-card h3 {
  max-width: 16ch;
  margin: 3.3rem 0 0.8rem;
  font-size: 1.5rem;
  font-weight: 620;
  line-height: 1.05;
}

.service-card p,
.feature-card p,
.article-card p,
.info-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.service-card .text-link,
.article-card .text-link {
  position: absolute;
  bottom: 1.5rem;
  left: 1.6rem;
  font-size: 0.85rem;
}

.service-card {
  isolation: isolate;
  min-height: 430px;
  padding: 0;
  background: #0b0c0d;
}

.service-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.24) 0%, rgba(5, 6, 7, 0.12) 30%, rgba(5, 6, 7, 0.9) 72%, rgba(5, 6, 7, 0.98) 100%),
    linear-gradient(90deg, rgba(5, 6, 7, 0.5), transparent 62%);
  content: "";
}

.service-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.06) saturate(0.9);
  transition: transform 600ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 240ms ease;
}

.service-card-media-panel {
  object-position: center top;
  transform: scale(1.22);
  transform-origin: center top;
}

.service-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 1.5rem;
}

.service-card .card-index {
  color: rgba(255, 255, 255, 0.68);
}

.service-card h3 {
  max-width: 18ch;
  margin: auto 0 0.72rem;
  color: #fffaf0;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.72);
}

.service-card p {
  max-width: 36ch;
  margin-bottom: 0;
  color: rgba(246, 242, 232, 0.76);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.service-card .text-link {
  position: static;
  align-self: flex-start;
  margin-top: 1rem;
}

.service-card:focus-within {
  border-color: rgba(231, 165, 68, 0.55);
}

@media (hover: hover) {
  .service-card:hover .service-card-media {
    filter: brightness(0.98) contrast(1.04) saturate(0.96);
    transform: scale(1.035);
  }

  .service-card:hover .service-card-media-panel {
    transform: scale(1.25);
  }
}

.system-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 3;
  background: rgba(11, 12, 14, 0.94);
  border-block: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.system-strip > a {
  position: relative;
  padding: 1.6rem;
  border-right: 1px solid var(--line);
  transition: background 180ms ease, color 180ms ease;
}

.system-strip > a::after {
  position: absolute;
  top: 1.6rem;
  right: 1rem;
  color: rgba(246, 201, 121, 0.48);
  content: "→";
  transition: color 180ms ease, transform 180ms ease;
}

.system-strip > a:hover,
.system-strip > a:focus-visible {
  background: rgba(231, 165, 68, 0.075);
}

.system-strip > a:hover::after,
.system-strip > a:focus-visible::after {
  color: var(--amber-soft);
  transform: translateX(3px);
}

.system-strip > a:last-child {
  border-right: 0;
}

.system-strip strong,
.system-strip span {
  display: block;
}

.system-strip strong {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.system-strip span {
  color: var(--muted);
  font-size: 0.8rem;
}

.architecture {
  --reveal: 58%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.46fr);
  gap: 1.2rem;
  align-items: start;
}

.architecture-visual {
  min-width: 0;
}

.architecture-stage {
  position: relative;
  min-height: 600px;
  margin: 0;
  overflow: hidden;
  background: #17191b;
  border: 1px solid var(--line);
  border-radius: 28px;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}

.room-layer {
  position: absolute;
  inset: 0;
}

.room-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-layer.hidden-system {
  z-index: 2;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
  background: #111;
}

.room-finished::after,
.hidden-system::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.room-finished::after {
  background: linear-gradient(90deg, rgba(4, 5, 6, 0.12), transparent 56%, rgba(4, 5, 6, 0.08));
}

.hidden-system::after {
  background: linear-gradient(90deg, rgba(6, 6, 6, 0.04), rgba(6, 6, 6, 0.34));
}

.architecture-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(246, 201, 121, 0.48));
}

.architecture-overlay [data-architecture-layer] {
  opacity: 0;
  transition: opacity 180ms ease;
}

.architecture-overlay path,
.architecture-overlay circle {
  fill: none;
  stroke: var(--amber-soft);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.architecture-overlay circle {
  fill: #17120b;
  stroke-width: 0.55;
}

.architecture[data-active-topic="routes"] [data-architecture-layer="routes"],
.architecture[data-active-topic="groups"] [data-architecture-layer="groups"],
.architecture[data-active-topic="light"] [data-architecture-layer="light"] {
  opacity: 1;
}

.architecture-overlay .group-sockets {
  stroke: #f6c979;
}

.architecture-overlay .group-light {
  stroke: #8fd2ff;
}

.architecture-overlay .group-load {
  stroke: #e88761;
}

.architecture-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  z-index: 4;
  width: 1px;
  pointer-events: none;
  background: var(--amber-soft);
  box-shadow: 0 0 24px rgba(231, 165, 68, 0.56);
}

.architecture-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0.65rem 0.8rem;
  color: #17120b;
  background: var(--amber-soft);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.architecture-label {
  position: absolute;
  top: 1rem;
  z-index: 5;
  padding: 0.5rem 0.75rem;
  background: rgba(9, 10, 11, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
}

.architecture-label.left {
  left: 1rem;
}

.architecture-label.right {
  right: 1rem;
}

.architecture-control {
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.architecture-control label {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.architecture-control label strong {
  color: var(--text);
  font-size: 0.9rem;
}

.architecture-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-2);
  font-size: 0.66rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--amber);
}

.architecture-control output {
  display: block;
  margin-top: 0.35rem;
  color: var(--amber-soft);
  font-size: 0.72rem;
}

.architecture-visual figcaption {
  margin: 0.6rem 0 0;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.architecture-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.architecture-panel-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.architecture-topics {
  display: grid;
  gap: 0.7rem;
}

.architecture-topic {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 1rem;
  color: var(--muted);
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.architecture-topic:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.architecture-topic.is-active,
.architecture-topic[aria-pressed="true"] {
  color: var(--text);
  border-color: rgba(231, 165, 68, 0.48);
  background: linear-gradient(135deg, rgba(231, 165, 68, 0.08), var(--panel));
}

.architecture-topic-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--amber-soft);
  border: 1px solid rgba(231, 165, 68, 0.38);
  border-radius: 50%;
  font-size: 0.68rem;
}

.architecture-topic strong,
.architecture-topic small {
  display: block;
}

.architecture-topic strong {
  color: var(--text);
  font-size: 1rem;
}

.architecture-topic small {
  margin-top: 0.22rem;
  color: inherit;
  font-size: 0.72rem;
}

.architecture-topic-action {
  color: var(--amber-soft);
  font-size: 0.64rem;
  font-weight: 760;
  white-space: nowrap;
}

.architecture-detail {
  padding: 1.35rem;
  background: linear-gradient(145deg, rgba(231, 165, 68, 0.08), rgba(13, 15, 17, 0.94));
  border: 1px solid rgba(231, 165, 68, 0.28);
  border-radius: 18px;
}

.architecture-detail .kicker {
  margin-bottom: 0.6rem;
}

.architecture-detail h3 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.architecture-detail p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.caption {
  margin-top: 1rem;
  color: var(--muted-2);
  font-size: 0.76rem;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-step {
  position: relative;
  min-height: 240px;
  padding: 1.5rem;
  background: var(--ink-soft);
}

.process-step span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 3rem;
  place-items: center;
  color: var(--amber-soft);
  border: 1px solid rgba(231, 165, 68, 0.35);
  border-radius: 50%;
  font-size: 0.72rem;
}

.process-step h3 {
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.process-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.process-step-card {
  overflow: hidden;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms ease, transform 180ms ease;
}

.process-step-card:hover {
  border-color: rgba(231, 165, 68, 0.36);
  transform: translateY(-3px);
}

.process-step-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.process-step-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(7, 8, 9, 0.62));
}

.process-step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.process-step-card:hover .process-step-media img {
  transform: scale(1.025);
}

.process-step-card:nth-child(3) .process-step-media img {
  object-position: 50% 56%;
}

.process-step-card:nth-child(6) .process-step-media img {
  object-position: center top;
  transform: scale(1.22);
  transform-origin: center top;
}

.process-step-card:nth-child(6):hover .process-step-media img {
  transform: scale(1.245);
}

.process-step-card:nth-child(7) .process-step-media img {
  object-position: 64% 48%;
}

.process-step-body {
  padding: 1.35rem;
}

.process-step-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.process-step-heading > p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-step-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--amber-soft);
  border: 1px solid rgba(231, 165, 68, 0.38);
  border-radius: 50%;
  font-size: 0.72rem;
}

.process-step-body h3 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
}

.process-step-body > p:not(.process-result) {
  color: var(--muted);
  font-size: 0.86rem;
}

.process-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
}

.process-result strong {
  color: var(--amber-soft);
}

.process-result span {
  color: var(--text);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 80% 20%, rgba(231, 165, 68, 0.17), transparent 25rem),
    linear-gradient(135deg, #1a1c1e, #0e0f10);
  border: 1px solid var(--line-strong);
  border-radius: 32px;
}

.cta-panel::after {
  position: absolute;
  right: -4%;
  bottom: -45%;
  width: 420px;
  height: 420px;
  content: "";
  border: 1px solid rgba(231, 165, 68, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(231, 165, 68, 0.03),
    0 0 0 78px rgba(231, 165, 68, 0.02);
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  max-width: 13ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.cta-panel p {
  max-width: 60ch;
  color: var(--muted);
}

.empty-card {
  min-height: 260px;
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  align-items: center;
  gap: 2rem;
}

.empty-visual {
  display: grid;
  min-height: 190px;
  place-items: center;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(231, 165, 68, 0.18) 50%, transparent 50.5%),
    linear-gradient(transparent 49.5%, rgba(231, 165, 68, 0.18) 50%, transparent 50.5%),
    #0d0e0f;
  background-size: 44px 44px;
  border: 1px dashed rgba(231, 165, 68, 0.28);
  border-radius: 16px;
}

.empty-visual span {
  color: var(--amber-soft);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(58svh, 620px);
  align-items: end;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0 4rem;
  border-bottom: 1px solid rgba(231, 165, 68, 0.18);
}

.page-hero::before,
.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.page-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.78) 43%, rgba(5, 6, 7, 0.28) 78%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.25), rgba(5, 6, 7, 0.72)),
    var(--page-hero-image, url("/assets/office-entry-hero.png")) var(--page-hero-position, center 46%) / cover no-repeat;
  filter: saturate(0.82);
}

body[data-page="/services/apartments/"] {
  --page-hero-image: url("/assets/services/apartments.png");
  --page-hero-position: center 54%;
}

body[data-page="/services/houses/"] {
  --page-hero-image: url("/assets/services/houses.png");
  --page-hero-position: center 48%;
}

body[data-page="/services/commercial/"] {
  --page-hero-image: url("/assets/services/commercial.png");
  --page-hero-position: center 48%;
}

body[data-page="/services/design-project/"] {
  --page-hero-image: url("/assets/services/design-project.png");
  --page-hero-position: center 51%;
}

body[data-page="/services/panels/"] {
  --page-hero-image: url("/assets/services/panels-labeled.png");
  --page-hero-position: center 18%;
}

body[data-page="/services/panels/"] .page-hero::before {
  background-size: auto, auto, auto 128%;
}

body[data-page="/services/lighting/"] {
  --page-hero-image: url("/assets/services/lighting.png");
  --page-hero-position: center 52%;
}

.page-hero::after {
  background: linear-gradient(90deg, rgba(231, 165, 68, 0.28), transparent 24%) bottom left / 100% 1px no-repeat;
}

.page-hero h1 {
  max-width: 14ch;
}

.page-hero .lead {
  margin-top: 1.6rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
  padding: 0;
  color: var(--muted-2);
  list-style: none;
  font-size: 0.78rem;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 0.55rem;
  content: "/";
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.67fr) minmax(270px, 0.33fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.prose {
  color: #d1cec6;
}

.prose h2 {
  margin: 3.5rem 0 1rem;
  color: var(--text);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.05;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 2rem 0 0.7rem;
  color: var(--text);
  font-size: 1.25rem;
}

.prose p,
.prose li {
  max-width: 74ch;
}

.prose ul,
.check-list,
.plain-list {
  padding-left: 0;
  list-style: none;
}

.prose li,
.check-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.7rem;
  border-bottom: 1px solid var(--line);
}

.prose li::before,
.check-list li::before {
  position: absolute;
  top: 1.24rem;
  left: 0.2rem;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(231, 165, 68, 0.1);
}

.aside-stack {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.aside-card {
  padding: 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.aside-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.aside-card p,
.aside-card li {
  color: var(--muted);
  font-size: 0.85rem;
}

.aside-card ul {
  margin-bottom: 0;
}

.notice {
  padding: 1rem 1.1rem;
  color: #cfcbc2;
  background: rgba(231, 165, 68, 0.07);
  border: 1px solid rgba(231, 165, 68, 0.26);
  border-radius: 14px;
  font-size: 0.85rem;
}

.notice.danger {
  background: rgba(220, 141, 119, 0.06);
  border-color: rgba(220, 141, 119, 0.28);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.38fr);
  gap: 1.2rem;
  align-items: start;
}

.form-panel,
.result-panel,
.planner-panel,
.panel-explorer {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-section + .form-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.form-section h2,
.form-section h3 {
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
fieldset legend {
  color: #d8d5cd;
  font-size: 0.8rem;
  font-weight: 650;
}

.field small {
  color: var(--muted-2);
  font-size: 0.72rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.85rem;
  color: var(--text);
  background: #0d0f11;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(231, 165, 68, 0.1);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.check-chip {
  position: relative;
}

.check-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-chip label {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  background: #0d0f11;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.check-chip input:checked + label {
  color: #17120b;
  background: var(--amber-soft);
  border-color: var(--amber-soft);
}

.check-chip input:focus-visible + label {
  outline: 2px solid var(--amber-soft);
  outline-offset: 3px;
}

.result-panel {
  position: sticky;
  top: 98px;
}

.result-state {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.result-state strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
}

.result-state span {
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-list {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem;
}

.summary-item dt {
  color: var(--muted);
}

.summary-item dd {
  margin: 0;
  text-align: right;
}

.status-line {
  min-height: 1.4em;
  margin-top: 0.8rem;
  color: var(--ok);
  font-size: 0.78rem;
}

.planner-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
}

.planner-layout > * {
  min-width: 0;
}

.planner-tools {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.tool-button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  background: #0d0f11;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.tool-button:hover,
.tool-button.is-active {
  border-color: rgba(231, 165, 68, 0.55);
  background: rgba(231, 165, 68, 0.06);
}

.tool-button span:last-child {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #15110b;
  background: var(--amber-soft);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.planner-canvas-wrap {
  min-width: 0;
}

.planner-canvas {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  touch-action: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #0c0d0f;
  background-size: 30px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.planner-canvas.has-plan-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.planner-canvas::before {
  position: absolute;
  inset: clamp(16px, 6%, 44px);
  pointer-events: none;
  content: "";
  border: 2px solid rgba(242, 240, 233, 0.36);
  border-radius: 4px;
  box-shadow:
    inset 150px 0 0 -148px rgba(242, 240, 233, 0.2),
    inset 0 190px 0 -188px rgba(242, 240, 233, 0.2);
}

.plan-point {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: #17120b;
  background: var(--amber-soft);
  border: 2px solid #17120b;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  cursor: grab;
  transform: translate(-50%, -50%);
  user-select: none;
}

/* Keep the small marker easy to grab without covering the plan with a large icon. */
.plan-point::after {
  position: absolute;
  inset: -10px;
  content: "";
  border-radius: 50%;
}

.plan-point:active {
  cursor: grabbing;
}

.planner-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 1rem;
}

.planner-counts div {
  padding: 0.7rem;
  text-align: center;
  background: #0d0f11;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.planner-counts strong,
.planner-counts span {
  display: block;
}

.planner-counts strong {
  color: var(--amber-soft);
  font-size: 1.3rem;
}

.planner-counts span {
  color: var(--muted);
  font-size: 0.68rem;
}

.panel-explorer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 1rem;
}

.panel-photo-guide {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.panel-photo-guide strong {
  color: var(--text);
}

.panel-photo-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--amber) #242629;
}

.panel-photo-canvas {
  position: relative;
  min-width: 720px;
  aspect-ratio: 2.19 / 1;
  overflow: hidden;
  background: #0b0c0d;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 50px rgba(0, 0, 0, 0.26);
}

.panel-photo-canvas > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.panel-photo-zones {
  position: absolute;
  inset: 4% 6.7% 4% 8.8%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.35rem;
}

.panel-zone {
  position: relative;
  min-width: 0;
  padding: 0;
  color: transparent;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.panel-zone span {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  padding: 0.4rem 0.2rem;
  color: rgba(242, 240, 233, 0.84);
  background: rgba(8, 9, 10, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.panel-zone:hover,
.panel-zone[aria-pressed="true"] {
  background: rgba(231, 165, 68, 0.08);
  border-color: var(--amber-soft);
  box-shadow: inset 0 0 32px rgba(231, 165, 68, 0.12), 0 0 18px rgba(231, 165, 68, 0.12);
}

.panel-zone[aria-pressed="true"] span {
  color: #17120b;
  background: var(--amber-soft);
  border-color: var(--amber-soft);
}

.module-info {
  padding: 1.4rem;
  background: #0d0f11;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.module-info h3 {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
}

.module-info p {
  color: var(--muted);
}

.faq-stack {
  display: grid;
  gap: 0.65rem;
}

details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

details[open] {
  border-color: rgba(231, 165, 68, 0.34);
}

summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  flex: 0 0 auto;
  content: "+";
  color: var(--amber-soft);
  font-size: 1.3rem;
}

details[open] summary::after {
  content: "−";
}

details p {
  max-width: 76ch;
  margin: 0;
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  vertical-align: top;
}

th {
  color: var(--amber-soft);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

td {
  color: #cfcbc3;
}

.site-footer {
  padding: 4rem 0 2rem;
  background: #070809;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-intro {
  max-width: 34ch;
}

.footer-intro p,
.footer-col a,
.footer-col p {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-col h3 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin: 0.45rem 0;
}

.footer-col a:hover {
  color: var(--amber-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.print-only {
  display: none;
}

@media (max-width: 1060px) {
  .site-nav,
  .header-action {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav.is-open {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: block;
    padding: 1rem 20px 1.3rem;
    background: rgba(9, 10, 11, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav.is-open a {
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero-visual {
    min-height: 480px;
  }

  .plan-frame,
  .plan-svg {
    min-height: 470px;
  }

  .architecture,
  .calculator-layout,
  .panel-explorer-grid {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }

  .planner-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .planner-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .planner-tools .field,
  .planner-tools .notice,
  .planner-tools .action-row,
  .planner-tools .status-line {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid,
  .feature-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .hero-grid {
    gap: 1rem;
  }

  .office-hero {
    min-height: calc(100svh - 68px);
    align-items: end;
    padding: 4.5rem 0 3.75rem;
  }

  .office-hero::before {
    background:
      linear-gradient(90deg, rgba(4, 5, 6, 0.68), rgba(4, 5, 6, 0.25) 74%, rgba(4, 5, 6, 0.08)),
      linear-gradient(180deg, rgba(4, 5, 6, 0.16) 0%, rgba(4, 5, 6, 0.4) 42%, rgba(4, 5, 6, 0.92) 100%);
  }

  .office-hero::after {
    background-size: 54px 54px;
    opacity: 0.24;
  }

  .office-hero-media img {
    object-position: center;
    filter: brightness(0.76) contrast(1.08) saturate(0.9);
  }

  .office-hero .hero-copy {
    max-width: 100%;
    margin-left: 0;
  }

  .office-hero h1 {
    max-width: 9ch;
    font-size: clamp(2.35rem, 11.8vw, 4.25rem);
  }

  .office-hero .lead {
    max-width: 36ch;
    font-size: 1rem;
  }

  .office-scene-note {
    display: none;
  }

  .page-hero {
    min-height: 520px;
  }

  .page-hero::before {
    background:
      linear-gradient(90deg, rgba(5, 6, 7, 0.9), rgba(5, 6, 7, 0.34)),
      linear-gradient(180deg, rgba(5, 6, 7, 0.28), rgba(5, 6, 7, 0.86)),
      var(--page-hero-image, url("/assets/office-entry-hero-mobile.png")) var(--page-hero-position, center) / cover no-repeat;
  }

  .service-card,
  .service-card-body {
    min-height: 400px;
  }

  .hero-visual {
    min-height: 390px;
    padding: 0;
  }

  .plan-frame,
  .plan-svg {
    min-height: 380px;
    transform: none;
  }

  .signal-card {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .section-top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .service-grid,
  .feature-grid,
  .article-grid,
  .question-grid,
  .architecture-notes,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .system-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-strip > a:nth-child(2) {
    border-right: 0;
  }

  .system-strip > a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .architecture-stage {
    min-height: 0;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
  }

  .architecture-label {
    top: 0.65rem;
    max-width: 46%;
    padding: 0.45rem 0.55rem;
    font-size: 0.58rem;
    line-height: 1.35;
  }

  .architecture-label.left {
    left: 0.65rem;
  }

  .architecture-label.right {
    right: 0.65rem;
  }

  .architecture-divider span {
    padding: 0.55rem 0.65rem;
    font-size: 0.54rem;
  }

  .architecture-topic {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 76px;
  }

  .architecture-topic-action {
    grid-column: 2;
  }

  .process-gallery {
    grid-template-columns: 1fr;
  }

  .panel-photo-guide {
    display: grid;
    gap: 0.25rem;
  }

  .panel-photo-canvas {
    min-width: 820px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-height: 0;
  }

  .process-step span {
    margin-bottom: 1.4rem;
  }

  .empty-card,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .planner-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .planner-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-tools .field,
  .planner-tools .notice,
  .planner-tools .action-row {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 460px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-inner {
    min-height: 68px;
  }

  .site-nav.is-open ul {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .action-row .button {
    width: 100%;
  }

  .system-strip {
    grid-template-columns: 1fr;
  }

  .system-strip > a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .system-strip > a:last-child {
    border-bottom: 0;
  }

  .architecture-stage {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .planner-tools {
    grid-template-columns: 1fr;
  }

  .planner-tools .field,
  .planner-tools .notice,
  .planner-tools .action-row {
    grid-column: auto;
  }

  .service-card,
  .service-card-body {
    min-height: 370px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #151515;
    background: #fff;
  }

  body::before,
  .site-header,
  .site-footer,
  .no-print,
  .planner-tools,
  .button,
  .notice {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  .section,
  .page-hero {
    padding: 1rem 0;
  }

  .result-panel,
  .form-panel,
  .planner-panel {
    color: #151515;
    background: #fff;
    border-color: #bbb;
    box-shadow: none;
  }

  .calculator-layout,
  .planner-layout {
    display: block;
  }

  .form-panel {
    display: none;
  }

  .summary-item,
  .result-state {
    border-color: #bbb;
  }

  .summary-item dt,
  .result-state span,
  .caption {
    color: #555;
  }
}
