:root {
  --bg: #efe7dc;
  --surface: rgba(255, 251, 246, 0.7);
  --surface-strong: rgba(255, 251, 246, 0.88);
  --surface-dark: rgba(37, 20, 31, 0.62);
  --ink: #261825;
  --ink-soft: #594856;
  --line: rgba(60, 32, 49, 0.12);
  --line-strong: rgba(60, 32, 49, 0.22);
  --accent: #8f4561;
  --accent-deep: #513348;
  --accent-warm: #d49072;
  --white: #fffdf8;
  --shadow-soft: 0 24px 70px rgba(42, 22, 35, 0.12);
  --shadow-strong: 0 30px 80px rgba(35, 17, 27, 0.18);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --header-height: 88px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Forum", serif;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-backdrop__image,
.page-backdrop__veil,
.page-backdrop__glow {
  position: absolute;
  inset: 0;
}

.page-backdrop__image {
  background:
    linear-gradient(180deg, rgba(38, 24, 37, 0.4), rgba(38, 24, 37, 0.08)),
    url("assets/images/background-poster.jpg") center / cover no-repeat;
  filter: saturate(0.82);
  transform: scale(1.08);
  animation: drift 22s ease-in-out infinite alternate;
}

.page-backdrop__glow {
  filter: blur(90px);
  opacity: 0.65;
}

.page-backdrop__glow--left {
  background: radial-gradient(circle at 18% 28%, rgba(225, 171, 133, 0.75), transparent 32%);
}

.page-backdrop__glow--right {
  background: radial-gradient(circle at 82% 15%, rgba(166, 104, 140, 0.48), transparent 28%);
}

.page-backdrop__veil {
  background:
    linear-gradient(180deg, rgba(239, 231, 220, 0.08), rgba(239, 231, 220, 0.55) 48%, rgba(239, 231, 220, 0.72) 100%),
    radial-gradient(circle at top, rgba(255, 247, 238, 0.12), transparent 35%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 1rem 1rem 0;
  transition:
    transform 260ms ease,
    opacity 260ms ease;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 1.5rem));
  opacity: 0;
}

.site-header__shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(28, 16, 24, 0.08);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled .site-header__shell {
  background: rgba(255, 251, 246, 0.82);
  box-shadow: 0 18px 42px rgba(28, 16, 24, 0.11);
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
}

.brand-word {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.02em;
}

.brand-word span:nth-child(1),
.brand-word span:nth-child(9) {
  color: #ba4437;
}

.brand-word span:nth-child(2),
.brand-word span:nth-child(10) {
  color: #d0872d;
}

.brand-word span:nth-child(3),
.brand-word span:nth-child(11) {
  color: #c3b437;
}

.brand-word span:nth-child(4),
.brand-word span:nth-child(12) {
  color: #5d9650;
}

.brand-word span:nth-child(5),
.brand-word span:nth-child(13) {
  color: #4572b7;
}

.brand-word span:nth-child(6),
.brand-word span:nth-child(14) {
  color: #539bb7;
}

.brand-word span:nth-child(7),
.brand-word span:nth-child(15) {
  color: #754aa8;
}

.brand-word__gap {
  width: 0.42em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav a {
  position: relative;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: rgba(143, 69, 97, 0.1);
  color: var(--accent-deep);
  outline: none;
}

/* ── Nav dropdown (Other) ─────────────────────────── */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-trigger {
  /* inherits .site-nav a styles via cascade */
  cursor: pointer;
  user-select: none;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 164px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: rgba(255, 251, 246, 0.97);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(28, 16, 24, 0.13);
  backdrop-filter: blur(18px);
  z-index: 200;
}

.nav-dropdown-menu li {
  padding: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
  border-radius: 10px;
  margin: 0 0.35rem;
}

.nav-dropdown-menu a:hover {
  background: rgba(143, 69, 97, 0.1);
  color: var(--accent-deep);
}

/* show on hover (desktop) */
.nav-dropdown-wrap:hover .nav-dropdown-menu,
.nav-dropdown-wrap:focus-within .nav-dropdown-menu {
  display: block;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 251, 246, 0.8);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px auto;
  border-radius: 999px;
  background: var(--ink);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.hero-stage {
  position: relative;
  height: 150vh;
}

.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0;
  scroll-margin-top: 7rem;
  z-index: 1;
}

.hero__frame {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  transform-origin: center center;
  transform: scale(1);
  opacity: 1;
  will-change: transform, opacity;
}

.hero__image,
.hero__scrim,
.hero__content {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroFloat 20s ease-in-out infinite alternate;
}

.hero__scrim {
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.04), rgba(255, 251, 246, 0.1)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 42%);
}

.hero__content {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero__eyebrow,
.section-head__eyebrow,
.contact-card__label {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__eyebrow {
  color: #529ba8;
  opacity: 1;
  text-shadow: 0 4px 16px rgba(24, 57, 66, 0.2);
}

.hero h1,
.section-head h2,
.contact__intro h2,
.work-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(4.8rem, 10vw, 8.8rem);
  color: #3a7a8f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 8px 26px rgba(21, 44, 56, 0.3);
}

.hero__tagline {
  max-width: none;
  margin: 0;
  font-size: clamp(1.2rem, 0.9rem + 1.2vw, 2rem);
  line-height: 1.25;
  color: #4a9aac;
  text-shadow: 0 6px 18px rgba(24, 57, 66, 0.22);
  white-space: nowrap;
}

.hero__cta,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(247, 231, 218, 0.94), rgba(219, 183, 155, 0.95));
  color: #2a1621;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 18px 35px rgba(15, 10, 12, 0.15);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.hero__cta {
  background: linear-gradient(135deg, #f7e7da 0%, #dbb79b 100%);
  border: 2px solid rgba(42, 22, 33, 0.15);
  box-shadow:
    0 24px 48px rgba(15, 10, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  min-height: 3.8rem;
  padding: 1.05rem 2rem;
  color: #8B6F47;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 32px 56px rgba(15, 10, 12, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  outline: none;
}

.button-primary {
  background: linear-gradient(135deg, #f7e7da 0%, #dbb79b 100%);
  border: 2px solid rgba(42, 22, 33, 0.15);
  box-shadow:
    0 24px 48px rgba(15, 10, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #8B6F47;
  min-height: 3.8rem;
  padding: 1.05rem 2rem;
  font-size: 0.95rem;
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 32px 56px rgba(15, 10, 12, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  outline: none;
}

.section {
  padding: 2.5rem 1rem 0;
  scroll-margin-top: 7rem;
}

/* About / Work / Contact 由 JS 滚动驱动动画 */
.section.about,
.section.work,
.section.contact {
  will-change: opacity, transform;
}

/* What We Do / Team / Work Demo — details 页滚动驱动 */
.section.what-we-do,
.section.team,
.section.work-demo {
  will-change: opacity, transform;
}

/* details 页第一个 section：顶部留出导航栏高度 + 额外间距 */
.section.what-we-do {
  padding-top: calc(var(--header-height) + 3rem);
}

.section__shell {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head--compact {
  margin-top: 1.75rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(3.5rem, 7vw, 5.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head__blurb,
.about__quote,
.form-status {
  margin: 0;
  font-size: clamp(0.94rem, 0.9rem + 0.18vw, 1.04rem);
  line-height: 1.8;
}

.section-head__subcopy {
  max-width: 38rem;
  margin: 0;
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.26rem, 1rem + 0.8vw, 1.8rem);
  line-height: 1.15;
}

.section-head__blurb {
  max-width: 38rem;
  color: rgba(88, 88, 96, 0.72);
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.01em;
  line-height: 2;
}

.section-banner {
  position: relative;
  width: 100vw;
  min-height: clamp(18rem, 28vw, 24rem);
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  background: #d9ebfb;
  box-shadow: 0 20px 55px rgba(33, 28, 36, 0.08);
}

.section-banner__image,
.section-banner__veil,
.section-banner__content {
  position: absolute;
  inset: 0;
}

.section-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  filter: saturate(1.06) brightness(1.05);
}

.section-banner__veil {
  background:
    linear-gradient(180deg, rgba(245, 250, 255, 0.18), rgba(245, 250, 255, 0.08)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.section-banner__content {
  display: grid;
  place-items: center;
  gap: 0.9rem;
  padding: 2.6rem 1.6rem;
  text-align: center;
}

.section-banner__content > * {
  position: relative;
  z-index: 1;
}

.section-banner__content h2 {
  max-width: 100%;
  margin: 0;
  color: rgba(22, 20, 24, 0.9);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 5.6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.13em;
  line-height: 0.95;
  text-shadow: 0 10px 26px rgba(255, 255, 255, 0.26);
}

.section-banner__eyebrow {
  margin: 0 0 0.75rem;
  color: rgba(38, 24, 37, 0.72);
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.section-banner__subcopy {
  max-width: 32rem;
  margin: 0;
  color: rgba(88, 90, 96, 0.86);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.12rem, 0.98rem + 0.46vw, 1.45rem);
  font-weight: 400;
  line-height: 1.22;
  text-shadow: 0 4px 12px rgba(255, 255, 255, 0.18);
}

.about__copy {
  display: grid;
  gap: 2.7rem;
  max-width: 860px;
  margin: 2.8rem auto 0;
  padding: 2.8rem 2.35rem 3.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.about__stanza {
  display: grid;
  gap: 0.72rem;
  margin: 0;
}

.about__stanza--intro {
  gap: 0.82rem;
}

.about__line {
  display: block;
  font-size: clamp(1.08rem, 0.96rem + 0.26vw, 1.22rem);
  line-height: 1.92;
}

.about__copy .about__line {
  opacity: 0;
  transform: translateY(8px);
  animation: lineReveal 0.9s ease-out forwards;
  animation-play-state: paused;
}

.about__copy .about__line.line-visible {
  animation-play-state: running;
}

.about__line--rainbow {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  line-height: 1.34;
}

.about__line--small {
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 0.88rem + 0.2vw, 1.08rem);
  letter-spacing: 0.02em;
}

.about__line--medium {
  font-size: clamp(1.26rem, 1.06rem + 0.42vw, 1.5rem);
  line-height: 1.62;
}

.about__line--large {
  color: var(--accent-deep);
  font-size: clamp(1.4rem, 1.16rem + 0.56vw, 1.72rem);
  line-height: 1.52;
}

.about__line--xl,
.about__line--accent {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.03em;
}

.about__line--xl {
  font-size: clamp(1.5rem, 1.18rem + 0.82vw, 2rem);
  line-height: 1.26;
}

.about__line--accent {
  color: var(--accent);
  font-size: clamp(1.46rem, 1.16rem + 0.76vw, 2rem);
  line-height: 1.3;
}

.about__quote {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-family: "Forum", serif;
  font-size: clamp(1.08rem, 0.96rem + 0.26vw, 1.22rem);
  font-style: normal;
  line-height: 1.92;
  opacity: 0;
  transform: translateY(8px);
  animation: lineReveal 0.9s ease-out forwards;
  animation-play-state: paused;
}

.about__quote.line-visible {
  animation-play-state: running;
}

.about__closing {
  font-size: clamp(1.18rem, 1rem + 0.44vw, 1.46rem);
  line-height: 1.7;
  color: var(--accent-deep);
  opacity: 0;
  transform: translateY(8px);
  animation: lineReveal 0.9s ease-out forwards;
  animation-play-state: paused;
}

.about__closing.line-visible {
  animation-play-state: running;
}

.rainbow-word {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.02em;
  margin-right: 0.18em;
}

.rainbow-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3em;
  align-items: baseline;
}

.rainbow-inline .rainbow-word {
  margin-right: 0;
}

.about__closing .rainbow-word {
  opacity: 0;
  transform: translateY(8px);
  animation: lineReveal 0.9s ease-out forwards;
  animation-play-state: paused;
  display: inline-flex;
}

.about__closing .rainbow-word.line-visible {
  animation-play-state: running;
}

.rainbow-word span:nth-child(1),
.rainbow-word span:nth-child(9) {
  color: #ba4437;
}

.rainbow-word span:nth-child(2),
.rainbow-word span:nth-child(10) {
  color: #d0872d;
}

.rainbow-word span:nth-child(3),
.rainbow-word span:nth-child(11) {
  color: #c3b437;
}

.rainbow-word span:nth-child(4),
.rainbow-word span:nth-child(12) {
  color: #5d9650;
}

.rainbow-word span:nth-child(5),
.rainbow-word span:nth-child(13) {
  color: #4572b7;
}

.rainbow-word span:nth-child(6),
.rainbow-word span:nth-child(14) {
  color: #539bb7;
}

.rainbow-word span:nth-child(7),
.rainbow-word span:nth-child(15) {
  color: #754aa8;
}

.rainbow-word__gap {
  width: 0.42em;
}

.work-gallery {
  display: flex;
  gap: 0.6rem;
  min-height: 34rem;
}

.work-card {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: var(--card-image) center / cover no-repeat;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition:
    flex 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 240ms ease,
    border-color 240ms ease;
  outline: none;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 各卡片悬停展开比例 — 根据图片实际宽高比计算 */
/* Card 1: Main Page       1536×1024  横向 1.50:1 */
.work-card:nth-child(1):hover,
.work-card:nth-child(1):focus-visible { flex: 9.5 1 0; }

/* Card 2: City Hall Inside 1536×1122  横向 1.37:1 */
.work-card:nth-child(2):hover,
.work-card:nth-child(2):focus-visible { flex: 6.5 1 0; }

/* Card 3: City Hall Outside 1024×1536  纵向 0.67:1 */
.work-card:nth-child(3):hover,
.work-card:nth-child(3):focus-visible { flex: 2.0 1 0; }

/* Card 4: River Site        1024×1536  纵向 0.67:1 */
.work-card:nth-child(4):hover,
.work-card:nth-child(4):focus-visible { flex: 2.3 1 0; }

/* Card 5: World Tree        1536×1024  横向 1.50:1 */
.work-card:nth-child(5):hover,
.work-card:nth-child(5):focus-visible { flex: 12 1 0; }

/* Card 6: Cottage           1536×1024  横向 1.50:1 */
.work-card:nth-child(6):hover,
.work-card:nth-child(6):focus-visible { flex: 9.5 1 0; }

.work-card__overlay {
  display: none;
}

.work-card__content {
  position: absolute;
  inset: auto 1.2rem 1.15rem;
  z-index: 1;
  max-width: calc(100% - 2.4rem);
  padding: 0;
  color: rgba(255, 250, 245, 0.98);
  text-shadow: 0 8px 22px rgba(16, 10, 14, 0.4);
  transform: translateY(0.6rem);
  opacity: 0.95;
  transition:
    transform 320ms ease,
    opacity 320ms ease;
}

.work-card:hover .work-card__content,
.work-card:focus-visible .work-card__content {
  transform: translateY(0);
  opacity: 1;
}

.work-card__index {
  margin: 0 0 0.35rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 241, 224, 0.88);
  opacity: 1;
}

.work-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.34rem, 1.14rem + 0.48vw, 1.66rem);
  letter-spacing: 0.04em;
  line-height: 1.12;
}

.contact__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.contact__intro,
.contact-form {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.contact__intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.8rem;
}

.contact__header {
  margin-top: 1.8rem;
  margin-bottom: 2rem;
}

.contact__panel-copywrap,
.contact-form__intro {
  display: grid;
  gap: 0.7rem;
}

.contact__panel-label {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact__panel-copy {
  margin: 0;
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 1.08rem + 0.52vw, 1.62rem);
  line-height: 1.32;
}

.contact-cards {
  display: grid;
  gap: 0.9rem;
  margin-top: 0;
}

.contact-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(143, 69, 97, 0.22);
  background: rgba(255, 255, 255, 0.62);
  outline: none;
}

.contact-card strong {
  font-size: clamp(1.04rem, 0.96rem + 0.22vw, 1.16rem);
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.48rem;
  font-family: "Manrope", sans-serif;
}

.field span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 1.05rem 1rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(143, 69, 97, 0.46);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(143, 69, 97, 0.08);
  outline: none;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button-primary {
  cursor: pointer;
}

.button-primary[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  flex: 1 1 14rem;
  min-height: 1.5em;
  color: var(--ink-soft);
  font-size: 1rem;
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
}

.form-status.is-error {
  color: #8d3030;
}

.form-status.is-success {
  color: #3f6740;
}

.site-footer {
  padding: 3rem 1rem 2rem;
}

.site-footer__shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.4rem 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
}

@keyframes drift {
  from {
    transform: scale(1.08) translate3d(-1.5%, -1.5%, 0);
  }

  to {
    transform: scale(1.13) translate3d(1.5%, 1.5%, 0);
  }
}

@keyframes heroFloat {
  from {
    transform: scale(1.04) translate3d(-1%, -1%, 0);
  }

  to {
    transform: scale(1.08) translate3d(1%, 1.5%, 0);
  }
}

@keyframes lineReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header__shell {
    min-height: 76px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 251, 246, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(28, 16, 24, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    text-align: center;
  }

  /* Mobile: flatten dropdown inline */
  .nav-dropdown-wrap {
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: 100%;
    text-align: center;
  }

  .nav-dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    background: transparent;
    border: none;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 0.3rem 0;
    margin-top: 0.2rem;
    backdrop-filter: none;
  }

  .nav-dropdown-menu a {
    font-size: 0.82rem;
    padding: 0.5rem 1.2rem;
    text-align: center;
  }

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

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

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

  .hero__frame {
    min-height: 92svh;
  }

  .contact__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .hero h1 {
    font-size: clamp(3.6rem, 17vw, 5.4rem);
  }

  .hero__tagline {
    max-width: 20rem;
    white-space: normal;
  }

  .section {
    padding-top: 1.8rem;
  }

  .section-head h2 {
    font-size: clamp(2.35rem, 10vw, 3.4rem);
  }

  .about__copy,
  .contact__intro,
  .contact-form {
    padding: 1.6rem;
  }

  .section-banner {
    min-height: 15rem;
  }

  .work-gallery {
    gap: 0.9rem;
    min-height: auto;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
  }

  .work-card {
    flex: 0 0 76%;
    min-height: 24rem;
    scroll-snap-align: start;
  }

  .work-card:hover,
  .work-card:focus-visible {
    flex-basis: 76%;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .site-footer__shell {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Details Page Responsive */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .detail-section h3,
  .team-card h3 {
    font-size: 1.2rem;
  }

  .detail-section p,
  .team-card__bio,
  .demo-description {
    font-size: 0.9rem;
  }

  .video-container--portrait {
    max-width: 260px;
    border-radius: 14px;
  }
}

/* Details Page Styling */

/* What We Do / Team / Work Demo — animated by scroll (script.js handles opacity+transform) */

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin: 2.8rem auto 0;
  padding: 2.8rem 2.35rem 3.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.detail-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(88, 88, 96, 0.15);
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 1rem + 0.8vw, 1.8rem);
  font-weight: 600;
  color: #3a7a8f;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.detail-section p {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(88, 88, 96, 0.8);
}

/* Team Section */
.team-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
}

.team-video-section {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.team-video-section video {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 10, 12, 0.12);
  transition: box-shadow 300ms ease;
}

.team-video-section video:hover {
  box-shadow: 0 30px 60px rgba(15, 10, 12, 0.18);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 2rem;
  transition: all 300ms ease;
  border: 1px solid rgba(58, 122, 143, 0.08);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(15, 10, 12, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.team-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: block;
}

/* 头部偏高的照片，取景框往更上移 */
.team-card__image--top {
  object-position: center 8%;
}

.team-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #3a7a8f;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.team-card__role {
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8B6F47;
  margin-bottom: 1rem;
}

.team-card__bio {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(88, 88, 96, 0.75);
  flex-grow: 1;
}

/* Work Demo Section */
.demo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.video-container {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 10, 12, 0.12);
  transition: box-shadow 300ms ease;
}

/* Portrait (vertical) video override */
.video-container--portrait {
  aspect-ratio: 1206 / 2622;
  max-width: 380px;
  border-radius: 20px;
}

.video-container:hover {
  box-shadow: 0 30px 60px rgba(15, 10, 12, 0.18);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: inherit;
}

.demo-description {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(88, 88, 96, 0.8);
  max-width: 700px;
  text-align: center;
}

/* YouTube iframe 容器 */
.yt-container {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 10, 12, 0.12);
  transition: box-shadow 300ms ease;
}

.yt-container:hover {
  box-shadow: 0 30px 60px rgba(15, 10, 12, 0.18);
}

.yt-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* 横屏 16:9（组员介绍） */
.yt-container--wide {
  max-width: 720px;
  aspect-ratio: 16 / 9;
}

/* 竖屏 Shorts demo — 宽度用 min() 在桌面端放大，移动端不撑破屏 */
.yt-container--portrait {
  width: min(500px, 88vw);
  max-width: none;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  margin: 0 auto;
}

/* Detail Button Styling */
.section-action {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}

.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.8rem;
  padding: 1.05rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7e7da 0%, #dbb79b 100%);
  color: #8B6F47;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid rgba(42, 22, 33, 0.15);
  box-shadow:
    0 24px 48px rgba(15, 10, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  text-decoration: none;
  cursor: pointer;
}

.detail-button:hover,
.detail-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 32px 56px rgba(15, 10, 12, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  outline: none;
}

.detail-button:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Details page animations */
  .what-we-do,
  .team,
  .work-demo,
  .detail-section,
  .team-card,
  .team-video-section,
  .video-container,
  .demo-description {
    opacity: 1 !important;
    transform: none !important;
  }
}
