:root {
  --jsg-white: #ffffff;
  --jsg-black: #0a0a0a;
  --jsg-charcoal: #333333;
  --jsg-red: #b20731;
  --jsg-gold: #c9a15b;
  --jsg-border: #e6e6e6;
  --jsg-light: #f8f8f8;
  --jsg-background: #ffffff;
  --jsg-surface: #f8f8f8;
  --jsg-max-width: 1440px;
  --jsg-gutter: clamp(12px, 4vw, 56px);
  --jsg-section-space: clamp(48px, 6vw, 112px);
  --jsg-body-size: clamp(15px, 1vw, 18px);
  --jsg-heading-xl: clamp(36px, 6vw, 88px);
  --jsg-heading-lg: clamp(30px, 4.5vw, 64px);
  --jsg-heading-md: clamp(24px, 3vw, 44px);
  --jsg-transition-fast: 200ms;
  --jsg-transition-normal: 350ms;
  --jsg-transition-slow: 800ms;
  --header: 88px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--jsg-white);
  color: var(--jsg-charcoal);
  font-family: Manrope, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, a, input { font: inherit; }

:focus-visible {
  outline: 2px solid var(--jsg-red);
  outline-offset: 3px;
}

h1, h2, h3, .display {
  margin: 0;
  color: var(--jsg-black);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

.container {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header);
  padding: 18px 28px;
  background: var(--jsg-white);
  border-bottom: 1px solid transparent;
}

.logo img {
  height: 92px;
  width: auto;
  object-fit: contain;
}

.gold-rule {
  width: 1px;
  height: 28px;
  flex: 0 0 1px;
  background: var(--jsg-gold);
}

.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 22px);
  min-width: 0;
}

.site-header .gold-rule:not(.gold-rule-end) { margin-left: 0; }

.nav-soon {
  color: var(--jsg-black);
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
}

.nav a {
  color: var(--jsg-black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a,
.footer-nav a,
.footer-base a,
.more,
.policy a,
.prose a:not(.btn),
.inquiry a,
.contact-channels a {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: color 200ms ease, text-decoration-color 200ms ease, border-color 200ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-base a:hover,
.footer-base a:focus-visible,
.more:hover,
.more:focus-visible,
.policy a:hover,
.policy a:focus-visible,
.prose a:not(.btn):hover,
.prose a:not(.btn):focus-visible,
.inquiry a:hover,
.inquiry a:focus-visible,
.contact-channels a:hover,
.contact-channels a:focus-visible {
  color: var(--jsg-red);
  text-decoration-color: var(--jsg-red);
}

.nav a[aria-current="page"],
.footer-nav a[aria-current="page"],
.footer-base a[aria-current="page"] {
  color: var(--jsg-red);
  text-decoration-color: var(--jsg-red);
}

.jsg-word {
  color: #b20731;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.btn-red .jsg-word { color: inherit; }

.section-divider {
  display: block;
  width: 75%;
  height: 1px;
  margin: clamp(28px, 4vw, 48px) auto;
  border: 0;
  background: var(--jsg-gold);
}

.section:has(+ .section-divider),
.section:has(+ .divider-wrap) { padding-bottom: 0; }
.section-divider + .section,
.divider-wrap + .section { padding-top: 0; }
.divider-wrap { width: min(calc(100% - 2 * var(--jsg-gutter)), var(--jsg-max-width)); margin-inline: auto; }

.nav-item > a { position: relative; z-index: 41; }

.nav-sub a[href="/restoration/"],
.nav-sub a[href="/restoration/"]:hover,
.nav-sub a[href="/restoration/"]:focus-visible,
.nav-sub a[href="/restoration/"][aria-current="page"] {
  color: var(--jsg-gold);
  text-decoration-color: var(--jsg-gold);
}

.gallery-filters button,
.dots button {
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.gallery-filters button:hover,
.gallery-filters button:focus-visible,
.gallery-filters button[aria-pressed="true"] {
  color: var(--jsg-red);
  border-color: var(--jsg-red);
}

.dots button:hover,
.dots button:focus-visible,
.dots button[aria-current="true"] {
  background: var(--jsg-red);
}

.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 46px;
  padding: 12px 22px;
  border: 1.5px solid var(--jsg-red);
  border-radius: 999px;
  background: var(--jsg-white);
  color: var(--jsg-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible,
.btn-red,
.btn-red:hover,
.btn-red:focus-visible {
  background: var(--jsg-white);
  border-color: var(--jsg-red);
  color: var(--jsg-red);
}

.btn:hover,
.btn:focus-visible,
.btn-red:hover,
.btn-red:focus-visible {
  background: var(--jsg-red);
  color: var(--jsg-white);
}

.btn svg { width: 14px; height: 14px; }

.hero {
  position: relative;
  height: min(78vh, 760px);
  min-height: 560px;
  margin: 0 20px;
  overflow: hidden;
  background: #d9d5cf;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-photo.is-on { opacity: 1; }

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.24), rgba(10, 10, 10, 0.36));
}

.hero-frame {
  position: absolute;
  top: 22px;
  bottom: 22px;
  z-index: 2;
  width: 34px;
  pointer-events: none;
  background-repeat: no-repeat;
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 8px;
  background-repeat: no-repeat;
}

.hero-frame-left {
  left: 16px;
  background-image:
    linear-gradient(var(--jsg-gold), var(--jsg-gold)),
    linear-gradient(var(--jsg-gold), var(--jsg-gold));
  background-size: 1px 100%, 1px 100%;
  background-position: 0 0, 6px 0;
}

.hero-frame-left::before,
.hero-frame-left::after {
  left: 0;
  background-image:
    linear-gradient(var(--jsg-gold), var(--jsg-gold)),
    linear-gradient(var(--jsg-gold), var(--jsg-gold));
  background-size: 22px 1px, 16px 1px;
  background-position: 0 0, 6px 6px;
}

.hero-frame-left::before { top: 0; }
.hero-frame-left::after { bottom: 0; }

.hero-frame-right {
  right: 16px;
  background-image:
    linear-gradient(var(--jsg-gold), var(--jsg-gold)),
    linear-gradient(var(--jsg-gold), var(--jsg-gold));
  background-size: 1px 100%, 1px 100%;
  background-position: right 0, calc(100% - 6px) 0;
}

.hero-frame-right::before,
.hero-frame-right::after {
  right: 0;
  left: auto;
  background-image:
    linear-gradient(var(--jsg-gold), var(--jsg-gold)),
    linear-gradient(var(--jsg-gold), var(--jsg-gold));
  background-size: 22px 1px, 16px 1px;
  background-position: right 0, calc(100% - 6px) 6px;
}

.hero-frame-right::before { top: 0; }
.hero-frame-right::after { bottom: 0; }

.hero-copy {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(920px, calc(100% - 108px));
  transform: translate(-50%, -50%);
  color: var(--jsg-white);
  text-align: center;
}

.hero-trio {
  display: flex;
  background: #111111;
}

.hero-trio img {
  position: relative;
  flex: 1 1 0;
  width: 0;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-rule {
  flex: 0 0 2px;
  width: 2px;
  align-self: stretch;
  background: var(--jsg-gold);
}

.hero h1,
.hero-title {
  max-width: 100%;
  margin: 0 auto;
  color: var(--jsg-white);
  text-align: left;
  text-shadow: none;
  animation: rise 0.9s ease both;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: max-content;
  max-width: 100%;
}

.hero-line {
  display: flex;
  align-items: baseline;
  gap: 0.32em;
  max-width: 100%;
  line-height: 1;
}

.hero-line-second {
  margin-left: clamp(18px, 4.2vw, 72px);
  padding-bottom: 0.16em;
  border-bottom: 3px solid #c8102e;
}

.hero-kicker {
  color: #ffffff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.85vw, 1.7rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-build,
.hero-community {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.15rem, 6.1vw, 5.35rem);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-build {
  color: #c8102e;
}

.hero-community {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px #c9a15b;
  paint-order: stroke fill;
  filter: drop-shadow(0 1px 1px rgba(10, 10, 10, 0.65));
}

.service-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  align-items: center;
  margin: 22px 0 0;
  color: var(--jsg-white);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.service-line i {
  width: 7px;
  height: 7px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--jsg-gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.section { padding-block: var(--jsg-section-space); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--jsg-black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--jsg-gold);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.who h2, .community h2 {
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
}

.who h2 {
  max-width: min(100%, 14ch);
  container-type: inline-size;
}
.community h2 { max-width: 14ch; }

.rotator {
  display: inline-grid;
  color: var(--jsg-red);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  vertical-align: baseline;
  font-size: min(0.8em, 6.56vw);
}

.rotator::before,
.rotator-word {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.rotator::before {
  content: attr(data-longest);
  visibility: hidden;
}

.rotator-word {
  justify-self: start;
  align-self: end;
  border-bottom: 3px solid var(--jsg-red);
}

@supports (width: 1cqi) {
  .rotator { font-size: min(0.8em, 6.56vw, 13.5cqi); }
}

.who p, .community p, .restore p, .cta p {
  max-width: 46rem;
  margin: 18px 0 0;
  color: var(--jsg-charcoal);
}

.who .btn, .community .btn { margin-top: 26px; }

.who figure, .community figure { margin: 0; }

.who img, .community img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.who-copy,
.who figure,
.service-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.is-in .who-copy,
.who.is-in figure,
.is-in .service-card { opacity: 1; transform: none; }

.is-in .service-card:nth-child(2) { transition-delay: 0.08s; }
.is-in .service-card:nth-child(3) { transition-delay: 0.16s; }
.is-in .service-card:nth-child(4) { transition-delay: 0.24s; }

.services { background: var(--jsg-white); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2, .way h2, .projects h2, .partners h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px 22px 20px;
  border: 1px solid var(--jsg-border);
  background: var(--jsg-white);
  color: var(--jsg-black);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jsg-icon {
  width: 72px;
  height: 72px;
  stroke: #111111;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jsg-icon .ring { stroke: var(--jsg-gold); stroke-width: 1.15; }
.jsg-icon .disc { fill: #ffffff; stroke: none; }
.jsg-icon .gold { stroke: var(--jsg-gold); stroke-width: 1.7; }
.jsg-icon .gold-fill { fill: var(--jsg-gold); stroke: none; }

.service-card .jsg-icon,
.way .jsg-icon,
.value-row .jsg-icon { stroke-width: 2.55; }

.service-card .jsg-icon {
  width: 84px;
  height: 84px;
  transition: transform 0.35s ease;
}

.service-card:hover .jsg-icon { transform: scale(1.06); }

.service-card h3 { margin-top: 18px; font-size: 1.35rem; }

.service-card p { margin: 10px 0 0; color: var(--jsg-charcoal); }

.service-card .go {
  margin-top: auto;
  padding-top: 18px;
  color: var(--jsg-red);
  font-weight: 700;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(10, 10, 10, 0.08);
}

.card-controls { display: none; gap: 8px; }

.restore-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.umbrella-art { width: 100%; height: auto; overflow: visible; }

.umbrella-buildings {
  fill: none;
  stroke: #9a9a9a;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.umbrella-canopy {
  fill: none;
  stroke: var(--jsg-red);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0.08);
}

.umbrella-canopy .rib { stroke-width: 1.2; }

.umbrella-art.is-open .umbrella-canopy {
  transform: scaleY(1);
  transition: transform 1.5s cubic-bezier(.16, .84, .28, 1);
}

.restore h2 { font-size: clamp(2.4rem, 4vw, 3.8rem); max-width: 16ch; }

.restore .hero-actions, .cta .hero-actions { margin-top: 26px; }

.way { text-align: center; }

.way-viewport {
  position: relative;
  height: 260px;
  margin-top: 18px;
  overflow: hidden;
}

.way-track {
  position: relative;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.way li {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 156px;
  opacity: 1;
  transform: translateX(-50%);
  color: var(--jsg-black);
  transition: color 0.4s ease;
}

.way .jsg-icon { width: 78px; height: 78px; }

.way h3 {
  margin: 14px auto 0;
  max-width: 10em;
  font-size: 0.78rem;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.way li.is-active { color: #c8102e; }
.way li.is-active .ring { stroke: #c8102e; }
.way li.is-active h3 { border-bottom: 2px solid #c8102e; display: inline-block; }

.way-pause {
  margin-top: 8px;
  border: 1px solid var(--jsg-border);
  background: var(--jsg-white);
  color: var(--jsg-black);
  padding: 8px 16px;
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.way-btn {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 42px;
  height: 42px;
  border: 1px solid var(--jsg-border);
  background: var(--jsg-white);
  color: var(--jsg-black);
  cursor: pointer;
  transform: translateY(-50%);
}

.way-prev { left: 0; }
.way-next { right: 0; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-preview-wrap { position: relative; }

.project-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--jsg-white);
  background: #eceae6;
}

.project-card::before,
.gallery > button::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid var(--jsg-gold);
  outline: 1px solid var(--jsg-gold);
  outline-offset: -6px;
  pointer-events: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card span:not(.gold-frame) {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 3;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.who figure,
.photo-frame,
.photo-main {
  position: relative;
}

.who figure::before,
.photo-frame::before,
.photo-main::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid var(--jsg-gold);
  outline: 1px solid var(--jsg-gold);
  outline-offset: -6px;
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.42));
  transition: background 0.3s ease;
}

.project-card:hover img { transform: scale(1.03); }

.project-strip-wrap {
  position: relative;
  max-width: 100%;
}

.project-strip {
  display: flex;
  align-items: stretch;
  height: clamp(300px, 38vw, 520px);
  max-width: 100%;
  overflow: hidden;
}

.project-strip > a,
.project-strip > figure,
.project-strip > .wp-block-image {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.project-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-rule {
  flex: 0 0 2px;
  width: 2px;
  align-self: stretch;
  background: var(--jsg-gold);
}

.strip-btn {
  display: none;
}

.more {
  color: var(--jsg-black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.partner-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  min-height: 320px;
  transition: opacity 0.8s ease;
}

.partner-stage img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: opacity 0.8s ease;
}

.partner-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.dots { display: flex; gap: 8px; }

.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.dots button[aria-current="true"] { background: var(--jsg-red); }

.cta {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 248, 248, 0.96)),
    repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(201, 161, 91, 0.08) 23px);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta h2 { font-size: clamp(3rem, 6vw, 5.2rem); }
.cta h2 em {
  font-style: normal;
  border-bottom: 3px solid var(--jsg-red);
}

.site-footer {
  padding: 36px 0 22px;
  border-top: 2px solid var(--jsg-red);
  background: var(--jsg-white);
  color: var(--jsg-black);
}

.footer-row, .footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-nav a[aria-current="page"] { color: var(--jsg-red); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-icons { display: flex; gap: 14px; align-items: center; }
.footer-icons a,
.footer-brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
}
.footer-icons svg,
.footer-brand svg { width: 42px; height: 42px; display: block; fill: none; }

[data-site-footer] { min-height: 148px; }

.footer-base {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--jsg-border);
  font-size: 13px;
}

.page-blank { min-height: 50vh; }

.policy {
  width: min(100% - 48px, 760px);
  margin: 48px auto 80px;
}

.policy h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.policy h2 { margin: 28px 0 8px; font-size: 1.4rem; font-family: Manrope, sans-serif; text-transform: none; letter-spacing: 0; }
.policy p, .policy li { color: var(--jsg-charcoal); }
.policy ul { padding-left: 1.2rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.wp-site-blocks { padding: 0; }
.wp-site-blocks a,
.editor-styles-wrapper a { color: inherit; }
.wp-block-button__link,
.header-cta .wp-block-button__link {
  border-radius: 0;
  background: var(--jsg-red);
  color: var(--jsg-white);
  min-height: 46px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--jsg-red);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--jsg-white);
  color: var(--jsg-black);
}
.jsg-container,
.container {
  width: min(calc(100% - 2 * var(--jsg-gutter)), var(--jsg-max-width));
}

.jsg-entrance {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  pointer-events: auto;
  animation: jsg-entrance-out 0.9s ease 1.6s forwards;
}

.jsg-entrance img {
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: min(420px, 52vh);
  object-fit: contain;
  transform-origin: center center;
  animation: jsg-entrance-logo 0.7s ease both;
}

@media (max-width: 1024px) {
  .jsg-entrance img { max-width: 180px; }
}

@media (max-width: 767px) {
  .jsg-entrance img { max-width: 146px; }
}

html.jsg-entrance-skip .jsg-entrance {
  display: none;
}

@keyframes jsg-entrance-logo {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes jsg-entrance-out {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .jsg-entrance { display: none; }
  .nav a,
  .footer-nav a,
  .footer-base a,
  .more,
  .policy a,
  .prose a,
  .inquiry a,
  .contact-channels a,
  .gallery-filters button,
  .dots button {
    transition: none;
  }
}

.consult-modal[hidden] { display: none !important; }

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 10, 10, 0.55);
}

.consult-panel {
  width: min(100%, 560px);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #ffffff;
  padding: 28px 22px 22px;
}

.consult-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.consult-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }

.consult-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid #0a0a0a;
  background: #ffffff;
  color: #0a0a0a;
  font-size: 1.4rem;
  cursor: pointer;
}

.consult-panel label {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  color: #333333;
  font-family: Manrope, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.consult-panel input,
.consult-panel select,
.consult-panel textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8d4cc;
  padding: 8px 10px;
  color: #0a0a0a;
  background: #ffffff;
  font: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.consult-panel textarea { min-height: 110px; }

.consult-note {
  margin: 0;
  color: #0a0a0a;
  font-family: Manrope, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}

body.modal-open { overflow: hidden; }
