:root {
  --color-deep-slate: #6366f1;
  --color-arctic: #818cf8;
  --color-sand: #e0e7ff;
  --color-mushroom: #94a3b8;
  --color-rose: #c7d2fe;
  --color-bg: #f1f5f9;
  --color-text: #2a2d32;
  --color-text-light: #ffffff;
  --max-width: 1200px;
  --font-heading: "Playfair Display", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --shadow-sm: 0 12px 30px rgba(86, 107, 115, 0.12);
  --shadow-lg: 0 24px 48px rgba(86, 107, 115, 0.22);
  --radius-base: 18px;
  --radius-pill: 999px;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a:hover,
.button:hover,
.toggle-button:hover {
  color: inherit;
}

p {
  margin: 0 0 1.25rem;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-base);
}

/* Logos should never have border-radius */
img[src*="logo"],
img[alt*="Logo"],
img[alt*="logo"],
.nav-brand img,
.site-logo img,
.logo img {
  border-radius: 0 !important;
}

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

.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(244, 240, 236, 0.85);
  border-bottom: 1px solid rgba(86, 107, 115, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.5rem;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: var(--color-deep-slate);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-heading);
  color: var(--color-deep-slate);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    var(--color-deep-slate),
    var(--color-arctic)
  );
  color: var(--color-text-light);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.brand-mark.small {
  width: 42px;
  height: 42px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-mushroom);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.primary-nav {
  display: flex;
  gap: 1.2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.primary-nav a {
  padding: 0.5rem 0.2rem;
  color: var(--color-deep-slate);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-base);
}

.primary-nav a[aria-current="page"] {
  border-color: var(--color-arctic);
  color: var(--color-arctic);
}

.primary-nav a:focus-visible,
.primary-nav a:hover {
  border-color: var(--color-rose);
}

.button,
.filled-button,
.ghost-button,
.toggle-button {
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.6rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
}

.filled-button {
  background: linear-gradient(
    135deg,
    var(--color-arctic),
    var(--color-deep-slate)
  );
  color: var(--color-text-light);
  box-shadow: var(--shadow-sm);
}

.filled-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(86, 107, 115, 0.4);
  color: var(--color-deep-slate);
  background: rgba(255, 255, 255, 0.4);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-text-light);
  overflow: hidden;
}

.offer-hero {
  position: relative;
  min-height: 70vh;
  padding-top: 7rem;
  padding-bottom: 5rem;
  color: var(--color-text-light);
  overflow: hidden;
}

.offer-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.8);
}

.offer-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(20, 30, 40, 0.75),
    rgba(86, 107, 115, 0.6)
  );
}

.offer-hero-content {
  position: relative;
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
}

.offer-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0;
}

.offer-meta dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
}

.offer-meta dd {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.legal-hero {
  display: block;
  min-height: 0;
  background: linear-gradient(
    135deg,
    rgba(86, 107, 115, 0.8),
    rgba(140, 131, 123, 0.6)
  );
  color: var(--color-text-light);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media.hero-media--loading .hero-image,
.hero-media.hero-media--loading .hero-video {
  opacity: 0;
}

.hero-media.hero-media--ready .hero-image,
.hero-media.hero-media--ready .hero-video {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.hero-video,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.about-hero {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: linear-gradient(
    135deg,
    rgba(86, 107, 115, 0.1),
    rgba(191, 173, 163, 0.15)
  );
}

.quote-card {
  background: #fff;
  border-radius: 32px;
  padding: 2rem;
  box-shadow: 0 20px 55px rgba(86, 107, 115, 0.15);
  display: grid;
  gap: 1rem;
  align-self: stretch;
}

.quote-card p {
  font-size: 1.2rem;
  margin: 0;
  color: var(--color-deep-slate);
}

.quote-card span {
  font-weight: 600;
  color: var(--color-mushroom);
}

.hero-video.is-active,
.hero-image.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(86, 107, 115, 0.92) 0%,
    rgba(86, 107, 115, 0.6) 38%,
    rgba(191, 173, 163, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  padding: 6rem 0 5rem;
  display: grid;
  gap: 1.5rem;
  max-width: 640px;
}

.eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-sand);
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin: 0 0 1rem;
  color: inherit;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 50ch;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.media-toggle {
  display: inline-flex;
  gap: 0.5rem;
}

.toggle-button {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text-light);
  border: 1px solid rgba(217, 205, 191, 0.4);
  padding: 0.6rem 1.25rem;
}

.toggle-button.is-active {
  background: rgba(255, 255, 255, 0.35);
  color: var(--color-deep-slate);
}

.hero-highlights {
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.hero-highlights div {
  display: grid;
  gap: 0.2rem;
}

.hero-highlights dt {
  font-weight: 600;
}

.hero-highlights dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.section {
  padding: 5rem 0;
}

.section.muted {
  background: rgba(217, 205, 191, 0.22);
}

.dashboard-nav-strip {
  position: sticky;
  top: 76px;
  z-index: 45;
  background: transparent;
  padding-top: 0.75rem;
}

.toast-menu {
  display: flex;
  justify-content: center;
  position: relative;
}

.toast-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(86, 107, 115, 0.12);
  box-shadow: 0 25px 55px rgba(86, 107, 115, 0.18);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  width: min(1024px, calc(100% - 1rem));
}

.toast-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.2rem;
  border-radius: 28px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-deep-slate);
  border: 1px solid rgba(86, 107, 115, 0.08);
  background: rgba(255, 255, 255, 0.7);
  transition:
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.toast-link:hover,
.toast-link:focus-visible {
  background: rgba(101, 133, 140, 0.08);
  border-color: rgba(101, 133, 140, 0.25);
  box-shadow: inset 0 0 0 1px rgba(101, 133, 140, 0.25);
}

.toast-link.is-active {
  background: linear-gradient(
    135deg,
    var(--color-arctic),
    var(--color-deep-slate)
  );
  color: var(--color-text-light);
  border-color: transparent;
  box-shadow: 0 20px 35px rgba(86, 107, 115, 0.25);
}

.toast-link.is-active .toast-icon {
  background: rgba(255, 255, 255, 0.25);
}

.toast-icon {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(86, 107, 115, 0.08);
}

.toast-copy {
  display: grid;
  gap: 0.15rem;
}

.toast-link strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.toast-link small {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(42, 45, 50, 0.7);
}

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

.dashboard-summary-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.summary-card {
  background: #fff;
  border-radius: var(--radius-base);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
}

.summary-card-header {
  display: grid;
  gap: 0.35rem;
}

.summary-card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.summary-card li {
  line-height: 1.4;
}

.summary-card a {
  text-decoration: underline;
  font-weight: 600;
}

.cluster {
  display: grid;
  gap: 2rem;
  grid-template-columns: 320px 1fr;
}

.cluster-sidebar {
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-base);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  align-self: start;
}

.cluster-list {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.cluster-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.cluster-content {
  width: 100%;
}

@media (max-width: 960px) {
  .dashboard-nav-strip {
    top: 64px;
  }

  .cluster {
    grid-template-columns: 1fr;
  }

  .overview-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .toast-nav {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding: 0.75rem;
  }
}

@media (max-width: 640px) {
  .toast-nav {
    grid-template-columns: 1fr;
    width: 100%;
    border-radius: 24px;
  }

  .toast-link {
    white-space: normal;
  }
}

.admin-login-page {
  min-height: 100vh;
  margin: 0;
}

.login-layout {
  align-items: center;
}

.form-feedback {
  margin: 0;
  font-size: 0.9rem;
  color: #c62828;
}

.legal-block {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-base);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}

.legal-block h3 {
  margin-top: 0;
}

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

.text-link {
  font-weight: 600;
  color: var(--color-deep-slate);
}

.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.offer-gallery {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.offer-gallery-item {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.offer-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-sm);
}

.offer-gallery-item figcaption {
  font-size: 0.9rem;
  color: rgba(42, 45, 50, 0.75);
}

.offer-details-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.offer-spec-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.offer-spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(86, 107, 115, 0.12);
  padding-bottom: 0.45rem;
}

.offer-spec-list span {
  font-weight: 600;
  color: var(--color-mushroom);
}

.offer-spec-list strong {
  font-size: 1rem;
}

.offer-cta-card {
  display: grid;
  gap: 0.75rem;
}

.offer-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
}

.card,
.property-card,
.form,
.contact-card {
  background: #ffffff;
  border-radius: var(--radius-base);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.dashboard-hero {
  background: linear-gradient(
    135deg,
    rgba(86, 107, 115, 0.15),
    rgba(191, 173, 163, 0.25)
  );
  padding-top: 6rem;
  padding-bottom: 6rem;
  min-height: 0;
}

.dashboard-hero-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.dashboard-hero-card {
  background: #ffffff;
  border-radius: var(--radius-base);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 1.5rem;
}

.dashboard-hero-card dl {
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.dashboard-hero-card dt {
  font-weight: 600;
  color: var(--color-deep-slate);
}

.dashboard-hero-card dd {
  margin: 0.35rem 0 0;
  color: var(--color-mushroom);
}

.small-muted {
  font-size: 0.8rem;
  color: rgba(86, 107, 115, 0.7);
  margin: 0;
}

.module-card {
  min-height: 320px;
}

.cms-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel-stack {
  grid-column: 1 / -1;
  display: grid;
  gap: 2rem;
}

.panel-stack.two-columns {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cms-panel {
  background: #fff;
  border-radius: var(--radius-base);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(86, 107, 115, 0.08);
  display: grid;
  gap: 1rem;
}

.cms-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cms-panel h3 {
  margin: 0;
}

@media (max-width: 720px) {
  .panel-stack.two-columns {
    grid-template-columns: 1fr;
  }
}

.header-select {
  min-width: 180px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(86, 107, 115, 0.25);
  padding: 0.55rem 1.1rem;
  background: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
}

.panel-content {
  display: grid;
  gap: 1.25rem;
}

.panel-content[data-columns="2"] {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.panel-content[data-columns="split"] {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  align-items: start;
  gap: 2.25rem;
}

.panel-content .full-span {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .panel-content[data-columns="split"] {
    grid-template-columns: 1fr;
  }
}

.input-row {
  display: grid;
  gap: 0.35rem;
}

.input-row.multi {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.input-row label {
  font-weight: 600;
  color: var(--color-deep-slate);
}

.form-layout .input-row label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(42, 45, 50, 0.65);
}

.input-row input,
.input-row textarea,
.input-row select {
  width: 100%;
}

.seo-preview {
  border: 1px solid rgba(86, 107, 115, 0.15);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(86, 107, 115, 0.04);
  display: grid;
  gap: 0.4rem;
}

.seo-preview strong {
  color: #1a73e8;
}

.color-palette-grid {
  display: grid;
  gap: 1rem;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.color-preview-chip {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Extracted styles from landing page HTML */

/* Brand logo specific styles */
.brand-logo-custom {
  height: 50px;
  width: auto;
  border-radius: 50%;
}

/* Hero section styles */
.hero-align-start {
  align-items: flex-start;
  padding-top: 120px;
}

/* Video styles */
.video-hidden {
  display: none;
}

/* Media toggle styles */
.media-toggle-hidden {
  display: none;
}

/* Centered content with margin */
.centered-content-m2rem {
  text-align: center;
  margin: 2rem 0 1rem;
}

/* Property media background styles */
.property-media-1 {
  background-image: url("https://placehold.co/600x400?text=Property+1");
}

.property-media-2 {
  background-image: url("https://placehold.co/600x400?text=Property+2");
}

.property-media-3 {
  background-image: url("https://placehold.co/600x400?text=Property+3");
}

/* Section header centered styles */
.section-header-centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Badge with margin */
.badge-mb-1rem {
  margin-bottom: 1rem;
}

/* SVG with margin */
.svg-mr-05rem {
  margin-right: 0.5rem;
}

/* Title with max width */
.title-max-width-800px {
  max-width: 800px;
}

/* Lead text with max width and center alignment */
.lead-max-width-700px-center {
  max-width: 700px;
  text-align: center;
}

/* Card with specific padding, overflow and shadow */
.card-no-padding {
  padding: 0;
  overflow: hidden;
  margin: 3rem 0;
  border-radius: 24px;
  box-shadow: 0 35px 70px rgba(86, 107, 115, 0.2);
}

/* Header with gradient background and border */
.header-gradient-bg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, #f1f5f9, #e2e8f0);
  border-bottom: 1px solid rgba(86, 107, 115, 0.1);
}

/* Circle span styles */
.circle-span-red {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
}

.circle-span-yellow {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f59e0b;
}

.circle-span-green {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
}

/* Span with flex and styling */
.span-flex-styling {
  flex: 1;
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #64748b;
}

/* Aspect ratio container */
.aspect-ratio-16-9-dark {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e293b, #334155);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Absolute positioned grid */
.absolute-grid-inset-2rem {
  position: absolute;
  inset: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Kanban column styling */
.kanban-column {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
}

/* Kanban header styling */
.kanban-header {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Kanban task styling */
.kanban-task {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid #64748b;
}

/* Kanban task text */
.kanban-task-text {
  color: white;
  font-size: 0.8rem;
}

/* Kanban task detail */
.kanban-task-detail {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

/* Kanban in-progress header */
.kanban-header-progress {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(59, 130, 246, 0.5);
}

/* Kanban in-progress task */
.kanban-task-progress {
  background: rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  border-left: 3px solid #3b82f6;
}

/* Kanban review header */
.kanban-header-review {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(245, 158, 11, 0.5);
}

/* Kanban review task */
.kanban-task-review {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  border-left: 3px solid #f59e0b;
}

/* Kanban done header */
.kanban-header-done {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(34, 197, 94, 0.5);
}

/* Kanban done task */
.kanban-task-done {
  background: rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid #22c55e;
}

/* Absolute positioned button */
.absolute-button {
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-deep-slate);
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Card grid with margin */
.card-grid-mb-3rem {
  margin-bottom: 3rem;
}

/* Card with text center alignment */
.card-text-center {
  text-align: center;
}

/* Icon container with specific styling */
.icon-container {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--color-arctic),
    var(--color-deep-slate)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

/* Split layout with center alignment */
.split-center-align {
  margin-bottom: 3rem;
  align-items: center;
}

/* Margin top container */
.margin-top-2rem {
  margin-top: 2rem;
}

/* Grid with 2 columns */
.grid-2-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Card with gradient background and white text */
.card-gradient-white-text {
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--color-arctic),
    var(--color-deep-slate)
  );
  color: white;
}

/* Large text with bold weight */
.text-large-bold {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Small text with opacity */
.text-small-opacity {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Mindflow badge with purple styling */
.badge-purple {
  margin-bottom: 1rem;
  background: rgba(168, 85, 247, 0.15);
  color: #7c3aed;
}

/* Mindflow card with purple shadow */
.card-purple-shadow {
  padding: 0;
  overflow: hidden;
  margin: 3rem 0;
  border-radius: 24px;
  box-shadow: 0 35px 70px rgba(168, 85, 247, 0.15);
}

/* Header with purple gradient */
.header-purple-gradient {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, #f5f3ff, #ede9fe);
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

/* Mindflow aspect ratio container */
.aspect-ratio-16-9-purple {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Absolute SVG */
.absolute-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Centered circle node */
.centered-circle-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.5);
  z-index: 5;
}

/* Centered text styling */
.centered-text-bold {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

/* Absolute positioned node */
.absolute-node {
  position: absolute;
  top: 25%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Node text styling */
.node-text-bold {
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}

/* Absolute positioned node with green gradient */
.absolute-node-green {
  position: absolute;
  top: 25%;
  left: 75%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #22c55e, #10b981);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

/* Absolute positioned node with orange gradient */
.absolute-node-orange {
  position: absolute;
  top: 75%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

/* Absolute positioned node with red gradient */
.absolute-node-red {
  position: absolute;
  top: 75%;
  left: 75%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

/* Absolute positioned sub-node */
.absolute-sub-node {
  position: absolute;
  top: 15%;
  left: 10%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Small white text */
.small-white-text {
  color: white;
  font-size: 0.7rem;
}

/* Absolute positioned sub-node with different position */
.absolute-sub-node-2 {
  position: absolute;
  top: 38%;
  left: 12%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Absolute positioned sub-node with different position 3 */
.absolute-sub-node-3 {
  position: absolute;
  top: 12%;
  left: 88%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Absolute positioned sub-node with different position 4 */
.absolute-sub-node-4 {
  position: absolute;
  top: 35%;
  left: 90%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Absolute positioned button with purple styling */
.absolute-button-purple {
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  color: #7c3aed;
  padding: 1rem 2rem;
  font-size: 1rem;
  bottom: 2rem;
}

/* Icon with purple gradient */
.icon-purple-gradient {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

/* Card with purple gradient */
.card-purple-gradient {
  text-align: center;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: white;
}

/* Card with purple styling */
.card-purple-styling {
  padding: 2.5rem;
}

/* Text center alignment */
.text-center {
  text-align: center;
}

/* Centered element */
.centered-element {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.8rem;
}

/* Header with margin */
.header-with-margin {
  margin-bottom: 0.5rem;
}

/* Card grid with three columns */
.card-grid-three {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Portrait image styling */
.portrait-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Footer logo styling */
.footer-logo-small {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  border-radius: 50%;
}

/* Filled button with purple gradient */
.filled-button-purple-gradient {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

/* Margin bottom 2rem */
.mb-2rem {
  margin-bottom: 2rem;
}

/* Width 100% */
.width-full {
  width: 100%;
}

.font-preview {
  border: 1px dashed rgba(86, 107, 115, 0.4);
  border-radius: 16px;
  padding: 1.2rem;
  min-height: 96px;
}

.media-card {
  border: 1px solid rgba(86, 107, 115, 0.15);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.media-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-card input[type="file"] {
  border: 1px dashed rgba(86, 107, 115, 0.4);
  padding: 1rem;
  border-radius: 12px;
  background: rgba(217, 205, 191, 0.15);
}

.media-filename {
  font-size: 0.85rem;
  color: var(--color-mushroom);
}

.form-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 640px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
}

.form-layout .input-row {
  border: 1px solid rgba(86, 107, 115, 0.08);
  border-radius: 26px;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(180deg, #fff, #f9f4ef);
  box-shadow: 0 18px 45px rgba(86, 107, 115, 0.12);
}

.form-layout .input-row.multi {
  gap: 1rem;
}

.form-layout .input-row.multi > div {
  display: grid;
  gap: 0.35rem;
}

.form-layout .input-row input,
.form-layout .input-row textarea,
.form-layout .input-row select {
  border-radius: 14px;
  border: 1px solid rgba(86, 107, 115, 0.25);
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
}

.form-layout .input-row textarea {
  min-height: 120px;
}

.form-layout .input-row select[multiple] {
  min-height: 200px;
  border-radius: 18px;
}

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

.form-preview {
  border: 1px solid rgba(86, 107, 115, 0.08);
  border-radius: 32px;
  padding: 1.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f1ec 100%);
  display: grid;
  gap: 1.2rem;
  box-shadow: 0 28px 60px rgba(86, 107, 115, 0.18);
  position: sticky;
  top: 120px;
}

@media (max-width: 1024px) {
  .form-preview {
    position: static;
    top: auto;
  }
}

.form-preview .filled-button {
  width: 100%;
  margin-top: 0.5rem;
  box-shadow: 0 18px 30px rgba(86, 107, 115, 0.2);
}

.offer-panel-preview {
  border: 1px solid rgba(86, 107, 115, 0.2);
  border-radius: 14px;
  padding: 1.25rem;
  background: rgba(217, 205, 191, 0.2);
  display: grid;
  gap: 0.5rem;
}

.offer-panel-preview h4 {
  margin: 0;
}

.offer-panel-preview .badge {
  align-self: flex-start;
}

.property-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
}

.property-spec-list li {
  font-size: 0.9rem;
  color: var(--color-mushroom);
}

.property-spec-list strong {
  color: var(--color-deep-slate);
  font-size: 0.85rem;
}

.api-status,
.ai-status {
  font-size: 0.85rem;
  color: var(--color-mushroom);
  border-left: 3px solid rgba(101, 133, 140, 0.6);
  padding-left: 0.75rem;
}

.ai-result {
  border: 1px dashed rgba(86, 107, 115, 0.4);
  border-radius: 16px;
  padding: 1.25rem;
  min-height: 140px;
  background: rgba(244, 240, 236, 0.5);
  display: grid;
  gap: 0.5rem;
  white-space: pre-wrap;
}

.preview-field {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(86, 107, 115, 0.2);
}

.preview-field label {
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(42, 45, 50, 0.7);
}

.preview-field input,
.preview-field textarea {
  border: 1px solid rgba(86, 107, 115, 0.25);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.7);
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.roadmap-section {
  background: rgba(248, 244, 240, 0.8);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.roadmap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .roadmap-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.roadmap-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
  counter-reset: roadmap;
}

.roadmap-list li {
  line-height: 1.6;
  padding-left: 3.5rem;
  position: relative;
  color: rgba(42, 45, 50, 0.9);
}

.roadmap-list li::before {
  counter-increment: roadmap;
  content: counter(roadmap);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(86, 107, 115, 0.08);
  color: var(--color-deep-slate);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.roadmap-card,
.compliance-card {
  display: grid;
  gap: 1.5rem;
}

.compliance-card {
  background: #ffffff;
  border-radius: 34px;
  padding: 2rem;
  box-shadow: 0 35px 70px rgba(86, 107, 115, 0.18);
  border: 1px solid rgba(86, 107, 115, 0.12);
}

.compliance-card h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-deep-slate);
}

.compliance-card .feature-list {
  gap: 0.9rem;
}

.compliance-card .feature-list li::before {
  background: rgba(191, 173, 163, 0.9);
}

.property-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 220px auto;
  border-radius: 24px; /* Explicit rounding */
  transform: translateZ(0); /* Safari fix */
}

.property-media {
  background-size: cover;
  background-position: center;
}

.property-body {
  padding: 2rem; /* Increased padding */
  display: grid;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(101, 133, 140, 0.12);
  color: var(--color-arctic);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.split {
  display: grid;
  gap: 3rem;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.valuation-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.2fr);
}

@media (max-width: 960px) {
  .valuation-layout {
    grid-template-columns: 1fr;
  }
}

.valuation-form {
  border-radius: 32px;
  padding: 2.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f1ec 100%);
  box-shadow: 0 32px 70px rgba(86, 107, 115, 0.2);
  display: grid;
  gap: 1.25rem;
}

.valuation-form-header {
  display: grid;
  gap: 0.4rem;
}

.valuation-form-header h3 {
  margin: 0;
}

.valuation-form-header p {
  margin: 0;
  color: rgba(42, 45, 50, 0.75);
}

.valuation-form .form-layout {
  margin-top: 0.5rem;
}

.valuation-form .filled-button {
  justify-self: start;
  min-width: 220px;
  box-shadow: 0 18px 35px rgba(86, 107, 115, 0.2);
}

.form {
  display: grid;
  gap: 1.25rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-deep-slate);
}

input,
textarea,
select {
  border: 1px solid rgba(86, 107, 115, 0.25);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

select[multiple] {
  min-height: 180px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-arctic);
  box-shadow: 0 0 0 3px rgba(101, 133, 140, 0.15);
  outline: none;
}

textarea {
  resize: vertical;
}

.form-notice {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(42, 45, 50, 0.75);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-rose), var(--color-sand));
}

.stats {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  text-align: center;
}
.about-stats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.about-stats article {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.35rem;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.timeline-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(86, 107, 115, 0.12);
  display: grid;
  gap: 0.5rem;
}
.timeline-badge {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-arctic);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.value-card {
  border-radius: 28px;
  padding: 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9f4ef 100%);
  box-shadow: 0 30px 60px rgba(86, 107, 115, 0.12);
  display: grid;
  gap: 0.75rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.team-card {
  background: #fff;
  border-radius: var(--radius-base);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.5rem;
}
.team-media {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-base);
  background-size: cover;
  background-position: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-deep-slate);
}

.stat-label {
  color: var(--color-mushroom);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.testimonial {
  position: relative;
  padding-top: 2.5rem;
}

.testimonial::before {
  content: "“";
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 3rem;
  color: rgba(191, 173, 163, 0.35);
  font-family: var(--font-heading);
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-mushroom);
}

.portrait img {
  width: min(320px, 100%);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.contact-card {
  display: grid;
  gap: 1.5rem;
}

.site-footer {
  background: var(--color-deep-slate);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0;
}

.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-sand);
}

.subheading {
  font-size: 1rem;
  color: rgba(42, 45, 50, 0.8);
  margin: 0.4rem 0 0;
}

.blog-hero {
  background: rgba(255, 255, 255, 0.8);
  padding-top: 6rem;
  padding-bottom: 4rem;
  border-radius: 32px;
  margin: 1.5rem;
  color: var(--color-text);
}

.blog-hero h1 {
  color: var(--color-text);
}

.blog-hero .lead {
  color: var(--color-text);
  opacity: 0.85;
}

.blog-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-hero-image {
  min-height: 340px;
  border-radius: 32px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}

#beitraege {
  background: #fff;
  border-radius: 32px;
  margin: 1.5rem;
  padding: 4rem 3rem;
  box-shadow: var(--shadow-sm);
}

.blog-page .eyebrow {
  color: var(--color-deep-slate);
}

@media (max-width: 640px) {
  #beitraege {
    margin: 1rem;
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--color-deep-slate);
  font-weight: 500;
}

.blog-meta span::before {
  content: "•";
  margin: 0 0.35rem;
  color: rgba(86, 107, 115, 0.4);
}

.blog-meta span:first-child::before {
  content: "";
  margin: 0;
}

.featured-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.blog-filter-header {
  align-items: flex-start;
}

.blog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.tag-chip {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(86, 107, 115, 0.25);
  padding: 0.45rem 1.2rem;
  background: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background var(--transition-base),
    color var(--transition-base);
}

.tag-chip.is-active {
  background: var(--color-deep-slate);
  color: var(--color-text-light);
  border-color: transparent;
}

.blog-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.blog-preview-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .blog-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.blog-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  transform: translateZ(0);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-media {
  width: 100%;
  aspect-ratio: 5 / 3;
  background-size: cover;
  background-position: center;
}

.blog-card-body {
  padding: 1.75rem;
  display: grid;
  gap: 0.6rem;
}

.blog-preview-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  min-height: 240px;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(86, 107, 115, 0.18);
  padding: 0;
  transform: translateZ(0); /* Fix for Safari overflow clipping */
}

.blog-preview-card__media {
  flex: 0 0 55%;
  background-size: cover;
  background-position: center;
  border-radius: 32px 32px 0 0; /* Explicit radius to ensure rounding */
}

.blog-preview-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.75rem 1.75rem; /* Increased padding */
}

.blog-preview-card__body h3 {
  font-size: 1rem;
  margin: 0.15rem 0;
  line-height: 1.35;
}

.blog-preview-card__body p {
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-preview-card__meta {
  font-size: 0.8rem;
  color: var(--color-mushroom);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.blog-preview-card__meta span::before {
  content: "•";
  margin: 0 0.3rem;
  color: rgba(86, 107, 115, 0.35);
}

.blog-preview-card__meta span:first-child::before {
  content: "";
  margin: 0;
}

.blog-preview-card .text-link {
  margin-top: auto;
}

.blog-card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-body h3 {
  margin-bottom: 0.35rem;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--color-deep-slate);
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.blog-card-meta span::before {
  content: "•";
  margin: 0 0.35rem;
  color: rgba(86, 107, 115, 0.3);
}

.blog-card-meta span:first-child::before {
  content: "";
  margin: 0;
}

.badge.subtle {
  background: rgba(86, 107, 115, 0.12);
  color: var(--color-deep-slate);
  text-transform: none;
  letter-spacing: 0;
}

.newsletter-card {
  background: #fff;
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.newsletter-form {
  display: grid;
  gap: 1rem;
}
.section.highlighted {
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.07),
    rgba(16, 185, 129, 0.08)
  );
}
.ai-card {
  display: grid;
  gap: 1.5rem;
}
.ai-card form {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 0.5rem;
}
.ai-result {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
}
.ai-result-value {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 600;
  color: #0f172a;
}
.range-labels {
  margin-top: 0.25rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #475569;
}

.calendar-sync-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calendar-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.calendar-card {
  display: grid;
  gap: 1.25rem;
}

.calendar-provider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(86, 107, 115, 0.15);
}

.calendar-provider:last-of-type {
  border-bottom: none;
}

.calendar-provider .badge {
  margin-left: 1rem;
}

.badge.is-active {
  background: rgba(86, 107, 115, 0.2);
  color: var(--color-deep-slate);
}

.calendar-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.calendar-event-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(86, 107, 115, 0.12);
}

.calendar-event-item:last-child {
  border-bottom: none;
}

.calendar-event-body {
  display: grid;
  gap: 0.2rem;
}

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

.calendar-upload-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.calendar-status {
  font-size: 0.9rem;
  color: var(--color-mushroom);
  border-left: 3px solid rgba(86, 107, 115, 0.4);
  padding-left: 0.75rem;
}

.ghost-button.tiny {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

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

.research-card {
  display: grid;
  gap: 1rem;
}

.research-form {
  display: grid;
  gap: 0.85rem;
}

.research-mission-list {
  display: grid;
  gap: 0.75rem;
}

.research-mission {
  border: 1px solid rgba(86, 107, 115, 0.25);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-base);
}

.research-mission:hover {
  border-color: rgba(101, 133, 140, 0.9);
  transform: translateY(-1px);
}

.research-mission.is-active {
  border-color: var(--color-arctic);
  box-shadow: 0 18px 36px rgba(86, 107, 115, 0.18);
  background: rgba(101, 133, 140, 0.12);
}

.research-mission strong {
  display: block;
  font-size: 1rem;
  color: var(--color-deep-slate);
}

.research-mission p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--color-mushroom);
}

.research-mission span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(86, 107, 115, 0.8);
}

.research-stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.stack-checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px dashed rgba(86, 107, 115, 0.4);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.65);
  transition:
    border-color var(--transition-base),
    background var(--transition-base);
}

.stack-checkbox:hover {
  border-color: rgba(101, 133, 140, 0.8);
}

.stack-checkbox input {
  margin-top: 0.25rem;
}

.stack-checkbox input:checked + div strong {
  color: var(--color-arctic);
}

.stack-checkbox input:checked + div span {
  color: var(--color-deep-slate);
}

.stack-checkbox div {
  display: grid;
  gap: 0.2rem;
  color: var(--color-mushroom);
}

.stack-notes textarea {
  min-height: 120px;
}

.stack-notes span {
  font-weight: 600;
  color: var(--color-deep-slate);
}

.research-log {
  font-size: 0.85rem;
  color: var(--color-mushroom);
  border-left: 3px solid rgba(86, 107, 115, 0.2);
  padding-left: 0.75rem;
}

@media (max-width: 1024px) {
  .site-header {
    position: static;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(244, 240, 236, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid rgba(86, 107, 115, 0.08);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.is-active {
    display: flex;
  }

  .primary-nav {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }

  .hero {
    min-height: 0;
    padding-top: 5rem;
  }

  .hero-content {
    padding: 6rem 0 4rem;
  }

  .dashboard-hero-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-card {
    order: -1;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .portrait {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-card h3 {
    margin-bottom: 0.5rem;
  }

  .contact-card .feature-list {
    gap: 1rem;
  }

  .contact-card .feature-list li {
    word-break: normal;
    hyphens: auto;
  }

  .blog-preview-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-preview-card {
    aspect-ratio: auto;
    min-height: 0;
  }

  .blog-preview-card__media {
    flex: 0 0 180px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.94rem;
  }

  .layout-container {
    width: min(100% - 2rem, var(--max-width));
  }

  .nav {
    gap: 0.75rem;
  }

  .primary-nav {
    gap: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .primary-nav a {
    padding: 0.4rem 0.15rem;
  }

  .brand-eyebrow {
    font-size: 0.6rem;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .hero-content {
    gap: 1.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .media-toggle {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 4rem 0;
  }

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

  .contact-card {
    padding: 1.25rem;
  }

  .contact-card .filled-button {
    width: 100%;
    text-align: center;
  }

  .footer-flex {
    justify-content: flex-start;
  }
}
