* {
  box-sizing: border-box;
}

:root {
  --dp-content-max: 1200px;
  --dp-content-pad-x: clamp(18px, 4.2vw, 28px);
  --dp-accent: #c5a059;
  --dp-accent-soft: #e2cf9a;
  --dp-ink-deep: #14110d;
  --dp-lux-bg: #080a0d;
  --dp-lux-surface: rgba(255, 255, 255, 0.035);
  --dp-lux-border: rgba(212, 182, 122, 0.28);
  --dp-lux-text: #f5f1e8;
}

html {
  scroll-behavior: smooth;
  background-color: #0c0e12;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Raleway", sans-serif;
  background: var(--dp-lux-bg);
  color: var(--dp-lux-text);
}

.hero {
  position: relative;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

@media (max-width: 768px) {
  .hero {
    background: url("./assets/landing-poster.jpg") center/cover no-repeat;
  }
}

#root h1,
#root h2,
#root h3 {
  font-family: "Cormorant Garamond", serif !important;
  font-weight: 400 !important;
  color: #faf6f0 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

#root h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem) !important;
  color: #fcf9f2 !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

#root h2 {
  font-size: clamp(1.6rem, 3.7vw, 2.65rem) !important;
  color: #faf6f0 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

#root h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.85rem) !important;
  color: #faf6f0 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
}

#root h1 + p,
#root h2 + p,
#root h3 + p {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  color: rgba(247, 246, 239, 0.9);
}

#home {
  background: linear-gradient(180deg, #07090c 0%, #0a0d12 46%, #0b0d11 100%);
}

#home::before {
  content: none;
}

#home h1 {
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  color: #f8f2e7 !important;
}

#home p {
  color: rgba(244, 239, 229, 0.86) !important;
}

body.site-shell {
  background:
    radial-gradient(1100px 680px at 12% -10%, rgba(255, 255, 255, 0.09), transparent 58%),
    radial-gradient(900px 640px at 92% 10%, rgba(197, 160, 89, 0.12), transparent 60%),
    linear-gradient(180deg, #090b0f 0%, #0d1016 44%, #0a0d12 100%);
}

body.site-shell main {
  position: relative;
  z-index: 5;
}

body.site-shell section,
body.site-shell form,
body.site-shell aside,
body.site-shell article > details {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.site-shell a[href$="index.html"] {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

body.site-shell input,
body.site-shell select,
body.site-shell textarea {
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

body.site-shell input:focus,
body.site-shell select:focus,
body.site-shell textarea:focus {
  outline: none;
  border-color: rgba(197, 160, 89, 0.75) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 0.6px, transparent 0.6px);
  background-size: 2.2px 2.2px;
  opacity: 0.1;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(255, 255, 255, 0.1), transparent 60%),
    radial-gradient(840px 580px at 90% 4%, rgba(197, 160, 89, 0.1), transparent 62%);
}

body.bg-ink {
  background:
    radial-gradient(1200px 700px at 14% -4%, rgba(212, 182, 122, 0.11), transparent 60%),
    radial-gradient(900px 620px at 92% 8%, rgba(255, 255, 255, 0.05), transparent 62%),
    linear-gradient(180deg, #07090c 0%, #0b0d11 44%, #0a0c10 100%) !important;
}

body.bg-ink main > section,
body.bg-ink main > form,
body.bg-ink main > article,
body.bg-ink main > aside {
  background: var(--dp-lux-surface) !important;
  border: 1px solid var(--dp-lux-border) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34) !important;
  backdrop-filter: blur(8px);
}

body.bg-ink h1,
body.bg-ink h2,
body.bg-ink h3 {
  font-family: "Cormorant Garamond", "Poppins", serif !important;
  letter-spacing: 0.02em !important;
  color: #f8f3e9 !important;
}

body.bg-ink p,
body.bg-ink li,
body.bg-ink label {
  color: rgba(246, 241, 231, 0.82) !important;
}

body.bg-ink .rounded-full.border,
body.bg-ink button,
body.bg-ink a.inline-flex {
  border-color: rgba(212, 182, 122, 0.36) !important;
}

.interactive-table tbody tr {
  transition: background-color 0.2s ease;
}

.interactive-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.06);
}

.interactive-table .year-highlight {
  background: rgba(192, 75, 103, 0.3) !important;
  color: #f4f7ff;
  font-weight: 600;
}

.interactive-table .is-sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.interactive-table .is-sortable:hover {
  background: rgba(255, 255, 255, 0.08);
}

.interactive-table .is-hidden {
  display: none;
}

@media (max-width: 768px) {
  #root {
    overflow-x: hidden;
  }

  #root h1,
  #root h2,
  #root h3 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  #root h1 {
    font-size: clamp(2.1rem, 9.2vw, 3rem) !important;
    line-height: 0.98 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    max-width: 14ch !important;
    margin-top: 0.25rem !important;
  }

  #root h2 {
    font-size: clamp(1.62rem, 7.1vw, 2.2rem) !important;
    line-height: 1.04 !important;
    letter-spacing: 0.025em !important;
    max-width: 17ch !important;
  }

  #root h3 {
    font-size: clamp(1.06rem, 4.7vw, 1.38rem) !important;
    line-height: 1.24 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
  }

  #root p,
  #root li,
  #root summary {
    font-size: clamp(0.95rem, 3.7vw, 1.04rem);
    line-height: 1.7;
  }

  #root section {
    scroll-margin-top: 98px;
  }

  #root main > section[id]:not(#map) {
    padding-left: 1.05rem !important;
    padding-right: 1.05rem !important;
    padding-top: 3.6rem !important;
    padding-bottom: 3.8rem !important;
  }

  #root main > section[id]:not(#experience):not(#map):not(#contact) {
    margin-top: 3.1rem !important;
  }

  #root main > section[id]:not(#experience):not(#map):not(#contact)::before {
    content: "";
    display: block;
    width: min(78%, 270px);
    height: 1px;
    margin: 0 auto 1.8rem;
    background: linear-gradient(90deg, transparent, rgba(212, 182, 122, 0.72), transparent);
  }

  #home {
    min-height: 100svh !important;
  }

  #home .hero-content {
    min-height: calc(100svh - 4.7rem) !important;
    justify-content: center !important;
    align-items: flex-end !important;
    padding-top: 6.3rem !important;
    padding-bottom: 2.3rem !important;
  }

  #home .hero-content > div {
    width: 100%;
    max-width: 100%;
  }

  #home .hero-content > div > div {
    border-radius: 1.35rem !important;
    padding: 1.2rem !important;
    text-align: center;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4) !important;
  }

  #home .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  #home .hero-content .mt-7 {
    justify-content: center;
  }

  #home .hero-content .mt-7 a {
    min-height: 47px;
  }

  #home .hero-content .mt-5 {
    justify-content: center;
  }

  #root #experience > .relative {
    border-radius: 1.3rem !important;
    padding: 1.3rem !important;
    background: linear-gradient(162deg, rgba(45, 35, 21, 0.68), rgba(13, 10, 7, 0.92)) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.32) !important;
  }

  #root #experience .grid {
    gap: 1.2rem !important;
  }

  #root #experience h2 {
    font-size: clamp(1.65rem, 7.2vw, 2.25rem) !important;
  }

  #root #properties > .mt-12,
  #root #services > .mt-10,
  #root #method > .mt-8,
  #root #market > .mt-10,
  #root #faq > .mt-8 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.9rem !important;
  }

  #root #properties article,
  #root #services article,
  #root #method article,
  #root #market article,
  #root #faq details {
    border-radius: 1.22rem !important;
    padding: 1.05rem !important;
    border: 1px solid rgba(212, 182, 122, 0.2) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26) !important;
  }

  #root #properties article:nth-child(odd),
  #root #services article:nth-child(odd),
  #root #method article:nth-child(odd) {
    transform: translateX(-6px);
    margin-right: 0.65rem;
  }

  #root #properties article:nth-child(even),
  #root #services article:nth-child(even),
  #root #method article:nth-child(even) {
    transform: translateX(6px);
    margin-left: 0.65rem;
  }

  #root #market > .rounded-2xl,
  #root #market #contact > div,
  #root #market .mt-8.rounded-2xl {
    border-radius: 1.3rem !important;
  }

  #root #market #contact {
    margin-top: 2.1rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #root #market #contact > div {
    padding: 1.45rem 1.1rem !important;
  }

  #root #market #contact h2 {
    font-size: clamp(1.5rem, 6.8vw, 2.05rem) !important;
  }

  #root #faq details {
    padding: 1rem 1.05rem !important;
  }

  #root #faq summary {
    font-size: clamp(0.98rem, 4.05vw, 1.1rem) !important;
    line-height: 1.42 !important;
    font-weight: 500;
  }

  #root #faq details p {
    margin-top: 0.75rem !important;
  }
}

@media (max-width: 430px) {
  #home .hero-content {
    padding-top: 6.75rem !important;
    padding-bottom: 1.75rem !important;
  }

  #home .hero-content > div > div {
    padding: 1.05rem 0.92rem !important;
    border-radius: 1.2rem !important;
  }

  #home .hero-content .mt-7 {
    gap: 0.55rem !important;
  }

  #home .hero-content .mt-7 a {
    width: 100%;
    justify-content: center;
    padding-inline: 1rem !important;
    min-height: 45px;
  }

  #home .hero-content .mt-5 {
    gap: 0.35rem !important;
  }

  #home .hero-content .mt-5 span {
    font-size: 0.64rem !important;
    letter-spacing: 0.07em !important;
    padding: 0.32rem 0.62rem !important;
  }

  #root main > section[id]:not(#map) {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
    padding-top: 3.2rem !important;
    padding-bottom: 3.4rem !important;
  }

  #root main > section[id]:not(#experience):not(#map):not(#contact) {
    margin-top: 2.55rem !important;
  }

  #root #properties article,
  #root #services article,
  #root #method article {
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #root #properties > .mt-12,
  #root #services > .mt-10,
  #root #method > .mt-8,
  #root #market > .mt-10,
  #root #faq > .mt-8 {
    gap: 0.75rem !important;
  }

  #root #faq details {
    padding: 0.9rem !important;
  }
}

@media (max-width: 768px) {
  #root main {
    padding-bottom: 2.8rem;
  }

  #root main > section[id]:not(#contact):not(#map) {
    position: relative;
    margin-top: 4.4rem !important;
    padding: 3.7rem 1.15rem 3.55rem !important;
    border-radius: 1.55rem !important;
    border: 1px solid rgba(212, 182, 122, 0.2);
    background: linear-gradient(168deg, rgba(43, 33, 22, 0.64), rgba(10, 9, 7, 0.9)) !important;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34) !important;
    backdrop-filter: blur(14px);
    overflow: hidden;
  }

  #root main > section[id]:not(#contact):not(#map)::before {
    content: "";
    position: absolute;
    left: 1.15rem;
    right: 1.15rem;
    top: 0.95rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 182, 122, 0.72), transparent);
    pointer-events: none;
  }

  #root #experience,
  #root #services,
  #root #market {
    background: linear-gradient(160deg, rgba(44, 34, 22, 0.66), rgba(14, 11, 8, 0.93)) !important;
  }

  #root #properties,
  #root #method,
  #root #faq {
    background: linear-gradient(160deg, rgba(52, 36, 24, 0.68), rgba(15, 12, 9, 0.93)) !important;
  }

  #root section[id] h2 {
    font-size: clamp(2.02rem, 8.7vw, 2.75rem) !important;
    line-height: 1.01 !important;
    letter-spacing: 0.028em !important;
    margin-top: 0.65rem !important;
    margin-bottom: 1.1rem !important;
    max-width: 14ch !important;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  #root section[id] h3 {
    font-size: clamp(1.2rem, 5.2vw, 1.62rem) !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 0.6rem !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  #root section[id] p,
  #root section[id] li,
  #root section[id] summary {
    font-size: clamp(0.96rem, 3.85vw, 1.04rem);
    line-height: 1.74;
  }

  #root section[id] p {
    max-width: 36ch;
    color: rgba(244, 237, 225, 0.82);
  }

  #root section[id] > p:first-of-type {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.66rem !important;
    color: rgba(212, 182, 122, 0.9) !important;
    margin-bottom: 0.72rem !important;
    font-weight: 500;
  }

  #home .hero-content {
    padding-top: 5.25rem !important;
    padding-bottom: 1.25rem !important;
    min-height: calc(100svh - 5.2rem) !important;
    align-items: center !important;
  }

  #home .hero-content > div > div {
    border-radius: 1.5rem !important;
    padding: 1rem 0.88rem !important;
    text-align: center;
    border: 1px solid rgba(214, 184, 124, 0.28);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34) !important;
  }

  #home .hero-content h1,
  #home .hero-content p,
  #home .hero-content .mt-7,
  #home .hero-content .mt-5 {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  #home .hero-content h1 {
    max-width: 10.2ch !important;
    font-size: clamp(1.52rem, 6.6vw, 2rem) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-wrap: balance;
  }

  #root #experience .profile-label {
    font-size: 0.7rem !important;
    line-height: 1.36 !important;
    letter-spacing: 0.16em !important;
  }

  #root #experience .profile-swipe-hint {
    font-size: 0.62rem !important;
    line-height: 1.35 !important;
    letter-spacing: 0.12em !important;
    opacity: 0.9;
    display: block;
  }

  #root #experience > .relative {
    background: linear-gradient(160deg, rgba(52, 38, 23, 0.72), rgba(18, 14, 10, 0.92)) !important;
  }

  #root #experience {
    overflow: visible !important;
  }

  #root #experience h2 {
    font-size: clamp(1.05rem, 4.25vw, 1.28rem) !important;
    line-height: 1.12 !important;
    max-width: 100% !important;
    margin-bottom: 0.45rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
  }

  #root #experience .mt-4 {
    font-size: 0.78rem !important;
    line-height: 1.38 !important;
    max-width: 31ch !important;
  }

  #root #experience .grid {
    gap: 0.72rem !important;
  }

  #root #experience .grid > div:last-child {
    padding: 0.68rem !important;
    border: 1px solid rgba(220, 195, 138, 0.24) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24) !important;
  }

  #root #experience .grid button {
    font-size: 0.68rem !important;
    padding: 0.35rem 0.58rem !important;
    letter-spacing: 0.09em !important;
  }

  #root #experience .profile-chapters-track {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0.4rem;
    padding-right: 12vw;
    padding-bottom: 0.25rem;
  }

  #root #experience .profile-chapters-track button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  #home .hero-content .mt-7 {
    justify-content: center;
    gap: 0.52rem !important;
    margin-top: 0.8rem !important;
  }

  #home .hero-content .mt-7 a {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    padding-block: 0.62rem !important;
    font-size: 0.88rem !important;
  }

  #home .hero-content .mt-5 {
    justify-content: center;
    gap: 0.32rem !important;
    margin-top: 0.68rem !important;
  }

  #home .hero-content .mt-5 span {
    font-size: 0.7rem !important;
    padding: 0.26rem 0.56rem !important;
    letter-spacing: 0.055em !important;
  }

  #home .hero-content p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-top: 0.62rem !important;
    margin-bottom: 0 !important;
  }

  #root #properties article,
  #root #services article,
  #root #method article,
  #root #market article,
  #root #faq details {
    width: auto;
    padding: 1rem 0.92rem !important;
    border-radius: 1.28rem !important;
    border: 1px solid rgba(212, 182, 122, 0.22) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
  }

  #root #properties article > *,
  #root #services article > *,
  #root #method article > *,
  #root #market article > * {
    margin-left: auto;
    margin-right: auto;
    max-width: 28ch;
    text-align: center;
  }

  #root #properties article:nth-child(odd),
  #root #services article:nth-child(odd),
  #root #method article:nth-child(odd),
  #root #faq details:nth-child(odd) {
    margin-right: 10%;
    margin-left: 0;
    transform: translateX(-3px);
    background: linear-gradient(160deg, rgba(66, 46, 28, 0.78), rgba(24, 17, 12, 0.92)) !important;
  }

  #root #properties article:nth-child(even),
  #root #services article:nth-child(even),
  #root #method article:nth-child(even),
  #root #faq details:nth-child(even) {
    margin-left: 10%;
    margin-right: 0;
    transform: translateX(3px);
    background: linear-gradient(160deg, rgba(56, 40, 24, 0.8), rgba(19, 14, 10, 0.94)) !important;
  }

  #root #services > .mt-10,
  #root #method > .mt-8 {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.78rem !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.45rem;
  }

  #root #services article,
  #root #method article {
    flex: 0 0 min(82vw, 320px);
    min-width: min(82vw, 320px);
    scroll-snap-align: center;
    margin: 0 !important;
    transform: none !important;
  }

  #root #experience .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.62rem !important;
    overflow: visible !important;
    padding-right: 0;
    padding-bottom: 0.2rem;
  }

  #root #experience .grid > * {
    min-width: 0;
    width: 100%;
  }

  #root #properties > .mt-12 {
    display: flex !important;
    gap: 0.8rem !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.45rem;
  }

  #root #properties > .mt-12 > article {
    min-width: min(86vw, 320px);
    scroll-snap-align: center;
    margin: 0 !important;
    transform: none !important;
  }

  #root #properties article::after,
  #root #services article::after,
  #root #method article::after,
  #root #market article::after,
  #root #faq details::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.08), transparent 34%, transparent 68%, rgba(210, 178, 116, 0.08));
  }

  #root #properties article::before,
  #root #services article::before,
  #root #method article::before,
  #root #market article::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 10px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 182, 122, 0.56), transparent);
    pointer-events: none;
  }

  #root #properties article h3,
  #root #services article h3,
  #root #method article h3,
  #root #market article h3 {
    margin-bottom: 0.55rem !important;
  }

  #root #properties article p,
  #root #services article p,
  #root #method article p,
  #root #market article p,
  #root #faq details p {
    color: rgba(243, 236, 225, 0.78) !important;
  }

  #root #market #contact {
    margin-top: 2.75rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #root #market #contact > div {
    border-radius: 1.4rem !important;
    padding: 1.7rem 1.16rem !important;
    border: 1px solid rgba(212, 182, 122, 0.24);
    background: linear-gradient(160deg, rgba(43, 33, 21, 0.62), rgba(10, 9, 7, 0.9)) !important;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34) !important;
  }

  #root #market > .mt-10 {
    gap: 1rem !important;
  }

  #root #market > .mt-10 > article,
  #root #market > .mt-6 > article {
    margin: 0 !important;
    transform: none !important;
    border-radius: 1.28rem !important;
    border: 1px solid rgba(212, 182, 122, 0.34) !important;
    background: linear-gradient(150deg, rgba(48, 40, 24, 0.55), rgba(26, 20, 12, 0.78), rgba(12, 9, 6, 0.88)) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18) !important;
  }

  #root #market > .mt-10 > article p:first-child,
  #root #market > .mt-6 > article p:first-child {
    color: rgba(245, 240, 232, 0.65) !important;
  }

  #root #market > .mt-10 > article .text-5xl,
  #root #market > .mt-10 > article p:nth-child(2) {
    color: #e6cf90 !important;
    text-shadow: none !important;
  }

  #root #market > .mt-10 > article p:last-child,
  #root #market > .mt-6 > article p:last-child {
    color: rgba(245, 240, 232, 0.75) !important;
  }

  #root #market > a.inline-flex[href="./mercato-dati.html"] {
    background: rgba(197, 160, 89, 0.15) !important;
    border: 1px solid rgba(212, 182, 122, 0.45) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2) !important;
  }

}

body.site-live a,
body.site-live button,
body.site-live details,
body.site-live article {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease;
}

@media (max-width: 768px) {
  #home .hero-content {
    min-height: calc(100svh - 5.8rem) !important;
    padding-top: 4.7rem !important;
    padding-bottom: 0.9rem !important;
  }

  #home .hero-content > div > div {
    padding: 0.78rem !important;
    border-radius: 1.1rem !important;
  }

  #home .hero-content h1 {
    max-width: 100% !important;
    font-size: clamp(1.18rem, 5.2vw, 1.5rem) !important;
    line-height: 1.16 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    text-wrap: balance;
    overflow: hidden !important;
    text-overflow: clip !important;
  }

  #home .hero-content p {
    font-size: 0.82rem !important;
    line-height: 1.34 !important;
    max-width: 100% !important;
  }

  #home .hero-content .mt-7 a {
    min-height: 38px !important;
    font-size: 0.8rem !important;
    padding: 0.48rem 0.72rem !important;
  }

  #home .hero-content .mt-5 span {
    font-size: 0.62rem !important;
    padding: 0.2rem 0.46rem !important;
  }

  #root main > section[id]:not(#contact):not(#map) {
    margin-top: 2rem !important;
    padding: 2.05rem 0.82rem 1.95rem !important;
    border-radius: 1rem !important;
  }

  #root section[id] h2,
  #root section[id] h3 {
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    text-wrap: balance;
    overflow: hidden !important;
    text-overflow: clip !important;
    max-width: 100% !important;
    margin-bottom: 0.55rem !important;
  }

  #root section[id] h2 {
    font-size: clamp(1.05rem, 4.6vw, 1.32rem) !important;
    line-height: 1.18 !important;
  }

  #root section[id] h3 {
    font-size: clamp(0.86rem, 3.7vw, 1rem) !important;
    line-height: 1.2 !important;
  }

  #root section[id] p,
  #root section[id] li,
  #root section[id] summary {
    font-size: 0.8rem !important;
    line-height: 1.38 !important;
  }

  #root #experience .grid button {
    font-size: 0.62rem !important;
    padding: 0.28rem 0.48rem !important;
  }

  /* Anti-truncation heading safety */
  #home .hero-content h1,
  #root section[id] h2,
  #root section[id] h3 {
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
    text-wrap: balance !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  /* Final compact profile override */
  #root #experience h2 {
    font-size: clamp(0.98rem, 4vw, 1.18rem) !important;
    line-height: 1.12 !important;
    letter-spacing: 0.018em !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-transform: uppercase !important;
    display: block !important;
  }

  #root #experience .grid > div:last-child {
    padding: 0.58rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22) !important;
  }

  #root #experience .grid > div:last-child p {
    font-size: 0.74rem !important;
    line-height: 1.32 !important;
  }

  #root #experience .profile-label {
    font-size: 0.62rem !important;
    letter-spacing: 0.14em !important;
  }
  /* Final no-ellipsis guarantee for mobile headings */
  #home .hero-content h1,
  #root section[id] h2,
  #root section[id] h3,
  #root #experience h2 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    display: block !important;
    text-wrap: balance !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

}

body.site-live a:hover,
body.site-live button:hover {
  box-shadow: 0 0 22px rgba(197, 160, 89, 0.34);
}


.dp-cursor-glow {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(224, 152, 172, 0.72);
  background: radial-gradient(circle, rgba(192, 75, 103, 0.35), rgba(192, 75, 103, 0.1) 68%);
  pointer-events: none;
  z-index: 120;
  mix-blend-mode: screen;
}
