:root {
  --bg: #e8edf4;
  --bg-2: #f4f7fb;
  --surface: rgba(247, 249, 252, 0.42);
  --surface-2: rgba(255, 255, 255, 0.32);
  --panel: rgba(12, 24, 42, 0.88);
  --text: #101b2d;
  --muted: #546274;
  --accent: #233b63;
  --accent-2: #355785;
  --accent-soft: #6e87ab;
  --accent-soft-2: #90a8c7;
  --line: rgba(255, 255, 255, 0.34);
  --glass-shadow: 0 18px 50px rgba(18, 31, 53, 0.12);
  --glass-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.18) 30%, rgba(255, 255, 255, 0.08) 100%);
  --space-section: 72px;
  --space-card: 30px;
  --radius-card: 30px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #070c16;
  --bg-2: #0b1220;
  --surface: rgba(10, 16, 30, 0.58);
  --surface-2: rgba(12, 18, 32, 0.38);
  --panel: rgba(3, 7, 15, 0.86);
  --text: #ecf2ff;
  --muted: rgba(235, 242, 255, 0.66);
  --accent: #9fc2ff;
  --accent-2: #c7dcff;
  --accent-soft: rgba(159, 194, 255, 0.62);
  --accent-soft-2: rgba(199, 220, 255, 0.7);
  --line: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --glass-highlight: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(255, 255, 255, 0.04) 100%
  );
  color-scheme: dark;
}

@font-face {
  font-family: "Havana Neo";
  src: local("Havana Neo"), local("HavanaNeo");
  font-weight: 700;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 38%),
    radial-gradient(circle at top left, rgba(110, 135, 171, 0.28), transparent 28%),
    radial-gradient(circle at right 14%, rgba(35, 59, 99, 0.14), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow-x: hidden;
}

html[data-theme="dark"] body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%),
    radial-gradient(circle at top left, rgba(159, 194, 255, 0.16), transparent 30%),
    radial-gradient(circle at right 14%, rgba(28, 74, 160, 0.2), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

a,
button {
  color: inherit;
  font: inherit;
}

input,
textarea,
select {
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

.ambient {
  position: fixed;
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: opacity 220ms ease, transform 320ms ease;
}

.ambient-left {
  top: -10vw;
  left: -8vw;
  background: rgba(110, 135, 171, 0.26);
}

.ambient-right {
  right: -10vw;
  top: 18vw;
  background: rgba(35, 59, 99, 0.16);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
  transition: transform 240ms ease, opacity 240ms ease;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(244, 248, 253, 0.24)), rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 0 rgba(255, 255, 255, 0.18), 0 12px 30px rgba(61, 38, 28, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

html[data-theme="dark"] .site-header {
  background: linear-gradient(135deg, rgba(7, 12, 22, 0.78), rgba(12, 18, 32, 0.36)), rgba(7, 12, 22, 0.38);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.28);
}

.site-header:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(255, 255, 255, 0.2), 0 16px 34px rgba(61, 38, 28, 0.1);
}

html[data-theme="dark"] .site-header:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 20px 46px rgba(0, 0, 0, 0.34);
}

.brand {
  font-family: "Sora", "Manrope", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(16, 27, 45, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

html[data-theme="dark"] .brand-mark {
  border-color: rgba(255, 255, 255, 0.14);
}

.brand:hover .brand-mark {
  transform: scale(1.03);
  box-shadow: 0 10px 18px rgba(16, 32, 58, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(35, 59, 99, 0.14);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

html[data-theme="dark"] .nav-toggle {
  background: rgba(7, 12, 22, 0.56);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(16, 32, 58, 0.08);
}

.nav-toggle-lines {
  width: 18px;
  height: 12px;
  display: grid;
  gap: 3px;
}

.nav-toggle-lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav a {
  font-family: "Sora", "Manrope", sans-serif;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

html[data-theme="dark"] .nav a {
  color: rgba(235, 242, 255, 0.76);
}

.nav a.is-active,
.nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

html[data-theme="dark"] .nav a.is-active,
html[data-theme="dark"] .nav a:hover {
  color: rgba(255, 255, 255, 0.92);
}

.nav a.is-placeholder {
  opacity: 0.72;
}

.hero,
.story-split,
.contact-layout {
  display: grid;
  gap: 24px;
}

.hero-home {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  padding: 64px 0 20px;
}

.hero-copy,
.hero-panel,
.metric,
.service-card,
.step-card,
.quote-card,
.glass-panel,
.portfolio-item,
.contact-section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(247, 249, 252, 0.18)), var(--surface-2);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  box-shadow: var(--glass-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .glass-panel,
html[data-theme="dark"] .portfolio-item,
html[data-theme="dark"] .contact-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)), rgba(7, 12, 22, 0.56);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .hero-copy::before,
html[data-theme="dark"] .metric::before,
html[data-theme="dark"] .service-card::before,
html[data-theme="dark"] .step-card::before,
html[data-theme="dark"] .quote-card::before,
html[data-theme="dark"] .glass-panel::before,
html[data-theme="dark"] .portfolio-item::before,
html[data-theme="dark"] .contact-section::before {
  opacity: 0.48;
}

.hero-copy::before,
.hero-panel::before,
.metric::before,
.service-card::before,
.step-card::before,
.quote-card::before,
.glass-panel::before,
.portfolio-item::before,
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-highlight);
  opacity: 0.62;
  pointer-events: none;
}

.hero-copy > *,
.hero-panel > *,
.metric > *,
.service-card > *,
.step-card > *,
.quote-card > *,
.glass-panel > *,
.portfolio-item > *,
.contact-section > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 38px;
  min-height: 100%;
}

.hero-panel {
  padding: 24px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%), linear-gradient(155deg, rgba(10, 19, 33, 0.82), rgba(28, 49, 82, 0.72)), var(--panel);
  color: #fff;
  min-height: 100%;
}

.card-label,
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 800;
}

.card-label {
  color: rgba(255, 255, 255, 0.76);
}

h1 {
  font-family: "Havana Neo", "Sora", "Manrope", sans-serif;
  margin: 0;
  font-size: clamp(2.8rem, 5.8vw, 5.3rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
}

h2 {
  font-family: "Havana Neo", "Sora", "Manrope", sans-serif;
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3.25rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

h3,
.quote-text,
.metric strong {
  font-family: "Sora", "Manrope", sans-serif;
}

.hero-text,
.section-copy,
.page-lead,
.service-card p,
.step-card p,
.portfolio-meta p,
.quote-author,
.metric span,
.signature-copy span,
#contactText {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-text,
.page-lead {
  max-width: 60ch;
}

.hero-copy .hero-text {
  max-width: 34ch;
}

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

.button {
  font-family: "Sora", "Manrope", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.portfolio-item:hover,
.service-card:hover,
.step-card:hover,
.metric:hover {
  transform: translateY(-3px);
}

.hero-copy:hover,
.hero-panel:hover,
.glass-panel:hover,
.contact-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(18, 31, 53, 0.16);
}

.button-primary {
  background: var(--panel);
  color: #fff;
  box-shadow: 0 16px 34px rgba(12, 24, 42, 0.24);
}

.button-secondary,
.button-share {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(242, 247, 252, 0.24)), rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(35, 59, 99, 0.08);
}

.button-secondary:hover,
.button-share:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(243, 248, 253, 0.3)), rgba(255, 255, 255, 0.28);
  border-color: rgba(144, 168, 199, 0.48);
}

html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .button-share {
  background: var(--panel);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .button-share:hover {
  background: rgba(3, 7, 15, 0.92);
  border-color: rgba(255, 255, 255, 0.2);
}

.button:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.portfolio-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(136, 162, 200, 0.18);
}

.signature-stack,
.metrics,
.service-grid,
.steps,
.portfolio-grid {
  display: grid;
  gap: 16px;
}

.signature-copy {
  padding: 15px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.signature-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.signature-copy:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.16);
}

.signature-index,
.step-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.hero-panel .signature-copy strong,
.hero-panel .signature-copy span {
  color: #f5f8fe;
}

.metrics {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 10px;
}

.metric,
.service-card,
.step-card {
  padding: 22px;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.section {
  padding-top: var(--space-section);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading.narrow,
.page-hero {
  text-align: center;
  margin: 0 auto;
}

.page-hero {
  padding: 62px 0 8px;
  max-width: 820px;
}

.centered-lead,
.page-hero .page-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.story-split,
.contact-layout {
  grid-template-columns: 1fr 1fr;
}

.glass-panel {
  padding: var(--space-card);
}

.contact-section {
  animation: rise-in 820ms cubic-bezier(0.2, 0.82, 0.2, 1) 360ms both;
}

[data-page="admin"] .page-hero {
  padding-bottom: 0;
}

[data-page="admin"] .section {
  padding-top: 48px;
}

[data-page="admin"] .glass-panel > h2:first-child {
  margin-bottom: 10px;
}

.feature-visual {
  display: grid;
  place-items: center;
  min-height: 360px;
}

.feature-logo {
  width: min(300px, 100%);
  border-radius: 28px;
}

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

.portfolio-grid-full {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-item {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 26px;
}

.portfolio-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.4);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 280ms ease;
}

.portfolio-item:hover .portfolio-thumb img {
  transform: scale(1.035);
}

.portfolio-meta {
  display: grid;
  gap: 6px;
  padding: 8px 8px 10px;
}

.portfolio-meta h3 {
  margin: 0;
  font-size: 1.35rem;
}

.portfolio-link {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.quote-card,
.contact-section {
  padding: 32px;
  text-align: center;
}

.is-hidden {
  display: none !important;
}

.contact-section {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

.contact-section .contact-actions,
.contact-layout .contact-actions {
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.contact-section .button,
.contact-layout .button {
  min-height: 64px;
  min-width: 240px;
  padding: 0 28px;
  font-size: 1rem;
}

.contact-layout .glass-panel {
  text-align: center;
}

.portal-shell {
  padding-top: 44px;
}

.portal-login-card {
  max-width: 560px;
  margin: 0 auto;
}

.portal-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.portal-form label {
  display: grid;
  gap: 8px;
  text-align: left;
  font-weight: 600;
}

.portal-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(35, 59, 99, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.portal-form input:focus {
  outline: none;
  border-color: rgba(53, 87, 133, 0.45);
  box-shadow: 0 0 0 4px rgba(144, 168, 199, 0.16);
}

.portal-status {
  min-height: 24px;
  color: var(--accent);
  margin: 0;
}

.portal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-dashboard {
  display: grid;
  gap: 24px;
}

.portal-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.portal-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(35, 59, 99, 0.12);
  border: 1px solid rgba(35, 59, 99, 0.14);
  color: var(--accent);
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

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

.portal-avatar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.portal-owner-grid {
  display: grid;
  gap: 24px;
}

.portal-contact-list,
.portal-role-card {
  display: grid;
  gap: 14px;
}

.portal-contact-item {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(35, 59, 99, 0.12);
  background: rgba(255, 255, 255, 0.36);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.portal-contact-item strong {
  font-family: "Sora", "Manrope", sans-serif;
}

.portal-contact-item span,
.portal-role-card p {
  color: var(--muted);
}

.portal-contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 87, 133, 0.24);
  box-shadow: 0 16px 30px rgba(18, 31, 53, 0.08);
}

.portal-role-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(35, 59, 99, 0.12);
  background: rgba(255, 255, 255, 0.36);
}

.portal-manager-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(35, 59, 99, 0.12);
  background: rgba(255, 255, 255, 0.34);
}

.portal-manager-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.portal-manager-head h3 {
  margin: 0;
  font-size: 1.4rem;
}

.portal-manager-list {
  display: grid;
  gap: 14px;
}

.portal-select-label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.portal-client-picker {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.portal-client-option {
  min-height: 52px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(35, 59, 99, 0.14);
  background: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.portal-client-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(16, 32, 58, 0.08);
}

.portal-client-option.is-active {
  border-color: rgba(53, 87, 133, 0.36);
  background: rgba(255, 255, 255, 0.92);
}

.portal-client-option-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(35, 59, 99, 0.12);
  color: var(--accent);
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.portal-client-option-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-client-option-avatar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.portal-client-option-text {
  font-weight: 600;
}

.portal-record {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(35, 59, 99, 0.12);
  background: rgba(255, 255, 255, 0.44);
}

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

.portal-record label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.portal-record input,
.portal-record textarea,
.portal-record select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(35, 59, 99, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.portal-record textarea {
  min-height: 96px;
  resize: vertical;
}

.portal-record .full {
  grid-column: 1 / -1;
}

.portal-record-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-help {
  color: var(--muted);
  margin: 0;
}

.contact-copy {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.quote-mark {
  margin: 0;
  color: var(--accent-soft);
  font-size: 4rem;
}

.quote-text {
  margin: 0 auto 16px;
  max-width: 28ch;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.site-footer {
  padding: 24px 0 8px;
  color: var(--muted);
  text-align: center;
}

.footer-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.footer-actions button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(35, 59, 99, 0.14);
  background: rgba(255, 255, 255, 0.6);
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

html[data-theme="dark"] .footer-actions button {
  background: rgba(7, 12, 22, 0.56);
  border-color: rgba(255, 255, 255, 0.12);
}

.footer-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(16, 32, 58, 0.08);
}

.updates-section {
  display: grid;
  gap: 18px;
  padding: 34px;
  text-align: center;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.update-card {
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(35, 59, 99, 0.12);
  background: rgba(255, 255, 255, 0.36);
  display: grid;
  gap: 10px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

html[data-theme="dark"] .update-card {
  background: rgba(7, 12, 22, 0.44);
  border-color: rgba(255, 255, 255, 0.12);
}

.update-card:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 87, 133, 0.24);
  box-shadow: 0 16px 30px rgba(18, 31, 53, 0.08);
}

.update-card h3 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
}

.update-card p {
  margin: 0;
  color: var(--muted);
}

.update-meta {
  font-family: "Sora", "Manrope", sans-serif;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-photo {
  width: min(320px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(35, 59, 99, 0.12);
  box-shadow: 0 18px 38px rgba(18, 31, 53, 0.12);
  margin: 0 auto 18px;
}

.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  text-align: left;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(35, 59, 99, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
  background: rgba(7, 12, 22, 0.52);
  border-color: rgba(255, 255, 255, 0.12);
}

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

.form-status {
  margin: 0;
  color: var(--muted);
  text-align: left;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(14px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(12, 24, 42, 0.94);
  color: #fff;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 60;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-reveal] {
  --reveal-x: 0px;
  --reveal-y: 18px;
  --reveal-scale: 1;
  --reveal-blur: 0px;
  --reveal-duration: 760ms;
  --reveal-delay: 0ms;
  --reveal-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale));
  filter: blur(var(--reveal-blur));
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay),
    filter var(--reveal-duration) var(--reveal-ease) var(--reveal-delay);
  will-change: opacity, transform, filter;
}

html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0px);
}

/* Direction helpers */
[data-reveal="down"] {
  --reveal-y: -22px;
}

[data-reveal="up"] {
  --reveal-y: 22px;
}

[data-reveal="left"] {
  --reveal-x: -36px;
  --reveal-y: 0px;
}

[data-reveal="right"] {
  --reveal-x: 36px;
  --reveal-y: 0px;
}

[data-reveal="pop"] {
  --reveal-y: 18px;
  --reveal-scale: 0.97;
  --reveal-blur: 1px;
}

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

@media (max-width: 1100px) {
  .hero-home,
  .story-split,
  .contact-layout,
  .portal-grid,
  .portfolio-grid-full,
  .portfolio-grid,
  .steps,
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 12px;
  }

  .site-header,
  .nav,
  .hero-actions,
  .contact-actions,
  .portal-dashboard-head {
    flex-direction: column;
  }

  .hero-home,
  .story-split,
  .contact-layout,
  .portal-grid,
  .portfolio-grid-full,
  .portfolio-grid,
  .steps,
  .metrics {
    grid-template-columns: 1fr;
  }

  .portal-manager-head,
  .portal-record-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .site-header {
    border-radius: 26px;
    text-align: center;
  }

  .brand {
    justify-content: center;
  }

  .nav {
    width: 100%;
  }

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

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
  }

  html[data-theme="dark"] .nav-links {
    background: rgba(7, 12, 22, 0.52);
  }

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

  .nav a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid rgba(35, 59, 99, 0.08);
  }

  html[data-theme="dark"] .nav a {
    background: rgba(7, 12, 22, 0.48);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* Portal form readability in dark mode (match the main site's dark glass). */
html[data-theme="dark"] .portal-manager-card,
html[data-theme="dark"] .portal-record,
html[data-theme="dark"] .portal-role-card,
html[data-theme="dark"] .portal-contact-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)), rgba(7, 12, 22, 0.56);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .portal-select-label,
html[data-theme="dark"] .portal-record label,
html[data-theme="dark"] .portal-manager-head h3,
html[data-theme="dark"] .portal-manager-head p,
html[data-theme="dark"] .portal-help {
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .portal-status {
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .portal-record input,
html[data-theme="dark"] .portal-record textarea,
html[data-theme="dark"] .portal-record select,
html[data-theme="dark"] .portal-select-label select {
  background: rgba(3, 7, 15, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .portal-record input::placeholder,
html[data-theme="dark"] .portal-record textarea::placeholder {
  color: rgba(235, 242, 255, 0.5);
}

html[data-theme="dark"] .portal-record input:focus,
html[data-theme="dark"] .portal-record textarea:focus,
html[data-theme="dark"] .portal-record select:focus {
  outline: none;
  border-color: rgba(159, 194, 255, 0.32);
  box-shadow: 0 0 0 4px rgba(159, 194, 255, 0.12);
}

html[data-theme="dark"] .portal-client-option {
  background: rgba(3, 7, 15, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .portal-client-option:hover {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .portal-client-option.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(159, 194, 255, 0.46);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .portal-client-option-text {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .portal-client-option-avatar {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  body,
  .site-header,
  .page-hero,
  [data-page="home"] .hero-copy,
  [data-page="home"] .hero-panel,
  .metrics .metric,
  .story-split > *,
  .contact-layout > *,
  .contact-section,
  .steps .step-card,
  .portfolio-grid .portfolio-item,
  .portfolio-grid-full .portfolio-item,
  .compact-grid .service-card,
  .portal-grid > .glass-panel,
  .portal-owner-grid > .portal-manager-card {
    animation: none !important;
  }

  html.reveal-ready [data-reveal],
  html.reveal-ready [data-reveal].is-visible {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
