/* Premium UI CSS Extracted */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --terra: #C84B31;
    --terra-2: #B13D26;
    --olive: #3E4A2B;
    --olive-2: #2F3921;
    --ink: #26180F;
    --muted: #6A5448;
    --soft: #91786A;
    --paper: #F7F1E8;
    --paper-2: #EFE3D5;
    --peach: #F6E9DD;
    --white: #FFFFFF;
    --border: #EADBCA;
    --gold: #D6AA5E;
    --green: #2F8E5D;
    --shadow: 0 32px 90px -50px rgba(38,24,15,.48);
    --shadow-soft: 0 22px 58px -42px rgba(38,24,15,.34);
    --r-xl: 36px;
    --r-lg: 28px;
    --r-md: 20px;
    --r-sm: 14px;
    --max: 1240px;
  }

  html { scroll-behavior: smooth; }

  body {
    background:
      radial-gradient(circle at 8% -4%, rgba(200,75,49,.13), transparent 26%),
      radial-gradient(circle at 92% 10%, rgba(62,74,43,.1), transparent 22%),
      linear-gradient(180deg, #FBF6EE 0%, var(--paper) 48%, #EFE2D2 100%);
    color: var(--ink);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button, input, select { font: inherit; }

  .container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
  .mono { font-family: "JetBrains Mono", monospace; }

  .topbar {
    height: 36px;
    background: var(--olive);
    color: rgba(255,255,255,.78);
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .ticker {
    display: flex;
    gap: 34px;
    width: max-content;
    animation: ticker 32s linear infinite;
    white-space: nowrap;
  }

  .ticker span { padding-left: 34px; }
  .ticker strong { color: #FFE3D7; }
  @keyframes ticker { to { transform: translateX(-50%); } }

  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247,241,232,.88);
    border-bottom: 1px solid rgba(38,24,15,.08);
    backdrop-filter: blur(18px);
  }

  .nav-inner {
    width: min(var(--max), calc(100% - 48px));
    height: 74px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
  }

  .logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -.04em;
    color: var(--ink);
  }

  .logo span:last-child { color: var(--terra); }

  .logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--terra);
    color: var(--white);
    box-shadow: 0 15px 34px -18px rgba(200,75,49,.82);
  }

  .links {
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  .links a {
    color: var(--muted);
    padding: 9px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    transition: background .2s ease, color .2s ease;
  }

  .links a:hover,
  .links a.active {
    background: rgba(200,75,49,.1);
    color: var(--terra);
  }

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

  .icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.72);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  .post-btn {
    border: 0;
    border-radius: 999px;
    background: var(--terra);
    color: var(--white);
    padding: 12px 18px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 38px -24px rgba(200,75,49,.78);
  }

  .post-btn:hover { background: var(--terra-2); }

  .hero {
    padding: 28px 0 0;
  }

  .hero-frame {
    width: min(1480px, calc(100% - 28px));
    margin: 0 auto;
    min-height: 620px;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    color: var(--white);
    background:
      linear-gradient(115deg, rgba(38,24,15,.88) 0%, rgba(38,24,15,.68) 46%, rgba(38,24,15,.25) 100%),
      url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2200&q=82") center/cover no-repeat;
    box-shadow: var(--shadow);
  }

  .hero-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 80% 8%, rgba(200,75,49,.3), transparent 26%),
      linear-gradient(180deg, rgba(255,255,255,.06), transparent 32%);
    pointer-events: none;
  }

  .hero-inner {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, .72fr);
    gap: 54px;
    align-items: end;
    padding: 74px 64px 58px;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
  }

  .eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--terra);
    box-shadow: 0 0 0 7px rgba(200,75,49,.22);
  }

  .hero h1 {
    max-width: 820px;
    margin: 28px 0 24px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(52px, 7.4vw, 112px);
    line-height: .88;
    letter-spacing: -.055em;
    font-weight: 900;
    text-transform: uppercase;
    text-wrap: balance;
  }

  .hero h1 span { color: #F6B79E; }

  .hero-copy {
    max-width: 620px;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.72;
  }

  .search-panel {
    border-radius: var(--r-xl);
    background: rgba(247,241,232,.92);
    color: var(--ink);
    border: 1px solid rgba(255,255,255,.48);
    backdrop-filter: blur(18px);
    padding: 26px;
    box-shadow: 0 30px 80px -46px rgba(38,24,15,.78);
  }

  .tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
  }

  .tab {
    flex: 1;
    border: 1px solid rgba(38,24,15,.08);
    background: rgba(255,255,255,.72);
    color: var(--muted);
    border-radius: 999px;
    padding: 11px 12px;
    font-weight: 900;
    cursor: pointer;
  }

  .tab.active { background: var(--terra); color: var(--white); border-color: transparent; }

  .search-box {
    display: grid;
    gap: 12px;
  }

  .keyword {
    position: relative;
  }

  .keyword input {
    width: 100%;
    height: 58px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
    padding: 0 18px 0 48px;
    outline: none;
    color: var(--ink);
    font-weight: 700;
  }

  .keyword svg {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--terra);
  }

  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  select {
    width: 100%;
    height: 50px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--ink);
    padding: 0 14px;
    outline: none;
    font-weight: 700;
  }

  .search-submit {
    height: 54px;
    border-radius: 999px;
    border: 0;
    background: var(--olive);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
  }

  .search-submit:hover { background: var(--olive-2); }

  .suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }

  .suggestions span {
    border-radius: 999px;
    background: rgba(200,75,49,.1);
    color: var(--terra);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
  }

  .stats-strip {
    width: min(var(--max), calc(100% - 48px));
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .stat {
    border-radius: 24px;
    background: rgba(255,255,255,.75);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-soft);
  }

  .stat b {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--terra);
    margin-bottom: 8px;
  }

  .stat span { color: var(--muted); font-size: 13px; }

  .section {
    padding: 96px 0;
  }

  .section-head {
    display: grid;
    grid-template-columns: .82fr 1fr;
    gap: 64px;
    align-items: end;
    margin-bottom: 36px;
  }

  .section-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(36px, 5vw, 70px);
    line-height: .95;
    letter-spacing: -.045em;
    font-weight: 900;
    text-transform: uppercase;
  }

  .section-title span { color: var(--terra); }
  .section-copy { color: var(--muted); font-size: 17px; line-height: 1.72; max-width: 610px; }

  .listing-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
    align-items: start;
  }

  .filter-card {
    position: sticky;
    top: 96px;
    border-radius: var(--r-lg);
    background: var(--white);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-soft);
  }

  .filter-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 16px;
  }

  .filter-card label {
    display: block;
    margin: 12px 0 7px;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
  }

  .range {
    display: flex;
    gap: 8px;
  }

  .range span {
    flex: 1;
    border-radius: 14px;
    background: var(--peach);
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--terra);
  }

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

  .property-card {
    border-radius: var(--r-lg);
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
  }

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

  .property-media {
    height: 230px;
    position: relative;
    overflow: hidden;
  }

  .property-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
  }

  .property-card:hover .property-media img { transform: scale(1.04); }

  .badge-row {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  .badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(38,24,15,.7);
    color: var(--white);
    backdrop-filter: blur(10px);
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
  }

  .save {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.86);
    color: var(--terra);
    cursor: pointer;
  }

  .save.active { background: var(--terra); color: var(--white); }

  .property-body { padding: 20px; }

  .price {
    font-family: "Poppins", sans-serif;
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
    color: var(--terra);
    letter-spacing: -.035em;
    margin-bottom: 10px;
  }

  .property-body h3 {
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 10px;
  }

  .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 14px;
  }

  .meta span {
    border-radius: 999px;
    background: var(--paper);
    padding: 6px 9px;
    font-weight: 700;
  }

  .location {
    color: var(--soft);
    font-size: 13px;
    margin-bottom: 16px;
  }

  .agent {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 14px;
  }

  .agent strong { display: block; font-size: 13px; }
  .agent span { color: var(--soft); font-size: 12px; }

  .call-btn {
    border: 0;
    border-radius: 999px;
    background: var(--olive);
    color: var(--white);
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 900;
  }

  .projects {
    background: var(--olive);
    color: var(--white);
    overflow: hidden;
  }

  .projects .section-copy { color: rgba(255,255,255,.68); }

  .project-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
  }

  .project-feature {
    min-height: 520px;
    border-radius: var(--r-xl);
    overflow: hidden;
    position: relative;
    background:
      linear-gradient(180deg, rgba(38,24,15,.12), rgba(38,24,15,.82)),
      url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1500&q=82") center/cover no-repeat;
    box-shadow: var(--shadow);
  }

  .project-feature .content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px;
  }

  .project-feature h3 {
    font-family: "Poppins", sans-serif;
    font-size: clamp(34px, 5vw, 64px);
    line-height: .92;
    letter-spacing: -.045em;
    margin-bottom: 16px;
  }

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

  .project-mini {
    border-radius: var(--r-lg);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    padding: 18px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }

  .project-mini img {
    width: 120px;
    height: 100px;
    border-radius: 18px;
    object-fit: cover;
  }

  .project-mini h4 {
    font-size: 20px;
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .project-mini p { color: rgba(255,255,255,.66); font-size: 13px; }

  .locations {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }

  .location-card {
    min-height: 250px;
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    color: var(--white);
    box-shadow: var(--shadow-soft);
  }

  .location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.95) contrast(1.05);
  }

  .location-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(38,24,15,.08), rgba(38,24,15,.76));
  }

  .location-card .text {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
  }

  .location-card h3 {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    line-height: 1;
    margin-bottom: 6px;
  }

  .location-card span { color: rgba(255,255,255,.76); font-size: 13px; }

  .news-tools {
    display: grid;
    grid-template-columns: 1fr .72fr;
    gap: 18px;
  }

  .news-list,
  .tools-card {
    border-radius: var(--r-xl);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 24px;
  }

  .news-item {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
  }

  .news-item:last-child { border-bottom: 0; }

  .news-num {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--peach);
    color: var(--terra);
    font-family: "JetBrains Mono", monospace;
    font-weight: 900;
  }

  .news-item h3 { font-size: 18px; line-height: 1.25; margin-bottom: 6px; }
  .news-item span { color: var(--soft); font-size: 13px; }

  .tools-grid {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }

  .tool {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 18px;
    background: var(--paper);
    padding: 15px;
    color: var(--ink);
    font-weight: 900;
  }

  footer {
    padding: 0 0 34px;
  }

  .footer-shell {
    width: min(1480px, calc(100% - 28px));
    margin: 0 auto;
    border-radius: var(--r-xl);
    background: var(--ink);
    color: rgba(255,255,255,.58);
    padding: 48px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 42px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .footer-logo {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 30px;
    letter-spacing: -.04em;
    color: var(--white);
    margin-bottom: 12px;
  }

  .footer-logo span { color: var(--terra); }
  .footer-brand p { max-width: 34ch; font-size: 13.5px; line-height: 1.75; }

  .footer-col h4 {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.42);
    margin-bottom: 16px;
  }

  .footer-col ul { list-style: none; display: grid; gap: 10px; }
  .footer-col a { color: rgba(255,255,255,.62); font-size: 14px; transition: color .2s ease; }
  .footer-col a:hover { color: #F6B79E; }

  .footer-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.visible { opacity: 1; transform: none; }

  @media (max-width: 1120px) {
    .links { display: none; }
    .hero-inner,
    .section-head,
    .listing-layout,
    .project-grid,
    .news-tools {
      grid-template-columns: 1fr;
    }
    .filter-card { position: static; }
    .stats-strip,
    .locations { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 760px) {
    .container { width: min(100% - 28px, var(--max)); }
    .nav-inner { width: calc(100% - 28px); height: 64px; grid-template-columns: 1fr auto; }
    .nav-actions .icon-btn { display: none; }
    .post-btn { padding: 10px 14px; font-size: 13px; }
    .logo { font-size: 19px; }
    .logo-mark { width: 36px; height: 36px; border-radius: 13px; }
    .hero-frame { width: calc(100% - 16px); border-radius: 28px; min-height: 820px; }
    .hero-inner { padding: 48px 22px 24px; grid-template-columns: 1fr; align-items: end; }
    .hero h1 { font-size: clamp(43px, 13.8vw, 60px); }
    .search-panel { border-radius: 28px; padding: 20px; }
    .filters,
    .stats-strip,
    .listing-grid,
    .locations,
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }
    .project-mini { grid-template-columns: 1fr; }
    .project-mini img { width: 100%; height: 170px; }
    .footer-shell { width: calc(100% - 16px); border-radius: 28px; padding: 28px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: .01ms !important;
    }
  }

/* --- Unous system refinement: type scale, footer system brand --- */
.hero h1 { font-size: clamp(46px, 6.2vw, 86px) !important; line-height: .98 !important; letter-spacing: -.045em !important; }
.section-title { font-size: clamp(34px, 4.2vw, 58px) !important; line-height: 1.04 !important; }
.system-brand-list { list-style: none; display: grid; gap: 12px; }
.system-brand-list a { display: block; color: rgba(255,255,255,.72); text-decoration: none; }
.system-brand-list strong { display: block; color: var(--white); font-size: 14px; line-height: 1.15; }
.system-brand-list small { display: block; margin-top: 3px; color: rgba(255,255,255,.42); font-size: 12px; }
@media (max-width: 760px) { .hero h1 { font-size: clamp(38px, 11.4vw, 52px) !important; line-height: 1.02 !important; } }


.footer-contact { margin-top: 16px; display: grid; gap: 5px; font-size: 13px; line-height: 1.45; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact strong { color: inherit; }




/* --- Vietnamese heading spacing fix: prevent diacritics collision --- */
h1,
h2,
.hero-h1,
.hero-copy h1,
.hero h1,
.section-title,
.section-heading h2,
.about-copy h2,
.price-head h2,
.contact-card h2,
.contact-copy h2,
.bi-copy h2,
.insight-band h2,
.service-copy h2,
.adv-copy h2 {
  letter-spacing: -0.024em !important;
  text-wrap: balance;
  overflow: visible;
  padding-block: 0.04em;
}
.hero-h1,
.hero-copy h1,
.hero h1,
h1 {
  font-size: clamp(38px, 4.85vw, 68px) !important;
  line-height: 1.18 !important;
}
.section-title,
.section-heading h2,
h2,
.about-copy h2,
.price-head h2,
.contact-card h2,
.contact-copy h2,
.bi-copy h2,
.insight-band h2 {
  font-size: clamp(28px, 3.05vw, 44px) !important;
  line-height: 1.22 !important;
}
@media (max-width: 760px) {
  .hero-h1,
  .hero-copy h1,
  .hero h1,
  h1 {
    font-size: clamp(32px, 9.4vw, 42px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.018em !important;
  }
  .section-title,
  .section-heading h2,
  h2,
  .about-copy h2,
  .price-head h2,
  .contact-card h2,
  .contact-copy h2,
  .bi-copy h2,
  .insight-band h2 {
    font-size: clamp(26px, 7.8vw, 34px) !important;
    line-height: 1.24 !important;
    letter-spacing: -0.014em !important;
  }
}



/* --- Language switcher --- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
}
.lang-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: inherit;
  font: 800 11px/1 "Inter", system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lang-btn.active {
  background: var(--ink, var(--brand, #0E1116));
  color: #fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.16);
}

.lang-switcher { display: inline-flex !important; flex-shrink: 0; }
.nav .lang-switcher, .site-header .lang-switcher { position: relative; z-index: 5; }
@media (max-width: 760px) {
  .nav .lang-switcher, .site-header .lang-switcher { display: inline-flex !important; }
  .nav-inner .lang-switcher { margin-left: auto; }
}
@media (max-width: 760px) {
  .lang-switcher { order: 20; }
  .lang-btn { padding: 8px 9px; }
}
/* ============================================================
   UNIFIED BRAND ALIASES — consumed by main.css shared components.
   ============================================================ */
:root {
    --brand-primary: var(--terra);
    --brand-primary-dark: var(--terra-2);
    --brand-accent: var(--olive);
    --brand-ink: var(--ink);
    --brand-ink-soft: var(--soft);
    --brand-bg: var(--paper);
    --brand-bg-soft: var(--paper-2);
    --brand-surface: var(--white);
    --brand-muted: var(--muted);
    --brand-border: var(--border);
    --brand-radius: var(--r-md);
    --brand-radius-sm: var(--r-sm);
    --brand-shadow: var(--shadow-soft);
    --brand-font-body: "Poppins", "Inter", system-ui, sans-serif;
    --brand-font-display: "Poppins", "Inter Tight", system-ui, sans-serif;
    --brand-font-mono: ui-monospace, SFMono-Regular, monospace;
}

/* ============================================================
   PHASE 9 — HEADER NAV (matches header.php structure)
   ============================================================ */
.nav#navbar {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
    display: block;
    background: transparent;
}

.nav-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    height: 68px;
    border: 1px solid rgba(60, 30, 20, 0.1);
    background: rgba(253, 250, 245, 0.86);
    color: var(--ink);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 999px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 0 10px 0 24px;
    pointer-events: auto;
    box-shadow: 0 18px 54px -34px rgba(60, 30, 20, 0.4);
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.nav.scrolled .nav-shell {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 60px -30px rgba(60, 30, 20, 0.32);
}

.nav-logo {
    font-family: "Poppins", "Inter Tight", sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.025em;
    text-decoration: none;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--terra) 0%, var(--terra-2) 100%);
    color: #fff;
    flex: 0 0 auto;
    box-shadow: 0 14px 28px -16px rgba(200, 75, 49, 0.55);
}

.domain-logo .domain-co { color: var(--terra); }

.nav-shell .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.nav-shell .nav-links a {
    position: relative;
    color: var(--ink);
    opacity: .82;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    transition: opacity .2s ease;
}

.nav-shell .nav-links a:hover { opacity: 1; }

.nav-shell .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--terra);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.nav-shell .nav-links a:hover::after,
.nav-shell .nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nav-cta.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    background: var(--terra);
    color: #fff;
    border: 1px solid var(--terra);
    box-shadow: 0 14px 30px -18px rgba(200, 75, 49, 0.7);
    transition: transform .2s ease, background .2s ease;
    white-space: nowrap;
}

.nav-cta.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--terra-2);
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(60, 30, 20, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 999px;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--muted);
    transition: background .2s ease, color .2s ease;
}

.lang-btn.active {
    background: var(--terra);
    color: #fff;
}

.menu-toggle { color: var(--ink); }

@media (max-width: 960px) {
    .nav-shell { grid-template-columns: auto auto auto; justify-content: space-between; }
    .nav-shell .nav-links { display: none; }
    .nav.nav-open .nav-shell .nav-links,
    .nav.toggled .nav-shell .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 78px;
        left: 16px;
        right: 16px;
        background: #fff;
        padding: 20px;
        border-radius: 18px;
        gap: 14px;
    }
    .menu-toggle { display: flex; }
}

@media (max-width: 600px) {
    .nav-shell { width: calc(100% - 20px); height: 58px; padding: 0 8px 0 16px; }
    .nav-logo { font-size: 18px; }
    .nav-mark { width: 30px; height: 30px; border-radius: 10px; }
}

body { padding-top: 100px; }
@media (max-width: 600px) { body { padding-top: 86px; } }

/* Mobile nav parity with unous.co */
@media (max-width: 960px) {
    .nav-shell {
        position: relative;
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .nav-shell .nav-links {
        display: none;
    }

    .nav.nav-open .nav-shell .nav-links,
    .nav.toggled .nav-shell .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        z-index: 120;
        background: #fff;
        padding: 18px 20px;
        border: 1px solid var(--brand-border, rgba(0,0,0,.08));
        border-radius: 18px;
        gap: 14px;
        box-shadow: 0 24px 60px rgba(14,17,22,.14);
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.nav-cta.btn-primary {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 13px;
    line-height: 1.1;
    border-radius: 999px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .nav-actions .nav-cta.btn-primary {
        padding: 9px 13px;
        font-size: 12px;
        min-height: 36px;
    }
}

/* Mobile nav compact parity with unous.co */
@media (max-width: 760px) {
    .nav-shell {
        width: calc(100% - 20px) !important;
        height: 58px !important;
        min-height: 58px !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        justify-content: normal !important;
        align-items: center !important;
        gap: 3px !important;
        padding: 0 3px 0 8px !important;
        overflow: visible !important;
    }

    .nav-logo,
    .logo {
        min-width: 0 !important;
        flex-shrink: 1 !important;
        font-size: 16px !important;
        gap: 8px !important;
        white-space: nowrap !important;
    }

    .nav-mark,
    .logo-mark {
        width: 30px !important;
        height: 30px !important;
        border-radius: 10px !important;
        flex: 0 0 30px !important;
    }

    .nav-actions {
        grid-column: 2 !important;
        justify-self: end !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        margin-left: 0 !important;
        transform: translateX(-8px) !important;
        min-width: 0 !important;
    }

    .nav-actions .nav-cta,
    .nav-actions .nav-cta.btn-primary {
        min-height: 0 !important;
        padding: 8px 9px !important;
        font-size: 10.5px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        box-shadow: none !important;
    }

    .lang-switcher {
        padding: 2px !important;
        transform: scale(.88) !important;
        transform-origin: right center !important;
        white-space: nowrap !important;
    }

    .lang-btn {
        padding: 6px 7px !important;
        font-size: 9.5px !important;
        line-height: 1 !important;
    }

    .menu-toggle {
        grid-column: 3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 5px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .hamburger {
        width: 20px !important;
        gap: 4px !important;
    }

    .nav.nav-open .nav-shell .nav-links,
    .nav.toggled .nav-shell .nav-links {
        left: 10px !important;
        right: 10px !important;
        top: calc(100% + 8px) !important;
        padding: 10px 6px !important;
        gap: 0 !important;
    }

    .nav.nav-open .nav-links a,
    .nav.toggled .nav-links a {
        display: block !important;
        padding: 12px 16px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
    }
}

@media (max-width: 380px) {
    .nav-actions .nav-cta,
    .nav-actions .nav-cta.btn-primary {
        padding: 7px 7px !important;
        font-size: 10px !important;
    }

    .lang-switcher { transform: scale(.82) !important; }
    .lang-btn { padding: 6px 7px !important; font-size: 9.5px !important; }
}
