/*
Theme Name: 자연과 집
Theme URI: https://jayeongwa-jip.local
Author: OpenAI Codex
Description: 자연과 집 포트폴리오용 WordPress 테마. 전원주택 프로젝트, 부지/주택, 레퍼런스, FAQ를 관리자에서 직접 편집할 수 있도록 설계했습니다.
Version: 1.1.23
Text Domain: jayeongwa-jip
*/

:root {
  --bg: #ebe6d8;
  --surface: rgba(255, 252, 246, 0.84);
  --surface-strong: rgba(248, 243, 232, 0.96);
  --line: rgba(94, 115, 199, 0.18);
  --text: #1d2430;
  --muted: rgba(29, 36, 48, 0.68);
  --accent: #5e73c7;
  --accent-soft: rgba(94, 115, 199, 0.14);
  --accent-fog: #c6cae9;
  --nature-sage: #6f7d67;
  --nature-forest: #4f6046;
  --nature-stone: #8b836d;
  --shadow: 0 24px 70px rgba(63, 73, 92, 0.12);
  --max-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(198, 202, 233, 0.38), transparent 30%),
    radial-gradient(circle at bottom right, rgba(111, 125, 103, 0.16), transparent 24%),
    linear-gradient(180deg, #f7f3ea 0%, #ece6d7 44%, #f5f1e7 100%);
  color: var(--text);
  font-family: "SUIT Variable", "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.6;
}

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

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

main {
  min-height: 100vh;
  padding-bottom: 72px;
}

.hero-shell-section,
.subpage-hero {
  position: relative;
  overflow: clip;
  min-height: 100svh;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(255, 251, 245, 0.68), rgba(235, 230, 216, 0.26)),
    linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(94, 115, 199, 0.08) calc(100% - 1px)),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(94, 115, 199, 0.06) calc(100% - 1px));
  background-size: cover, 100% 56px, 56px 100%;
  animation: drift-grid 14s linear infinite;
}

.hero-backdrop--home {
  background:
    linear-gradient(96deg, rgba(247, 243, 234, 0.9) 0%, rgba(247, 243, 234, 0.8) 28%, rgba(247, 243, 234, 0.18) 64%, rgba(247, 243, 234, 0.46) 100%),
    linear-gradient(180deg, rgba(25, 32, 27, 0.16), rgba(25, 32, 27, 0.34)),
    url("assets/reference/m43-photo-02.png");
  background-position: center center;
  background-size: cover, cover, cover;
  animation: hero-scene-pan 24s ease-in-out infinite alternate;
}

.hero-backdrop--projects,
.hero-backdrop--properties,
.hero-backdrop--contact,
.hero-backdrop--info,
.hero-backdrop--property-detail,
.hero-backdrop--project-fallback {
  background-position: center center;
  background-size: cover;
  animation: hero-scene-pan 20s ease-in-out infinite alternate;
}

.hero-backdrop--projects {
  background-image:
    linear-gradient(90deg, rgba(18, 22, 28, 0.64), rgba(18, 22, 28, 0.18) 52%, rgba(247, 243, 234, 0.08) 84%),
    url("assets/reference/m43-photo-04.png");
}

.hero-backdrop--properties {
  background-image:
    linear-gradient(90deg, rgba(247, 243, 234, 0.84), rgba(247, 243, 234, 0.44) 44%, rgba(247, 243, 234, 0.12) 76%),
    url("assets/reference/m43-photo-01.png");
  background-position: center 54%;
}

.hero-backdrop--contact {
  background-image:
    linear-gradient(90deg, rgba(247, 243, 234, 0.88), rgba(247, 243, 234, 0.48) 44%, rgba(247, 243, 234, 0.16) 78%),
    url("assets/reference/m43-photo-06.png");
  background-position: center center;
}

.hero-backdrop--info {
  background-image:
    linear-gradient(90deg, rgba(247, 243, 234, 0.84), rgba(247, 243, 234, 0.34) 46%, rgba(247, 243, 234, 0.1) 78%),
    url("assets/reference/m43-photo-03.png");
  background-position: center 42%;
}

.hero-backdrop--property-detail {
  background-image:
    linear-gradient(90deg, rgba(247, 243, 234, 0.82), rgba(247, 243, 234, 0.34) 48%, rgba(247, 243, 234, 0.1) 78%),
    url("assets/reference/m43-photo-02.png");
  background-position: center 46%;
}

.hero-backdrop--project-fallback {
  background-image:
    linear-gradient(90deg, rgba(247, 243, 234, 0.76), rgba(247, 243, 234, 0.22) 54%, rgba(247, 243, 234, 0.12)),
    url("assets/reference/merrily-photo-05.png");
}

.hero-backdrop--home::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 22%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(247, 243, 234, 0.04), rgba(247, 243, 234, 0.18) 64%, rgba(247, 243, 234, 0.22));
  pointer-events: none;
}

.hero-backdrop__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(0.94) contrast(0.96) brightness(0.88);
  transform: scale(1.03);
  animation: hero-scene-pan 26s ease-in-out infinite alternate;
}

.subpage-hero .hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12)),
    linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.12) calc(100% - 1px)),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.08) calc(100% - 1px));
  background-size: cover, 100% 56px, 56px 100%;
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
}

.hero-shell-section .site-header,
.subpage-hero .site-header {
  margin-top: 0;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0 0 38px 38px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.74), rgba(255, 251, 245, 0.5));
  box-shadow: 0 22px 48px rgba(58, 66, 82, 0.12);
  backdrop-filter: blur(14px);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 52px;
}

.brandmark__logo {
  display: block;
  height: clamp(46px, 5vw, 74px);
  width: auto;
}

.brandmark__fallback {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brandmark__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brandmark strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 280px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.88);
  box-shadow: 0 14px 28px rgba(63, 73, 92, 0.08);
}

.language-switch__divider {
  width: 1px;
  height: 18px;
  background: rgba(29, 36, 48, 0.14);
}

.language-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.language-switch__link:hover {
  background: rgba(94, 115, 199, 0.1);
  color: var(--text);
}

.language-switch__link.is-active {
  background: var(--accent);
  color: #f8f7f3;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--text);
}

.header-cta,
.button-primary,
.button-secondary,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.header-cta,
.button-primary {
  background: var(--accent);
  color: #f8f7f3;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(94, 115, 199, 0.18);
}

.button-secondary,
.filter-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.header-cta:hover,
.button-primary:hover,
.button-secondary:hover,
.filter-chip:hover {
  transform: translateY(-1px);
}

.hero-grid,
.subpage-hero__copy,
.project-hero__copy {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.hero-grid {
  min-height: calc(100svh - 132px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
  align-items: center;
  gap: 44px;
}

.hero-shell-section .hero-grid {
  max-width: 1240px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 2vw, 26px);
  padding-top: clamp(32px, 4vh, 54px);
  padding-bottom: clamp(40px, 6vh, 80px);
}

.hero-copy h1,
.subpage-hero h1,
.project-hero__copy h1 {
  margin: 0;
  max-width: 10ch;
  font-family: "Iropke Batang", "Noto Serif KR", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  word-break: keep-all;
  text-wrap: balance;
}

.hero-description,
.muted-text,
.rich-copy p {
  color: var(--muted);
}

.hero-description {
  max-width: 44rem;
  margin: 28px 0 0;
  font-size: 1.05rem;
}

.hero-shell-section .hero-copy {
  grid-column: 1 / span 5;
  width: auto;
  justify-self: stretch;
  align-self: center;
  margin-right: 0;
  padding: clamp(28px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.9), rgba(255, 251, 245, 0.62)),
    radial-gradient(circle at top left, rgba(198, 202, 233, 0.18), transparent 34%);
  box-shadow: 0 30px 76px rgba(63, 73, 92, 0.14);
  backdrop-filter: blur(14px);
}

.hero-shell-section .hero-copy h1 {
  max-width: 11.8ch;
  font-size: clamp(2.7rem, 4vw, 4.5rem);
  line-height: 0.98;
}

.site-lang-en .hero-copy h1,
.site-lang-en .subpage-hero h1,
.site-lang-en .project-hero__copy h1 {
  max-width: 11.8ch;
  font-family: "SUIT Variable", "Pretendard Variable", "Noto Sans", sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.site-lang-en .hero-shell-section .hero-copy {
  width: auto;
  max-width: 580px;
}

.site-lang-en .subpage-hero__copy,
.site-lang-en .project-hero__copy {
  max-width: 860px;
}

.hero-shell-section .hero-description {
  max-width: 33rem;
  margin-top: 18px;
  font-size: 1rem;
}

.hero-shell-section .cta-row {
  margin-top: 22px;
}

.hero-shell-section .stats-row {
  margin-top: 28px;
  gap: 14px;
}

.hero-shell-section .stats-row dd {
  font-size: 1.06rem;
}

.hero-shell-section .hero-art {
  grid-column: 6 / -1;
  width: auto;
  min-height: 0;
  justify-self: stretch;
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(240px, 0.9fr);
  grid-template-rows: minmax(230px, 1fr) minmax(230px, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.58), rgba(255, 251, 245, 0.3)),
    radial-gradient(circle at top right, rgba(111, 125, 103, 0.14), transparent 30%),
    linear-gradient(rgba(94, 115, 199, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 115, 199, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  box-shadow: 0 28px 70px rgba(63, 73, 92, 0.14);
  backdrop-filter: blur(12px);
}

.subpage-hero {
  min-height: clamp(620px, 80svh, 840px);
}

.subpage-hero__copy,
.project-hero__copy {
  width: min(100% - 48px, 640px);
  max-width: 640px;
  min-height: clamp(300px, 44svh, 440px);
  margin-top: clamp(48px, 10vh, 84px);
  margin-left: clamp(24px, 4vw, 56px);
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: clamp(24px, 2.8vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.8), rgba(255, 251, 245, 0.48));
  box-shadow: 0 28px 76px rgba(58, 66, 82, 0.14);
  backdrop-filter: blur(16px);
}

.subpage-hero__copy h1,
.project-hero__copy h1 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 3.9vw, 4.25rem);
  line-height: 0.99;
}

.subpage-hero__copy .muted-text,
.project-hero__copy .muted-text {
  max-width: 30rem;
  font-size: 0.98rem;
  color: rgba(29, 36, 48, 0.78);
}

.subpage-hero--projects .subpage-hero__copy {
  max-width: 680px;
}

.subpage-hero--contact .subpage-hero__copy {
  max-width: 560px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.84), rgba(255, 251, 245, 0.56));
}

.subpage-hero__stage {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 2vw, 28px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.52), rgba(255, 251, 245, 0.28)),
    radial-gradient(circle at top right, rgba(111, 125, 103, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(198, 202, 233, 0.22), transparent 32%);
  box-shadow: 0 28px 76px rgba(63, 73, 92, 0.14);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.subpage-hero__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(94, 115, 199, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 115, 199, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.42;
  pointer-events: none;
}

.subpage-hero__stage > * {
  position: relative;
  z-index: 1;
}

.subpage-hero__stage .subpage-hero__copy {
  grid-column: 1 / span 5;
  width: auto;
  max-width: none;
  min-height: 100%;
  margin: 0;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(28px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.9), rgba(255, 251, 245, 0.66)),
    radial-gradient(circle at top left, rgba(198, 202, 233, 0.16), transparent 36%);
  box-shadow: 0 22px 56px rgba(63, 73, 92, 0.12);
  backdrop-filter: blur(10px);
}

.subpage-hero__stage .subpage-hero__copy h1 {
  max-width: 12.6ch;
  font-size: clamp(2.45rem, 3.8vw, 4.15rem);
  line-height: 0.98;
}

.site-lang-en .subpage-hero__stage .subpage-hero__copy h1 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 3vw, 3.55rem);
  line-height: 1.01;
}

.subpage-hero__stage .subpage-hero__copy .muted-text {
  max-width: 34rem;
  font-size: 1rem;
}

.subpage-hero__points,
.subpage-hero__stacked-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.subpage-hero__points li {
  padding-top: 12px;
  border-top: 1px solid rgba(94, 115, 199, 0.18);
  font-size: 0.93rem;
  color: rgba(29, 36, 48, 0.82);
}

.subpage-hero__aside {
  grid-column: 6 / -1;
  position: relative;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(220px, 0.94fr);
  grid-template-rows: minmax(220px, 1fr) auto;
  grid-template-areas:
    "media float"
    "media rail";
  gap: 16px;
  align-items: stretch;
}

.subpage-hero__stage--projects .subpage-hero__copy,
.subpage-hero__stage--info .subpage-hero__copy,
.subpage-hero__stage--contact .subpage-hero__copy {
  grid-column: 1 / span 5;
  grid-row: 1;
}

.subpage-hero__stage--projects .subpage-hero__aside,
.subpage-hero__stage--info .subpage-hero__aside,
.subpage-hero__stage--contact .subpage-hero__aside {
  grid-column: 6 / -1;
  grid-row: 1;
}

.subpage-hero__stage--properties .subpage-hero__copy {
  grid-column: 8 / -1;
  grid-row: 1;
}

.subpage-hero__stage--properties .subpage-hero__aside {
  grid-column: 1 / span 7;
  grid-row: 1;
}

.subpage-hero__media-card,
.subpage-hero__float-card,
.subpage-hero__metric {
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 24px 70px rgba(63, 73, 92, 0.14);
  backdrop-filter: blur(14px);
}

.subpage-hero__media-card {
  grid-area: media;
  position: relative;
  min-height: 100%;
  padding: clamp(26px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.9), rgba(255, 251, 245, 0.58)),
    radial-gradient(circle at top left, rgba(198, 202, 233, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(111, 125, 103, 0.18), rgba(255, 251, 245, 0.04));
}

.subpage-hero__media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(94, 115, 199, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 115, 199, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.38;
  pointer-events: none;
}

.subpage-hero__media-card.has-cover {
  background-position: center;
  background-size: cover;
}

.subpage-hero__media-card--info {
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.64), rgba(255, 251, 245, 0.34)),
    linear-gradient(135deg, rgba(111, 125, 103, 0.14), rgba(255, 251, 245, 0.08)),
    url("assets/reference/merrily-drawing-02.png");
  background-position: center top;
  background-size: cover;
}

.subpage-hero__media-card--contact {
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.8), rgba(255, 251, 245, 0.5)),
    linear-gradient(135deg, rgba(198, 202, 233, 0.12), rgba(111, 125, 103, 0.14)),
    url("assets/reference/merrily-reference-02.png");
  background-position: center;
  background-size: cover;
}

.subpage-hero__media-card.has-cover::after {
  background:
    linear-gradient(180deg, rgba(17, 24, 19, 0.02), rgba(17, 24, 19, 0.2)),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: cover, 48px 48px, 48px 48px;
}

.subpage-hero__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(94, 115, 199, 0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 250, 242, 0.72);
  color: rgba(29, 36, 48, 0.72);
}

.subpage-hero__media-card.has-cover .subpage-hero__eyebrow {
  background: rgba(29, 36, 48, 0.28);
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(247, 243, 234, 0.92);
}

.subpage-hero__media-card strong,
.subpage-hero__float-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.subpage-hero__media-card strong {
  max-width: 9.6ch;
}

.subpage-hero__media-card p,
.subpage-hero__float-card p {
  position: relative;
  z-index: 1;
  max-width: 22rem;
  margin: 14px 0 0;
  font-size: 0.94rem;
}

.subpage-hero__media-card p {
  color: rgba(29, 36, 48, 0.72);
}

.subpage-hero__media-card.has-cover strong,
.subpage-hero__media-card.has-cover p {
  color: #f7f3ea;
}

.subpage-hero__float-card {
  grid-area: float;
  position: relative;
  width: auto;
  padding: 24px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.88), rgba(255, 251, 245, 0.62));
}

.subpage-hero__float-card strong {
  font-size: clamp(1.18rem, 2vw, 1.72rem);
  line-height: 1.08;
}

.subpage-hero__float-card p {
  color: rgba(29, 36, 48, 0.72);
}

.subpage-hero__stacked-points {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.subpage-hero__stacked-points li {
  padding-top: 8px;
  border-top: 1px solid rgba(94, 115, 199, 0.16);
  font-size: 0.89rem;
  color: rgba(29, 36, 48, 0.84);
}

.subpage-hero__rail {
  grid-area: rail;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: auto;
  z-index: 2;
  align-self: end;
}

.subpage-hero__metric {
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.84);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.subpage-hero__metric span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subpage-hero__metric strong {
  display: block;
  margin-top: 6px;
  font-size: 1.36rem;
  line-height: 1;
}

.section-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(94, 115, 199, 0.82);
}

.cta-row,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.stats-row div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stats-row dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.stats-row dd {
  margin: 8px 0 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-art {
  position: relative;
}

.hero-art__panel {
  position: relative;
  border: 1px solid rgba(94, 115, 199, 0.16);
  border-radius: 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

.hero-art__panel span,
.visual-tile span,
.feature-entry__visual p,
.portfolio-tile__visual span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(94, 115, 199, 0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 250, 242, 0.72);
  color: rgba(29, 36, 48, 0.72);
}

.hero-art__panel strong,
.visual-tile strong,
.feature-entry__visual strong,
.portfolio-tile__visual strong {
  display: block;
  max-width: 14ch;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.08;
  color: var(--text);
}

.hero-art__panel--photo {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 540px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(17, 24, 19, 0.08), rgba(17, 24, 19, 0.5)),
    url("assets/reference/m43-photo-04.png");
  background-position: center;
  background-size: cover;
  animation: float-panel 10s ease-in-out infinite;
}

.hero-art__panel--cad {
  grid-column: 2;
  grid-row: 2;
  padding: 28px;
  background:
    linear-gradient(rgba(94, 115, 199, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 115, 199, 0.09) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 251, 245, 0.88), rgba(198, 202, 233, 0.48)),
    url("assets/reference/merrily-drawing-01.png");
  background-position: center, center, center, center;
  background-size: 38px 38px, 38px 38px, cover, cover;
  animation: float-panel 14s ease-in-out infinite reverse;
}

.hero-art__panel--material {
  grid-column: 2;
  grid-row: 1;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(180deg, rgba(17, 24, 19, 0.1), rgba(17, 24, 19, 0.42)),
    url("assets/reference/m43-photo-05.png");
  background-position: center;
  background-size: cover;
  animation: float-panel 12s ease-in-out infinite;
}

.hero-art__panel--photo span,
.hero-art__panel--material span,
.feature-entry__visual.has-cover p,
.portfolio-tile__visual.has-cover span {
  background: rgba(29, 36, 48, 0.28);
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(247, 243, 234, 0.92);
}

.hero-art__panel--photo strong,
.hero-art__panel--material strong,
.feature-entry__visual.has-cover strong,
.feature-entry__visual.has-cover span,
.portfolio-tile__visual.has-cover strong,
.portfolio-tile__visual.has-cover em {
  color: #f7f3ea;
}

.section {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding: 84px clamp(24px, 3vw, 38px);
  border: 1px solid rgba(94, 115, 199, 0.14);
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(247, 243, 234, 0.82)),
    radial-gradient(circle at top left, rgba(198, 202, 233, 0.16), transparent 26%);
  box-shadow: 0 26px 62px rgba(63, 73, 92, 0.08);
  backdrop-filter: blur(8px);
}

.hero-shell-section + .section,
.subpage-hero + .section {
  margin-top: 30px;
}

.section:nth-of-type(even) {
  background:
    linear-gradient(180deg, rgba(248, 244, 236, 0.96), rgba(239, 234, 222, 0.84)),
    radial-gradient(circle at top right, rgba(111, 125, 103, 0.12), transparent 26%);
}

.surface-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
}

.section-intro {
  max-width: 54rem;
}

.section-intro h2,
.plain-block h2 {
  margin: 0;
  font-family: "Iropke Batang", "Noto Serif KR", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.pillar-grid,
.audience-grid,
.detail-columns,
.contact-layout,
.metric-grid,
.reference-list,
.property-grid,
.portfolio-list,
.workflow-strip,
.feature-stream {
  display: grid;
  gap: 18px;
}

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

.metric-card,
.plain-block,
.workflow-node,
.portfolio-tile,
.reference-link,
.property-card,
.feature-entry,
.visual-tile {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(63, 73, 92, 0.08);
}

.metric-card,
.plain-block,
.workflow-node,
.portfolio-tile,
.reference-link,
.property-card {
  padding: 24px;
  border-radius: 28px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric-card p,
.property-card h3,
.reference-link strong {
  margin: 0;
}

.metric-card p {
  color: rgba(94, 115, 199, 0.76);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.metric-card span,
.reference-link span {
  color: var(--muted);
}

.reference-list {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-grid {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-card {
  display: grid;
  gap: 14px;
}

.audience-card h3 {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1.18;
}

.reference-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.reference-link:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 115, 199, 0.34);
}

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

.property-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tag-row,
.inline-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag,
.inline-points li,
.project-meta-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(94, 115, 199, 0.18);
  background: rgba(255, 250, 242, 0.74);
  color: rgba(29, 36, 48, 0.82);
  font-size: 0.78rem;
}

.feature-entry {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 20px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, var(--entry-mesh), transparent 26%),
    linear-gradient(140deg, color-mix(in srgb, var(--entry-from) 18%, white 82%), color-mix(in srgb, var(--entry-to) 30%, white 70%));
}

.feature-entry__visual,
.portfolio-tile__visual,
.visual-tile {
  min-height: 260px;
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(rgba(94, 115, 199, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 115, 199, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(198, 202, 233, 0.42), rgba(255, 250, 242, 0.74) 70%);
  background-size: 34px 34px, 34px 34px, cover;
}

.feature-entry__visual.has-cover,
.portfolio-tile__visual.has-cover {
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -160px 120px rgba(29, 36, 48, 0.3);
}

.feature-entry__visual.has-cover p,
.feature-entry__visual.has-cover strong,
.feature-entry__visual.has-cover span,
.portfolio-tile__visual.has-cover span,
.portfolio-tile__visual.has-cover strong,
.portfolio-tile__visual.has-cover em {
  text-shadow: 0 10px 32px rgba(29, 36, 48, 0.46);
}

.feature-entry__body,
.portfolio-tile__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.feature-entry__body h3,
.portfolio-tile__body h3,
.plain-block h3,
.workflow-node h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.18;
}

.inline-points,
.stacked-list,
.ordered-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stacked-list,
.ordered-list {
  display: grid;
  gap: 10px;
}

.section .plain-block .inline-points {
  margin-top: 4px;
}

.pillar-grid {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-node p:first-child,
.portfolio-tile__index {
  margin: 0;
  color: rgba(29, 36, 48, 0.46);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.portfolio-tile {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  background:
    radial-gradient(circle at top left, var(--tile-mesh), transparent 26%),
    linear-gradient(145deg, color-mix(in srgb, var(--tile-from) 18%, white 82%), color-mix(in srgb, var(--tile-to) 30%, white 70%));
}

.portfolio-tile__visual em {
  display: block;
  margin-top: 12px;
  color: rgba(29, 36, 48, 0.74);
  font-style: normal;
}

.project-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-detail {
  display: grid;
  gap: 28px;
}

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

.visual-triptych {
  display: grid;
  grid-template-columns: 1.1fr 1.05fr 0.85fr;
  gap: 18px;
}

.visual-tile {
  min-height: 320px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, var(--tile-mesh), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--tile-from) 18%, white 82%), color-mix(in srgb, var(--tile-to) 30%, white 70%));
}

.visual-tile--cad {
  background:
    linear-gradient(rgba(94, 115, 199, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 115, 199, 0.09) 1px, transparent 1px),
    radial-gradient(circle at top left, var(--tile-mesh), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--tile-from) 24%, white 76%), color-mix(in srgb, var(--tile-to) 36%, white 64%));
  background-size: 28px 28px, 28px 28px, cover, cover;
}

.visual-tile--photo {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--tile-accent) 44%, transparent), transparent 24%),
    linear-gradient(145deg, color-mix(in srgb, var(--tile-to) 24%, white 76%), color-mix(in srgb, var(--tile-from) 20%, white 80%));
}

.visual-tile--material {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(145deg, color-mix(in srgb, var(--tile-from) 20%, white 80%), color-mix(in srgb, var(--tile-to) 28%, white 72%));
}

.ordered-list {
  counter-reset: step;
}

.ordered-list li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}

.ordered-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.75rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-chip.is-active {
  background: var(--accent);
  color: #f8f7f3;
  border-color: transparent;
}

.closing-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.closing-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.featured-media {
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.featured-media img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  display: block;
}

.document-list {
  display: grid;
  gap: 14px;
}

.document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
}

.document-link span {
  color: var(--accent);
}

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

.asset-card {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.92);
}

.asset-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.contact-form-shell,
.form-grid {
  display: grid;
  gap: 18px;
}

.contact-form-shell {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.contact-form-aside {
  display: grid;
  gap: 18px;
}

.contact-jotform-shell {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.78);
  box-shadow: var(--shadow);
}

.contact-jotform-frame {
  display: block;
  width: 100%;
  height: 1760px;
  border: 0;
  background: #fff;
}

.inquiry-form {
  display: grid;
  gap: 18px;
}

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

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

.form-field label {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.84);
  color: var(--text);
  font: inherit;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(29, 36, 48, 0.42);
}

.form-field select option {
  color: var(--text);
  background: #fffaf3;
}

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

.inquiry-notice {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.inquiry-notice strong {
  display: block;
  margin-bottom: 6px;
}

.inquiry-notice p {
  margin: 0;
  color: var(--muted);
}

.inquiry-notice.is-success {
  background: rgba(111, 125, 103, 0.12);
  border-color: rgba(111, 125, 103, 0.24);
}

.inquiry-notice.is-error {
  background: rgba(168, 116, 98, 0.12);
  border-color: rgba(168, 116, 98, 0.24);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  margin: 0;
  font-size: 1.6rem;
}

.footer-links,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: var(--muted);
}

.text-link {
  width: fit-content;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.rich-copy > *:first-child {
  margin-top: 0;
}

.rich-copy > *:last-child {
  margin-bottom: 0;
}

.jj-ai-agent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  justify-items: end;
  gap: 14px;
  width: min(380px, calc(100vw - 32px));
}

.jj-ai-agent__launcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 14px 18px;
  border: 1px solid rgba(65, 96, 168, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 242, 235, 0.96), rgba(229, 238, 233, 0.94));
  box-shadow: 0 16px 36px rgba(18, 24, 30, 0.16);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(18px);
  width: 100%;
}

.jj-ai-agent__launcher-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.jj-ai-agent__launcher-copy strong {
  font-size: 0.96rem;
}

.jj-ai-agent__launcher-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jj-ai-agent__pulse {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #587bd9;
  flex-shrink: 0;
}

.jj-ai-agent__pulse::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  background: rgba(88, 123, 217, 0.18);
  animation: jj-ai-agent-pulse 2.4s ease-out infinite;
}

.jj-ai-agent__panel {
  width: 100%;
  max-height: min(76vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(65, 96, 168, 0.14);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(247, 244, 238, 0.96), rgba(244, 239, 229, 0.94));
  box-shadow: 0 28px 70px rgba(18, 24, 30, 0.22);
  backdrop-filter: blur(20px);
}

.jj-ai-agent__panel[hidden] {
  display: none !important;
}

.jj-ai-agent__panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.jj-ai-agent__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jj-ai-agent__brand img {
  width: auto;
  height: 34px;
  display: block;
}

.jj-ai-agent__brand strong,
.jj-ai-agent__panel-head strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.jj-ai-agent__brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.jj-ai-agent__close {
  border: 0;
  border-radius: 999px;
  background: rgba(26, 32, 44, 0.08);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

.jj-ai-agent__messages {
  min-height: 220px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 4px;
}

.jj-ai-agent__message {
  display: flex;
  width: 100%;
}

.jj-ai-agent__message--assistant {
  justify-content: flex-start;
}

.jj-ai-agent__message--user {
  justify-content: flex-end;
}

.jj-ai-agent__bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 0.96rem;
  line-height: 1.5;
  box-shadow: 0 14px 30px rgba(36, 46, 59, 0.08);
}

.jj-ai-agent__message--assistant .jj-ai-agent__bubble {
  border: 1px solid rgba(65, 96, 168, 0.12);
  background: rgba(255, 252, 246, 0.92);
  color: var(--text);
}

.jj-ai-agent__message--user .jj-ai-agent__bubble {
  background: linear-gradient(135deg, rgba(94, 115, 199, 0.94), rgba(79, 96, 170, 0.92));
  color: #f8f7f3;
}

.jj-ai-agent__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jj-ai-agent__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(65, 96, 168, 0.18);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.jj-ai-agent__chip:hover {
  transform: translateY(-1px);
  border-color: rgba(65, 96, 168, 0.34);
}

.jj-ai-agent__chip--ghost {
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
}

.jj-ai-agent__chip--link {
  text-decoration: none;
}

.jj-ai-agent__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.jj-ai-agent__input {
  width: 100%;
  min-height: 50px;
  max-height: 140px;
  padding: 14px 16px;
  border: 1px solid rgba(65, 96, 168, 0.16);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.9);
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  resize: none;
}

.jj-ai-agent__input:focus {
  outline: 2px solid rgba(94, 115, 199, 0.2);
  border-color: rgba(94, 115, 199, 0.44);
}

.jj-ai-agent__send {
  min-width: 86px;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: #f8f7f3;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(94, 115, 199, 0.2);
}

.jj-ai-agent__send:disabled,
.jj-ai-agent__input:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.jj-ai-agent__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.jj-jotform-bridge {
  position: fixed;
  right: max(16px, env(safe-area-inset-right) + 16px);
  bottom: max(16px, env(safe-area-inset-bottom) + 16px);
  z-index: 100000002;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  min-width: 70px;
  min-height: 70px;
  padding: 0;
  border: 1px solid rgba(65, 96, 168, 0.18);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(246, 243, 237, 0.98), rgba(236, 241, 238, 0.96));
  box-shadow: 0 18px 40px rgba(18, 24, 30, 0.18);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.jj-jotform-bridge[hidden] {
  display: none !important;
}

.jj-jotform-bridge img {
  width: 44px;
  max-width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.jj-jotform-bridge__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #587bd9;
  box-shadow: 0 0 0 7px rgba(88, 123, 217, 0.16);
  flex-shrink: 0;
}

.jj-jotform-bridge__copy {
  display: none;
}

.jj-jotform-bridge__copy strong {
  font-size: 0.94rem;
  line-height: 1.1;
}

.jj-jotform-bridge__copy small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jj-jotform-bridge.is-open {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.96);
}

.jj-jotform-bridge:hover,
.jj-jotform-bridge:focus-visible {
  box-shadow: 0 22px 48px rgba(18, 24, 30, 0.22);
  transform: translateY(-2px);
}

.embedded-agent-container,
.embedded-agent-container .ai-agent-chat-avatar-container,
.embedded-agent-container iframe[src*="embedMode=popover"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.embedded-agent-container {
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  z-index: -1 !important;
}

.ai-agent-chat-animation-container {
  z-index: 100000001 !important;
}

#jj-jotform-modal-root {
  position: relative;
  z-index: 100000003;
}

.ai-agent-modal-view {
  position: fixed !important;
  top: auto !important;
  right: max(16px, env(safe-area-inset-right) + 16px) !important;
  bottom: max(16px, env(safe-area-inset-bottom) + 16px) !important;
  left: auto !important;
  width: min(380px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 100000004 !important;
}

.ai-agent-modal-content {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ai-agent-modal-view .ai-agent-chat-cover {
  display: block !important;
  width: 100% !important;
  height: min(72vh, 680px) !important;
  max-height: calc(100vh - 120px) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #f7f4ef !important;
  box-shadow: 0 24px 60px rgba(18, 24, 30, 0.24) !important;
}

.ai-agent-modal-view iframe[src*="/agent/"] {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: min(72vh, 680px) !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: #ffffff !important;
}

.ai-agent-chat-close-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  z-index: 100000005 !important;
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(16, 24, 40, 0.64) !important;
  color: #ffffff !important;
}

@keyframes jj-ai-agent-pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes drift-grid {
  from { transform: translateY(0); }
  50% { transform: translateY(14px); }
  to { transform: translateY(0); }
}

@keyframes hero-scene-pan {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1.5%, -1.2%, 0); }
}

@keyframes float-panel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop,
  .hero-backdrop__video,
  .hero-art__panel,
  .subpage-hero__float-card,
  .jj-ai-agent__pulse::after {
    animation: none !important;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .surface-panel,
  .feature-entry,
  .portfolio-tile,
  .detail-columns,
  .visual-triptych,
  .contact-layout,
  .contact-form-shell,
  .form-grid,
  .pillar-grid,
  .audience-grid,
  .workflow-strip,
  .metric-grid,
  .property-grid,
  .reference-list,
  .portfolio-list,
  .asset-gallery {
    grid-template-columns: 1fr;
  }

  .closing-banner {
    flex-direction: column;
    align-items: start;
  }

  .hero-shell-section .hero-grid {
    max-width: 760px;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .subpage-hero__stage {
    max-width: 760px;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .hero-shell-section .hero-copy,
  .hero-shell-section .hero-art {
    width: 100%;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .hero-shell-section .hero-art {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }

  .subpage-hero__stage--projects .subpage-hero__copy,
  .subpage-hero__stage--info .subpage-hero__copy,
  .subpage-hero__stage--contact .subpage-hero__copy,
  .subpage-hero__stage--properties .subpage-hero__copy {
    grid-column: 1 / -1;
    grid-row: auto;
    order: 1;
  }

  .subpage-hero__stage--projects .subpage-hero__aside,
  .subpage-hero__stage--info .subpage-hero__aside,
  .subpage-hero__stage--contact .subpage-hero__aside,
  .subpage-hero__stage--properties .subpage-hero__aside {
    grid-column: 1 / -1;
    grid-row: auto;
    order: 2;
  }

  .subpage-hero__aside {
    grid-column: 1 / -1;
    min-height: auto;
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  }

  .subpage-hero__media-card {
    min-height: 320px;
  }

  .subpage-hero__stage .subpage-hero__copy {
    grid-column: auto;
  }

  .subpage-hero__copy,
  .project-hero__copy {
    width: auto;
    max-width: none;
    margin-left: 24px;
    margin-right: 24px;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
  }

  .hero-shell-section .site-header,
  .subpage-hero .site-header {
    gap: 12px;
    padding: 14px 16px;
    border-radius: 0 0 28px 28px;
  }

  .brandmark__logo {
    height: 52px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav__list {
    justify-content: flex-start;
    gap: 10px 14px;
    font-size: 0.92rem;
  }

  .site-header__controls {
    width: 100%;
    justify-content: space-between;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 24px;
    gap: 22px;
  }

  .subpage-hero__stage {
    padding: 18px;
    gap: 18px;
  }

  .hero-shell-section .hero-grid {
    max-width: none;
    grid-template-columns: 1fr;
    padding-bottom: 38px;
  }

  .hero-shell-section .hero-copy {
    margin: 0;
    padding: 22px 20px;
    border-radius: 28px;
  }

  .hero-copy h1,
  .subpage-hero h1,
  .project-hero__copy h1 {
    max-width: none;
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .hero-shell-section .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.2rem, 10vw, 3.1rem);
    line-height: 1.01;
  }

  .hero-shell-section .hero-description {
    font-size: 0.94rem;
  }

  .hero-shell-section .section-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .section {
    margin-top: 20px;
    padding: 64px 20px;
    border-radius: 28px;
  }

  .hero-grid,
  .subpage-hero__copy,
  .project-hero__copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .subpage-hero {
    min-height: 560px;
  }

  .subpage-hero__copy,
  .project-hero__copy {
    min-height: 260px;
    margin: 36px 20px 0;
    padding: 22px 20px;
    border-radius: 28px;
  }

  .subpage-hero__stage .subpage-hero__copy {
    min-height: unset;
    margin: 0;
    padding: 22px 20px;
  }

  .subpage-hero__copy h1,
  .project-hero__copy h1 {
    max-width: 12ch;
    font-size: clamp(2.05rem, 8.6vw, 3.1rem);
  }

  .subpage-hero__stage .subpage-hero__copy h1,
  .site-lang-en .subpage-hero__stage .subpage-hero__copy h1 {
    max-width: none;
    font-size: clamp(2.05rem, 8.2vw, 3rem);
  }

  .subpage-hero__stage .subpage-hero__copy .muted-text {
    max-width: none;
  }

  .subpage-hero__aside {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "float"
      "rail";
  }

  .subpage-hero__points,
  .subpage-hero__rail {
    grid-template-columns: 1fr;
  }

  .subpage-hero__media-card,
  .subpage-hero__float-card,
  .subpage-hero__metric {
    border-radius: 28px;
  }

  .subpage-hero__media-card {
    min-height: 260px;
    padding: 22px 20px;
  }

  .subpage-hero__float-card,
  .subpage-hero__metric {
    padding: 18px;
  }

  .hero-art {
    display: none;
  }

  .hero-backdrop__video {
    display: none;
  }

  .jj-jotform-bridge {
    right: max(14px, env(safe-area-inset-right) + 14px);
    bottom: max(14px, env(safe-area-inset-bottom) + 14px);
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    padding: 0;
    border-radius: 999px;
  }

  .jj-ai-agent {
    right: 16px;
    bottom: 16px;
    left: 16px;
    justify-items: stretch;
  }

  .jj-ai-agent__launcher,
  .jj-ai-agent__panel {
    width: 100%;
  }

  .jj-ai-agent__panel {
    padding: 18px;
    border-radius: 24px;
  }

  .jj-ai-agent__brand {
    gap: 10px;
  }

  .jj-ai-agent__brand img {
    height: 28px;
  }

  .jj-jotform-bridge img {
    width: 38px;
    max-width: 38px;
    height: 38px;
  }

  .ai-agent-modal-view {
    right: max(8px, env(safe-area-inset-right) + 8px) !important;
    bottom: max(8px, env(safe-area-inset-bottom) + 8px) !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
  }

  .ai-agent-modal-view .ai-agent-chat-cover,
  .ai-agent-modal-view iframe[src*="/agent/"] {
    min-height: min(74vh, 620px) !important;
    height: min(74vh, 620px) !important;
    max-height: calc(100vh - 96px) !important;
    border-radius: 22px !important;
  }

  .ai-agent-chat-close-btn {
    top: 8px !important;
    right: 8px !important;
  }

  .jj-ai-agent__composer {
    grid-template-columns: 1fr;
  }

  .jj-ai-agent__send {
    width: 100%;
  }

  .contact-jotform-frame {
    height: 1880px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 18px 14px 0;
    gap: 14px;
  }

  .hero-shell-section .site-header,
  .subpage-hero .site-header {
    gap: 10px 12px;
    padding: 14px;
    border-radius: 0 0 24px 24px;
  }

  .brandmark {
    min-height: 46px;
  }

  .brandmark__logo {
    height: 44px;
  }

  .site-nav {
    min-width: 0;
  }

  .site-nav__list {
    justify-content: flex-start;
    gap: 8px 12px;
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .site-header__controls {
    gap: 10px;
  }

  .language-switch {
    padding: 5px 6px;
  }

  .header-cta,
  .button-primary,
  .button-secondary {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.95rem;
  }

  .hero-grid,
  .subpage-hero__copy,
  .project-hero__copy {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-shell-section .hero-copy,
  .subpage-hero__copy,
  .project-hero__copy {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .hero-shell-section .hero-copy h1 {
    font-size: clamp(2rem, 12vw, 2.7rem);
  }

  .subpage-hero__copy h1,
  .project-hero__copy h1,
  .subpage-hero__stage .subpage-hero__copy h1,
  .site-lang-en .subpage-hero__stage .subpage-hero__copy h1 {
    font-size: clamp(1.86rem, 10.2vw, 2.6rem);
    line-height: 1.03;
  }

  .hero-shell-section .hero-description,
  .subpage-hero__stage .subpage-hero__copy .muted-text,
  .project-hero__copy .muted-text {
    font-size: 0.92rem;
  }

  .cta-row,
  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cta-row .button-primary,
  .cta-row .button-secondary,
  .detail-actions .button-primary,
  .detail-actions .button-secondary {
    width: 100%;
  }

  .stats-row {
    gap: 12px;
  }

  .jj-jotform-bridge {
    right: max(12px, env(safe-area-inset-right) + 12px);
    bottom: max(12px, env(safe-area-inset-bottom) + 12px);
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }

  .jj-jotform-bridge img {
    width: 32px;
    max-width: 32px;
    height: 32px;
  }

  .jj-ai-agent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .jj-ai-agent__panel {
    padding: 16px;
    border-radius: 22px;
  }

  .contact-jotform-frame {
    height: 1980px;
  }
}
