/* 火鱼 Firefish — cn.firefish.com
   Plain HTML + CSS rebuild of the original one-page site. */

:root {
  --ink: #222;
  --black: #000;
  --white: #fff;
  --grey: #8c8c8c;
  --rule-light: rgba(255, 255, 255, .55);
  --rule-dark: #9a9a9a;
  --pink: #e6007e;
  --wrap: 1080px;
  --font: Montserrat, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--white); color: var(--black); padding: 10px 16px;
}
.skip:focus { left: 10px; top: 10px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 60px);
  margin: 0 auto;
  padding: 0 30px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  background: #1b1b1b url("../images/firefish-bg_19years-of-expertise.jpg") center center / cover no-repeat;
  color: var(--white);
  display: flex;
  align-items: flex-start;
}
.hero__inner { padding-top: 43.5vh; padding-bottom: 12vh; }
.hero__logo { width: 210px; margin-left: 47px; }
.hero h1 {
  margin: 20px 0 0 47px;
  max-width: 9.6em;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 30px 0 60px; }
.section--dark { background: var(--ink); color: var(--white); }
.section--light { background: var(--white); color: var(--ink); }

.eyebrow {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}
.title {
  margin: 0 0 18px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
}
.section--dark .title { color: var(--white); }
.eyebrow + .cols { margin-top: 20px; }
.title + .cols { margin-top: 20px; }

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.col > :first-child { margin-top: 0; }

p { margin: 0 0 20px; }
.lead { font-size: 23px; font-weight: 400; line-height: 1.5; }

hr {
  border: 0;
  border-top: 1px solid var(--rule-dark);
  margin: 4px 0 24px;
}
.section--dark hr { border-top-color: var(--rule-light); }

/* About: chevron bottom edge */
.section--chevron {
  padding-bottom: 150px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 85px), 50% 100%, 0 calc(100% - 85px));
  margin-bottom: -1px;
}

.clients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px 0;
  justify-items: center;
}
.clients img { width: 150px; }

/* Brandgrammar */
.section--mountains {
  background: var(--white) url("../images/firefish-bg_firebrand.png") center bottom / 100% auto no-repeat;
  padding-bottom: 50px;
}
.col--figure { text-align: center; }
.bg-logo { width: 350px; margin: 0 auto 30px; }
.col--figure figure img { margin: 0 auto; }

.cols--pyramid { grid-template-columns: 710fr 340fr; }
.cols--pyramid figure img { width: 100%; }
.subhead { margin: 0 0 9px; font-size: 18px; font-weight: 700; line-height: 1.3; }

/* ---------- Case studies ---------- */
.section--case { padding: 70px 0 80px; }
.section--case .title { margin-bottom: 0; }
.case-link { margin: 4px 0 40px; font-size: 13px; font-weight: 300; }
.case-link a { color: var(--grey); text-decoration: none; }
.case-link a:hover, .case-link a:focus { text-decoration: underline; }

.section--slant {
  padding-bottom: 150px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%);
}
.section--slant + .section--case { padding-top: 30px; }
.section--slant-top {
  padding-top: 130px;
  clip-path: polygon(0 70px, 100% 0, 100% 100%, 0 100%);
  margin-top: -70px;
}

/* Auto-rotating gallery, CSS only. Six images, five seconds each. */
.slides {
  position: relative;
  aspect-ratio: 1070 / 605;
  margin: 0 5px 40px;
  background: #e9e9e9;
  overflow: hidden;
}
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slide 30s infinite;
}
.slides img:nth-child(1) { animation-delay: 0s; }
.slides img:nth-child(2) { animation-delay: 5s; }
.slides img:nth-child(3) { animation-delay: 10s; }
.slides img:nth-child(4) { animation-delay: 15s; }
.slides img:nth-child(5) { animation-delay: 20s; }
.slides img:nth-child(6) { animation-delay: 25s; }
@keyframes slide {
  0% { opacity: 0; }
  3% { opacity: 1; }
  16.6% { opacity: 1; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}

.section--case .lead, .section--case hr, .twocol { margin-left: 5px; margin-right: 5px; }
.twocol { columns: 2; column-gap: 36px; }
.twocol p { break-inside: avoid; }

/* ---------- FAQ ---------- */
.section--faq { padding: 70px 0 60px; }
.faq { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 60px; }
.faq div { border-top: 1px solid #d5d5d5; padding: 22px 0 6px; }
.faq dt { font-size: 20px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.faq dd { margin: 0 0 16px; }
.faq a { color: var(--black); }

/* ---------- Footer ---------- */
.footer {
  background: var(--white) url("../images/firefish-bg_firebrand.png") center top / 100% auto no-repeat;
  padding: 70px 0 50px;
  text-align: center;
}
.contact { margin-bottom: 70px; }
.contact .title { margin-bottom: 10px; }
.btn {
  display: inline-block;
  padding: 14px 34px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}
.btn:hover, .btn:focus { background: var(--pink); }

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}
.social img { width: 120px; margin: 0 auto 6px; }
.social span { font-size: 13px; }
.social strong { font-weight: 700; }
.copyright { margin: 60px 0 0; font-size: 12px; color: #555; }

/* Floating contact button */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
}
.fab:hover, .fab:focus { background: var(--pink); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cols, .cols--pyramid, .faq { grid-template-columns: 1fr; }
  .hero__logo, .hero h1 { margin-left: 0; }
  .lead { font-size: 20px; }
  .twocol { columns: 1; }
  .section--chevron { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 50% 100%, 0 calc(100% - 40px)); padding-bottom: 90px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .clients img { width: 100px; }
  .social { grid-template-columns: 1fr; }
  .eyebrow { font-size: 18px; }
  .title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slides img { animation: none; }
  .slides img:first-child { opacity: 1; }
}

@media print {
  .fab { display: none; }
  .slides img { animation: none; position: static; opacity: 1; }
  .slides { aspect-ratio: auto; }
}
