* {
  box-sizing: border-box;
}

:root {
  --navy-950: #06101d;
  --navy-900: #091827;
  --navy-800: #0d263d;
  --navy-700: #153c5c;
  --blue: #168de2;
  --blue-light: #4cb3ff;
  --ink: #101820;
  --muted: #5f6c78;
  --line: #dfe6ec;
  --surface: #f4f7f9;
  --white: #ffffff;
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(6, 16, 29, .92);
  backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, .08);
}

.nav-wrap {
  width: min(calc(100% - 40px), var(--max));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .48);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: .08em;
}

.brand-copy small {
  color: rgba(255, 255, 255, .62);
  font-size: 9px;
  letter-spacing: .13em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .04em;
  transition: color .2s ease;
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav .nav-cta {
  padding: 10px 17px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .42);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(112deg, rgba(6,16,29,.98) 0%, rgba(7,27,45,.95) 54%, rgba(14,64,98,.92) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, black, transparent 88%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.hero-glow-one {
  width: 520px;
  height: 520px;
  right: -130px;
  top: 12%;
  background: radial-gradient(circle, rgba(55,165,240,.26), transparent 67%);
}

.hero-glow-two {
  width: 360px;
  height: 360px;
  left: 38%;
  bottom: -180px;
  background: radial-gradient(circle, rgba(35,128,196,.22), transparent 67%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 110px;
  padding-bottom: 80px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .22em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -.05em;
}

.hero-en {
  margin: 16px 0 36px;
  color: rgba(255, 255, 255, .55);
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: .18em;
}

.slogan {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: #087bc8;
}

.button-ghost {
  border-color: rgba(255, 255, 255, .32);
  color: var(--white);
  background: rgba(255,255,255,.04);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 56px;
}

.hero-tags span {
  padding: 7px 18px;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.hero-tags span:first-child {
  padding-left: 0;
  border-left: 0;
}

.scroll-cue {
  position: absolute;
  right: 44px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
  letter-spacing: .22em;
  text-decoration: none;
  transform: rotate(90deg);
  transform-origin: right bottom;
}

.scroll-cue i {
  width: 62px;
  height: 1px;
  background: rgba(255, 255, 255, .34);
}

.section {
  padding: 112px 0;
}

.split-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 110px;
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.18;
  letter-spacing: -.04em;
}

.intro-copy {
  padding-top: 29px;
}

.intro-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  color: var(--navy-800);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid var(--navy-800);
}

.services {
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}

.section-heading > p {
  max-width: 460px;
  color: var(--muted);
  margin: 0 0 7px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e5ebef;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 46px rgba(13,38,61,.10);
}

.service-number {
  position: absolute;
  right: 18px;
  top: 15px;
  color: #cfd9e1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.service-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 56px 0 38px;
  color: var(--blue);
  border: 1px solid #bdd8ea;
  font-size: 31px;
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.strengths {
  padding-top: 0;
  background: var(--surface);
}

.strength-panel {
  padding: 74px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 90px;
  color: var(--white);
  background: var(--navy-900);
}

.section-kicker.light {
  color: var(--blue-light);
}

.strength-panel h2 {
  max-width: 470px;
}

.strength-list {
  border-top: 1px solid rgba(255,255,255,.16);
}

.strength-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.strength-item span {
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 800;
}

.strength-item p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

.journal-card {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 90px;
  align-items: center;
}

.journal-copy > p:not(.section-kicker) {
  max-width: 590px;
  color: var(--muted);
  font-size: 17px;
}

.button-dark {
  margin-top: 14px;
  color: var(--white);
  background: var(--navy-900);
}

.ig-preview {
  min-height: 390px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(16,74,112,.96), rgba(7,19,31,.98));
  box-shadow: 0 24px 60px rgba(10,37,59,.20);
  transition: transform .25s ease;
}

.ig-preview:hover {
  transform: translateY(-7px);
}

.ig-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ig-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-900);
  background: var(--white);
  font-weight: 900;
}

.ig-top div:last-child {
  display: flex;
  flex-direction: column;
}

.ig-top small {
  color: rgba(255,255,255,.54);
}

.ig-lines {
  display: grid;
  gap: 18px;
}

.ig-lines span {
  display: block;
  height: 1px;
  background: rgba(255,255,255,.13);
}

.ig-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.ig-footer span {
  color: rgba(255,255,255,.68);
}

.ig-footer strong {
  font-size: 32px;
  font-weight: 400;
}

.contact {
  color: var(--white);
  background: var(--navy-950);
}

.contact-grid {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: 90px;
}

.contact-copy p:last-child {
  max-width: 480px;
  color: rgba(255,255,255,.58);
}

.contact-list {
  border-top: 1px solid rgba(255,255,255,.16);
}

.contact-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 93px;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.16);
  transition: padding .2s ease, background .2s ease;
}

.contact-item:hover {
  padding-left: 14px;
  background: rgba(255,255,255,.03);
}

.contact-item.featured {
  background: var(--blue);
  padding-inline: 20px;
  border-bottom: 0;
}

.contact-item.featured:hover {
  padding-left: 28px;
}

.contact-label {
  color: rgba(255,255,255,.48);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}

.contact-item strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.contact-item i {
  color: rgba(255,255,255,.52);
  font-style: normal;
  font-size: 13px;
}

.site-footer {
  padding: 36px 0;
  color: rgba(255,255,255,.52);
  background: #030a12;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 50px;
  align-items: center;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
}

.footer-grid strong {
  color: var(--white);
  letter-spacing: .08em;
}

.footer-grid span {
  font-size: 10px;
  letter-spacing: .13em;
}

.footer-grid p {
  margin: 0;
  font-size: 12px;
}

.footer-grid a {
  color: rgba(255,255,255,.64);
  text-decoration: none;
  font-size: 12px;
}

.floating-line {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #06c755;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
  transition: transform .2s ease;
}

.floating-line:hover {
  transform: translateY(-4px);
}

.mobile-break {
  display: none;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6,16,29,.98);
    border: 1px solid rgba(255,255,255,.10);
  }

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

  .site-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .site-nav .nav-cta {
    margin-top: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.35);
  }

  .nav-toggle {
    display: block;
  }

  .split-layout,
  .strength-panel,
  .journal-card,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

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

  .strength-panel {
    padding: 55px 40px;
  }

  .contact-grid {
    gap: 55px;
  }
}

@media (max-width: 680px) {
  .container,
  .nav-wrap {
    width: min(calc(100% - 30px), var(--max));
  }

  .nav-wrap {
    height: 70px;
  }

  .site-nav {
    top: 70px;
    left: 15px;
    right: 15px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-en {
    letter-spacing: .10em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .hero-tags span {
    padding: 8px 0;
    border-left: 0;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 82px 0;
  }

  .section h2 {
    font-size: 38px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 20px;
  }

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

  .service-card {
    min-height: 270px;
  }

  .strengths {
    padding-top: 0;
  }

  .strength-panel {
    padding: 44px 24px;
  }

  .ig-preview {
    min-height: 340px;
    padding: 25px;
  }

  .contact-item {
    grid-template-columns: 1fr auto;
    gap: 7px 18px;
    padding: 18px 0;
  }

  .contact-label {
    grid-column: 1 / -1;
  }

  .contact-item.featured {
    padding: 20px;
  }

  .contact-item i {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mobile-break {
    display: initial;
  }
}


/* V3: service photo cards */
.service-grid-photo {
  align-items: stretch;
}

.service-card-photo {
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #dbe3e9;
}

.service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,16,29,.26), transparent 46%);
  pointer-events: none;
}

.service-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.service-card-photo:hover .service-image img {
  transform: scale(1.055);
}

.service-card-photo .service-number {
  z-index: 2;
  top: 16px;
  right: 17px;
  min-width: 38px;
  padding: 5px 8px;
  color: #fff;
  text-align: center;
  background: rgba(6,16,29,.68);
  backdrop-filter: blur(8px);
}

.service-body {
  flex: 1;
  padding: 27px 27px 30px;
}

.service-card-photo h3 {
  margin-bottom: 12px;
}

.service-card-photo p {
  line-height: 1.7;
}

/* Deliberate crops for each source image */
.service-card-photo:nth-child(1) .service-image img {
  object-position: center 38%;
}

.service-card-photo:nth-child(2) .service-image img {
  object-position: center 54%;
}

.service-card-photo:nth-child(3) .service-image img {
  object-position: center 50%;
}

.service-card-photo:nth-child(4) .service-image img {
  object-position: center 44%;
}

@media (max-width: 680px) {
  .service-image {
    height: 245px;
  }
}


/* V4: compact Instagram card */
.ig-preview-compact {
  min-height: 300px;
  padding: 30px;
}

.ig-main {
  margin: 28px 0 26px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.ig-label {
  display: block;
  margin-bottom: 9px;
  color: var(--blue-light);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .20em;
}

.ig-main strong {
  display: block;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.35;
}

.ig-main p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 14px;
}

.ig-preview-compact .ig-footer {
  margin-top: auto;
}

@media (max-width: 680px) {
  .ig-preview-compact {
    min-height: 280px;
  }
}


/* V5: clearer fully-clickable contact rows */
.contact-item {
  cursor: pointer;
  position: relative;
}

.contact-item::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, rgba(22,141,226,.17), rgba(22,141,226,.03));
  pointer-events: none;
  transition: opacity .2s ease;
}

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

.contact-item > * {
  position: relative;
  z-index: 1;
}

.contact-item:active {
  transform: translateY(1px);
}

.contact-item i {
  transition: transform .2s ease, color .2s ease;
}

.contact-item:hover i {
  transform: translateX(5px);
  color: #fff;
}
