.subpage {
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
}

.subpage .site-header {
  position: relative;
  background: var(--forest-950);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.subpage .main-nav a[aria-current="page"] {
  color: var(--gold-pale);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 92px;
  color: white;
  background:
    radial-gradient(circle at 78% 20%, rgba(31, 122, 91, 0.38), transparent 31%),
    linear-gradient(135deg, var(--forest-950), var(--forest-800));
}

.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 82px 82px;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--gold-pale);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.page-hero .page-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 18px;
}

.page-section {
  padding: 96px 0;
}

.page-section.alt {
  background: var(--paper-deep);
}

.page-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  margin-bottom: 52px;
}

.page-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.page-heading p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.project-stack {
  border-top: 1px solid var(--line);
}

.project-item {
  border-bottom: 1px solid var(--line);
}

.project-item summary {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  cursor: pointer;
  list-style: none;
}

.project-item summary::-webkit-details-marker { display: none; }

.project-no {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 13px;
}

.project-name strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}

.project-name small {
  color: #74857e;
  font-size: 13px;
}

.project-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--forest-900);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 21px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.project-item[open] .project-toggle {
  color: white;
  background: var(--green);
  transform: rotate(45deg);
}

.project-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  padding: 0 0 36px 94px;
}

.project-detail p {
  margin: 0;
  color: var(--ink-soft);
}

.fact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  color: #74857e;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-list dd { margin: 0; }

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.text-link:hover,
.text-link:focus-visible { color: var(--forest-950); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-card {
  min-height: 230px;
  padding: 32px;
  background: var(--paper);
}

.detail-card span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 13px;
}

.detail-card h3 {
  margin: 55px 0 12px;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.detail-card p {
  margin: 0;
  color: #687a72;
  font-size: 14px;
}

.notice {
  margin-top: 42px;
  padding: 20px 24px;
  color: #60726a;
  border-left: 3px solid var(--gold);
  background: rgba(213, 180, 107, 0.12);
  font-size: 13px;
}

.page-cta {
  color: white;
  background: var(--forest-800);
}

.page-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-cta h2 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.service-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-kicker::before {
  width: 26px;
  height: 1px;
  content: "";
  background: currentColor;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.summary-strip div {
  min-height: 120px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.summary-strip div:last-child { border-right: 0; }
.summary-strip small { display: block; margin-bottom: 12px; color: var(--gold); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.summary-strip strong { font-family: Georgia, serif; font-size: 20px; font-weight: 400; }

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.scope-card {
  min-height: 315px;
  padding: 34px;
  background: var(--paper);
}

.scope-card > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 13px;
}

.scope-card h3 {
  margin: 42px 0 13px;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.15;
}

.scope-card p { margin: 0 0 20px; color: var(--ink-soft); font-size: 15px; }

.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #53665e;
  font-size: 14px;
  list-style: none;
}

.check-list li { position: relative; padding-left: 18px; }
.check-list li::before { position: absolute; top: 0.65em; left: 0; width: 7px; height: 1px; content: ""; background: var(--green); }

.process-list { border-top: 1px solid var(--line); }

.process-step {
  display: grid;
  grid-template-columns: 72px 0.75fr 1.25fr;
  gap: 34px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.process-step > span { color: var(--green); font-family: Georgia, serif; font-size: 13px; }
.process-step h3 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 400; line-height: 1.15; }
.process-step p { margin: 0 0 14px; color: var(--ink-soft); }
.process-step strong { color: var(--forest-800); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.deliverable-card { min-height: 205px; padding: 28px; color: white; background: rgba(255, 255, 255, 0.035); }
.deliverable-card span { color: var(--gold); font-family: Georgia, serif; font-size: 13px; }
.deliverable-card h3 { margin: 54px 0 8px; font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.deliverable-card p { margin: 0; color: rgba(255, 255, 255, 0.58); font-size: 14px; }

.dark-section { color: white; background: var(--forest-900); }
.dark-section .page-heading p { color: rgba(255, 255, 255, 0.62); }

.principle-detail {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 60px;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.principle-detail:first-child { border-top: 1px solid var(--line); }
.principle-detail .principle-icon { width: 64px; height: 64px; font-size: 23px; }
.principle-detail h2 { margin: 0 0 14px; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 50px); font-weight: 400; }
.principle-detail > div > p { max-width: 760px; margin: 0 0 25px; color: var(--ink-soft); }

.ecosystem-detail {
  display: grid;
  grid-template-columns: 130px 0.8fr 1.2fr;
  gap: 42px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.ecosystem-detail:first-child { border-top: 1px solid var(--line); }
.ecosystem-detail h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 34px; font-weight: 400; }
.ecosystem-detail p { margin: 0; color: var(--ink-soft); }
.ecosystem-detail .eco-code { width: 82px; height: 82px; }

.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journey-grid article { min-height: 215px; padding: 28px 22px; border-left: 1px solid var(--line); }
.journey-grid article:last-child { border-right: 1px solid var(--line); }
.journey-grid span { color: var(--green); font-family: Georgia, serif; font-size: 12px; }
.journey-grid h3 { margin: 50px 0 10px; font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.journey-grid p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* May Đo Bất Động Sản */
.maydo-page-hero {
  display: flex;
  align-items: flex-end;
  min-height: 760px;
  padding: 155px 0 64px;
  background: var(--forest-950);
}

.maydo-page-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 18, 14, 0.97) 0%, rgba(4, 24, 18, 0.88) 42%, rgba(4, 24, 18, 0.28) 76%),
    linear-gradient(0deg, rgba(4, 21, 16, 0.9), transparent 55%);
}

.maydo-page-hero-media {
  position: absolute;
  inset: 0;
  background-image: url("./assets/may-do/3608b-04.webp");
  background-position: center;
  background-size: cover;
}

.maydo-page-hero .container {
  position: relative;
  z-index: 3;
}

.maydo-page-hero h1 {
  max-width: 760px;
  font-size: clamp(62px, 8vw, 112px);
}

.maydo-page-hero .page-lead {
  max-width: 700px;
}

.maydo-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin-top: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.maydo-hero-meta div {
  min-height: 90px;
  padding: 20px 22px;
  background: rgba(4, 21, 16, 0.44);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.maydo-hero-meta div:last-child { border-right: 0; }
.maydo-hero-meta small { display: block; margin-bottom: 7px; color: var(--gold); font-size: 10px; }
.maydo-hero-meta strong { font-family: Georgia, serif; font-size: 18px; font-weight: 400; }

.flagship-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.flagship-line span {
  padding: 5px 8px;
  color: var(--forest-950);
  background: var(--gold-pale);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.flagship-line strong {
  color: white;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 400;
}

.maydo-definition-lead {
  color: var(--ink) !important;
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1.45;
}

.maydo-value-grid .detail-card {
  min-height: 280px;
}

.dark-section .service-kicker { color: var(--gold); }

.case-note {
  margin-top: 25px !important;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.56) !important;
  border-left: 2px solid var(--gold);
  font-size: 13px;
}

.dark-note {
  color: #6a7b74 !important;
}

.skyvilla-levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.skyvilla-levels article {
  min-height: 175px;
  padding: 26px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.skyvilla-levels article:last-child { border-right: 0; }
.skyvilla-levels span { display: block; margin-bottom: 28px; color: var(--gold); font-family: Georgia, serif; font-size: 15px; }
.skyvilla-levels strong { display: block; color: white; font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.skyvilla-levels p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.55); font-size: 13px; }

.case-film {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #020b08;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.case-film-copy {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
  gap: 28px;
  align-items: end;
  padding: 25px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.case-film-copy small {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.case-film-copy h3 {
  max-width: 760px;
  margin: 0;
  color: white;
  font-family: Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.15;
}

.case-film-copy p {
  max-width: 720px;
  margin: 11px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.case-film video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020b08;
  object-fit: cover;
}

.photo-mosaic {
  display: grid;
  grid-auto-rows: 250px;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.photo-mosaic a {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: var(--forest-800);
}

.photo-mosaic a::after {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  content: "";
  background: linear-gradient(transparent, rgba(3, 18, 14, 0.82));
  transition: opacity 0.25s ease;
}

.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.photo-mosaic a:hover img,
.photo-mosaic a:focus-visible img { transform: scale(1.035); }

.photo-mosaic span {
  position: absolute;
  z-index: 1;
  right: 17px;
  bottom: 14px;
  left: 17px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-mosaic .photo-wide { grid-column: span 2; }
.photo-mosaic .photo-tall { grid-row: span 2; }

.case-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.case-pillars article {
  min-height: 245px;
  padding: 30px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.case-pillars article:last-child { border-right: 1px solid rgba(255, 255, 255, 0.15); }
.case-pillars span { color: var(--gold); font-family: Georgia, serif; font-size: 12px; }
.case-pillars h3 { margin: 45px 0 10px; color: white; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.case-pillars p { margin: 0; color: rgba(255, 255, 255, 0.56); font-size: 13px; }

.maydo-concept {
  background: var(--paper);
}

.design-vision-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 34px;
}

.design-vision-index span {
  padding: 8px 12px;
  color: var(--forest-800);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.concept-grid {
  columns: 2;
  column-gap: 12px;
}

.concept-grid a {
  position: relative;
  display: block;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--forest-900);
  break-inside: avoid;
}

.concept-grid img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.65s var(--ease), opacity 0.25s ease;
}

.concept-grid a:hover img,
.concept-grid a:focus-visible img { opacity: 0.9; transform: scale(1.025); }

.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-top: 36px;
  padding: 28px 30px;
  color: white;
  background: var(--forest-800);
}

.download-band div { display: flex; flex-direction: column; }
.download-band small { margin-bottom: 7px; color: var(--gold); font-size: 9px; letter-spacing: 0.18em; }
.download-band strong { font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.download-band .button-dark { border-color: rgba(255, 255, 255, 0.28); }

.cta-support {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.cta-actions {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
}

@media (max-width: 900px) {
  .page-heading,
  .project-detail { grid-template-columns: 1fr; gap: 24px; }
  .project-detail { padding-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .page-cta .container { align-items: flex-start; flex-direction: column; }
  .deliverable-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-grid { grid-template-columns: 1fr 1fr; }
  .journey-grid article { border-bottom: 1px solid var(--line); }
  .ecosystem-detail { grid-template-columns: 95px 1fr; }
  .ecosystem-detail > div:last-child { grid-column: 2; }
  .maydo-page-hero { min-height: 700px; }
  .maydo-hero-meta { grid-template-columns: repeat(2, 1fr); }
  .maydo-hero-meta div:nth-child(2) { border-right: 0; }
  .maydo-hero-meta div:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); }
  .skyvilla-levels,
  .case-pillars { grid-template-columns: repeat(2, 1fr); }
  .skyvilla-levels article:nth-child(2) { border-right: 0; }
  .skyvilla-levels article:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .case-pillars article { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .download-band { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .page-hero { padding: 80px 0 70px; }
  .page-hero .page-lead { font-size: 16px; }
  .page-section { padding: 70px 0; }
  .project-item summary { grid-template-columns: 42px 1fr 36px; gap: 12px; }
  .project-name strong { font-size: 21px; }
  .project-name small { display: block; margin-top: 4px; }
  .fact-list div { grid-template-columns: 1fr; gap: 3px; }
  .detail-card h3 { margin-top: 34px; }
  .summary-strip, .scope-grid, .deliverable-grid, .journey-grid { grid-template-columns: 1fr; }
  .summary-strip div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .summary-strip div:last-child { border-bottom: 0; }
  .scope-card { min-height: 0; padding: 28px 22px; }
  .scope-card h3 { margin-top: 30px; font-size: 24px; }
  .process-step { grid-template-columns: 40px 1fr; gap: 14px; }
  .process-step > div:last-child { grid-column: 2; }
  .principle-detail { grid-template-columns: 1fr; gap: 24px; }
  .ecosystem-detail { grid-template-columns: 1fr; gap: 20px; }
  .ecosystem-detail > div:last-child { grid-column: auto; }
  .journey-grid article { min-height: 0; border-right: 1px solid var(--line); }
  .journey-grid h3 { margin-top: 30px; }
  .maydo-page-hero { min-height: 720px; padding: 115px 0 50px; }
  .maydo-page-hero::before { background: linear-gradient(90deg, rgba(3, 18, 14, 0.96), rgba(4, 24, 18, 0.66)), linear-gradient(0deg, rgba(4, 21, 16, 0.92), transparent 55%); }
  .maydo-page-hero h1 { font-size: 58px; }
  .maydo-hero-meta { margin-top: 38px; }
  .maydo-hero-meta div { min-height: 75px; padding: 14px 16px; }
  .maydo-hero-meta strong { font-size: 15px; }
  .maydo-definition-lead { font-size: 21px; }
  .case-film-copy { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; }
  .case-film-copy h3 { font-size: 27px; }
  .photo-mosaic { grid-auto-rows: 230px; grid-template-columns: 1fr; }
  .photo-mosaic .photo-wide { grid-column: auto; }
  .photo-mosaic .photo-tall { grid-row: auto; }
  .concept-grid { columns: 1; }
  .skyvilla-levels,
  .case-pillars { grid-template-columns: 1fr; }
  .skyvilla-levels article { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .skyvilla-levels article:last-child { border-bottom: 0; }
  .case-pillars article { min-height: 0; border-right: 1px solid rgba(255, 255, 255, 0.15); }
  .case-pillars h3 { margin-top: 28px; }
  .concept-grid a:first-child { grid-column: auto; }
  .download-band { padding: 24px 20px; }
  .cta-actions { width: 100%; }
}
