/*
Theme Name: XMODELROOM
Theme URI: https://example.com/xmodelroom
Author: XMODELROOM
Author URI: https://example.com
Description: A premium WordPress theme for sand table model, planning, real estate, architecture, industry, and simulation model services.
Version: 1.6.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: xmodelroom
*/

:root {
  --xm-black: #0d1117;
  --xm-navy: #1e293b;
  --xm-slate: #64748b;
  --xm-gray: #e5e7eb;
  --xm-gold: #d4af37;
  --xm-white: #ffffff;
  --xm-ink: #111827;
  --xm-muted: #667085;
  --xm-line: rgba(13, 17, 23, 0.12);
  --xm-shadow: 0 20px 50px rgba(13, 17, 23, 0.12);
  --xm-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f5f6f8;
  color: var(--xm-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-shell {
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(12px);
  color: var(--xm-white);
}

.header-inner {
  width: min(var(--xm-max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
}

.brand-link img {
  width: 188px;
  height: auto;
  padding: 8px 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.94);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-dropdown,
.menu-dropdown {
  position: relative;
}

.language-toggle,
.menu-toggle {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--xm-white);
  cursor: pointer;
}

.language-toggle svg,
.menu-toggle svg {
  width: 21px;
  height: 21px;
}

.language-panel,
.menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(310px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background: rgba(13, 17, 23, 0.99);
  box-shadow: var(--xm-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.language-panel {
  width: min(230px, calc(100vw - 32px));
}

.language-panel.is-open,
.menu-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-panel a,
.menu-panel a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.language-panel small {
  color: var(--xm-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-panel a:hover,
.language-panel a:focus,
.language-panel a.is-active,
.menu-panel a:hover,
.menu-panel a:focus {
  background: rgba(212, 175, 55, 0.16);
  color: var(--xm-white);
}

.video-carousel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--xm-black);
  color: var(--xm-white);
}

.video-carousel-track {
  display: flex;
  min-height: 100vh;
  touch-action: pan-y;
  transition: transform 520ms ease;
}

.video-panel {
  flex: 0 0 100%;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--xm-black);
}

.video-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.video-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, 0.72), rgba(13, 17, 23, 0.36) 46%, rgba(13, 17, 23, 0.08)),
    linear-gradient(0deg, rgba(13, 17, 23, 0.48), rgba(13, 17, 23, 0.02) 50%);
}

.video-panel-content {
  position: relative;
  z-index: 2;
  width: min(var(--xm-max), calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 142px 0 90px;
  display: grid;
  align-content: center;
}

.hero-kicker {
  color: var(--xm-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
  text-transform: uppercase;
}

.video-panel-content h1 {
  max-width: 690px;
  margin: 14px 0 18px;
  font-size: clamp(2.7rem, 5.8vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.72);
}

.video-panel-content p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.68);
}

.hero-buttons {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 2px;
  color: var(--xm-white);
  font-weight: 800;
}

.video-carousel-controls {
  position: absolute;
  z-index: 4;
  right: max(16px, calc((100vw - var(--xm-max)) / 2));
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.carousel-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 2px;
  background: rgba(13, 17, 23, 0.55);
  color: var(--xm-white);
  cursor: pointer;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
  border-color: var(--xm-gold);
  color: var(--xm-gold);
}

.carousel-arrow svg {
  width: 22px;
  height: 22px;
}

.video-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-dot {
  width: 38px;
  height: 4px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.video-dot.is-active {
  background: var(--xm-gold);
}

.section {
  padding: 88px 0;
  background: var(--xm-white);
}

.section-dark {
  background: linear-gradient(135deg, var(--xm-black), var(--xm-navy));
  color: var(--xm-white);
}

.section-muted {
  background: var(--xm-gray);
}

.section-inner {
  width: min(var(--xm-max), calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--xm-gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading p,
.page-hero p {
  margin: 16px 0 0;
  color: var(--xm-muted);
  font-size: 1.05rem;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  min-height: 315px;
  display: flex;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(13, 17, 23, 0.08);
  border-radius: 2px;
  background: var(--xm-navy);
  color: var(--xm-white);
  box-shadow: 0 14px 34px rgba(13, 17, 23, 0.1);
}

.category-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: transform 250ms ease;
}

.category-card:hover .category-media {
  transform: scale(1.06);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.1), rgba(13, 17, 23, 0.86));
}

.category-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 22px;
}

.category-content h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.18;
}

.category-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

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

.mode-item {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.mode-number {
  color: var(--xm-gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.mode-item h3 {
  margin: 18px 0 12px;
  font-size: 1.45rem;
  line-height: 1.18;
}

.mode-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  color: var(--xm-muted);
}

.contact-list strong {
  color: var(--xm-ink);
}

.inquiry-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--xm-line);
  border-radius: 2px;
  background: var(--xm-white);
  box-shadow: var(--xm-shadow);
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  color: var(--xm-navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--xm-line);
  border-radius: 2px;
  padding: 13px 14px;
  color: var(--xm-ink);
  font: inherit;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button,
.page-link-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  padding: 0 20px;
  border-radius: 2px;
  background: var(--xm-gold);
  color: var(--xm-black);
  font-weight: 800;
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus,
.page-link-button:hover,
.page-link-button:focus {
  background: #c39d2f;
}

.form-alert {
  padding: 12px 14px;
  border-radius: 2px;
  font-weight: 700;
}

.form-alert.success {
  background: rgba(54, 179, 126, 0.12);
  color: #17633b;
}

.form-alert.error {
  background: rgba(208, 69, 55, 0.12);
  color: #8c2b21;
}

.site-footer {
  background: var(--xm-black);
  color: var(--xm-white);
}

.footer-inner {
  width: min(var(--xm-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand img {
  width: 190px;
  padding: 8px 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.94);
}

.footer-brand p {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.7);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(5, 48px);
  gap: 12px;
}

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

.region-card {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.78);
}

.social-grid a {
  width: 48px;
  height: 48px;
  display: inline-grid;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 2px;
  color: var(--xm-white);
}

.social-grid img {
  width: 21px;
  height: 21px;
  opacity: 0.9;
}

.social-grid a:hover,
.social-grid a:focus {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.7);
  color: var(--xm-white);
}

.social-grid a:hover img,
.social-grid a:focus img {
  opacity: 1;
}

.footer-contact-button {
  width: fit-content;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.68);
  border-radius: 2px;
  background: var(--xm-gold);
  color: var(--xm-black);
  font-weight: 800;
}

.footer-contact-button:hover,
.footer-contact-button:focus {
  background: #c39d2f;
  border-color: #c39d2f;
}

.footer-heading {
  margin: 0 0 14px;
  color: var(--xm-white);
  font-size: 1rem;
}

.region-grid {
  margin-top: 26px;
}

.region-card strong {
  display: block;
  color: var(--xm-gold);
}

.region-card span {
  display: block;
  margin-top: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 78px;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, 0.96), rgba(13, 17, 23, 0.78)),
    url("assets/images/front-urban-planning.png") center / cover no-repeat,
    var(--xm-black);
  color: var(--xm-white);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.page-content {
  width: min(840px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.page-content p {
  color: var(--xm-muted);
}

.service-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.service-sample-grid article {
  padding: 22px;
  border: 1px solid var(--xm-line);
  border-radius: 2px;
  background: var(--xm-white);
}

.service-sample-grid h2 {
  margin: 0 0 8px;
  color: var(--xm-navy);
  font-size: 1.1rem;
}

.about-content {
  background: var(--xm-white);
  padding: 78px 0 92px;
}

.about-layout {
  width: min(var(--xm-max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.about-layout.no-summary {
  grid-template-columns: minmax(0, 900px);
}

.about-summary {
  position: sticky;
  top: 104px;
  padding: 30px;
  border-left: 4px solid var(--xm-gold);
  background: var(--xm-black);
  color: var(--xm-white);
}

.about-summary span {
  color: var(--xm-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-summary h2 {
  margin: 14px 0 14px;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.08;
}

.about-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.about-summary p + p {
  margin-top: 16px;
}

.about-copy {
  color: var(--xm-muted);
  font-size: 1.04rem;
}

.about-copy h2,
.about-copy h3 {
  margin: 0 0 16px;
  color: var(--xm-navy);
  line-height: 1.18;
}

.about-copy p {
  margin: 0 0 24px;
}

.about-copy blockquote,
.about-copy .wp-block-quote {
  margin: 38px 0 0;
  padding: 30px;
  border: 1px solid var(--xm-line);
  border-left: 4px solid var(--xm-gold);
  background: #f7f8fa;
}

.about-copy blockquote p,
.about-copy .wp-block-quote p {
  margin-bottom: 16px;
  color: var(--xm-navy);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.about-copy cite,
.about-copy .wp-block-quote cite {
  color: var(--xm-gold);
  font-style: normal;
  font-weight: 800;
}

.urban-planning-content {
  background: var(--xm-white);
}

.urban-planning-flow {
  width: min(var(--xm-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 92px;
  display: grid;
  gap: 28px;
}

.urban-planning-flow > h2 {
  max-width: 780px;
  margin: 42px 0 0;
  color: var(--xm-black);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.08;
}

.urban-planning-flow > h3 {
  max-width: 760px;
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--xm-gold);
  color: var(--xm-navy);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.22;
}

.urban-planning-flow > h2:first-child {
  margin-top: 0;
}

.urban-planning-flow > h2::before {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--xm-gold);
}

.urban-planning-flow > p {
  max-width: 820px;
  margin: 0;
  color: var(--xm-muted);
  font-size: 1.04rem;
}

.urban-planning-flow > .wp-block-gallery {
  margin: 10px 0 42px;
  padding: 18px;
  border: 1px solid var(--xm-line);
  background: #f7f8fa;
}

.urban-planning-flow .wp-block-gallery.has-nested-images {
  align-items: stretch;
}

.urban-planning-flow .wp-block-gallery.has-nested-images figure.wp-block-image {
  flex-grow: 1;
}

.urban-planning-flow .wp-block-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
}

.urban-planning-flow > .wp-block-gallery:nth-of-type(even) {
  background: var(--xm-black);
  border-color: rgba(255, 255, 255, 0.12);
}

.urban-planning-flow > .wp-block-image {
  margin: 10px 0 42px;
}

.urban-planning-flow > .wp-block-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.real-estate-content {
  background: linear-gradient(180deg, var(--xm-white), #f7f8fa);
}

.real-estate-flow {
  width: min(var(--xm-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 96px;
  display: grid;
  gap: 26px;
}

.real-estate-flow > h2 {
  max-width: 820px;
  margin: 46px 0 0;
  color: var(--xm-black);
  font-size: clamp(1.85rem, 3.5vw, 3.1rem);
  line-height: 1.08;
}

.real-estate-flow > h3 {
  max-width: 780px;
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--xm-gold);
  color: var(--xm-navy);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.22;
}

.real-estate-flow > h2:first-child {
  margin-top: 0;
}

.real-estate-flow > h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 16px;
  background: var(--xm-gold);
}

.real-estate-flow > p {
  max-width: 860px;
  margin: 0;
  color: var(--xm-muted);
  font-size: 1.04rem;
}

.urban-planning-flow h2.wp-block-heading,
.urban-planning-flow h2,
.real-estate-flow h2.wp-block-heading,
.real-estate-flow h2 {
  max-width: 840px !important;
  margin: 48px 0 8px !important;
  padding: 0 !important;
  border-left: 0 !important;
  color: var(--xm-black) !important;
  font-size: clamp(1.95rem, 3.8vw, 3.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.06 !important;
}

.urban-planning-flow h2.wp-block-heading:first-child,
.urban-planning-flow h2:first-child,
.real-estate-flow h2.wp-block-heading:first-child,
.real-estate-flow h2:first-child {
  margin-top: 0 !important;
}

.urban-planning-flow h2.wp-block-heading::after,
.urban-planning-flow h2::after,
.real-estate-flow h2.wp-block-heading::after,
.real-estate-flow h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 16px;
  background: var(--xm-gold);
}

.urban-planning-flow h2.wp-block-heading::before,
.urban-planning-flow h2::before {
  display: none !important;
}

.urban-planning-flow h3.wp-block-heading,
.urban-planning-flow h3,
.real-estate-flow h3.wp-block-heading,
.real-estate-flow h3 {
  max-width: 800px !important;
  margin: 22px 0 0 !important;
  padding: 7px 0 7px 16px !important;
  border-left: 3px solid var(--xm-gold) !important;
  color: var(--xm-navy) !important;
  font-size: clamp(1.16rem, 1.8vw, 1.48rem) !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.urban-planning-flow h3.wp-block-heading::before,
.urban-planning-flow h3::before,
.urban-planning-flow h3.wp-block-heading::after,
.urban-planning-flow h3::after,
.real-estate-flow h3.wp-block-heading::before,
.real-estate-flow h3::before,
.real-estate-flow h3.wp-block-heading::after,
.real-estate-flow h3::after {
  content: none !important;
}

.real-estate-flow > .wp-block-gallery {
  margin: 12px 0 44px;
  padding: 20px;
  border: 1px solid rgba(13, 17, 23, 0.1);
  background: var(--xm-white);
  box-shadow: 0 18px 44px rgba(13, 17, 23, 0.1);
}

.real-estate-flow .wp-block-gallery.has-nested-images {
  align-items: stretch;
}

.real-estate-flow .wp-block-gallery.has-nested-images figure.wp-block-image {
  flex-grow: 1;
}

.real-estate-flow .wp-block-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.03);
}

.real-estate-flow > .wp-block-image {
  margin: 12px 0 44px;
  padding: 16px;
  background: var(--xm-white);
  box-shadow: 0 18px 44px rgba(13, 17, 23, 0.1);
}

.real-estate-flow > .wp-block-image img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.architectural-design-content {
  background: var(--xm-white);
}

.architectural-design-flow {
  width: min(var(--xm-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 96px;
  display: grid;
  gap: 26px;
}

.architectural-design-flow h2.wp-block-heading,
.architectural-design-flow h2 {
  max-width: 840px !important;
  margin: 48px 0 8px !important;
  color: var(--xm-black) !important;
  font-size: clamp(1.95rem, 3.8vw, 3.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.06 !important;
}

.architectural-design-flow h2:first-child {
  margin-top: 0 !important;
}

.architectural-design-flow h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 16px;
  background: var(--xm-gold);
}

.architectural-design-flow h3.wp-block-heading,
.architectural-design-flow h3 {
  max-width: 800px !important;
  margin: 22px 0 0 !important;
  padding: 7px 0 7px 16px !important;
  border-left: 3px solid var(--xm-gold) !important;
  color: var(--xm-navy) !important;
  font-size: clamp(1.16rem, 1.8vw, 1.48rem) !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.architectural-design-flow > p {
  max-width: 860px;
  margin: 0;
  color: var(--xm-muted);
  font-size: 1.04rem;
}

.architectural-design-flow ul,
.architectural-design-flow ol {
  width: 100%;
  max-width: none;
  margin: 12px 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  counter-reset: design-list;
}

.architectural-design-flow li {
  position: relative;
  min-height: 148px;
  padding: 30px 30px 30px 76px;
  border: 1px solid var(--xm-line);
  background: linear-gradient(135deg, #f7f8fa, var(--xm-white));
  color: var(--xm-navy);
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.45;
  box-shadow: 0 18px 38px rgba(13, 17, 23, 0.08);
}

.architectural-design-flow ul li::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 32px;
  width: 17px;
  height: 17px;
  border: 2px solid var(--xm-gold);
}

.architectural-design-flow ol li {
  counter-increment: design-list;
}

.architectural-design-flow ol li::before {
  content: counter(design-list, decimal-leading-zero);
  position: absolute;
  top: 31px;
  left: 30px;
  color: var(--xm-gold);
  font-size: 0.9rem;
  font-weight: 900;
}

.architectural-design-flow > .wp-block-gallery {
  margin: 12px 0 44px;
  padding: 18px;
  border: 1px solid var(--xm-line);
  background: linear-gradient(135deg, #f7f8fa, var(--xm-white));
}

.architectural-design-flow .wp-block-gallery.has-nested-images {
  align-items: stretch;
}

.architectural-design-flow .wp-block-gallery.has-nested-images figure.wp-block-image {
  flex-grow: 1;
}

.architectural-design-flow .wp-block-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

.architectural-design-flow > .wp-block-image {
  margin: 12px 0 44px;
  padding: 16px;
  background: #f7f8fa;
}

.architectural-design-flow > .wp-block-image img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.industry-content {
  background: linear-gradient(180deg, #f7f8fa, var(--xm-white));
}

.industry-flow {
  width: min(var(--xm-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 96px;
  display: grid;
  gap: 26px;
}

.industry-flow h2.wp-block-heading,
.industry-flow h2 {
  max-width: 860px !important;
  margin: 48px 0 8px !important;
  color: var(--xm-black) !important;
  font-size: clamp(1.95rem, 3.7vw, 3.15rem) !important;
  font-weight: 800 !important;
  line-height: 1.06 !important;
}

.industry-flow h2:first-child {
  margin-top: 0 !important;
}

.industry-flow h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 16px;
  background: var(--xm-gold);
}

.industry-flow h3.wp-block-heading,
.industry-flow h3 {
  max-width: 820px !important;
  margin: 22px 0 0 !important;
  padding: 8px 0 8px 18px !important;
  border-left: 3px solid var(--xm-gold) !important;
  color: var(--xm-navy) !important;
  font-size: clamp(1.16rem, 1.8vw, 1.5rem) !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.industry-flow > p {
  max-width: 880px;
  margin: 0;
  color: var(--xm-muted);
  font-size: 1.04rem;
}

.industry-flow ul,
.industry-flow ol {
  width: 100%;
  margin: 12px 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  counter-reset: industry-list;
}

.industry-flow li {
  position: relative;
  min-height: 112px;
  padding: 24px 24px 24px 68px;
  border: 1px solid rgba(13, 17, 23, 0.12);
  background: var(--xm-white);
  color: var(--xm-navy);
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(13, 17, 23, 0.08);
}

.industry-flow ul li::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 28px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--xm-gold);
  background: var(--xm-black);
}

.industry-flow ol li {
  counter-increment: industry-list;
}

.industry-flow ol li::before {
  content: counter(industry-list, decimal-leading-zero);
  position: absolute;
  top: 25px;
  left: 26px;
  color: var(--xm-gold);
  font-size: 0.86rem;
  font-weight: 900;
}

.industry-flow > .wp-block-gallery {
  margin: 12px 0 44px;
  padding: 18px;
  border: 1px solid rgba(13, 17, 23, 0.12);
  background: var(--xm-black);
}

.industry-flow .wp-block-gallery.has-nested-images {
  align-items: stretch;
}

.industry-flow .wp-block-gallery.has-nested-images figure.wp-block-image {
  flex-grow: 1;
}

.industry-flow .wp-block-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.industry-flow > .wp-block-image {
  margin: 12px 0 44px;
  padding: 16px;
  background: var(--xm-black);
}

.industry-flow > .wp-block-image img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.portfolio-content {
  background: linear-gradient(180deg, var(--xm-white), #f7f8fa);
}

.portfolio-shell {
  width: min(var(--xm-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 96px;
}

.portfolio-editor-content > * {
  margin-block-start: 0;
}

.portfolio-editor-content > * + * {
  margin-block-start: 32px;
}

.portfolio-editor-content .foogallery,
.portfolio-editor-content .foogallery-container {
  margin-top: 0;
}

.portfolio-editor-content .wp-block-shortcode {
  padding: 24px;
  border: 1px solid var(--xm-line);
  background: var(--xm-white);
}

@media (max-width: 1020px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-grid,
  .inquiry-layout,
  .footer-top,
  .about-layout,
  .service-sample-grid {
    grid-template-columns: 1fr;
  }

  .about-summary {
    position: static;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-link img,
  .footer-brand img {
    width: 156px;
  }

  .language-toggle,
  .menu-toggle {
    min-width: 40px;
    min-height: 40px;
  }

  .video-panel-content {
    padding-top: 118px;
  }

  .video-carousel-controls {
    right: 16px;
    bottom: 18px;
    left: 16px;
    justify-content: space-between;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
  }

  .video-dot {
    width: 26px;
  }

  .category-grid,
  .region-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: repeat(5, 44px);
  }

  .social-grid a {
    width: 44px;
    height: 44px;
  }

  .category-card {
    min-height: 280px;
  }

  .section {
    padding: 66px 0;
  }

  .urban-planning-flow {
    padding: 62px 0 72px;
  }

  .urban-planning-flow > .wp-block-gallery,
  .real-estate-flow > .wp-block-gallery,
  .architectural-design-flow > .wp-block-gallery {
    padding: 10px;
  }

  .real-estate-flow,
  .architectural-design-flow,
  .industry-flow {
    padding: 62px 0 74px;
  }

  .architectural-design-flow ul,
  .architectural-design-flow ol,
  .industry-flow ul,
  .industry-flow ol {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
