:root {
  --bg: #202022;
  --bg-deep: #1a1a1c;
  --panel: #1f1f22;
  --panel-left: #1e1e21;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.42);
  --text: #f7f4ee;
  --muted: rgba(247, 244, 238, 0.78);
  --warm: #d6b56d;
  --warm-rgb: 214, 181, 109;
  --page-pad-y: clamp(20px, 2.8vh, 34px);
  --page-pad-x: clamp(28px, 2.2vw, 44px);
  --layout-gap: clamp(18px, 1.3vw, 28px);
  --sidebar-width: clamp(360px, 22vw, 430px);
  --service-height: clamp(92px, 10vh, 118px);
  --topbar-height: 48px;
  --content-gap: clamp(10px, 1.1vh, 14px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, #242427 0%, var(--bg-deep) 100%);
  color: rgba(247, 244, 238, 0.8);
  font-family: "Arial", "Helvetica Neue", Helvetica, sans-serif;
}

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

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

.page-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: var(--layout-gap);
  width: 100%;
  height: 100vh;
  padding: var(--page-pad-y) var(--page-pad-x);
}

.sidebar {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: clamp(2px, 0.3vh, 6px) 2px 0 0;
  width: 100%;
  position: relative;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--page-pad-y));
  right: calc(-0.5 * var(--layout-gap));
  width: 1px;
  height: calc(100% + (2 * var(--page-pad-y)));
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-top,
.sidebar-mid {
  display: grid;
}

.sidebar-top {
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: start;
  column-gap: 55px;
  row-gap: 0;
}

.sidebar-mid {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: start;
}

.sidebar-bottom {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 5px;
  min-height: 0;
  height: 100%;
  padding-bottom: 0;
}

.brand-mark {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.sidebar-copy {
  padding-left: 0;
  padding-top: 1px;
}

.sidebar-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.18rem, 2.05vw, 2.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.eyebrow {
  margin: 6px 0 0;
  font-size: clamp(0.9rem, 0.95vw, 1.02rem);
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

.intro-card {
  display: grid;
  grid-template-columns: 2px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: px 0 0 2px;
}

.intro-card__line {
  width: 1px;
  min-height: 60px;
  background: rgba(var(--warm-rgb), 0.92);
  box-shadow: 0 0 0 1px rgba(var(--warm-rgb), 0.08);
}

.intro {
  max-width: 100%;
  margin: 0;
  color: rgba(247, 244, 238, 0.72);
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.intro--typing {
  position: relative;
}

.intro-sizer {
  display: block;
  visibility: hidden;
  user-select: none;
}

.intro-typed {
  position: absolute;
  inset: 0;
  display: block;
  white-space: normal;
}

.intro-cursor {
  display: inline-block;
  width: 1px;
  height: 0.92em;
  margin-left: 2px;
  vertical-align: -0.08em;
  background: currentColor;
  opacity: 0.7;
  animation: intro-caret-blink 1.15s steps(1, end) infinite;
}

@keyframes intro-caret-blink {
  0%, 44% {
    opacity: 0.72;
  }

  45%, 100% {
    opacity: 0.18;
  }
}

@keyframes intro-tablet-drift {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(3px);
  }
}

@keyframes cta-soft-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.085);
  }
}

@keyframes stat-opacity-pulse {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.stats-card {
  width: 100%;
  max-width: 100%;
  background: var(--panel-left);
  display: grid;
  gap: 0;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

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

.stat-item {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 9px;
  padding: 4px 14px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  width: 1px;
  height: calc(100% - 16px);
  background: rgba(255, 255, 255, 0.1);
}

.stat-item strong,
.stat-item span {
  display: block;
}

.stat-item strong {
  font-size: clamp(0.8075rem, 0.8925vw, 0.918rem);
  line-height: 1.05;
  font-weight: 700;
  animation: stat-opacity-pulse 2.4s ease-in-out infinite;
}

.stat-item:nth-child(2) strong {
  animation-delay: 0.25s;
}

.stat-item:nth-child(3) strong {
  animation-delay: 0.5s;
}

.stat-item span {
  margin-top: 6px;
  color: rgba(247, 244, 238, 0.5);
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 500;
}

.stat-item:nth-child(1) span {
  transform: translateY(8px); /* Years Experience */
}

.stat-item:nth-child(2) span {
  transform: translateY(8px); /* Projects Completed */
}

.stat-item:nth-child(3) span {
  transform: translateY(0px); /* Global Standards */
}

.stat-icon {
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.5);
}

.stat-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.divider {
  display: none;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 36px;
  padding: 0 16px;
  background: var(--panel-left);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.contact-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  line-height: 1.1;
  font-weight: 500;
  color: rgba(247, 244, 238, 0.5);
  white-space: nowrap;
}

.contact-strip__divider {
  width: 1px;
  height: 24px;
  margin: 0 18px;
  background: rgba(255, 255, 255, 0.14);
}

.contact-strip.has-phone {
  padding-right: 8px;
  padding-left: 8px;
}

.contact-strip.has-phone .contact-strip__item {
  font-size: 0.62rem;
}

.contact-strip.has-phone .contact-strip__divider {
  margin-right: 7px;
  margin-left: 7px;
}

.contact-strip__item[hidden],
.contact-strip__divider[hidden],
.socials a[hidden] {
  display: none !important;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(244, 241, 234, 0.72);
  color: rgba(244, 241, 234, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
}

.context-card {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #1e1e21;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.context-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--warm);
  font-size: 0.6rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.context-card__header > span:first-child {
  color: rgba(247, 244, 238, 0.8);
}

.context-card__dash {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(var(--warm-rgb), 0.85);
}

.context-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: auto 0;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #050505;
}

.context-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46));
}

.context-card__media--youtube::after {
  content: none;
}

.context-card__media img,
.context-card__media video,
.context-card__video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  background: #050505;
}

.context-card__video {
  border: 0;
}

.context-card__youtube-fallback {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  color: rgba(247, 244, 238, 0.72);
  font-size: 0.58rem;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 160ms ease, color 160ms ease;
}

.context-card__youtube-fallback:hover,
.context-card__youtube-fallback:focus-visible {
  color: var(--warm);
  opacity: 1;
  outline: none;
}

.context-card__youtube-fallback img {
  display: none;
}

.context-card__media--fallback .context-card__youtube-fallback {
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(247, 244, 238, 0.96);
  font-size: 0.72rem;
  opacity: 1;
  overflow: hidden;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.context-card__media--fallback .context-card__youtube-fallback img {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02) brightness(0.48);
}

.context-card__media--fallback .context-card__youtube-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.28);
}

.context-card__media img {
  filter: grayscale(1) contrast(1.02) brightness(0.75);
}

.context-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1.5px solid rgba(var(--warm-rgb), 0.92);
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.28);
  color: var(--warm);
  transform: translate(-50%, -50%);
}

.context-card__play svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.context-card__time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(15, 15, 18, 0.75);
  color: rgba(247, 244, 238, 0.5);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 500;
}

.context-card__copy {
  margin: 0;
  color: rgba(247, 244, 238, 0.88);
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 500;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 10px;
  align-items: center;
  justify-content: center;
  align-content: center;
  padding: 10px 18px 10px;
  min-height: 97px;
  background: rgba(20, 20, 22, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin:0;
  flex: 0 0 auto;
}

.socials a {
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: rgba(180, 180, 180, 0.9);
    transform-origin: center;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
  }

.socials a:hover,
.socials a:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.68);
  transform: scale(1.14);
  outline: none;
}
  
.socials svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials [aria-label="Facebook"] svg,
.socials [aria-label="LinkedIn"] svg {
    width: 19px;
    height: 19px;
  }
  
.socials [aria-label="YouTube"] svg {
    width: 19px;
    height: 19px;
  }

.socials [aria-label="Instagram"] svg {
  fill: none;
}

.socials [aria-label="X"] svg {
  fill: none;
  width: 15.4px;
  height: 15.4px;
}

.socials [aria-label="X"] .x-icon__stroke--heavy {
  stroke-width: 4.7;
}

.socials [aria-label="X"] .x-icon__stroke--light {
  stroke-width: 2.7;
}

.socials [aria-label="More"] svg {
    width: 12.5px;
    height: 12.5px;
  }

.socials [aria-label="More"] circle {
  fill: currentColor;
  stroke: none;
}

.socials .cutout {
  fill: var(--bg);
  stroke: none;
}

.sidebar-meta {
  flex: 0 0 100%;
  margin: 0;
  color: rgba(247, 244, 238, 0.5);
  font-size: 0.56rem;
  line-height: 1.35;
  font-weight: 500;
  text-align: center;
}

.cta-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 16px;
  margin: 0;
  max-width: 100%;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #1e1e21;
  flex: 0 0 auto;
}

.cta-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(247, 244, 238, 0.42);
  color: rgba(247, 244, 238, 0.58);
}

.cta-card__icon svg {
  width: 22.4px;
  height: 22.4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-card__content h3,
.cta-card__content p {
  margin: 0;
}

.cta-card__content h3 {
  font-size: 0.75rem;
  line-height: 1.1;
  font-weight: 700;
}

.cta-card__content p {
  margin-top: 4px;
  color: rgba(247, 244, 238, 0.72);
  font-size: 0.7rem;
  line-height: 1.3;
  font-weight: 500;
}

.cta-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 148px;
  height: 40px;
  margin-top: 14px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: var(--warm);
  font-size: 0.75rem;
  font-weight: 600;
  transform-origin: center;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
  animation: cta-soft-pulse 2.8s ease-in-out infinite;
}

.cta-card__button:hover,
.cta-card__button:focus-visible {
  animation: none;
  transform: scale(1.14);
  border-color: rgba(255, 255, 255, 0.68);
  outline: none;
}

.cta-card__button::after {
  content: "\2192";
  color: var(--warm);
  font-size: 1rem;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cta-card__button {
    animation: none;
  }
}

.content {
  display: grid;
  grid-template-rows: auto auto minmax(var(--service-height), 1fr);
  gap: var(--content-gap);
  min-height: 0;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: var(--topbar-height);
  padding: 0 4px 0 0;
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(max-content, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(12px, 1.4vw, 28px);
  width: 96%;
  margin-left: 26px;
}

.main-nav a {
  display: inline-block;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.801rem;
  line-height: 1;
  font-weight: 700;
  transform-origin: center;
  transition: transform 180ms ease, color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  transform: scale(1.14);
  outline: none;
}

.main-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 132px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  color: rgba(247, 244, 238, 0.96);
}

.main-nav__cta::after {
  content: "\2192";
  color: var(--warm);
  font-size: 0.98rem;
  line-height: 1;
}

.language-switch {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.language-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 23px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 555px;
  color: var(--text);
  font-size: 0.54rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.03em;
  transform-origin: center;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.language-pill.is-active {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.language-pill:hover,
.language-pill:focus-visible {
  transform: scale(1.14);
  border-color: rgba(255, 255, 255, 0.68);
  outline: none;
}

.main-nav a.is-active {
  color: var(--warm);
}

.hero-panel {
  position: relative;
  width: 100%;
  min-height: 0;
  height: min(
    1000px,
    calc(100vh - (2 * var(--page-pad-y)) - var(--topbar-height) - (2 * var(--content-gap)) - 18px)
  );
  max-height: 100%;
  overflow: hidden;
  background: var(--panel);
  align-self: start;
  --hero-copy-opacity: 0;
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transform-origin: center;
}

.hero-reveal-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  pointer-events: none;
  text-align: center;
  opacity: var(--hero-copy-opacity);
  transform: translateY(calc((1 - var(--hero-copy-opacity)) * 16px));
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero-reveal-copy p,
.hero-reveal-copy span {
  margin: 0;
  color: var(--text);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.62);
}

.hero-reveal-copy p {
  font-size: clamp(1.12rem, 2.38vw, 2.8rem);
  line-height: 1;
  font-weight: 800;
}

.hero-reveal-copy span {
  font-size: clamp(0.9rem, 1.2vw, 1.35rem);
  line-height: 1.25;
  font-weight: 500;
}

.hero-panel.is-work {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 160, 160, 0.58) rgba(255, 255, 255, 0.08);
}

.hero-panel.is-work::-webkit-scrollbar {
  width: 8px;
}

.hero-panel.is-work::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel.is-work::-webkit-scrollbar-thumb {
  background: rgba(160, 160, 160, 0.58);
}

.hero-panel.is-work img {
  height: auto;
  transform: none;
  transform-origin: center;
}

.hero-panel.is-contact-estimator img,
.estimate-map img {
  width: auto;
  height: auto;
  max-width: none;
  object-fit: initial;
  transform: none;
}

.panel-scroll-top {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--warm-rgb), 0.72);
  border-radius: 50%;
  background: rgba(18, 18, 20, 0.72);
  color: var(--warm);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

.panel-scroll-top[hidden] {
  display: none;
}

.panel-scroll-top:hover,
.panel-scroll-top:focus-visible {
  background: rgba(var(--warm-rgb), 0.14);
  border-color: rgba(var(--warm-rgb), 0.95);
  outline: none;
}

.panel-scroll-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-gallery {
  column-count: 3;
  column-gap: 1px;
  min-height: 100%;
  padding: 1px;
  background: #161618;
}

.work-gallery__header {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #161618;
}

.work-gallery__header p {
  margin: 0;
  color: rgba(247, 244, 238, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}

.work-gallery__empty {
  display: inline-block;
  margin: 16px;
  color: rgba(247, 244, 238, 0.72);
  font-size: 0.9rem;
}

.work-tile {
  display: block;
  width: 100%;
  margin: 0 0 1px;
  padding: 0;
  break-inside: avoid;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}

.work-tile img {
  width: 100%;
  min-height: 150px;
  object-fit: contain;
  opacity: 1;
  background: #101113;
  transition: opacity 180ms ease, transform 220ms ease;
}

.work-tile:hover img,
.work-tile:focus-visible img {
  opacity: 1;
  transform: scale(1.025);
}

.work-tile:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: -2px;
}

.work-detail {
  display: grid;
  gap: clamp(16px, 1.8vw, 24px);
  min-height: 100%;
  padding: clamp(16px, 2vw, 28px);
  background: #18181a;
}

.work-detail__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.content-article__header {
  grid-template-columns: 1fr;
}

.work-back {
  min-width: 68px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.work-back:hover,
.work-back:focus-visible {
  border-color: rgba(var(--warm-rgb), 0.8);
  color: var(--warm);
  outline: none;
}

.work-detail__eyebrow {
  margin: 0 0 4px;
  color: var(--warm);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-detail h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 2.4vw, 2.6rem);
  line-height: 1;
}

.work-detail__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  max-width: 820px;
}

.work-detail__meta-item {
  margin: 0;
  color: rgba(247, 244, 238, 0.82);
  font-size: 0.84rem;
  line-height: 1.45;
}

.work-detail__meta-item span,
.work-detail__meta-item strong {
  display: inline;
}

.work-detail__meta-item strong {
  color: var(--text);
  font-size: inherit;
  font-weight: 700;
}

.work-detail__meta-item span {
  color: rgba(247, 244, 238, 0.82);
}

.work-detail__description,
.work-detail__section p,
.work-detail__subsection ul,
.work-awards {
  max-width: 760px;
  margin: 0;
  color: rgba(247, 244, 238, 0.76);
  font-size: 0.9rem;
  line-height: 1.55;
}

.work-detail__section {
  display: grid;
  gap: 10px;
}

.work-detail__section h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.2;
}

.work-detail__article {
  --article-default-text-size: 0.9rem;
  --article-small-text-size: 0.7875rem;
  --article-large-text-size: 1.125rem;
  --article-text-background-clear: var(--bg);
  display: flow-root;
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(247, 244, 238, 0.8);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
}

.work-detail__article [data-text-color="default"] { color: var(--text); }
.work-detail__article [data-text-color="white"] { color: #f3f1ec; }
.work-detail__article [data-text-color="gold"] { color: #d6b56d; }
.work-detail__article [data-text-color="muted"] { color: #a9a6a0; }
.work-detail__article [data-text-color="light-gray"] { color: #d5d2cb; }
.work-detail__article [data-text-color="black"] { color: #050505; }
.work-detail__article [data-text-color="custom"] { color: var(--article-text-color, inherit); }
.work-detail__article [data-text-background] { padding: 0 0.08em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.work-detail__article [data-text-background="default"] { background-color: var(--article-text-background-clear, var(--bg)); }
.work-detail__article [data-text-background="white"] { background-color: #f3f1ec; }
.work-detail__article [data-text-background="gold"] { background-color: #d6b56d; }
.work-detail__article [data-text-background="muted"] { background-color: #a9a6a0; }
.work-detail__article [data-text-background="light-gray"] { background-color: #d5d2cb; }
.work-detail__article [data-text-background="black"] { background-color: #050505; }
.work-detail__article [data-text-background="custom"] { background-color: var(--article-text-background, transparent); }
.work-detail__article [data-text-size="small"] { font-size: var(--article-small-text-size); }
.work-detail__article [data-text-size="default"] { font-size: var(--article-default-text-size); }
.work-detail__article [data-text-size="large"] { font-size: var(--article-large-text-size); }
.work-detail__article [data-text-size="custom"] { font-size: var(--article-text-size, inherit); }
.work-detail__article [data-text-font="noto-sans-jp"],
.work-detail__article [data-text-font="yu-gothic-body"],
.work-detail__article [data-text-font="yu-gothic-light"] { font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif; }
.work-detail__article [data-text-font="noto-serif-jp"] { font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, serif; }
.work-detail__article [data-text-font="hiragino-sans"] { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "Yu Gothic", YuGothic, sans-serif; }
.work-detail__article [data-text-font="hiragino-mincho"] { font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, "MS Mincho", serif; }
.work-detail__article [data-text-font="meiryo"] { font-family: Meiryo, "メイリオ", "Noto Sans JP", sans-serif; }
.work-detail__article [data-text-font="arial"] { font-family: Arial, Helvetica, sans-serif; }
.work-detail__article [data-text-font="times-new-roman"] { font-family: "Times New Roman", Times, serif; }
.work-detail__article [data-text-align="left"] { text-align: left; }
.work-detail__article [data-text-align="center"] { text-align: center; }
.work-detail__article [data-text-align="right"] { text-align: right; }
.work-detail__article [data-text-align="distributed"] { text-align: justify; text-align-last: justify; }

.work-detail__article table {
  width: 100%;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
}

.work-detail__article th,
.work-detail__article td {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

.work-detail__article th:last-child,
.work-detail__article td:last-child {
  border-right: 0;
}

.work-detail__article tr:last-child th,
.work-detail__article tr:last-child td {
  border-bottom: 0;
}

.work-detail__article th {
  color: rgba(247, 244, 238, 0.62);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-detail__article figure[data-block="image"] {
  width: auto;
  max-width: 100%;
  margin: 18px 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  clear: both;
}

.work-detail__article figure[data-block="image"][data-layout="contained"] {
  max-width: min(960px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.work-detail__article figure[data-block="image"][data-width="50%"] { width: 50%; }
.work-detail__article figure[data-block="image"][data-width="80%"] { width: 80%; }
.work-detail__article figure[data-block="image"][data-width="100%"],
.work-detail__article figure[data-block="image"][data-layout="full-width"] { width: 100%; }
.work-detail__article figure[data-block="image"][data-width="custom"] {
  width: var(--article-image-width, 100%);
  max-width: 100%;
}

.work-detail__article figure[data-block="image"][data-layout="align-center"] {
  margin-right: auto;
  margin-left: auto;
}

.work-detail__article figure[data-block="image"][data-layout="align-left"],
.work-detail__article figure[data-block="image"][data-layout="image-left"] {
  margin-right: 18px;
  margin-left: 0;
  float: left;
  clear: left;
}

.work-detail__article figure[data-block="image"][data-layout="align-right"],
.work-detail__article figure[data-block="image"][data-layout="image-right"] {
  margin-right: 0;
  margin-left: 18px;
  float: right;
  clear: right;
}

.work-detail__article figure[data-block="image"][data-spacing="small"] { margin-top: 8px; margin-bottom: 8px; }
.work-detail__article figure[data-block="image"][data-spacing="medium"] { margin-top: 24px; margin-bottom: 24px; }
.work-detail__article figure[data-block="image"][data-spacing="large"] { margin-top: 40px; margin-bottom: 40px; }

.work-detail__article figure[data-block="image"] img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  object-position: var(--article-image-position, center center);
}

.work-detail__article figcaption {
  margin-top: 8px;
  color: rgba(247, 244, 238, 0.62);
  font-size: 0.76rem;
}

@media (max-width: 680px) {
  .work-detail__article figure[data-block="image"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    float: none !important;
  }
}

.work-detail__subsection {
  display: grid;
  gap: 6px;
  max-width: 760px;
}

.work-detail__subsection h4 {
  margin: 4px 0 0;
  color: var(--warm);
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.work-detail__subsection ul {
  display: grid;
  gap: 4px;
  padding-left: 16px;
}

.work-detail__subsection li::marker {
  color: var(--warm);
}

.content-timeline {
  display: grid;
  gap: 1px;
  max-width: 860px;
}

.content-timeline__item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.content-timeline__item span {
  color: var(--warm);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.content-timeline__item h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 0.95rem;
}

.content-timeline__item p {
  margin: 0;
  color: rgba(247, 244, 238, 0.76);
  font-size: 0.9rem;
  line-height: 1.55;
}

.work-awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  padding-left: 18px;
}

.work-detail__images {
  display: grid;
  gap: 1px;
}

.work-detail__images img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.work-detail__cover-image {
  margin: 0;
}

.work-detail__cover-image figcaption {
  padding: 8px 0 0;
  color: rgba(247, 244, 238, 0.62);
  font-size: 0.78rem;
}

.work-detail__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
}

.work-detail__images img[data-lightbox-image],
.work-detail__article img[data-lightbox-image] {
  cursor: zoom-in;
}

.work-detail__panoramas {
  display: grid;
  gap: 14px;
}

.panorama-block {
  display: grid;
  gap: 8px;
}

.panorama-block__header {
  display: grid;
  gap: 4px;
}

.panorama-block__header h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.2;
}

.panorama-viewer {
  position: relative;
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111113;
}

.panorama-viewer__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  padding: 18px;
  color: rgba(247, 244, 238, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.panorama-localhost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(247, 244, 238, 0.34);
  background: rgba(247, 244, 238, 0.08);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.panorama-localhost-link:hover,
.panorama-localhost-link:focus-visible {
  border-color: rgba(247, 244, 238, 0.68);
  background: rgba(247, 244, 238, 0.14);
  outline: none;
}

.panorama-block__note {
  max-width: 760px;
  margin: 0;
  color: rgba(247, 244, 238, 0.58);
  font-size: 0.72rem;
  line-height: 1.45;
}

.panorama-viewer .pnlm-container {
  background: #111113;
  font-family: inherit;
}

.panorama-viewer .pnlm-load-box,
.panorama-viewer .pnlm-info-box {
  background: rgba(22, 22, 24, 0.86);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.panorama-viewer .pnlm-controls-container .pnlm-controls {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(22, 22, 24, 0.86);
}

.panorama-viewer .pnlm-zoom-controls {
  left: auto;
  right: 12px;
  top: 54px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(22, 22, 24, 0.86);
}

.panorama-viewer .pnlm-fullscreen-toggle-button {
  display: none;
}

.panorama-fullscreen-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(247, 244, 238, 0.32);
  background: rgba(22, 22, 24, 0.86);
  color: rgba(247, 244, 238, 0.92);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.panorama-fullscreen-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panorama-fullscreen-button:hover,
.panorama-fullscreen-button:focus-visible {
  background: rgba(247, 244, 238, 0.12);
  border-color: rgba(247, 244, 238, 0.62);
  color: var(--text);
  outline: none;
  transform: scale(1.04);
}

.hero-panel.is-viewer360 {
  overflow: hidden;
}

.viewer360-tool {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: clamp(10px, 1.1vw, 16px);
  height: 100%;
  min-height: 0;
  padding: clamp(14px, 1.8vw, 28px);
  background: #1e1e21;
  overflow: hidden;
  --viewer360-reserved-height: clamp(150px, 12vw, 190px);
}

.viewer360-tool__header {
  display: grid;
  gap: 6px;
  max-width: 760px;
}

.viewer360-tool__header h2,
.viewer360-tool__header p {
  margin: 0;
}

.viewer360-tool__header h2 {
  color: var(--text);
  font-size: clamp(1.55rem, 2.5vw, 2.8rem);
  line-height: 1;
  font-weight: 800;
}

.viewer360-tool__header p:not(.work-detail__eyebrow) {
  color: rgba(247, 244, 238, 0.76);
  font-size: 0.82rem;
  line-height: 1.35;
}

.viewer360-tool__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.viewer360-file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(247, 244, 238, 0.28);
  background: rgba(247, 244, 238, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.viewer360-file-button:hover,
.viewer360-file-button:focus-within {
  background: rgba(247, 244, 238, 0.14);
  border-color: rgba(247, 244, 238, 0.58);
  transform: scale(1.03);
}

.viewer360-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.viewer360-tool__controls p {
  margin: 0;
  color: rgba(247, 244, 238, 0.62);
  font-size: 0.78rem;
}

.viewer360-tool__controls .viewer360-ratio-label {
  margin-left: auto;
  color: rgba(247, 244, 238, 0.46);
}

.viewer360-tool__controls p.is-warning {
  color: #f0b86a;
}

.viewer360-tool__viewer {
  box-sizing: border-box;
  min-height: 0;
  justify-self: center;
  width: 100%;
  max-width: 1180px;
  height: auto;
  aspect-ratio: 2 / 1;
}

.tile-map-placeholder {
  display: grid;
  place-items: center;
  width: min(100%, 1180px);
  aspect-ratio: 2 / 1;
  justify-self: center;
  border: 1px solid rgba(247, 244, 238, 0.14);
  background:
    linear-gradient(rgba(247, 244, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 238, 0.06) 1px, transparent 1px),
    #111113;
  background-size: 48px 48px;
  color: rgba(247, 244, 238, 0.72);
  font-size: clamp(1.4rem, 2.2vw, 2.4rem);
  font-weight: 800;
}

.hero-panel.is-texture-tool {
  overflow: auto;
}

.texture-tool {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: clamp(14px, 1.8vw, 28px);
  background: #1e1e21;
}

.texture-tool--empty {
  padding: 0;
  background: #161619;
}

.texture-tool__header {
  display: grid;
  gap: 6px;
  max-width: 840px;
}

.texture-tool__header h2,
.texture-tool__header p {
  margin: 0;
}

.texture-tool__header h2 {
  color: var(--text);
  font-size: clamp(1.45rem, 2.4vw, 2.7rem);
  line-height: 1;
  font-weight: 800;
}

.texture-tool__header p:not(.work-detail__eyebrow) {
  color: rgba(247, 244, 238, 0.76);
  font-size: 0.82rem;
  line-height: 1.35;
}

.texture-tool__steps,
.texture-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
}

.texture-tool__steps span {
  padding: 5px 8px;
  border: 1px solid rgba(247, 244, 238, 0.12);
  color: rgba(247, 244, 238, 0.62);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.texture-mode-tabs {
  width: min(100%, 760px);
}

.texture-mode-tabs button {
  flex: 1 1 180px;
  min-height: 38px;
  border: 1px solid rgba(247, 244, 238, 0.18);
  background: rgba(247, 244, 238, 0.04);
  color: rgba(247, 244, 238, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.texture-mode-tabs button.is-active {
  border-color: rgba(247, 244, 238, 0.48);
  background: rgba(247, 244, 238, 0.12);
  color: var(--text);
}

.texture-tool__layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}

.texture-tool__panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(247, 244, 238, 0.12);
  background: rgba(17, 17, 19, 0.62);
}

.texture-file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(247, 244, 238, 0.28);
  background: rgba(247, 244, 238, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.texture-file-button:hover,
.texture-file-button:focus-within {
  background: rgba(247, 244, 238, 0.14);
  border-color: rgba(247, 244, 238, 0.58);
  transform: scale(1.03);
}

.texture-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.texture-tool__status {
  margin: 0;
  color: rgba(247, 244, 238, 0.62);
  font-size: 0.75rem;
  line-height: 1.35;
}

.texture-tool__status.is-warning {
  color: #f0b86a;
}

.texture-source-preview {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(247, 244, 238, 0.12);
  background: rgba(247, 244, 238, 0.04);
}

.texture-source-preview img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  background: #111113;
  border: 1px solid rgba(247, 244, 238, 0.08);
}

.texture-source-preview dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.texture-source-preview div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  align-items: baseline;
}

.texture-source-preview dt,
.texture-source-preview dd {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.25;
}

.texture-source-preview dt {
  color: var(--warm);
  font-weight: 800;
  text-transform: uppercase;
}

.texture-source-preview dd {
  color: rgba(247, 244, 238, 0.74);
}

.texture-tool__mode-copy {
  padding: 10px;
  border: 1px solid rgba(247, 244, 238, 0.1);
  background: rgba(247, 244, 238, 0.04);
  color: rgba(247, 244, 238, 0.68);
  font-size: 0.72rem;
  line-height: 1.4;
}

.texture-tool__hint {
  margin: -2px 0 0;
  color: rgba(247, 244, 238, 0.58);
  font-size: 0.66rem;
  line-height: 1.35;
}

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

.texture-field-grid label,
.texture-check {
  display: grid;
  gap: 5px;
  color: var(--warm);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.texture-field-grid input,
.texture-field-grid select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(247, 244, 238, 0.18);
  background: #242427;
  color: var(--text);
  padding: 0 9px;
  font: inherit;
}

.texture-field-grid input[type="color"] {
  padding: 3px;
}

.texture-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: rgba(247, 244, 238, 0.82);
  text-transform: none;
  letter-spacing: 0;
}

.texture-check input {
  width: 16px;
  height: 16px;
  accent-color: rgba(247, 244, 238, 0.72);
}

.texture-tool__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.texture-tool__actions button {
  min-height: 38px;
  border: 1px solid rgba(247, 244, 238, 0.24);
  background: rgba(247, 244, 238, 0.08);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.texture-tool__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.texture-preview {
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(360px, 56vh, 640px);
  padding: 12px;
  border: 1px solid rgba(247, 244, 238, 0.12);
  background: rgba(17, 17, 19, 0.62);
  overflow: hidden;
}

.texture-preview.is-sketchup {
  padding: 0;
  border-color: rgba(247, 244, 238, 0.08);
  background: #111113;
}

.texture-preview canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border: 1px solid rgba(247, 244, 238, 0.1);
  background: #111113;
}

.texture-preview canvas[hidden],
.texture-variant-grid[hidden] {
  display: none !important;
}

.texture-preview.is-sketchup canvas {
  border: 0;
}

.texture-variant-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 12px;
  width: 100%;
  max-height: 100%;
  overflow: auto;
}

.texture-variant-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(247, 244, 238, 0.12);
  background: rgba(247, 244, 238, 0.04);
}

.texture-variant-card img {
  width: 100%;
  object-fit: contain;
  background: #111113;
  border: 1px solid rgba(247, 244, 238, 0.08);
}

.texture-variant-card {
  min-width: 0;
}

.texture-variant-card > div,
.texture-variant-card > label,
.texture-variant-card > button {
  grid-column: 2;
}

.texture-variant-card img {
  grid-column: 1;
  grid-row: 1 / span 5;
}

.texture-variant-card strong,
.texture-variant-card span {
  display: block;
}

.texture-variant-card strong {
  color: var(--text);
  font-size: 0.68rem;
}

.texture-variant-card span,
.texture-variant-card label {
  color: rgba(247, 244, 238, 0.64);
  font-size: 0.66rem;
}

.texture-variant-card button {
  min-height: 30px;
  border: 1px solid rgba(247, 244, 238, 0.16);
  background: rgba(247, 244, 238, 0.06);
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 800;
}

.texture-admin {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: clamp(14px, 1.8vw, 28px);
  background: #1e1e21;
}

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

.texture-admin-card,
.texture-admin__settings section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(247, 244, 238, 0.12);
  background: rgba(17, 17, 19, 0.62);
}

.texture-admin-card span,
.texture-admin__settings h3 {
  color: var(--warm);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.texture-admin-card strong {
  color: var(--text);
  font-size: 1rem;
}

.texture-admin-card p,
.texture-admin__settings,
.texture-admin__settings dd,
.texture-admin__settings li {
  color: rgba(247, 244, 238, 0.68);
  font-size: 0.76rem;
  line-height: 1.45;
}

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

.texture-admin__settings dl,
.texture-admin__settings ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.texture-admin__settings li {
  list-style: none;
}

.texture-admin__settings dt {
  color: var(--text);
  font-weight: 800;
}

.panorama-viewer .av8-panorama-hotspot {
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  border: 1px solid rgba(247, 244, 238, 0.76);
  border-radius: 50%;
  background: rgba(22, 22, 24, 0.78);
  box-shadow: 0 0 0 6px rgba(247, 244, 238, 0.08), 0 8px 22px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.panorama-viewer .av8-panorama-hotspot::before,
.panorama-viewer .av8-panorama-hotspot::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.panorama-viewer .av8-panorama-hotspot::before {
  width: 7px;
  height: 7px;
  background: var(--text);
}

.panorama-viewer .av8-panorama-hotspot::after {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(247, 244, 238, 0.28);
  animation: panorama-hotspot-pulse 1.8s ease-out infinite;
}

.panorama-viewer .av8-panorama-hotspot:hover,
.panorama-viewer .av8-panorama-hotspot:focus-visible {
  background: rgba(247, 244, 238, 0.12);
  border-color: rgba(247, 244, 238, 0.95);
}

@keyframes panorama-hotspot-pulse {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.9);
  }
}

.hero-panel.is-services-article {
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 160, 160, 0.58) rgba(255, 255, 255, 0.08);
}

.services-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  align-items: start;
  gap: 1px;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.05);
}

.services-article-layout__main,
.services-article-reveal {
  min-width: 0;
  background: #1e1e21;
}

.services-article-layout__main .work-detail {
  max-width: none;
}

.services-article-reveal {
  position: sticky;
  top: 0;
  align-self: start;
  height: min(
    1000px,
    calc(100vh - (2 * var(--page-pad-y)) - var(--topbar-height) - (2 * var(--content-gap)) - 18px)
  );
}

.services-article-reveal__inner {
  position: relative;
  display: grid;
  place-content: center;
  min-height: 100%;
  height: 100%;
  padding: clamp(18px, 2vw, 34px);
  opacity: var(--services-title-opacity, 0);
  transform: translateY(calc((1 - var(--services-title-opacity, 0)) * 18px));
  transition: opacity 180ms ease, transform 180ms ease;
}

.services-article-reveal__item {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.services-article-reveal__item.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.services-article-reveal__item p {
  margin: 0;
  color: var(--service-side-color, var(--text));
  font-size: var(--service-side-font-size, clamp(1.25rem, 2.2vw, 3.2rem));
  line-height: 0.95;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.48);
}

.services-article-reveal__item[data-text-orientation="vertical"] {
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
}

.services-article-reveal__item[data-text-orientation="vertical"] p {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.06em;
  line-height: 1.12;
}

@media (max-width: 1180px) {
  .services-article-layout {
    grid-template-columns: 1fr;
  }

  .services-article-reveal {
    order: -1;
    position: relative;
    height: auto;
  }

  .services-article-reveal__inner {
    position: relative;
    height: auto;
    min-height: 220px;
  }
}

.has-image-lightbox {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(18, 18, 20, 0.96);
}

.image-lightbox__infobar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  min-width: 56px;
  height: 44px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  color: rgba(247, 244, 238, 0.78);
  font-size: 0.72rem;
  line-height: 1;
  background: rgba(20, 20, 22, 0.78);
}

.image-lightbox__toolbar {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 1px;
  background: rgba(8, 8, 10, 0.88);
  transform: translateX(-50%);
}

.image-lightbox__toolbar button {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(36, 36, 39, 0.96);
  color: rgba(247, 244, 238, 0.82);
  font: inherit;
  font-size: 0.945rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__toolbar button:hover,
.image-lightbox__toolbar button:focus-visible {
  background: rgba(48, 48, 52, 0.98);
  color: var(--warm);
  outline: none;
}

.image-lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 78px;
  height: 114px;
  border: 0;
  background: rgba(20, 20, 22, 0.34);
  color: rgba(247, 244, 238, 0.72);
  font-size: 3.375rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.image-lightbox__arrow--prev {
  left: 0;
}

.image-lightbox__arrow--next {
  right: 0;
}

.image-lightbox__arrow:hover,
.image-lightbox__arrow:focus-visible {
  background: rgba(20, 20, 22, 0.58);
  color: var(--warm);
  outline: none;
}

.image-lightbox__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 54px 62px;
}

.image-lightbox__stage img {
  display: block;
  max-width: calc(100vw - 124px);
  max-height: calc(100vh - 108px);
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 180ms ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  user-select: none;
  touch-action: none;
}

.image-lightbox.is-zoomed .image-lightbox__stage img {
  cursor: grab;
}

.image-lightbox.is-zoomed .image-lightbox__stage img:active {
  cursor: grabbing;
}

.image-lightbox.is-panning,
.image-lightbox.is-panning .image-lightbox__stage img {
  cursor: grabbing;
}

.estimate-tool {
  display: grid;
  grid-template-columns: minmax(280px, 35%) minmax(0, 1fr);
  gap: 1px;
  min-height: 100%;
  background: #141416;
}

.estimate-panel,
.estimate-map-panel {
  min-width: 0;
  min-height: 0;
}

.estimate-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 8px clamp(16px, 1.7vw, 24px) clamp(16px, 1.7vw, 24px);
  overflow-y: auto;
  background: #1b1b1e;
}

.estimate-panel__header {
  display: grid;
  gap: 2px;
}

.estimate-panel__header h2 {
  margin: 0;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.estimate-panel__header p:last-child {
  margin: 0;
  color: rgba(247, 244, 238, 0.68);
  font-size: 0.82rem;
  line-height: 1.2;
}

.estimate-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0 4px;
}

.estimate-mode-tabs button {
  appearance: none;
  min-width: 0;
  padding: 8px 10px 7px;
  border: 1px solid rgba(var(--warm-rgb), 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(247, 244, 238, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  cursor: pointer;
}

.estimate-mode-tabs button.is-active {
  background: rgba(var(--warm-rgb), 0.22);
  border-color: rgba(var(--warm-rgb), 0.85);
  color: var(--warm);
}

.estimate-mode-tabs button:hover,
.estimate-mode-tabs button:focus-visible {
  color: var(--text);
  outline: none;
}

.estimate-mode-panel[hidden],
.estimate-map-panel[hidden] {
  display: none;
}

.estimate-context__header,
.estimate-consultation__header {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.estimate-context__header p,
.estimate-consultation__header p,
.estimate-consultation__header h2 {
  margin: 0;
}

.estimate-context__header p:last-child,
.estimate-consultation__header p:last-child {
  color: rgba(247, 244, 238, 0.72);
  line-height: 1.4;
}

.estimate-context__header .work-detail__eyebrow,
.estimate-consultation__header .work-detail__eyebrow {
  font-size: 0.62rem;
  line-height: 1.35;
}

.estimate-context__header p:last-child,
.estimate-consultation__header p:last-child {
  font-size: 0.68rem;
  line-height: 1.42;
}

.estimate-consultation__header h2 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.estimate-status {
  display: none;
}

.estimate-metrics,
.estimate-results {
  display: grid;
  gap: 1px;
  margin: 0 0 8px;
}

.estimate-results {
  display: none;
}

.estimate-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.estimate-billing-note {
  margin: 4px 0 0;
  color: rgba(247, 244, 238, 0.58);
  font-size: 0.68rem;
  line-height: 1.42;
}

.estimate-metrics div,
.estimate-results div {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.estimate-metrics dt,
.estimate-results dt,
.estimate-options > label > span {
  margin: 0 0 6px;
  color: var(--warm);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.estimate-metrics dd,
.estimate-results dd {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.estimate-fields,
.estimate-options,
.estimate-contact-form,
.estimate-form-grid {
  display: grid;
  gap: 10px;
}

.estimate-options {
  margin-top: 8px;
}

.estimate-contact-form {
  margin-top: 8px;
}

.estimate-radio-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.estimate-radio-group legend {
  grid-column: 1 / -1;
  margin: 0 0 5px;
  color: var(--warm);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.estimate-radio-group label {
  position: relative;
  display: grid;
  min-width: 0;
  cursor: pointer;
}

.estimate-radio-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.estimate-radio-group label span {
  display: grid;
  place-items: center;
  min-height: 34px;
  margin: 0;
  padding: 8px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-shadow: none;
  text-transform: uppercase;
}

.estimate-radio-group label span small {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
}

.estimate-radio-group input:checked + span {
  border-color: rgba(247, 244, 238, 0.34);
  background: rgba(247, 244, 238, 0.12);
  color: #fff;
}

.estimate-radio-group input:focus-visible + span {
  outline: 2px solid var(--warm);
  outline-offset: 2px;
}

.estimate-auto-result {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.estimate-auto-result span {
  color: var(--warm);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.estimate-auto-result strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.estimate-fields label,
.estimate-options label,
.estimate-contact-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.estimate-fields input,
.estimate-contact-form input,
.estimate-contact-form textarea,
.estimate-options select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: #242427;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
}

.estimate-fields input {
  min-height: 32px;
}

.estimate-contact-form input {
  min-height: 32px;
}

.estimate-contact-form textarea {
  min-height: 78px;
  padding-top: 9px;
  resize: vertical;
}

.estimate-file-field {
  align-items: start;
}

.estimate-file-field input[type="file"] {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(247, 244, 238, 0.54);
  font-size: 0.72rem;
  font-style: italic;
}

.estimate-file-field input[type="file"]::file-selector-button {
  margin-right: 9px;
  padding: 5px 8px;
  border: 1px solid rgba(var(--warm-rgb), 0.5);
  border-radius: 3px;
  background: rgba(var(--warm-rgb), 0.12);
  color: var(--warm);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.estimate-contact-form label > span {
  color: var(--text);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.estimate-fields label > span {
  color: var(--text);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.estimate-fields input::placeholder {
  color: rgba(247, 244, 238, 0.38);
}

.estimate-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.estimate-turnstile {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(var(--warm-rgb), 0.5);
  background: rgba(255, 255, 255, 0.035);
}

.estimate-turnstile__widget {
  min-height: 1px;
}

.estimate-turnstile span {
  color: rgba(247, 244, 238, 0.78);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}

.estimate-form-error,
.estimate-quotation-status {
  min-height: 1.1em;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.35;
}

.estimate-form-error {
  color: #f0b3a8;
}

.estimate-quotation-status {
  color: rgba(247, 244, 238, 0.62);
}

.estimate-quotation-button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  background: rgba(var(--warm-rgb), 0.9);
  color: #171719;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.estimate-quotation-button:disabled {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 244, 238, 0.34);
}

.estimate-quotation-button:not(:disabled):hover,
.estimate-quotation-button:not(:disabled):focus-visible {
  background: var(--text);
  outline: none;
}

.estimate-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 1px;
}

.estimate-search button {
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: rgba(247, 244, 238, 0.16);
  color: var(--text);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.estimate-search button:hover,
.estimate-search button:focus-visible {
  background: rgba(247, 244, 238, 0.24);
  outline: none;
}

.estimate-search-status {
  min-height: 1.1em;
  margin: -4px 0 0;
  color: rgba(247, 244, 238, 0.58);
  font-size: 0.7rem;
  line-height: 1.35;
}

.estimate-results dd {
  font-size: 1.1rem;
}

.estimate-map-panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(320px, 1fr);
  overflow: hidden;
  background: #111113;
}

.estimate-map {
  min-height: 320px;
  width: 100%;
}

.estimate-map .leaflet-container,
.estimate-map.leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: #151517;
  font-family: inherit;
}

.estimate-map .leaflet-control-attribution {
  background: rgba(20, 20, 22, 0.82);
  color: rgba(247, 244, 238, 0.72);
  font-size: 0.62rem;
}

.estimate-map .leaflet-control-attribution a {
  color: var(--warm);
}

.estimate-map .leaflet-control-zoom a {
  border-color: rgba(255, 255, 255, 0.1);
  background: #242427;
  color: var(--text);
}

.estimate-map-marker {
  display: grid;
  place-items: center;
  cursor: grab;
}

.estimate-map-marker:active {
  cursor: grabbing;
}

.estimate-map-marker span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #151517;
  border-radius: 50%;
  background: var(--warm);
  color: #151517;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

.estimate-edge-label {
  display: grid;
  place-items: center;
  pointer-events: none;
}

.estimate-edge-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(var(--warm-rgb), 0.72);
  border-radius: 3px;
  background: rgba(20, 20, 22, 0.86);
  color: var(--warm);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
}

.estimate-map__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #151517;
  background-size: 32px 32px;
  color: rgba(247, 244, 238, 0.7);
  font-size: 0.9rem;
  text-align: center;
}

.estimate-map-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: rgba(20, 20, 22, 0.3);
  pointer-events: none;
}

.estimate-map-controls button {
  min-height: 38px;
  border: 0;
  background: rgba(20, 20, 22, 0.3);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
}

.estimate-map-controls button:hover,
.estimate-map-controls button:focus-visible {
  background: rgba(var(--warm-rgb), 0.24);
  color: var(--warm);
  outline: none;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 4px;
  align-self: end;
  align-content: end;
  margin-top: 0;
  min-height: 0;
}

.service-card {
  min-height: var(--service-height);
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(20, 20, 22, 0.24);
  padding: 13px 18px 13px 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: stretch;
  gap: 10px;
  overflow: hidden;
}

.service-card[role="button"] {
  cursor: pointer;
}

.service-card:focus-visible {
  outline: 1px solid rgba(var(--warm-rgb), 0.72);
  outline-offset: -1px;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 36.65px;
  height: 36.65px;
  color: rgba(247, 244, 238, 0.5);
  align-self: center;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__icon text {
  fill: currentColor;
  stroke: none;
  font-size: 8px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -0.02em;
}

.service-card__play-fill {
  fill: currentColor;
  stroke: none;
}

.service-card__icon--tour360 .tour360-icon {
  fill: none;
  stroke: currentColor;
}

.service-card__icon--tour360 .tour360-icon__globe-outline,
.service-card__icon--tour360 .tour360-icon__globe-meridian,
.service-card__icon--tour360 .tour360-icon__globe-latitude {
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__icon--tour360 .tour360-icon text {
  fill: currentColor;
  stroke: none;
  font-size: 17px;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.service-card:nth-child(4) .service-card__icon svg {
  width: 105%;
  height: 105%;
}

.service-card__body h3,
.service-card__body p {
  margin: 0;
}

.service-card__body {
  display: grid;
  align-content: center;
  min-width: 0;
  transform-origin: left center;
  transition: transform 180ms ease;
}

.service-card:hover .service-card__body,
.service-card:focus-within .service-card__body {
  transform: scale(1.06);
}

.service-card__body h3 {
  font-size: 0.75rem;
  line-height: 1.1;
  font-weight: 700;
  color: rgba(247, 244, 238, 0.8);
}

.service-card__body p {
  margin-top: 6px;
  max-width: 188px;
  color: rgba(247, 244, 238, 0.5);
  font-size: 0.7rem;
  line-height: 1.35;
  font-weight: 500;
}

.service-card__arrow {
  color: rgba(247, 244, 238, 0.5);
  font-size: 1.28rem;
  line-height: 1;
  transform: translateY(2px);
  justify-self: end;
  align-self: center;
}

@media (min-width: 761px) {
  body {
    overflow: hidden;
  }

  .page-shell {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .content {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .service-grid {
    min-height: 0;
    overflow: visible;
  }

  .service-card {
    min-height: var(--service-height);
  }
}

@media (max-width: 1500px) {
  :root {
    --sidebar-width: clamp(276px, 22vw, 332px);
    --service-height: clamp(102px, 10.5vh, 122px);
    --layout-gap: clamp(12px, 1.15vw, 22px);
    --page-pad-y: clamp(12px, 1.7vh, 22px);
    --page-pad-x: clamp(14px, 1.6vw, 28px);
    --content-gap: clamp(8px, 0.8vh, 12px);
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-shell {
    height: 100vh;
    min-height: 100vh;
    align-items: start;
  }

  .content {
    height: 100%;
  }

  .sidebar {
    gap: clamp(2px, 0.28vw, 4px);
    padding-top: 0;
  }

  .sidebar-top,
  .sidebar-mid,
  .sidebar-bottom,
  .content,
  .topbar,
  .main-nav,
  .service-grid,
  .service-card,
  .stats-card,
  .contact-strip,
  .context-card,
  .cta-card,
  .socials {
    min-width: 0;
  }

  .sidebar-top {
    grid-template-columns: clamp(54px, 4vw, 66px) minmax(0, 1fr);
    column-gap: clamp(16px, 2vw, 32px);
  }

  .brand-mark {
    width: clamp(54px, 4vw, 66px);
    height: clamp(54px, 4vw, 66px);
  }

  .sidebar-copy h1 {
    font-size: clamp(2.5rem, 2.9vw, 3.2rem);
  }

  .eyebrow {
    margin-top: clamp(4px, 0.5vw, 6px);
    font-size: clamp(0.8rem, 0.85vw, 0.92rem);
  }

  .intro-card {
    gap: clamp(8px, 0.8vw, 14px);
    padding-top: clamp(2px, 0.5vh, 8px);
  }

  .intro-card__line {
    min-height: clamp(50px, 6vh, 60px);
  }

  .intro {
    max-width: 360px;
    font-size: clamp(0.74rem, 0.78vw, 0.8rem);
    line-height: clamp(1.34, 1.5vw, 1.42);
  }

  .stats-card {
    padding: clamp(8px, 0.9vw, 12px) clamp(8px, 0.85vw, 10px);
  }

  .stat-item {
    gap: clamp(6px, 0.75vw, 10px);
    padding: clamp(1px, 0.35vh, 4px) clamp(6px, 0.7vw, 10px);
  }

  .stat-item strong {
    font-size: clamp(0.73rem, 0.95vw, 0.97rem);
  }

  .stat-item span {
    margin-top: clamp(4px, 0.5vh, 6px);
    font-size: clamp(0.66rem, 0.72vw, 0.72rem);
    line-height: 1.14;
  }

  .stat-icon {
    width: clamp(28px, 2vw, 34px);
    height: clamp(28px, 2vw, 34px);
  }

  .contact-strip {
    min-height: clamp(32px, 3.8vh, 36px);
    padding: 0 clamp(10px, 0.95vw, 16px);
  }

  .contact-strip__item {
    font-size: clamp(0.66rem, 0.72vw, 0.72rem);
  }

  .contact-strip__divider {
    margin: 0 clamp(12px, 1vw, 18px);
  }

  .context-card {
    padding: clamp(8px, 0.9vw, 12px);
    gap: clamp(7px, 0.75vw, 10px);
  }

  .context-card__header {
    font-size: clamp(0.62rem, 0.68vw, 0.68rem);
  }

  .context-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .context-card__play {
    width: clamp(48px, 3.5vw, 56px);
    height: clamp(48px, 3.5vw, 56px);
  }

  .context-card__play svg {
    width: clamp(20px, 1.5vw, 24px);
    height: clamp(20px, 1.5vw, 24px);
  }

  .context-card__copy {
    font-size: clamp(0.72rem, 0.76vw, 0.78rem);
    line-height: 1.28;
  }

  .cta-card {
    grid-template-columns: clamp(56px, 4.6vw, 64px) 1fr;
    gap: clamp(9px, 0.9vw, 12px);
    padding: clamp(10px, 0.95vw, 14px) clamp(10px, 0.95vw, 14px) clamp(10px, 0.9vw, 13px);
  }

  .cta-card__icon {
    width: clamp(46px, 3.8vw, 52px);
    height: clamp(46px, 3.8vw, 52px);
  }

  .cta-card__icon svg {
    width: clamp(21px, 1.7vw, 24px);
    height: clamp(21px, 1.7vw, 24px);
  }

  .cta-card__content h3 {
    font-size: clamp(0.88rem, 0.95vw, 0.92rem);
  }

  .cta-card__content p {
    margin-top: clamp(3px, 0.35vw, 4px);
    font-size: clamp(0.75rem, 0.8vw, 0.8rem);
    line-height: 1.2;
  }

  .cta-card__button {
    min-width: clamp(126px, 10vw, 136px);
    height: clamp(36px, 4.2vh, 40px);
    margin-top: clamp(8px, 0.7vh, 12px);
    padding: 0 clamp(16px, 1.4vw, 18px);
    font-size: clamp(0.8rem, 0.84vw, 0.84rem);
  }

  .socials {
    min-height: clamp(72px, 8.8vh, 86px);
    padding: clamp(7px, 0.75vh, 9px) clamp(12px, 1vw, 16px);
    gap: clamp(8px, 0.8vw, 12px) clamp(12px, 1vw, 16px);
  }

  .socials a {
    width: clamp(22px, 1.8vw, 25px);
    height: clamp(22px, 1.8vw, 25px);
  }

  .socials svg {
    width: clamp(12px, 1vw, 14px);
    height: clamp(12px, 1vw, 14px);
  }

  .sidebar-meta {
    font-size: clamp(0.52rem, 0.56vw, 0.56rem);
  }

  .stats-card,
  .cta-card,
  .contact-strip,
  .socials {
    max-width: 100%;
  }
}

@media (max-width: 1360px) {
  .main-nav {
    gap: 14px;
  }

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

  .service-card {
    padding: 12px 14px;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 8px;
  }

  .service-card__icon {
    width: 28px;
    height: 28px;
  }

  .service-card__body h3 {
    font-size: 0.84rem;
  }

  .service-card__body p {
    margin-top: 5px;
    max-width: none;
    font-size: 0.74rem;
    line-height: 1.28;
  }

  .service-card__arrow {
    font-size: 1.05rem;
    transform: translateY(1px);
  }
}

@media (min-width: 1181px) and (max-width: 1599px) {
  .content {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .topbar {
    gap: 10px;
  }

  .main-nav {
    gap: clamp(12px, 1vw, 18px);
  }

  .service-grid {
    grid-auto-rows: 1fr;
    align-self: stretch;
    align-content: stretch;
    min-height: 0;
    height: 100%;
    padding-top: max(0px, calc(10px - var(--content-gap)));
    box-sizing: border-box;
    gap: clamp(2px, 0.7vw, 4px);
    margin-top: 0;
  }

  .service-card {
    height: 100%;
    min-height: clamp(88px, 10vh, 124px);
    padding: clamp(11px, 0.9vw, 13px) clamp(13px, 1vw, 16px);
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 8px;
  }

  .service-card__icon {
    width: 28px;
    height: 28px;
  }

  .service-card__body h3 {
    font-size: clamp(0.82rem, 0.86vw, 0.9rem);
  }

  .service-card__body p {
    margin-top: 5px;
    max-width: none;
    font-size: clamp(0.72rem, 0.76vw, 0.8rem);
    line-height: 1.28;
  }

  .service-card__arrow {
    font-size: 1.04rem;
    transform: translateY(1px);
  }
}

@media (min-width: 1181px) and (max-width: 1599px) and (max-height: 820px) {
  body {
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .page-shell {
    height: 100vh;
    min-height: 100vh;
    align-items: start;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: clamp(10px, 1.4vh, 18px);
    padding-bottom: clamp(12px, 1.8vh, 22px);
  }

  .topbar {
    min-height: 42px;
    gap: 10px;
  }

  .main-nav {
    gap: clamp(10px, 0.9vw, 16px);
  }

  .sidebar {
    gap: 2px;
    min-height: 0;
    overflow: visible;
  }

  .sidebar-top {
    column-gap: clamp(14px, 1.4vw, 22px);
  }

  .sidebar-copy h1 {
    font-size: clamp(2.3rem, 2.55vw, 3rem);
  }

  .eyebrow {
    font-size: clamp(0.76rem, 0.8vw, 0.9rem);
    margin-top: 4px;
  }

  .intro-card {
    gap: clamp(8px, 0.7vw, 12px);
    padding-top: 2px;
  }

  .intro-card__line {
    min-height: clamp(46px, 5vh, 56px);
  }

  .intro {
    font-size: clamp(0.7rem, 0.74vw, 0.78rem);
    line-height: 1.3;
  }

  .stats-card {
    padding: clamp(8px, 0.8vw, 10px);
  }

  .stat-item {
    gap: 6px;
    padding: 1px 6px;
  }

  .stat-item strong {
    font-size: clamp(0.8rem, 0.84vw, 0.92rem);
  }

  .stat-item span {
    margin-top: 3px;
    font-size: clamp(0.62rem, 0.66vw, 0.7rem);
    line-height: 1.08;
  }

  .stat-icon {
    width: 26px;
    height: 26px;
  }

  .contact-strip {
    min-height: 30px;
    padding: 0 10px;
  }

  .contact-strip__item {
    font-size: clamp(0.62rem, 0.66vw, 0.7rem);
  }

  .contact-strip__divider {
    margin: 0 10px;
  }

  .context-card {
    padding: 8px;
    gap: 7px;
  }

  .context-card__header {
    font-size: 0.6rem;
  }

  .context-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .context-card__play {
    width: 44px;
    height: 44px;
  }

  .context-card__play svg {
    width: 18px;
    height: 18px;
  }

  .context-card__copy {
    font-size: 0.7rem;
    line-height: 1.24;
  }

  .cta-card {
    grid-template-columns: 54px 1fr;
    gap: 9px;
    padding: 10px;
  }

  .cta-card__icon {
    width: 42px;
    height: 42px;
  }

  .cta-card__icon svg {
    width: 19px;
    height: 19px;
  }

  .cta-card__content h3 {
    font-size: 0.84rem;
  }

  .cta-card__content p {
    margin-top: 2px;
    font-size: 0.72rem;
    line-height: 1.14;
  }

  .cta-card__button {
    min-width: 118px;
    height: 34px;
    margin-top: 8px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .socials {
    min-height: 70px;
    padding: 8px 12px;
    gap: 8px 12px;
  }

  .socials a {
    width: 21px;
    height: 21px;
  }

  .socials svg {
    width: 11px;
    height: 11px;
  }

  .sidebar-meta {
    font-size: 0.5rem;
  }

  .content {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .service-grid {
    grid-auto-rows: 1fr;
    align-self: stretch;
    align-content: stretch;
    height: 100%;
    min-height: 0;
    margin-top: 0;
    padding-top: max(0px, calc(10px - var(--content-gap)));
    box-sizing: border-box;
  }

  .service-card {
    height: 100%;
    min-height: clamp(92px, 10vh, 112px);
  }

  .service-card__body h3 {
    font-size: 0.8rem;
  }

  .service-card__body p {
    font-size: 0.7rem;
    line-height: 1.22;
  }

  .service-card__arrow {
    font-size: 0.98rem;
  }
}

@media (min-width: 761px) and (max-width: 1180px) and (orientation: landscape) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-shell {
    display: flex;
    flex-direction: column;
    position: relative;
    height: auto;
    min-height: 100vh;
    gap: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px 16px 24px;
  }

  .sidebar,
  .content {
    display: contents;
  }

  .sidebar {
    min-height: auto;
    min-width: 0;
  }

  .sidebar::after {
    display: none;
  }

  .sidebar-bottom {
    display: contents;
  }

  .sidebar-top,
  .intro-card,
  .sidebar-mid,
  .topbar,
  .hero-panel,
  .service-grid,
  .context-card,
  .cta-card,
  .socials {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .sidebar-top {
    order: 1;
  }

  .intro-card {
    order: 2;
  }

  .intro,
  .intro-sizer,
  .intro-typed {
    white-space: nowrap;
  }

  .intro-sizer {
    visibility: visible;
    animation: intro-tablet-drift 4.8s ease-in-out infinite;
  }

  .intro {
    max-width: none;
    width: 100%;
    overflow: visible;
    text-overflow: unset;
    font-size: clamp(0.34rem, 0.6vw, 0.5rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
  }

  .intro-card {
    grid-template-columns: 1px minmax(0, 1fr);
    gap: 4px;
  }

  .intro-card__line {
    min-height: 34px;
  }

  .intro-typed,
  .intro-cursor {
    display: none;
  }

  .topbar {
    order: 3;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    align-items: start;
  }

  .hero-panel {
    order: 4;
  }

  .service-grid {
    order: 5;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .context-card {
    order: 6;
  }

  .sidebar-mid {
    order: 7;
    display: grid;
    gap: 8px;
    min-width: 0;
    overflow: visible;
  }

  .main-nav {
    width: 100%;
    margin-left: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
    gap: 12px 20px;
  }

  .main-nav__cta {
    min-width: 124px;
    height: 36px;
  }

  .intro-card {
    max-width: none;
  }

  .stats-card {
    gap: 12px;
    padding: 14px;
  }

  .stats,
  .contact-strip,
  .context-card,
  .cta-card,
  .socials,
  .service-card__body {
    min-width: 0;
  }

  .stat-item {
    padding: 4px 12px;
  }

  .contact-strip {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0px;
    min-height: 32px;
    padding: 6px 14px;
    align-items: center;
  }

  .contact-strip__item {
    white-space: normal;
  }

  .contact-strip__divider {
    height: 16px;
    margin: 0 14px;
  }

  .context-card {
    min-height: 0;
    padding: 12px;
    gap: 10px;
  }

  .context-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .context-card__copy,
  .service-card__body p {
    max-width: none;
  }

  .socials {
    order: 9;
    min-height: auto;
    padding: 10px 14px;
  }

  .cta-card {
    order: 8;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
    padding: 12px;
  }

  .cta-card__content {
    display: grid;
    justify-items: center;
  }

  .cta-card__button {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-panel {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .language-switch {
    position: absolute;
    top: calc(var(--page-pad-y) + 40px);
    right: var(--page-pad-x);
    z-index: 2;
    justify-self: auto;
  }
}

@media (max-width: 1180px) {
  .hero-panel.is-contact-estimator {
    aspect-ratio: auto;
    min-height: 58vh;
    max-height: none;
  }

  .estimate-tool {
    grid-template-columns: 1fr;
  }

  .estimate-map-panel {
    grid-row: 1;
    min-height: 420px;
  }

  .estimate-panel {
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .hero-panel.is-contact-estimator {
    min-height: 56vh;
  }

  .estimate-map-panel {
    min-height: 360px;
  }

  .estimate-metrics,
  .estimate-map-controls {
    grid-template-columns: 1fr;
  }

  .estimate-radio-group {
    grid-template-columns: 1fr;
  }

  .estimate-panel__header h2 {
    font-size: 1.35rem;
  }
}

.stats-card,
.contact-strip,
.context-card,
.cta-card,
.socials,
.service-card {
  background: #1e1e21 !important;
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
  .hero-panel.is-work {
    aspect-ratio: auto;
    min-height: 58vh;
    max-height: none;
  }

  .estimate-tool {
    grid-template-columns: 1fr;
  }

  .estimate-map-panel {
    grid-row: 1;
    min-height: 420px;
  }

  .estimate-panel {
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .hero-panel.is-work {
    min-height: 56vh;
  }

  .work-gallery {
    column-count: 2;
  }

  .work-detail {
    padding: 14px;
  }

  .work-detail__header,
  .work-detail__meta,
  .work-awards {
    grid-template-columns: 1fr;
  }

  .estimate-map-panel {
    min-height: 360px;
  }

  .estimate-metrics,
  .estimate-map-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .work-gallery {
    column-count: 1;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 16px 12px 22px;
    gap: 18px;
  }

  .sidebar {
    gap: 10px;
  }

  .sidebar-top {
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 0;
  }

  .brand-mark {
    width: 60px;
    height: 60px;
  }

  .sidebar-copy {
    padding-top: 0;
  }

  .sidebar-copy h1 {
    font-size: clamp(1.9rem, 8.6vw, 2.7rem);
    word-break: break-word;
  }

  .eyebrow {
    margin-top: 6px;
    font-size: 0.82rem;
  }

  .intro-card {
    grid-template-columns: 1px minmax(0, 1fr);
    gap: 10px;
    padding-left: 0;
  }

  .intro-card__line {
    min-height: 54px;
  }

  .intro {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .stats-card {
    padding: 12px;
    gap: 12px;
  }

  .cta-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 14px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 0 0 12px;
    gap: 8px;
  }

  .stat-item:not(:last-child)::after {
    top: auto;
    bottom: -8px;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
  }

  .contact-strip {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }

  .contact-strip__divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .contact-strip__item {
    white-space: normal;
    min-width: 0;
  }

  .context-card {
    min-height: 240px;
    padding: 12px;
  }

  .context-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .context-card__copy {
    font-size: 0.74rem;
  }

  .cta-card__button {
    min-width: 0;
    width: 100%;
  }

  .socials {
    min-height: auto;
    padding: 12px;
    gap: 10px 14px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .main-nav {
    width: 100%;
    margin-left: 0;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    justify-items: center;
    gap: 12px 16px;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .main-nav__cta {
    min-width: 118px;
    height: 34px;
    padding: 0 16px;
  }

  .language-switch {
    justify-self: start;
  }

  .language-pill {
    flex: 0 0 auto;
    justify-self: start;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    height: auto;
    min-height: 112px;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    padding: 12px 14px;
  }

  .service-card__body p {
    max-width: none;
  }

  .hero-panel {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 520px) {
  .sidebar-top {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
  }

  .sidebar-copy h1 {
    font-size: clamp(1.8rem, 9vw, 2.3rem);
  }

  .eyebrow {
    font-size: 0.78rem;
  }

  .topbar {
    gap: 10px;
  }

  .main-nav {
    gap: 10px 14px;
  }

  .contact-strip {
    padding: 10px 12px;
  }

  .socials {
    gap: 10px 12px;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-shell {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 5px;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 14px 22px;
  }

  .sidebar,
  .content {
    display: contents;
  }

  .sidebar::after {
    display: none;
  }

  .sidebar-bottom {
    display: contents;
  }

  .sidebar-top,
  .intro-card,
  .sidebar-mid,
  .topbar,
  .hero-panel,
  .service-grid,
  .context-card,
  .cta-card,
  .socials {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .sidebar-top {
    order: 1;
  }

  .intro-card {
    order: 2;
    grid-template-columns: 1px minmax(0, 1fr);
    gap: 6px;
    max-width: none;
  }

  .intro,
  .intro-sizer,
  .intro-typed {
    white-space: nowrap;
  }

  .intro {
    overflow: visible;
    text-overflow: unset;
    font-size: clamp(0.34rem, 0.62vw, 0.42rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .intro-card__line {
    min-height: 24px;
  }

  .topbar {
    order: 3;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
  }

  .hero-panel {
    order: 4;
    margin-top: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .hero-panel.is-work {
    aspect-ratio: auto;
    min-height: 56vh;
    max-height: none;
  }

  .work-gallery {
    column-count: 2;
  }

  .work-detail {
    padding: 14px;
  }

  .work-detail__header,
  .work-detail__meta,
  .work-awards {
    grid-template-columns: 1fr;
  }

  .service-grid {
    order: 5;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    gap: 8px;
  }

  .service-card {
    min-height: 88px;
    padding: 10px 12px;
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    gap: 8px;
  }

  .service-card__icon {
    width: 18px;
    height: 18px;
  }

  .service-card__body h3 {
    font-size: 0.74rem;
  }

  .service-card__body p {
    font-size: 0.62rem;
    line-height: 1.22;
  }

  .service-card__arrow {
    font-size: 0.9rem;
  }

  .context-card {
    order: 6;
  }

  .sidebar-mid {
    order: 7;
    display: grid;
    gap: 8px;
    min-width: 0;
    overflow: visible;
  }

  .stats-card,
  .contact-strip {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .stats-card {
    gap: 12px;
    padding: 10px 12px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 0 0 12px;
    gap: 8px;
  }

  .stat-item:not(:last-child)::after {
    top: auto;
    bottom: -8px;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
  }

  .contact-strip {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 10px 12px;
  }

  .contact-strip__divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .contact-strip__item {
    white-space: normal;
    min-width: 0;
  }

  .cta-card {
    order: 8;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
    padding: 12px;
  }

  .cta-card__content {
    display: grid;
    justify-items: center;
  }

  .cta-card__button {
    margin-left: auto;
    margin-right: auto;
  }

  .socials {
    order: 9;
    min-height: auto;
    padding: 10px 12px;
    gap: 8px 12px;
  }

  .topbar,
  .main-nav,
  .service-grid {
    overflow-x: hidden;
  }

  .main-nav {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
    gap: 12px 20px;
  }

  .language-switch {
    position: absolute;
    top: calc(var(--page-pad-y) + 40px);
    right: var(--page-pad-x);
    z-index: 2;
    justify-self: auto;
  }
}

@media (min-width: 761px) and (max-width: 1180px) and (orientation: portrait) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-shell {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 5px;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 14px 22px;
  }

  .sidebar,
  .content {
    display: contents;
  }

  .sidebar::after {
    display: none;
  }

  .sidebar-bottom {
    display: contents;
  }

  .sidebar-top,
  .intro-card,
  .sidebar-mid,
  .topbar,
  .hero-panel,
  .service-grid,
  .context-card,
  .cta-card,
  .socials {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .sidebar-top {
    order: 1;
  }

  .intro-card {
    order: 2;
    grid-template-columns: 1px minmax(0, 1fr);
    gap: 6px;
    max-width: none;
  }

  .intro,
  .intro-sizer,
  .intro-typed {
    white-space: nowrap;
  }

  .intro-sizer {
    visibility: visible;
    animation: intro-tablet-drift 4.8s ease-in-out infinite;
  }

  .intro {
    max-width: none;
    width: 100%;
    overflow: visible;
    text-overflow: unset;
    font-size: clamp(0.3rem, 0.55vw, 0.46rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  .intro-card__line {
    min-height: 30px;
  }

  .intro-typed,
  .intro-cursor {
    display: none;
  }

  .topbar {
    order: 3;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
  }

  .hero-panel {
    order: 4;
    margin-top: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .service-grid {
    order: 5;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    gap: 8px;
  }

  .service-card {
    min-height: 96px;
    padding: 10px 12px;
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    gap: 8px;
  }

  .service-card__icon {
    width: 18px;
    height: 18px;
  }

  .service-card__body h3 {
    font-size: 0.76rem;
  }

  .service-card__body p {
    font-size: 0.66rem;
    line-height: 1.24;
  }

  .service-card__arrow {
    font-size: 0.92rem;
  }

  .context-card {
    order: 6;
  }

  .sidebar-mid {
    order: 7;
    display: grid;
    gap: 8px;
    min-width: 0;
    overflow: visible;
  }

  .stats-card,
  .contact-strip {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .stats-card {
    gap: 12px;
    padding: 10px 12px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 0 0 12px;
    gap: 8px;
  }

  .stat-item:not(:last-child)::after {
    top: auto;
    bottom: -8px;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
  }

  .contact-strip {
    justify-content: center;
    padding: 8px 10px;
    flex-wrap: wrap;
    align-items: center;
  }

  .contact-strip__item {
    white-space: normal;
  }

  .contact-strip__divider {
    height: 16px;
    margin: 0 14px;
  }

  .cta-card {
    order: 8;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
    padding: 12px;
  }

  .cta-card__content {
    display: grid;
    justify-items: center;
  }

  .cta-card__button {
    margin-left: auto;
    margin-right: auto;
  }

  .socials {
    order: 9;
    min-height: auto;
    padding: 10px 12px;
    gap: 8px 12px;
  }

  .topbar,
  .main-nav,
  .service-grid {
    overflow-x: hidden;
  }

  .main-nav {
    width: 100%;
    margin-left: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
    gap: 12px 20px;
  }

  .language-switch {
    position: absolute;
    top: calc(var(--page-pad-y) + 40px);
    right: var(--page-pad-x);
    z-index: 2;
    justify-self: auto;
  }
}

@media (max-width: 1180px) {
  .texture-tool__layout,
  .texture-admin__grid,
  .texture-admin__settings {
    grid-template-columns: 1fr;
  }

  .texture-preview {
    height: clamp(300px, 52vh, 520px);
  }

  .texture-variant-card {
    grid-template-columns: 1fr;
  }

  .texture-variant-card img,
  .texture-variant-card > div,
  .texture-variant-card > label,
  .texture-variant-card > button {
    grid-column: 1;
  }

  .texture-variant-card img {
    grid-row: auto;
  }

  .intro,
  .intro-sizer,
  .intro-typed {
    white-space: normal;
  }

  .intro-typed {
    display: block;
  }

  .intro-cursor {
    display: inline-block;
  }

  .intro {
    max-width: 48rem;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    line-height: 1.45;
    letter-spacing: 0;
  }

  .stat-item strong {
    font-size: 1rem;
  }

  .stat-item span,
  .contact-strip__item,
  .cta-card__content p,
  .main-nav a,
  .service-card__body p,
  .work-detail__description,
  .work-detail__section p {
    font-size: 0.9rem;
  }

  .cta-card__content h3,
  .service-card__body h3,
  .work-detail__meta-item {
    font-size: 1rem;
  }

  .cta-card__button {
    font-size: 0.9rem;
  }

  .estimate-mode-tabs button,
  .estimate-context__header .work-detail__eyebrow,
  .estimate-consultation__header .work-detail__eyebrow,
  .estimate-billing-note,
  .estimate-radio-group legend,
  .estimate-radio-group label span,
  .estimate-auto-result span,
  .estimate-fields label > span,
  .estimate-contact-form label > span,
  .estimate-search button,
  .estimate-form-error,
  .estimate-quotation-status,
  .estimate-quotation-button {
    font-size: 0.8rem;
  }

  .estimate-fields input,
  .estimate-contact-form input,
  .estimate-contact-form textarea {
    font-size: 0.92rem;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .intro-card {
    min-height: 58px;
  }

  .intro-sizer {
    visibility: hidden;
    animation: none;
  }

  .intro {
    font-size: clamp(0.78rem, 1.35vw, 0.95rem);
    line-height: 1.35;
  }
}

@media (max-width: 760px) {
  .intro-sizer {
    visibility: hidden;
    animation: none;
  }

  .intro {
    font-size: clamp(0.532rem, 1.936vw, 0.605rem);
    line-height: 1.25;
  }

  .main-nav a {
    font-size: 0.557rem;
  }

  .service-card__body h3 {
    font-size: 0.581rem;
  }

  .service-card__body p {
    font-size: 0.52rem;
    line-height: 1.25;
  }

  .work-detail h2 {
    font-size: clamp(1.029rem, 4.84vw, 1.452rem);
  }

  .work-detail__eyebrow,
  .work-detail__meta-item,
  .work-detail__description,
  .work-detail__section p,
  .panorama-block__note,
  .panorama-viewer__status {
    font-size: 0.581rem;
  }

  .panorama-viewer {
    min-height: 220px;
  }
}





/* Keep a semantic project heading for assistive technology and document structure
   while Works pages use only the editor-authored visual layout. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* Four service links inside the unchanged AV8 Studio promotion frame. */
.context-card__media > .service-grid--promo {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.context-card__media .service-grid--promo .service-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 5px 10px;
  grid-template-columns: 25px minmax(0, 1fr) 14px;
  gap: 8px;
}

.context-card__media .service-grid--promo .service-card:last-child {
  border-bottom: 0;
}

.context-card__media .service-grid--promo .service-card__icon,
.context-card__media .service-grid--promo .service-card:nth-child(4) .service-card__icon svg {
  width: 22px;
  height: 22px;
}

.context-card__media .service-grid--promo .service-card__body h3 {
  font-size: 0.64rem;
  line-height: 1.1;
}

.context-card__media .service-grid--promo .service-card__body p {
  max-width: none;
  margin-top: 2px;
  font-size: 0.52rem;
  line-height: 1.15;
}

.context-card__media .service-grid--promo .service-card__arrow {
  font-size: 0.85rem;
}
/* Raise the complete desktop navigation row without changing document flow. */
@media (min-width: 1181px) {
  .topbar {
    transform: translateY(-15px);
  }
}
/* Raise the main hero panel on every desktop view without changing its size or behavior. */
@media (min-width: 1181px) {
  .hero-panel {
    transform: translateY(-30px);
  }
}
/* Use the requested 1000px hero on large desktop screens. */
@media (min-width: 1600px) {
  .hero-panel {
    height: min(1000px, calc(100vh - 60px));
    max-height: none;
  }
}
/* Match the Services reveal column to the 1000px desktop hero viewport. */
@media (min-width: 1600px) {
  .hero-panel.is-services-article .services-article-reveal {
    height: min(1000px, calc(100vh - 60px));
  }
}
/* Compact the desktop sidebar to 70%; the main column takes the released space. */
@media (min-width: 1181px) {
  .page-shell {
    grid-template-columns: calc(var(--sidebar-width) * 0.7) minmax(0, 1fr);
  }

  .sidebar {
    container-type: inline-size;
  }

  .sidebar-top {
    grid-template-columns: clamp(42px, 18cqw, 54px) minmax(0, 1fr);
    column-gap: clamp(10px, 5cqw, 16px);
  }

  .sidebar .brand-mark {
    width: clamp(42px, 18cqw, 54px);
    height: clamp(42px, 18cqw, 54px);
  }

  .sidebar-copy h1 {
    font-size: clamp(20px, 10.5cqw, 32px);
  }

  .sidebar .eyebrow {
    font-size: clamp(9px, 4cqw, 12px);
  }

  .sidebar .stat-item {
    min-width: 0;
    padding-inline: 3px;
  }

  .sidebar .stat-item strong {
    font-size: clamp(10px, 4.5cqw, 13px);
  }

  .sidebar .stat-item span {
    font-size: clamp(8px, 3.5cqw, 10px);
  }

  .sidebar .contact-strip {
    padding-inline: 6px;
  }

  .sidebar .contact-strip__divider {
    margin-inline: clamp(5px, 3cqw, 10px);
  }

  .sidebar .contact-strip__item {
    min-width: 0;
    font-size: clamp(8px, 3.5cqw, 10px);
  }

  .sidebar .context-card__media--youtube {
    aspect-ratio: auto;
    height: max(176px, calc((var(--sidebar-width) - 14px) * 9 / 16));
    flex-shrink: 0;
  }

  .sidebar .cta-card {
    grid-template-columns: clamp(32px, 14cqw, 42px) minmax(0, 1fr);
    column-gap: 10px;
    padding-inline: 10px;
  }

  .sidebar .cta-card__icon {
    width: clamp(32px, 14cqw, 42px);
    height: clamp(32px, 14cqw, 42px);
  }

  .sidebar .cta-card__content h3 {
    font-size: clamp(10px, 4cqw, 12px);
  }

  .sidebar .cta-card__content p {
    font-size: clamp(9px, 3.5cqw, 11px);
  }

  .sidebar .cta-card__button {
    min-width: 0;
    max-width: 100%;
    padding-inline: clamp(8px, 5cqw, 16px);
    font-size: clamp(10px, 4cqw, 12px);
  }

  .sidebar .socials {
    padding-inline: 8px;
    column-gap: clamp(4px, 2cqw, 7px);
  }
}

/* Keep the language pill inside the clipped desktop content, including hover scale. */
@media (min-width: 1181px) {
  .topbar .language-switch { position: relative; top: 5px; }
}

/* Compact the back-to-top control and lift its lower edge by 5px. */
.panel-scroll-top { bottom: 23px; width: 29.4px; height: 29.4px; padding: 0; }
.panel-scroll-top svg { width: 15.4px; height: 15.4px; }

/* Allow the raised navigation 6px above the content boundary; retain other clipping edges. */
@media (min-width: 1181px) {
  .content { overflow: visible; clip-path: inset(-6px 0 0 0); }
  .topbar .language-switch { top: 0; }
}

/* Center the Recruitment message only when no visible vacancies remain. */
.hero-panel.is-work-gallery:has(> .work-gallery--join-empty) { display: grid; }
.work-gallery.work-gallery--join-empty {
  display: grid;
  place-items: center;
  column-count: auto;
  padding: 24px;
  text-align: center;
}
.work-gallery--join-empty .work-gallery__empty { margin: 0; line-height: 1.8; }

.work-gallery--join-empty .work-gallery__empty { white-space: pre-line; overflow-wrap: anywhere; }

/* Center only the Studio Tools empty state. */
.hero-panel.is-work-gallery:has(> .work-gallery--tools-empty) { display: grid; }
.work-gallery.work-gallery--tools-empty {
  display: grid;
  place-items: center;
  column-count: auto;
  padding: 24px;
  text-align: center;
}
.work-gallery--tools-empty .work-gallery__empty { margin: 0; line-height: 1.8; overflow-wrap: anywhere; }

/* Introduction pages for Studio Tools only. */
.work-detail.tool-introduction {display:block;min-height:100%;padding:clamp(20px,3vw,44px);}
.tool-introduction > h1 {font-size:clamp(26px,3vw,38px);line-height:1.25;margin:24px 0 12px;color:#f7f4ee;}
.tool-introduction > p {margin:0 0 24px;line-height:1.7;max-width:900px;}
.tool-introduction > .work-detail__article {margin:24px 0;}
.tool-introduction > .work-detail__article:empty {display:none;}
.tool-introduction .button {display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:38px;padding:9px 16px;border:1px solid #454545;border-radius:7px;background:#242426;color:#f7f4ee;font:inherit;font-size:14px;line-height:1.4;text-decoration:none;cursor:pointer;}
.tool-introduction > p > .button {background:#d5b66d;border-color:#d5b66d;color:#18181a;font-weight:600;}
.tool-introduction .button:hover {filter:brightness(1.1);}
.tool-introduction .button:focus-visible {outline:2px solid #d5b66d;outline-offset:3px;}

/* Optional sidebar settings; no value preserves the existing design. */
.sidebar[style*="--sidebarTextColor"] :is(.sidebar-copy h1,.sidebar-copy h1 a,.eyebrow,.intro,.stat-item strong,.service-card h3,.cta-card h3){color:var(--sidebarTextColor)}
.sidebar[style*="--sidebarMutedColor"] :is(.stat-item span,.contact-strip__item,.service-card p,.cta-card p,.sidebar-meta){color:var(--sidebarMutedColor)}
.sidebar[style*="--sidebarBorderColor"] :is(.stats-card,.contact-strip,.context-card,.cta-card,.socials,.service-card,.cta-card__button){border-color:var(--sidebarBorderColor)}
.sidebar[style*="--ctaTextColor"] .cta-card__button,.sidebar[style*="--ctaTextColor"] .cta-card__button::after{color:var(--ctaTextColor)}
.sidebar[style*="--ctaBackgroundColor"] .cta-card__button{background:var(--ctaBackgroundColor)}

/* Center the sidebar quote content after removing its decorative icon. */
.sidebar .cta-card__content { display: grid; justify-items: center; text-align: center; min-width: 0; }
.sidebar .cta-card__button { margin-inline: auto; }
