:root {
  --page-bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #edf3fb;
  --surface-strong: #dce7f7;
  --text: #101828;
  --muted: #4b5565;
  --line: rgba(17, 24, 39, 0.1);
  --brand: #133fa5;
  --brand-deep: #0d2f7a;
  --accent: #f3bf1f;
  --accent-soft: #ffe8a2;
  --shadow: 0 24px 60px rgba(19, 63, 165, 0.15);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #fbfdff 0%, var(--page-bg) 38%, #eef4fb 100%);
}

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

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

.page-shell {
  overflow: hidden;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(244, 247, 251, 0.88);
  border-bottom: 1px solid rgba(19, 63, 165, 0.08);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 100px;
  padding-block: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--brand);
  color: white;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  padding: 4.6rem 0 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 660px;
  background:
    linear-gradient(135deg, rgba(19, 63, 165, 0.98) 0%, rgba(19, 63, 165, 0.96) 54%, rgba(243, 191, 31, 0.94) 54%, rgba(243, 191, 31, 0.94) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 2rem;
  align-items: end;
}

.hero-copy {
  position: relative;
  padding: 1rem 0 5.2rem;
  color: white;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 8.7ch;
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  font-size: clamp(2.7rem, 4.6vw, 4.8rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 0;
  max-width: 38rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.hero-detail-panel {
  max-width: 44rem;
  margin-top: 3.6rem;
  padding: 1.2rem 1.25rem 1.25rem;
  border-radius: 26px;
  background: rgba(7, 25, 71, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.button-whatsapp-inline {
  gap: 0.55rem;
}

.button-whatsapp-brand {
  display: flex;
  gap: 0.55rem;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.28);
  width: 100%;
  min-width: 100%;
  justify-content: center;
}

.button-whatsapp-brand > * {
  pointer-events: none;
}

.whatsapp-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #ffffff;
  color: #25d366;
  flex: 0 0 auto;
  pointer-events: none;
}

.whatsapp-icon-badge .button-icon {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.button-whatsapp-brand span {
  pointer-events: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: white;
  color: var(--brand-deep);
  box-shadow: 0 16px 34px rgba(7, 20, 55, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.button-accent {
  background: var(--accent);
  color: var(--brand-deep);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 1.1rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  min-height: 600px;
}

.hero-house-accent {
  position: absolute;
  top: -168px;
  right: -54px;
  width: min(780px, 132%);
  opacity: 0.92;
  z-index: 3;
  filter: drop-shadow(0 10px 24px rgba(13, 47, 122, 0.18));
}

.hero-card,
.info-card,
.service-card,
.project-card,
.process-card,
.detail-card,
.contact-card,
.legal-card {
  background: var(--surface);
  border: 1px solid rgba(19, 63, 165, 0.08);
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-xl);
  z-index: 1;
}

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

.hero-card-primary {
  inset: 72px 0 42px 84px;
}

.hero-card-secondary {
  top: 0;
  left: 0;
  width: 240px;
  height: 270px;
  border-radius: 28px 28px 120px 28px;
  border: 7px solid rgba(255, 255, 255, 0.88);
}

.hero-card-badge {
  position: absolute;
  right: 20px;
  bottom: 14px;
  padding: 1.1rem 1.15rem;
  border-radius: 24px;
  background: rgba(13, 47, 122, 0.92);
  color: white;
  box-shadow: 0 16px 32px rgba(13, 47, 122, 0.25);
  z-index: 2;
}

.hero-card-badge strong,
.hero-card-badge span {
  display: block;
}

.hero-card-badge strong {
  font-size: 1.75rem;
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Segoe UI", sans-serif;
}

.hero-card-badge span {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.overview {
  margin-top: 0;
  padding-top: 2.8rem;
  padding-bottom: 2.5rem;
}

.overview-grid,
.services-grid,
.projects-grid,
.details-grid,
.footer-grid {
  display: grid;
  gap: 1rem;
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.7rem;
}

.info-card {
  padding: 1.35rem 1.4rem;
  border-radius: 24px;
}

.info-card strong,
.service-card h3,
.project-card h3,
.process-card h3,
.detail-card h3,
.legal-card h1,
.legal-card h2 {
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.info-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.55rem;
  color: var(--brand-deep);
}

.info-card p,
.service-card p,
.project-card p,
.process-card p,
.detail-card p,
.legal-card p,
.legal-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section {
  padding: 2.8rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.8rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.contact-card h2 {
  margin: 0;
  max-width: 13ch;
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 0.97;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.services-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.02;
}

.details-title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.04;
}

.section-header p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.service-card {
  position: relative;
  padding: 1.6rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(237, 243, 251, 0.86) 100%);
}

.service-card::before {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
}

.service-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.45rem;
  color: var(--brand-deep);
}

.signature-band {
  position: relative;
  margin: 2rem 0;
  padding: 3.45rem 0;
}

.signature-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 62%, #2a57c0 100%);
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
}

.signature-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.4rem;
  align-items: stretch;
}

.signature-copy,
.signature-process {
  border-radius: 30px;
  padding: 1.2rem;
}

.signature-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
}

.signature-copy h2,
.signature-copy p {
  color: white;
}

.signature-copy p {
  max-width: 33rem;
  line-height: 1.8;
}

.signature-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.96);
}

.process-card {
  padding: 0.85rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.98) 0%, rgba(227, 236, 250, 0.92) 100%);
}

.process-step {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--brand-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.projects-grid {
  grid-template-columns: 1.25fr 0.95fr 0.95fr;
}

.project-card {
  overflow: hidden;
  border-radius: 32px;
}

.project-card img {
  height: 260px;
  width: 100%;
  object-fit: cover;
}

.project-card-copy {
  padding: 1.4rem 1.5rem 1.6rem;
}

.project-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.55rem;
  color: var(--brand-deep);
}

.details-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.detail-card {
  padding: 2rem;
  border-radius: 30px;
}

.detail-card--image {
  padding: 0;
  overflow: hidden;
}

.detail-card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.detail-stack article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.detail-stack h3 {
  margin: 0 0 0.45rem;
  font-size: 1.3rem;
  color: var(--brand-deep);
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  padding: 2.2rem;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #eef3fb 100%);
  border: 1px solid rgba(19, 63, 165, 0.08);
  box-shadow: var(--shadow);
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(243, 191, 31, 0.24) 0%, rgba(243, 191, 31, 0) 72%);
}

.contact-list,
.footer-list,
.legal-card ul {
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.contact-list li,
.footer-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list strong,
.footer-list strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--brand-deep);
}

.site-footer .footer-list strong {
  color: #ffffff;
}

.contact-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-panel {
  position: relative;
  width: 100%;
  padding: 1.7rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(19, 63, 165, 0.1);
  box-shadow: 0 20px 44px rgba(19, 63, 165, 0.12);
}

.contact-form-panel h3 {
  margin: 0.35rem 0 1rem;
  font-size: 1.55rem;
  color: var(--brand-deep);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.contact-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.8rem;
  margin-top: 0.1rem;
}

.contact-consent input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--brand);
}

.contact-consent span {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  line-height: 1.6;
}

.contact-consent a {
  color: var(--brand-deep);
  text-decoration: underline;
}

.contact-consent-note {
  margin: -0.2rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #7a8597;
}

.contact-consent-note.is-ready {
  color: #13643f;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(19, 63, 165, 0.14);
  border-radius: 18px;
  background: #ffffff;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
}

.contact-form textarea {
  min-height: 136px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(19, 63, 165, 0.18);
  border-color: rgba(19, 63, 165, 0.32);
}

.contact-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.contact-form-actions .button {
  display: flex;
  width: 100%;
  position: relative;
  z-index: 3;
  align-self: stretch;
}

.contact-form-actions .button.is-disabled {
  opacity: 0.5;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

.contact-form-panel .house-overlay {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: min(120px, 30%);
  opacity: 0.08;
  pointer-events: none;
}

.site-footer {
  position: relative;
  margin-top: 3.2rem;
  padding: 3rem 0 2rem;
  color: white;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 70%, var(--accent) 70%, var(--accent) 100%);
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}

.footer-grid {
  position: relative;
  grid-template-columns: 1.15fr 0.9fr 0.85fr;
  align-items: start;
}

.footer-brand p,
.footer-list a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-brand strong {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-brand p {
  margin: 0;
  max-width: 28rem;
  line-height: 1.8;
}

.footer-note {
  position: relative;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-note a {
  text-decoration: underline;
}

.section-actions {
  margin-top: 1.5rem;
}

.legal-main {
  padding: 3rem 0 4rem;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.3rem;
  border-radius: 34px;
}

.legal-card h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: var(--brand-deep);
}

.legal-card h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.5rem;
  color: var(--brand);
}

.legal-card li + li {
  margin-top: 0.7rem;
}

.legal-card .note {
  margin-top: 1.2rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent);
  background: var(--surface-soft);
  color: var(--muted);
}

.projects-page-head h2 {
  max-width: 12ch;
}

.project-showcase-grid,
.admin-project-list {
  display: grid;
  gap: 1.25rem;
}

.project-showcase-card,
.admin-login-card,
.admin-project-card {
  background: var(--surface);
  border: 1px solid rgba(19, 63, 165, 0.08);
  box-shadow: var(--shadow);
}

.project-showcase-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border-radius: 32px;
}

.project-showcase-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.project-showcase-copy {
  padding: 2rem;
}

.project-showcase-copy h2,
.admin-project-card h3 {
  margin: 0 0 0.8rem;
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.project-showcase-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.project-showcase-empty,
.admin-login-card,
.admin-project-card {
  border-radius: 28px;
}

.project-showcase-empty {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid rgba(19, 63, 165, 0.08);
  box-shadow: var(--shadow);
}

.admin-shell {
  display: grid;
  gap: 1.5rem;
}

.admin-login-card,
.admin-project-card {
  padding: 1.6rem;
}

.admin-login-form,
.admin-project-form,
.admin-project-fields,
.admin-project-preview,
.admin-toolbar {
  display: grid;
  gap: 1rem;
}

.admin-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 1.25rem 1.4rem;
  border-radius: 24px;
  background: rgba(19, 63, 165, 0.08);
}

.admin-toolbar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-project-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 1.25rem;
}

.admin-project-preview {
  align-content: start;
}

.admin-project-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
}

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

.admin-project-form label,
.admin-login-form label {
  display: grid;
  gap: 0.45rem;
}

.admin-project-form span,
.admin-login-form span {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.admin-project-form input[type="text"],
.admin-project-form input[type="number"],
.admin-project-form input[type="password"],
.admin-project-form input[type="file"],
.admin-login-form input[type="password"],
.admin-project-form textarea {
  width: 100%;
  border: 1px solid rgba(19, 63, 165, 0.14);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.admin-project-form textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-delete-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.7rem;
}

.admin-delete-toggle input {
  width: 18px;
  height: 18px;
}

.button-submit {
  justify-self: start;
}

.form-message {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  font-weight: 700;
}

.form-message-success {
  background: rgba(24, 135, 84, 0.12);
  color: #13643f;
}

.form-message-invalid {
  background: rgba(190, 43, 43, 0.12);
  color: #8f1e1e;
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .hero-grid,
  .signature-grid,
  .details-grid,
  .contact-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .projects-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .signature-process {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
  }

  .hero-house-accent {
    top: -110px;
    right: -34px;
    width: min(620px, 104%);
    opacity: 0.72;
  }

  .hero-card-primary {
    inset: 70px 0 0 64px;
  }

  .project-showcase-card,
  .admin-project-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    min-height: 84px;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(19, 63, 165, 0.08);
    box-shadow: var(--shadow);
  }

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

  .hero {
    padding-top: 2.4rem;
  }

  .hero::before {
    height: 710px;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  }

  .hero-copy {
    padding-bottom: 2.4rem;
  }

  .hero-detail-panel {
    margin-top: 2.3rem;
  }

  .hero-points,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-detail-panel {
    max-width: 100%;
    padding: 1rem;
  }

  .hero-card-primary {
    inset: 58px 8px 18px 64px;
  }

  .hero-card-secondary {
    width: 170px;
    height: 210px;
  }

  .hero-card-badge {
    right: 10px;
    bottom: 10px;
  }

  .hero-house-accent {
    top: -92px;
    right: -30px;
    width: min(480px, 96%);
    opacity: 0.64;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-toolbar,
  .admin-project-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-actions .button {
    width: 100%;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 74px;
    gap: 0.5rem;
    padding-block: 0;
  }

  .brand-logo {
    width: min(100%, 190px);
    height: auto;
  }

  .nav-toggle {
    padding: 0.62rem 0.78rem;
    font-size: 0.84rem;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero h1 {
    max-width: 7.4ch;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 0.98;
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.55rem 0.8rem;
  }

  .hero-detail-panel {
    margin-top: 1.8rem;
    padding: 0.9rem 0.85rem;
    border-radius: 22px;
  }

  .hero-points li {
    padding: 0.85rem 0.8rem;
    font-size: 0.92rem;
  }

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

  .hero-card-primary {
    inset: 64px 6px 14px 34px;
  }

  .hero-card-secondary {
    width: 96px;
    height: 118px;
    border-width: 4px;
  }

  .hero-card-badge {
    right: 8px;
    bottom: 8px;
    padding: 0.85rem 0.9rem;
  }

  .hero-card-badge strong {
    font-size: 1.35rem;
  }

  .hero-card-badge span {
    font-size: 0.72rem;
  }

  .hero-house-accent {
    top: -106px;
    right: -42px;
    width: min(380px, 122%);
    opacity: 0.58;
  }

  .overview {
    padding-top: 1.4rem;
    padding-bottom: 1.8rem;
  }

  .overview-grid {
    margin-top: 1.4rem;
  }

  .info-card {
    padding: 1.1rem 1.15rem;
  }

  .contact-card,
  .detail-card,
  .signature-copy,
  .signature-process,
  .legal-card,
  .admin-login-card,
  .admin-project-card {
    padding: 1.4rem;
  }

  .contact-form-panel {
    padding: 1.3rem;
  }

  .button {
    min-height: 50px;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
  }

  .project-showcase-copy {
    padding: 1.4rem;
  }
}
