/* FDE HK: IBM-style grid with a dark hero and light sections, coloured with the 「入」 palette
   (grey paper, ink, vermilion). Type stays IBM Plex Sans / Noto Sans TC. */
:root {
  --ink: #1a1a19;          /* 墨 */
  --ink-2: #3f3f3b;        /* 次墨 */
  --note: #5c5c56;         /* 註 */
  --bg: #e8e7e2;           /* 紙 */
  --bg-alt: #dcdad3;       /* 強調行 */
  --line: #a3a29c;         /* 細線 */
  --dark: #1c1c1b;         /* 深 */
  --dark-2: #262625;
  --dark-line: #55554f;    /* 深細線 */
  --accent: #be0a12;       /* HK red, from the national-team jersey */
  --accent-hover: #8f0a10;
  --accent-bright: #f5384a; /* brighter red for dark backgrounds */
  --on-dark: #e8e7e2;      /* 紙字 */
  --on-dark-2: #a9a8a2;    /* 深註 */
  --font: "IBM Plex Sans", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-header :focus-visible, .hero :focus-visible, .cta :focus-visible, .band :focus-visible { outline-color: var(--accent-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--dark);
  border-bottom: 1px solid rgba(232, 231, 226, 0.1);
  color: var(--on-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); }
.brand-mark { width: 28px; height: 28px; background: var(--bg); color: var(--dark); border-radius: 6px; padding: 4px; }
.brand-text { font-weight: 600; letter-spacing: 0.02em; font-size: 17px; }
.brand-text span { font-weight: 300; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a {
  text-decoration: none; font-size: 14px; color: var(--on-dark-2);
  padding: 0 12px; height: var(--header-h); display: flex; align-items: center;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s, background .15s;
}
.nav a:hover { color: var(--on-dark); background: rgba(232,231,226,.06); border-bottom-color: var(--accent-bright); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang { display: inline-flex; border: 1px solid rgba(232,231,226,.25); }
.lang button {
  font: inherit; font-size: 13px; background: transparent; color: var(--on-dark-2);
  border: 0; padding: 6px 12px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--bg); color: var(--dark); font-weight: 500; }
.menu-toggle { display: none; width: 40px; height: 40px; background: transparent; border: 0; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--on-dark); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons (square) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  padding: 14px 24px; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-dark); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(232,231,226,.45); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(232,231,226,.1); border-color: var(--on-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 56px; align-items: start; align-content: start; padding-top: 80px; padding-bottom: 120px; min-height: min(448px, calc(100vh - var(--header-h)));
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-dark-2); margin-bottom: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(245,56,74,.2); }

/* Staggered all-caps headline: line 2 is pushed to the right edge of the block */
.hero h1 {
  display: flex; flex-direction: column; font-size: clamp(28px, 7.6vw, 48px); font-weight: 700;
  line-height: 1.04; letter-spacing: -0.02em; text-transform: uppercase;
}
.hl { display: block; }
.hl-2 { align-self: flex-end; text-align: right; }
.hl-accent { color: var(--accent-bright); }

.hero-side { align-self: end; }
.bar-accent { width: 56px; height: 4px; background: var(--accent-bright); margin-bottom: 16px; }
.hero-sub { font-size: 21px; font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.lead { font-size: 15px; line-height: 1.6; color: var(--on-dark); margin: 0 0 16px; }
.hero-link { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: 16px; color: var(--on-dark); text-decoration: none; }
.hero-link i { display: grid; place-items: center; width: 28px; height: 28px; background: var(--accent); transition: transform .2s var(--ease-ibm), background-color .15s var(--ease-ibm); }
.hero-link svg { width: 16px; height: 16px; fill: none; stroke: var(--on-dark); stroke-width: 2; }
.hero-link:hover i { transform: translateX(5px); background: var(--accent-hover); }

.hero-pause {
  position: absolute; left: 24px; bottom: 20px; width: 36px; height: 36px; padding: 0; display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(232,231,226,.35); color: var(--on-dark); cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.hero-pause:hover { background: rgba(232,231,226,.12); border-color: var(--on-dark); }
.hero-pause svg { width: 18px; height: 18px; fill: currentColor; }
.hero-pause .ic-play, .hero-pause[aria-pressed="true"] .ic-pause { display: none; }
.hero-pause[aria-pressed="true"] .ic-play { display: block; }

@media (min-width: 1101px) {
  .hero h1 { font-size: clamp(48px, 4.8vw, 68px); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; }
.kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.kicker-light { color: var(--accent-bright); }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 300; letter-spacing: -0.01em; }
.section-intro { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 60ch; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); padding: 32px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.section-alt .card { background: var(--bg); }
.card h3 { font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.card p { color: var(--ink-2); }

/* Numbers band */
.band { background: var(--dark); color: var(--on-dark); }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.band-grid > div { padding: 48px 24px 48px 0; border-left: 1px solid rgba(232,231,226,.14); padding-left: 24px; }
.band-grid > div:first-child { border-left: 0; padding-left: 0; }
.band-grid strong { display: block; font-size: 64px; font-weight: 300; line-height: 1; color: var(--on-dark); margin-bottom: 12px; }
.band-grid span { font-size: 15px; color: var(--on-dark-2); }

/* Phases */
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.phase { background: var(--bg); padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.phase header { margin-bottom: 24px; }
.phase-no { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--note); }
.phase header b { font-size: 12px; color: var(--accent); margin-left: 2px; }
.phase h3 { font-size: 26px; font-weight: 300; margin-top: 8px; }
.phase dl { margin: 0 0 24px; }
.phase dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--note); margin-top: 16px; }
.phase dd { margin: 4px 0 0; font-size: 15px; }
.produce { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.produce span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--note); margin-bottom: 6px; }
.produce strong { font-weight: 500; font-size: 15px; }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.link-arrow { display: inline-flex; gap: 10px; margin-top: 32px; color: var(--accent); text-decoration: none; font-weight: 500; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.checklist li { padding: 20px 0 20px 40px; border-bottom: 1px solid var(--line); position: relative; font-size: 17px; }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 27px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Insight artwork (used by the flip cards) */
.t1 { background: radial-gradient(circle at 20% 80%, #be0a12, transparent 55%), linear-gradient(135deg, #1c1c1b, #3a1f22); }
.t2 { background: radial-gradient(circle at 80% 30%, #f5384a, transparent 55%), linear-gradient(135deg, #1c1c1b, #3b2326); }
.t3 { background: radial-gradient(circle at 50% 100%, #a9a8a2, transparent 60%), linear-gradient(135deg, #262625, #1c1c1b); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.step-no { display: block; font-size: 48px; font-weight: 300; color: var(--accent); line-height: 1; margin-bottom: 20px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); }

/* CTA */
.cta { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background: radial-gradient(800px 500px at 90% 0%, rgba(190,10,18,.38), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(245,56,74,.14), transparent 60%); }
.cta .wrap { position: relative; }
.cta .section-intro { color: var(--on-dark-2); }
.form { background: var(--bg); color: var(--ink); padding: 32px; display: grid; gap: 18px; }
.form label span { display: block; font-size: 13px; color: var(--note); margin-bottom: 6px; }
.form input, .form select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-alt);
  border: 0; border-bottom: 1px solid var(--note); padding: 12px; border-radius: 0; appearance: none; -webkit-appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, #3f3f3b 50%), linear-gradient(135deg, #3f3f3b 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form input:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.form input[aria-invalid="true"] { outline: 2px solid var(--accent-hover); outline-offset: -2px; }
.form-status { font-size: 14px; min-height: 1.4em; color: var(--note); }

/* Footer */
.footer { background: #121211; color: var(--on-dark-2); padding-top: 64px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; max-width: 32ch; }
.footer h4 { color: var(--on-dark); font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; }
.footer a { text-decoration: none; }
.footer li a:hover, .footer-links a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; border-top: 1px solid rgba(232,231,226,.12); padding-top: 20px; padding-bottom: 28px; }
.footer-links { display: inline-flex; gap: 24px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }


/* ============================================================
   Card effects
   - .tile  : IBM Carbon-style hover. Grey wash, 2px accent border, title swaps to the
              full sentence, arrow nudges, line icon redraws. 0.15s ease.
   - .flip  : Accenture-style expand. Artwork slides away, description and CTA rise.
              Card scales up slightly. 0.55s ease.
   State lives in .is-open (set by JS for mouse hover and touch taps) plus :focus-visible.
   ============================================================ */
:root {
  --ease-ibm: cubic-bezier(0.2, 0, 0.38, 0.9);
  --ease-acc: cubic-bezier(0.85, 0, 0, 1);
}

/* IBM tile */
.tile {
  position: relative; display: flex; flex-direction: column; min-height: 300px;
  padding: 28px 28px 24px; background: var(--bg); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line);
  transition: opacity .5s ease, transform .5s ease,
              background-color .15s var(--ease-ibm), border-color .15s var(--ease-ibm), box-shadow .15s var(--ease-ibm);
}
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; transition: opacity .15s var(--ease-ibm), transform .15s var(--ease-ibm); }
.swap-a { font-size: 22px; font-weight: 400; line-height: 1.3; }
.swap-b { font-size: 19px; line-height: 1.5; color: var(--ink); opacity: 0; transform: translateY(6px); }
.tile-foot { margin-top: auto; padding-top: 32px; display: flex; align-items: flex-end; justify-content: space-between; }
.pic { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; transition: color .15s var(--ease-ibm); }
.pic * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.tile-arrow { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: square; transition: transform .15s var(--ease-ibm); }

.tile:is(.is-open, :focus-visible) { background: var(--bg-alt); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); outline: 0; }
.tile:is(.is-open, :focus-visible) .swap-a { opacity: 0; transform: translateY(-6px); }
.tile:is(.is-open, :focus-visible) .swap-b { opacity: 1; transform: none; }
.tile:is(.is-open, :focus-visible) .tile-arrow { transform: translateX(5px); }
.tile:is(.is-open, :focus-visible) .pic { color: var(--accent); }
.tile:is(.is-open, :focus-visible) .pic * { animation: draw .7s var(--ease-ibm) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Phases: same IBM wash and border, no text swap (they carry a lot of content) */
.phase { position: relative; transition: opacity .5s ease, transform .5s ease, background-color .15s var(--ease-ibm), box-shadow .15s var(--ease-ibm); }
@media (hover: hover) {
  .phase:hover { background: var(--bg-alt); box-shadow: inset 0 0 0 2px var(--accent); z-index: 1; }
  .phase:hover .produce { border-top-color: var(--accent); }
}

/* Accenture flip card */
.flips { align-items: stretch; }
.flip {
  position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 28px 28px 0; overflow: hidden;
  transition: opacity .5s ease, transform .55s var(--ease-acc);
}
.flip-paper { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.flip-dark { background: var(--dark); color: var(--on-dark); }
.flip-red { background: var(--accent); color: var(--on-dark); }
.flip-toggle { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.flip-toggle:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: -6px; }
.flip-paper .flip-toggle:focus-visible { outline-color: var(--accent); }
.flip-label { position: relative; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.flip-title { position: relative; font-size: 26px; font-weight: 400; line-height: 1.25; }
.flip-content {
  position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px 0 24px; opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s ease, transform .55s var(--ease-acc);
}
.flip-content p { font-size: 16px; line-height: 1.6; }
.flip-cta { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 17px; text-decoration: none; color: inherit; padding: 6px 0; }
.flip-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s var(--ease-ibm); }
.flip-cta:hover svg { transform: translateX(4px); }
.flip-cta:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.flip-art { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 1; pointer-events: none; transition: transform .55s var(--ease-acc); }
img.flip-art { width: 100%; object-fit: cover; object-position: center; }

.flip.is-open { transform: scale(1.03); z-index: 3; }
.flip.is-open .flip-art { transform: translateY(105%); }
.flip.is-open .flip-content { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }


/* ============================================================
   Team page
   ============================================================ */
.nav a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--accent-bright); }

.page-head { background: var(--dark); color: var(--on-dark); padding: 56px 0 64px; }
.page-head .bar-accent { margin-bottom: 24px; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { font-size: clamp(40px, 6.2vw, 80px); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; text-transform: uppercase; }
.page-intro { margin-top: 20px; font-size: 19px; color: var(--on-dark-2); max-width: 36em; }
.section-tight { padding: 72px 0 96px; }

/* Overview cards */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.person {
  display: flex; flex-direction: column; background: var(--bg); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line);
  transition: opacity .5s ease, transform .5s ease,
              background-color .15s var(--ease-ibm), border-color .15s var(--ease-ibm), box-shadow .15s var(--ease-ibm);
}
.person:hover, .person:focus-visible { background: var(--bg-alt); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); outline: 0; }
.person:hover .tile-arrow, .person:focus-visible .tile-arrow { transform: translateX(5px); }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--bg-alt); transition: transform .4s var(--ease-ibm); }
.person .portrait { width: min(72%, 250px); margin: 44px auto 0; outline: 1px solid var(--line); outline-offset: 8px; transition: transform .4s var(--ease-ibm), outline-color .15s var(--ease-ibm); }
.person:hover .portrait, .person:focus-visible .portrait { transform: scale(1.04); outline-color: var(--accent); }
.portrait-ph { display: grid; place-items: center; background: var(--bg-alt); color: var(--note); }
.portrait-ph span { font-size: 72px; font-weight: 300; letter-spacing: .04em; }
.person-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 24px 28px; }
.person-body .tile-arrow { margin-top: 16px; }
.person h2 { font-size: 24px; font-weight: 400; line-height: 1.2; }
.person-role { margin-top: 6px; font-size: 15px; color: var(--note); }

/* Profiles */
.profile { padding: 88px 0; }
.profile-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 72px; align-items: start; }
.profile-id { position: sticky; top: calc(var(--header-h) + 24px); }
.profile-id .portrait { width: min(100%, 280px); outline: 1px solid var(--line); outline-offset: 8px; margin: 8px 8px 0; }
.profile-id h2 { margin-top: 36px; font-size: clamp(32px, 3.2vw, 42px); font-weight: 300; letter-spacing: -0.01em; }
.p-role { margin-top: 10px; font-size: 22px; font-weight: 500; }
.p-unit { margin-top: 2px; font-size: 18px; color: var(--ink-2); }
.ext-link { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
.ext-link:hover { border-bottom-color: var(--accent); }
.p-block { border-top: 2px solid var(--ink); padding-top: 22px; margin-top: 56px; }
.p-block.first { margin-top: 0; }
.p-block h3 { font-size: 26px; font-weight: 400; margin-bottom: 16px; }
.p-text { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 46em; }
.projects { display: grid; }
.project { padding: 24px 0; border-bottom: 1px solid var(--line); }
.project:first-child { padding-top: 6px; }
.project:last-child { border-bottom: 0; padding-bottom: 0; }
.project h4 { font-size: 19px; font-weight: 600; line-height: 1.35; margin-bottom: 14px; }
.project dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 24px; margin: 0; }
.project dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 500; padding-top: 3px; }
.project dd { margin: 0; color: var(--ink-2); line-height: 1.65; }
.p-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; }
.p-cols .p-block { margin-top: 56px; }
.plain-list li { padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.plain-list li:first-child { padding-top: 0; }
.plain-list li:last-child { border-bottom: 0; }
.profile-soon { padding: 64px 0; }
.profile-soon .p-block h3 { font-size: 22px; }
.cta-btn { margin-top: 32px; }

html[lang="zh-Hant"] .project dt { letter-spacing: .04em; }
html[lang="zh-Hant"] .page-head h1 { letter-spacing: 0; }
@media (max-width: 1100px) {
  .profile-grid { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 48px; }
  .p-cols { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-id { position: static; display: grid; grid-template-columns: 120px 1fr; column-gap: 28px; align-items: end; padding-left: 6px; }
  .profile-id .portrait { grid-row: 1 / span 3; width: 120px; margin: 0; outline-offset: 5px; }
  .profile-id h2 { margin-top: 0; align-self: end; }
  .profile { padding: 64px 0; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .project dl { grid-template-columns: 1fr; gap: 4px; }
  .project dd + dt { margin-top: 10px; }
  .page-head { padding: 40px 0 48px; }
}


/* ============================================================
   Home: enterprise content sections
   ============================================================ */
.section-head h2 .line, .reg h2 .line { display: block; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.text-link { color: var(--on-dark); font-weight: 500; font-size: 16px; text-decoration: none; border-bottom: 1px solid rgba(232,231,226,.4); padding-bottom: 2px; transition: border-color .15s; }
.text-link:hover { border-bottom-color: var(--on-dark); }
html[lang="zh-Hant"] .hero h1 { font-size: clamp(34px, 10.4vw, 56px); }
@media (min-width: 1101px) { html[lang="zh-Hant"] .hero h1 { font-size: clamp(48px, 4.8vw, 68px); } }

/* Ink-topped columns */
.cols { display: grid; gap: 40px; margin-top: 56px; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.col { border-top: 2px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; }
.col h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.3; margin-bottom: 12px; }
.col > p { color: var(--ink-2); }
@media (max-width: 1100px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cols-3 { grid-template-columns: 1fr; } .cols { margin-top: 40px; } }
@media (max-width: 600px) { .cols-4 { grid-template-columns: 1fr; } }

/* Market numbers */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; border-top: 2px solid var(--ink); }
.stat { padding: 32px 32px 8px 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(52px, 6.2vw, 92px); font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.stat p { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 22em; }
.stat cite { display: block; margin-top: 14px; font-size: 14px; font-style: normal; font-weight: 500; color: var(--accent); }

/* Static tiles: IBM wash and border on hover, no text swap */
.tile-static { min-height: 220px; }
.tile-static h3 { font-size: 22px; font-weight: 400; line-height: 1.3; margin-bottom: 12px; }
.tile-static > p { color: var(--ink-2); }
.tile-static .tile-foot { padding-top: 24px; justify-content: flex-end; }
.tile-tag { margin-top: auto; padding-top: 22px; font-size: 14px; color: var(--note); }
.tile-static:hover, .tile-static:focus-visible { background: var(--bg-alt); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); outline: 0; }
.tile-static:hover .tile-arrow, .tile-static:focus-visible .tile-arrow { transform: translateX(5px); }
.section-alt .tile-static:hover, .section-alt .tile-static:focus-visible { background: #d3d1c9; }

/* Dark section */
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .kicker { color: var(--accent-bright); }
.section-dark .section-intro { color: var(--on-dark-2); }
.section-dark .col { border-top-color: var(--on-dark); }
.section-dark .col > p { color: var(--on-dark-2); }

/* Five capabilities converge into one FDE */
.converge { display: grid; grid-template-columns: minmax(150px, 240px) minmax(80px, 1fr) auto; height: 320px; margin: 8px 0 72px; align-items: stretch; }
.cv-labels { display: grid; grid-template-rows: repeat(5, 1fr); }
.cv-labels li { display: flex; align-items: center; font-size: 18px; font-weight: 500; line-height: 1.25; padding-right: 16px; }
.cv-labels .cv-key { color: var(--accent); }
.cv-lines { width: 100%; height: 100%; fill: none; }
.cv-lines path { stroke: var(--ink); stroke-opacity: .35; stroke-width: 2; vector-effect: non-scaling-stroke; }
.cv-lines .cv-key-line { stroke: var(--accent); stroke-opacity: 1; stroke-width: 3; }
.cv-end { display: flex; align-items: center; gap: 16px; }
.cv-end i { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); margin-left: -8px; flex: none; }
.cv-end span { font-size: clamp(36px, 5vw, 68px); font-weight: 300; letter-spacing: -0.01em; line-height: 1; }
.letter { font-size: 56px; font-weight: 300; line-height: 1; color: var(--accent); margin-bottom: 18px; }
.cols-4 .col h3 { font-size: clamp(20px, 1.7vw, 24px); }

/* Talent: four flip cards */
.flips-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.flips-4 .flip { min-height: 470px; padding: 24px 22px 0; }
.flips-4 .flip-title { font-size: 21px; }
.flips-4 .flip-content p { font-size: 15px; }
.t4 { background: radial-gradient(circle at 72% 72%, #a9a8a2, transparent 55%), linear-gradient(135deg, #1c1c1b, #3a1f22); }

/* Regulation statement */
.reg .split { align-items: center; gap: 72px; }
.reg h2 { font-size: clamp(40px, 5vw, 72px); font-weight: 300; line-height: 1.1; }
.reg-text { font-size: 20px; line-height: 1.7; color: var(--ink-2); max-width: 34em; }

/* Form textarea */
.form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-alt);
  border: 0; border-bottom: 1px solid var(--note); padding: 12px; border-radius: 0; resize: vertical; min-height: 96px;
}
.form textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (max-width: 1180px) {
  .nav a { padding: 0 9px; font-size: 13px; }
  .header-inner { gap: 20px; }
}
@media (max-width: 1100px) {
  .flips-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0 24px; border-left: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .reg .split { gap: 24px; }
}
@media (max-width: 600px) {
  .flips-4 { grid-template-columns: 1fr; }
  .flips-4 .flip { min-height: 400px; }
  .converge { grid-template-columns: minmax(118px, 150px) minmax(40px, 1fr) auto; }
  .cv-labels li { font-size: 14px; padding-right: 8px; }
  .letter { font-size: 44px; }
}


/* Header button: Our Team, and mobile-only nav extras */
.btn-outline { background: transparent; color: var(--on-dark); border-color: rgba(232,231,226,.5); }
.btn-outline:hover { background: rgba(232,231,226,.12); border-color: var(--on-dark); }
.btn-outline[aria-current="page"], .site-header .btn-primary[aria-current="page"] { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.nav a.nav-extra { display: none; }
@media (max-width: 600px) { .nav a.nav-extra { display: flex; } }

/* Merged needs and talent section */
.subsection { margin-top: 112px; padding-top: 72px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .subsection { margin-top: 72px; padding-top: 56px; } }

/* Contact page */
.contact-section { padding: 80px 0 104px; }
.contact-info h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 300; line-height: 1.2; margin-bottom: 8px; }
.contact-info .p-block { margin-top: 48px; }
.contact-loc { margin-top: 40px; font-size: 15px; color: var(--note); }
.contact-section .form { border: 1px solid var(--line); }


/* Count-up numbers */
.stat strong { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Animated FDE diagram. JS arms it (hidden), then sets .is-live when it scrolls into view. */
.cv-lines .cv-path { fill: none; stroke: var(--ink); stroke-opacity: .35; stroke-width: 2; vector-effect: none; stroke-linecap: round;
  transition: stroke-opacity .25s, stroke-width .25s, stroke .25s; }
.cv-lines .cv-key-path { stroke: var(--accent); stroke-opacity: .9; stroke-width: 3; }
.converge.is-armed .cv-path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.converge.is-live .cv-path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--ease-acc) var(--d, 0s), stroke-opacity .25s, stroke-width .25s, stroke .25s; }
.cv-pulse { opacity: 0; }
.cv-labels li { transition: color .2s, opacity .6s ease var(--d, 0s), transform .7s var(--ease-acc) var(--d, 0s); cursor: default; }
.converge.is-armed .cv-labels li { opacity: 0; transform: translateX(-14px); }
.converge.is-live .cv-labels li { opacity: 1; transform: none; }
.converge.is-armed .cv-end { opacity: 0; transform: scale(.9); transform-origin: left center; }
.converge.is-live .cv-end { opacity: 1; transform: none; transition: opacity .7s ease 1.3s, transform .7s var(--ease-acc) 1.3s; }
.cv-end i { position: relative; }
.cv-end i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; }
.converge.is-live .cv-end i::after { animation: cv-ring 2.6s ease-out 2.6s infinite; }
@keyframes cv-ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
/* hover or focus on a label lights its line and dims the rest */
.converge.has-hot .cv-path { stroke-opacity: .12; }
.converge.has-hot .cv-key-path { stroke-opacity: .25; }
.converge.has-hot .cv-path.hot { stroke-opacity: 1; stroke-width: 3.5; stroke: var(--accent); }
.cv-labels li.hot { color: var(--accent); }
.cv-labels li:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .converge.is-live .cv-path, .converge.is-live .cv-end, .cv-labels li { transition: none; }
  .converge.is-live .cv-end i::after { animation: none; }
}


/* Talent cards without artwork: everything visible, no hover needed */
.flips-static .flip { min-height: 340px; padding: 26px 24px 0; cursor: default; }
.flips-static .flip-title { font-size: 22px; line-height: 1.25; }
.flips-static .flip-content { opacity: 1; transform: none; pointer-events: auto; padding: 22px 0 24px; }
.flips-static .flip-content p { font-size: 15px; line-height: 1.65; opacity: .92; }
.flips-static .flip-cta { margin-top: 24px; }
.flips-static .flip.in { transition: opacity .5s ease, transform .35s var(--ease-ibm), box-shadow .2s var(--ease-ibm), border-color .2s var(--ease-ibm); }
.flips-static .flip.in:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(26,26,25,.14); }
.flips-static .flip-paper.in:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 28px rgba(26,26,25,.14); }
@media (max-width: 600px) { .flips-static .flip { min-height: 0; } }


/* Talent: IBM Carbon tiles with the title-to-description swap */
.talent-grid { gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile-carbon { min-height: 340px; padding: 26px 24px 22px; }
.tile-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.tile-carbon .swap-a { font-size: 21px; line-height: 1.3; }
.tile-carbon .swap-b { font-size: 16px; line-height: 1.55; }
.section-alt .tile:is(.is-open, :focus-visible) { background: #d3d1c9; }
html[lang="zh-Hant"] .tile-eyebrow { letter-spacing: .04em; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } .tile-carbon { min-height: 280px; } }


/* Logo (v4-a): framed FDE/HK mark + FDEHK wordmark */
.brand-logo { display: block; height: 42px; width: auto; }
.footer .brand-logo { height: 54px; }
@media (max-width: 600px) { .brand-logo { height: 36px; } }


/* Needs: tall image-led report cards (Accenture-style), description revealed on hover or tap */
.needs-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.flip-portrait { aspect-ratio: 4 / 5; min-height: 0; padding: 26px 26px 0; }
.flip-portrait .flip-label, .flip-portrait .flip-title { position: relative; z-index: 2; }
.flip-portrait .flip-title { font-size: clamp(22px, 2vw, 28px); }
.flip-portrait .flip-label { text-transform: uppercase; }
.flip-portrait .flip-art { top: 0; height: 100%; z-index: 0; object-position: 50% 100%; }
.flip-portrait .flip-content p { font-size: 17px; line-height: 1.6; }
html[lang="zh-Hant"] .flip-portrait .flip-label { letter-spacing: .04em; }
@media (max-width: 900px) { .needs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .needs-cards { grid-template-columns: 1fr; } .flip-portrait { padding: 22px 22px 0; } }


/* Needs: text tiles keep their dark / vermilion / paper colours */
.tile-static.tile-dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.tile-static.tile-dark > p, .tile-static.tile-dark .tile-tag { color: var(--on-dark-2); }
.tile-static.tile-red { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
.tile-static.tile-red > p, .tile-static.tile-red .tile-tag { color: var(--on-dark); }
.tile-static.tile-dark:hover, .tile-static.tile-dark:focus-visible { background: #262625; border-color: var(--accent-bright); box-shadow: 0 0 0 1px var(--accent-bright); }
.tile-static.tile-red:hover, .tile-static.tile-red:focus-visible { background: var(--accent-hover); border-color: var(--on-dark); box-shadow: 0 0 0 1px var(--on-dark); }
.needs-grid .tile-static { min-height: 250px; }


/* Talent: compact horizontal tiles, icon on the right, no arrow or link */
.talent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile-carbon.tile-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; min-height: 0; padding: 22px 28px; cursor: default; }
.tile-row .tile-main { flex: 1; min-width: 0; }
.tile-row .tile-eyebrow { margin-bottom: 10px; }
.tile-row .swap-a { font-size: 20px; line-height: 1.3; }
.tile-row .swap-b { font-size: 15px; line-height: 1.55; }
.tile-row .pic { width: 56px; height: 56px; flex: none; }
.tile-row:focus-visible { outline: 0; }
@media (max-width: 700px) {
  .talent-grid { grid-template-columns: 1fr; gap: 14px; }
  .tile-carbon.tile-row { min-height: 0; padding: 18px 20px; gap: 16px; }
  .tile-row .pic { width: 44px; height: 44px; }
  .tile-row .swap-a { font-size: 18px; }
  .tile-row .swap-b { font-size: 14px; }
}


/* Footer credit */
.powered { color: var(--on-dark-2); }
.powered strong { color: var(--on-dark); font-weight: 600; letter-spacing: .01em; }
@media (max-width: 600px) { .footer-base { gap: 8px; } }


/* ============================================================
   Needs: line-illustration cards. Lines draw in as the card scrolls into view;
   on hover/tap they ghost back into flowing line dashes and the sentence appears.
   ============================================================ */
.needs-ill { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ill {
  position: relative; display: flex; flex-direction: column; overflow: hidden; cursor: default; outline: 0;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  transition: opacity .5s ease, transform .5s ease, border-color .2s var(--ease-ibm), box-shadow .2s var(--ease-ibm);
}
.ill-dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.ill-red { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
.ill-stage { position: relative; height: 190px; padding: 22px 26px 0; }
.ill-art { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .35s var(--ease-ibm), transform .6s var(--ease-acc); }
.ill-art * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ill-art .acc { stroke-width: 2; }
.ill-paper .ill-art .acc { stroke: var(--accent); }
.ill-dark .ill-art .acc { stroke: var(--accent-bright); }
.ill-red .ill-art .acc { stroke: var(--dark); }
.ill-art > :nth-child(1) { --d: 0.07s; }
.ill-art > :nth-child(2) { --d: 0.14s; }
.ill-art > :nth-child(3) { --d: 0.21s; }
.ill-art > :nth-child(4) { --d: 0.28s; }
.ill-art > :nth-child(5) { --d: 0.35s; }
.ill-art > :nth-child(6) { --d: 0.42s; }
.ill-art > :nth-child(7) { --d: 0.49s; }
.ill-art > :nth-child(8) { --d: 0.56s; }
.ill-art > :nth-child(9) { --d: 0.63s; }
.ill-art > :nth-child(10) { --d: 0.7s; }
.ill-art > :nth-child(11) { --d: 0.77s; }
.ill-art > :nth-child(12) { --d: 0.84s; }
.ill-art > :nth-child(13) { --d: 0.91s; }
.ill-art > :nth-child(14) { --d: 0.98s; }
/* draw-in when scrolled into view */
.ill.reveal:not(.in) .ill-art * { stroke-dashoffset: 1; }
.ill.in .ill-art * { transition: stroke-dashoffset 1.3s var(--ease-acc) var(--d, 0s); }

.ill-foot { padding: 4px 26px 24px; }
.ill-foot h3 { font-size: 22px; font-weight: 400; line-height: 1.3; }
.ill-tag { margin-top: 6px; font-size: 13px; color: var(--note); }
.ill-dark .ill-tag { color: var(--on-dark-2); }
.ill-red .ill-tag { color: var(--on-dark); }

.ill-desc { position: absolute; inset: 0 0 auto 0; height: 190px; padding: 26px; display: flex; align-items: center;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s var(--ease-ibm), transform .5s var(--ease-acc); }
.ill-desc p { font-size: 17px; line-height: 1.6; }

.ill:is(.is-open, :focus-visible) .ill-art { opacity: .22; transform: scale(1.05); }
.ill:is(.is-open, :focus-visible) .ill-art *:not(.mv):not(.mv *) { stroke-dasharray: .07 .05; animation: laflow 2.8s linear infinite; }
.ill:is(.is-open, :focus-visible) .ill-desc { opacity: 1; transform: none; }
.ill-paper:is(.is-open, :focus-visible) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ill-dark:is(.is-open, :focus-visible) { border-color: var(--accent-bright); box-shadow: 0 0 0 1px var(--accent-bright); }
.ill-red:is(.is-open, :focus-visible) { border-color: var(--on-dark); box-shadow: 0 0 0 1px var(--on-dark); }
@keyframes laflow { to { stroke-dashoffset: -1.2; } }

/* talent icons: draw in on scroll, too */
.tile-row.reveal:not(.in) .pic * { stroke-dashoffset: 1; }
.tile-row.in .pic * { transition: stroke-dashoffset 1.1s var(--ease-acc) .15s; }

/* Kotech office block + footer */
.co-name { font-weight: 600; margin-bottom: 14px; }
.co-list { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 20px; margin: 0; }
.co-list dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 500; padding-top: 3px; }
.co-list dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
.co-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.co-list a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.contact-office { margin-top: 40px; }
.foot-addr { max-width: 22em; line-height: 1.5; }
.powered a { text-decoration: none; }
.powered a:hover strong { text-decoration: underline; }
html[lang="zh-Hant"] .co-list dt { letter-spacing: .04em; }

@media (max-width: 900px) { .needs-ill { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .needs-ill { grid-template-columns: 1fr; gap: 14px; }
  .ill-stage, .ill-desc { height: 170px; }
  .co-list { grid-template-columns: 1fr; gap: 2px; }
  .co-list dd + dt { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ill-art *, .tile-row .pic * { animation: none !important; transition: none !important; stroke-dashoffset: 0 !important; }
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button:disabled { opacity: .6; cursor: progress; }

/* Chinese typography tweaks */
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3 { letter-spacing: 0; line-height: 1.3; }
html[lang="zh-Hant"] .hero h1 { letter-spacing: 0; line-height: 1.2; }
html[lang="zh-Hant"] .kicker, html[lang="zh-Hant"] .phase-no, html[lang="zh-Hant"] .phase dt,
html[lang="zh-Hant"] .produce span, html[lang="zh-Hant"] .flip-label { letter-spacing: .04em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 56px; padding-bottom: 84px; min-height: 0; }
  .hero-side { max-width: 460px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--dark);
    flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid rgba(232,231,226,.12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { height: 48px; border-bottom: 1px solid rgba(232,231,226,.08); }
  .header-actions { gap: 8px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .split, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .band-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .grid-3, .steps, .phases { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
  .hero-pause { left: 16px; }
  .band-grid strong { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 12px; }
  .card { padding: 24px; }
  .flip { min-height: 400px; }
  .flip.is-open { transform: none; }
  .tile { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .flip, .flip-art, .flip-content, .tile, .swap > *, .tile-arrow { transition: none; }
  .flip.is-open { transform: none; }
  .tile:is(.is-open, :focus-visible) .pic * { animation: none; }
}


/* ============================================================
   2026-10-21 · Needs cards: theme-specific line motion (.mv).
   Starts after the draw-in (1.4s) and only once the card is in view.
   ============================================================ */
.ill-art .dash { stroke-dasharray: .04 .04; }
.ill-art .band { stroke-width: 1; opacity: .55; }
.ill-paper .fill-acc { fill: var(--accent); }
.ill-dark .fill-acc { fill: var(--accent-bright); }
.ill-red .fill-acc { fill: var(--dark); }
.ill.in .mv-flow { stroke-dasharray: .08 .06; animation: mv-flow 1.2s linear 1.4s infinite; }
@keyframes mv-flow { to { stroke-dashoffset: -.28; } }

/* Knowledge & search: the lens scans the page; the answer types out with its citation */
.ill.in .mv-lens { animation: mv-lens 4.2s ease-in-out 1.4s infinite; }
@keyframes mv-lens { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(4px, 40px); } 60% { transform: translate(4px, 40px); } }
.ill.in .mv-type { animation: mv-type 4.2s var(--ease-ibm) 1.4s infinite both; }
.ill.in .mv-type.t2 { animation-delay: 1.7s; } .ill.in .mv-type.t3 { animation-delay: 2s; }
.ill.in .mv-type.t4 { animation-delay: 2.3s; } .ill.in .mv-type.t5 { animation-delay: 2.6s; }
@keyframes mv-type { 0% { stroke-dashoffset: 1; } 25%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.ill.in .mv-cite { animation: mv-blink 4.2s ease 1.4s infinite both; }
@keyframes mv-blink { 0%, 40% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* Analytics & forecasting: history bars breathe, the forecast streams past "now", the end point pulses */
.mv-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.ill.in .mv-bar { animation: mv-bar 3.2s ease-in-out 1.4s infinite; }
.ill.in .mv-bar.b2 { animation-delay: 1.6s; } .ill.in .mv-bar.b3 { animation-delay: 1.8s; } .ill.in .mv-bar.b4 { animation-delay: 2s; }
@keyframes mv-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.72); } }
.mv-ring { transform-box: fill-box; transform-origin: center; }
.ill.in .mv-ring { animation: mv-ring 2s ease-out 1.6s infinite; }
@keyframes mv-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }

/* Workflow automation: a token runs node to node, each step is ticked, the loop keeps going */
.ill.in .mv-token { animation: mv-token 4s linear 1.4s infinite both; }
@keyframes mv-token { 0% { transform: translateX(0); opacity: 0; } 5% { opacity: 1; } 90% { transform: translateX(176px); opacity: 1; } 100% { transform: translateX(176px); opacity: 0; } }
.ill.in .mv-tick { animation: 4s linear 1.4s infinite both; }
.ill.in .mv-tick.k0 { animation-name: mv-k0; } .ill.in .mv-tick.k1 { animation-name: mv-k1; }
.ill.in .mv-tick.k2 { animation-name: mv-k2; } .ill.in .mv-tick.k3 { animation-name: mv-k3; }
@keyframes mv-k0 { 0%, 5% { stroke-dashoffset: 1; } 10%, 94% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes mv-k1 { 0%, 34% { stroke-dashoffset: 1; } 39%, 94% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes mv-k2 { 0%, 63% { stroke-dashoffset: 1; } 68%, 94% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes mv-k3 { 0%, 89% { stroke-dashoffset: 1; } 93%, 96% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }

/* Risk & compliance: radar sweep inside the shield, a flagged transaction, an audit log filling up */
.mv-sweep { transform-box: view-box; transform-origin: 120px 60px; }
.ill.in .mv-sweep { animation: mv-spin 3.2s linear 1.4s infinite; }
@keyframes mv-spin { to { transform: rotate(360deg); } }
.ill.in .mv-flag { animation: mv-flag 3.2s ease 1.4s infinite both; }
@keyframes mv-flag { 0%, 8% { opacity: 0; } 14%, 55% { opacity: 1; } 70%, 100% { opacity: 0; } }
.ill.in .mv-log { animation: mv-log 4.5s ease 1.4s infinite both; }
.ill.in .mv-log.g1 { animation-delay: 1.7s; } .ill.in .mv-log.g2 { animation-delay: 2s; } .ill.in .mv-log.g3 { animation-delay: 2.3s; }
.ill.in .mv-log.g4 { animation-delay: 2.6s; } .ill.in .mv-log.g5 { animation-delay: 2.9s; } .ill.in .mv-log.g6 { animation-delay: 3.2s; }
.ill.in .mv-log.g7 { animation-delay: 3.5s; } .ill.in .mv-log.g8 { animation-delay: 3.8s; }
@keyframes mv-log { 0% { opacity: 0; } 8%, 75% { opacity: 1; } 90%, 100% { opacity: 0; } }

/* Quality & operations: products ride the belt under the camera; the gauge needle reads the machine */
.ill.in .mv-belt { animation: mv-belt 1.8s linear 1.4s infinite; }
@keyframes mv-belt { to { transform: translateX(56px); } }
.ill.in .mv-scan { animation: mv-scan 1.4s ease-in-out 1.4s infinite alternate; }
@keyframes mv-scan { to { transform: translateY(30px); } }
.mv-needle { transform-box: view-box; transform-origin: 196px 46px; }
.ill.in .mv-needle { animation: mv-needle 2.6s ease-in-out 1.4s infinite alternate; }
@keyframes mv-needle { 0% { transform: rotate(-10deg); } 60% { transform: rotate(70deg); } 100% { transform: rotate(40deg); } }

/* Content & marketing: copy writes itself, the visual sparkles, variants pop out at scale */
.mv-spark { transform-box: fill-box; transform-origin: center; }
.ill.in .mv-spark { animation: mv-spark 2.4s ease-in-out 1.4s infinite; }
@keyframes mv-spark { 0%, 100% { transform: scale(.6) rotate(0deg); opacity: .4; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
.ill.in .mv-pop { animation: mv-pop 4.2s var(--ease-acc) 1.6s infinite both; }
.ill.in .mv-pop.p1 { animation-delay: 1.9s; } .ill.in .mv-pop.p2 { animation-delay: 2.2s; }
@keyframes mv-pop { 0% { opacity: 0; transform: translateY(10px); } 14%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .ill-art .mv, .ill-art .mv * { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   2026-10-21 · Talent: on touch screens and phones show title and description together;
   "Including regulation." in the theme colour, sitting close to the cards.
   ============================================================ */
/* Touch: title stays; the description slides open below it when the card is opened (auto at the 33% line, see main.js). */
@media (hover: none), (pointer: coarse) {
  .tile-row .swap { display: flex; flex-direction: column; }
  .tile-row .swap > * { grid-area: auto; }
  .tile-row .swap-a, .tile-row:is(.is-open, :focus-visible) .swap-a { opacity: 1; transform: none; }
  .tile-row .swap-b { max-height: 0; overflow: hidden; margin-top: 0; opacity: 0; transform: translateY(6px);
    transition: max-height .5s var(--ease-acc), margin-top .5s var(--ease-acc), opacity .3s var(--ease-ibm) .1s, transform .5s var(--ease-acc); }
  .tile-row:is(.is-open, :focus-visible) .swap-b { max-height: 12em; margin-top: 8px; opacity: 1; transform: none; }
}
#needs { padding-bottom: 32px; }
.reg { padding-top: 32px; }
.reg h2 { color: var(--accent); font-weight: 500; }
@media (max-width: 900px) { #needs { padding-bottom: 24px; } .reg { padding-top: 24px; } }

/* 標題平衡斷行，避免末行孤字（如「裏。」） */
.section-head h2 .line, .section-head h2 { text-wrap: balance; }
/* 中文標題：不在詞中斷開，只在標點／空格處換行 */
html[lang="zh-Hant"] .section-head h2 .line, html[lang="zh-Hant"] .section-head h2 { text-wrap: pretty; word-break: keep-all; overflow-wrap: anywhere; }

/* 2026-10-21 · n1 / n3 / n8 motion */
.ill-art .fill-cur { fill: currentColor; }
.ill.in .mv-dot { animation: mv-dot 1.2s ease-in-out 1.4s infinite; }
.ill.in .mv-dot.d1 { animation-delay: 1.55s; } .ill.in .mv-dot.d2 { animation-delay: 1.7s; }
@keyframes mv-dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.ill.in .mv-docscan { animation: mv-docscan 4.5s linear 1.4s infinite both; }
@keyframes mv-docscan { 0% { transform: translateY(0); opacity: 0; } 4% { opacity: 1; } 70% { transform: translateY(70px); opacity: 1; } 78%, 100% { transform: translateY(70px); opacity: 0; } }
.ill.in .mv-hl { animation: 4.5s ease 1.4s infinite both; }
.ill.in .mv-hl.h0 { animation-name: mv-h0; } .ill.in .mv-hl.h1 { animation-name: mv-h1; } .ill.in .mv-hl.h2 { animation-name: mv-h2; }
@keyframes mv-h0 { 0%, 8% { opacity: 0; } 12%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mv-h1 { 0%, 32% { opacity: 0; } 36%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mv-h2 { 0%, 56% { opacity: 0; } 60%, 90% { opacity: 1; } 100% { opacity: 0; } }
.ill.in .mv-chk { animation: 4.5s ease 1.4s infinite both; }
.ill.in .mv-chk.c0 { animation-name: mv-c0; } .ill.in .mv-chk.c1 { animation-name: mv-c1; } .ill.in .mv-chk.c2 { animation-name: mv-c2; }
@keyframes mv-c0 { 0%, 18% { stroke-dashoffset: 1; } 24%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes mv-c1 { 0%, 42% { stroke-dashoffset: 1; } 48%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes mv-c2 { 0%, 66% { stroke-dashoffset: 1; } 72%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }


/* 內文段落避免末行孤字 */
.tile p, .ill-desc p, .stat p, .col p, .section-intro, .swap-b, .reg-text { text-wrap: pretty; }

/* Legal pages: privacy policy and terms of use */
.legal-section { padding: 72px 0 104px; }
.legal { max-width: 46em; }
.legal-updated { font-size: 14px; color: var(--note); margin-bottom: 8px; }
.legal h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.3; margin: 48px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal p { font-size: 17px; line-height: 1.75; color: var(--ink-2); text-wrap: pretty; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 14px; }
.legal ul { list-style: none; padding: 0; margin: 14px 0 0; }
.legal li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.legal li + li { margin-top: 8px; }
.legal li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 8px; height: 2px; background: var(--accent); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent-hover); }
html[lang="zh-Hant"] .legal p, html[lang="zh-Hant"] .legal li { line-height: 1.85; }
@media (max-width: 600px) { .legal-section { padding: 48px 0 72px; } .legal p, .legal li { font-size: 16px; } .legal h2 { margin-top: 36px; } }
