/* Local visual refinement. Scoped to the approved preview; content stays intact. */
body:is(.home-refined,.inner-refined)#top {
  --polish-radius: 16px;
  --polish-control: 10px;
  --polish-ease: cubic-bezier(.2,.65,.3,1);
}

/* A calm sticky surface with the existing navigation size and menu behavior. */
body:is(.home-refined,.inner-refined)#top .site-header {
  background: rgba(255,255,255,.96);
  border-bottom-color: #e7eaec;
  box-shadow: none;
}
@supports (backdrop-filter: blur(16px)) {
  body:is(.home-refined,.inner-refined)#top .site-header {
    background: rgba(255,255,255,.91);
    -webkit-backdrop-filter: saturate(1.1) blur(16px);
    backdrop-filter: saturate(1.1) blur(16px);
  }
}
body:is(.home-refined,.inner-refined).menu-open#top .site-header {
  background: #fff;
  /* Keep the open menu fixed to the viewport. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body:is(.home-refined,.inner-refined)#top .nav-list a { transition: color .18s var(--polish-ease),background-color .18s var(--polish-ease); }

/* Quiet secondary actions; solid copper remains the primary action. */
body:is(.home-refined,.inner-refined)#top :is(.text-link,.home-process-action) {
  min-height: 46px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bronze);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
body:is(.home-refined,.inner-refined)#top :is(.text-link,.home-process-action):hover {
  background: transparent;
  color: #893428;
  text-decoration: underline;
  text-underline-offset: 5px;
}
body:is(.home-refined,.inner-refined)#top :is(.button,.about-project-button,.expo-button,.expo-order-button,.dirani-form button[type=submit],.legal-consent-button) {
  min-height: 48px;
  border-radius: var(--polish-control);
  transition: background-color .18s var(--polish-ease),border-color .18s var(--polish-ease),color .18s var(--polish-ease),transform .15s var(--polish-ease);
}
body:is(.home-refined,.inner-refined)#top :is(.button,.about-project-button,.expo-button,.expo-order-button,.dirani-form button[type=submit]):active { transform: scale(.98); }
body:is(.home-refined,.inner-refined)#top .hero .hero-actions .button-primary { min-height: 48px; padding-inline: 22px; border-radius: var(--polish-control); }
body:is(.home-refined,.inner-refined)#top .hero .hero-actions .button-ghost { border-radius: 0; }

/* Major photographs have a consistent, restrained edge. */
body:is(.home-refined,.inner-refined)#top :is(.furniture-scope-tile,.project-type-card,.project-card,.project-directory-card,.about-project-hero img,.about-project-manufacturing img,.about-project-references img,.contact-project-hero img,.contact-project-proof img,.furniture-page-hero img,.living-catalog-hero-visual img,.expo-concept-grid figure) {
  border-radius: var(--polish-radius);
}
body:is(.home-refined,.inner-refined)#top :is(.contact-form-wrap,.company-manufacturing .company-layout,.expo-visit-panel) { border-radius: var(--polish-radius); }
body:is(.home-refined,.inner-refined)#top .contact-form-wrap { border: 1px solid #e1e7ea; }
body:is(.home-refined,.inner-refined)#top .dirani-form :is(input,select,textarea) { border-radius: var(--polish-control); }
body:is(.home-refined,.inner-refined)#top .dirani-form :is(input,select) { min-height: 48px; }

/* The fixed tools stay available, with less visual weight than the furniture. */
body:is(.home-refined,.inner-refined)#top .contact-rail {
  background: #fff;
  border: 1px solid #e1e7ea;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: #626a70;
  box-shadow: 0 3px 16px rgba(25,35,40,.06);
  overflow: hidden;
}
body:is(.home-refined,.inner-refined)#top .contact-rail a { min-width: 58px; min-height: 56px; border-bottom-color: #e1e7ea; }
body:is(.home-refined,.inner-refined)#top .contact-rail a:last-child { border-bottom: 0; }
body:is(.home-refined,.inner-refined)#top .contact-rail a:hover { background: #a84132; color: #fff; }
body:is(.home-refined,.inner-refined):not(.links-standalone-body)#top .site-footer .footer-legal a { color: #303236; }
body:is(.home-refined,.inner-refined):not(.links-standalone-body)#top .site-footer .footer-legal a:hover { color: #303236; }
body:is(.home-refined,.inner-refined):not(.links-standalone-body)#top .site-footer .footer-legal a:focus-visible { color: #fff; }

body.home-refined#top .hero-inner { text-align: left; }

@media (min-width: 1001px) {
  body:is(.home-refined,.inner-refined)#top :is(main,.site-footer) .container {
    width: min(calc(100% - 160px),var(--page-width,1280px));
  }
  body.home-refined#top .hero { min-height: clamp(560px,64svh,700px); aspect-ratio: auto; }
  body.home-refined#top main .hero .hero-inner { padding-block: 104px; }
  body.home-refined#top .hero h1 { max-width: 100%; font-size: clamp(32px,3.2vw,48px); line-height: 1.12; letter-spacing: -.035em; white-space: normal; text-wrap: wrap; }
  body.home-refined#top .hero-text { max-width: 100%; margin-top: 26px; font-size: clamp(14px,1.25vw,17px); white-space: normal; }
  body.home-refined#top .hero-actions { margin-top: 32px; gap: 26px; }
  body:is(.home-refined,.inner-refined)#top .section { padding-block: 104px; }
  body.home-refined#top .company-manufacturing { padding-block: 80px; }
  body.home-refined#top .company-manufacturing .company-layout { padding: 48px; }
  body.home-refined#top .home-process-section { padding-block: 88px; }
  body.home-refined#top :is(.section-head,.why-work-heading,.home-process-heading) { margin-bottom: 40px; }
  body:is(.home-refined,.inner-refined)#top :is(.why-work-grid,.project-grid,.journal-grid,.about-project-sectors,.about-project-details,.about-project-gallery>div) { gap: 24px; }
  body:is(.home-refined,.inner-refined)#top .why-work-card-copy { padding: 24px; }
  body.inner-refined#top :is(.about-project-section,.contact-project-section) { padding-block: 96px; }
  body.inner-refined#top :is(.about-project-hero-grid,.contact-project-hero-grid) { padding-block: 80px; }
  body.inner-refined#top :is(.about-project-hero,.contact-project-hero,.furniture-page-hero,.solutions-hero,.solution-detail-hero) h1 { font-size: clamp(44px,4vw,56px); }
  body:is(.home-refined,.inner-refined)#top .contact-form-wrap { padding: 36px; }
}

@media (max-width: 700px) {
  body.home-refined#top .section { padding-block: 64px; }
  body.home-refined#top .company-manufacturing { padding-block: 48px; }
  body.home-refined#top .home-process-section { padding-block: 64px; }
  body:is(.home-refined,.inner-refined)#top .contact-form-wrap { padding: 24px; }
  body:is(.home-refined,.inner-refined)#top .why-work-card-copy { padding: 22px; }
}
@media (max-width: 359px) {
  body:is(.home-refined,.inner-refined)#top .contact-form-wrap { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body:is(.home-refined,.inner-refined)#top *,
  body:is(.home-refined,.inner-refined)#top *::before,
  body:is(.home-refined,.inner-refined)#top *::after { transition: none !important; }
  body:is(.home-refined,.inner-refined)#top :is(.button,.about-project-button,.expo-button,.expo-order-button,.dirani-form button[type=submit]):active { transform: none; }
}
