/* iFast Financial Press — rebuilt to match the current live site's style tokens:
   orange #f17703, headings #151515, body 14px Raleway #4a4949, white/gray sections.
   Fonts: Raleway (English, self-hosted) with Heiti TC as the CJK fallback. */

@font-face { font-family: "Raleway"; font-style: normal; font-weight: 200; font-display: swap; src: url("../fonts/raleway-200-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2039-203A, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/raleway-300-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2039-203A, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/raleway-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2039-203A, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/raleway-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2039-203A, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/raleway-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2039-203A, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  --orange: #f17703;
  --ink: #151515;
  --body: #4a4949;
  --muted: #9b9b9b;
  --line: #e0e0e0;
  --gray-bg: #f7f7f7;
  --font: "Raleway", "Heiti TC", "Microsoft YaHei", "SimHei", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 14px; font-weight: 400; line-height: 1.75; color: var(--body); background: #fff; }

h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--ink); font-weight: 400; line-height: 1.25; }
h1 { font-size: 44px; }
h2 { font-size: 38px; }
h3 { font-size: 28px; }
h4 { font-size: 20px; }
@media (max-width: 767px) {
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: #c96303; }
p + p { margin-top: 14px; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-gray { background: var(--gray-bg); }
.section h2, .section > .container > h1 { margin-bottom: 28px; }
.text-center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; font-size: 13px; }
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-block; background: var(--orange); color: #fff; border: 0; cursor: pointer; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 30px; border-radius: 3px; transition: background 0.2s ease; text-align: center; }
.btn:hover { background: var(--ink); color: #fff; }
.btn:disabled { cursor: wait; opacity: 0.7; }
.btn:disabled:hover { background: var(--orange); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: var(--orange); }
.btn-line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.send-spin { display: inline-block; width: 13px; height: 13px; margin-right: 9px; vertical-align: -2px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: send-spin 0.7s linear infinite; }
@keyframes send-spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- header */
.header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 26px 14px; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.nav > li > a:hover, .nav > li > a.is-here { color: var(--orange); }
.nav .caret { font-size: 9px; margin-left: 4px; }
.drop { display: none; position: absolute; left: 0; top: 100%; min-width: 300px; background: #fff; border: 1px solid #eee; border-top: 2px solid var(--orange); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); list-style: none; padding: 8px 0; z-index: 110; }
.nav > li:hover > .drop, .nav > li:focus-within > .drop { display: block; }
.drop a { display: block; padding: 9px 20px; color: var(--body); font-size: 13px; }
.drop a:hover { color: var(--orange); background: var(--gray-bg); }
.nav-cta { margin-left: 10px; white-space: nowrap; }
/* mid-width screens: tighten the bar instead of letting items wrap */
@media (max-width: 1330px) and (min-width: 1024px) {
  .nav > li > a { padding: 26px 8px; font-size: 11px; letter-spacing: 0.05em; }
  .nav .caret { margin-left: 2px; }
  .nav-cta { padding: 11px 14px; font-size: 11px; margin-left: 6px; }
  .brand img { height: 34px; width: auto; }
}
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 3px; width: 46px; height: 42px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); }
.burger span { top: 20px; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

/* mobile menu */
@media (max-width: 1023px) {
  .nav, .nav-cta { display: none; }
  .burger { display: block; }
  .m-menu { display: none; position: fixed; inset: 0; z-index: 200; background: #fff; overflow-y: auto; padding: 20px; }
  .m-menu.is-open { display: block; }
  .m-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .m-close { background: none; border: 1px solid var(--line); border-radius: 3px; width: 44px; height: 40px; font-size: 18px; cursor: pointer; color: var(--ink); }
  .m-menu ul { list-style: none; }
  .m-menu > ul > li { border-bottom: 1px solid #eee; }
  .m-menu > ul > li > a { display: block; padding: 15px 4px; color: var(--ink); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
  .m-sub { padding: 0 4px 12px 16px; }
  .m-sub a { display: block; padding: 7px 0; color: var(--body); font-size: 14px; }
  .m-menu .btn { width: 100%; margin-top: 18px; }
}
@media (min-width: 1024px) { .m-menu { display: none !important; } }

/* --------------------------------------------------------------- carousel */
.hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid #eee; }
.slides { display: flex; align-items: center; transition: transform 0.55s ease, height 0.4s ease; }
/* flex-basis (not min-width) so each slide sizes to the track, never to its own content */
.slide { flex: 0 0 100%; max-width: 100%; min-width: 0; padding: 44px 0 56px; }
/* text left / visual right, mirroring the client's slide layout;
   on phones the visual moves above the copy */
.slide-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 46px; align-items: center; }
.slide-text h1 { margin-bottom: 18px; }
.slide-text .checks { list-style: none; margin-top: 20px; }
.slide-text .checks li { padding: 4px 0 4px 26px; position: relative; color: var(--orange); font-weight: 500; }
.slide-text .checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.slide-visual img { width: 100%; max-width: 470px; height: auto; margin: 0 auto; }
/* phones: the artwork sits behind the copy at its stacked-layout size, faded
   just enough to stay recognisable without fighting the text */
@media (max-width: 900px) {
  .slide { padding: 0; }
  .slide-in { display: block; position: relative; overflow: hidden; padding: 36px 20px 56px; }
  .slide-visual { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 330px; max-width: 84%; z-index: 0; opacity: 0.3; pointer-events: none; }
  .slide-visual img { width: 100%; height: auto; max-width: none; }
  .slide-text { position: relative; z-index: 1; }
}
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-radius: 3px; width: 44px; height: 44px; font-size: 17px; color: var(--ink); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.hero-arrow:hover { background: var(--ink); color: #fff; }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; z-index: 20; }
.hero-dots button { width: 26px; height: 4px; border: 0; border-radius: 2px; background: #ddd; cursor: pointer; padding: 0; }
.hero-dots button.is-on { background: var(--orange); }
@media (max-width: 900px) {
  .slide { padding: 14px 0 44px; }
  .hero-arrow { top: auto; bottom: 8px; transform: none; width: 40px; height: 36px; }
}

/* ------------------------------------------------------------ about tabs */
.tabs { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.tab-list { list-style: none; border: 1px solid #eee; }
.tab-list button { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #eee; padding: 15px 18px; font-family: var(--font); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.tab-list button.is-on { background: var(--orange); color: #fff; }
.tab-pane { display: none; }
.tab-pane.is-on { display: block; }
.tab-pane h3 { margin-bottom: 16px; }
.cert-img { margin-top: 20px; text-align: center; }
.cert-img img { width: 70%; max-width: 700px; border: 1px solid #ddd; border-radius: 4px; margin: 0 auto; }
@media (max-width: 900px) { .tabs { grid-template-columns: 1fr; gap: 22px; } .cert-img img { width: 100%; } }

/* --------------------------------------------------------------- numbers */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; margin-top: 40px; text-align: center; }
.num-big { font-size: 52px; font-weight: 200; color: var(--ink); line-height: 1.1; }
.num-big .unit { color: var(--orange); font-size: 30px; }
.num-label { margin-top: 8px; color: var(--muted); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.num-detail { margin-top: 12px; font-size: 13px; color: var(--body); }
.num-detail div { padding: 1.5px 0; }
.pair-grid { margin-top: 12px; font-size: 13px; }
.pair-grid div { display: flex; justify-content: center; gap: 8px; padding: 1.5px 0; }
.pair-grid span:nth-child(2) { color: var(--orange); }
@media (max-width: 900px) { .numbers { grid-template-columns: 1fr; gap: 34px; } }

/* ------------------------------------------------------------ translators */
.team-cat { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.team-cat:first-child { margin-top: 34px; }
.team-cat-no { color: var(--orange); font-weight: 600; font-size: 15px; }
.team-cat h3 { font-size: 24px; }
.team-cat-count { color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tcard { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; cursor: pointer; padding: 0; font-family: var(--font); transition: box-shadow 0.22s ease, transform 0.22s ease; }
.tcard:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1); transform: translateY(-3px); }
.tcard-photo { display: block; aspect-ratio: 1 / 0.92; overflow: hidden; background: #f2f2f2; }
.tcard-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.35s ease; }
.tcard:hover .tcard-photo img { transform: scale(1.04); }
.tcard-body { display: block; padding: 16px 18px 18px; }
.tcard-name { display: block; font-size: 20px; color: var(--ink); }
.tcard-role { display: block; color: var(--orange); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin: 3px 0 8px; }
.tcard-langs { display: block; color: var(--body); font-size: 13px; margin-bottom: 10px; }
.tcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tcard-tags i { font-style: normal; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--body); border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

/* translator detail modal */
.team-modal-wrap { position: relative; max-width: 900px; width: 100%; }
/* the extra selector outranks the generic .modal-box cap defined further down */
.team-modal-wrap .team-modal-box { max-width: none; width: 100%; max-height: 84vh; overflow-y: auto; padding: 42px 48px; }
.team-detail-head { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
/* direct child only — the credential badges inside the head keep their own size */
.team-detail-head > img { width: 170px; height: 170px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); }
.team-detail-head h4 { font-size: 30px; margin-bottom: 2px; }
.team-detail-head .tcard-langs { margin-bottom: 10px; }
.team-badges { display: flex; gap: 14px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
.team-badges img { height: 20px; width: auto; object-fit: contain; }
/* qualifications and highlights sit side by side on wide screens */
.team-detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }
@media (max-width: 720px) { .team-detail-cols { grid-template-columns: 1fr; } }
.team-close { top: -16px; right: -16px; z-index: 6; border-radius: 50%; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18); }
.team-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 50%; font-size: 15px; color: var(--ink); cursor: pointer; z-index: 6; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14); }
.team-nav:hover { background: var(--ink); color: #fff; }
.team-prev { left: -58px; }
.team-next { right: -58px; }
@media (max-width: 880px) {
  .team-prev { left: 6px; top: auto; bottom: -20px; transform: none; }
  .team-next { right: 6px; top: auto; bottom: -20px; transform: none; }
  .team-close { top: -14px; right: 2px; }
  .team-modal-box { padding: 28px 22px 44px; max-height: 78vh; }
  .team-detail-head { grid-template-columns: 96px 1fr; gap: 14px; }
  .team-detail-head > img { width: 96px; height: 96px; }
  .team-badges img { height: 18px; }
}

.pair-more { margin-top: 10px; color: var(--muted); font-size: 12.5px; letter-spacing: 0.06em; }

/* profile blocks (shared by the translator modal) */
.profile h1 { display: inline-block; border-bottom: 3px solid var(--orange); padding-bottom: 6px; margin-bottom: 6px; }
.profile .role { color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 24px; }
.p-block { margin-top: 26px; }
.p-label { display: inline-block; background: var(--gray-bg); border-left: 3px solid var(--orange); padding: 5px 14px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.p-block ul { list-style: none; }
.p-block li { padding: 3px 0 3px 24px; position: relative; }
.p-block li::before { content: "\2714"; position: absolute; left: 0; color: var(--orange); }
.p-bio { font-style: italic; }

/* ------------------------------------------------------------- features */
.feature { border-bottom: 1px solid #eee; padding: 20px 0; }
.feature:last-child { border-bottom: 0; }
.feature b { color: var(--orange); text-transform: uppercase; letter-spacing: 0.04em; }

/* collapsible block: clamped body with a fade, View More toggle */
.fold-body { overflow: hidden; position: relative; transition: max-height 0.45s ease; }
.fold-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; opacity: 1; transition: opacity 0.3s ease; }
.section-gray .fold-body::after { background: linear-gradient(rgba(247, 247, 247, 0), var(--gray-bg)); }
.fold.is-open .fold-body::after { opacity: 0; }
.fold-btn { display: block; margin: 18px auto 0; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 34px; transition: background 0.2s ease, color 0.2s ease; }
.fold-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.fold-btn span { font-size: 10px; margin-left: 6px; }
.fold-btn-sm { margin: 12px 0 0; padding: 8px 20px; font-size: 10.5px; }

/* three-column standards */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 36px; }
.std h4 { border-left: 4px solid var(--orange); padding-left: 12px; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.std h5 { color: var(--orange); font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.std ul { list-style: none; }
.std li { padding: 6px 0; }
.std li b { color: var(--ink); }
.std .bonus { color: var(--orange); font-weight: 700; margin-top: 12px; }
@media (max-width: 900px) { .cols3 { grid-template-columns: 1fr; } }

/* risk-free cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.riskcard { border: 1px solid var(--line); border-radius: 6px; border-bottom: 3px solid var(--orange); background: #fff; padding: 24px 22px; }
.riskcard h4 { color: var(--orange); font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.riskcard.dark { background: var(--ink); border-color: var(--ink); }
.riskcard.dark h4 { color: #fff; }
.riskcard.dark p { color: #ddd; }
.acc-badges { display: flex; gap: 26px; margin-bottom: 10px; }
.acc-badges span { color: var(--orange); font-weight: 700; font-size: 20px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- issuers */
.issuer-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; margin-top: 36px; }
/* every card gets the same image box and a fixed two-line caption slot so the
   wall reads as one even grid regardless of each logo's own proportions */
.issuer { display: flex; flex-direction: column; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 14px 10px 12px; text-align: center; cursor: pointer; font-family: var(--font); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.issuer:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09); transform: translateY(-2px); }
.issuer img { height: 54px; width: 100%; margin: 0 0 10px; object-fit: contain; }
.issuer figcaption { font-size: 11px; line-height: 1.4; color: var(--body); min-height: calc(11px * 1.4 * 2); display: flex; align-items: center; justify-content: center; }
@media (max-width: 1100px) { .issuer-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 900px) { .issuer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .issuer-grid { grid-template-columns: repeat(2, 1fr); } }

/* modal */
.modal { display: none; position: fixed; inset: 0; z-index: 400; background: rgba(21, 21, 21, 0.72); padding: 20px; }
.modal.is-open { display: flex; align-items: center; justify-content: center; }
.modal-box { background: #fff; border-radius: 6px; max-width: 520px; width: 100%; padding: 34px 32px; position: relative; }
.modal-box h4 { padding-right: 40px; margin-bottom: 12px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 3px; font-size: 17px; cursor: pointer; color: var(--ink); }
.modal-close:hover { background: var(--ink); color: #fff; }

/* past cases heading with the client's logo */
.past-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.past-head img { height: 62px; width: auto; flex: none; }
.past-head h2 { margin-bottom: 0; }

/* ---------------------------------------------------------- doc viewer */
.doc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.doc-col { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--gray-bg); flex-wrap: wrap; }
.doc-head strong { color: var(--ink); }
.doc-head .doc-btns { display: flex; gap: 8px; }
.doc-head a { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 14px; border-radius: 3px; background: var(--orange); color: #fff; }
.doc-head a:hover { background: var(--ink); }
/* iframe PDF embeds are unreliable (Safari auto-downloads, blank renders) —
   every device gets a first-page still that opens the PDF in a new tab */
.doc-thumb { display: block; position: relative; max-height: 540px; overflow: hidden; background: #fafafa; }
.doc-thumb img { width: 100%; height: auto; }
.doc-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.doc-open { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 9px 18px; border-radius: 3px; opacity: 0.92; transition: background 0.2s ease; }
.doc-thumb:hover .doc-open { background: var(--orange); }
@media (max-width: 900px) {
  .doc-duo { grid-template-columns: 1fr; }
  .doc-thumb { max-height: 430px; }
}

/* ------------------------------------------- workstream step diagram */
.wsteps { margin-top: 40px; }
.wstep-nav { display: grid; grid-template-columns: repeat(7, 1fr); align-items: start; margin-bottom: 30px; }
/* a button centres its content box vertically by default, so equal-height
   buttons with different label lengths would stagger the dots — flex from the
   top instead, and give every label the same three-line slot */
.wstep { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; background: none; border: 0; cursor: pointer; font-family: var(--font); padding: 0 7px; text-align: center; }
/* connector running between the numbered nodes */
.wstep::before { content: ""; position: absolute; top: 21px; left: calc(-50% + 29px); right: calc(50% + 29px); height: 2px; background: #f3dcc2; }
.wstep:first-child::before { display: none; }
.wstep-dot { display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--orange); background: #fff; color: var(--orange); font-weight: 700; font-size: 17px; position: relative; z-index: 2; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.wstep:hover .wstep-dot { box-shadow: 0 0 0 5px #fdeede; }
.wstep.is-on .wstep-dot { background: var(--orange); color: #fff; box-shadow: 0 0 0 5px #fdeede; }
.wstep-label { display: block; font-size: 11.5px; line-height: 1.45; font-weight: 600; letter-spacing: 0.02em; color: var(--body); min-height: calc(11.5px * 1.45 * 3); }
.wstep.is-on .wstep-label { color: var(--orange); }
.wstep-panels { border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 6px; background: #fff; padding: 28px 32px; }
.wstep-panel { display: none; }
.wstep-panel.is-on { display: block; }
.wstep-panel h4 { color: var(--orange); font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.wstep-panel ul { list-style: none; }
.wstep-panel li { padding: 5px 0 5px 24px; position: relative; }
.wstep-panel li::before { content: "\2713"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
@media (max-width: 900px) {
  .wstep-nav { grid-template-columns: 1fr; gap: 4px; margin-bottom: 22px; }
  .wstep { flex-direction: row; align-items: center; gap: 13px; text-align: left; padding: 5px 2px; }
  .wstep::before { display: none; }
  .wstep-dot { margin: 0; width: 38px; height: 38px; font-size: 15px; flex: none; }
  .wstep-label { font-size: 13px; min-height: 0; }
  .wstep-panels { padding: 22px 18px; }
}

/* ----------------------------------------------------------------- form */
.rfq-wrap { max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 30px; }
.f-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea { width: 100%; font-family: var(--font); font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; transition: border-color 0.2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field textarea { min-height: 130px; resize: vertical; }
.phone-row { display: flex; gap: 10px; }
.phone-row select { width: 92px; flex: none; }

/* date picker */
.date-field { position: relative; }
.date-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; font-family: var(--font); font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; cursor: pointer; transition: border-color 0.2s ease; }
.date-trigger:hover, .date-trigger:focus { border-color: var(--orange); outline: none; }
.date-trigger svg { color: var(--muted); flex: none; }
.date-trigger .is-empty { color: #9a9a9a; }
.date-pop { display: none; position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: 300px; max-width: 92vw; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14); padding: 14px; }
.date-pop.is-open { display: block; }
.date-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.date-head strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.date-head button { width: 32px; height: 30px; background: #fff; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; color: var(--ink); }
.date-head button:hover { background: var(--ink); color: #fff; }
.date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.date-dow { margin-bottom: 4px; }
.date-dow span { text-align: center; font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; padding: 3px 0; }
.date-grid button { aspect-ratio: 1; background: #fff; border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-family: var(--font); font-size: 13px; color: var(--ink); }
.date-grid button:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.date-grid button:disabled { color: #ccc; cursor: default; }
.date-grid button.is-today { border-color: var(--line); }
.date-grid button.is-picked { background: var(--orange); color: #fff; }
.date-foot { display: flex; gap: 8px; margin-top: 12px; }
.date-foot button { flex: 1; background: var(--gray-bg); border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font-family: var(--font); font-size: 11.5px; letter-spacing: 0.04em; padding: 8px 4px; color: var(--body); }
.date-foot button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--muted); }
.form-error { display: none; margin-top: 16px; background: #fdf0e6; border-left: 3px solid var(--orange); padding: 12px 15px; color: #8a4a05; font-size: 13px; }
.form-error.is-on { display: block; }
/* once submitted, the form gives way to a clear confirmation card */
form.is-done .form-grid, form.is-done .submit-btn, form.is-done .form-error { display: none; }
.form-sent { display: none; margin-top: 24px; background: #fff; border: 1px solid var(--line); border-top: 3px solid #3f8f3f; border-radius: 6px; padding: 46px 30px 50px; text-align: center; }
.form-sent.is-on { display: block; }
.sent-icon { width: 58px; height: 58px; border-radius: 50%; background: #3f8f3f; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 18px; }
.form-sent h3 { margin-bottom: 10px; }
.form-sent p { color: var(--body); max-width: 420px; margin: 0 auto; }
.submit-btn { width: 100%; margin-top: 24px; padding: 16px; font-size: 13px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- contact */
.team-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 34px; align-items: start; }
.namecard { border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 6px; background: #fff; padding: 28px 26px; }
.namecard h4 { font-size: 24px; }
.namecard .role { color: var(--orange); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 4px 0 14px; }
.namecard .mail { margin-top: 16px; font-weight: 600; }
@media (max-width: 900px) { .team-duo { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin-top: 16px; }
.contact-list li { padding: 4px 0; }
.contact-list b { color: var(--ink); font-weight: 600; }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 34px; }
.office h4 { margin-bottom: 8px; }
/* two-line slot keeps both maps starting on the same line regardless of address length */
.office p { margin-bottom: 14px; min-height: 50px; }
.office a.map-link { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.office a.map-link img { width: 100%; height: auto; }
@media (max-width: 900px) { .offices { grid-template-columns: 1fr; } .office p { min-height: 0; } }

.pay-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; align-items: center; justify-content: center; }
.pay-row img { height: 44px; width: auto; border: 1px solid #eee; border-radius: 4px; padding: 6px 14px; background: #fff; box-sizing: content-box; }

/* office environment carousel — fixed frame, photos of any orientation cover it */
.photo-hero { position: relative; overflow: hidden; margin-top: 38px; border: 1px solid var(--line); border-radius: 6px; }
.photo-slides { align-items: stretch; }
.photo-slide { flex: 0 0 100%; max-width: 100%; min-width: 0; height: 620px; }
.photo-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-dots { bottom: 14px; }
.photo-dots button { background: rgba(255, 255, 255, 0.65); }
.photo-dots button.is-on { background: var(--orange); }
.photo-hero .hero-arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
@media (max-width: 900px) { .photo-slide { height: 400px; } .photo-hero .hero-arrow { width: 38px; height: 38px; } }

/* ---------------------------------------------------------------- footer */
/* every column shares the same 40px header block and 36px row rhythm, so
   lines align horizontally across the whole footer like a table */
.footer { background: var(--ink); color: #cfcfcf; margin-top: 70px; }
.footer-in { display: grid; grid-template-columns: 1.5fr 0.7fr 1.05fr 0.95fr; gap: 40px; padding: 58px 0 46px; }
.footer h5 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 26px; margin: 0 0 14px; }
.footer ul { list-style: none; }
.footer li { font-size: 13px; min-height: 36px; display: flex; align-items: center; padding: 0; }
.footer a { color: #cfcfcf; }
.footer a:hover { color: var(--orange); }
.footer .avail { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.f-brand-row { display: flex; align-items: center; gap: 12px; height: 26px; margin-bottom: 14px; }
/* measured at 4x: the wordmark's baseline rendered 3px below the text's, so
   the image is nudged up until the two baselines sit on one line */
.footer-logo { height: 26px; width: auto; margin: 0; position: relative; top: -5px; }
.f-brand-tail { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; line-height: 1; border-left: 2px solid rgba(255, 255, 255, 0.4); padding-left: 12px; white-space: nowrap; }
.f-points li { position: relative; padding-left: 22px; font-size: 12px; }
.f-points li::before { content: "\2713"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--orange); font-weight: 700; }
.f-nav a { display: inline-block; }
.f-cta p { font-size: 13.5px; }
.f-cta .f-cta-lead { min-height: 36px; display: flex; align-items: center; margin: 0; }
/* contact rows: icon or flag + value, one aligned line each */
.f-contact li { gap: 11px; }
.f-ic { display: inline-flex; width: 22px; justify-content: center; color: var(--orange); flex: none; }
.f-ic svg { width: 17px; height: 17px; }
.f-flag { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; flex: none; }
.footer-bottom { border-top: 1px solid #262626; padding: 18px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 1023px) { .footer-in { grid-template-columns: 1fr 1fr; gap: 34px 40px; } }
@media (max-width: 640px) { .footer-in { grid-template-columns: 1fr; gap: 30px; } }

/* ---------------------------------------------------------- privacy policy */
.pp-wrap { max-width: 860px; }
.pp h1 { margin-bottom: 6px; }
.pp-sub { color: var(--body); font-size: 15px; margin-bottom: 16px; }
.pp-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.pp-meta span { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 5px 12px; background: var(--gray-bg); }
.pp-section { margin-top: 34px; border-top: 1px solid #eee; padding-top: 26px; }
.pp-section h3 { font-size: 20px; display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.pp-section h3 span { color: var(--orange); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; flex: none; }
.pp ul { list-style: none; margin: 10px 0; }
.pp li { position: relative; padding: 4px 0 4px 22px; }
.pp li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.pp b { color: var(--ink); }

@media print { .header, .footer, .m-menu, .hero-arrow, .hero-dots { display: none !important; } }
