﻿:root {
  --bg: #f4f1eb;
  --bg-soft: #fbf8f3;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(115, 133, 145, 0.18);
  --text: #25333d;
  --muted: #667784;
  --accent: #6b8f8a;
  --accent-2: #9d7a54;
  --accent-3: #b9cbc4;
  --shadow: 0 20px 45px rgba(80, 93, 106, 0.12);
  --radius: 24px;
}

:root[data-theme="dark"] {
  --bg: #10181d;
  --bg-soft: #162128;
  --panel: rgba(24, 35, 43, 0.84);
  --panel-strong: rgba(20, 30, 37, 0.96);
  --line: rgba(167, 194, 191, 0.16);
  --text: #ebf2f0;
  --muted: #9eb0ae;
  --accent: #9bbdb4;
  --accent-2: #d2b48f;
  --accent-3: #24363c;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 203, 196, 0.35), transparent 28%),
    radial-gradient(circle at top right, rgba(215, 198, 176, 0.28), transparent 25%),
    linear-gradient(180deg, #faf7f2 0%, #f2eee8 100%);
  font-family: "Space Grotesk", sans-serif;
  transition: background 180ms ease, color 180ms ease;
  overflow-x: hidden;
}

body,
input,
textarea,
button {
  -webkit-font-smoothing: antialiased;
}

body {
  overscroll-behavior-y: contain;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(77, 109, 103, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(150, 123, 91, 0.18), transparent 25%),
    linear-gradient(180deg, #0e171b 0%, #121d22 100%);
}

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

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

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(66, 80, 90, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 80, 90, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 4vw;
  backdrop-filter: blur(22px) saturate(1.2);
  background: rgba(250, 247, 242, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 30px rgba(125, 139, 153, 0.08);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease, box-shadow 180ms ease;
}

.site-header.header-hidden {
  transform: translateY(calc(-100% - 0.5rem));
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 153, 146, 0.45) transparent;
}

*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(125, 153, 146, 0.4);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 153, 146, 0.6);
  border: 3px solid transparent;
  background-clip: padding-box;
}

:root[data-theme="dark"] * {
  scrollbar-color: rgba(155, 189, 180, 0.32) transparent;
}

:root[data-theme="dark"] *::-webkit-scrollbar-thumb {
  background: rgba(155, 189, 180, 0.3);
  border: 3px solid transparent;
  background-clip: padding-box;
}

:root[data-theme="dark"] *::-webkit-scrollbar-thumb:hover {
  background: rgba(155, 189, 180, 0.46);
  border: 3px solid transparent;
  background-clip: padding-box;
}

:root[data-theme="dark"] .site-header {
  background: rgba(16, 24, 29, 0.58);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.brand-block {
  display: flex;
  flex-direction: column;
}

.brand-kicker,
.eyebrow,
.project-category,
.service-index {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.72rem;
}

.brand-name {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: 0 10px 24px rgba(125, 139, 153, 0.08);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  transform: translateY(-1px);
}

.main-nav a:first-child {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

:root[data-theme="dark"] .main-nav {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

:root[data-theme="dark"] .main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

:root[data-theme="dark"] .main-nav a:first-child {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.manage-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.88rem 1.35rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.manage-link,
.button-secondary {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(1.2);
}

.button-primary {
  background: linear-gradient(135deg, #7d9992, #90aaa3);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(125, 153, 146, 0.22);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.52);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(18px) saturate(1.25);
}

.theme-toggle-track {
  width: 2.8rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(107, 143, 138, 0.25);
  padding: 0.14rem;
  display: inline-flex;
  align-items: center;
  transition: background 160ms ease;
}

.theme-toggle-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transform: translateX(0);
  transition: transform 160ms ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-track {
  background: rgba(155, 189, 180, 0.4);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
  transform: translateX(1.22rem);
}

.theme-toggle-label {
  font-size: 0.92rem;
}

:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .manage-link,
:root[data-theme="dark"] .button-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .button-primary {
  background: linear-gradient(135deg, #89aba3, #a7c0b9);
  color: #0f171b;
}

.manage-link:hover,
.button:hover,
.contact-link:hover,
.project-card:hover,
.service-card:hover,
.stat-card:hover,
.gallery-card:hover,
.portrait-card:hover,
.panel-card:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(125, 139, 153, 0.12);
}

.section-shell,
.admin-main {
  width: min(1120px, calc(100vw - 2.4rem));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
  padding: 4.6rem 0 2.8rem;
}

.hero-section::after {
  content: "";
  position: absolute;
  right: 2%;
  top: 6.5rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 203, 196, 0.3), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

:root[data-theme="dark"] .hero-section::after {
  background: radial-gradient(circle, rgba(93, 125, 118, 0.26), transparent 68%);
}

.hero-copy h1,
.section-heading h2,
.contact-card h2,
.admin-hero h1,
.panel-heading h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  line-height: 1.1;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  max-width: 10ch;
}

.hero-copy {
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.hero-summary,
.section-heading p,
.about-card p,
.service-card p,
.project-copy p,
.contact-card p,
.admin-hero p,
.status-text {
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions,
.hero-pills,
.contact-links,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-pills {
  margin-top: 1.3rem;
}

.hero-pill,
.tag-row span {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--text);
  backdrop-filter: blur(16px);
}

:root[data-theme="dark"] .hero-pill,
:root[data-theme="dark"] .tag-row span {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(167, 194, 191, 0.12);
}

.hero-side {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.portrait-card,
.signal-card,
.stat-card,
.about-card,
.detail-panel,
.service-card,
.project-card,
.gallery-card,
.contact-card,
.panel-card,
.editor-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.22);
}

.portrait-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  min-height: 640px;
}

:root[data-theme="dark"] .portrait-card {
  background: transparent;
}

.portrait-card img {
  width: 100%;
  max-width: 455px;
  margin: 0 auto;
  aspect-ratio: 4 / 5.25;
  object-fit: cover;
  object-position: center top;
  border-radius: 2rem;
  filter: grayscale(0.02) contrast(1.03) drop-shadow(0 34px 40px rgba(121, 136, 149, 0.18));
  mask-image: linear-gradient(to bottom, black 0%, black 76%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 76%, transparent 100%);
  transform: translateY(-0.25rem);
}

:root[data-theme="dark"] .portrait-card img {
  filter: grayscale(0.02) contrast(1.04) drop-shadow(0 34px 44px rgba(0, 0, 0, 0.28));
}

.portrait-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  width: min(82%, 360px);
  height: 5.2rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 186, 194, 0.34), rgba(169, 186, 194, 0.08) 55%, transparent 72%);
  filter: blur(10px);
  z-index: -1;
}

:root[data-theme="dark"] .portrait-card::after {
  background: radial-gradient(circle, rgba(87, 104, 112, 0.32), rgba(87, 104, 112, 0.08) 55%, transparent 72%);
}

.portrait-card::before,
.project-image-wrap::before,
.gallery-card::before,
.image-preview::before,
.inline-preview::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 16px;
  width: 52px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #d4b59b 0 4px, transparent 5px) 0 0 / 16px 12px no-repeat,
    radial-gradient(circle, #c5d6ce 0 4px, transparent 5px) 18px 0 / 16px 12px no-repeat,
    radial-gradient(circle, #b8c6d5 0 4px, transparent 5px) 36px 0 / 16px 12px no-repeat;
  z-index: 2;
  opacity: 0.95;
}

.portrait-card::before {
  top: auto;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.55;
}

.portrait-caption {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 2.6rem;
  width: min(82%, 360px);
  transform: translateX(-50%);
  display: grid;
  gap: 0.25rem;
  padding: 1.05rem 1.1rem;
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 18px 36px rgba(136, 150, 165, 0.14);
}

:root[data-theme="dark"] .portrait-caption,
:root[data-theme="dark"] .gallery-card figcaption,
:root[data-theme="dark"] .contact-link,
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .signal-card {
  background: rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea {
  color: #f4fbf9;
  border-color: rgba(210, 228, 223, 0.18);
}

:root[data-theme="dark"] .portrait-caption {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.portrait-caption span:last-child,
.signal-card span,
.detail-item span,
.contact-link span,
.gallery-card figcaption span,
label span {
  color: #556773;
  font-weight: 500;
}

:root[data-theme="dark"] label span {
  color: #b9c8c6;
}

.signal-card,
.about-card,
.detail-panel,
.contact-card,
.panel-card,
.stat-card,
.service-card,
.project-copy,
.admin-hero {
  padding: 1.5rem;
}

.signal-card {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.38);
}

.stats-band,
.services-grid,
.projects-grid,
.gallery-grid,
.about-grid {
  display: grid;
  gap: 1.1rem;
}

.stats-band {
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 2.5rem;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.stat-card,
.service-card,
.about-card,
.detail-panel,
.contact-card,
.panel-card,
.editor-card,
.admin-hero,
.project-card,
.gallery-card {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(255, 255, 255, 0.38);
}

:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .about-card,
:root[data-theme="dark"] .detail-panel,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .panel-card,
:root[data-theme="dark"] .editor-card,
:root[data-theme="dark"] .admin-hero,
:root[data-theme="dark"] .project-card,
:root[data-theme="dark"] .gallery-card {
  border-color: rgba(255, 255, 255, 0.07);
}

:root[data-theme="dark"] .section-link {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .project-link-button {
  background: linear-gradient(135deg, #89aba3, #a7c0b9);
  color: #0f171b;
}

.section-shell {
  padding-bottom: 4rem;
}

.section-heading {
  margin-bottom: 1.3rem;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-head-row .section-heading {
  margin-bottom: 0;
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--accent-2);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 22px rgba(125, 139, 153, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(125, 139, 153, 0.14);
}

.archive-hero {
  padding-top: 2rem;
}

.archive-copy {
  max-width: 760px;
}

.archive-copy h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1.08;
}

.archive-grid {
  align-items: stretch;
}

.media-topic-block {
  padding-top: 0;
}

.frame-block-list {
  display: grid;
  gap: 1.1rem;
}

.frame-block {
  padding: 1.5rem;
}

.frame-block-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.frame-block-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

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

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

.frame-detail-card {
  padding: 1rem;
}

.frame-detail-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
}

.frame-detail-card figcaption {
  padding-top: 0.85rem;
  color: var(--muted);
}

.section-heading h2,
.contact-card h2,
.admin-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  max-width: 14ch;
}

.about-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.detail-panel {
  display: grid;
  gap: 0.8rem;
}

.detail-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(115, 133, 145, 0.14);
}

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

.service-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

.project-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
}

.project-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.project-copy .tag-row {
  margin-top: 0.1rem;
}

.project-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  width: fit-content;
  min-height: 2.9rem;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7d9992, #90aaa3);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(125, 153, 146, 0.2);
}

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.1rem;
}

.project-detail-visual,
.project-detail-info {
  padding: 1.5rem;
}

.project-detail-visual img {
  width: 100%;
  border-radius: 18px;
  min-height: 320px;
  object-fit: cover;
}

.project-detail-info h2 {
  margin: 0 0 0.8rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.project-detail-tags {
  margin-top: 1rem;
}

.project-documents {
  margin-top: 1.2rem;
}

.project-documents-list,
.document-editor-list {
  display: grid;
  gap: 0.8rem;
}

.project-document-link,
.document-editor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(18px);
}

.project-document-link span,
.document-editor-item span {
  color: var(--muted);
  display: block;
}

.project-image-wrap {
  position: relative;
  min-height: 280px;
  padding: 2.2rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(244, 241, 235, 0.68));
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

:root[data-theme="dark"] .project-image-wrap {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(10, 17, 21, 0.2));
  border-right-color: rgba(255, 255, 255, 0.06);
}

.project-image-wrap img,
.gallery-card img,
.image-preview img,
.inline-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

.project-copy a,
.contact-link strong {
  color: var(--accent-2);
}

.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.gallery-card {
  position: relative;
  min-height: 300px;
  padding: 2.2rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.46);
}

.gallery-card-link {
  display: block;
  color: inherit;
  min-height: 100%;
}

:root[data-theme="dark"] .gallery-card,
:root[data-theme="dark"] .image-preview,
:root[data-theme="dark"] .inline-preview,
:root[data-theme="dark"] .empty-preview {
  background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .contact-icon {
  background: linear-gradient(135deg, rgba(155, 189, 180, 0.14), rgba(210, 180, 143, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gallery-card img {
  min-height: 300px;
}

.gallery-card-2 {
  transform: translateY(1.2rem);
}

.gallery-card figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(18px);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 220px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(107, 143, 138, 0.18), rgba(157, 122, 84, 0.22));
  color: var(--accent-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.contact-icon img {
  width: 1.3rem;
  height: 1.3rem;
  object-fit: contain;
}

.contact-meta {
  display: grid;
  gap: 0.18rem;
}

.gallery-image-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.gallery-image-editor-card {
  display: grid;
  gap: 0.75rem;
}

.gallery-image-editor-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 210px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
}

:root[data-theme="dark"] .project-document-link,
:root[data-theme="dark"] .document-editor-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 4vw 2.3rem;
  color: var(--muted);
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.site-footer a:hover {
  opacity: 0.8;
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem 0.8rem 0.8rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 20px 32px rgba(37, 211, 102, 0.26);
  backdrop-filter: blur(18px);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 36px rgba(37, 211, 102, 0.32);
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.whatsapp-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.whatsapp-text {
  font-weight: 600;
  letter-spacing: 0.01em;
}

:root[data-theme="dark"] .whatsapp-float {
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-body .site-header {
  position: sticky;
}

.admin-main {
  padding: 2rem 0 4rem;
  display: grid;
  gap: 1.1rem;
}

.panel-heading,
.repeatable-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-grid,
.editor-card-grid {
  display: grid;
  gap: 1rem;
}

.two-column {
  grid-template-columns: repeat(2, 1fr);
}

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

input,
textarea {
  width: 100%;
  border: 1px solid rgba(154, 173, 184, 0.42);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: #22313b;
  font: inherit;
  backdrop-filter: blur(16px);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #82929d;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #91a5a3;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(107, 143, 138, 0.72);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(107, 143, 138, 0.12);
}

:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] textarea:focus {
  border-color: rgba(155, 189, 180, 0.72);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(155, 189, 180, 0.12);
}

.repeatable-block {
  margin-top: 1.6rem;
}

.repeatable-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.editor-card {
  padding: 1rem;
}

.editor-card-grid {
  grid-template-columns: repeat(2, 1fr);
}

.remove-button {
  margin-top: 1rem;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: rgba(191, 108, 96, 0.14);
  color: #8b4a42;
  cursor: pointer;
}

.image-preview,
.inline-preview,
.empty-preview {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 180px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px dashed rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(18px);
}

.image-preview,
.inline-preview {
  padding: 2rem 0.8rem 0.8rem;
}

.image-preview {
  margin-top: 1rem;
  max-width: 280px;
}

.empty-preview {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.status-text[data-dirty="true"] {
  color: var(--accent-2);
}

@media (max-width: 1100px) {
  .section-shell,
  .admin-main {
    width: min(100vw - 2rem, 960px);
  }

  .hero-section,
  .about-grid,
  .contact-card,
  .projects-grid,
  .project-detail-layout {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .gallery-grid,
  .stats-band,
  .frame-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-card-2 {
    transform: none;
  }

  .portrait-card {
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 1rem;
  }

  .site-header,
  .contact-links,
  .site-footer,
  .header-actions,
  .admin-actions,
  .panel-heading,
  .repeatable-head,
  .stats-band,
  .two-column,
  .editor-card-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .section-head-row {
    flex-direction: column;
    align-items: stretch;
  }

  .frame-block-head {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header {
    position: static;
    transform: none !important;
    padding: 0.9rem 1rem;
  }

  .main-nav {
    display: none;
  }

  .hero-section {
    padding-top: 3rem;
    gap: 1.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 10vw, 3.4rem);
    max-width: 12ch;
  }

  .hero-actions,
  .hero-pills {
    gap: 0.7rem;
  }

  .button,
  .manage-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .theme-toggle {
    width: 100%;
    justify-content: center;
  }

  .portrait-card img {
    max-width: 360px;
  }

  .portrait-caption {
    width: min(88%, 320px);
    bottom: 1.6rem;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-float {
    padding-right: 0.8rem;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .admin-main {
    width: calc(100vw - 1.2rem);
  }

  .stats-band,
  .services-grid,
  .gallery-grid,
  .frame-detail-grid,
  .gallery-image-editor-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 2.2rem;
    padding-bottom: 2rem;
  }

  .section-shell {
    padding-bottom: 3rem;
  }

  .signal-card,
  .about-card,
  .detail-panel,
  .contact-card,
  .panel-card,
  .stat-card,
  .service-card,
  .project-copy,
  .admin-hero {
    padding: 1.15rem;
  }

  .project-image-wrap,
  .gallery-card {
    padding: 2rem 0.8rem 0.8rem;
  }

  .project-image-wrap {
    min-height: 220px;
  }

  .gallery-card img {
    min-height: 240px;
  }

  .contact-link {
    min-width: 100%;
  }

  .whatsapp-float {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}
