@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: optional;
}

@font-face {
  font-family: "Noto Serif Thai";
  src: url("/assets/fonts/noto-serif-thai.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0E01-0E5B, U+25CC;
}

.homepage {
  --ink: #202e25;
  --paper: #f6f3eb;
  --blue: #365044;
  --lime: #e8d9b9;
  --line: #f6f3eb35;
  --limestone: #eae3d5;
  --muted-ink: #4c5549;
  --rule: #c9c3b5;
  --gold-ink: #725634;
  --forest: #233a30;
  --night: #192922;
  --display: "Instrument Serif", Georgia, serif;
  --display-weight: 400;
  --page-gutter: max(clamp(24px, 6.25vw, 112px), calc((100vw - 1440px) / 2));
  --header-height: 82px;
  --section-space: clamp(64px, 8.4vw, 142px);
  background: var(--paper);
  color: var(--ink);
}

html[lang="th"] .homepage {
  --display: "Noto Serif Thai", "Noto Sans Thai", Georgia, serif;
  --display-weight: 500;
}

.homepage :is(h1, h2, h3) {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: -.015em;
  text-wrap: balance;
}

.homepage .section {
  padding: var(--section-space) var(--page-gutter);
}

.homepage .section h2 {
  margin: 0;
  font-size: clamp(2.9rem, 5.15vw, 5.55rem);
  line-height: .99;
}

html[lang="th"] .homepage .section h2 {
  font-size: clamp(2.2rem, 3.85vw, 4.35rem);
  line-height: 1.35;
}

.homepage .section p {
  line-height: 1.75;
}

.homepage .button {
  justify-content: center;
  min-height: 50px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
  transition: background-color .24s, color .24s, border-color .24s;
}

.homepage .button:hover {
  transform: none;
  background: var(--blue);
  box-shadow: none;
}

.homepage :is(a, button, summary, input, select):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.homepage .button:focus-visible {
  outline-color: var(--ink);
}

.homepage .hero .button:focus-visible,
.homepage .mobile-contact a:focus-visible {
  outline-color: var(--paper);
}

.homepage :is(.decision-link, .text-link, .hero-rates) {
  min-height: 44px;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}

/* The header sits over the photograph and becomes opaque as the page scrolls. */
.homepage .header {
  height: var(--header-height);
  margin-bottom: calc(-1 * var(--header-height));
  padding: 0 var(--page-gutter);
  gap: clamp(20px, 3vw, 54px);
  color: var(--paper);
  background: var(--night);
  border-color: var(--line);
  backdrop-filter: none;
  transition: background-color .28s ease;
}

.homepage .header-at-top {
  background: #15201a99;
}

.homepage .reading-progress {
  height: 2px;
  background: #b6a07c;
}

.homepage .brand {
  gap: 10px;
  flex-shrink: 0;
}

.homepage .brand img {
  width: 39px;
  height: 36px;
}

.homepage .brand > span {
  font-family: Manrope, Arial, sans-serif;
  font-size: 1.19rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.13;
}

.homepage .brand small {
  margin-top: 4px;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .16em;
}

.homepage .header #navigation {
  gap: clamp(15px, 2.25vw, 35px);
  font-size: .86rem;
  font-weight: 600;
}

.homepage .header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.homepage .header nav a:hover,
.homepage .header nav a.active {
  color: var(--lime);
}

.homepage .language-switch {
  border: 0;
  padding: 0;
  gap: 1px;
}

.homepage .language-switch a {
  width: 31px;
  min-height: 44px;
  border-radius: 0;
  color: inherit;
  font-size: .72rem;
  text-underline-offset: .4em;
}

.homepage .language-switch a[aria-current="true"] {
  color: var(--lime);
  background: transparent;
  text-decoration: underline;
}

.homepage .hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-height) + 100px) var(--page-gutter) clamp(96px, 12svh, 135px);
  gap: 0;
  background: var(--night);
  color: var(--paper);
}

.homepage .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: -1;
  animation: none;
}

.homepage .hero-scene {
  border-radius: 0;
  background: var(--night);
}

.homepage .hero-scene img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-position: 50% 22%;
  animation: none;
  will-change: auto;
}

.homepage .hero-scene::after {
  background:
    linear-gradient(0deg, #101c16eb 0%, #13201945 48%, #121b1600 74%),
    linear-gradient(90deg, #121b16d6, #11191252 53%, #1119120f 92%);
}

.homepage .hero-content {
  max-width: 860px;
  padding: 0;
}

.homepage .hero-kicker,
.homepage .fieldwork-label,
.homepage .section .eyebrow,
.homepage .premium-sample-label,
.homepage .contact-time {
  color: var(--gold-ink);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.5;
}

.homepage .hero-kicker {
  margin: 0 0 clamp(14px, 2.4vh, 26px);
  color: var(--lime);
}

.homepage #hero-title {
  font-size: clamp(4.7rem, 7.75vw, 8.5rem);
  line-height: .94;
  letter-spacing: -.022em;
}

.homepage .title-line {
  overflow: visible;
  padding: 0;
  margin: 0;
}

.homepage .title-line > .hero-title-villas {
  display: inline;
}

.homepage #hero-title em {
  color: #f0dfb9;
  font-style: italic;
  font-weight: var(--display-weight);
}

.homepage .hero-description {
  max-width: 46ch;
  margin-top: 24px;
  color: #fffaf0;
  font-size: clamp(.98rem, 1.2vw, 1.13rem);
  line-height: 1.65;
}

.homepage .hero-actions {
  display: flex;
  gap: 12px 26px;
  margin-top: 24px;
}

.homepage .hero-contact {
  background: var(--lime);
  color: var(--ink);
}

.homepage .hero-contact:hover {
  background: var(--paper);
  color: var(--ink);
}

.homepage .hero-rates {
  color: var(--paper);
}

.homepage .hero-image-caption,
.homepage .hero .motion-toggle {
  position: absolute;
  right: var(--page-gutter);
  color: #fffbf2;
  font-size: .75rem;
}

.homepage .hero-image-caption {
  bottom: 69px;
  letter-spacing: .075em;
}

.homepage .hero .motion-toggle {
  bottom: 16px;
  display: flex;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 0 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.homepage .hero .motion-toggle:hover {
  text-decoration: underline;
  text-underline-offset: .3em;
}

.homepage .hero .pause-icon {
  font-size: 1rem;
}

.homepage .hero .pause-icon::before {
  content: "Ⅱ";
}

.homepage .hero .motion-toggle[aria-pressed="true"] .pause-icon::before {
  content: "▷";
}

.homepage .decision-intro {
  max-width: 31rem;
  margin: 0;
}

.homepage .decision-intro p {
  max-width: 37ch;
  margin-top: 18px;
  color: var(--muted-ink);
}

.homepage .decision-intro a {
  margin-top: 16px;
}

.homepage .decision-services {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(36px, 8vw, 128px);
}

.homepage .decision-grid-services {
  display: block;
  border-bottom: 1px solid var(--rule);
}

.homepage .decision-grid-services article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: baseline;
  gap: 8px 20px;
  padding: 23px 0;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}

.homepage .decision-grid-services h3,
.homepage .decision-rates h3,
.homepage .simulator-callout h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.5vw, 2.5rem);
  line-height: 1.07;
  text-wrap: initial;
}

.homepage .decision-grid-services p {
  color: var(--muted-ink);
}

.homepage .fieldwork {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(40px, 7vw, 112px);
  padding-left: 0;
  background: var(--forest);
  color: var(--paper);
}

.homepage .fieldwork-photo {
  overflow: hidden;
  background: var(--night);
}

.homepage .fieldwork-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: 48% center;
}

.homepage .fieldwork-label {
  margin-bottom: 16px;
  color: var(--lime);
}

.homepage .fieldwork-copy h2 {
  max-width: 12ch;
}

.homepage .fieldwork-copy dl {
  margin: clamp(24px, 3vw, 42px) 0 10px;
}

.homepage .fieldwork-copy dl div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.homepage .fieldwork-copy dt {
  font-weight: 750;
}

.homepage .fieldwork-copy dd {
  margin: 2px 0 0;
  color: #e6e9df;
  font-size: .925rem;
}

.homepage .fieldwork-copy a {
  color: var(--lime);
}

.homepage .decision-pricing {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 18px clamp(38px, 7vw, 110px);
  background: var(--limestone);
}

.homepage .decision-pricing .decision-intro {
  grid-row: span 3;
}

.homepage .decision-rates {
  gap: 0;
  border-block: 1px solid var(--rule);
}

.homepage .decision-rates article {
  padding: 6px clamp(14px, 3vw, 44px) 24px 0;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.homepage .decision-rates .decision-rate-featured {
  padding-inline: clamp(14px, 3vw, 44px) 0;
  border-left: 1px solid var(--rule);
}

.homepage .decision-rates .decision-rate {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(4.5rem, 8.3vw, 9rem);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.035em;
  line-height: .98;
}

.homepage .decision-rates .decision-rate-featured .decision-rate {
  color: var(--gold-ink);
}

.homepage .decision-rates h3 {
  margin: 8px 0;
}

.homepage .decision-rates article p:not(.decision-rate),
.homepage .decision-note {
  margin-top: 0;
  color: var(--muted-ink);
}

.homepage .decision-actions {
  margin-top: 0;
}

.homepage .simulator-callout {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 36px;
  margin: clamp(26px, 4vw, 66px) 0 0;
  padding: clamp(22px, 3vw, 40px) clamp(20px, 3.7vw, 55px);
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}

.homepage .simulator-callout p {
  margin-top: 6px;
  color: var(--muted-ink);
}

.homepage .simulator-callout button {
  flex-shrink: 0;
}

.homepage .decision-report {
  background: var(--night);
  color: var(--paper);
}

.homepage .decision-report .decision-intro {
  max-width: 56rem;
  margin-bottom: clamp(28px, 4vw, 62px);
}

.homepage .decision-report .decision-intro p {
  max-width: 60ch;
  color: #dfded1;
}

.homepage .premium-sample {
  grid-template-columns: minmax(0, .74fr) minmax(0, 1.35fr);
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(24px, 4.7vw, 76px);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}

.homepage .premium-sample h3 {
  font-size: clamp(2.25rem, 3.65vw, 4.05rem);
  line-height: 1;
  text-wrap: initial;
}

.homepage .premium-sample-intro p:not(.premium-sample-label),
.homepage .premium-sample-entries dd span {
  color: var(--muted-ink);
}

.homepage .premium-sample-intro a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  color: var(--ink);
  text-underline-offset: .35em;
}

.homepage .premium-sample-entries {
  border-bottom: 1px solid var(--rule);
}

.homepage .premium-sample-entries > div {
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.5fr);
  padding: 15px 0;
  border-top-color: var(--rule);
}

.homepage .premium-sample-entries dt {
  color: var(--gold-ink);
}

.homepage .premium-sample-entries dd strong {
  font-size: 1rem;
  font-weight: 750;
}

.homepage .contact {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .59fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(22px, 4.6vw, 78px);
  background: var(--limestone);
  color: var(--ink);
}

.homepage .contact-person {
  display: block;
  margin: 0 0 19px;
}

.homepage .contact-person small {
  color: var(--muted-ink);
}

.homepage .contact-intro > p {
  max-width: 38ch;
  margin-top: 18px;
  color: var(--muted-ink);
}

.homepage .contact .button {
  margin-top: 20px;
  background: var(--ink);
  color: var(--paper);
}

.homepage .contact .button:hover {
  background: var(--blue);
  color: var(--paper);
}

.homepage .contact-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 47% 38%;
}

.homepage .contact-details {
  margin: 0;
  padding: 0;
  border: 0;
}

.homepage .contact-details > a:not(.email) {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.65rem, 2.8vw, 2.7rem);
  font-weight: 400;
  letter-spacing: 0;
}

.homepage .contact-details > .email {
  font-size: .875rem !important;
  text-decoration: underline;
  text-underline-offset: .35em;
}

.homepage .contact-details address {
  margin-top: 16px;
}

.homepage .contact-time {
  margin-top: 13px;
}

.homepage .contact-time time {
  margin-left: 5px;
  color: var(--ink);
  letter-spacing: 0;
}

.homepage .home-blog .section-heading {
  margin-bottom: clamp(26px, 4.25vw, 62px);
}

.homepage .home-blog .section-heading .eyebrow {
  margin-bottom: 12px;
}

.homepage .home-blog h2 em {
  color: var(--gold-ink);
}

.homepage .blog-grid {
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 55px);
}

.homepage .home-blog .blog-card {
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.homepage .home-blog .blog-card-photo {
  aspect-ratio: 8 / 5;
  height: auto;
  min-height: 0;
  background: var(--limestone);
}

.homepage .home-blog .blog-card-copy {
  padding: 17px 0 0;
}

.homepage .home-blog .blog-category {
  color: var(--gold-ink);
  font-size: .75rem;
  gap: 4px 12px;
}

.homepage .home-blog .blog-category > span {
  color: var(--muted-ink);
}

.homepage .home-blog .blog-card h3 {
  margin: 12px 0;
  font-size: clamp(1.8rem, 2.85vw, 3.05rem);
  line-height: 1.04;
  text-wrap: initial;
}

.homepage .home-blog .blog-card-copy > p:not(.blog-category) {
  margin-bottom: 12px;
  color: var(--muted-ink);
  font-size: .94rem;
}

.homepage .home-blog .blog-read {
  justify-content: flex-start;
  gap: 14px;
  min-height: 44px;
  padding: 0;
  border: 0;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .35em;
}

.homepage .blog-read > span,
.homepage .home-blog .section-heading > .text-link > span,
.homepage #calculator-contact > span {
  display: none;
}

.homepage .faq {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.28fr);
  gap: clamp(30px, 7vw, 110px);
  background: var(--limestone);
}

.homepage .faq-list,
.homepage .faq-list details {
  border-color: var(--rule);
}

.homepage .faq-list summary {
  min-height: 56px;
  padding: 13px 0;
}

.homepage .faq-list p {
  color: var(--muted-ink);
}

.homepage .site-footer {
  padding-inline: var(--page-gutter);
  background: var(--night);
}

.homepage .site-footer h2 {
  font-family: Manrope, Arial, sans-serif;
  font-size: .925rem;
  font-weight: 750;
  text-wrap: wrap;
}

.homepage .site-footer .brand > span {
  font-size: 1.19rem;
}

.homepage .site-footer-meta {
  color: #d7d9cf;
}

.homepage #calculator {
  max-height: min(90vh, 90svh);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.homepage #calculator::backdrop {
  background: #132019be;
  backdrop-filter: none;
}

.homepage #calculator .dialog-close {
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.homepage #calculator .dialog-close:hover {
  background: var(--limestone);
}

.homepage #calculator .eyebrow {
  padding-right: 44px;
  color: var(--gold-ink);
}

.homepage #calculator h2 {
  margin: 12px 0;
  font-size: clamp(2.65rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.015em;
  text-wrap: wrap;
}

.homepage .calculator-description,
.homepage .calculator-note {
  color: var(--muted-ink);
}

.homepage .calculator-fields {
  margin: 16px 0 20px;
}

.homepage .calculator-fields :is(input[type="number"], select) {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #858779;
  border-radius: 0;
  background: #fffcf5;
  color: var(--ink);
}

.homepage .calculator-fields input[aria-invalid="true"] {
  border-color: #9a2f24;
}

.homepage .calculator-fields input[type="range"] {
  accent-color: var(--forest);
}

.homepage .calculator-result {
  padding: 18px 20px;
  border-radius: 0;
  background: var(--limestone);
}

.homepage .calculator-result > strong {
  margin: 8px 0 16px;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(1.85rem, 5vw, 2.55rem);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

html[lang="th"] .homepage :is(h1, h2, h3) {
  font-family: var(--display);
}

html[lang="th"] .homepage :is(h1, h2, h3, .fieldwork-label, .hero-kicker, .eyebrow) {
  letter-spacing: 0;
}

html[lang="th"] .homepage #hero-title {
  font-size: clamp(3.2rem, 6.25vw, 6.65rem);
  line-height: 1.32;
}

html[lang="th"] .homepage #hero-title em {
  font-style: normal;
}

html[lang="th"] .homepage :is(.decision-grid-services, .decision-rates, .simulator-callout, .premium-sample, #calculator) h3,
html[lang="th"] .homepage :is(.home-blog .blog-card h3, #calculator h2) {
  line-height: 1.35;
}

.homepage.motion-paused :is(.blog-card-photo img, .fieldwork-photo img, .header, dialog, .faq-list p) {
  animation: none;
  transition: none;
  transform: none;
}

@media (min-width: 761px) and (max-width: 1050px) {
  .homepage .decision-grid-services article {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-block: 16px;
  }

  .homepage .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
    gap: 24px 9vw;
  }

  .homepage .contact-portrait {
    grid-area: 1 / 2 / span 2 / span 1;
    aspect-ratio: 1;
  }
}

@media (max-width: 760px) {
  .homepage {
    --header-height: 66px;
    --section-space: 66px;
  }

  .homepage .header {
    gap: 7px;
  }

  .homepage .header .brand {
    margin-right: auto;
  }

  .homepage .header .brand > span {
    font-size: 1rem;
  }

  .homepage .brand small {
    font-size: .54rem;
  }

  .homepage .header .brand img {
    width: 26px;
  }

  .homepage .header .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    gap: 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .homepage .menu-toggle span {
    width: 21px;
    height: 2px;
    background: var(--paper);
  }

  .homepage .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .homepage .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .homepage .header #navigation {
    display: none;
    position: absolute;
    inset: var(--header-height) 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 10px var(--page-gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--night);
    font-size: 1rem;
  }

  .homepage .header #navigation.open {
    display: flex;
  }

  .homepage .header nav a {
    border-top: 1px solid var(--line);
  }

  .homepage .hero {
    padding-top: calc(var(--header-height) + 124px);
    padding-bottom: 78px;
  }

  .homepage .hero-scene img {
    object-position: center 23%;
  }

  .homepage .hero-scene::after {
    background: linear-gradient(0deg, #121e18fa 1%, #121e18df 29%, #121e186b 55%, #111a120a 77%);
  }

  .homepage #hero-title {
    font-size: clamp(3.45rem, 10.4vw, 5.15rem);
    line-height: .96;
  }

  .homepage .hero-description {
    margin-top: 18px;
  }

  .homepage .hero-actions {
    gap: 8px 20px;
    margin-top: 18px;
  }

  .homepage .hero-image-caption {
    left: var(--page-gutter);
    right: auto;
    bottom: 27px;
  }

  .homepage .hero .motion-toggle {
    bottom: 13px;
    padding-inline: 8px;
  }

  .homepage :is(.decision-services, .decision-pricing, .fieldwork, .faq) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .homepage .decision-pricing .decision-intro {
    grid-row: auto;
    margin-bottom: 10px;
  }

  .homepage .fieldwork {
    gap: 32px;
    padding-left: var(--page-gutter);
  }

  .homepage .fieldwork-photo img {
    aspect-ratio: 5 / 4;
  }

  .homepage .fieldwork-copy h2 {
    max-width: 15ch;
  }

  .homepage .simulator-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .homepage .premium-sample {
    grid-template-columns: minmax(0, 1fr);
  }

  .homepage .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .homepage .contact-portrait {
    aspect-ratio: 8 / 5;
    object-position: center 64%;
  }

  .homepage .blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .homepage .home-blog .section-heading .text-link {
    margin-top: 12px;
  }

  .homepage .faq {
    gap: 28px;
  }

  html[lang="th"] .homepage #hero-title {
    font-size: clamp(2.65rem, 8.5vw, 4.45rem);
  }
}

@media (max-width: 480px) {
  .homepage .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .homepage .hero-actions .hero-rates {
    justify-self: start;
  }

  .homepage #calculator {
    max-height: calc(100svh - 32px);
    padding: 22px;
  }

  .homepage #calculator h2 {
    font-size: 2.4rem;
  }

  .homepage .calculator-fields {
    margin: 12px 0 16px;
    gap: 6px;
  }

  .homepage .calculator-fields label {
    margin-top: 7px;
  }

  .homepage .calculator-fields input[type="range"] {
    min-height: 24px;
    margin: 6px 0;
  }

  .homepage .calculator-note {
    margin: 12px 0 16px;
  }

  .homepage .contact-details address {
    font-size: .875rem;
  }

  .homepage .premium-sample-entries > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .homepage .site-footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .homepage .mobile-contact:not([hidden]) {
    background: var(--night);
  }

  .homepage .mobile-contact a {
    border-radius: 0;
    color: var(--paper);
  }

  .homepage .mobile-contact .mobile-contact-whatsapp {
    background: var(--paper);
    color: var(--ink);
  }
}

@media (max-width: 360px) {
  .homepage .header {
    padding-inline: 15px;
    gap: 3px;
  }

  .homepage .header .brand {
    gap: 5px;
  }

  .homepage .header .brand img {
    width: 22px;
  }

  .homepage .language-switch a {
    width: 28px;
    min-width: 28px;
  }
}
