@font-face {
  font-family: "Cormorant";
  src: url("../fonts/Cormorant/Cormorant-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/Cormorant/Cormorant-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/Cormorant/Cormorant-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/Cormorant/Cormorant-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/Cormorant/Cormorant-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope/Manrope-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope/Manrope-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --graphite: #1c1a1f;
  --black: #0a090b;
  --rose-wine: #d18a83;
  --rose-wine-deep: #b16e73;
  --rose-wine-rgb: 209, 138, 131;
  --white: #f8f7f5;
  --paper: #ffffff;
  --ink-soft: #49444d;
  --line: #d8d2d7;

  --bg: #f7f4f1;
  --bg-elevated: rgba(255, 255, 255, 0.76);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --ink: #1c1a1f;
  --muted: #5a545e;
  --line-soft: rgba(28, 26, 31, 0.12);
  --header-bg: rgba(247, 244, 241, 0.86);
  --hero-overlay: rgba(10, 9, 11, 0.22);
  --hero-overlay-strong: rgba(10, 9, 11, 0.42);
  --hero-button-fill: rgba(248, 247, 245, 0.96);
  --hero-button-text: #0a090b;
  --hero-button-border: rgba(248, 247, 245, 0.74);
  --hero-badge-bg: rgba(248, 247, 245, 0.14);
  --hero-badge-border: rgba(248, 247, 245, 0.18);
  --hero-image: none;
  --project-vitrine-bg: #ffffff;
  --header-height: 60px;
  --radius-lg: 26px;
  --radius-md: 16px;
  --shadow: 0 24px 50px rgba(13, 10, 14, 0.14);
  --container: min(1160px, 92vw);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111015;
    --bg-elevated: rgba(20, 19, 24, 0.78);
    --surface: rgba(25, 24, 31, 0.9);
    --surface-strong: #1a1920;
    --ink: #f4f1ec;
    --muted: rgba(244, 241, 236, 0.7);
    --line-soft: rgba(255, 255, 255, 0.12);
    --header-bg: rgba(17, 16, 21, 0.72);
    --hero-overlay: rgba(10, 9, 11, 0.34);
    --hero-overlay-strong: rgba(10, 9, 11, 0.52);
    --hero-button-fill: rgba(248, 247, 245, 0.94);
    --hero-button-text: #0a090b;
    --hero-button-border: rgba(248, 247, 245, 0.74);
    --hero-badge-bg: rgba(248, 247, 245, 0.1);
    --hero-badge-border: rgba(248, 247, 245, 0.14);
    --project-vitrine-bg: #000000;
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.36);
  }

  html .brand-text {
    color: rgba(248, 247, 245, 0.82);
  }

  html .brand-name {
    color: #f8f7f5;
  }

  html .brand-role {
    color: rgba(248, 247, 245, 0.68);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(var(--rose-wine-rgb), 0.1), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(28, 26, 31, 0.08), transparent 28%),
    var(--bg);
  line-height: 1.6;
}

body.page-home {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

body.page-admin {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--rose-wine-rgb), 0.08), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(28, 26, 31, 0.05), transparent 26%),
    color-mix(in srgb, var(--bg) 90%, rgba(248, 247, 245, 0.22));
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(111, 45, 69, 0.42);
  outline-offset: 2px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: calc(var(--header-height) - 14px);
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease;
}

.brand-logo.is-ready {
  opacity: 1;
  visibility: visible;
}

.brand-text {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.35em;
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.96rem;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a272d;
  white-space: nowrap;
}

.brand-name {
  font-weight: 700;
  color: #1f1d22;
  white-space: nowrap;
}

.brand-role {
  font-weight: 300;
  color: #3f3b43;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.main-nav a[aria-current="page"] {
  color: var(--rose-wine);
  border-color: var(--rose-wine);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

main {
  padding: calc(var(--header-height) + 12px) 0 72px;
}

body.page-home main {
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant", "Times New Roman", serif;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

p {
  margin: 0;
}

.home-main {
  display: block;
  min-height: 0;
}

.hero-home {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  color: var(--white);
  box-shadow: none;
  background-color: var(--bg);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-visual-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 240ms linear;
  will-change: opacity;
}

.hero-visual-layer.is-current {
  opacity: 1;
  z-index: 0;
}

.hero-visual-layer.is-next {
  z-index: 1;
}

.hero-home.is-transitioning .hero-visual-layer.is-current {
  opacity: 0;
}

.hero-home.is-transitioning .hero-visual-layer.is-next {
  opacity: 1;
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 9, 11, 0.04), rgba(10, 9, 11, 0.24));
  pointer-events: none;
}

.hero-home-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: clamp(24px, 4vw, 48px);
}

.hero-caption {
  position: absolute;
  right: clamp(8px, 1.4vw, 18px);
  bottom: clamp(8px, 1.2vw, 14px);
  z-index: 2;
  max-width: calc(100vw - 28px);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  color: rgba(248, 247, 245, 0.72);
  text-shadow: 0 1px 12px rgba(10, 9, 11, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-panel {
  position: absolute;
  left: clamp(18px, 4.2vw, 64px);
  bottom: clamp(24px, 4.4vw, 54px);
  display: grid;
  gap: 6px;
  max-width: min(1040px, calc(100vw - 132px));
  justify-self: start;
  padding: clamp(14px, 1.6vw, 22px) clamp(16px, 2vw, 24px);
  isolation: isolate;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -12px -16px -12px -16px;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(10, 9, 11, 0.42), rgba(10, 9, 11, 0.18) 55%, transparent 100%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14), transparent 36%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: -1;
  pointer-events: none;
}

.hero-panel h1 {
  width: 100%;
  max-width: 100%;
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: clamp(1.42rem, 2.22vw, 2.08rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.008em;
  text-wrap: balance;
}

body.page-home.is-home-copy-pending [data-hero-title],
body.page-home.is-home-copy-pending [data-hero-lead] {
  opacity: 0;
}

.hero-lead {
  max-width: min(52ch, 100%);
  margin-top: -2px;
  color: rgba(248, 247, 245, 0.78);
  font-size: 1.04rem;
  font-weight: 300;
  line-height: 1.42;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-contact-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(248, 247, 245, 0.24);
  background: rgba(248, 247, 245, 0.08);
  color: rgba(248, 247, 245, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(10, 9, 11, 0.14);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hero-contact-icon:hover {
  transform: translateY(-1px);
  background: rgba(248, 247, 245, 0.14);
  border-color: rgba(248, 247, 245, 0.38);
  color: var(--white);
}

.hero-contact-icon i {
  font-size: 1.18rem;
  line-height: 1;
}

.hero-contact-icon .fa-whatsapp {
  font-size: 1.28rem;
}

.hero-nav {
  position: absolute;
  right: clamp(8px, 1.4vw, 18px);
  bottom: clamp(54px, 6vw, 72px);
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.hero-nav-button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(248, 247, 245, 0.28);
  background: rgba(248, 247, 245, 0.08);
  color: var(--white);
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.hero-nav-button:hover {
  transform: translateY(-1px);
  background: rgba(248, 247, 245, 0.14);
  border-color: rgba(248, 247, 245, 0.42);
}

.hero-nav-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 600;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--graphite);
  color: var(--white);
}

.btn-primary {
  background: var(--hero-button-fill);
  color: var(--hero-button-text);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--surface-strong);
}

.btn-outline {
  border-color: var(--hero-button-border);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(248, 247, 245, 0.12);
  transform: translateY(-2px);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.block-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: 0 12px 30px rgba(13, 10, 14, 0.07);
}

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

.studio-text h2,
.section-head h2,
.cta-panel h2,
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.feature-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--rose-wine);
}

.studio-stats {
  background: linear-gradient(180deg, rgba(var(--rose-wine-rgb), 0.08), rgba(28, 26, 31, 0.04));
  display: grid;
  gap: 12px;
}

.stats-title {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--muted);
}

.stat-item {
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  display: grid;
  gap: 3px;
}

.stat-number {
  font-family: "Cormorant", "Times New Roman", serif;
  font-size: 1.7rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.work-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.service-card {
  --card-image: none;
  min-height: 410px;
  border-radius: var(--radius-md);
  color: var(--white);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 250ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
  z-index: -1;
}

.service-card.residencial::before {
  background:
    linear-gradient(125deg, rgba(10, 9, 11, 0.72), rgba(var(--rose-wine-rgb), 0.62)),
    var(--card-image) center center / cover no-repeat;
}

.service-card.comercial::before {
  background:
    linear-gradient(125deg, rgba(28, 26, 31, 0.78), rgba(var(--rose-wine-rgb), 0.55)),
    var(--card-image) center center / cover no-repeat;
}

.card-tag {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(248, 247, 245, 0.84);
}

.service-card h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.service-card p {
  max-width: 38ch;
}

.section-head {
  margin-bottom: 14px;
  display: grid;
  gap: 8px;
}

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

.showcase-card {
  min-height: 260px;
  border-radius: 16px;
  padding: 20px;
  background:
    linear-gradient(145deg, var(--surface-strong), var(--surface)),
    linear-gradient(40deg, rgba(var(--rose-wine-rgb), 0.07), rgba(28, 26, 31, 0.06));
  border: 1px solid var(--line-soft);
  display: grid;
  align-content: end;
  gap: 6px;
}

.showcase-card span {
  text-transform: uppercase;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--rose-wine-deep);
}

.showcase-card h3 {
  font-size: 1.9rem;
}

.process-section {
  margin-top: 4px;
}

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

.process-item {
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 22px;
  display: grid;
  gap: 8px;
}

.process-item span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--rose-wine-rgb), 0.12);
  color: var(--rose-wine-deep);
  font-weight: 700;
  font-size: 0.8rem;
}

.process-item h3 {
  font-size: 1.8rem;
}

.process-item p {
  color: var(--muted);
}

.cta-panel {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5.2vw, 44px);
  color: var(--white);
  display: grid;
  gap: 12px;
  background: linear-gradient(130deg, rgba(28, 26, 31, 0.96), rgba(111, 45, 69, 0.87));
  box-shadow: var(--shadow);
}

.cta-panel p {
  max-width: 58ch;
  color: rgba(248, 247, 245, 0.9);
}

.section-title {
  margin: 0 0 14px;
}

body[data-page="contact"] .section-title {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.12;
}

body[data-page="contact"] main {
  background:
    radial-gradient(circle at 6% 0%, rgba(var(--rose-wine-rgb), 0.06), transparent 24%),
    radial-gradient(circle at 94% 8%, rgba(28, 26, 31, 0.035), transparent 18%);
}

body[data-page="contact"] .page-block {
  padding: 18px;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(25, 28, 34, 0.045);
}

.page-block {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(25, 28, 34, 0.06);
}

.page-block + .page-block {
  margin-top: 16px;
}

.list {
  margin: 0;
  padding-left: 18px;
}

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

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

body[data-page="contact"] .contact-grid > * {
  min-width: 0;
}

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

body[data-page="contact"] .contact-intro {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 52ch;
}

body[data-page="contact"] .form label {
  display: grid;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 9px 11px;
  font: inherit;
  background: color-mix(in srgb, var(--surface-strong) 96%, rgba(var(--rose-wine-rgb), 0.025));
  color: var(--ink);
}

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

.form-hint {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: -2px;
}

body[data-page="contact"] .btn {
  padding: 9px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

body[data-page="contact"] .page-block p,
body[data-page="contact"] .page-block a {
  font-size: 0.96rem;
}

body[data-page="contact"] main.contact-main {
  padding: 0;
  background: none;
}

body[data-page="contact"] .contact-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  min-height: 100dvh;
  box-shadow: 0 24px 64px rgba(19, 15, 12, 0.12);
  isolation: isolate;
}

body[data-page="contact"] .contact-hero-bg,
body[data-page="contact"] .contact-hero-overlay {
  position: absolute;
  inset: 0;
}

body[data-page="contact"] .contact-hero-bg {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.3), transparent 18%),
    linear-gradient(135deg, #e9e1d9, #d9cdc1);
  filter: saturate(0.92) brightness(0.94);
  opacity: 0.92;
  transform: scale(1.03);
  transition: opacity 420ms ease;
}

body[data-page="contact"] .contact-hero[data-contact-hero-ready="true"] .contact-hero-bg {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
}

body[data-page="contact"] .contact-hero-overlay {
  background:
    linear-gradient(135deg, rgba(247, 244, 241, 0.58) 0%, rgba(247, 244, 241, 0.18) 40%, rgba(247, 244, 241, 0.56) 100%),
    linear-gradient(180deg, rgba(15, 11, 8, 0.05), rgba(15, 11, 8, 0.1)),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.26), transparent 26%),
    radial-gradient(circle at 82% 72%, rgba(var(--rose-wine-rgb), 0.08), transparent 22%);
}

body[data-page="contact"] .contact-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  padding: calc(var(--header-height) + clamp(22px, 3vw, 38px)) clamp(22px, 3vw, 38px) clamp(24px, 3vw, 40px);
  align-content: end;
  min-height: calc(100dvh - 44px);
}

body[data-page="contact"] .contact-copy {
  display: grid;
  gap: 8px;
  max-width: none;
  color: var(--ink);
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.18);
}

body[data-page="contact"] .contact-eyebrow {
  margin: 0;
}

body[data-page="contact"] .contact-copy h1 {
  margin: 0;
  max-width: none;
  font-family: "Cormorant", "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.65vw, 2.45rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

body[data-page="contact"] .contact-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

body[data-page="contact"] .contact-card {
  display: grid;
  gap: 14px;
  height: 100%;
  min-height: 100%;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 30px;
  background: rgba(255, 252, 248, 0.52);
  box-shadow: 0 18px 40px rgba(19, 15, 12, 0.11);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
}

body[data-page="contact"] .contact-card-title {
  margin: 0;
  font-family: "Cormorant", "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  line-height: 1.14;
  font-weight: 500;
}

body[data-page="contact"] .contact-form {
  gap: 12px;
}

body[data-page="contact"] .contact-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="contact"] .contact-form label {
  display: grid;
  gap: 6px;
  color: rgba(28, 26, 31, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

body[data-page="contact"] .contact-form input,
body[data-page="contact"] .contact-form textarea,
body[data-page="contact"] .contact-form select {
  border-color: rgba(28, 26, 31, 0.11);
  border-radius: 14px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

body[data-page="contact"] .contact-form input:focus,
body[data-page="contact"] .contact-form textarea:focus,
body[data-page="contact"] .contact-form select:focus {
  border-color: rgba(var(--rose-wine-rgb), 0.35);
  box-shadow: 0 0 0 4px rgba(var(--rose-wine-rgb), 0.08);
}

body[data-page="contact"] .contact-submit {
  align-self: start;
  width: fit-content;
  margin-top: 2px;
  background: rgba(28, 26, 31, 0.88);
  border-color: rgba(28, 26, 31, 0.88);
}

body[data-page="contact"] .contact-submit:disabled {
  opacity: 0.68;
  cursor: wait;
}

body[data-page="contact"] .contact-form-status {
  min-height: 1.2em;
  margin: 0;
  color: rgba(28, 26, 31, 0.72);
}

body[data-page="contact"] .contact-details {
  display: grid;
  gap: 14px;
  align-content: start;
}

body[data-page="contact"] .contact-detail {
  display: grid;
  gap: 5px;
  padding-top: 13px;
  border-top: 1px solid rgba(28, 26, 31, 0.08);
}

body[data-page="contact"] .contact-detail:first-child {
  padding-top: 0;
  border-top: 0;
}

body[data-page="contact"] .contact-detail span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--rose-wine-deep);
}

body[data-page="contact"] .contact-detail a,
body[data-page="contact"] .contact-detail p {
  margin: 0;
  color: rgba(28, 26, 31, 0.9);
  font-size: 0.95rem;
  line-height: 1.56;
  text-decoration: none;
}

body[data-page="contact"] .contact-detail a:hover {
  text-decoration: underline;
}

body[data-page="contact"] .contact-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(247, 244, 241, 0.06), rgba(247, 244, 241, 0.14));
  color: rgba(28, 26, 31, 0.72);
  backdrop-filter: blur(6px);
}

@media (prefers-color-scheme: dark) {
  body[data-page="contact"] .contact-hero-bg {
    filter: saturate(0.88) brightness(0.62);
  }

  body[data-page="contact"] .contact-hero-overlay {
    background:
      linear-gradient(135deg, rgba(9, 8, 10, 0.48) 0%, rgba(9, 8, 10, 0.3) 42%, rgba(9, 8, 10, 0.58) 100%),
      linear-gradient(180deg, rgba(9, 8, 10, 0.18), rgba(9, 8, 10, 0.34)),
      radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.06), transparent 24%),
      radial-gradient(circle at 82% 72%, rgba(var(--rose-wine-rgb), 0.1), transparent 22%);
  }

  body[data-page="contact"] .contact-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(9, 8, 10, 0.12), rgba(9, 8, 10, 0.28));
    color: rgba(244, 241, 236, 0.68);
  }
}

.page-landing {
  background: var(--bg);
}

.page-landing main {
  padding: 0 0 84px;
}

.landing-main {
  display: grid;
  gap: 40px;
}

.landing-stage {
  position: relative;
  min-height: var(--landing-stage-height, 1320px);
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 10%, rgba(var(--rose-wine-rgb), 0.08), transparent 20%),
    linear-gradient(180deg, rgba(247, 244, 241, 0.72), rgba(247, 244, 241, 0.12) 24%, rgba(247, 244, 241, 0.18) 100%);
}

.landing-stage-mosaic,
.landing-stage-scrim {
  position: absolute;
  inset: 0;
}

.landing-stage-mosaic {
  z-index: 0;
  display: grid;
  grid-auto-flow: dense;
  gap: 0;
  padding: 0;
  align-content: start;
  justify-content: center;
  overflow: hidden;
}

.landing-stage-scrim {
  z-index: 1;
  background: none;
  pointer-events: none;
}

.landing-stage-overlay {
  position: relative;
  z-index: 2;
  min-height: inherit;
  padding-top: calc(var(--header-height) + 18px);
}

.landing-floating-copy {
  position: sticky;
  top: calc(var(--header-height) + 26px);
  z-index: 3;
  width: min(1120px, calc(100vw - 160px));
  display: grid;
  gap: 10px;
  margin-left: clamp(24px, 6vw, 92px);
  padding: clamp(14px, 1.6vw, 22px) clamp(16px, 2vw, 24px);
  isolation: isolate;
}

.landing-floating-copy::before {
  content: "";
  position: absolute;
  inset: -12px -16px -12px -16px;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(10, 9, 11, 0.42), rgba(10, 9, 11, 0.18) 55%, transparent 100%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14), transparent 36%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: -1;
  pointer-events: none;
}

.landing-stage-eyebrow {
  margin: 0;
  color: rgba(248, 247, 245, 0.76);
  text-shadow: 0 1px 12px rgba(10, 9, 11, 0.3);
}

.landing-floating-copy h1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: clamp(1.43rem, 2.98vw, 2.68rem);
  line-height: 0.98;
  max-width: 100%;
  text-wrap: balance;
  color: rgba(248, 247, 245, 0.96);
  text-shadow: 0 1px 14px rgba(10, 9, 11, 0.28);
}

.landing-stage-lead {
  max-width: 42ch;
  margin: -2px 0 0;
  color: rgba(248, 247, 245, 0.8);
  font-size: 1.3rem;
  line-height: 1.42;
  text-shadow: 0 1px 12px rgba(10, 9, 11, 0.28);
}

.landing-stage-actions {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  pointer-events: auto;
}

.landing-stage-actions .btn {
  min-width: 190px;
  justify-content: center;
}

.landing-stage-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.landing-stage-secondary:hover,
.landing-stage-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.landing-mosaic-card {
  position: relative;
  min-height: 0;
  box-sizing: border-box;
  border-radius: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.94);
  overflow: hidden;
  background: rgba(250, 247, 243, 0.06);
  box-shadow: none;
}

.landing-mosaic-card.can-bleed.is-edge-left {
  margin-left: calc(var(--landing-cell-size, 48px) * -0.36);
}

.landing-mosaic-card.can-bleed.is-edge-right {
  margin-right: calc(var(--landing-cell-size, 48px) * -0.36);
}

.landing-mosaic-card.can-bleed.is-edge-top {
  margin-top: calc(var(--landing-cell-size, 48px) * -0.36);
}

.landing-mosaic-card.can-bleed.is-edge-bottom {
  margin-bottom: calc(var(--landing-cell-size, 48px) * -0.36);
}

.landing-mosaic-visual {
  height: 100%;
  min-height: 100%;
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.02);
}

.landing-mosaic-visual::after {
  content: none;
}

.landing-body {
  display: grid;
  gap: 16px;
  margin-top: -80px;
  position: relative;
  z-index: 3;
}

.landing-panel,
.landing-cta {
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 32px);
  background: color-mix(in srgb, var(--surface) 92%, rgba(var(--rose-wine-rgb), 0.04));
  box-shadow: 0 14px 32px rgba(19, 15, 12, 0.05);
}

.landing-section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.landing-section-head h2,
.landing-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.02;
}

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

.landing-point {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.landing-point h3 {
  font-size: 1.2rem;
  line-height: 1.05;
}

.landing-point p,
.landing-cta p {
  color: var(--muted);
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .page-landing {
    background: var(--bg);
  }

  .landing-stage {
    background:
      radial-gradient(circle at 16% 10%, rgba(var(--rose-wine-rgb), 0.12), transparent 20%),
      linear-gradient(180deg, rgba(9, 8, 10, 0.68), rgba(9, 8, 10, 0.26) 24%, rgba(9, 8, 10, 0.34) 100%);
  }

  .landing-stage-scrim {
    background: none;
  }

  .landing-floating-copy::before {
    background:
      linear-gradient(90deg, rgba(10, 9, 11, 0.56), rgba(10, 9, 11, 0.28) 55%, transparent 100%),
      radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 36%);
  }

  .landing-stage-lead {
    color: rgba(244, 241, 236, 0.8);
  }

  .landing-mosaic-card {
    border-color: rgba(255, 255, 255, 0.84);
  }
}

.upload-preview {
  display: grid;
  gap: 12px;
}

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

.upload-preview-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.upload-preview-bar strong,
.upload-preview-bar span {
  font-size: 0.84rem;
}

.upload-preview-bar span {
  color: var(--muted);
}

.upload-preview-note {
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.upload-preview-empty {
  padding: 16px;
  border: 1px dashed var(--line-soft);
  border-radius: 14px;
  color: var(--muted);
  background: var(--bg-elevated);
}

.upload-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}

.upload-card.is-selected {
  border-color: rgba(var(--rose-wine-rgb), 0.42);
  background: color-mix(in srgb, var(--surface) 90%, rgba(var(--rose-wine-rgb), 0.1));
}

.upload-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.upload-meta {
  display: grid;
  gap: 6px;
}

.upload-meta strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.upload-meta small,
.upload-note {
  color: var(--muted);
}

.upload-note {
  font-size: 0.84rem;
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.upload-hero-flag,
.upload-crop,
.upload-remove {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-strong);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.upload-hero-flag:hover,
.upload-crop:hover,
.upload-remove:hover {
  transform: translateY(-1px);
}

.upload-hero-flag.is-active {
  background: var(--rose-wine);
  border-color: var(--rose-wine);
  color: var(--white);
}

.upload-hero-flag.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.upload-crop {
  background: rgba(var(--rose-wine-rgb), 0.1);
  color: var(--rose-wine-deep);
}

.upload-main {
  background: rgba(28, 26, 31, 0.06);
  color: var(--ink);
}

.upload-main[aria-pressed="true"] {
  background: rgba(var(--rose-wine-rgb), 0.14);
  border-color: rgba(var(--rose-wine-rgb), 0.42);
  color: var(--rose-wine-deep);
}

.upload-remove {
  background: rgba(177, 70, 86, 0.1);
  border-color: rgba(177, 70, 86, 0.22);
  color: #b14656;
}

.upload-remove:hover {
  background: rgba(177, 70, 86, 0.16);
  border-color: rgba(177, 70, 86, 0.34);
}

.upload-card.is-main-image {
  border-color: rgba(var(--rose-wine-rgb), 0.46);
  box-shadow: inset 0 0 0 1px rgba(var(--rose-wine-rgb), 0.18);
}

.admin-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-self: end;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.15;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  backdrop-filter: blur(3px);
}

.footer-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-split a {
  text-decoration: none;
  color: var(--rose-wine-deep);
  font-weight: 600;
}

.projects-main {
  display: grid;
  gap: 8px;
  padding-top: var(--header-height);
}

.projects-hero-shell {
  width: 100%;
  position: sticky;
  top: var(--header-height);
  z-index: 82;
  background:
    radial-gradient(circle at 8% 20%, rgba(var(--rose-wine-rgb), 0.06), transparent 26%),
    color-mix(in srgb, var(--surface) 76%, transparent);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
}

.projects-hero {
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
}

.projects-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
}

.projects-hero-label {
  margin: 0;
  flex: 0 0 auto;
  transform: translateY(1px);
}

.segmented-picker {
  display: inline-flex;
  gap: 6px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(13, 10, 14, 0.05);
  margin-top: 0;
  width: fit-content;
  max-width: min(100%, 520px);
}

.segmented-option {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.segmented-option.is-active {
  background: var(--rose-wine);
  color: var(--white);
}

.project-status {
  color: var(--rose-wine-deep);
  font-weight: 600;
  min-height: 1.2em;
  margin: 0;
  padding-top: 6px;
}

.projects-grid {
  display: grid;
  gap: 28px;
  padding-top: 2px;
}

.project-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(220px, 0.58fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.project-entry:nth-child(even) {
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
}

.project-entry:nth-child(even) .project-media {
  order: 2;
}

.project-entry:nth-child(even) .project-content {
  order: 1;
}

.project-media {
  margin: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.project-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
}

.project-main-frame {
  width: 100%;
  aspect-ratio: var(--project-main-ratio, 2.3);
  height: auto;
  overflow: hidden;
  border-radius: 18px;
  background: var(--project-vitrine-bg);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.project-main-frame.is-vertical {
  justify-content: center;
  align-items: center;
  width: 100%;
  background: var(--project-vitrine-bg);
  padding: 0;
}

.project-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
}

.project-main-frame.is-vertical .project-main-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-thumb-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.project-thumb {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
  width: calc((100% - 24px) / 5);
  aspect-ratio: 1 / 1;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.project-thumb:hover,
.project-thumb.is-active {
  opacity: 1;
  border-color: rgba(var(--rose-wine-rgb), 0.4);
  transform: translateY(-1px);
}

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

.project-content {
  display: grid;
  gap: 10px;
  align-content: start;
}

.project-content h2 {
  width: 100%;
  max-width: none;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
}

.project-content p {
  color: var(--muted);
  max-width: 44ch;
  font-size: 0.92rem;
}

.project-cover-placeholder {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: var(--project-vitrine-bg);
  background-image:
    linear-gradient(130deg, rgba(28, 26, 31, 0.78), rgba(111, 45, 69, 0.55)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: cover, 18px 18px;
}

.project-empty {
  border-top: 1px dashed var(--line-soft);
  border-bottom: 1px dashed var(--line-soft);
  padding: 20px 0;
}

.project-empty h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.admin-hero {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 16px;
  box-shadow: 0 12px 30px rgba(13, 10, 14, 0.06);
}

.admin-page-label {
  margin: 18px 0 12px;
}

.page-admin .admin-panel[hidden] {
  display: none !important;
}

.admin-panel {
  display: grid;
  gap: 16px;
}

.admin-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, rgba(var(--rose-wine-rgb), 0.05));
  box-shadow: 0 10px 30px rgba(13, 10, 14, 0.04);
  width: fit-content;
}

.admin-menu-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.admin-menu-btn:hover {
  transform: translateY(-1px);
}

.admin-menu-btn.is-active {
  background: var(--rose-wine);
  color: var(--white);
}

.admin-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 92%, rgba(var(--rose-wine-rgb), 0.05));
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 12px 30px rgba(13, 10, 14, 0.06);
}

.admin-login-card {
  width: min(100%, 460px);
  margin: 0 auto 4px;
  background: color-mix(in srgb, var(--surface) 90%, rgba(var(--rose-wine-rgb), 0.04));
}

.admin-section-lead {
  color: var(--muted);
  margin: -4px 0 6px;
  font-size: 0.92rem;
}

.admin-home-card {
  display: grid;
  gap: 12px;
}

.admin-home-card .form {
  gap: 12px;
}

.admin-home-hero-card {
  display: grid;
  gap: 14px;
}

.admin-hero-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface) 90%, rgba(var(--rose-wine-rgb), 0.06));
  color: var(--rose-wine-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-home-hero-list {
  display: grid;
  gap: 12px;
}

.home-hero-project {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, rgba(var(--rose-wine-rgb), 0.03));
}

.home-hero-project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-hero-project-head h3 {
  margin: 2px 0 0;
  font-size: 1.3rem;
  line-height: 1.02;
}

.home-hero-project-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-hero-project-list {
  display: grid;
  gap: 10px;
}

.home-hero-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, rgba(var(--rose-wine-rgb), 0.04));
}

.home-hero-card.is-active {
  border-color: rgba(var(--rose-wine-rgb), 0.28);
  background: color-mix(in srgb, var(--surface) 88%, rgba(var(--rose-wine-rgb), 0.08));
}

.home-hero-thumb {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--bg-elevated);
}

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

.home-hero-content {
  display: grid;
  gap: 3px;
}

.home-hero-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.home-hero-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-hero-badge.is-active {
  background: rgba(var(--rose-wine-rgb), 0.12);
  border-color: rgba(var(--rose-wine-rgb), 0.28);
  color: var(--rose-wine-deep);
}

.home-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--ink);
}

.toggle-field span {
  font-size: 0.92rem;
  font-weight: 600;
}

.toggle-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--rose-wine);
}

.landing-assignment-group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.landing-assignment-group legend {
  padding: 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.landing-assignment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.landing-assignment-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--rose-wine);
}

.landing-assignment-option span {
  font-size: 0.9rem;
}

.admin-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

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

.admin-project-composer {
  display: grid;
  gap: 12px;
}

.admin-project-composer[hidden] {
  display: none !important;
}

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

.admin-project-maintenance-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-project-maintenance-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.admin-project-maintenance-card strong {
  font-size: 1.7rem;
  line-height: 1;
}

.admin-project-maintenance-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-project-maintenance-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-image-registry {
  display: grid;
  gap: 14px;
}

.admin-image-registry-empty {
  margin: 0;
  color: var(--muted);
}

.admin-image-registry-row {
  display: grid;
  grid-template-columns: 88px minmax(220px, 1fr) repeat(3, minmax(180px, 220px));
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.admin-image-registry-thumb {
  width: 88px;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
  border: 1px solid var(--line-soft);
}

.admin-image-registry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-image-registry-meta {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-image-registry-meta strong {
  font-size: 1rem;
  line-height: 1.3;
}

.admin-image-registry-meta p,
.admin-image-registry-meta span {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-image-registry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.admin-image-registry-variant {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
}

.admin-image-registry-variant strong {
  font-size: 0.9rem;
}

.admin-image-registry-variant span {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-image-registry-variant a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
}

.admin-image-registry-variant a:hover {
  text-decoration: underline;
}

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

.admin-help-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.admin-help-item strong {
  font-size: 0.95rem;
}

.admin-help-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-topbar .btn {
  flex-shrink: 0;
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-soft);
}

.btn-outline-dark:hover {
  background: rgba(28, 26, 31, 0.08);
}

.admin-status {
  min-height: 1.2em;
  color: var(--muted);
  font-weight: 600;
}

.admin-status.is-success {
  color: #2c8f57;
}

.admin-status.is-error {
  color: #c54a4a;
}

.admin-status.is-pending {
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  body.page-admin {
    background:
      radial-gradient(circle at 12% 0%, rgba(var(--rose-wine-rgb), 0.12), transparent 28%),
      linear-gradient(180deg, #111015 0%, #17151c 100%);
    color: var(--ink);
  }

  body.page-admin .admin-card,
  body.page-admin .admin-hero,
  body.page-admin .admin-menu,
  body.page-admin .home-hero-project,
  body.page-admin .admin-project-item,
  body.page-admin .upload-card,
  body.page-admin .admin-card-compact,
  body.page-admin .admin-landing-copy-editor,
  body.page-admin .admin-analytics-metric,
  body.page-admin .admin-analytics-panel,
  body.page-admin .admin-image-registry-row,
  body.page-admin .admin-image-registry-variant {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(27, 25, 33, 0.94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  }

  body.page-admin .admin-login-card {
    background: rgba(27, 25, 33, 0.96);
  }

  body.page-admin .form input,
  body.page-admin .form textarea,
  body.page-admin .form select,
  body.page-admin .admin-analytics-toolbar select,
  body.page-admin .admin-landing-scale-number input,
  body.page-admin .admin-landing-copy-field input {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(12, 11, 15, 0.72);
    color: var(--ink);
  }

  body.page-admin .form input::placeholder,
  body.page-admin .form textarea::placeholder {
    color: rgba(244, 241, 236, 0.4);
  }

  body.page-admin .btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
  }

  body.page-admin .btn-outline-dark:hover,
  body.page-admin .btn-outline-dark:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
  }

  body.page-admin .admin-menu-btn.is-active {
    background: var(--rose-wine);
    color: var(--white);
  }

  body.page-admin .admin-hero-count,
  body.page-admin .home-hero-badge,
  body.page-admin .admin-project-maintenance-card,
  body.page-admin .admin-analytics-timeline,
  body.page-admin .admin-analytics-event,
  body.page-admin .admin-image-registry-thumb {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(12, 11, 15, 0.48);
  }

  body.page-admin .admin-status.is-success {
    color: #7ed6a2;
  }

  body.page-admin .admin-status.is-error {
    color: #ff9b9b;
  }
}

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

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

.admin-landings-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-landings-main,
.admin-landings-side {
  min-width: 0;
}

.admin-card-compact {
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(13, 10, 14, 0.05);
}

.admin-card-compact h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.admin-topbar-compact {
  margin-bottom: 8px;
}

.admin-card-compact .admin-section-lead {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-landing-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, rgba(var(--rose-wine-rgb), 0.04));
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.admin-card-compact .admin-landing-link {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.admin-landing-link-mini {
  justify-content: center;
  min-width: 74px;
  padding-inline: 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.admin-landing-link:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--rose-wine-rgb), 0.28);
  background: color-mix(in srgb, var(--surface) 88%, rgba(var(--rose-wine-rgb), 0.08));
}

.admin-landing-settings-form {
  display: grid;
  gap: 10px;
}

.admin-landing-scale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-landing-scale-row input[type="range"] {
  width: 100%;
}

.admin-landing-scale-number {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.admin-landing-scale-number input {
  width: 52px;
  min-width: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  outline: none;
}

.admin-landing-scale-number span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-landing-curation-list {
  display: grid;
  gap: 8px;
}

.admin-landing-copy-list {
  display: grid;
  gap: 8px;
}

.admin-landing-copy-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 95%, rgba(var(--rose-wine-rgb), 0.02));
}

.admin-landing-copy-head {
  display: grid;
  align-items: center;
  min-width: 0;
  grid-column: 1 / -1;
}

.admin-landing-copy-meta {
  display: grid;
  gap: 0;
}

.admin-landing-copy-head strong {
  font-size: 0.78rem;
  line-height: 1.15;
  font-weight: 600;
}

.admin-landing-copy-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 0;
  grid-column: 1;
}

.admin-landing-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-landing-copy-link:hover {
  border-color: rgba(var(--rose-wine-rgb), 0.28);
  background: color-mix(in srgb, var(--surface) 88%, rgba(var(--rose-wine-rgb), 0.08));
}

.admin-landing-copy-field {
  display: grid;
  gap: 3px;
  margin: 0;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-landing-copy-field span {
  line-height: 1.1;
}

.admin-landing-copy-field input {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 97%, rgba(255, 255, 255, 0.32));
}

.admin-landing-copy-side {
  display: grid;
  gap: 6px;
  align-self: end;
  grid-column: 2;
  grid-row: 2;
}

.admin-landing-copy-actions {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-width: 0;
}

.admin-landing-copy-actions .btn {
  width: 100%;
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.admin-landing-copy-editor .admin-status {
  grid-column: 2 / -1;
  margin: 0;
  min-height: 1em;
  font-size: 0.68rem;
}

.admin-landing-curation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 90%, rgba(var(--rose-wine-rgb), 0.03));
}

.admin-landing-curation-item strong {
  display: block;
  margin: 0 0 3px;
  font-size: 0.88rem;
}

.admin-landing-curation-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .admin-landings-grid {
    grid-template-columns: 1fr;
  }

  .admin-landing-copy-editor {
    grid-template-columns: minmax(0, 1fr) 124px;
  }

  .admin-landing-copy-link,
  .admin-landing-copy-actions .btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .admin-landings-grid {
    grid-template-columns: 1fr;
  }

  .admin-landing-curation-item {
    grid-template-columns: 1fr;
  }

  .admin-landing-link-mini {
    width: 100%;
  }

  .admin-landing-copy-editor {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .admin-landing-copy-side {
    grid-template-columns: 1fr 1fr;
    grid-column: 1;
    grid-row: auto;
  }

  .admin-landing-copy-editor .admin-status {
    grid-column: 1;
    margin-top: 0;
  }
}

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

.admin-lead-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 90%, rgba(var(--rose-wine-rgb), 0.04));
}

.admin-lead-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-lead-head h3 {
  margin: 2px 0 0;
  font-size: 1.35rem;
  line-height: 1.04;
}

.admin-lead-date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-lead-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.admin-lead-delete {
  padding: 0.72rem 1rem;
  font-size: 0.72rem;
}

.admin-lead-meta {
  display: grid;
  gap: 4px;
}

.admin-lead-meta p,
.admin-lead-message {
  margin: 0;
  color: var(--muted);
}

.admin-lead-meta a {
  color: var(--ink);
  text-decoration: none;
}

.admin-lead-message {
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
}

.admin-project-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
  background: color-mix(in srgb, var(--surface) 90%, rgba(var(--rose-wine-rgb), 0.04));
}

.admin-project-item.is-hidden {
  opacity: 0.72;
  border-style: dashed;
  background: color-mix(in srgb, var(--surface) 88%, rgba(var(--rose-wine-rgb), 0.08));
}

.admin-project-item p,
.admin-project-item small {
  color: var(--muted);
}

.admin-project-thumb {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
}

.admin-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-project-content {
  display: grid;
  gap: 4px;
}

.admin-project-thumb-empty {
  background:
    radial-gradient(circle at 35% 35%, rgba(var(--rose-wine-rgb), 0.14), transparent 36%),
    var(--bg-elevated);
}

.admin-project-category {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--rose-wine-deep) !important;
  font-weight: 700;
}

.admin-project-item h3 {
  margin: 0;
  font-size: 1.5rem;
}

.admin-delete {
  background: #2c252a;
}

.admin-delete-strong {
  background: #a03030;
  border-color: #a03030;
  color: #fff;
}

.admin-delete-strong:hover,
.admin-delete-strong:focus-visible {
  background: #8b2525;
  border-color: #8b2525;
  color: #fff;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
}

.admin-analytics-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-analytics-purge {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-analytics-purge-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-analytics-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-analytics-purge label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-analytics-toolbar select {
  min-width: 120px;
}

.admin-analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.admin-analytics-summary-secondary {
  margin-top: 12px;
}

.admin-analytics-timeline {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.admin-analytics-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-analytics-timeline-head h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-analytics-timeline-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-analytics-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.admin-analytics-timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-analytics-timeline-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.admin-analytics-timeline-chart {
  width: 100%;
  overflow-x: auto;
}

.admin-analytics-timeline-chart svg {
  width: 100%;
  min-width: 760px;
  height: auto;
  display: block;
}

.admin-analytics-chart-axis,
.admin-analytics-chart-value,
.admin-analytics-chart-muted {
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  letter-spacing: 0;
  pointer-events: none;
}

.admin-analytics-chart-axis {
  fill: var(--muted);
  font-size: 12px;
}

.admin-analytics-chart-muted {
  fill: color-mix(in srgb, var(--muted) 78%, transparent);
  font-size: 11px;
}

.admin-analytics-chart-value {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--surface-strong);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.admin-analytics-chart-visit-value {
  font-size: 12px;
}

.admin-analytics-timeline-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.admin-analytics-metric {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.admin-analytics-metric strong {
  font-size: 1.7rem;
  line-height: 1;
}

.admin-analytics-metric span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-analytics-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.admin-analytics-panel-featured {
  min-height: 100%;
}

.admin-analytics-panel-head {
  display: grid;
  gap: 4px;
}

.admin-analytics-panel-head h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-analytics-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-analytics-orientation {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.admin-analytics-pie-wrap {
  display: grid;
  place-items: center;
}

.admin-analytics-pie {
  position: relative;
  width: min(200px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(28, 26, 31, 0.08);
}

.admin-analytics-pie-center {
  position: absolute;
  inset: 18%;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-strong) 96%, transparent);
  box-shadow: inset 0 0 0 1px rgba(28, 26, 31, 0.06);
}

.admin-analytics-pie-center strong {
  font-size: 1.7rem;
  line-height: 1;
}

.admin-analytics-pie-center span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-analytics-pie-legend {
  display: grid;
  gap: 12px;
}

.admin-analytics-pie-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-analytics-pie-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.admin-analytics-pie-copy {
  display: grid;
  gap: 2px;
}

.admin-analytics-pie-copy strong {
  font-size: 0.95rem;
}

.admin-analytics-pie-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-analytics-ranking {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.admin-analytics-ranking li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.admin-analytics-ranking li:first-child {
  padding-top: 0;
  border-top: 0;
}

.admin-analytics-ranking-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-analytics-ranking strong {
  display: block;
  font-size: 0.96rem;
}

.admin-analytics-ranking span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-analytics-ranking b {
  min-width: 32px;
  text-align: right;
  font-size: 1rem;
}

.admin-analytics-thumb {
  width: 52px;
  aspect-ratio: 1;
  flex: 0 0 52px;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 88%, var(--line-soft));
  border: 1px solid var(--line-soft);
}

.admin-analytics-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-analytics-thumb-empty {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 84%, white) 0%, color-mix(in srgb, var(--surface) 92%, var(--line-soft)) 100%);
}

.admin-analytics-events {
  display: grid;
  gap: 10px;
}

.admin-analytics-event {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.admin-analytics-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-analytics-event-head time {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-analytics-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 1024px) {
  .admin-topbar {
    align-items: flex-start;
  }

  .admin-topbar .btn {
    width: auto;
  }

  .admin-analytics-toolbar,
  .admin-analytics-purge {
    width: 100%;
  }

  .admin-analytics-toolbar .btn,
  .admin-analytics-purge .btn {
    min-width: 180px;
  }

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

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

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

  .admin-analytics-timeline-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .admin-analytics-toolbar,
  .admin-analytics-purge {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-analytics-toolbar label,
  .admin-analytics-purge label,
  .admin-analytics-toolbar .btn,
  .admin-analytics-purge .btn {
    width: 100%;
  }

  .admin-analytics-purge-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-analytics-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .admin-analytics-summary,
  .admin-analytics-summary-secondary,
  .admin-analytics-panels {
    grid-template-columns: 1fr;
  }

  .admin-analytics-orientation {
    grid-template-columns: 1fr;
  }

  .admin-image-registry-row {
    grid-template-columns: 1fr;
  }

  .admin-image-registry-thumb {
    width: min(120px, 100%);
  }

  .admin-analytics-timeline {
    padding: 14px;
  }

  .admin-analytics-timeline-chart svg {
    min-width: 640px;
  }

  .admin-analytics-ranking li,
  .admin-analytics-event-head {
    align-items: flex-start;
  }
}

.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 9, 11, 0.64);
  backdrop-filter: blur(14px);
}

.crop-modal[hidden] {
  display: none;
}

.crop-dialog {
  width: min(960px, 96vw);
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.crop-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.crop-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rose-wine-deep);
  margin-bottom: 4px;
}

.crop-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.15;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(var(--rose-wine-rgb), 0.14), transparent 28%),
    linear-gradient(135deg, rgba(28, 26, 31, 0.12), rgba(28, 26, 31, 0.04)),
    var(--bg);
  border: 1px solid var(--line-soft);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.crop-stage:active {
  cursor: grabbing;
}

.crop-stage img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.crop-frame {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(248, 247, 245, 0.85);
  box-shadow:
    inset 0 0 0 9999px rgba(10, 9, 11, 0.14),
    inset 0 0 0 1px rgba(10, 9, 11, 0.12);
  pointer-events: none;
}

.crop-controls {
  display: grid;
  gap: 12px;
}

.crop-zoom {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.crop-zoom input[type="range"] {
  width: 100%;
}

.crop-hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.edit-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 9, 11, 0.64);
  backdrop-filter: blur(14px);
}

.edit-modal[hidden] {
  display: none;
}

.edit-dialog {
  width: min(960px, 96vw);
  max-height: min(88vh, 960px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.edit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.edit-images-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.edit-images-head strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.edit-images-head p {
  color: var(--muted);
  font-size: 0.88rem;
}

.edit-images {
  display: grid;
  gap: 12px;
}

.edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .studio-grid,
  .work-cards,
  .showcase-grid,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-entry {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 26px;
  }

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

  .project-entry:nth-child(even) .project-media,
  .project-entry:nth-child(even) .project-content {
    order: initial;
  }

  .hero-panel h1 {
    width: 100%;
  }

  body[data-page="contact"] .contact-hero {
    min-height: auto;
    border-radius: 0;
  }

  body[data-page="contact"] .contact-shell {
    min-height: auto;
  }

  .landing-stage {
    min-height: var(--landing-stage-height, 1180px);
  }

  .landing-floating-copy {
    width: min(720px, calc(100vw - 44px));
    margin-left: clamp(18px, 4vw, 42px);
  }
}

@media (max-width: 860px) {
  body[data-page="contact"] .contact-card-grid,
  body[data-page="contact"] .contact-form-row {
    grid-template-columns: 1fr;
  }

  body[data-page="contact"] .contact-copy h1 {
    white-space: normal;
  }

  .landing-stage {
    min-height: var(--landing-stage-height, 1040px);
  }

  .landing-floating-copy {
    width: min(100%, calc(100vw - 32px));
    margin-left: 0;
  }

  .landing-floating-copy h1 {
    max-width: 100%;
  }

  .landing-stage-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-stage-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

html[data-viewport="compact"] .menu-toggle,
html[data-viewport="medium"] .menu-toggle {
  display: inline-flex;
}

html[data-viewport="compact"] .main-nav,
html[data-viewport="medium"] .main-nav {
  position: absolute;
  top: calc(100% + 1px);
  right: 4vw;
  left: 4vw;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(8, 8, 10, 0.16);
}

html[data-viewport="compact"] .main-nav.is-open,
html[data-viewport="medium"] .main-nav.is-open {
  display: flex;
}

html[data-layout="medium-portrait"] .brand,
html[data-layout="compact-portrait"] .brand {
  align-items: center;
}

html[data-layout="medium-portrait"] .brand-text,
html[data-layout="compact-portrait"] .brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 2px;
  font-size: 0.86rem;
  line-height: 1;
  letter-spacing: 0.08em;
  max-width: 12ch;
  white-space: normal;
}

html[data-layout="medium-portrait"] .brand-name,
html[data-layout="compact-portrait"] .brand-name,
html[data-layout="medium-portrait"] .brand-role,
html[data-layout="compact-portrait"] .brand-role {
  display: block;
}

html[data-layout="medium-landscape"] .brand-text,
html[data-layout="compact-landscape"] .brand-text {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.28em;
  font-size: 0.76rem;
  line-height: 1.02;
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 640px) {
  main {
    padding-top: calc(var(--header-height) + 8px);
  }

  :root {
    --header-height: 64px;
  }

  .segmented-picker {
    width: 100%;
    max-width: none;
  }

  .projects-hero-inner {
    display: grid;
    gap: 10px;
    padding: 10px 0 12px;
    align-items: start;
  }

  .segmented-option {
    flex: 1 1 0;
    padding: 8px 12px;
  }

  .home-hero-project {
    padding: 12px;
    gap: 10px;
  }

  .home-hero-project-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-hero-project-count {
    margin-top: 2px;
  }

  .home-hero-project-list {
    gap: 8px;
  }

  .home-hero-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-hero-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .home-hero-actions {
    justify-content: flex-start;
  }

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

  .project-thumb-rail {
    gap: 6px;
  }

  .project-thumb {
    width: calc((100% - 12px) / 3);
  }

  .footer-split {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-home-inner {
    padding: 20px;
    display: grid;
    align-content: end;
  }

  .hero-caption {
    right: 8px;
    bottom: 8px;
    max-width: calc(100vw - 16px);
    font-size: 0.48rem;
    letter-spacing: 0.16em;
  }

  .hero-nav {
    right: 8px;
    bottom: 48px;
    gap: 6px;
  }

  .hero-nav-button {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .hero-panel h1 {
    font-size: clamp(1.22rem, 5.8vw, 1.82rem);
    width: 100%;
  }

  .hero-lead {
    max-width: 100%;
    font-size: clamp(0.92rem, 3.4vw, 1.04rem);
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-contact-icons {
    gap: 7px;
  }

  .hero-panel {
    position: static;
    max-width: 100%;
    width: min(100%, 560px);
    padding: clamp(14px, 2.8vh, 20px);
    gap: clamp(8px, 1.4vh, 10px);
  }

  .hero-panel::before {
    inset: calc(-1 * clamp(10px, 2vw, 14px));
    border-radius: 22px;
    background:
      linear-gradient(90deg, rgba(10, 9, 11, 0.46), rgba(10, 9, 11, 0.2) 60%, transparent 100%),
      radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.1), transparent 34%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

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

  .admin-menu {
    width: 100%;
  }

  .admin-menu-btn {
    flex: 1 1 0;
  }

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

  .admin-lead-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-lead-side {
    width: 100%;
    justify-content: space-between;
  }

  .home-hero-project-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-hero-project-count {
    margin-top: 2px;
  }

  .home-hero-project-list {
    gap: 8px;
  }

  .home-hero-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-hero-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .home-hero-actions {
    justify-content: flex-start;
  }

  .admin-project-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-project-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .admin-item-actions {
    justify-self: stretch;
  }

  .upload-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  body[data-page="contact"] main.contact-main {
    padding: 0;
  }

  body[data-page="contact"] .contact-hero {
    border-radius: 0;
  }

  body[data-page="contact"] .contact-shell {
    padding: calc(var(--header-height) + 16px) 16px 16px;
    gap: 16px;
  }

  body[data-page="contact"] .contact-copy h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 9vw, 2.5rem);
    white-space: normal;
  }

  body[data-page="contact"] .contact-card {
    border-radius: 22px;
    padding: 16px;
  }

  .landing-main {
    gap: 28px;
  }

  .landing-stage {
    min-height: var(--landing-stage-height, 1040px);
  }

  .landing-stage-overlay {
    padding-top: calc(var(--header-height) - 1px);
  }

  .landing-floating-copy {
    position: relative;
    top: auto;
    width: 100%;
    padding: 18px;
    transform: translateY(-15px);
  }

  .landing-floating-copy h1 {
    -webkit-line-clamp: 3;
    font-size: clamp(1.24rem, 6.4vw, 2.02rem);
    line-height: 1.02;
  }

  .landing-stage-lead {
    font-size: clamp(1.02rem, 4.2vw, 1.28rem);
    line-height: 1.36;
  }

  .landing-stage-actions {
    margin-top: 8px;
    pointer-events: auto;
  }

  .landing-stage-actions .btn {
    position: relative;
    z-index: 5;
  }

  .landing-stage-mosaic {
    padding: 0;
  }
}

html[data-layout$="-portrait"] .hero-panel {
  position: absolute;
  left: clamp(10px, 2.2vw, 14px);
  right: clamp(10px, 2.2vw, 14px);
  bottom: clamp(39px, 6.4svh, 53px);
  width: auto;
  max-width: calc(100vw - clamp(20px, 4.4vw, 28px));
  min-height: 0;
  max-height: min(38svh, 320px);
  overflow: hidden;
  padding: clamp(10px, 1.4vh, 12px);
  gap: clamp(4px, 0.5vh, 6px);
  border-radius: 24px;
}

html[data-layout$="-portrait"] .hero-panel h1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: clamp(1rem, 4.6vw, 1.52rem);
  line-height: 1.02;
  width: 100%;
  text-wrap: balance;
}

html[data-layout$="-portrait"] .hero-lead {
  display: block;
  font-size: clamp(0.88rem, 3.2vw, 1rem);
  line-height: 1.3;
  max-width: 100%;
}

html[data-layout$="-portrait"] .hero-actions {
  flex-wrap: wrap;
  gap: 6px;
}

html[data-layout$="-portrait"] .hero-contact-icons {
  gap: 4px;
}

html[data-layout$="-portrait"] .hero-actions .btn {
  min-height: 40px;
  padding-inline: 1rem;
  font-size: 0.72rem;
}

html[data-layout$="-portrait"] .hero-contact-icon {
  width: 40px;
  height: 40px;
}

html[data-layout$="-portrait"] .hero-contact-icon i {
  font-size: 1.02rem;
}

html[data-layout$="-portrait"] .hero-panel::before {
  inset: -8px -10px -8px -10px;
  border-radius: 24px;
}

html[data-layout$="-portrait"] .hero-nav {
  top: calc(var(--header-height) + 10px);
  right: 10px;
  bottom: auto;
  gap: 6px;
}

html[data-layout$="-portrait"] .hero-nav-button {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

html[data-layout="compact-portrait"] .projects-grid {
  gap: 22px;
}

html[data-layout="compact-portrait"] .project-entry {
  gap: 12px;
  padding-bottom: 22px;
}

html[data-layout="compact-portrait"] .project-viewer {
  gap: 8px;
}

html[data-layout="compact-portrait"] .project-main-frame {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
}

html[data-layout="compact-portrait"] .project-main-frame.is-vertical .project-main-image,
html[data-layout="compact-portrait"] .project-main-image {
  object-fit: cover;
}

html[data-layout="compact-portrait"] .project-main-frame.is-vertical .project-main-image {
  object-fit: contain;
}

html[data-layout="compact-portrait"] .project-thumb-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html[data-layout="compact-portrait"] .project-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

html[data-layout="compact-portrait"] .project-content {
  gap: 8px;
}

html[data-layout="compact-portrait"] .project-content p {
  max-width: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .service-card,
  .btn {
    transition: none !important;
  }
}
