/* ABOUT — Mist tone (MOTION.md §1). Tokens come from site.css. */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Visual Banner (About visual banner) */
.about-hero {
  position: relative;
  min-height: 100svh;
  background: var(--ice);
  padding: clamp(120px, 14vh, 170px) var(--gutter) clamp(72px, 12vh, 140px);
  display: grid;
  grid-template-columns: auto minmax(0, 880px) auto;
  justify-content: space-between;
  align-items: center;
  column-gap: clamp(32px, 5vw, 96px);
  overflow: hidden;
}

.about-mark {
  position: relative;
  width: clamp(64px, 5vw, 96px);
  perspective: 600px;
}
.about-mark img { width: 100%; transform-style: preserve-3d; will-change: transform; }

.about-wordmark {
  position: relative;
  inset: auto;
  translate: none;
  margin: 0;
  order: 3;
  font-size: clamp(22px, 2vw, 40px);
}

/* the small manifesto (user's new banner): heavy, uppercase, set small and justified */
.manifesto {
  position: relative;
  order: 2;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(12px, 0.85vw, 15px);
  line-height: 1.32;
  color: var(--ink);
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}
html[lang="en"] .manifesto { text-transform: uppercase; letter-spacing: 0.01em; }
/* justified CJK opens big gaps around Latin words (IoT, 3D): keep Chinese ragged */
html[lang="zh-Hant"] .manifesto { font-size: clamp(13px, 0.9vw, 16px); letter-spacing: 0.06em; line-height: 1.7; text-align: left; }
.manifesto .w { display: inline-block; }

/* ONEWORK marquee under the statement: the opening film's word row, running on its own */
.about-marquee {
  grid-column: 1 / -1;
  order: 4;
  margin: clamp(40px, 7vh, 88px) calc(-1 * var(--gutter)) 0;
  overflow: hidden;
  min-width: 0;
  contain: inline-size;   /* the long row must not widen the banner grid */
  color: #000000;
}
.am-track {
  display: flex; width: max-content; margin: 0; white-space: nowrap;
  font: 500 clamp(56px, 10vw, 190px) / 1 "Jost", sans-serif;
  letter-spacing: -0.02em;
  animation: am-run 40s linear infinite;
  will-change: transform;
}
.am-set { display: flex; }
.am-set span { padding-right: 0.08em; }
@keyframes am-run { to { transform: translate3d(-50%, 0, 0); } }
.about-marquee:hover .am-track { animation-play-state: paused; }
html.is-calm .am-track { animation: none; }
@media (prefers-reduced-motion: reduce) { .am-track { animation: none; } }


/* ---------- below the banner: the redesigned About (paper ground, light Jost headlines) ---------- */
.founder, .team, .story, .office { position: relative; background: var(--ice); color: #1F1F1F; padding: clamp(96px, 11vw, 170px) var(--gutter); }
.page-about { background: var(--ice); }

/* Founder */
.founder-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.founder-name { margin: 0; font: 300 clamp(48px, 6vw, 104px) / 1 var(--font-brand); letter-spacing: 0.06em; color: #1A1A1A; }
.mask { overflow: hidden; padding-bottom: 0.08em; }
.mask span { display: block; }
.founder .role { margin-top: 26px; font: 400 clamp(15px, 1.1vw, 18px) / 1.4 var(--font-brand); letter-spacing: 0.08em; }
.cred { margin-top: 34px; display: grid; gap: 2px; font: 500 15px / 1.5 var(--font-brand); letter-spacing: 0.04em; }
.founder .bio { margin-top: 22px; max-width: 64ch; font-size: 15px; line-height: 1.7; text-align: justify; hyphens: auto; color: #2A2A2A; }
html[lang="zh-Hant"] .founder .bio { text-align: left; line-height: 1.9; max-width: 38em; }
.portrait { margin: 0; overflow: hidden; aspect-ratio: 3 / 2; background: var(--mist); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Our Team: three departments */
.spaced-title { margin: 0 0 clamp(48px, 5vw, 80px); font: 300 clamp(40px, 4.6vw, 80px) / 1 var(--font-brand); letter-spacing: 0.72em; color: #1A1A1A; }
html[lang="zh-Hant"] .spaced-title { letter-spacing: 0.5em; }
/* Our Team: title on the left, JOIN US / 加入我們 button on the right (CAREER left the main menu) */
.team-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin: 0 0 clamp(48px, 5vw, 80px); }
.team-head .spaced-title { margin: 0; }
.team-join {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 22px;
  font: 500 var(--fs-label) / 1 var(--font-brand); letter-spacing: 0.16em; text-decoration: none;
  color: var(--ink); background: var(--white); border: 1px solid var(--ink); border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.team-join::after { content: "→"; letter-spacing: 0; transition: transform 0.3s var(--ease-out); }
.team-join:hover, .team-join:focus-visible { background: var(--teal-900); border-color: var(--teal-900); color: var(--white); }
.team-join:hover::after, .team-join:focus-visible::after { transform: translateX(4px); }
.dept-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); }
.dept { display: grid; align-content: start; }
.dept-art { aspect-ratio: 1.63; background: #98BEC4; overflow: hidden; max-width: 340px; }
.dept-art { position: relative; }
.dept-art svg { width: 100%; height: 100%; display: block; }
.dept-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dg { fill: none; stroke: rgba(255, 255, 255, 0.9); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dg circle { fill: var(--white); stroke: none; }
.dg .dg-soft { stroke: rgba(255, 255, 255, 0.45); }
.dept-name { margin: clamp(28px, 3vw, 44px) 0 0; font: 300 clamp(24px, 1.9vw, 34px) / 1.12 var(--font-brand); white-space: nowrap; letter-spacing: 0.04em; color: #1A1A1A; }
html[lang="zh-Hant"] .dept-name { letter-spacing: 0.12em; }
.dept-name .line { display: block; overflow: hidden; }
.dept-name .line-inner { display: block; }
.dept-tag { margin-top: 22px; min-height: 3em; font: 400 15px / 1.45 var(--font-brand); letter-spacing: 0.03em; max-width: 30ch; }
.dept-core { margin-top: clamp(32px, 4vw, 56px); font: 500 12px / 1 var(--font-brand); letter-spacing: 0.06em; }
.dept-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font: 400 12.5px / 1.5 var(--font-brand); letter-spacing: 0.02em; color: #333; max-width: 40ch; }

/* How We Work Together: vertical stripes, a field of dots */
.work {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(96px, 10vw, 150px) var(--gutter);
  background-color: var(--ice);
  background-image: repeating-linear-gradient(90deg, rgba(61, 61, 61, 0.03) 0 16px, rgba(255, 255, 255, 0.6) 16px 32px);
  color: #1F1F1F;
  overflow: hidden;
}
.work-kicker { font: 400 13px / 1 var(--font-brand); letter-spacing: 0.06em; margin-bottom: clamp(24px, 3vw, 40px); }
.work-title { margin: 0; font: 300 clamp(34px, 3.4vw, 58px) / 1.25 var(--font-brand); letter-spacing: 0.05em; color: #1A1A1A; }
html[lang="zh-Hant"] .work-title { letter-spacing: 0.16em; line-height: 1.4; }
.work-title .line { display: block; overflow: hidden; }
.work-title .line-inner { display: block; }
.work-desc { margin-top: clamp(28px, 3vw, 44px); max-width: 52ch; font-size: 14px; line-height: 1.6; text-align: justify; hyphens: auto; }
html[lang="zh-Hant"] .work-desc { text-align: left; line-height: 1.9; }
.work-dots { width: 100%; height: auto; overflow: visible; }
.wd { fill: var(--forest); }
.wd-hub { fill: var(--forest); }
#workLinks line { stroke: var(--forest); stroke-width: 1; stroke-opacity: 0.55; }
#workOutline line { stroke: var(--teal-900); stroke-width: 1.6; stroke-linecap: round; }
.wd-logo { transform-box: fill-box; transform-origin: center; }

/* Story (kept from before) */
.story-grid {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 120px);
  align-items: start;
}
.story-year { font: 300 clamp(96px, 16vw, 260px) / 0.85 var(--font-brand); letter-spacing: -0.02em; color: var(--teal-300); position: sticky; top: 120px; }
.story-year .count { display: inline-block; font-variant-numeric: tabular-nums; }
.story .h-mid { color: #1A1A1A; font: 300 clamp(32px, 3.2vw, 52px) / 1.2 var(--font-brand); letter-spacing: 0.03em; max-width: 20ch; }
.story-body { margin-top: 32px; display: grid; gap: 20px; max-width: 62ch; }
.milestones { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid rgba(61, 61, 61, 0.2); }
.milestones li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(61, 61, 61, 0.2); }
.milestones b { font: 500 20px / 1.3 var(--font-brand); color: var(--teal-900); }

/* Office Environment */
.office { padding-top: 0; }
.office-hero { margin: 0 calc(-1 * var(--gutter)); height: clamp(260px, 42vh, 460px); overflow: hidden; }
.office-hero img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 60%; }
.office-copy { padding: clamp(56px, 7vw, 100px) 0 clamp(48px, 6vw, 88px); }
.office-title { margin: 0; font: 300 clamp(36px, 3.4vw, 58px) / 1.1 var(--font-brand); letter-spacing: 0.06em; color: #1A1A1A; }
.office-desc { margin-top: clamp(28px, 3vw, 44px); max-width: 100ch; font-size: 14px; line-height: 1.6; text-align: justify; }
html[lang="zh-Hant"] .office-desc { text-align: left; line-height: 1.9; max-width: 52em; }
.office-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.1fr 1.1fr; gap: clamp(16px, 2.4vw, 28px); }
.office-grid li { overflow: hidden; aspect-ratio: 1.36; }
.office-grid li:first-child { aspect-ratio: 1.2; }
.office-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.office-grid li:hover img { transform: scale(1.05); }

/* Responsive */
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; justify-items: center; align-content: center; row-gap: 32px; }
  .about-wordmark { order: 2; font-size: 22px; }
  .manifesto { order: 3; font-size: 13px; text-align: left; }
  .founder-grid, .story-grid, .work { grid-template-columns: 1fr; }
  .portrait { order: -1; }
  .story-year { position: static; }
  .dept-grid { grid-template-columns: 1fr; gap: 64px; }
  .dept-tag { min-height: 0; }
  .spaced-title { letter-spacing: 0.4em; }
  .work { min-height: 0; }
  .office-grid { grid-template-columns: 1fr; }
  .office-grid li, .office-grid li:first-child { aspect-ratio: 4 / 3; }
}

/* ---------- Opening film (user reference video, black and white, fast cuts) ---------- */
.intro {
  position: absolute; inset: 0; z-index: 5;
  background: #FFFFFF; color: #000000;
  overflow: hidden;
  pointer-events: none;
}
.intro.is-done { display: none; }
.i-canvas { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.i-title, .i-row, .i-word, .i-o { position: absolute; margin: 0; visibility: hidden; }
.i-title {
  inset: 0; display: grid; place-content: center; text-align: center;
  font: 900 clamp(64px, 11vw, 200px) / 0.86 "Archivo", sans-serif;
  font-stretch: 78%;
  letter-spacing: -0.01em;
  visibility: visible;
}
.i-title span { display: block; }
.i-row { inset: 0; display: grid; align-content: center; }
.i-track {
  margin: 0; white-space: nowrap;
  font: 500 clamp(56px, 10vw, 190px) / 1 "Jost", sans-serif;
  letter-spacing: -0.02em;
}
.i-track span { display: inline-block; padding-right: 0.08em; }
/* a white block in difference mode reads as black and turns the letters under it white */
.i-block { position: absolute; background: #FFFFFF; mix-blend-mode: difference; left: 0; top: 0; width: 0; height: 0; }
.i-word {
  inset: 0; display: grid; place-content: center;
  font: 500 clamp(48px, 7vw, 132px) / 1 "Jost", sans-serif;
  letter-spacing: -0.01em;
}
.i-o {
  inset: 0; display: grid; place-content: center;
  font: 500 clamp(220px, 34vw, 640px) / 1 "Jost", sans-serif;
}
.i-o, .i-word { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* Life at ONEWORK: two real team photos */
.life { margin-top: clamp(64px, 8vw, 120px); display: grid; gap: 28px; }
.life-photos { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 20px); align-items: stretch; }
.life-photos figure { margin: 0; overflow: hidden; }
.life-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .life-photos { grid-template-columns: 1fr; } .life-photos img { height: auto; } }
