:root {
  --bg: #f2f3f2;
  --surface: #ffffff;
  --surface-alt: #f7f8f7;
  --line: #d7dde3;
  --text: #202458;
  --muted: #5e6a76;
  --blue: #18428f;
  --green: #00ac4e;
  --gray-brand: #c2c4c6;
  --heading: "Sora", sans-serif;
  --body: "Manrope", sans-serif;
  --container: min(1200px, calc(100vw - 48px));
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px rgba(15, 32, 52, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(24, 66, 143, 0.04), transparent 220px),
    var(--bg);
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("../images/brand/filigran.svg") left -6vw top 180px / 22vw no-repeat,
    radial-gradient(circle at top right, rgba(24, 66, 143, 0.04), transparent 24%);
  opacity: 0.5;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

video,
iframe {
  user-select: none;
  -webkit-user-drag: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  width: var(--container);
  margin: 0 auto;
}

[id] {
  scroll-margin-top: 120px;
}

.reveal-ready {
  opacity: 0;
  transform: translate3d(0, 46px, 0);
  filter: blur(8px);
  transition:
    opacity 860ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 860ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 860ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-ready.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(32, 36, 88, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

body:not(.site-ready) .topbar {
  min-height: 90px;
  pointer-events: none;
}

body:not(.site-ready) .topbar > * {
  visibility: hidden;
}

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

.brand-logo,
.footer-logo {
  width: 68px;
  height: auto;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  max-width: 100%;
}

.brand-copy strong,
h1,
h2,
h3,
h4 {
  font-family: var(--heading);
}

.brand-copy strong {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.05;
  white-space: nowrap;
}

.brand-copy small,
.site-nav a,
.section-copy p,
.detail-card p,
.blog-card p,
.project-card p,
.page-lead,
.footer-meta,
.input-help,
.meta-list {
  color: var(--muted);
}

.brand-copy small {
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.topbar .brand-copy {
  justify-content: center;
}

.topbar .brand-copy small {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-item {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.site-nav a,
.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.site-nav a.is-active,
.site-nav a:hover,
.nav-link.is-active,
.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--blue);
  background: rgba(24, 66, 143, 0.08);
}

.nav-submenu {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(24, 66, 143, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 48px rgba(20, 34, 78, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-submenu-link {
  border-radius: 12px;
  padding: 10px 12px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #202458);
  box-shadow: 0 12px 28px rgba(24, 66, 143, 0.18);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
}

.page-hero,
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 56px 0 56px;
}

.hero-stage {
  position: relative;
  display: grid;
  gap: 18px;
}

.hero-gallery {
  position: relative;
  min-height: 448px;
  overflow: hidden;
}

.hero-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 24%;
  height: 392px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #dfe4ec;
  box-shadow: var(--shadow);
  transition:
    left 900ms cubic-bezier(0.22, 0.7, 0.18, 1),
    top 900ms cubic-bezier(0.22, 0.7, 0.18, 1),
    width 900ms cubic-bezier(0.22, 0.7, 0.18, 1),
    height 900ms cubic-bezier(0.22, 0.7, 0.18, 1),
    opacity 640ms ease,
    filter 640ms ease,
    transform 900ms cubic-bezier(0.22, 0.7, 0.18, 1),
    box-shadow 900ms ease;
  transform: translateX(0) scale(1);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(18, 32, 78, 0.24)),
    url("../images/brand/app-icon.svg") right 18px bottom 18px / 72px no-repeat;
  pointer-events: none;
  opacity: 0.65;
}

.hero-card-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition:
    transform 900ms cubic-bezier(0.22, 0.7, 0.18, 1),
    filter 640ms ease,
    opacity 640ms ease;
}

.hero-copy {
  max-width: 960px;
  padding: 14px 4px 0;
  margin: 0 auto;
  text-align: center;
}

.hero-copy.hero-copy-overlay {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  z-index: 2;
  max-width: 760px;
  padding: 28px 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(27, 39, 94, 0.14);
}

.hero-copy .eyebrow,
.hero-copy p {
  margin-left: auto;
  margin-right: auto;
}

.hero-copy .hero-actions {
  justify-content: center;
}

.hero-card[data-slot="hidden"] {
  opacity: 0;
  pointer-events: none;
}

.hero-card[data-slot="left"] {
  left: 0;
  top: 28px;
  width: 24%;
  height: 392px;
  z-index: 2;
  opacity: 0.92;
}

.hero-card[data-slot="center"] {
  left: 26%;
  top: 0;
  width: 48%;
  height: 448px;
  z-index: 4;
  opacity: 1;
  box-shadow: 0 26px 64px rgba(19, 34, 83, 0.18);
  transform: translateX(0) scale(1);
}

.hero-card[data-slot="center"] .hero-card-media {
  transform: scale(1.035);
}

.hero-card[data-slot="right"] {
  left: 76%;
  top: 28px;
  width: 24%;
  height: 392px;
  z-index: 2;
  opacity: 0.92;
}

.hero-card[data-slot="enter-right"] {
  left: calc(100% + 18px);
  top: 28px;
  width: 24%;
  height: 392px;
  z-index: 1;
  opacity: 0.38;
  filter: saturate(0.92);
  transform: translateX(0) scale(0.985);
}

.hero-card[data-slot="exit-left"] {
  left: 0;
  top: 28px;
  width: 24%;
  height: 392px;
  z-index: 1;
  opacity: 0.08;
  filter: saturate(0.88) brightness(0.94);
  transform: translateX(-28%) scale(0.976);
}

.hero-card.is-resetting {
  transition: none;
}

.hero-gallery.is-animating .hero-card[data-slot="center"] .hero-card-media,
.hero-gallery.is-animating .hero-card[data-slot="right"] .hero-card-media,
.hero-gallery.is-animating .hero-card[data-slot="left"] .hero-card-media {
  filter: saturate(1.04) brightness(1.02);
}

.hero-copy h1,
.page-copy h1 {
  margin: 0;
  font-size: clamp(2.9rem, 5vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy p,
.page-lead {
  margin: 20px 0 0;
  max-width: 60ch;
  line-height: 1.8;
}

.hero-copy p {
  margin: 20px auto 0;
  text-align: center;
  max-width: 52ch;
}

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

.page-visual-wrap {
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.page-visual-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(24, 66, 143, 0.16), rgba(0, 172, 78, 0.05)),
    url("../images/brand/app-icon.svg") right 28px bottom 28px / 22% no-repeat;
  opacity: 0.92;
}

.page-visual-wrap::before {
  background:
    linear-gradient(180deg, rgba(24, 66, 143, 0.08), rgba(32, 36, 88, 0.14)),
    url("../images/brand/app-icon.svg") right 24px bottom 24px / 18% no-repeat;
  opacity: 0.5;
}

.page-visual-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 0.28;
}

.page-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 56px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.03em;
}

.feature-grid,
.service-area-grid,
.project-grid,
.blog-grid,
.detail-stack,
.info-grid,
.contact-overview,
.contact-layout {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(5, 1fr);
}

.service-area-grid {
  grid-template-columns: repeat(5, 1fr);
}

.project-grid,
.blog-grid,
.info-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.contact-overview {
  grid-template-columns: 0.72fr 1.28fr;
}

.contact-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-card,
.service-area-card,
.project-card,
.blog-card,
.detail-card,
.info-card,
.contact-card,
.contact-form,
.map-card,
.finance-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .project-card,
  .blog-card,
  .detail-card,
  .info-card,
  .contact-card,
  .contact-form,
  .map-card,
  .finance-panel {
    transition:
      transform 0.24s ease,
      box-shadow 0.24s ease,
      border-color 0.24s ease;
    transform-origin: center center;
  }

  .project-card:hover,
  .blog-card:hover,
  .detail-card:hover,
  .info-card:hover,
  .contact-card:hover,
  .contact-form:hover,
  .map-card:hover,
  .finance-panel:hover {
    transform: translateY(-4px) scale(1.018);
    box-shadow: 0 24px 54px rgba(15, 32, 52, 0.12);
    border-color: rgba(24, 66, 143, 0.18);
  }
}

.feature-card,
.service-area-card,
.blog-card,
.info-card,
.contact-card,
.map-card,
.finance-panel {
  padding: 24px;
}

.feature-card::before,
.service-area-card::before,
.blog-card::before,
.info-card::before,
.contact-card::before,
.finance-panel::before,
.detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 4px;
  border-top-left-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.feature-card h3,
.service-area-card h3,
.project-card h3,
.blog-card h3,
.detail-card h2,
.detail-card h3,
.info-card h3,
.contact-card h3 {
  margin: 0 0 12px;
}

.card-index,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.card-index {
  margin-bottom: 20px;
  color: var(--blue);
  background: rgba(24, 66, 143, 0.08);
  border: 1px solid rgba(24, 66, 143, 0.08);
}

.badge {
  margin-bottom: 16px;
  padding: 0 14px;
  color: var(--blue);
  background: rgba(24, 66, 143, 0.08);
}

.badge.subtle {
  color: var(--green);
  background: rgba(0, 172, 78, 0.08);
}

.project-card,
.detail-card.large {
  overflow: hidden;
}

.blog-page-shell {
  position: relative;
}

.projects-page-shell {
  position: relative;
}

.blog-summary-card {
  padding: 0;
  min-height: 372px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 182px 1fr;
  cursor: pointer;
}

.blog-summary-card::before {
  width: 100%;
  height: 3px;
}

.blog-card-media {
  background: var(--surface-alt);
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

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

.blog-summary-grid-home .blog-summary-card {
  min-height: 328px;
  grid-template-rows: 150px 1fr;
}

.blog-summary-grid-home .blog-card-body {
  gap: 12px;
  padding: 18px;
}

.blog-summary-grid-home .blog-summary-card p {
  -webkit-line-clamp: 3;
  min-height: 5.1em;
}

.blog-card-meta,
.blog-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blog-summary-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.blog-summary-card p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 6.8em;
  margin: 0;
}

.blog-card-open {
  width: 100%;
}

.blog-detail-drawer {
  position: fixed;
  top: 118px;
  right: 24px;
  z-index: 30;
  width: min(520px, calc(100vw - 48px));
}

.blog-detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(15, 32, 62, 0.18);
  overflow: hidden;
  max-height: calc(100vh - 150px);
  display: grid;
  grid-template-rows: 220px 1fr;
}

.blog-detail-media {
  background: var(--surface-alt);
}

.blog-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-detail-content {
  position: relative;
  padding: 22px;
  overflow-y: auto;
}

.blog-detail-content h2 {
  margin: 12px 0 16px;
}

.blog-detail-text {
  display: grid;
  gap: 14px;
}

.blog-detail-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.blog-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(15, 32, 62, 0.68);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

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

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

.project-summary-card {
  padding: 0;
  min-height: 376px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 190px 1fr;
  cursor: pointer;
}

.project-summary-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.project-summary-card .project-card-body {
  display: grid;
  align-content: start;
  gap: 12px;
}

.project-card-meta,
.project-detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.project-detail-year {
  font-weight: 700;
  color: var(--text);
}

.project-summary-card h3 {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-summary-card p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
}

.project-card-open {
  width: 100%;
}

.project-detail-drawer {
  position: fixed;
  top: 118px;
  right: 24px;
  z-index: 30;
  width: min(560px, calc(100vw - 48px));
}

.project-detail-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(15, 32, 62, 0.18);
  overflow: hidden;
  max-height: calc(100vh - 150px);
  display: grid;
  grid-template-rows: 280px auto 1fr;
}

.project-detail-media {
  position: relative;
  background: var(--surface-alt);
}

.project-detail-media-stage {
  width: 100%;
  height: 100%;
}

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

.project-detail-media video,
.project-detail-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.project-media-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(15, 32, 62, 0.42);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.project-media-nav.is-prev {
  left: 14px;
}

.project-media-nav.is-next {
  right: 14px;
}

.project-detail-content {
  padding: 22px;
  overflow-y: auto;
}

.project-detail-content h2 {
  margin: 12px 0 16px;
}

.project-detail-text p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.project-detail-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88px;
  gap: 10px;
  padding: 16px 22px 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.project-thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}

.project-thumb.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(24, 66, 143, 0.12);
}

.project-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.project-thumb-video {
  display: grid;
  place-items: center;
  min-height: 100%;
  aspect-ratio: 1 / 1;
  padding: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(24, 66, 143, 0.12), rgba(0, 172, 78, 0.12)),
    var(--surface-alt);
}

.project-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(15, 32, 62, 0.68);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

.section-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.project-card-body {
  padding: 22px;
}

.project-card.large {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}

.project-card.large img {
  height: 100%;
  aspect-ratio: auto;
}

.finance-panel p,
.meta-list li,
.detail-grid p,
.contact-card p,
.contact-form p {
  line-height: 1.8;
}

.finance-panel p + p {
  margin-top: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.detail-stack {
  grid-template-columns: 1fr;
}

.detail-card {
  padding: 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.detail-grid strong,
.meta-list strong {
  display: block;
  margin-bottom: 8px;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.tab-button.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.tab-panel {
  display: none;
  gap: 18px;
}

.tab-panel.is-active {
  display: grid;
}

.meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list li + li {
  margin-top: 10px;
}

.list-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-card {
  padding: 0;
  overflow: hidden;
  min-height: 360px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: saturate(0.94) contrast(1.02);
}

.contact-form {
  padding: 28px;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label span {
  font-size: 0.94rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 30px 0 40px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .feature-grid,
  .service-area-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid,
  .blog-grid,
  .info-grid,
  .contact-overview,
  .contact-layout,
  .split-section,
  .page-hero,
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    min-height: 360px;
  }

  .hero-card[data-slot="left"],
  .hero-card[data-slot="right"],
  .hero-card[data-slot="enter-right"],
  .hero-card[data-slot="exit-left"] {
    top: 28px;
    width: 25%;
    height: 312px;
  }

  .hero-card[data-slot="right"] {
    left: 75%;
  }

  .hero-card[data-slot="enter-right"] {
    left: calc(100% + 18px);
  }

  .hero-card[data-slot="exit-left"] {
    left: 0;
    transform: translateX(-24%) scale(0.976);
  }

  .hero-card[data-slot="center"] {
    left: 27.5%;
    width: 45%;
    height: 360px;
  }

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

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

@media (max-width: 780px) {
  body::before {
    background:
      url("../images/brand/filigran.svg") left -16vw top 220px / 42vw no-repeat,
      radial-gradient(circle at top right, rgba(24, 66, 143, 0.04), transparent 24%);
    opacity: 0.38;
  }

  .site-shell {
    width: min(100vw - 24px, 100%);
  }

  .topbar {
    flex-wrap: wrap;
    border-radius: 24px;
  }

  .brand-logo,
  .footer-logo {
    width: 56px;
  }

  .brand-copy strong,
  .brand-copy small {
    white-space: normal;
  }

  .brand {
    flex-basis: calc(100% - 84px);
  }

  .brand-copy small {
    font-size: 0.74rem;
    overflow: visible;
    text-overflow: clip;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-submenu {
    position: static;
    transform: none;
    min-width: 0;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    box-shadow: none;
  }

  .nav-item {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-item:hover .nav-submenu,
  .nav-item:focus-within .nav-submenu {
    transform: none;
  }

  .nav-item.has-submenu .nav-submenu {
    display: none !important;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
  }

  .site-nav.is-open {
    display: flex;
  }

  .feature-grid,
  .service-area-grid,
  .project-grid,
  .blog-grid,
  .info-grid,
  .form-grid,
  .detail-grid,
  .project-card.large,
  .tab-panel {
    grid-template-columns: 1fr;
  }

  .blog-summary-grid {
    grid-template-columns: 1fr;
  }

  .blog-summary-grid-home {
    grid-template-columns: 1fr;
  }

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

  .blog-detail-drawer {
    top: auto;
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
  }

  .blog-detail-card {
    max-height: min(78vh, 720px);
    grid-template-rows: 180px 1fr;
  }

  .project-detail-drawer {
    top: auto;
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
  }

  .project-detail-card {
    max-height: min(78vh, 760px);
    grid-template-rows: 200px auto 1fr;
  }

  .project-detail-gallery {
    grid-auto-columns: 74px;
    padding: 14px 16px 0;
  }

  .section-head,
  .site-footer,
  .footer-brand,
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .page-hero {
    padding-top: 40px;
  }

  .hero-gallery {
    min-height: 300px;
  }

  .hero-card[data-slot="left"],
  .hero-card[data-slot="right"],
  .hero-card[data-slot="enter-right"],
  .hero-card[data-slot="exit-left"] {
    top: 24px;
    width: 26%;
    height: 252px;
  }

  .hero-card[data-slot="right"] {
    left: 74%;
  }

  .hero-card[data-slot="enter-right"] {
    left: calc(100% + 14px);
  }

  .hero-card[data-slot="exit-left"] {
    left: 0;
    transform: translateX(-20%) scale(0.976);
  }

  .hero-card[data-slot="center"] {
    left: 27%;
    width: 46%;
    height: 300px;
  }

  .page-visual-wrap {
    min-height: 320px;
  }

  .page-visual-wrap::before {
    background:
      linear-gradient(135deg, rgba(24, 66, 143, 0.14), rgba(0, 172, 78, 0.05)),
      url("../images/brand/app-icon.svg") right 14px bottom 14px / 28% no-repeat;
  }

  .hero-copy.hero-copy-overlay {
    position: static;
    max-width: none;
    padding: 8px 4px 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .page-visual-wrap::before {
    background:
      linear-gradient(180deg, rgba(24, 66, 143, 0.06), rgba(32, 36, 88, 0.12)),
      url("../images/brand/app-icon.svg") right 14px bottom 14px / 22% no-repeat;
    opacity: 0.42;
  }

  .page-visual-wrap::after {
    right: 10px;
    bottom: 10px;
    width: 34%;
  }
}
