:root {
  --office-ink: #19372f;
  --office-deep: #113029;
  --office-paper: #f4f0e6;
  --office-line: #d9dfd5;
  --office-accent: #a28349;
  --office-serif: "Noto Serif TC", "PMingLiU", serif;
  --color-navy: var(--office-ink);
  --color-navy-dark: var(--office-deep);
  --color-navy-soft: #32594c;
  --color-gold: #765c2f;
  --color-gold-light: #d9bb7c;
  --color-gray-light: #f7f7f1;
  --color-border: var(--office-line);
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
  overflow: hidden;
}

@media screen {
  .public-header,
  #root > .public-header {
    border-bottom: 1px solid var(--office-line);
    background: #fff;
  }
  .public-header .logo,
  .public-header .brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    color: var(--office-ink);
  }
  .public-header .logo img,
  .public-header .brand img { width: 35px; height: 35px; flex: 0 0 35px; object-fit: contain; }
  .public-header .logo .logo-main,
  .public-header .brand strong { font-size: clamp(14px, 1.4vw, 18px); line-height: 1.4; letter-spacing: 0; }
  .public-header .nav { gap: clamp(14px, 2vw, 29px); }
  .public-header .nav > a,
  #navigation > a,
  #navigation > button { color: var(--office-ink); }
  .public-header .nav > .nav-cta,
  #navigation > .nav-cta {
    border-radius: 2px;
    background: var(--office-ink);
    color: #fff;
    padding: 10px 14px;
  }

  .page-banner,
  .realty-hero {
    background:
      linear-gradient(90deg, #f4f0e6 4%, #f4f0e6f0 37%, #f4f0e640 86%),
      url("../images/home-case-map.webp") center 58% / cover;
    padding: clamp(48px, 8vw, 112px) 0;
    color: var(--office-ink);
    text-align: left;
  }
  .page-banner h1,
  .realty-hero h1 {
    max-width: 24ch;
    margin: 0;
    color: var(--office-ink);
    font: 650 clamp(30px, 4.2vw, 54px)/1.35 var(--office-serif);
    text-wrap: balance;
  }
  .page-banner .breadcrumb,
  .page-banner .breadcrumb a { color: #5a533f; }
  .realty-hero p { color: var(--office-deep); }
  .realty-hero .btn-outline { color: var(--office-deep); border-color: var(--office-ink); }
  .section-header h2,
  .article-content h2,
  .content-desk .desk-heading h1,
  .task-desk .desk-heading h1 { font-family: var(--office-serif); color: var(--office-ink); }
  .content-desk .desk-toolbar,
  .task-desk .desk-toolbar {
    padding: 18px clamp(12px, 3vw, 30px);
    background: var(--office-paper);
    border-bottom: 1px solid var(--office-line);
  }

  #service-inheritance, #service-transfer, #home-services { scroll-margin-top: 100px; }

  .panorama {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    min-height: max(500px, calc(100svh - 74px));
    background: var(--office-deep);
    overflow: hidden;
  }
  .panorama-media, .panorama-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .panorama-media { z-index: -2; }
  .panorama-media img { object-fit: cover; object-position: center 56%; opacity: 0; }
  .panorama-media img.active { opacity: 1; }
  .panorama::after {
    content: "";
    position: absolute;
    inset: 50% 0 0;
    z-index: -1;
    background: linear-gradient(transparent, #112d25a3);
    pointer-events: none;
  }
  .panorama-inner {
    width: min(100%, 1340px);
    margin-inline: auto;
    padding: 56px max(6vw, 24px) 90px;
  }
  .panorama-copy {
    width: min(100%, 530px);
    min-height: 205px;
    padding: clamp(20px, 4vw, 38px);
    border-left: 4px solid #9c7d46;
    background: #f5f1e8f5;
    color: var(--office-ink);
    box-shadow: 0 14px 44px #162c2540;
  }
  .panorama-copy p { margin: 0 0 7px; color: #344e43; }
  .panorama-copy h1, .panorama-copy h2 {
    margin: 0 0 10px;
    font: 650 clamp(30px, 3.5vw, 53px)/1.25 var(--office-serif);
    text-wrap: balance;
  }
  .panorama-detail { line-height: 1.55; }
  .editorial-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    min-height: 44px;
    border: 1px solid var(--office-ink);
    padding: 0 13px;
    background: var(--office-ink);
    color: #fff;
    text-decoration: none;
    font: inherit;
  }
  .editorial-action:hover { background: #365e4e; }
  .panorama-controls {
    position: absolute;
    inset: auto 0 17px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .panorama-dots { display: flex; }
  .panorama-dots button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: transparent;
    border: 0;
  }
  .panorama-dots button::after {
    content: "";
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #15362b80;
  }
  .panorama-dots button[aria-pressed="true"]::after { background: #fff; }
  .panorama button:focus-visible { outline: 2px solid #f1d898; outline-offset: 2px; }

  .editorial-section, .editorial-band {
    width: min(100%, 1310px);
    margin-inline: auto;
    padding: clamp(54px, 8vw, 110px) max(6vw, 22px);
  }
  .editorial-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(26px, 7vw, 105px);
  }
  .editorial-band img { display: block; width: 100%; object-fit: cover; aspect-ratio: 1.3; }
  .editorial-intro img { border-radius: 4px 65px 4px 4px; object-position: center; }
  .editorial-kicker { color: #6f572d; font-weight: 650; margin: 0 0 11px; }
  .editorial-band h2, .editorial-section h2 {
    color: var(--office-ink);
    font: 650 clamp(28px, 3.5vw, 48px)/1.3 var(--office-serif);
    margin: 0 0 13px;
    text-wrap: balance;
  }
  .editorial-band p:not(.editorial-kicker), .editorial-band li { line-height: 1.8; }
  .editorial-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    color: var(--office-ink);
    text-underline-offset: 4px;
  }
  .editorial-profile { background: var(--office-paper); }
  .editorial-profile img {
    width: min(100%, 345px);
    aspect-ratio: 1;
    object-position: center 19%;
    border-radius: 4px 4px 4px 64px;
  }
  .editorial-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    border-bottom: 1px solid var(--office-line);
    margin: 0 0 24px;
  }
  .editorial-services, .editorial-tool-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .editorial-services a, .editorial-tool-links a {
    position: relative;
    min-width: 0;
    padding: 22px 30px 22px 16px;
    border: 1px solid var(--office-line);
    color: var(--office-ink);
    background: #fff;
    text-decoration: none;
  }
  .editorial-services a:hover, .editorial-tool-links a:hover { background: #edf3ea; border-color: #6f927d; }
  .editorial-services a i { font-size: 22px; color: #5e785d; }
  .editorial-services a h3 { font-size: 18px; margin: 9px 0 4px; }
  .editorial-services a p { font-size: 13px; margin: 0; line-height: 1.5; }
  .editorial-services a span, .editorial-tool-links a span { position: absolute; top: 20px; right: 12px; }
  .editorial-tools { background: #edf2eb; }
  .editorial-tool-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
  .editorial-contact > div:last-child { display: flex; flex-wrap: wrap; gap: 14px; }

  .site-back-top {
    position: fixed;
    z-index: 90;
    inset: auto auto max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    width: 46px;
    height: 46px;
    border: 1px solid var(--office-line);
    border-radius: 50%;
    background: #fff;
    color: var(--office-ink);
    box-shadow: 0 3px 13px #1c352529;
    font-size: 18px;
  }
  .site-back-top[hidden] { display: none; }

  body > :is(.floating-line, .floating-contact, .public-map) {
    width: 46px !important;
    height: 46px !important;
    right: 12px !important;
    box-shadow: 0 2px 11px #17332733 !important;
  }
  body > .floating-contact { bottom: calc(122px + env(safe-area-inset-bottom, 0px)) !important; background: var(--office-ink) !important; }
  body > .floating-line { bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important; background: #067739 !important; }
  body > .public-map {
    position: fixed;
    display: grid;
    place-items: center;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 50%;
    background: #315548;
    color: #fff;
    z-index: 999;
  }
  #root > .quick-contact a:first-child { background: var(--office-ink); }
  #root > .quick-contact a:nth-child(2) { background: #067739; }
  #root > .quick-contact a:last-child { background: #315548; }
  body:has(#lvt-ocr-modal.active) > .public-map { visibility: hidden; }

  @media (max-width: 900px) {
    .editorial-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
    #navigation.open > a { padding-inline: 12px; }
  }
  @media (max-width: 640px) {
    .panorama { min-height: max(445px, calc(84svh - 65px)); }
    .panorama-inner { padding: 42px 63px 76px 18px; }
    .panorama-copy { min-height: 170px; }
    .panorama-copy h1, .panorama-copy h2 { font-size: 30px; }
    .editorial-section, .editorial-band { padding-right: 64px; }
    .editorial-band { grid-template-columns: minmax(0, 1fr); }
    .editorial-profile img { width: min(100%,220px); }
    .editorial-section-heading { align-items: flex-start; }
    .editorial-services a, .editorial-tool-links a { padding: 14px 8px; }
    .editorial-services a span, .editorial-tool-links a span { display: none; }
    .public-header .logo .logo-main, .public-header .brand strong { font-size: 13px; }
    #root > .public-header > .brand { flex: 1 1 0; min-width: 0; padding: 0; }
    #root > .public-header > .brand strong { white-space: normal; text-align: left; }
    #root > .public-header > .menu { flex: 0 0 auto; }
    .page-banner, .realty-hero { padding-block: 45px; }
    .page-banner h1, .realty-hero h1 { font-size: 29px; }
    body:has(input:focus,textarea:focus,select:focus) > .public-map { visibility: hidden; }
  }
  @media print { .site-back-top { display: none; } }

  .fade-in { opacity: 1; transform: none; transition: none; }
  .panorama-media img { transition: opacity 900ms ease; }
  .panorama-copy { animation: copy-in 700ms ease-out both; }
  .site-section-entered {
    animation: editorial-in 850ms cubic-bezier(.21,.7,.36,1) var(--enter-delay, 0ms) both;
  }
  .site-section-entered[data-entrance="stagger"] { animation: none; }
  .site-section-entered[data-entrance="stagger"] > a { animation: editorial-in .68s ease-out both; }
  .site-section-entered[data-entrance="stagger"] > a:nth-child(even) { animation-delay: .10s; }
  @keyframes copy-in {
    from { opacity: .3; transform: translateY(var(--copy-offset, 0)); }
    to { opacity: 1; transform: none; }
  }

  @keyframes editorial-in {
    from { opacity: .30; transform: translate(var(--enter-x, 0px), var(--enter-y, 0px)) scale(var(--enter-scale, 1)); }
    to { opacity: 1; transform: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .panorama-media img { transition: opacity 480ms ease !important; }
    .panorama-copy { animation: copy-in 490ms ease-out both !important; }
    .site-section-entered {
      animation: editorial-in 650ms ease-out var(--enter-delay, 0ms) both !important;
    }
    .site-section-entered[data-entrance="stagger"] { animation: none !important; }
    .site-section-entered[data-entrance="stagger"] > a {
      animation: editorial-in 650ms ease-out both !important;
    }
    .site-section-entered[data-entrance="stagger"] > a:nth-child(even) {
      animation-delay: .10s !important;
    }
  }
  @media (prefers-reduced-motion: no-preference) {
    .panorama-copy { --copy-offset: 20px; }
    .site-section-entered { --enter-y: 32px; }
    .site-section-entered[data-entrance="left"] { --enter-x: -42px; --enter-y: 0px; }
    .site-section-entered[data-entrance="right"] { --enter-x: 42px; --enter-y: 0px; }
    .site-section-entered[data-entrance="unfold"] { animation: editorial-unfold 1050ms ease-out both; }
    .site-section-entered[data-entrance="portrait"] { --enter-x: -20px; --enter-y: 0; --enter-scale: .94; }
    .site-section-entered[data-entrance="tool"] { --enter-x: 22px; --enter-y: 8px; }
    @keyframes editorial-unfold {
      from { opacity: .3; clip-path: inset(0 12% 0 0 round 8px); transform: scale(.96); }
      to { opacity: 1; clip-path: inset(0); transform: none; }
    }
  }
}
@media print { .site-back-top, .public-map { display: none !important; } }

@media screen {
  .banner-actions, .inner-index {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
  }
  .banner-actions { margin-top: 18px; }
  .inner-index { margin: 0 0 18px; }
  .inner-index a, .banner-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 7px 13px;
    border: 1px solid var(--office-line);
    background: #fff;
    color: var(--office-ink);
  }
  .banner-actions a:first-child {
    background: var(--office-ink);
    color: white;
  }
  .inner-index a:hover, .banner-actions a:hover { text-decoration: underline; }
  .inner-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .inner-services a { min-height: 64px; }
  :is(.svc-acc-body, .fee-acc > *, #contactForm)[id] { scroll-margin-top: 96px; }
  @media (max-width: 640px) {
    .banner-actions, .inner-index { padding-right: 42px; }
    .inner-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inner-index a, .banner-actions a { padding-inline: 9px; }
  }
}

@media screen {
  #main:has(.panorama) { overflow-x: clip; }
  .home-motion {
    opacity: 1;
    transform: none;
    transition: opacity .78s ease, transform .9s cubic-bezier(.22,.65,.32,1);
    transition-delay: var(--enter-delay, 0ms);
  }
  .home-motion-waiting {
    opacity: 0;
    transform: translate(var(--motion-x, 0px), var(--motion-y, 24px)) scale(var(--motion-scale, 1));
    transition: none;
  }
  .home-motion[data-entrance="down"] { --motion-y: -22px; }
  .home-motion[data-entrance="left"] { --motion-x: -34px; --motion-y: 0px; }
  .home-motion[data-entrance="right"], .home-motion[data-entrance="tool"] { --motion-x: 34px; --motion-y: 0px; }
  .home-motion[data-entrance="zoom"] { --motion-y: 0px; --motion-scale: .88; }
  .editorial-profile-heading { --enter-delay: 80ms; }
  .editorial-credentials > div:nth-child(2n) { --enter-delay: 140ms; }
  .home-motion:focus, .home-motion:focus-within { opacity: 1; transform: none; transition: none; }
  @media (prefers-reduced-motion: reduce) {
    .home-motion { transition: opacity .65s ease var(--enter-delay, 0ms) !important; }
    .home-motion-waiting { transform: none; transition: none !important; }
    .home-motion:focus, .home-motion:focus-within { transition: none !important; }
  }
}


@media screen {
  :root {
    --office-content-width: 1840px;
    --office-gutter: clamp(20px, 3.3vw, 64px);
    --office-band-space: clamp(48px, 6.25vw, 92px);
    --office-display: clamp(30px, 3.5vw, 52px);
  }

  #root > :is(.public-header, footer) {
    padding-inline: max(var(--office-gutter), calc((100% - var(--office-content-width)) / 2 + var(--office-gutter)));
  }
  .public-header .nav > .nav-cta, #navigation > .nav-cta {
    background: transparent;
    color: var(--office-ink);
  }
  .public-header :is(.nav, #navigation) > :is(a, button) {
    position: relative;
  }
  .public-header :is(.nav, #navigation) > :is(a, button):is(:hover, :focus-visible, [aria-current="page"]) {
    color: #765c2f;
    text-decoration: none;
  }
  .public-header :is(.nav, #navigation) > :is(a, button)::after {
    content: "";
    display: block;
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    height: 2px;
    background: var(--office-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
    pointer-events: none;
  }
  .public-header :is(.nav, #navigation) > :is(a, button):is(:hover, :focus-visible, [aria-current="page"])::after {
    transform: scaleX(1);
  }

  .public-header :is(.nav, #navigation) > .nav-cta:is(:hover, :focus-visible, [aria-current="page"]) {
    background: #edf2eb;
    color: var(--office-deep);
  }

  #root .tools-section {
    width: min(100%, var(--office-content-width));
    max-width: none;
    margin-inline: auto;
    padding: clamp(32px, 4vw, 66px) var(--office-gutter);
  }
  #root .tools-section .section-top { margin-bottom: clamp(14px, 2.8vw, 38px); }
  #root .tools-section h1 {
    color: var(--office-ink);
    font: 650 var(--office-display)/1.3 var(--office-serif);
  }
  #root .tool-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(24px, 4vw, 60px);
  }
  #root .tool-directory button { padding-block: 15px; }
  #root .tool-directory button:is(:hover, :focus-visible) strong { color: #765c2f; }
  #root .tools-section .converter {
    margin-top: 14px;
    padding: clamp(14px, 2.5vw, 30px);
    gap: clamp(16px, 3vw, 36px);
  }
  @media (max-width: 1120px) {
    #root .tool-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    #root .tools-section { padding-right: 60px; }
    #root .tool-directory { grid-template-columns: minmax(0, 1fr); }
    #root .converter-fields { grid-template-columns: minmax(0, 1fr); }
  }

  .panorama {
    align-items: center;
    min-height: clamp(475px, 51vw, max(475px, min(790px, calc(100svh - 76px))));
  }
  .panorama::after {
    inset: 0;
    background: linear-gradient(90deg, #0c211bef 0%, #0c211bbf 36%, #0c211b26 76%, transparent 100%);
  }
  .panorama-inner {
    width: min(100%, var(--office-content-width));
    padding: 34px var(--office-gutter) 78px;
  }
  .panorama-copy {
    width: min(100%, 620px);
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    text-shadow: 0 2px 18px #0c211b99;
  }
  .panorama-copy p { color: #fff; }
  .panorama-copy h1, .panorama-copy h2 { color: #fff; font-size: clamp(33px, 4.2vw, 66px); }
  .panorama-copy .editorial-action {
    margin-top: 8px;
    padding-inline: 0;
    background: transparent;
    border: 0;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  .panorama-copy .editorial-action:hover { color: #f1d898; }

  .editorial-band, .editorial-section {
    width: min(100%, var(--office-content-width));
    padding: var(--office-band-space) var(--office-gutter);
  }
  .editorial-band h2, .editorial-section h2, .section-header h2 {
    font-size: var(--office-display);
  }
  .editorial-intro img { aspect-ratio: 1.12; }
  .editorial-intro > div { max-width: 60ch; }
  .editorial-profile .editorial-band {
    align-items: start;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: clamp(28px, 4vw, 72px);
  }
  .editorial-profile-heading { margin-bottom: 28px; }
  .editorial-profile-heading h2 { text-wrap: initial; }
  .editorial-profile-heading p:last-child { max-width: 55ch; }
  .editorial-profile img {
    width: min(100%, 600px, 64svh);
    height: auto;
    aspect-ratio: 4 / 5;
    object-position: center 20%;
  }
  .editorial-credentials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px clamp(24px, 3vw, 56px);
    margin-bottom: 18px;
  }
  .editorial-credentials h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--office-ink); }
  .editorial-credentials ul { margin-block: 0; padding-inline-start: 1.2em; }
  .editorial-credentials li { margin-block: 4px; }

  .editorial-services { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .editorial-services, .inner-services, .editorial-tool-links { gap: clamp(12px, 2vw, 28px); }
  .editorial-services a, .inner-index a, .banner-actions a, .banner-actions a:first-child,
  .editorial-tool-links a {
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--office-ink);
  }
  .editorial-services a, .inner-services a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 4px 25px;
    gap: 4px;
    text-decoration: none;
    text-align: center;
  }
  .editorial-services a :is(h3, p) { margin: 0; }
  .editorial-services a h3 { margin-top: 5px; }
  :is(.editorial-services, .inner-services) a i {
    display: block;
    font-size: clamp(25px, 3.35vw, 43px);
    color: var(--office-ink);
    transition: color .24s ease, transform .24s ease;
  }
  .editorial-services a span { display: none; }
  :is(.editorial-services, .inner-services) a::after {
    content: "";
    position: absolute;
    bottom: 7px;
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: var(--office-accent);
    opacity: 0;
    transform: scaleX(.2);
    transition: opacity .26s ease, transform .26s ease;
  }
  :is(.editorial-services, .inner-services) a:is(:hover, :focus-visible, :active) {
    background: transparent;
    text-decoration: none;
  }
  :is(.editorial-services, .inner-services) a:is(:hover, :focus-visible, :active)::after {
    opacity: 1;
    transform: scaleX(1);
  }
  :is(.editorial-services, .inner-services) a:is(:hover, :focus-visible, :active) i { color: #806028; }
  .editorial-tool-links a {
    min-height: 44px;
    padding: 12px 22px 12px 0;
    border-bottom: 1px solid var(--office-line);
  }
  .editorial-tool-links a span { top: 12px; right: 0; }
  .editorial-tool-links a:hover { background: transparent; text-decoration: underline; }
  .inner-index:not(.inner-services) a, .banner-actions a, .banner-actions a:first-child {
    padding-inline: 0;
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  :is(.editorial-link, .inner-index:not(.inner-services) a, .banner-actions a):is(:hover, :focus-visible) {
    color: #765c2f;
    text-decoration-thickness: 2px;
  }

  .site-header.public-header .container, .page-banner .container, .realty-hero > .container,
  .section > .container, .cta-banner > .container, .site-footer > .container {
    width: 100%;
    max-width: var(--office-content-width);
    padding-inline: var(--office-gutter);
  }
  .page-banner, .realty-hero {
    display: grid;
    align-items: end;
    min-height: clamp(270px, 45svh, 560px);
    padding-block: clamp(50px, 7vw, 100px);
    background-image:
      linear-gradient(90deg, #102a22f5, #102a22b3 52%, #102a2252),
      url("../images/home-case-map.webp");
    color: #fff;
  }
  .page-banner :is(h1, .breadcrumb, .breadcrumb a, p),
  .realty-hero :is(h1, p, .btn-outline) { color: #fff; }
  .realty-hero .btn-outline { border-color: #fff; }
  .page-banner .banner-actions a, .page-banner .banner-actions a:first-child { color: #fff; }
  .section:not(.page-banner) > .container > .section-header { text-align: left; }
  .section-header .eyebrow { color: #765c2f; }

  .section :is(.grid, .svc-acc-body) > .card {
    padding: 17px 0 23px;
    border: 0;
    border-bottom: 1px solid var(--office-line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transform: none;
  }
  .section .card .icon {
    justify-content: start;
    background: transparent;
    color: var(--office-ink);
  }
  .section :is(.svc-acc, .fee-acc) {
    max-width: none;
    margin: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--office-line);
    border-radius: 0;
    box-shadow: none;
  }
  .section :is(.svc-acc, .fee-acc) > summary { color: var(--office-ink); }
  .section :is(.svc-acc, .fee-acc) > summary:is(:hover, :focus-visible) {
    color: #765c2f;
    background: rgb(162 131 73 / 8%);
  }
  .art-card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .art-card, .art-card:hover {
    border: 0;
    border-bottom: 1px solid var(--office-line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transform: none;
  }
  .art-card :is(.art-top, .art-mid, .art-foot) { padding-inline: 0; }
  .art-card .art-top, .art-card .art-foot { background: transparent; color: #765c2f; }
  .art-card .art-mid h3 { color: var(--office-ink); }
  .art-card:is(:hover, :focus-visible) .art-mid h3 { text-decoration: underline; text-underline-offset: 4px; }

  @media (min-width: 901px) {
    .editorial-intro, .editorial-profile .editorial-band {
      min-height: min(880px, calc(100svh - 76px));
    }
    .editorial-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
    .editorial-intro img {
      height: clamp(410px, 67svh, 660px);
      aspect-ratio: auto;
    }
  }

  @media (max-width: 960px) {
    .editorial-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (max-width: 720px) {
    .editorial-profile .editorial-band, .editorial-credentials { grid-template-columns: minmax(0, 1fr); }
    .editorial-profile img { width: min(100%, 320px); }
    .panorama::after { background: linear-gradient(0deg, #0c211bef, #0c211b24); }
  }
  @media (max-width: 640px) {
    #root > .public-header { padding-inline: 16px; }
    .panorama { align-items: end; min-height: clamp(390px, 62svh, 520px); }
    .panorama-inner { padding: 28px 65px 78px 20px; }
    .panorama-copy h1, .panorama-copy h2 { font-size: clamp(25px, 8vw, 39px); }
    .editorial-band, .editorial-section { padding-right: 61px; }
    .page-banner, .realty-hero { min-height: clamp(210px, 31svh, 320px); padding-block: 40px; }
    .section > .container { padding-right: 60px; }
  }
  @media (max-width: 375px) {
    .editorial-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (prefers-reduced-motion: no-preference) {
    .panorama-media img:nth-child(odd).active { animation: office-pan-right 5.4s linear both; }
    .panorama-media img:nth-child(even).active { animation: office-pan-left 5.4s linear both; }
    .editorial-intro img, .editorial-profile img {
      transition: opacity .9s ease, transform .9s cubic-bezier(.22,.65,.32,1), clip-path .9s cubic-bezier(.22,.65,.32,1);
      clip-path: inset(0);
    }
    .editorial-intro img.home-motion-waiting { clip-path: inset(0 0 0 27%); --motion-x: 48px; transition: none; }
    .editorial-profile img.home-motion-waiting { clip-path: inset(0 27% 0 0); --motion-x: -48px; transition: none; }
    :is(.editorial-services, .inner-services) a:is(:hover, :focus-visible, :active) i { transform: translateY(-4px); }
  }
  @keyframes office-pan-right {
    from { transform: scale(1.025) translateX(-.7%); }
    to { transform: scale(1.085) translateX(1.25%); }
  }
  @keyframes office-pan-left {
    from { transform: scale(1.03) translateX(1%); }
    to { transform: scale(1.09) translateX(-1.2%); }
  }

}

@media screen {
  .btn.btn-primary {
    background: var(--office-ink);
    border-color: var(--office-ink);
    color: #fff;
  }
  .btn.btn-primary:is(:hover, :focus-visible) {
    background: var(--office-deep);
    border-color: var(--office-deep);
    color: #fff;
  }
  :is(.realty-hero, .cta-banner, .article-cta) .btn.btn-primary {
    background: #f4f0e6;
    border-color: #f4f0e6;
    color: var(--office-deep);
  }
  :is(.realty-hero, .cta-banner, .article-cta) .btn.btn-primary:is(:hover, :focus-visible) {
    background: #fff;
    border-color: #fff;
    color: var(--office-deep);
  }
  .article-cta .btn.cta-line {
    background: #067739;
    border-color: #067739;
    color: #fff;
  }
  .article-cta .btn.cta-line:is(:hover, :focus-visible) {
    background: #06592d;
    border-color: #06592d;
    color: #fff;
  }

  :is(.fee-price, .lvt-faq details a) { color: #765c2f; }
  :is(.article-meta, .article-disc) { color: #576761; }
  body:has(.article-wrap) { --article-text-width: 920px; }
  body:has(.article-wrap) .page-banner > .container {
    max-width: calc(var(--article-text-width) + 2 * var(--office-gutter));
  }
  .article-wrap { max-width: var(--article-text-width); }
  .article-cta { background: var(--office-deep); border-radius: 4px; }
  .article-body :is(h2, h3, strong) { color: var(--office-ink); }

  .calc-intro {
    max-width: 62ch;
    margin-inline: 0;
    text-align: left;
  }
  .section form.calc-form {
    max-width: min(100%, 760px);
    margin-inline: 0;
  }
  .lvt-hub, .lvt-faq { max-width: none; margin-inline: 0; }
  .lvt-hub p { max-width: 74ch; }
  .lvt-faq details {
    border: 0;
    border-bottom: 1px solid var(--office-line);
    border-radius: 0;
    background: transparent;
  }
  .lvt-faq summary { padding-inline: 0 30px; color: var(--office-ink); }
  .lvt-faq details p { padding-inline: 0; max-width: 72ch; }

  #root .integrated-desk {
    width: min(100%, var(--office-content-width));
    max-width: none;
    margin-inline: auto;
    padding-inline: var(--office-gutter);
  }
  @media (max-width: 640px) {
    #root .integrated-desk { padding-right: 58px; }
    .article-cta { padding-inline: 14px; }
    .article-cta .btn { margin: 6px 0; padding-inline: 18px; }
  }
}

/* Keep every primary link reachable in short mobile browser viewports. */
@media screen and (max-width: 860px) {
  .site-header.public-header .nav {
    top: 100%;
    gap: 0;
    align-items: stretch;
    visibility: hidden;
  }
  .site-header.public-header .nav.open {
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    visibility: visible;
    scroll-padding-block: 4px;
  }
  .site-header.public-header .nav > a {
    flex: none;
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 9px var(--office-gutter);
  }
  .site-header.public-header .nav > a::after { display: none; }
  .site-header.public-header .nav > a[aria-current="page"] {
    background: #f4f0e6;
    color: var(--office-deep);
  }
}
@media screen and (max-width: 850px) {
  #root > .public-header #navigation.open {
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
}
