@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 鴻築 Logo 三色延伸 */
  --navy: #1b203e;
  --navy-mid: #252d52;
  --navy-light: #3f68a8;
  --blue-muted: #6787b3;
  --silver: #c0d1e5;
  --silver-light: #d4e3ef;
  --silver-bright: #eef2f7;
  --silver-dark: #6787b3;
  --cream: #eef2f7;
  --text-dark: #1b203e;
  --text-mid: #3d4558;
  --text-light: #7a8499;
  --serif: 'Noto Sans TC', sans-serif;
  --sans: 'Noto Sans TC', sans-serif;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--text-dark);
  background: #fff;
  line-height: 1.7;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 227, 239, 0.18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(103, 135, 179, 0.08), transparent 26%);
  opacity: 0.9;
  z-index: -1;
}

body.js-enabled::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(41, 47, 84, 0.96) 0%, rgba(86, 94, 128, 0.94) 45%, rgba(238, 242, 247, 0.96) 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
  z-index: 999;
}

body.js-enabled.page-ready::after {
  opacity: 0;
  visibility: hidden;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 32, 62,1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(48px, calc((100vw - 1344px) / 2));
  height: 88px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-lockup {
  height: 46px;
  width: auto;
  max-width: min(440px, 34vw);
  display: block;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: color 0.25s ease, transform 0.25s ease;
  font-weight: 300;
  position: relative;
  display: inline-block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  transform: scaleX(0.15);
  opacity: 0;
  transition: transform 0.35s var(--ease-premium), opacity 0.35s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--silver);
  transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-lang-switch a {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav-lang-switch .lang-divider {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

/* SECTION */
section {
  padding: 96px max(48px, calc((100vw - 1344px) / 2));
}

.section-eyebrow {
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--navy-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.3;
}

.section-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-light), var(--silver), var(--silver-bright));
  margin: 20px 0 40px;
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-120%);
  animation: dividerSweep 6s ease-in-out infinite;
}

/* BUTTONS（單色、無框） */
.btn-primary {
  background: var(--navy-light);
  color: #fff;
  padding: 13px 32px;
  font-size: 13px;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  transition: background 0.2s;
  display: inline-block;
  box-shadow: none;
  appearance: none;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.btn-primary:hover {
  background: var(--blue-muted);
}

.btn-primary.btn-mt {
  margin-top: 8px;
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition:
    color 0.2s,
    border-color 0.2s,
    transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-ghost:hover {
  color: var(--silver);
  border-color: var(--silver);
  transform: translateY(-2px);
}

.hero-ctas .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 13px;
}

.hero-ctas .btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.16);
}

.btn-primary::before,
.btn-ghost::before,
.submit-btn::before {
  content: '';
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.12) 38%, transparent 70%);
  transition: width 0.45s ease, height 0.45s ease, opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

.btn-primary:hover::before,
.btn-ghost:hover::before,
.submit-btn:hover::before {
  width: 220px;
  height: 220px;
  opacity: 1;
}

/* PAGE HERO（內頁頂部） */
.page-hero {
  background: var(--navy);
  padding: 80px max(48px, calc((100vw - 1344px) / 2)) 64px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(192, 209, 229, 0.18), transparent 24%),
    radial-gradient(circle at 75% 20%, rgba(63, 104, 168, 0.18), transparent 22%),
    radial-gradient(circle at 68% 82%, rgba(255, 255, 255, 0.08), transparent 18%);
  opacity: 0.9;
  animation: heroAurora 18s linear infinite;
  z-index: 0;
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  /* background-image:
    linear-gradient(rgba(192, 209, 229, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 209, 229, 0.05) 1px, transparent 1px); */
  background-size: 60px 60px;
  animation: gridDrift 18s linear infinite;
  opacity: 0.55;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  transform: translateY(18px);
  opacity: 0;
  animation: sectionRise 0.95s var(--ease-premium) forwards 0.15s;
  transition: transform 0.35s ease;
}

body.page-ready:not(.page-home) nav {
  animation: sectionRise 0.55s var(--ease-premium) both;
}

body.page-ready:not(.page-home) .page-hero {
  animation: sectionRise 0.7s var(--ease-premium) both 0.08s;
}

body.page-ready:not(.page-home) section:first-of-type > * {
  opacity: 0;
  animation: sectionRise 0.75s var(--ease-premium) both;
}

body.page-ready:not(.page-home) section:first-of-type > *:nth-child(1) { animation-delay: 0.2s; }
body.page-ready:not(.page-home) section:first-of-type > *:nth-child(2) { animation-delay: 0.3s; }
body.page-ready:not(.page-home) section:first-of-type > *:nth-child(3) { animation-delay: 0.4s; }
body.page-ready:not(.page-home) section:first-of-type > *:nth-child(4) { animation-delay: 0.52s; }
body.page-ready:not(.page-home) section:first-of-type > *:nth-child(5) { animation-delay: 0.64s; }

.page-hero-eyebrow {
  font-size: 16.5px;
  letter-spacing: 0.25em;
  color: var(--silver);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero-title {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  color: #fff;
  line-height: 1.25;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.8);
}

.page-hero-title span {
  color: var(--silver);
}

/* HOME HERO */
#hero {
  min-height: 580px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

/* Dark overlay above slides */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 32, 62, 0.55);
  z-index: 1;
  pointer-events: none;
}

/* ── Hero Slideshow ── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  transform: scale(1.04);
}

.hero-slide.active {
  opacity: 1;
  animation: heroKenBurns 9s ease-out forwards;
}

/* ── Hero Dots ── */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.hero-dot.active {
  background: var(--silver);
  border-color: var(--silver);
  transform: scale(1.25);
}

.hero-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  transform: scale(0.5);
  opacity: 0;
}

.hero-dot.active::after {
  animation: pulseRing 3.8s ease-out infinite;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* background-image:
    linear-gradient(rgba(192, 209, 229, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 209, 229, 0.07) 1px, transparent 1px); */
  background-size: 60px 60px;
  animation: gridDrift 22s linear infinite;
  pointer-events: none;
}

.hero-accent {
  position: absolute;
  right: 0;
  top: 0;
  width: 380px;
  height: 100%;
  z-index: 2;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 80px 48px;
  max-width: 680px;
  margin-left: max(0px, calc((100vw - 1440px) / 2));
  transform: translateY(24px);
  opacity: 0;
  animation: sectionRise 0.95s var(--ease-premium) forwards 0.2s;
  transition: transform 0.35s ease;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: sectionRise 0.8s var(--ease-premium) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.22s; }
.hero-content > *:nth-child(2) { animation-delay: 0.32s; }
.hero-content > *:nth-child(3) { animation-delay: 0.42s; }
.hero-content > *:nth-child(4) { animation-delay: 0.52s; }
.hero-content > *:nth-child(5) { animation-delay: 0.62s; }
.hero-content > *:nth-child(6) { animation-delay: 0.72s; }

.hero-eyebrow {
  font-size: 16.5px;
  letter-spacing: 0.25em;
  color: var(--silver);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 300;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.8);
}

.hero-title span {
  color: var(--silver);
  font-weight: 600;
}

.hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.2em;
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-stats {
  position: absolute;
  right: max(60px, calc((100vw - 1440px) / 2 + 60px));
  bottom: 48px;
  display: flex;
  gap: 40px;
  z-index: 3;
}

.stat-item {
  text-align: right;
  opacity: 1;
  transform: none;
  animation: none;
}

.stat-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.stat-digit-window {
  height: 1em;
  overflow: hidden;
  display: inline-flex;
  align-items: flex-start;
}

.stat-digit-strip {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.12, 0.84, 0.18, 1);
  will-change: transform;
}

.stat-num.is-rolling .stat-digit-strip {
  transform: translateY(calc(var(--digit-target) * -1em));
}

.stat-digit,
.stat-static-char {
  display: block;
  height: 1em;
  line-height: 1em;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ABOUT（首頁預覽 + 內頁） */
#about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 20px;
  font-weight: 300;
}

.about-milestones {
  display: flex;
  flex-direction: column;
}

.about-illustration {
  border: 1px solid rgba(27, 32, 62, 0.1);
  overflow: hidden;
  height: 450px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  transition: transform 0.9s var(--ease-premium), box-shadow 0.4s ease;
  animation: softFloat 8s ease-in-out infinite;
}

.about-illustration:hover {
  transform: scale(1.025) translateY(-6px);
  box-shadow: 0 24px 48px rgba(27, 32, 62, 0.16);
}

#about .milestone {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(27, 32, 62, 0.1);
  align-items: flex-start;
}

#about .milestone:last-child {
  border-bottom: none;
}

.milestone-year {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--navy-light);
  min-width: 60px;
  line-height: 1;
  padding-top: 2px;
}

.milestone-info h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 4px;
}

.milestone-info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  font-weight: 300;
}

/* MILESTONES（關於頁） */
#milestones {
  background: #fff;
}

.milestones-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-top: 48px;
}

.milestone-list {
  display: flex;
  flex-direction: column;
}

#milestones .milestone {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(27, 32, 62, 0.08);
  align-items: flex-start;
}

#milestones .milestone:last-child {
  border-bottom: none;
}

.milestone-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
  font-weight: 300;
}

.milestone-desc p {
  margin-bottom: 20px;
}

/* DEPARTMENTS */
#departments {
  background: var(--cream);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(27, 32, 62, 0.1);
  border: 1px solid rgba(27, 32, 62, 0.1);
  margin-top: 48px;
}

.dept-card {
  background: var(--cream);
  padding: 32px 24px;
  transition: background 0.2s;
}

.dept-card:hover {
  background: #fff;
}

.dept-num {
  font-family: var(--serif);
  font-size: 10px;
  color: var(--navy-light);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  display: block;
}

.dept-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
}

.dept-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
}

/* SERVICES */
#services {
  background: #fff;
}

.services-header {
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(27, 32, 62, 0.1);
  border: 1px solid rgba(27, 32, 62, 0.1);
}

.service-card {
  background: #fff;
  padding: 40px 32px;
  transition: transform 0.45s var(--ease-premium), background 0.25s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(192, 209, 229, 0.24) 50%, transparent 85%);
  transform: translateX(-130%);
  transition: transform 0.85s var(--ease-premium);
  pointer-events: none;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.45), transparent 40%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.service-card:hover {
  background: var(--cream);
  transform: translateY(-10px);
  box-shadow: 0 22px 44px rgba(27, 32, 62, 0.12);
}

.service-card:hover::before {
  transform: translateX(130%);
}

.service-card:hover::after {
  opacity: 0.9;
}

.service-num {
  font-family: var(--serif);
  font-size: 11px;
  color: var(--navy-light);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  display: block;
  font-weight: 300;
}

.service-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
}

/* PROCESS（服務頁） */
#process {
  background: var(--cream);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(192, 209, 229, 0.3);
}

.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  transition: transform 0.35s ease;
}

.process-step:hover {
  transform: translateY(-6px);
}

.step-circle {
  width: 56px;
  height: 56px;
  border: 1px solid var(--navy-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--cream);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--navy-light);
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.process-step:hover .step-circle {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--silver-dark);
  box-shadow: 0 14px 32px rgba(63, 104, 168, 0.18);
}

.step-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
  font-weight: 300;
}

/* PORTFOLIO 區（深底） */
#portfolio,
.portfolio {
  background: var(--navy);
}

.page-portfolio #portfolio,
.page-portfolio .portfolio {
  position: relative;
  background:
    linear-gradient(rgba(27, 32, 62, 0.45), rgba(27, 32, 62, 0.45)),
    url("images/profolios/hotel-lobby2.jpg") left/250% no-repeat !important;
  isolation: isolate;
  z-index: 0;
}

.page-portfolio #portfolio::before,
.page-portfolio .portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.page-portfolio #portfolio::after,
.page-portfolio .portfolio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 32, 62, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
  pointer-events: none;
}

.page-portfolio #portfolio > *,
.page-portfolio .portfolio > * {
  position: relative;
  z-index: 2;
}

.page-home #portfolio,
.page-home .portfolio {
  position: relative;
  background:
    linear-gradient(rgba(27, 32, 62, 0.45), rgba(27, 32, 62, 0.45)),
    url("images/home-profolio-bg.jpg") left/150% no-repeat !important;
  isolation: isolate;
  z-index: 0;
}

.page-home #portfolio::before,
.page-home .portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.page-home #portfolio::after,
.page-home .portfolio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 32, 62, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
  pointer-events: none;
}

.page-home #portfolio > *,
.page-home .portfolio > * {
  position: relative;
  z-index: 2;
}

#portfolio .section-title,
.portfolio .section-title {
  color: #fff;
}

#portfolio .section-eyebrow,
.portfolio .section-eyebrow {
  color: var(--silver);
}

#portfolio .section-divider,
.portfolio .section-divider {
  background: linear-gradient(90deg, var(--navy-light), var(--silver), var(--silver-bright));
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
}

/* 第 4 格：橫幅，佔 row 2 的 cols 2-3 */
.portfolio-item-wide {
  grid-column: 2 / 4;
  grid-row: 2;
}

.page-portfolio #portfolio .portfolio-grid,
.page-portfolio .portfolio .portfolio-grid {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-home #portfolio .portfolio-grid,
.page-home .portfolio .portfolio-grid {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-home .portfolio-grid {
  grid-template-rows: 220px 220px;
}

.page-portfolio .portfolio-grid {
  grid-template-rows: 260px 260px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transform-style: preserve-3d;
}

.portfolio-item:first-child {
  grid-row: 1 / 3;
}

/* Hover：圖片放大 focus */
.portfolio-item img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 42%, transparent 58%, rgba(192, 209, 229, 0.14));
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.45s ease, transform 0.65s ease;
  z-index: 1;
  pointer-events: none;
}

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.16), transparent 36%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
  pointer-events: none;
}

.portfolio-item:hover img {
  transform: scale(1.07);
}

.portfolio-item:hover::before {
  opacity: 1;
  transform: scale(1);
}

.portfolio-item:hover::after {
  opacity: 1;
}

.portfolio-item:hover .portfolio-item-inner {
  background: linear-gradient(
    to top,
    rgba(27, 32, 62, 0.97) 0%,
    rgba(27, 32, 62, 0.2) 60%
  );
}

.portfolio-item-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(
    to top,
    rgba(27, 32, 62, 0.92) 0%,
    transparent 60%
  );
  transition: background 0.3s;
  z-index: 2;
}

.page-portfolio .portfolio-item-inner {
  padding: 28px;
  background: linear-gradient(
    to top,
    rgba(27, 32, 62, 0.92) 0%,
    transparent 55%
  );
}

.portfolio-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--silver);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: var(--sans);
}

.page-portfolio .portfolio-tag {
  margin-bottom: 8px;
}

.portfolio-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 300;
  color: #fff;
}

.page-portfolio .portfolio-name {
  font-size: 17px;
  line-height: 1.4;
}

.portfolio-note {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
  text-align: right;
}

.page-portfolio .portfolio-note {
  color: rgba(255, 255, 255, 0.25);
}

.portfolio-more {
  margin-top: 36px;
  text-align: center;
}

.portfolio-filter {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}

.filter-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 20px 8px 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-family: var(--sans);
  transition:
    color 0.2s,
    border-color 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--silver);
  border-bottom-color: var(--silver);
}

/* NEWS 預覽（首頁） */
#news-preview {
  background: var(--cream);
}

.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(27, 32, 62, 0.1);
  border: 1px solid rgba(27, 32, 62, 0.1);
  margin-top: 48px;
}

#news-preview .news-card {
  background: #fff;
  padding: 32px 28px;
  transition: background 0.2s;
}

#news-preview .news-card:hover {
  background: var(--cream);
}

#news-preview .news-title {
  font-size: 16px;
}

.news-more {
  margin-top: 36px;
  text-align: center;
}

/* NEWS 內頁 */
#news {
  background: var(--cream);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(27, 32, 62, 0.1);
  border: 1px solid rgba(27, 32, 62, 0.1);
}

.news-card {
  background: #fff;
  padding: 32px 28px;
  transition: background 0.2s;
}

.news-card:hover {
  background: var(--cream);
}

.news-date {
  font-size: 11px;
  color: var(--navy-light);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: block;
  font-weight: 300;
}

.news-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
}

#team {
  background: #fff;
}

.subsection-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--navy);
  margin: 56px 0 24px;
  line-height: 1.3;
}

.subsection-title:first-of-type {
  margin-top: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(27, 32, 62, 0.08);
  border: 1px solid rgba(27, 32, 62, 0.08);
}

.team-card {
  background: #fff;
  padding: 32px 28px;
  transition: background 0.2s;
}

.team-card:hover {
  background: var(--cream);
}

.team-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--navy-light);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  font-weight: 300;
}

.team-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
}

.team-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
}

#links {
  background: var(--cream);
}

.links-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 40px;
}

.link-group-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 20px;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  padding: 12px 0;
  border-bottom: 1px solid rgba(27, 32, 62, 0.08);
  transition: color 0.2s;
}

.link-item:last-child {
  border-bottom: none;
}

.link-item:hover {
  color: var(--blue-muted);
}

.link-arrow {
  font-size: 12px;
  color: var(--navy-light);
  margin-left: auto;
}

/* CONTACT */
#contact {
  background: #fff;
}

.page-portfolio #contact {
  background: var(--cream);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  margin: 0 -16px;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  border-radius: 16px;
  transform-style: preserve-3d;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 30px rgba(27, 32, 62, 0.08);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
}

.contact-icon svg,
.contact-icon img {
  width: 35px;
  height: 35px;
  display: block;
  object-fit: contain;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.contact-item:hover .contact-icon img,
.contact-item:hover .contact-icon svg {
  transform: scale(1.12) rotate(-4deg);
  filter: drop-shadow(0 8px 14px rgba(63, 104, 168, 0.18));
}

.contact-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 300;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-lead {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 8px;
  font-weight: 300;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-light);
  text-transform: uppercase;
}

.form-input {
  background: var(--cream);
  border: 1px solid rgba(27, 32, 62, 0.15);
  padding: 11px 16px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--text-dark);
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  border-radius: 0;
  width: 100%;
}

.form-input:focus {
  border-color: var(--navy-light);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(27, 32, 62, 0.08);
}

.page-portfolio .form-input {
  background: #fff;
}

.page-portfolio .form-input:focus {
  border-color: var(--navy-light);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  background: var(--navy-light);
  color: #fff;
  padding: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  transition: background 0.2s;
  width: 100%;
  margin-top: 8px;
  box-shadow: none;
  appearance: none;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  background: var(--blue-muted);
}

/* FOOTER */
footer {
  background: var(--navy);
  padding: 40px max(48px, calc((100vw - 1344px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  max-width: 360px;
}

.footer-logo-lockup {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  opacity: 0.78;
}

.footer-contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-contact p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.footer-info {
  text-align: right;
  flex-shrink: 0;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

@media (max-width: 900px) {
  nav {
    padding: 0 24px;
    height: 80px;
  }

  .nav-links {
    gap: 16px;
  }

  section {
    padding: 64px 24px;
  }

  .page-hero {
    padding: 60px 24px 48px;
  }

  .page-hero-title {
    font-size: 32px;
  }

  .hero-content {
    padding: 60px 24px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-stats {
    display: none;
  }

  .about-grid,
  .milestones-layout,
  .contact-layout,
  .links-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-grid,
  .career-grid,
  .culture-photo-grid,
  .activity-summary-grid,
  .activity-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-preview-grid,
  .news-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid,
  .page-portfolio .portfolio-grid,
  .page-home .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .portfolio-item-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .portfolio-item:first-child {
    grid-row: auto;
  }

  .page-home .portfolio-item:first-child {
    height: 280px;
  }

  .page-home .portfolio-item {
    height: 200px;
  }

  .page-portfolio .portfolio-item:first-child {
    height: 300px;
  }

  .page-portfolio .portfolio-item {
    height: 220px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .process-steps::before {
    display: none;
  }

  footer {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-info {
    text-align: center;
  }

  .footer-info {
    text-align: center;
  }
}

/* ============================================================
   TEMP SITE ADDITIONS（臨時站新增樣式）
   ============================================================ */

/* --- 漢堡選單按鈕（桌機隱藏） --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--silver-light);
  transition: transform 0.25s, opacity 0.25s;
}

nav.open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- 照片佔位框（素材到位後替換為 <img>） --- */
.photo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 3 / 2;
  width: 100%;
  background: var(--silver-bright);
  border: 1px dashed rgba(27, 32, 62, 0.25);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.22), transparent 42%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-premium), filter 0.45s ease;
}

.photo-slot:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.photo-slot:hover {
  box-shadow: 0 20px 38px rgba(27, 32, 62, 0.12);
}

.photo-slot:hover::after {
  opacity: 1;
}

.photo-slot-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-light);
}

.photo-slot-name {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--blue-muted);
  letter-spacing: 0.08em;
}

.photo-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.photo-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- 首頁入口卡 --- */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.entry-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(27, 32, 62, 0.1);
  padding: 32px 28px;
  transition: border-color 0.25s ease, transform 0.4s var(--ease-premium), box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.entry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(212, 227, 239, 0.28), transparent);
  transform: skewX(-24deg);
  transition: left 0.8s var(--ease-premium);
}

.entry-card:hover {
  border-color: var(--navy-light);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(27, 32, 62, 0.12);
}

.entry-card:hover::before {
  left: 135%;
}

.entry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(212, 227, 239, 0.42), transparent 40%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.entry-card:hover::after {
  opacity: 1;
}

.entry-card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.entry-card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
}

.entry-card-desc {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 16px;
}

.entry-card-arrow {
  font-size: 14px;
  color: var(--navy-light);
  letter-spacing: 0.1em;
  display: inline-block;
  transition: transform 0.35s ease;
}

.entry-card:hover .entry-card-arrow {
  transform: translateX(8px);
}

/* --- 聯絡 CTA 帶（取代內頁完整表單區） --- */
.contact-cta {
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  inset: -10% -20%;
  background:
    radial-gradient(circle at 18% 50%, rgba(103, 135, 179, 0.28), transparent 25%),
    radial-gradient(circle at 82% 30%, rgba(192, 209, 229, 0.18), transparent 22%);
  animation: heroAurora 18s linear infinite reverse;
  pointer-events: none;
}

.contact-cta .section-title {
  color: #fff;
  position: relative;
  z-index: 1;
}

.contact-cta .section-divider {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.contact-cta-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  margin: 24px 0 32px;
  position: relative;
  z-index: 1;
}

.contact-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.contact-cta-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 13px;
}

.contact-cta-actions .btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* --- 活動花絮 --- */
.activities-intro,
.about-activities {
  background: var(--cream);
}

.activities-intro-layout,
.about-activities-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: start;
}

.activities-intro-copy,
.about-activities-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.about-activities-layout {
  align-items: start;
}

.activities-intro-copy p,
.about-activities-copy p,
.activity-section-lead {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
  font-weight: 300;
}

.culture-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.culture-photo-card {
  background: #fff;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(27, 32, 62, 0.08);
  box-shadow: 0 18px 36px rgba(27, 32, 62, 0.08);
}

.culture-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-premium), filter 0.35s ease;
}

.culture-photo-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.04);
}

.activity-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(27, 32, 62, 0.08);
  border: 1px solid rgba(27, 32, 62, 0.08);
}

.activity-summary-card {
  background: #fff;
  padding: 28px 24px;
}

.activity-summary-tag {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--navy-light);
  text-transform: uppercase;
}

.activity-summary-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
}

.activity-summary-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
}

.activity-section {
  background: #fff;
}

.activity-section-alt {
  background: var(--cream);
}

.activity-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.about-activities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.activity-photo,
.activity-preview-card {
  background: #fff;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(27, 32, 62, 0.08);
  box-shadow: 0 18px 36px rgba(27, 32, 62, 0.08);
}

.activity-photo img,
.activity-preview-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-premium), filter 0.35s ease;
}

.activity-photo:hover img,
.activity-preview-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.04);
}

.activity-photo-wide {
  grid-column: span 2;
}

.activity-photo-wide img {
  min-height: 360px;
}

.about-activities-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* --- 招募頁 --- */
.careers-intro {
  background: var(--cream);
}

.career-intro-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.career-intro-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.career-intro-copy p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
  font-weight: 300;
}

.career-points {
  display: grid;
  gap: 1px;
  background: rgba(27, 32, 62, 0.08);
  border: 1px solid rgba(27, 32, 62, 0.08);
}

.career-point {
  background: #fff;
  padding: 28px 24px;
}

.career-point-label {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--navy-light);
  text-transform: uppercase;
}

.career-point-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}

.career-point-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
}

.career-groups {
  background: #fff;
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.career-grid-single {
  grid-template-columns: 1fr;
}

.job-card {
  border: 1px solid rgba(27, 32, 62, 0.1);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.job-card[open],
.job-card:hover {
  border-color: rgba(63, 104, 168, 0.28);
  box-shadow: 0 20px 40px rgba(27, 32, 62, 0.08);
}

.job-summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 30px 28px;
  cursor: pointer;
  position: relative;
}

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

.job-summary::after {
  content: '+';
  position: absolute;
  top: 26px;
  right: 22px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(63, 104, 168, 0.2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-light);
  font-size: 18px;
  line-height: 1;
  background: rgba(238, 242, 247, 0.7);
}

.job-card[open] .job-summary::after {
  content: '−';
}

.job-category {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--navy-light);
  text-transform: uppercase;
}

.job-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
  padding-right: 40px;
}

.job-lead {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.85;
  font-weight: 300;
}

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  padding-right: 40px;
}

.job-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(63, 104, 168, 0.18);
  background: var(--cream);
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.job-details {
  padding: 0 28px 28px;
  border-top: 1px solid rgba(27, 32, 62, 0.08);
}

.job-details-title {
  margin: 20px 0 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-light);
  text-transform: uppercase;
}

.job-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-list li {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.85;
  font-weight: 300;
}

.job-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.8;
}

/* --- 表單送出狀態 --- */
.form-status {
  display: none;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
}

.form-status.success {
  display: block;
  background: rgba(63, 104, 168, 0.1);
  color: var(--navy-light);
  border: 1px solid rgba(63, 104, 168, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(168, 63, 63, 0.08);
  color: #a83f3f;
  border: 1px solid rgba(168, 63, 63, 0.3);
}

/* ===== RWD：平板以下，漢堡選單 ===== */
@media (max-width: 768px) {
  .hero-accent {
    display: none;
  }

  nav {
    height: 72px;
  }

  .nav-logo-lockup {
    height: 38px;
    max-width: min(320px, calc(100vw - 108px));
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(27, 32, 62, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0 16px;
  }

  nav.open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
  }

  .entry-grid,
  .photo-band {
    grid-template-columns: 1fr;
  }

  .career-intro-layout,
  .career-grid,
  .job-summary,
  .activities-intro-layout,
  .about-activities-layout,
  .culture-photo-grid,
  .activity-summary-grid,
  .activity-photo-grid,
  .about-activities-grid {
    grid-template-columns: 1fr;
  }

  .job-summary {
    padding: 26px 22px;
  }

  .job-meta {
    align-items: flex-start;
    padding-right: 0;
  }

  .job-title {
    padding-right: 36px;
    font-size: 20px;
  }

  .job-summary::after {
    top: 22px;
    right: 18px;
  }

  .job-details {
    padding: 0 22px 22px;
  }

  .activity-photo-wide {
    grid-column: auto;
  }

  .activity-photo-wide img {
    min-height: 240px;
  }

  .btn-primary,
  .btn-ghost {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===== RWD：手機 ===== */
@media (max-width: 480px) {
  .nav-logo-lockup {
    height: 30px;
    max-width: min(220px, calc(100vw - 96px));
  }

  section {
    padding: 56px 20px;
  }

  .hero-content {
    padding: 56px 20px;
  }

  .hero-title {
    font-size: clamp(30px, 9vw, 36px); 
  }

  .page-hero-title {
    font-size: clamp(26px, 8vw, 32px);
  }

  .hero-ctas,
  .contact-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost,
  .contact-cta-actions .btn-primary,
  .contact-cta-actions .btn-ghost {
    text-align: center;
  }
}

/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium), filter 0.8s var(--ease-premium);
  filter: blur(8px);
}
[data-reveal="up"]    { transform: translateY(-32px); }
[data-reveal="down"]  { transform: translateY(32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="fade"]  { transform: none; }
[data-reveal="stamp"] { transform: translateY(34px) rotate(-3deg) scale(0.94); transform-origin: 50% 50%; }

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

[data-delay="1"] { transition-delay: 0.15s; }
[data-delay="2"] { transition-delay: 0.30s; }
[data-delay="3"] { transition-delay: 0.45s; }
[data-delay="4"] { transition-delay: 0.60s; }
[data-delay="5"] { transition-delay: 0.75s; }
[data-delay="6"] { transition-delay: 0.90s; }
[data-delay="7"] { transition-delay: 1.05s; }

/* 已在視區內（例如 hero）不做動畫 */
[data-reveal].no-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ═══════════════════════════════════════
   ABOUT GALLERY 4×2
═══════════════════════════════════════ */
.about-gallery {
  padding-top: 0;
  padding-bottom: 0;
}

/* 與 services-grid 相同的格線框架 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 1px;
  background: rgba(27, 32, 62, 0.1);
  border: 1px solid rgba(27, 32, 62, 0.1);
  margin-bottom: 48px;
}

@keyframes sectionRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroKenBurns {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes accentFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    /* transform: translate3d(-14px, 10px, 0); */
  }
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-24px, -18px, 0);
  }
}

@keyframes heroAurora {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(2%, -2%, 0) rotate(4deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.5);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes dividerSweep {
  0%, 65% {
    transform: translateX(-120%);
  }
  85%, 100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 30px rgba(27, 32, 62, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Mobile：2 欄 */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 180px);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-rows: repeat(4, 140px);
  }
}

/* ═══════════════════════════════════════
   ABOUT CULTURE SECTION
═══════════════════════════════════════ */
#about-culture {
  padding-bottom: 40px;
}

#about-culture .section-title span {
  color: var(--navy-light);
}

.culture-text {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.culture-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
  font-weight: 300;
}
