/* Minh Sơn Design — native WordPress content and shared theme chrome. */
:root {
  --ms-copper: #b98573;
  --ms-copper-dark: #875541;
  --ms-ivory: #f6f2ed;
  --ms-ink: #191817;
  --ms-muted: #615a54;
  --ms-line: #d8cec4;
  --th-gold: var(--ms-copper);
  --th-gold-dark: var(--ms-copper-dark);
  --th-bg: var(--ms-ivory);
  --th-ink: var(--ms-ink);
  --th-muted: var(--ms-muted);
}
html { scroll-padding-top: 112px; }
body, #wrapper { background: var(--ms-ivory); color: var(--ms-ink); }
body { font-size: 16px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ms-copper-dark); outline-offset: 5px; }
.th-header, body:not(.home) .th-header, .th-header.is-scrolled, .th-header.header-fixed-top { background: var(--ms-ivory); border-bottom: 1px solid var(--ms-line); box-shadow: none; backdrop-filter: none; }
.th-header__inner { height: 98px; grid-template-columns: 290px 1fr; gap: 20px; }
.th-header__brand { max-width: 290px; gap: 15px; color: var(--ms-ink); text-decoration: none; }
.th-header__brand:is(:hover, :focus-visible, :active) { color: var(--ms-copper-dark); }
.th-header__brand img, .th-header.is-scrolled .th-header__brand img { width: 68px; height: 68px; max-width: 68px; object-fit: contain; filter: none; flex-shrink: 0; }
.ms-brand-wordmark { display: flex; flex-direction: column; gap: 5px; white-space: nowrap; }
.ms-brand-wordmark strong { font: 500 24px/1.15 Georgia, serif; letter-spacing: -.025em; }
.ms-brand-wordmark small { font: 500 10px/1.4 var(--th-sans); letter-spacing: .16em; color: var(--ms-copper-dark); }
.th-menu a, body:not(.home) .th-header:not(.is-scrolled):not(.header-fixed-top) .th-menu a { color: var(--ms-ink); text-shadow: none; font-size: 12px; letter-spacing: .055em; }
.th-header__nav { gap: 22px; }
.th-menu { gap: 21px; }
.th-header__cta { padding-inline: 19px; font-size: 11px; }
.th-footer { background: var(--ms-ink); }
.th-footer__logo { width: 100px; height: 100px; object-fit: contain; }
.th-footer a { overflow-wrap: anywhere; }
.th-footer h3 { color: var(--ms-ivory); }
.th-footer__grid { gap: 36px; }
.th-footer__bottom { border-color: rgba(255,255,255,.18); }
.home .page-title-section, .home .site-breadcrumb, .home .page-header, .home #sidebar { display: none; }
.ms-home { padding-top: 98px; color: var(--ms-ink); background: var(--ms-ivory); font-family: var(--th-sans); overflow: clip; }
.ms-home *, .ms-home *::before, .ms-home *::after { box-sizing: border-box; }
.ms-home h1, .ms-home h2, .ms-home h3 { font-family: var(--th-serif); font-weight: 500; letter-spacing: -.035em; color: var(--ms-ink); margin: 0; }
.ms-home h1 { font-size: clamp(48px, 4.9vw, 76px); line-height: 1.12; }
.ms-home h2 { font-size: clamp(36px, 3.8vw, 56px); line-height: 1.16; }
.ms-home h3 { font-size: 29px; line-height: 1.2; }
.ms-home p { font-size: 16px; line-height: 1.85; padding: 0; color: var(--ms-muted); margin: 22px 0 0; max-width: 65ch; }
.ms-home img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ms-hero { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 650px; max-width: 1600px; margin: 0 auto; }
.ms-hero__copy { padding: clamp(52px, 6.2vw, 100px) clamp(30px, 5vw, 80px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.ms-hero__copy h1 { max-width: 9em; }
.ms-hero__copy > p:not(.ms-kicker) { max-width: 32em; margin-top: 28px; }
.ms-home .ms-kicker { font-size: 12px; line-height: 1.6; font-weight: 600; color: var(--ms-copper-dark); letter-spacing: .11em; margin: 0 0 24px; padding-left: 30px; position: relative; }
.ms-kicker::before { content: ''; position: absolute; left: 0; top: .75em; width: 20px; height: 1px; background: currentColor; }
.ms-hero__visual { min-width: 0; position: relative; }
.ms-hero__visual img { position: absolute; inset: 0; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ms-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 24px; background: var(--ms-ink); border: 1px solid var(--ms-ink); color: #fff; font: 600 13px/1.6 var(--th-sans); letter-spacing: .02em; text-decoration: none; transition: background .2s, color .2s; }
.ms-button:hover { background: var(--ms-copper); border-color: var(--ms-copper); color: var(--ms-ink); text-decoration: none; }
.ms-button--outline { background: transparent; color: var(--ms-ink); border-color: var(--ms-line); }
.ms-button--outline:hover { background: var(--ms-ink); border-color: var(--ms-ink); color: #fff; }
.ms-section { width: min(1240px, calc(100% - 96px)); margin: 0 auto; padding: 110px 0; }
.ms-heading { max-width: 790px; margin-bottom: 48px; }
.ms-heading p { max-width: 57ch; }
.ms-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; }
.ms-services article { border-top: 1px solid var(--ms-copper); padding-top: 26px; }
.ms-services article > img, .ms-services article > figure { height: 270px; margin: 0 0 25px; }
.ms-services article p { font-size: 15px; margin-top: 16px; }
.ms-services article a:not(.ms-button) { color: var(--ms-copper-dark); }
.ms-project { display: grid; grid-template-columns: 1.25fr .75fr; background: #eae3db; }
.ms-project > img, .ms-project > figure { margin: 0; min-height: 580px; }
.ms-project > figure img { height: 100%; }
.ms-project__copy { align-self: center; padding: 64px clamp(30px, 5vw, 80px); }
.ms-project__copy .ms-button { margin-top: 30px; }
.ms-process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; counter-reset: ms-step; }
.ms-process article { border-top: 1px solid var(--ms-line); padding-top: 24px; counter-increment: ms-step; }
.ms-process article h3 { font-size: 25px; }
.ms-process article > span { display: block; color: var(--ms-copper-dark); font-size: 13px; margin-bottom: 24px; }
.ms-process article p { font-size: 15px; margin-top: 14px; }
.ms-contact-band { padding: 76px max(48px, calc((100vw - 1240px) / 2)); background: var(--ms-ink); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ms-contact-band h2 { color: var(--ms-ivory); max-width: 750px; }
.ms-contact-band p { color: #c7bfb6; }
.ms-contact-band .ms-button { background: var(--ms-copper); border-color: var(--ms-copper); color: var(--ms-ink); white-space: nowrap; flex-shrink: 0; }
.ms-contact-band .ms-button:hover { background: var(--ms-ivory); }
body:not(.home) .entry-content, body:not(.home) .page-content { color: var(--ms-ink); }
body:not(.home) .entry-content h1, body:not(.home) .entry-content h2, body:not(.home) .entry-content h3, body:not(.home) .entry-content h4 { color: var(--ms-ink); letter-spacing: -.02em; }
.wpcf7 label { color: var(--ms-ink); font-size: 14px; }
.wpcf7 input:not([type='submit']):not([type='checkbox']):not([type='radio']), .wpcf7 textarea, .wpcf7 select { background: #fff !important; border: 1px solid #a89a8e !important; color: var(--ms-ink) !important; min-height: 48px; border-radius: 0; }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: #6b625a; }
.wpcf7 input[type='submit'] { background: var(--ms-ink); color: #fff; min-height: 50px; }
.wpcf7-not-valid-tip { color: #a02d23; }
@media (max-width: 1200px) {
  .th-header__inner { grid-template-columns: 250px 1fr; }
  .th-header__nav { gap: 15px; }
  .th-menu { gap: 14px; }
  .ms-brand-wordmark strong { font-size: 22px; }
}
@media (max-width: 1100px) {
  .th-header__inner { height: 86px; }
  .th-menu-toggle { border-color: #a89a8e; background: transparent; }
  .th-menu-toggle span, .th-header.is-scrolled .th-menu-toggle span { background: var(--ms-ink); }
  .th-header__nav .th-menu a, body:not(.home) .th-header .th-header__nav .th-menu a { color: var(--ms-ivory); }
  .th-header__nav .th-menu { gap: 20px; }
  .th-header__nav .th-menu a { font-size: 17px; }
  .ms-home { padding-top: 86px; }
  .ms-hero { min-height: 600px; }
  .ms-hero__copy { padding: 48px 32px; }
  .ms-section { width: calc(100% - 64px); padding-block: 82px; }
  .ms-services { gap: 24px; }
  .ms-process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .ms-contact-band { padding: 64px 32px; }
}
@media (max-width: 760px) {
  html { font-size: 16px; scroll-padding-top: 94px; }
  .th-header__inner { height: 80px; width: calc(100% - 36px); grid-template-columns: 1fr 48px; gap: 12px; }
  .th-header__brand { gap: 11px; }
  .th-header__brand img { width: 56px; height: 56px; max-width: 56px; }
  .ms-brand-wordmark strong { font-size: 22px; }
  .ms-brand-wordmark small { font-size: 8px; letter-spacing: .12em; }
  .ms-home { padding-top: 80px; }
  .ms-home h1 { font-size: clamp(43px, 11vw, 66px); line-height: 1.14; }
  .ms-home h2 { font-size: clamp(34px, 8.6vw, 45px); line-height: 1.18; }
  .ms-home h3 { font-size: 27px; }
  .ms-home p { font-size: 15px; line-height: 1.8; }
  .ms-hero { grid-template-columns: 1fr; min-height: 0; }
  .ms-hero__copy { padding: 46px 24px 40px; }
  .ms-hero__copy h1 { max-width: 10em; }
  .ms-hero__copy > p:not(.ms-kicker) { margin-top: 22px; }
  .ms-home .ms-kicker { font-size: 11px; margin-bottom: 20px; }
  .ms-hero__visual { height: 340px; }
  .ms-hero__visual img { object-position: center; }
  .ms-actions { margin-top: 26px; gap: 10px; width: 100%; }
  .ms-button { font-size: 12px; padding-inline: 18px; }
  .ms-section { width: calc(100% - 48px); padding-block: 66px; }
  .ms-heading { margin-bottom: 32px; }
  .ms-services { grid-template-columns: 1fr; gap: 32px; }
  .ms-services article { padding-top: 22px; }
  .ms-services article > img, .ms-services article > figure { height: 260px; }
  .ms-project { grid-template-columns: 1fr; }
  .ms-project > img, .ms-project > figure { min-height: 0; height: 350px; }
  .ms-project__copy { padding: 42px 24px 48px; }
  .ms-process { gap: 28px 22px; }
  .ms-process article h3 { font-size: 23px; }
  .ms-process article p { font-size: 14px; }
  .ms-contact-band { padding: 48px 24px; flex-direction: column; align-items: flex-start; gap: 28px; }
  .th-footer__grid { gap: 32px; }
  .th-footer { padding-bottom: 25px; }
  .th-inquiry { top: 80px; }
  .th-inquiry__panel { max-height: calc(100svh - 80px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Supplied circular mark: clip only the white outside corners, preserve the artwork. */
.th-header__brand img,.th-footer__logo { border-radius:50%; }
.ms-hero__visual > .wp-block-image { margin:0; height:100%; }
.ms-actions > p { margin:0!important; }
.ms-project > .wp-block-image { align-self:stretch; }
.ms-project > .wp-block-image img { width:100%;height:100%;object-fit:cover; }
.ms-section > .wp-block-image { margin:36px 0; }
.ms-section > .wp-block-image img { height:auto; }
.ms-project__copy h2 a { color:inherit; }
.ms-contact-band .ms-button--outline { color:var(--ms-ivory);border-color:var(--ms-copper); }
.ms-contact-band .ms-button { background:var(--ms-copper);color:var(--ms-ink);border-color:var(--ms-copper); }
.ms-contact-band .ms-button--outline { background:transparent;color:var(--ms-ivory); }
.th-footer__brand { display:flex;align-items:center;gap:18px;margin-bottom:24px; }
.th-footer__brand strong { color:var(--ms-ivory);font:500 28px/1.2 Georgia,serif; }
.th-footer__tagline { color:var(--ms-copper)!important;font-size:11px!important;letter-spacing:.1em; }
.th-footer__social { display:flex;gap:20px;margin-top:22px; }
.th-footer__contact a { display:inline;color:var(--ms-ivory); }
.th-footer__contact .th-footer__phone { display:block;font-size:22px; }
.th-footer__links { display:flex;flex-direction:column;gap:10px; }
.th-footer__links h3 { margin-bottom:10px; }
@media(max-width:767px){.ms-hero__visual > .wp-block-image{min-height:360px}.ms-hero__visual img{position:absolute}.th-footer__brand{gap:14px}.ms-project>.wp-block-image{min-height:0;height:320px}.ms-project>.wp-block-image img{height:320px}}
/* Classic themes add one native Group inner container; keep the authored grid intact. */
.ms-home .wp-block-group__inner-container { display:contents; }
.ms-home .ms-actions { gap:12px; }
.ms-services > .wp-block-group { border-top:1px solid var(--ms-copper);padding-top:26px; }
.ms-process > .wp-block-group { border-top:1px solid var(--ms-line);padding-top:24px; }
.ms-home .ms-hero__visual { margin-top:0; }
.admin-bar .th-header { top:32px; }
@media(max-width:1100px){
 .th-header__nav{background:var(--ms-ivory);visibility:hidden;pointer-events:none;}
 .th-header__nav.is-open{visibility:visible;pointer-events:auto;}
 .th-header__nav .th-menu a,.th-header__nav .th-menu-close{color:var(--ms-ink)!important;}
 .th-header__nav .th-header__cta{color:var(--ms-ink);}
}
@media(max-width:782px){.admin-bar .th-header{top:46px}.admin-bar .ms-home{padding-top:126px}.th-mobile-cta a,.th-mobile-cta button{font-size:12px;padding:12px;line-height:1.4;white-space:nowrap}.th-header__nav{padding-top:90px}}
.ms-contact-band{display:block}
.ms-contact-band .ms-kicker{color:var(--ms-copper);margin-bottom:20px}
.ms-contact-band h2{margin:0 0 24px}
.ms-contact-band p{max-width:65ch}
.ms-process .wp-block-group h3{font-size:25px}
.ms-process .wp-block-group p:not(.ms-kicker){font-size:15px}
.th-header{transform:none!important}
.th-footer h3{font:500 23px/1.3 var(--th-serif);letter-spacing:0;margin-bottom:20px}
.th-footer__contact a{display:block;margin-bottom:9px}
.th-footer__contact address{font-style:normal;line-height:1.8;margin-top:18px;color:#c7bfb6}
.th-footer__identity{border-color:var(--ms-copper)}
.th-footer{border-color:var(--ms-copper)}
.page-scroll-up a,.btn-frame i{background:var(--ms-copper)!important}
.th-header{top:0!important}
.admin-bar .th-header{top:32px!important}
@media(max-width:782px){.admin-bar .th-header{top:46px!important}}

/* Let the material and lighting in Minh Sơn's project photos carry the service pages. */
.th-services-hero h2 {
  max-width: 16ch;
  color: #fff;
  font: 500 clamp(42px, 6.2vw, 86px)/1.12 var(--th-serif);
}
.th-service-row__content small { color: var(--ms-copper-dark); margin-bottom: 12px; }
.th-service-row__content h3 { font: 500 clamp(30px, 4vw, 54px)/1.14 var(--th-serif); }
.th-service-row__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ms-service-photo { width: min(1240px, calc(100% - 48px)); margin: 38px auto 0; }
.ms-service-photo img { height: clamp(240px, 43vw, 560px); object-fit: cover; }
.ms-service-photo figcaption { margin-top: 12px; font-size: 13px; color: var(--ms-muted); }
.ms-service-detail .ms-section { padding-block: clamp(36px, 6vw, 90px); }
.ms-service-detail .ms-section > p { max-width: 68ch; }
@media (max-width: 760px) {
  .th-service-row__image { aspect-ratio: 16 / 10; }
  .th-service-row:nth-child(even) .th-service-row__image { order: 0; }
  .ms-home .ms-section { overflow-wrap: anywhere; }
}

/* Shared reading contrast and the news archive's independent layout. */
:root { --ms-muted: #4b433e; --ms-copper-dark: #734637; }
.ms-home a:not(.ms-button):not(.th-btn) { color: var(--ms-copper-dark); }
.ms-home .ms-contact-band a:not(.ms-button),
.th-footer p, .th-footer a, .th-footer__bottom { color: #eee3da; }
.ms-news .ms-section { padding-block: clamp(40px, 6vw, 88px); }
.ms-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.ms-news-card { min-width: 0; border: 1px solid var(--ms-line); background: #fffaf5; }
.ms-news-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.ms-news-card__image img { width: 100%; height: 100%; object-fit: cover; }
.ms-news-card__body { padding: 24px; overflow-wrap: anywhere; }
.ms-news-card__body h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.23; }
.ms-news .ms-news-card__body h2 a { color: var(--ms-ink); }
.ms-news-card__body p { margin-top: 12px; }
.ms-news-pagination { margin-top: 36px; }
.ms-news-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ms-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--ms-line);
  background: #fffaf5;
  white-space: nowrap;
}
.ms-news-pagination .page-numbers.current { background: var(--ms-ink); color: white; }
.ms-news-pagination a.page-numbers:hover { background: #eee3da; }
@media (max-width: 1024px) { .ms-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ms-news-grid { grid-template-columns: minmax(0, 1fr); }
  .ms-news-card__body { padding: 20px; }
  .th-footer { padding-bottom: 88px; }
  .box-action { display: none; }
}

.ms-blog-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-block: 32px;
}
.ms-blog-gallery figure { margin: 0; aspect-ratio: 4 / 3; }
.ms-blog-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .ms-blog-gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Homepage: frame the project photo like a portfolio spread. */
.ms-front .ms-hero {
  width: min(1440px, calc(100% - 64px));
  margin: 32px auto 0;
  min-height: 0;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  background: #eae0d5;
}
.ms-front .ms-hero__copy { padding: clamp(32px, 5vw, 76px); }
.ms-front .ms-hero__copy h1 { font-size: clamp(42px, 5vw, 76px); max-width: none; }
.ms-front .ms-hero__visual { min-height: clamp(440px, 46vw, 630px); }
.ms-front .ms-hero__visual img { object-position: 58% center; }
.ms-front .ms-actions { flex-wrap: wrap; }
.ms-front .ms-section { padding-block: clamp(56px, 7vw, 108px); }
.ms-front .ms-project { width: min(1440px, calc(100% - 64px)); margin-inline: auto; }
.ms-front .ms-contact-band { border-top: 4px solid var(--ms-copper); }
@media (max-width: 760px) {
  .ms-front .ms-hero, .ms-front .ms-project { width: calc(100% - 32px); }
  .ms-front .ms-hero { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .ms-front .ms-hero__copy { padding: 32px 24px; }
  .ms-front .ms-hero__copy h1 { font-size: clamp(34px, 9vw, 52px); }
  .ms-front .ms-hero__visual,
  .ms-front .ms-hero__visual > .wp-block-image { min-height: 0; height: clamp(230px, 65vw, 360px); }
}

/* Full-width project gallery with a stable, editable headline. */
.ms-front .ms-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: clamp(600px, 78svh, 860px);
  margin: 0;
  background: #201b18;
}
.ms-front .ms-hero__visual,
.ms-front .ms-hero__visual > .wp-block-image {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
}
.ms-front .ms-hero__visual { z-index: -2; }
.ms-front .ms-hero__visual img[hidden] { display: none; }
.ms-front .ms-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(22,17,14,.93), rgba(22,17,14,.68) 48%, rgba(22,17,14,.16));
}
.ms-front .ms-hero__copy {
  padding: clamp(48px, 7vw, 110px) max(32px, calc((100% - 1240px) / 2));
  padding-bottom: max(104px, 8vw);
}
.ms-front .ms-hero__copy h1 { color: #fffaf5; max-width: 12ch; }
.ms-front .ms-hero__copy p { color: #fffaf5; }
.ms-front .ms-hero__copy .ms-button { background: #fffaf5; color: #201b18; border-color: #fffaf5; }
.ms-front .ms-hero__copy .ms-button--outline { background: transparent; color: #fffaf5; }
.ms-hero-controls {
  position: absolute;
  right: max(24px, calc((100% - 1240px) / 2));
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  color: #fffaf5;
  background: #201b18;
}
.ms-hero-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 1px solid #b98573;
  font-size: 21px;
}
.ms-hero-controls button:hover { background: #fffaf5; color: #201b18; }
.ms-hero-controls button:focus-visible { outline-color: #fffaf5; outline-offset: 2px; }
.ms-hero-status { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .ms-front .ms-hero { min-height: 560px; }
  .ms-front .ms-hero__copy { padding: 44px 24px 108px; }
  .ms-front .ms-hero::before { background: rgba(22,17,14,.70); }
}

.ms-front .ms-hero__visual .ms-hero-slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.ms-front .ms-hero__visual .ms-hero-slide.is-current { opacity: 1; }
.ms-front .ms-hero::before {
  background: linear-gradient(90deg, rgba(22,17,14,.86), rgba(22,17,14,.53) 50%, rgba(22,17,14,.10));
}
.ms-hero-controls { gap: 8px; border-radius: 4px; background: rgba(32,27,24,.88); }
.ms-hero-controls button { border-color: rgba(255,250,245,.44); }
@media (max-width: 760px) {
  .ms-front .ms-hero::before { background: linear-gradient(90deg, rgba(22,17,14,.84), rgba(22,17,14,.57)); }
}
@media (prefers-reduced-motion: reduce) {
  .ms-front .ms-hero__visual .ms-hero-slide { transition: none; }
}

/* Homepage portfolio chapters below the hero. */
.ms-front #dich-vu {
  width: min(1240px, calc(100% - 64px));
  padding-block: clamp(64px, 8vw, 120px);
}
.ms-front #dich-vu .ms-heading { max-width: 920px; }
.ms-front #dich-vu h2 { max-width: 24ch; }
.ms-front .ms-services {
  gap: 0;
  border-block: 1px solid var(--ms-line);
}
.ms-front .ms-services .wp-block-group {
  min-width: 0;
  border-top: 0;
  padding: clamp(24px, 3vw, 44px);
}
.ms-front .ms-services .wp-block-group + .wp-block-group { border-inline-start: 1px solid var(--ms-line); }
.ms-front .ms-services .ms-kicker { display: none; }
.ms-front #du-an { padding-block: clamp(24px, 4vw, 64px); background: #e8ddd1; }
.ms-front .ms-project {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  background: #26201c;
}
.ms-front .ms-project > .wp-block-image { min-height: clamp(440px, 45vw, 620px); }
.ms-front .ms-project__copy h2 { color: #fffaf5; }
.ms-front .ms-project__copy p { color: #ede1d6; }
.ms-front .ms-project__copy .ms-button { background: #f6f2ed; color: #26201c; }
.ms-front .ms-process { gap: 18px; }
.ms-front .ms-process .wp-block-group {
  min-width: 0;
  padding: 24px 20px;
  background: #eee5dc;
  border-top: 2px solid var(--ms-copper);
}
:is(.ms-front, .ms-page, .th-services-page) #bao-gia.ms-contact-band {
  text-align: center;
  padding-block: clamp(64px, 8vw, 112px);
}
:is(.ms-front, .ms-page, .th-services-page) #bao-gia.ms-contact-band :is(h2, p) { margin-inline: auto; }
:is(.ms-front, .ms-page, .th-services-page) #bao-gia.ms-contact-band .ms-actions { justify-content: center; }
@media (max-width: 760px) {
  .ms-front #dich-vu { width: calc(100% - 40px); }
  .ms-front .ms-services .wp-block-group { padding-inline: 0; }
  .ms-front .ms-services .wp-block-group + .wp-block-group {
    border-inline-start: 0;
    border-top: 1px solid var(--ms-line);
  }
  .ms-front .ms-project { grid-template-columns: minmax(0, 1fr); }
  .ms-front .ms-project > .wp-block-image { min-height: 0; height: clamp(240px, 70vw, 360px); }
  .ms-front .ms-process .wp-block-group { padding: 18px 14px; }
}
@media (max-width: 380px) {
  .ms-front .ms-process { grid-template-columns: minmax(0, 1fr); }
}

:is(.ms-front, .ms-page, .th-services-page) #bao-gia.ms-contact-band {
  background: linear-gradient(rgba(25, 20, 17, .78), rgba(25, 20, 17, .86)),
    url("../../../../uploads/minhson/long-an-interior.jpg") center 54% / cover no-repeat;
}
:is(.ms-front, .ms-page, .th-services-page) #bao-gia.ms-contact-band p { color: #fffaf5; }

/* Keep foreground and background paired when legacy hover rules apply. */
.ms-home a:not(.ms-button):not(.th-btn):not(.ms-portfolio-card > a):is(:hover, :focus-visible),
.th-service-catalog .th-service-row__content a:is(:hover, :focus-visible),
.th-header .th-menu > li > a:is(:hover, :focus-visible) {
  color: var(--ms-copper-dark);
  text-decoration: underline !important;
  text-underline-offset: .2em;
}
.ms-home .ms-project__copy a:not(.ms-button):is(:hover, :focus-visible),
.ms-home .ms-contact-band a:not(.ms-button):is(:hover, :focus-visible),
.th-footer a:is(:hover, :focus-visible) {
  color: #fffaf5;
  text-decoration: underline !important;
  text-underline-offset: .2em;
}
.ms-home .ms-contact-band a.ms-button:is(:hover, :focus-visible),
.ms-front .ms-hero__copy a.ms-button:is(:hover, :focus-visible),
.ms-front .ms-project__copy a.ms-button:is(:hover, :focus-visible) {
  background: #fffaf5;
  border-color: #fffaf5;
  color: var(--ms-ink);
}

.ms-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}
.ms-style-card { min-width: 0; background: #fffaf5; border-bottom: 2px solid var(--ms-copper); }
.ms-style-guide .ms-style-card > img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.ms-style-copy { padding: clamp(20px, 3vw, 34px); }
.ms-style-copy .ms-style-note { color: var(--ms-copper-dark); font-weight: 600; margin-top: 10px; }
.ms-style-copy p { margin-top: 14px; }
.ms-style-material {
  margin-top: clamp(36px, 6vw, 72px);
  padding: clamp(24px, 5vw, 56px);
  background: #eae0d5;
  border-inline-start: 3px solid var(--ms-copper);
}
.ms-style-material .ms-button { margin-top: 22px; }
@media (max-width: 900px) {
  .ms-style-grid { grid-template-columns: minmax(0, 1fr); }
  .ms-style-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ms-style-guide .ms-style-card > img { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 600px) {
  .ms-style-card { display: block; }
  .ms-style-guide .ms-style-card > img { height: auto; aspect-ratio: 4 / 3; }
}

.ms-service-spread {
  width: min(1360px, calc(100% - 64px));
  margin: clamp(24px, 4vw, 56px) auto clamp(56px, 7vw, 96px);
  background: #eee5dc;
}
.ms-service-spread.has-photo {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.ms-service-spread .ms-service-photo {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  background: #26201c;
}
.ms-service-spread .ms-service-photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.ms-service-spread .ms-service-photo figcaption { margin: 0; padding: 12px 20px; color: #fffaf5; }
.ms-service-story { min-width: 0; padding: clamp(28px, 5vw, 68px); align-self: center; }
.ms-service-story .ms-section { width: 100%; padding: 24px 0 0; }
.ms-service-story h1 { font-size: clamp(34px, 4.5vw, 66px); line-height: 1.12; }
.ms-service-story .ms-button { margin-top: 10px; }
.ms-service-back { display: inline-block; font-size: 14px; font-weight: 600; }
@media (max-width: 820px) {
  .ms-service-spread { width: calc(100% - 32px); }
  .ms-service-spread.has-photo { grid-template-columns: minmax(0, 1fr); }
  .ms-service-story { grid-row: 1; }
  .ms-service-spread .ms-service-photo img { height: clamp(240px, 60vw, 420px); min-height: 0; }
}

.ms-service-expanded { margin-block: 28px; border-top: 1px solid var(--ms-line); }
.ms-service-expanded h2 { margin-top: 24px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; }
.ms-service-expanded p { margin-top: 8px; }

.th-menu > :is(.current-menu-item, .current-menu-ancestor, .current-menu-parent) > a {
  color: var(--ms-copper-dark);
  text-decoration: underline !important;
  text-underline-offset: .5em;
}
.th-menu .sub-menu .current-menu-item > a {
  background: #f6f2ed;
  color: var(--ms-ink) !important;
  font-weight: 700;
}
@media (max-width: 1100px) {
  .th-header__nav .th-menu .sub-menu a { color: var(--ms-ink) !important; }
  .th-header__nav .th-menu .sub-menu .current-menu-item > a {
    background: #eae0d5;
    text-decoration: underline !important;
    text-underline-offset: .25em;
  }
}

.ms-service-detail .ms-service-gallery { padding-top: 0; }
.ms-service-gallery .ms-blog-gallery figure { margin: 0; overflow: hidden; }
.ms-service-gallery .ms-blog-gallery figure:only-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.ms-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
  width: min(1240px, calc(100% - 64px));
  margin: clamp(32px, 6vw, 84px) auto;
}
.ms-contact-layout > .ms-section { width: 100%; min-width: 0; padding: 0; }
.ms-contact-page h1 { font-size: clamp(38px, 4.8vw, 66px); }
.ms-contact-page .ms-heading { margin-bottom: 28px; }
.ms-contact-page .ms-services { grid-template-columns: minmax(0, 1fr); gap: 0; }
.ms-contact-page .ms-services .wp-block-group { border-top: 1px solid var(--ms-line); padding-block: 22px; }
.ms-contact-page .ms-services h3 { font-size: 24px; }
.ms-contact-page .ms-services p { margin-top: 10px; overflow-wrap: anywhere; }
.ms-contact-page .ms-services .ms-button { min-height: 44px; padding: 10px 16px; }
.ms-contact-layout > .ms-section:last-child {
  background: #fffaf5;
  border: 1px solid var(--ms-line);
  border-top: 4px solid var(--ms-copper);
  padding: clamp(24px, 4vw, 48px);
}
.ms-contact-page h2 { font-size: clamp(30px, 3.3vw, 44px); }
.ms-contact-page .wpcf7 { margin-top: 28px; }
.ms-contact-page .wpcf7 label { display: block; }
.ms-contact-page .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.ms-contact-page .wpcf7 textarea { min-height: 124px; resize: vertical; }
@media (max-width: 820px) {
  .ms-contact-layout { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); }
}

.th-footer .th-footer__links { gap: 4px; }
.th-footer .th-footer__links h3 { margin-bottom: 8px; }
.th-footer .th-footer__links a { margin: 0; padding-block: 3px; line-height: 1.5; }

.ms-home .ms-blog-cta { background: #29201b; padding-block: clamp(40px, 6vw, 76px); }
.ms-blog-cta__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.ms-home .ms-blog-cta h2 { color: #fffaf5; font-size: clamp(30px, 4vw, 52px); }
.ms-home .ms-blog-cta p { color: #eee3da; margin-top: 12px; }
.ms-blog-cta .ms-button { background: #fffaf5; color: #201b18; border-color: #fffaf5; }
.ms-blog-cta .ms-button:is(:hover, :focus-visible) { background: #eae0d5; color: #201b18; }

.ms-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 3vw, 32px);
}
.ms-portfolio-card { border: 1px solid var(--ms-line); }
.ms-portfolio-card a { display: block; height: 100%; color: var(--ms-ink); }
.ms-portfolio-card a:is(:hover, :focus-visible) { color: var(--ms-ink); }
.ms-portfolio-card a:is(:hover, :focus-visible),
.ms-portfolio-card a:is(:hover, :focus-visible) * { text-decoration: none !important; }
.ms-portfolio-card a:is(:hover, :focus-visible) h3 { color: var(--ms-copper-dark); }
.ms-portfolio-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ms-portfolio-card__copy { padding: clamp(18px, 3vw, 32px); }
.ms-portfolio-card span { color: var(--ms-copper-dark); }

.ms-portfolio .ms-portfolio__heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  border-block-start: 1px solid var(--ms-line);
  padding-block: 24px;
}
.ms-portfolio .ms-portfolio__heading h2,
.ms-portfolio .ms-portfolio__heading p { margin: 0; padding: 0; }
.ms-portfolio .ms-portfolio__heading p { color: var(--ms-copper-dark); }
.ms-portfolio-card { background: #fbf7f2; }
.ms-portfolio-card a { display: flex; flex-direction: column; }
.ms-portfolio-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #28201c;
}
.ms-portfolio-card__media span { color: #f2c7b2; font: 24px Georgia, serif; }
.ms-portfolio-card__media img { height: 100%; }
.ms-portfolio-card__copy { display: flex; flex-direction: column; flex: 1; gap: 12px; }
.ms-portfolio-card__copy p { color: var(--ms-copper-dark); font-size: .85rem; margin: 0; padding: 0; }
.ms-home .ms-portfolio-card__copy h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 0; }
.ms-portfolio-card__copy > span { margin-top: auto; padding-top: 12px; }
@media (min-width: 900px) {
  .ms-portfolio-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ms-portfolio-card { grid-column: span 2; }
  .ms-portfolio-card:nth-child(-n+2) { grid-column: span 3; }
  .ms-portfolio-card:nth-child(-n+2) .ms-portfolio-card__media { aspect-ratio: 16 / 10; }
}

.ms-home .ms-project-index-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(350px, 48vw, 640px);
  padding: clamp(28px, 7vw, 100px);
  background: #27201c;
  color: #fff7ef;
}
.ms-project-index-hero > img,
.ms-project-index-hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ms-project-index-hero > img { object-fit: cover; z-index: -2; }
.ms-project-index-hero::before {
  content: "";
  z-index: -1;
  background: linear-gradient(15deg, #191310 5%, #19131096 52%, #19131020 100%);
}
.ms-home .ms-project-index-hero h1 {
  color: inherit;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1.06;
  margin: .15em 0;
}
.ms-home .ms-project-index-hero p { color: inherit; max-width: 48ch; padding: 0; }
.ms-project-index-hero p:first-child { letter-spacing: .16em; font-size: .8rem; }

.ms-portfolio-card {
  min-width: 0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgb(40 32 28 / 5%);
}
.ms-portfolio-card__media { border-radius: 7px 7px 0 0; }
.ms-portfolio-card__copy h3 { color: inherit; overflow-wrap: anywhere; }
.ms-portfolio-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--ms-line);
  font-size: .875rem;
  font-weight: 600;
}
.ms-portfolio-card__action span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ms-ink);
  color: var(--ms-ivory);
}
.ms-portfolio-card:focus-within { border-color: var(--ms-copper-dark); }
@media (hover: hover) {
  .ms-portfolio-card:hover {
    border-color: var(--ms-copper-dark);
    box-shadow: 0 14px 30px rgb(40 32 28 / 13%);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ms-portfolio-card__copy h3 { transition: color .25s ease; }
  .ms-portfolio-card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
  .ms-portfolio-card__media img,
  .ms-portfolio-card__action span { transition: transform .35s ease; }
  @media (hover: hover) {
    .ms-portfolio-card:hover { transform: translateY(-4px); }
    .ms-portfolio-card:hover .ms-portfolio-card__media img { transform: scale(1.05); }
    .ms-portfolio-card:hover .ms-portfolio-card__action span { transform: rotate(12deg); }
  }
}

