/* =========================================================
   Homepage redesign (2026-12). Loaded only by /index.html,
   every rule is scoped to body.page-home so other pages
   that share main.css / mobile.css are not affected.
   ========================================================= */

.page-home {
  --gold: #C68E4F;
  --gold-dark: #A9743A;
  --gold-soft: rgba(198, 142, 79, 0.12);
  --ink: #1d1a17;
  --text: #5b5650;
  --line: #E6DACB;
}

/* ---------- Page frame ----------
   Same frame as every other page (fixed page height, 560px inner
   scroll panel) so the background never rescales between pages. */
.page-home .all_content {
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.page-home #home {
  height: auto;
}

@media screen and (min-width: 761px) {
  .page-home .c_box {
    width: calc(100% - 22px) !important;
  }
}

.page-home .c_box {
  width: 100%;
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, Helvetica, sans-serif;
  color: var(--text);
}

.page-home .c_box h1,
.page-home .c_box h2,
.page-home .c_box h3 {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, Helvetica, sans-serif;
}

/* ---------- Hero ---------- */
.page-home .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
}

.page-home .home-eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "aw_conqueror_sanslight", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  line-height: 1.4;
  text-transform: uppercase;
}

.page-home .home-hero h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.page-home .home-tagline {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.page-home .home-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: #1d1a17;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.page-home .home-badge__logo {
  display: inline-block;
  width: 58px;
  height: 22px;
  background: url(../img/dolby_atmos_logo.svg) no-repeat center / contain;
}

.page-home .home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.page-home .home-btn:hover {
  background: var(--gold-soft);
}

.page-home .home-btn--primary {
  background: var(--gold);
  color: #fff;
}

.page-home .home-btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.page-home .home-hero__video {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  aspect-ratio: 16 / 9;
}

.page-home .home-hero__video .home_i {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
}

/* ---------- Feature cards ---------- */
.page-home .home-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 44px 0 0;
  padding: 0;
}

.page-home .home-features li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  list-style: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.page-home .home-features li:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(120, 85, 45, 0.12);
}

.page-home .home-features strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.page-home .home-features li > span:last-child {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Visit / contact ---------- */
.page-home .home-visit {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.page-home .home-section-title {
  position: relative;
  margin: 0 0 22px;
  padding-left: 14px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.page-home .home-section-title::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--gold);
}

.page-home .home-visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: start;
}

.page-home .home-info {
  margin: 0;
}

.page-home .home-info > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}

.page-home .home-info > div:first-child {
  padding-top: 0;
}

.page-home .home-info dt {
  color: var(--gold);
  font-weight: 600;
}

.page-home .home-info dd {
  margin: 0;
  color: var(--text);
}

.page-home .home-info a {
  color: var(--ink);
  font-weight: 600;
}

.page-home .home-info a:hover {
  color: var(--gold);
}

.page-home .home-visit__side .h_map {
  position: static;
  width: 100%;
  height: auto;
  padding-top: 0;
  aspect-ratio: 798 / 450;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-image: url(../img/map.jpg);
  background-position: center;
  background-size: cover;
}

.page-home .home-visit__side .h_c_row_i {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.page-home .home-visit__side .h_c_row_i a {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s;
}

.page-home .home-visit__side .h_c_row_i a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.page-home .home-visit__side .h_c_row_i img {
  display: block;
  width: auto;
  height: 42px;
}

/* ---------- Small screens ---------- */
@media screen and (max-width: 760px) {
  .page-home .all_content {
    width: calc(100% - 24px);
    padding: 24px 18px 30px;
    margin: 14px auto 0;
    border-radius: 6px;
  }

  .page-home .footer {
    width: calc(100% - 24px);
  }

  .page-home .home-hero,
  .page-home .home-visit__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-home .home-eyebrow {
    font-size: 10px;
    letter-spacing: 0.08em;
    white-space: normal;
    margin-bottom: 10px;
  }

  .page-home .home-hero h1 {
    font-size: 30px;
  }

  .page-home .home-tagline {
    font-size: 19px;
    margin-bottom: 18px;
  }

  .page-home .home-badge {
    margin-bottom: 22px;
  }

  .page-home .home-cta .home-btn {
    flex: 1 1 100%;
  }

  .page-home .home-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
  }

  .page-home .home-features li {
    padding: 14px 14px 12px;
  }

  .page-home .home-features strong {
    font-size: 15px;
  }

  .page-home .home-features li > span:last-child {
    font-size: 13px;
  }

  .page-home .home-visit {
    margin-top: 32px;
    padding-top: 26px;
  }

  .page-home .home-info > div {
    grid-template-columns: 3.5em minmax(0, 1fr);
    font-size: 15px;
  }

  .page-home .home-visit__side .h_c_row_i img {
    height: 38px;
  }
}

/* ---------- Hero title: "ff studio" wordmark + subtitle ---------- */
.page-home .home-hero h1.home-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  font-size: inherit;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.page-home .home-title__brand {
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 58px;
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: none;
}

.page-home .home-title__sub {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.32em;
}

.page-home .home-title__sub::before {
  content: "";
  flex: 0 0 28px;
  height: 2px;
  background: var(--gold);
}

html[lang="en"] .page-home .home-title__sub {
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

@media screen and (max-width: 760px) {
  .page-home .home-title__brand {
    font-size: 46px;
  }

  .page-home .home-title__sub {
    font-size: 17px;
  }

  html[lang="en"] .page-home .home-title__sub {
    font-size: 13px;
  }
}
