@font-face {
  font-family: "TASA Explorer";
  src: url("assets/fonts/TASA_Explorer/TASAExplorer-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --ink: #15171c;
  --muted: #65707f;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --line: #d9dfe8;
  --clay: #64748b;
  --moss: #0f62fe;
  --steel: #1e2633;
  --amber: #8fb8ff;
  --cobalt: #0f62fe;
  --charcoal: #15171c;
  --silver: #c7ccd4;
  --shadow: 0 24px 70px rgba(21, 23, 28, 0.16);
  font-family:
    "TASA Explorer",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(15, 98, 254, 0.12), transparent 28rem),
    linear-gradient(180deg, #f7f9fc, #eef3f8 48%, #f6f8fb);
  color: var(--ink);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(21, 23, 28, 0.88);
  border-bottom: 1px solid rgba(199, 204, 212, 0.2);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(143, 184, 255, 0.82);
  background: rgba(15, 98, 254, 0.14);
  font-family: "TASA Explorer", system-ui, sans-serif;
  font-size: 21px;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.brand-copy strong,
.brand-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  max-width: min(46vw, 520px);
}

.brand-copy span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  max-width: min(48vw, 560px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.main-nav a {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.82);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(199, 204, 212, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header.detail-header .brand-mark,
.site-header.detail-header .icon-button {
  border-color: var(--line);
  background: rgba(11, 126, 164, 0.06);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 46vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 17, 28, 0.86), rgba(11, 17, 28, 0.54) 48%, rgba(15, 98, 254, 0.08)),
    linear-gradient(0deg, rgba(11, 17, 28, 0.8), rgba(11, 17, 28, 0.05) 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 0 clamp(18px, 9vw, 140px);
  padding: 90px 0 5vh;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1120px;
  margin-bottom: 18px;
  font-family: "TASA Explorer", system-ui, sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  line-height: 0.98;
  white-space: pre-line;
}

.hero-content p:not(.eyebrow) {
  max-width: 1120px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 10px 18px;
  font-weight: 700;
}

.button.primary {
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 98, 254, 0.28);
}

.button.secondary {
  border: 1px solid rgba(199, 204, 212, 0.68);
  color: inherit;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #0f1722;
  border-bottom: 1px solid rgba(199, 204, 212, 0.18);
}

.status-band div {
  min-width: 0;
  padding: 18px clamp(18px, 4vw, 56px);
  background: #151b25;
}

.status-band span {
  display: block;
  color: rgba(199, 204, 212, 0.7);
  font-size: 12px;
}

.status-band strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}

.section-grid,
.updates-section,
.contact-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 43px 0;
}

.studio-intro {
  max-width: 760px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 17px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
}

.section-heading h2 {
  margin: 0;
  font-family: "TASA Explorer", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.08;
}

.metrics-section .section-heading h2 {
  width: 6em;
  max-width: 100%;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.section-heading.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric {
  min-width: 0;
  padding: 14px 28px;
  background: var(--surface);
}

.metric strong {
  display: block;
  color: var(--cobalt);
  font-family: "TASA Explorer", system-ui, sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.trust-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(15, 98, 254, 0.06), rgba(255, 255, 255, 0)),
    #fff;
}

.trust-grid span {
  display: block;
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.trust-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.case-study-rail {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.1), rgba(199, 204, 212, 0.08)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 44px rgba(21, 23, 28, 0.08);
}

.case-study-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.case-study-head h3 {
  margin: 0;
  font-size: 24px;
}

.rail-controls {
  display: flex;
  gap: 8px;
}

.rail-controls button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.case-study-track {
  display: grid;
  grid-auto-columns: minmax(280px, 44%);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.case-more-link {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  border: 2px solid var(--cobalt);
  border-radius: 6px;
  padding: 12px 16px;
  background: rgba(15, 98, 254, 0.06);
  color: var(--cobalt);
  font-weight: 800;
}

.case-more-link::after {
  content: "→";
  font-size: 20px;
}

.case-study-card {
  scroll-snap-align: start;
  min-width: 0;
  border: 1px solid rgba(199, 204, 212, 0.8);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.case-study-media {
  aspect-ratio: 16 / 9;
  background: #dce3ed;
  overflow: hidden;
}

.case-study-media img,
.case-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-body {
  padding: 18px;
}

.case-study-body span {
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 800;
}

.case-study-body h3 {
  margin: 8px 0;
  font-size: 20px;
}

.case-study-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-category {
  display: grid;
  gap: 14px;
}

.project-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.project-category-heading h2,
.project-category-heading h3 {
  margin: 0;
  color: var(--moss);
  font-size: 22px;
}

.project-category-heading span {
  color: var(--muted);
  font-size: 13px;
}

.project-category-heading p {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.project-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(21, 23, 28, 0.08);
  overflow: hidden;
}

.placeholder-card {
  border-style: dashed;
}

.placeholder-card .project-media img {
  object-fit: cover;
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.18), rgba(199, 204, 212, 0.26)),
    #dce3ed;
  overflow: hidden;
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 22px;
}

.project-body h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.project-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--cobalt);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(94, 117, 104, 0.3);
  text-underline-offset: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.project-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 12px;
}

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

.regulation-card,
.useful-link {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.regulation-card:hover,
.useful-link:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 98, 254, 0.45);
  box-shadow: 0 14px 34px rgba(32, 37, 37, 0.09);
}

.regulation-card {
  display: grid;
  gap: 8px;
  padding: 24px;
}

.regulation-card span,
.useful-link span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
}

.regulation-card h3 {
  margin: 0;
  font-size: 20px;
}

.regulation-card p {
  margin: 0;
  color: var(--muted);
}

.useful-link {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.useful-link strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.updates-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.updates-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.section-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.more-link::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.update-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface);
}

.update-item time {
  color: var(--muted);
  font-size: 13px;
}

.update-item h3 {
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 1.35;
}

.update-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.service-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
}

.service-item h3 a {
  text-decoration: underline;
  text-decoration-color: rgba(94, 117, 104, 0.26);
  text-underline-offset: 4px;
}

.service-index {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--moss);
  border-radius: 50%;
  color: var(--moss);
  font-family: "TASA Explorer", system-ui, sans-serif;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
  align-items: center;
  padding-bottom: 96px;
}

.contact-section h2 {
  margin: 0;
  font-family: "TASA Explorer", system-ui, sans-serif;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.08;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.26), transparent),
    var(--steel);
  color: #fff;
  box-shadow: var(--shadow);
}

.contact-panel a {
  overflow-wrap: anywhere;
  font-size: 20px;
}

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

.line-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.line-qr-card {
  margin: 0;
}

.line-qr-card--primary {
  aspect-ratio: 343 / 384;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: #fff;
}

.line-qr-image {
  display: block;
  width: 100%;
  aspect-ratio: 343 / 384;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: #fff;
}

.detail-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(94, 117, 104, 0.12), rgba(168, 121, 89, 0.08)),
    var(--paper);
}

.detail-header {
  position: sticky;
  color: var(--ink);
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.detail-header .brand-mark,
.detail-header .icon-button {
  border-color: var(--line);
}

.detail-header .brand-copy span {
  color: var(--muted);
}

.detail-main {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 100px;
}

.back-link {
  color: var(--moss);
  font-weight: 700;
}

.detail-shell {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 56px) clamp(28px, 6vw, 64px) clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.detail-shell h1 {
  color: var(--ink);
}

.detail-shell p {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}

.detail-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--line);
}

.detail-highlights article {
  min-width: 0;
  padding: 18px;
  background: #fbfaf6;
}

.detail-highlights span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-highlights strong {
  display: block;
  margin-top: 6px;
  color: var(--moss);
  font-size: 18px;
  line-height: 1.35;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.detail-button.primary {
  background: var(--steel);
  color: #fff;
}

.detail-button.secondary {
  border-color: var(--moss);
  color: var(--moss);
}

.service-detail-content {
  display: grid;
  gap: 28px;
  margin-top: 18px;
}

.detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.72);
}

.service-news-section {
  padding: 20px 28px;
}

.service-news-section .detail-section-heading {
  margin-bottom: 14px;
}

.service-news-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-news-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 18px;
  background: #fff;
}

.service-news-item time {
  color: var(--muted);
  font-size: 13px;
}

.service-news-item span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.service-news-item h3 {
  margin: 4px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.service-news-item h3 a {
  color: inherit;
  text-decoration: none;
}

.service-news-item h3 a:hover {
  color: var(--accent);
}

.service-news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.detail-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.detail-section h2,
.detail-info-card h2,
.consult-box h2 {
  margin: 0 0 14px;
  font-family: "TASA Explorer", system-ui, sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.12;
}

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

.process-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.process-step > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(94, 117, 104, 0.12);
  color: var(--moss);
  font-family: "TASA Explorer", system-ui, sans-serif;
  font-weight: 700;
}

.process-step h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.process-step p,
.split-section p {
  margin: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.source-image-link {
  display: block;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.source-image-link img {
  display: block;
  width: 100%;
  min-width: 520px;
}

.about-main {
  display: grid;
  gap: 28px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.about-hero-copy {
  min-width: 0;
}

.about-hero-media {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(199, 204, 212, 0.6);
  border-radius: 8px;
  background: #f7f9fc;
}

.about-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.about-section-heading h2 {
  margin: 0;
  font-family: "TASA Explorer", system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
}

#architectMessageTitle {
  font-size: clamp(30px, 3.4vw, 46px);
  white-space: nowrap;
}

.about-panel,
.about-card,
.about-timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 98, 254, 0.05), rgba(255, 255, 255, 0)),
    #fff;
}

.about-panel {
  padding: clamp(24px, 4vw, 42px);
}

.about-message {
  max-width: 860px;
}

.about-message p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.about-message p:last-child {
  margin-bottom: 0;
}

.architect-profile {
  display: grid;
  gap: 26px;
}

.architect-profile-lead span,
.architect-profile h4 {
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.architect-profile-lead h3 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 500;
}

.architect-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.architect-profile-grid section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.architect-profile h4 {
  margin: 0 0 16px;
}

.credential-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.credential-list div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.credential-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.credential-list dt {
  color: var(--ink);
  font-weight: 800;
}

.credential-list dd,
.credential-highlight p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.credential-highlight strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 18px;
}

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

.about-card {
  padding: 22px;
}

.about-card span,
.about-timeline span {
  display: block;
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.about-card h3,
.about-timeline h3 {
  margin: 10px 0 8px;
  font-size: 20px;
}

.about-card p,
.about-timeline p {
  margin: 0;
  color: var(--muted);
}

.about-timeline {
  display: grid;
  gap: 12px;
}

.about-timeline article {
  position: relative;
  padding: 22px 22px 22px 34px;
}

.about-timeline article::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: 999px;
  background: var(--cobalt);
}

.about-awards {
  gap: 16px;
}

.about-award-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
}

.featured-award {
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.08), rgba(199, 204, 212, 0.06)),
    #fff;
}

.award-copy {
  align-self: start;
}

.award-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

.award-media-grid figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
}

.award-media-grid img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
}

.award-media-grid figure:nth-child(2) img {
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.award-media-single {
  grid-template-columns: minmax(0, 1fr);
}

.award-media-single img {
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.award-media-grid figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.detail-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  padding: 0;
  background: transparent;
}

.detail-info-card,
.consult-box {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.detail-info-card ul,
.document-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.detail-info-card li,
.document-list li {
  margin: 0 0 10px;
}

.consult-box {
  background: var(--steel);
  color: #fff;
}

.consult-box p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.74);
}

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

.resource-link {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: #fff;
  color: var(--moss);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.old-house-page .detail-main {
  width: min(1160px, calc(100% - 36px));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--moss);
}

.old-house-intro h1 {
  max-width: 880px;
  font-size: clamp(16px, 4.4vw, 56px);
  line-height: 1.08;
  white-space: nowrap;
}

.old-house-intro > p:not(.eyebrow):not(.source-stamp) {
  max-width: 880px;
  line-height: 1.75;
}

.source-stamp {
  max-width: none !important;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px !important;
}

.expertise-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 18px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
}

.expertise-note strong {
  font-size: 18px;
}

.expertise-note p {
  margin: 0;
  color: var(--muted);
}

.expertise-note a,
.service-news-section .detail-section-heading > a {
  color: var(--accent);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.line-qr-card--primary .line-qr-image {
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
}

.line-qr-caption {
  display: flex;
  min-height: 10.7%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: clamp(7px, 0.65vw, 11px);
  line-height: 1.35;
  text-align: center;
}

.line-qr-caption strong {
  font-weight: 500;
}

.faq-item summary {
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.7;
}

.regulation-detail-page .detail-shell {
  background: #fbfaf6;
}

.section-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.interpretation-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: interpretation;
}

.interpretation-list li {
  counter-increment: interpretation;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.interpretation-list li::before {
  content: counter(interpretation, decimal-leading-zero);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(168, 121, 89, 0.12);
  color: var(--clay);
  font-family: "TASA Explorer", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.interpretation-list div {
  min-width: 0;
}

.interpretation-list strong,
.interpretation-list span {
  display: block;
}

.interpretation-list strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.interpretation-list span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.interpretation-list a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--moss);
  border-radius: 4px;
  padding: 8px 14px;
  color: var(--moss);
  font-weight: 700;
  white-space: nowrap;
}

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

.nlma-category-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(21, 23, 28, 0.07);
}

.nlma-category-card span,
.nlma-title-item em {
  color: #d92d20;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.nlma-category-card strong {
  color: var(--cobalt);
  font-size: 28px;
}

.nlma-category-card p {
  margin: 0;
  color: var(--muted);
}

.nlma-title-list {
  display: grid;
  gap: 10px;
}

.nlma-title-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.nlma-title-item.is-priority {
  border-color: rgba(217, 45, 32, 0.38);
  background: linear-gradient(90deg, rgba(217, 45, 32, 0.08), #fff 44%);
}

.nlma-title-item time {
  color: var(--muted);
  font-size: 13px;
}

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

.nlma-title-item strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.nlma-title-item.is-priority strong {
  color: #d92d20;
}

.nlma-title-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.nlma-article-content {
  display: grid;
  gap: 18px;
  color: var(--muted);
}

.nlma-article-content p {
  margin: 0;
}

.nlma-article-content dl {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.nlma-article-content dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: #fff;
}

.nlma-article-content dt {
  color: var(--ink);
  font-weight: 800;
}

.nlma-article-content dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.practice-site {
  min-height: 100vh;
  background: #f3f6fb;
  color: var(--ink);
}

.practice-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.practice-header .brand-mark {
  border-color: var(--line);
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 36px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 96px;
}

.practice-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 20px;
}

.practice-sidebar h1 {
  margin: 0;
  font-family: "TASA Explorer", system-ui, sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  line-height: 0.98;
}

.practice-sidebar p {
  margin: 0;
  color: var(--muted);
}

.practice-source {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.practice-source span,
.practice-categories span,
.practice-file span {
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 700;
}

.practice-source strong {
  font-size: 17px;
}

.practice-source a {
  width: fit-content;
  color: var(--cobalt);
  font-weight: 700;
}

.practice-categories {
  display: grid;
  gap: 10px;
}

.practice-categories a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.practice-feed {
  display: grid;
  gap: 22px;
}

.practice-feed-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.practice-feed-head h2 {
  margin: 0;
  font-family: "TASA Explorer", system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
}

.practice-post {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(32, 37, 37, 0.08);
}

.practice-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 700;
}

.practice-post h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
}

.practice-post p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.practice-post-cover {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.practice-post-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}

.practice-file-list {
  display: grid;
  gap: 10px;
}

.practice-file {
  display: grid;
  grid-template-columns: 140px 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbff;
}

.practice-file img {
  width: 140px;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.practice-file strong {
  display: block;
  overflow-wrap: anywhere;
}

.practice-file em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.practice-file b {
  color: var(--cobalt);
  font-size: 14px;
  white-space: nowrap;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 96px;
}

.admin-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(32, 37, 37, 0.07);
}

.admin-panel h1,
.admin-panel h2 {
  margin: 0;
}

.admin-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-panel input,
.admin-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: #f9fbff;
}

.admin-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.admin-button {
  border: 1px solid var(--cobalt);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  background: var(--cobalt);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-button.secondary {
  color: var(--cobalt);
  background: #fff;
}

.admin-button.danger {
  border-color: #d92d20;
  color: #d92d20;
  background: #fff;
}

.admin-file-editor {
  display: grid;
  gap: 14px;
}

.admin-file-card {
  display: grid;
  grid-template-columns: 150px repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
}

.admin-file-card img {
  width: 150px;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

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

.project-gallery-item {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.project-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-lightbox {
  display: block;
  position: relative;
  color: inherit;
}

.project-lightbox::after {
  content: "VIEW";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.project-lightbox:hover::after,
.project-lightbox:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.project-gallery-item figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.journal-page .detail-main {
  gap: 30px;
}

.journal-hero {
  min-height: auto;
}

.journal-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.journal-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.journal-chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.journal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 28px;
}

.journal-side {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.journal-side > div {
  display: grid;
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
  border: 1px solid var(--line);
}

.journal-side a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.journal-side strong {
  color: var(--accent);
}

.journal-heading {
  margin-bottom: 18px;
}

.journal-list {
  display: grid;
  gap: 12px;
}

.journal-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.journal-card time {
  color: var(--muted);
  font-size: 13px;
}

.journal-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.journal-card h3 {
  margin: 6px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.journal-card h3 a {
  color: inherit;
  text-decoration: none;
}

.journal-card h3 a:hover {
  color: var(--accent);
}

.journal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--cobalt);
}

code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

.modal-backdrop,
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(18px);
}

.modal-backdrop[hidden],
.search-panel[hidden] {
  display: none;
}

.case-modal,
.search-shell {
  position: relative;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  border: 1px solid rgba(199, 204, 212, 0.48);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.case-modal {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.86fr);
}

.case-modal-media {
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.16), rgba(199, 204, 212, 0.16)),
    #dce3ed;
}

.case-modal-body,
.search-shell {
  padding: clamp(24px, 4vw, 42px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(199, 204, 212, 0.7);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--charcoal);
  cursor: pointer;
  font-size: 24px;
}

.case-modal-body h2,
.search-shell h2 {
  margin: 0 0 14px;
  font-family: "TASA Explorer", system-ui, sans-serif;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 520;
  line-height: 1.08;
}

.case-modal-body p {
  color: var(--muted);
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.case-facts div {
  min-width: 0;
  padding: 14px;
  background: #f8fafc;
}

.case-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.case-facts dd {
  margin: 5px 0 0;
  color: var(--charcoal);
  font-weight: 800;
}

.case-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-shell {
  overflow: auto;
}

#globalSearchInput {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--silver);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--charcoal);
  font: inherit;
  font-size: 18px;
  outline: none;
}

#globalSearchInput:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.12);
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.search-result {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: #f8fafc;
}

.search-result span {
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 800;
}

.search-result strong {
  font-size: 18px;
}

.search-result p,
.empty-search {
  margin: 0;
  color: var(--muted);
}

.ai-chat-toggle {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 70;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(143, 184, 255, 0.7);
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 18px 46px rgba(15, 98, 254, 0.32);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.ai-chat-panel {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(88px, 8vw, 112px);
  z-index: 75;
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
  width: min(420px, calc(100vw - 36px));
  max-height: min(680px, calc(100vh - 120px));
  border: 1px solid rgba(199, 204, 212, 0.72);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(21, 23, 28, 0.26);
  overflow: hidden;
}

.ai-chat-panel[hidden] {
  display: none;
}

.ai-chat-head {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 58px 18px 22px;
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.18), rgba(199, 204, 212, 0.08)),
    #f8fafc;
  border-bottom: 1px solid var(--line);
}

.ai-chat-head h2 {
  margin: 0;
  font-size: 24px;
}

.ai-chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  overflow: auto;
  background: #f4f7fb;
}

.ai-chat-message {
  max-width: 92%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.ai-chat-message.user {
  justify-self: end;
  border-color: rgba(15, 98, 254, 0.25);
  background: rgba(15, 98, 254, 0.08);
}

.ai-chat-message.assistant {
  justify-self: start;
}

.ai-chat-message p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.ai-chat-form textarea {
  width: 100%;
  min-height: 54px;
  max-height: 140px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.ai-chat-form button {
  align-self: end;
  min-height: 44px;
  border: 1px solid var(--cobalt);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--cobalt);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

/* Premium real-estate inspired landing style */
:root {
  --ink: #17202f;
  --muted: #64748b;
  --paper: #f3f8fc;
  --surface: #ffffff;
  --line: #dce6f0;
  --moss: #0b83a5;
  --steel: #122033;
  --amber: #c9a76d;
  --cobalt: #0b7ea4;
  --charcoal: #101827;
  --silver: #d9e2ec;
  --accent: #0b7ea4;
  --shadow: 0 24px 70px rgba(18, 32, 51, 0.14);
}

body {
  background:
    linear-gradient(180deg, #edf5fa 0, #f8fbfd 32rem, #ffffff 100%);
}

.site-header {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  padding: 22px clamp(22px, 6vw, 96px);
  background: linear-gradient(180deg, rgba(14, 25, 41, 0.7), rgba(14, 25, 41, 0.16));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.site-header.detail-header {
  position: sticky;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(18, 32, 51, 0.06);
}

.detail-header .main-nav a {
  color: var(--ink);
}

.detail-header .brand-copy span {
  color: var(--muted);
}

.detail-header .brand-mark,
.detail-header .icon-button {
  border-color: var(--line);
  background: rgba(11, 126, 164, 0.06);
  color: var(--ink);
}

.brand-mark {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
}

.main-nav {
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.main-nav a:hover {
  color: #fff;
}

.icon-button {
  border-radius: 8px;
}

.site-header.detail-header .brand-mark,
.site-header.detail-header .icon-button {
  border-color: var(--line);
  background: rgba(11, 126, 164, 0.06);
  color: var(--ink);
}

.hero {
  min-height: 74vh;
  align-items: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 24, 40, 0.74) 0%, rgba(12, 24, 40, 0.48) 42%, rgba(12, 24, 40, 0.08) 72%),
    linear-gradient(0deg, rgba(12, 24, 40, 0.48), rgba(12, 24, 40, 0.02) 52%);
}

.hero-content {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 118px 0 150px;
}

h1 {
  max-width: 900px;
  font-size: clamp(46px, 5.9vw, 82px);
  font-weight: 700;
  line-height: 1.02;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.hero-content h1 {
  max-width: none;
  font-size: clamp(28px, calc((100vw - 72px) / 18), 56px);
  line-height: 1.22;
  white-space: pre;
}

.hero-content p:not(.eyebrow) {
  max-width: 920px;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.85;
  white-space: nowrap;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  min-height: 52px;
  border-radius: 8px;
  padding: 12px 28px;
}

.button.primary {
  background: linear-gradient(135deg, #0b7ea4, #0d9bb3);
  box-shadow: 0 18px 40px rgba(11, 126, 164, 0.3);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(12px);
}

.section-grid,
.updates-section,
.contact-section {
  width: min(1180px, calc(100% - 44px));
  padding: 64px 0;
}

.metrics-section {
  position: relative;
  z-index: 2;
  margin-top: -84px;
  display: block;
  padding-top: 0;
}

.metrics-section > .section-heading,
.metrics-section > div > .studio-intro,
.metrics-section > div > .trust-grid {
  display: none;
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 62px rgba(18, 32, 51, 0.16);
}

.metric {
  padding: 28px 36px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  color: var(--cobalt);
  font-size: 34px;
  font-weight: 800;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.08;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--cobalt);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.updates-section {
  border: 0;
}

.updates-list {
  gap: 12px;
  border: 0;
  background: transparent;
}

.update-item {
  grid-template-columns: 118px minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.05);
}

.service-list,
.project-category-grid,
.regulation-grid,
.link-grid {
  gap: 22px;
}

.service-item,
.project-card,
.case-study-card,
.regulation-card,
.useful-link {
  border: 1px solid rgba(220, 230, 240, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(18, 32, 51, 0.08);
}

.service-item {
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 26px;
}

.service-index {
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(11, 126, 164, 0.1);
  color: var(--cobalt);
  font-weight: 800;
}

.case-study-rail {
  border: 0;
  border-radius: 14px;
  padding: 26px;
  background: linear-gradient(135deg, #eef7fb, #ffffff 48%, #edf4fa);
  box-shadow: var(--shadow);
}

.case-study-track {
  gap: 18px;
}

.case-study-media,
.project-media {
  background: #dfe8ef;
}

.case-study-body,
.project-body {
  padding: 24px;
}

.project-media img,
.case-study-media img,
.about-hero-media img {
  transition: transform 260ms ease;
}

.project-card:hover img,
.case-study-card:hover img {
  transform: scale(1.035);
}

.case-more-link {
  min-height: 50px;
  border: 1px solid rgba(11, 126, 164, 0.28);
  border-radius: 8px;
  background: #fff;
}

.seo-keyword-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  border-top: 1px solid rgba(20, 42, 68, 0.12);
}

.seo-keyword-section h2 {
  margin: 0 0 18px;
  color: var(--ink);
}

.seo-keyword-section p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.9;
}

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

.seo-link-grid a {
  display: grid;
  gap: 10px;
  min-height: 116px;
  padding: 22px;
  border: 1px solid rgba(20, 42, 68, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(20, 42, 68, 0.08);
}

.seo-link-grid a:hover {
  border-color: rgba(11, 126, 164, 0.45);
  transform: translateY(-2px);
}

.seo-link-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.seo-link-grid strong {
  font-size: 17px;
  line-height: 1.55;
}

.search-faq-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 56px;
}

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

.search-faq-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(20, 42, 68, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(20, 42, 68, 0.08);
}

.search-faq-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.55;
}

.search-faq-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.search-faq-grid a {
  color: var(--cobalt);
  font-weight: 800;
}

.contact-section {
  margin-top: 36px;
}

.contact-panel {
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(11, 126, 164, 0.42), transparent 54%),
    #122033;
}

.site-footer {
  background: #101827;
}

@media (max-width: 1020px) {
  .hero-content p:not(.eyebrow) {
    white-space: normal;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 54vh;
  }

  .status-band,
  .section-grid,
  .seo-keyword-section,
  .contact-section,
  .practice-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .practice-sidebar {
    position: static;
  }

  .practice-feed-head {
    align-items: start;
    flex-direction: column;
  }

  .metrics,
  .trust-grid,
  .about-hero,
  .about-section,
  .architect-profile-grid,
  .about-card-grid,
  .about-award-card,
  .award-media-grid,
  .project-category-grid,
  .regulation-grid,
  .link-grid,
  .search-faq-grid,
  .service-list,
  .seo-link-grid,
  .detail-highlights,
  .process-grid,
  .split-section,
  .detail-card-grid,
  .resource-grid,
  .journal-layout,
  .journal-card,
  .service-news-item,
  .expertise-note,
  .interpretation-list li,
  .nlma-category-grid,
  .nlma-title-item,
  .nlma-article-content dl div {
    grid-template-columns: 1fr;
  }

  .section-note {
    max-width: none;
    text-align: left;
  }

  #architectMessageTitle {
    white-space: normal;
  }

  .credential-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .interpretation-list li::before {
    width: fit-content;
    min-width: 42px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .journal-side {
    position: static;
  }

  .case-study-track {
    grid-auto-columns: minmax(250px, 82%);
  }

  .case-modal {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .case-modal-media {
    min-height: 260px;
  }

  .case-facts {
    grid-template-columns: 1fr;
  }

  .source-image-link img {
    min-width: 0;
  }

  .update-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .practice-file {
    grid-template-columns: 1fr;
  }

  .practice-file img,
  .admin-file-card img {
    width: 100%;
  }

  .admin-file-card {
    grid-template-columns: 1fr;
  }

  .ai-chat-panel {
    right: 12px;
    bottom: 82px;
    width: calc(100vw - 24px);
  }
}

@media (max-width: 520px) {
  .brand-copy span {
    display: none;
  }

  .hero-content {
    padding-bottom: 7vh;
  }

  .hero-content p:not(.eyebrow) {
    white-space: normal;
  }

  h1 {
    font-size: 38px;
  }

  .status-band div,
  .metric,
  .project-body,
  .service-item,
  .update-item,
  .contact-panel {
    padding: 18px;
  }
}
