/* Tenbilsoft public theme.
   This file also loads inside the AdminLTE admin. Every rule must be scoped to a .ts- class,
   be a --ts-* token on :root, or hang off body:has(> .ts-header), which only the public header satisfies.
   Never restyle core classes such as .btn globally.

   Design language (D-300, on top of D-299): one sans family (Pretendard), neutral black / white / #f5f5f7 with the
   logo's cobalt as the single action colour; big tight headlines, lots of air, rounded corners. Key visuals are
   studio renders on black, so they melt into the black sections. Motion lives in motion.js: it only adds
   classes (.is-in) and a scroll progress variable (--ts-p); every animated state is declared here under
   html.ts-js, so without JS (or with reduced motion) the page is simply static and fully visible. */

:root {
  --ts-ink: #000000;
  --ts-ink-2: #161617;
  --ts-paper: #ffffff;
  --ts-tint: #f5f5f7;
  --ts-cobalt: #1553e0;
  --ts-cobalt-deep: #0c3eb5;
  --ts-cobalt-glow: #3b78ff;
  --ts-cyan: #00c8ff;
  --ts-cyan-soft: #8ab4ff;
  --ts-text: #1d1d1f;
  --ts-muted: #6e6e73;
  --ts-line: #e5e5ea;
  --ts-line-dark: #2a2a2d;
  --ts-sans: "Pretendard Variable", "Pretendard JP Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Hiragino Sans", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --ts-mono: var(--ts-sans);
  --ts-gutter: clamp(20px, 4.5vw, 64px);
  --ts-section: clamp(80px, 11vw, 168px);
  --ts-r-sm: 12px;
  --ts-r: 18px;
  --ts-r-lg: clamp(22px, 2.2vw, 32px);
  --ts-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 12px 36px rgba(0, 0, 0, .06);
  --ts-ease: cubic-bezier(.22, .61, .36, 1);
}

/* Core screens opened from the public chrome (login, inquiry) pick up the brand through core tokens. */
body:has(> .ts-header) {
  --c-bg: var(--ts-paper);
  --c-primary: var(--ts-cobalt);
  --c-primary-dark: var(--ts-cobalt-deep);
  --c-accent: var(--ts-cobalt);
  --c-blue: var(--ts-cobalt);
  --font-body: var(--ts-sans);
  --font-display: var(--ts-sans);
}

/* ---------- Shared ---------- */
.ts-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--ts-gutter); }
.ts-main {
  display: block; margin: 0; padding: 0;
  background: var(--ts-paper); color: var(--ts-text);
  font-family: var(--ts-sans); font-size: 17px; line-height: 1.65;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
/* 상속으로 내려보낸다 — 자손마다 직접 걸면 아래 제목 규칙이 span 에서 덮인다. */
.ts-main:lang(ja), .ts-main [lang="ja"] { word-break: normal; line-break: strict; }
/* 일본어 제목은 문절 단위로 끊는다(지원 브라우저만) — '価/値' 처럼 낱말 가운데서 줄이 바뀌지 않게. */
.ts-main :is(.ts-hero-title, .ts-h1, .ts-h2, .ts-cta-title, .ts-creed-line, .ts-statement-text):lang(ja) { word-break: auto-phrase; }
.ts-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ts-skip {
  position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: var(--ts-r-sm);
  background: var(--ts-ink); color: #fff; font-family: var(--ts-sans);
}
.ts-skip:focus { top: 8px; }
#ts-content { display: block; height: 0; outline: 0; }

.ts-main a:focus-visible, .ts-main button:focus-visible, .ts-main input:focus-visible, .ts-main textarea:focus-visible,
.ts-header a:focus-visible, .ts-footer a:focus-visible, .ts-skip:focus-visible {
  outline: 3px solid var(--ts-cobalt-glow); outline-offset: 3px;
}

.ts-eyebrow {
  margin: 0 0 14px; font-family: var(--ts-sans); font-size: 15px; font-weight: 600;
  line-height: 1.5; letter-spacing: 0; color: var(--ts-cobalt);
}
.ts-eyebrow-light { color: var(--ts-cyan-soft); }
.ts-h1, .ts-h2, .ts-hero-title, .ts-cta-title, .ts-creed-line {
  font-family: var(--ts-sans); text-wrap: balance; color: inherit;
}
.ts-h1 {
  margin: 0; font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 700;
  line-height: 1.12; letter-spacing: -.04em;
}
.ts-h2 {
  margin: 0; font-size: clamp(1.9rem, 4.2vw, 3.4rem); font-weight: 700;
  line-height: 1.16; letter-spacing: -.04em; color: var(--ts-text);
}
.ts-lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: inherit; }
.ts-link {
  font-family: var(--ts-sans); font-weight: 500; color: var(--ts-cobalt); text-decoration: none; white-space: nowrap;
}
.ts-link::after { content: " ›"; display: inline-block; margin-left: .2em; transition: transform .3s var(--ts-ease); }
.ts-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.ts-link:hover::after { transform: translateX(4px); }

.ts-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ts-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 26px;
  border: 1px solid transparent; border-radius: 999px; font-family: var(--ts-sans); font-size: 16px; font-weight: 600;
  line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ts-ease);
}
.ts-btn:hover { transform: scale(1.03); }
.ts-btn:active { transform: scale(.98); }
/* The one action colour. */
.ts-btn-accent, .ts-btn-dark { background: var(--ts-cobalt); color: #fff; }
.ts-btn-accent:hover, .ts-btn-dark:hover { background: var(--ts-cobalt-glow); color: #fff; }
.ts-btn-light { background: #fff; color: var(--ts-ink); }
.ts-btn-light:hover { background: var(--ts-tint); color: var(--ts-ink); }
.ts-btn-ghost { border-color: rgba(255, 255, 255, .32); color: #fff; }
.ts-btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.ts-btn-line { border-color: var(--ts-line); background: #fff; color: var(--ts-ink); }
.ts-btn-line:hover { border-color: var(--ts-ink); color: var(--ts-ink); }

.ts-section { padding-block: var(--ts-section); }
.ts-section-tint { background: var(--ts-tint); }
.ts-section-ink { background: var(--ts-ink); color: #a1a1a6; }
.ts-section-ink .ts-h2 { color: #f5f5f7; }
.ts-section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 32px; margin-bottom: 20px;
}
.ts-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.ts-split-head { position: sticky; top: 96px; }
.ts-split-head p:last-child:not(.ts-eyebrow) { margin: 18px 0 0; color: var(--ts-muted); }

/* ---------- Header ----------
   A slim frosted bar. */
.ts-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .76); border-bottom: 1px solid rgba(0, 0, 0, .08);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  font-family: var(--ts-sans);
}
.ts-header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; }
.ts-brand { display: block; line-height: 0; flex: none; }
.ts-brand img { display: block; width: 137px; height: auto; }
.ts-nav-panel { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); }
.ts-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 34px); }
.ts-nav a { color: var(--ts-text); font-size: 15px; font-weight: 500; text-decoration: none; opacity: .82; transition: opacity .2s, color .2s, background-color .2s; }
.ts-nav a:not(.ts-nav-cta):hover, .ts-nav a:not(.ts-nav-cta)[aria-current] { opacity: 1; color: var(--ts-cobalt); }
.ts-nav .ts-nav-cta { padding: 7px 16px; border-radius: 999px; background: var(--ts-cobalt); color: #fff; font-weight: 600; opacity: 1; }
.ts-nav .ts-nav-cta:hover, .ts-nav .ts-nav-cta[aria-current] { background: var(--ts-cobalt-glow); }
/* Language switch: flag icons. The current one is full colour and underlined, the others sit back. */
.ts-lang { display: flex; align-items: center; gap: 2px; }
.ts-lang a { display: block; padding: 6px 5px 5px; opacity: .45; filter: saturate(.6); transition: opacity .15s, filter .15s; }
.ts-lang a:hover, .ts-lang a:focus-visible { opacity: 1; filter: none; }
.ts-lang a[aria-current] { opacity: 1; filter: none; box-shadow: inset 0 -2px 0 var(--ts-cobalt); }
.ts-flag { display: block; width: 22px; height: auto; border-radius: 2px; }
.ts-nav-toggle, .ts-burger { display: none; }

/* ---------- Hero ----------
   Black stage, centred copy, and the key visual (AI-generated in-house, docs/HOME-VISUALS.md) below it. The still
   is a studio render on black, cropped to its lower part and faded at every edge so it has no frame. The video is
   a slow loop of the same still — it only loads when motion is allowed and the viewport is wide enough.
   --ts-p (0 → 1 while the hero scrolls away, set by motion.js) lifts and fades the copy and pushes the visual in. */
.ts-hero { position: relative; overflow: hidden; background: var(--ts-ink); color: #f5f5f7; text-align: center; }
.ts-hero-in {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  padding-block: clamp(64px, 9.5vw, 136px) 0;
  transform: translate3d(0, calc(var(--ts-p, 0) * -48px), 0); opacity: calc(1 - var(--ts-p, 0) * 1.25);
}
.ts-hero-title {
  margin: 0 0 22px; font-size: clamp(2.1rem, 5.6vw, 4.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -.045em; color: #f5f5f7;
}
.ts-hero-title span { display: block; }
.ts-hero-title span:nth-child(2) {
  padding-bottom: .08em; color: #8ab4ff;
  background: linear-gradient(90deg, #5b9bff 0%, #9fd8ff 55%, #c8b6ff 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ts-hero-lead { max-width: 32em; margin: 0 0 32px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; color: #a1a1a6; }
.ts-hero .ts-actions { justify-content: center; }
.ts-hero-stage { position: relative; max-width: 1680px; margin: clamp(-72px, -4vw, -16px) auto 0; pointer-events: none; }
.ts-hero-media {
  position: relative; aspect-ratio: 1920 / 760; min-height: 250px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 24%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  transform: scale(calc(1 + var(--ts-p, 0) * .1)); transform-origin: 50% 60%;
}
.ts-hero-media img, .ts-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ts-hero-video { display: none; opacity: 0; transition: opacity 1.6s ease; }
.ts-hero-video.is-playing { opacity: 1; }
.ts-hero-facts {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  max-width: 920px; margin: clamp(-40px, -2vw, 0px) auto 0; padding: 0 0 clamp(56px, 7vw, 104px); list-style: none;
}
.ts-hero-facts li { padding: 4px clamp(8px, 2vw, 28px); border-left: 1px solid rgba(255, 255, 255, .14); }
.ts-hero-facts li:first-child { border-left: 0; }
.ts-hero-facts strong { display: block; margin-bottom: 6px; font-size: clamp(1.7rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.04em; color: #f5f5f7; }
.ts-hero-facts span { display: block; font-size: 15px; line-height: 1.5; color: #86868b; }

/* ---------- Statement ----------
   One sentence, set large. With JS its words light up one after another as the block scrolls through
   (motion.js wraps each word and sets --i / --n; --ts-p is the block's progress). */
.ts-statement { padding-block: var(--ts-section) 0; }
.ts-statement-text {
  max-width: 21em; margin: 0; font-size: clamp(1.7rem, 4.2vw, 3.4rem); font-weight: 700; line-height: 1.28; letter-spacing: -.04em;
  color: var(--ts-text); text-wrap: balance;
}
.ts-statement-text .ts-w { opacity: clamp(.14, calc(var(--ts-p, 1) * (var(--n) + 3) - var(--i)), 1); }
/* 소개: 10¹⁰ 장면 — 큰 숫자 하나, 그 아래 1 뒤의 0 열 개, 그리고 ten·bil·soft 세 단 */
.ts-tenpow { padding-block: calc(var(--ts-section) * 1.15) var(--ts-section); text-align: center; overflow: hidden; }
.ts-tenpow-num {
  margin: 0; font-size: clamp(7rem, 27vw, 21rem); font-weight: 700; line-height: .92; letter-spacing: -.065em;
  background: linear-gradient(100deg, var(--ts-cobalt-deep) 0%, var(--ts-cobalt) 30%, var(--ts-cobalt-glow) 62%, var(--ts-cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ts-tenpow-num sup { font-size: .4em; line-height: 0; vertical-align: 1.12em; margin-left: .04em; letter-spacing: -.05em; }  /* position 을 주면 부모의 글자 그라데이션이 칠해지지 않는다 */
.ts-tenpow-digits {
  margin: clamp(10px, 1.6vw, 24px) 0 0; font-size: clamp(1.25rem, 4.4vw, 3.2rem); font-weight: 600; line-height: 1.1; letter-spacing: .01em;
  font-variant-numeric: tabular-nums; color: var(--ts-text);
}
.ts-tenpow-digits span { opacity: clamp(.1, calc(var(--ts-p, 1) * 28 - var(--i) - 2), 1); }
.ts-tenpow-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(64px, 9vw, 140px); text-align: left;
}
.ts-tenpow-col { min-width: 0; padding-top: 22px; border-top: 1px solid var(--ts-line); }
.ts-tenpow-col h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; color: var(--ts-text); }
.ts-tenpow-col p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ts-muted); }
/* 소개: 만드는 사람 — 가운데 한 단 */
.ts-maker-in { max-width: 820px; text-align: center; }
.ts-maker-in .ts-h2 { margin-bottom: 22px; }
.ts-maker-in .ts-lead { margin: 0 auto; max-width: 30em; color: var(--ts-text); }
.ts-maker-body { margin: 18px auto 0; max-width: 40em; font-size: 16px; line-height: 1.75; color: var(--ts-muted); }

/* ---------- Work (home) ---------- */
.ts-work-count, .ts-list-count { margin: 0 0 36px; font-size: 15px; color: var(--ts-muted); }
.ts-work-section .ts-section-head { margin-bottom: 10px; }
.ts-list-count { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ts-island-fallback { margin: 24px 0 0; }

/* ---------- Project cards ----------
   Every screenshot sits in the same frame: a soft panel with the shot as a browser window rising from its
   bottom edge. Shots of very different age and colour then read as one set. */
.ts-card { display: block; color: var(--ts-text); text-decoration: none; }
.ts-card-media {
  --ts-pad: clamp(18px, 2.2vw, 32px);
  position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; margin-bottom: 20px;
  padding: var(--ts-pad) var(--ts-pad) 0; border-radius: var(--ts-r-lg); background: var(--ts-tint);
}
.ts-card-media img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-top: 20px solid #fff; border-radius: 12px 12px 0 0; background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .14);
  transform-origin: 50% 100%; transition: transform .7s var(--ts-ease);
}
/* window dots on the white bar */
.ts-card-media::before {
  content: ""; position: absolute; z-index: 1; left: calc(var(--ts-pad) + 12px); top: calc(var(--ts-pad) + 7px);
  width: 6px; height: 6px; border-radius: 50%; background: #d2d2d7; box-shadow: 10px 0 #d2d2d7, 20px 0 #d2d2d7;
  transition: transform .7s var(--ts-ease);
}
.ts-card-media:has(.ts-card-blank)::before { content: none; }
.ts-card:hover .ts-card-media img { transform: translateY(-8px) scale(1.025); }
.ts-card:hover .ts-card-media::before { transform: translateY(-9px); }
.ts-card-blank {
  display: block; height: 100%; border-radius: 12px 12px 0 0;
  background: linear-gradient(150deg, var(--ts-cobalt) 0%, var(--ts-ink) 100%);
}
.ts-card-title {
  display: block; font-size: 1.2rem; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; transition: color .2s;
}
.ts-card:hover .ts-card-title { color: var(--ts-cobalt); }
.ts-card-text {
  display: -webkit-box; margin-top: 6px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: 15.5px; line-height: 1.6; color: var(--ts-muted);
}
.ts-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ts-card-tags span { padding: 3px 10px; border-radius: 999px; background: var(--ts-tint); font-size: 12.5px; line-height: 1.5; color: var(--ts-muted); }
.ts-section-tint .ts-card-tags span { background: #fff; }
.ts-section-tint .ts-card-media { background: #e8e8ed; }
.ts-grid, .ts-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4.4vw, 64px) clamp(20px, 2.4vw, 32px); }
/* Home: the first two are the leads — half width each, the rest in threes. */
.ts-work { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ts-work .ts-card { grid-column: span 2; }
.ts-work .ts-card:nth-child(-n+2) { grid-column: span 3; }
.ts-work .ts-card:nth-child(-n+2) .ts-card-media { aspect-ratio: 16 / 10; }
.ts-work .ts-card:nth-child(-n+2) .ts-card-title { font-size: clamp(1.3rem, 1.9vw, 1.6rem); }

/* ---------- Services ----------
   A black bento: six tiles, each a studio render (same family as the hero) over number, title, one sentence
   and stack pills. Widths alternate 7/5, 5/7, 6/6. The renders are decorative (alt=""). */
.ts-section-head-lg { margin-bottom: clamp(36px, 5vw, 72px); }
.ts-section-head-lg .ts-h2 { max-width: 14em; }
.ts-services-section { background: var(--ts-ink); color: #a1a1a6; }
.ts-services-section .ts-h2 { color: #f5f5f7; }
.ts-services-section .ts-eyebrow { color: var(--ts-cyan-soft); }
.ts-services {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px);
  margin: 0; padding: 0; list-style: none;
}
.ts-service {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; grid-column: span 6;
  border-radius: var(--ts-r-lg); background: var(--ts-ink-2);
}
.ts-service:nth-child(1), .ts-service:nth-child(4) { grid-column: span 7; }
.ts-service:nth-child(2), .ts-service:nth-child(3) { grid-column: span 5; }
.ts-service-media { display: block; flex: 1 1 auto; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.ts-service:nth-child(2) .ts-service-media, .ts-service:nth-child(3) .ts-service-media { aspect-ratio: 4 / 3; }
.ts-service-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ts-ease); }
.ts-service:hover .ts-service-media img { transform: scale(1.05); }
.ts-service-body { padding: clamp(22px, 2.6vw, 36px); }
.ts-service-no { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--ts-cyan-soft); }
.ts-service h3 { margin: 0 0 8px; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; line-height: 1.3; letter-spacing: -.03em; color: #f5f5f7; }
.ts-service-body > p:not(.ts-service-no) { max-width: 32em; margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: #a1a1a6; }
.ts-service-stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ts-service-stack li { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; line-height: 1.5; color: #d2d2d7; }

/* ---------- Process ----------
   Sticky heading on the left, the four steps as a vertical line on the right; the line fills with cobalt as the
   list scrolls through (--ts-p) and each step lights up when it arrives (.is-in). */
.ts-process { background: var(--ts-tint); }
.ts-process-lead { max-width: 26em; margin: 18px 0 0; font-size: 17px; line-height: 1.65; color: var(--ts-muted); }
.ts-steps { position: relative; display: grid; gap: clamp(36px, 5vw, 64px); margin: 0; padding: 6px 0 6px 56px; list-style: none; }
.ts-steps::before, .ts-steps::after { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; }
.ts-steps::before { background: #d2d2d7; }
.ts-steps::after { background: var(--ts-cobalt); transform-origin: 50% 0; transform: scaleY(var(--ts-p, 1)); }
.ts-step { position: relative; min-width: 0; }
.ts-step-no {
  position: absolute; z-index: 1; left: -56px; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; margin: 0;
  border-radius: 50%; background: var(--ts-cobalt); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 6px var(--ts-tint);
}
.ts-step h3 { margin: 0 0 8px; font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 700; line-height: 1.3; letter-spacing: -.03em; color: var(--ts-text); }
.ts-step p:not(.ts-step-no) { max-width: 30em; margin: 0; font-size: 17px; line-height: 1.65; color: var(--ts-muted); }

/* ---------- CTA ----------
   A rounded black panel on the light page, so it does not fuse with the footer. It grows into place (--ts-p). */
.ts-cta { padding-block: var(--ts-section); background: var(--ts-paper); }
.ts-section-tint + .ts-cta, .ts-process + .ts-cta { padding-top: var(--ts-section); }
.ts-cta-panel {
  display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center;
  padding: clamp(48px, 8vw, 112px) clamp(24px, 5vw, 72px); border-radius: clamp(24px, 3vw, 44px);
  background:
    radial-gradient(60% 90% at 50% 120%, rgba(59, 120, 255, .55), transparent 70%),
    var(--ts-ink);
  color: #a1a1a6;
}
.ts-cta-copy { min-width: 0; }
.ts-cta-title { margin: 0 auto 14px; max-width: 14em; font-size: clamp(1.9rem, 4.4vw, 3.6rem); font-weight: 700; line-height: 1.14; letter-spacing: -.045em; color: #f5f5f7; }
.ts-cta p { margin: 0; }
.ts-cta-copy > p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.ts-cta-side { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ts-cta-direct { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: 15px; }
.ts-cta-direct a { color: #d2d2d7; text-decoration: none; }
.ts-cta-direct a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ----------
   Light and quiet. */
.ts-footer { background: var(--ts-tint); color: var(--ts-muted); font-family: var(--ts-sans); font-size: 14.5px; line-height: 1.7; }
.ts-footer a { color: var(--ts-text); text-decoration: none; }
.ts-footer a:hover { color: var(--ts-cobalt); text-decoration: underline; text-underline-offset: 4px; }
.ts-footer-in {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 32px clamp(24px, 5vw, 72px); padding-block: 56px 40px;
}
.ts-footer-brand img { display: block; width: 146px; height: auto; margin-bottom: 16px; }
.ts-footer-brand p { max-width: 24em; margin: 0; word-break: keep-all; }
.ts-footer-contact { margin: 0; }
.ts-footer-contact div { padding-bottom: 12px; }
.ts-footer-contact dt { font-size: 13px; color: #86868b; }
.ts-footer-contact dd { margin: 0; font-size: 16px; }
.ts-footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ts-footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 20px 28px;
  position: relative; font-size: 13px; color: #86868b;
}
.ts-footer-base::before { content: ""; position: absolute; top: 0; left: var(--ts-gutter); right: var(--ts-gutter); border-top: 1px solid #d2d2d7; }
.ts-footer-base p { margin: 0; }
.ts-footer-account { display: flex; gap: 16px; }
.ts-footer-account a { color: #86868b; }

/* ---------- Page heads, list ---------- */
.ts-page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--ts-line); }
/* Dark page head in the hero family (portfolio list and detail, contact): ink with a cobalt glow, no picture. */
.ts-page-head-ink {
  position: relative; overflow: hidden; border-bottom: 0; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(59, 120, 255, .30), transparent 64%),
    var(--ts-ink);
}
.ts-page-head-ink > .ts-wrap { position: relative; }
.ts-page-head-ink .ts-h1 { color: #fff; }
.ts-page-head-ink .ts-crumb a { color: #a1a1a6; }
.ts-page-head-ink .ts-crumb a:hover { color: #fff; }
.ts-page-head-ink .ts-chip { border-color: rgba(255, 255, 255, .2); color: #e8e8ed; }
.ts-page-head-ink .ts-chip span { color: #86868b; }
.ts-page-head-ink .ts-chip:hover { border-color: #fff; }
.ts-page-head-ink .ts-chip[aria-current] { background: #fff; border-color: #fff; color: var(--ts-ink); }
.ts-page-head-ink .ts-chip[aria-current] span { color: var(--ts-muted); }
.ts-page-head-ink .ts-search input { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); color: #fff; }
.ts-page-head-ink .ts-search input::placeholder { color: #86868b; }
.ts-page-head-ink .ts-search button { border-color: var(--ts-cobalt); background: var(--ts-cobalt); color: #fff; }
.ts-page-head-ink .ts-search button:hover { border-color: var(--ts-cobalt-glow); background: var(--ts-cobalt-glow); }
.ts-page-head-ink .ts-facts dt { color: #86868b; }
.ts-page-head-ink .ts-facts dd { color: #f5f5f7; }
.ts-pf-head { padding-bottom: clamp(28px, 3.5vw, 44px); }
.ts-pf-head .ts-list-head { margin-bottom: 36px; }
.ts-pf-lead { max-width: 30em; margin: 14px 0 0; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.7; color: #c7c7cc; }
.ts-list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 32px; }
.ts-search { display: flex; flex: 0 1 400px; min-width: min(100%, 280px); margin: 0; }
.ts-search input {
  flex: 1; min-width: 0; height: 50px; padding: 0 18px; border: 1px solid var(--ts-line); border-right: 0;
  border-radius: 999px 0 0 999px; background: #fff; color: var(--ts-ink); font: 400 16px/1.4 var(--ts-sans);
}
.ts-search input::placeholder { color: var(--ts-muted); opacity: 1; }
.ts-search button {
  flex: none; height: 50px; padding: 0 22px 0 18px; border: 1px solid var(--ts-cobalt); border-radius: 0 999px 999px 0;
  background: var(--ts-cobalt); color: #fff; font: 700 15px/1 var(--ts-sans); cursor: pointer;
}
.ts-search button:hover { background: var(--ts-cobalt-glow); border-color: var(--ts-cobalt-glow); }
.ts-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ts-chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 14px; border: 1px solid var(--ts-line); border-radius: 999px;
  background: transparent; color: var(--ts-text); font-size: 14px; line-height: 1.5; text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.ts-chip span { font-size: 11px; color: var(--ts-muted); }
.ts-chip:hover { border-color: var(--ts-ink); }
.ts-chip[aria-current] { background: var(--ts-ink); border-color: var(--ts-ink); color: #fff; }
.ts-chip[aria-current] span { color: #d2d2d7; }
.ts-list-body { padding-block: 36px var(--ts-section); }
.ts-notice { margin: 0 0 24px; padding: 12px 16px; border-radius: var(--ts-r-sm); background: var(--ts-tint); color: var(--ts-text); }
.ts-empty { padding-block: 64px; font-size: 1.1rem; color: var(--ts-muted); }
.ts-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: clamp(48px, 6vw, 80px); font-size: 15px; }
.ts-pager a, .ts-pager span { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 50%; color: var(--ts-ink); text-decoration: none; }
.ts-pager a:hover { background: var(--ts-tint); }
.ts-pager span { background: var(--ts-ink); color: #fff; }

/* ---------- Project detail ----------
   Dark head with title, summary and facts; the cover overlaps its bottom edge like a sheet laid on the desk. */
.ts-project-head { padding-bottom: clamp(32px, 4vw, 48px); }
.ts-project-covered .ts-project-head { padding-bottom: calc(clamp(32px, 4vw, 48px) + clamp(80px, 11vw, 160px)); }
.ts-project-head .ts-h1 { max-width: 20em; font-size: clamp(2rem, 4.2vw, 3.4rem); }
.ts-project-summary { max-width: 40em; margin: 20px 0 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; color: #c7c7cc; }
.ts-project-cover {
  position: relative; margin: calc(clamp(80px, 11vw, 160px) * -1) 0 clamp(36px, 5vw, 64px); max-width: 1040px;
  overflow: hidden; border-radius: var(--ts-r-lg); background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .26); outline: 1px solid rgba(0, 0, 0, .08); outline-offset: -1px;
}
.ts-project-cover img { display: block; width: 100%; height: auto; }
.ts-prose-covered > img:first-child, .ts-prose-covered > p:first-child > img:first-child { display: none; }
.ts-project .ts-prose > p:first-child:empty { display: none; }
.ts-project .ts-prose { font-size: 17px; line-height: 1.8; }
.ts-project .ts-prose > p:first-of-type:not(:empty) { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.75; color: var(--ts-ink); }
.ts-project .ts-prose h3 {
  display: flex; align-items: center; gap: 12px; margin: 2.4em 0 .8em;
  font: 700 14px/1.5 var(--ts-sans); letter-spacing: .04em; color: var(--ts-cobalt);
}
.ts-project .ts-prose h3::before { content: ""; width: 22px; height: 2px; background: var(--ts-cobalt); }
.ts-project .ts-prose ul { padding-left: 0; list-style: none; }
.ts-project .ts-prose li { position: relative; padding-left: 20px; margin-bottom: .5em; }
.ts-project .ts-prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--ts-cobalt); }
.ts-post-head { border-bottom: 0; padding-bottom: 28px; }
.ts-crumb { margin: 0 0 24px; font-size: 15px; }
.ts-crumb a { color: var(--ts-muted); text-decoration: none; }
.ts-crumb a:hover { color: var(--ts-cobalt); }
.ts-post-head .ts-h1 { max-width: 20em; font-size: clamp(2rem, 4.2vw, 3.4rem); }
.ts-facts { display: flex; flex-wrap: wrap; gap: 20px clamp(32px, 6vw, 72px); margin: 32px 0 0; }
.ts-fact dt { margin-bottom: 8px; font-size: 13px; color: var(--ts-muted); }
.ts-fact dd { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ts-ink); }
.ts-fact dd.ts-chips { font-family: var(--ts-sans); }
.ts-prose { max-width: 880px; padding-bottom: clamp(48px, 7vw, 88px); color: var(--ts-text); }
.ts-prose img { display: block; max-width: 100%; height: auto; margin: 0 0 24px; border-radius: var(--ts-r); outline: 1px solid rgba(0, 0, 0, .08); outline-offset: -1px; }
.ts-prose p, .ts-prose ul, .ts-prose ol { margin: 0 0 1.1em; }
.ts-prose ul, .ts-prose ol { padding-left: 1.3em; }
.ts-prose li { margin-bottom: .35em; }
.ts-prose li::marker { color: var(--ts-cobalt); }
.ts-prose h2, .ts-prose h3, .ts-prose h4 { margin: 1.8em 0 .6em; font-family: var(--ts-sans); font-weight: 700; line-height: 1.4; letter-spacing: -.02em; color: var(--ts-ink); }
.ts-prose a { color: var(--ts-cobalt); text-underline-offset: 3px; }
.ts-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.ts-prose th, .ts-prose td { padding: 8px 12px; border: 1px solid var(--ts-line); }
.ts-prose iframe, .ts-prose video { max-width: 100%; }
.ts-files { max-width: 880px; margin: 0 0 48px; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--ts-line); }
.ts-files a { color: var(--ts-cobalt); }
.ts-postnav {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
  padding-block: 0 56px;
}
.ts-postnav::before { content: ""; grid-column: 1 / -1; border-top: 1px solid var(--ts-line); }
.ts-postnav a { font-size: 1.1rem; font-weight: 700; line-height: 1.45; letter-spacing: -.015em; color: var(--ts-ink); text-decoration: none; }
.ts-postnav a:hover { color: var(--ts-cobalt); }
.ts-postnav span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ts-muted); }
.ts-postnav-end { text-align: right; }
.ts-related-title { margin-bottom: 36px; }

/* ---------- About ----------
   Same hero as the home page with a paragraph more. */
.ts-hero-about .ts-hero-lead { margin-bottom: 14px; }
/* The slab fills the whole height of its still, so the facts sit below it instead of overlapping its foot. */
.ts-hero-about .ts-hero-stage { margin-top: clamp(-24px, -1vw, 0px); }
.ts-hero-about .ts-hero-facts { margin-top: 20px; }
.ts-hero-about .ts-hero-media {
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 86%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 8%, #000 86%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.ts-hero-body { max-width: 40em; margin: 0; font-size: 16px; line-height: 1.7; color: #86868b; }
/* Vision / Mission: two plain cards — label, one line, a paragraph. */
.ts-creed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.ts-creed-card { min-width: 0; padding: clamp(28px, 3.6vw, 52px); border-radius: var(--ts-r-lg); background: var(--ts-tint); }
.ts-creed .ts-eyebrow { margin-bottom: 18px; }
.ts-creed-line { margin: 0 0 16px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.3; letter-spacing: -.04em; color: var(--ts-text); }
.ts-creed-card > p:last-child { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ts-muted); }
.ts-ai { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 88px); align-items: center; }
.ts-ai-copy .ts-h2 { margin-bottom: 24px; }
.ts-ai-copy p { margin: 0 0 16px; }
.ts-ai-copy .ts-lead { color: #f5f5f7; }
.ts-ai-copy p:not(.ts-lead) { color: #a1a1a6; }
.ts-ai-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.ts-ai-images picture { display: block; min-width: 0; overflow: hidden; border-radius: var(--ts-r); background: var(--ts-ink-2); }
/* The pictures drift a little inside their frames while the block scrolls through (--ts-p). */
.ts-ai-images img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transform: scale(1.12) translate3d(0, calc((var(--ts-p, .5) - .5) * -7%), 0); }
.ts-ai-images picture:first-child { grid-column: span 2; }
.ts-ai-images picture:first-child img { aspect-ratio: 16 / 9; }
.ts-ai-images figcaption { grid-column: span 2; font-size: 14px; color: #86868b; }
/* Journey: a year column with a line that fills as you scroll, text, and a small render per year. */
.ts-journey { position: relative; margin: 0; padding: 0; list-style: none; }
.ts-journey-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) 190px; gap: 8px 28px; align-items: start;
  padding-block: 30px; border-top: 1px solid #d2d2d7;
}
.ts-journey-row:first-child { padding-top: 0; border-top: 0; }
.ts-journey-year { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.3; letter-spacing: -.03em; color: var(--ts-cobalt); }
.ts-journey-row h3 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; color: var(--ts-text); }
.ts-journey-row p:not(.ts-journey-year) { margin: 0; font-size: 16px; color: var(--ts-muted); }
.ts-journey-row picture { display: block; min-width: 0; overflow: hidden; border-radius: var(--ts-r); background: #000; }
.ts-journey-row img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1s var(--ts-ease); }
.ts-journey-row:hover img { transform: scale(1.06); }
/* ---------- Contact ---------- */
/* Dark head, a dark contact card on the left, the form on a white sheet that overlaps the head. */
.ts-contact-head { padding-bottom: calc(clamp(32px, 4vw, 48px) + 72px); }
.ts-contact-lead { max-width: 34em; margin: clamp(16px, 2.4vw, 24px) 0 0; color: #c7c7cc; }
.ts-contact-body { padding-top: 0; }
.ts-contact-split { margin-top: -72px; position: relative; }
.ts-contact-side { display: flex; flex-direction: column; gap: 24px; }
.ts-contact-card { padding: 28px clamp(20px, 2.4vw, 32px) 30px; border-radius: var(--ts-r-lg); background: var(--ts-ink-2); color: #e8e8ed; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.ts-contact-card .ts-eyebrow { margin-bottom: 8px; }
.ts-contact-direct { margin: 0; }
.ts-contact-direct div { padding-block: 14px; border-top: 1px solid var(--ts-line-dark); }
.ts-contact-direct div:first-child { border-top: 0; }
.ts-contact-direct dt { margin-bottom: 4px; font-size: 13px; color: #86868b; }
.ts-contact-direct dd { margin: 0; font-size: 18px; }
.ts-contact-direct a { color: #fff; text-decoration: none; }
.ts-contact-direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ts-contact-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--ts-line-dark); font-size: 15px; line-height: 1.6; color: #c7c7cc; }
.ts-contact-steps { margin: 0; padding: 0 8px; list-style: none; display: grid; gap: 10px; }
.ts-contact-steps li { display: flex; align-items: baseline; gap: 12px; font-size: 15.5px; font-weight: 600; color: var(--ts-ink); }
.ts-contact-steps span { font-size: 12px; font-weight: 500; color: var(--ts-cobalt); }
.ts-contact-sheet {
  padding: clamp(24px, 3.2vw, 44px) clamp(20px, 3vw, 44px) clamp(28px, 3.6vw, 48px); border-radius: var(--ts-r-lg);
  background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .16); outline: 1px solid rgba(0, 0, 0, .06); outline-offset: -1px;
}
.ts-contact-sheet .ts-form { max-width: none; }
.ts-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.ts-thanks-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 22px; border-radius: 50%; background: var(--ts-cobalt); color: #fff; font-size: 26px; font-weight: 700; }
.ts-form { display: flex; flex-direction: column; gap: 28px; max-width: 880px; }
.ts-form-hint { margin: 0; font-size: 15px; color: var(--ts-muted); }
.ts-form-error { margin: 0; padding: 14px 18px; border-radius: var(--ts-r-sm); background: #fdecec; color: #8c1c21; font-weight: 600; }
.ts-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(16px, 2.2vw, 28px); }
.ts-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ts-field-wide { grid-column: 1 / -1; }
.ts-field label { font-size: 15px; font-weight: 700; color: var(--ts-ink); }
.ts-field input, .ts-field textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--ts-line); border-radius: var(--ts-r-sm);
  background: var(--ts-tint); color: var(--ts-ink); font: 400 16px/1.6 var(--ts-sans);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.ts-field input:focus, .ts-field textarea:focus { border-color: var(--ts-cobalt); background: #fff; outline: 0; box-shadow: 0 0 0 4px rgba(21, 83, 224, .16); }
.ts-field input { height: 52px; }
.ts-field textarea { min-height: 220px; resize: vertical; }
.ts-field-hint { margin: 0; font-size: 14px; color: var(--ts-muted); }
.ts-req { color: var(--ts-cobalt); }
.ts-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts-consent { padding: 20px 22px; border-radius: var(--ts-r); background: var(--ts-tint); }
.ts-consent-title { margin: 0 0 6px; font-weight: 700; color: var(--ts-ink); }
.ts-consent-body { margin: 0 0 14px; font-size: 15px; line-height: 1.7; white-space: pre-line; color: var(--ts-muted); }
.ts-consent-body a { color: var(--ts-cobalt); text-underline-offset: 3px; }
.ts-check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ts-ink); cursor: pointer; }
.ts-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ts-cobalt); }
.ts-captcha label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 500; }
.ts-captcha input { width: auto; max-width: 160px; }
.ts-form-submit { align-self: flex-start; min-width: 200px; }
.ts-thanks { max-width: 880px; padding-top: 8px; }
.ts-thanks .ts-h2 { margin-bottom: 18px; }
.ts-thanks .ts-lead { margin: 0 0 32px; }

/* ---------- Motion ----------
   Intro (hero) is pure CSS. Everything scroll-driven needs motion.js, which sets html.ts-js before first paint
   (partials/ts_head.html), writes --ts-r on the elements listed below as they move through the viewport, and writes --ts-p
   on [data-ts-scrub] elements. If the script never arrives the inline loader drops .ts-js again after 3s. */
@keyframes ts-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ts-stage { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ts-hero .ts-eyebrow, .ts-hero-title span, .ts-hero-lead, .ts-hero-body, .ts-hero .ts-actions { animation: ts-rise 1s var(--ts-ease) both; }
  .ts-hero-title span:nth-child(1) { animation-delay: .08s; }
  .ts-hero-title span:nth-child(2) { animation-delay: .2s; }
  .ts-hero-lead { animation-delay: .34s; }
  .ts-hero-body, .ts-hero .ts-actions { animation-delay: .46s; }
  .ts-hero-stage { animation: ts-stage 2s var(--ts-ease) .3s both; }
  /* The loop is a nice-to-have: only wide screens with motion allowed download it (the still stays underneath). */
  @media (min-width: 821px) { .ts-hero-video { display: block; } }

  /* Reveal follows the scroll (--ts-r, 0 → 1, written by motion.js), so it plays backwards on the way up.
     No transition here: motion.js eases the value itself. Same selector list as REVEAL in motion.js. */
  .ts-js :is(.ts-section-head, .ts-statement-text, .ts-card, .ts-service, .ts-step, .ts-creed-card, .ts-journey-row,
             .ts-ai-copy, .ts-ai-images, .ts-split-head, .ts-hero-facts li, .ts-contact-card, .ts-contact-steps, .ts-contact-sheet,
             .ts-project-cover, .ts-work-count, .ts-list-count, .ts-pager, .ts-tenpow-col, .ts-maker-in) {
    opacity: calc(var(--ts-r, 0) * 1.5); transform: translate3d(0, calc((1 - var(--ts-r, 0)) * 56px), 0);
  }
  .ts-js :is(.ts-card, .ts-service, .ts-creed-card, .ts-project-cover, .ts-contact-card, .ts-contact-sheet) {
    transform: translate3d(0, calc((1 - var(--ts-r, 0)) * 72px), 0) scale(calc(.9 + var(--ts-r, 0) * .1)); transform-origin: 50% 100%;
  }
  /* Headings come into focus as they rise. */
  .ts-js :is(.ts-section-head, .ts-split-head, .ts-maker-in, .ts-ai-copy) { filter: blur(calc((1 - var(--ts-r, 0)) * 8px)); }
  /* Steps wait dimmed on the line instead of disappearing. */
  .ts-js .ts-step { opacity: calc(.28 + var(--ts-r, 0) * .72); transform: none; }
  .ts-js .ts-step .ts-step-no { transition: background-color .5s, transform .6s var(--ts-ease); }
  .ts-js .ts-step:not(.is-in) .ts-step-no { background: #c7c7cc; transform: scale(.82); }
  /* Pictures drift inside their frames while they pass through the screen (--ts-p on the frame). Uses the
     individual translate/scale properties so the hover transform keeps working on top. */
  .ts-js :is(.ts-service-media, .ts-journey-row picture) img { scale: 1.16; translate: 0 calc((var(--ts-p, .5) - .5) * -10%); }
  /* The CTA panel grows into place while it scrolls in. */
  .ts-js .ts-cta-panel { transform: scale(calc(.88 + var(--ts-p, 1) * .12)); transform-origin: 50% 100%; }
  .ts-js .ts-tenpow-num { transform: scale(calc(.72 + var(--ts-p, 1) * .28)); transform-origin: 50% 60%; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-btn, .ts-chip, .ts-card-media img, .ts-card-media::before, .ts-service-media img, .ts-journey-row img, .ts-link::after { transition: none; }
  .ts-btn:hover, .ts-card:hover .ts-card-media img, .ts-card:hover .ts-card-media::before, .ts-service:hover .ts-service-media img,
  .ts-journey-row:hover img, .ts-link:hover::after { transform: none; }
  .ts-hero-in, .ts-hero-media { transform: none; opacity: 1; }
  .ts-ai-images img { transform: none; }
  .ts-hero-video { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ts-split, .ts-ai, .ts-tenpow-grid { grid-template-columns: minmax(0, 1fr); }
  .ts-split-head { position: static; }
  .ts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-work .ts-card, .ts-work .ts-card:nth-child(-n+2) { grid-column: span 3; }
  .ts-service, .ts-service:nth-child(n) { grid-column: span 6; }
  .ts-service .ts-service-media, .ts-service:nth-child(n) .ts-service-media { aspect-ratio: 4 / 3; }
  .ts-footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-footer-brand { grid-column: span 2; }
}

@media (max-width: 820px) {
  .ts-header-in { min-height: 56px; }
  .ts-brand img { width: 124px; }
  .ts-nav-toggle {
    display: block; position: absolute; right: var(--ts-gutter); top: 6px; width: 44px; height: 44px;
    margin: 0; opacity: 0; cursor: pointer; z-index: 2;
  }
  .ts-burger { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; }
  .ts-burger span, .ts-burger span::before, .ts-burger span::after {
    display: block; width: 20px; height: 1.5px; border-radius: 2px; background: var(--ts-text); transition: transform .3s var(--ts-ease);
  }
  .ts-burger span { position: relative; }
  .ts-burger span::before, .ts-burger span::after { content: ""; position: absolute; left: 0; }
  .ts-burger span::before { top: -6px; }
  .ts-burger span::after { top: 6px; }
  .ts-nav-toggle:focus-visible + .ts-burger { outline: 3px solid var(--ts-cobalt); outline-offset: -3px; }
  .ts-nav-toggle:checked + .ts-burger span { background: transparent; }
  .ts-nav-toggle:checked + .ts-burger span::before { transform: translateY(6px) rotate(45deg); }
  .ts-nav-toggle:checked + .ts-burger span::after { transform: translateY(-6px) rotate(-45deg); }
  /* The frosted header cannot be the containing block's backdrop for the panel, so the panel is solid. */
  .ts-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ts-nav-panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 8px var(--ts-gutter) 24px; background: #fff; border-bottom: 1px solid var(--ts-line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .1);
  }
  .ts-nav-toggle:checked ~ .ts-nav-panel { display: flex; }
  .ts-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .ts-nav a { padding: 14px 0; font-size: 18px; opacity: 1; }
  .ts-nav a:not(.ts-nav-cta) { border-bottom: 1px solid var(--ts-line); }
  .ts-nav .ts-nav-cta { margin-top: 16px; padding: 14px 16px; text-align: center; }
  .ts-lang { justify-content: center; gap: 10px; }
  .ts-lang a { padding: 8px; }
  .ts-flag { width: 28px; }
  .ts-hero-stage { margin-top: 0; }
  .ts-hero-media {
    -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 82%, transparent);
    mask-image: linear-gradient(transparent, #000 22%, #000 82%, transparent);
  }
  .ts-hero-facts { margin-top: 8px; }
  .ts-creed { grid-template-columns: minmax(0, 1fr); }
  .ts-journey-row { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 16px; }
  .ts-journey-year { font-size: 1.15rem; line-height: 1.7; }
  .ts-journey-row picture { grid-column: 2; max-width: 280px; margin-top: 8px; }
  .ts-contact-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .ts-main { font-size: 16px; }
  .ts-actions .ts-btn { flex: 1 1 100%; }
  .ts-hero .ts-actions { width: 100%; }
  .ts-grid { grid-template-columns: minmax(0, 1fr); }
  .ts-service, .ts-service:nth-child(n) { grid-column: 1 / -1; }
  .ts-service .ts-service-media, .ts-service:nth-child(n) .ts-service-media { aspect-ratio: 16 / 10; }
  .ts-section-head-lg { margin-bottom: 28px; }
  .ts-work { grid-template-columns: minmax(0, 1fr); }
  .ts-work .ts-card, .ts-work .ts-card:nth-child(-n+2) { grid-column: auto; }
  .ts-work .ts-card:nth-child(-n+2) .ts-card-media { aspect-ratio: 16 / 11; }
  /* 한 줄에 하나씩 쌓이는 폭에서는 여섯 개까지만 — 나머지는 '전체 프로젝트 보기'로. */
  .ts-work .ts-card:nth-child(n+7) { display: none; }
  .ts-hero-facts li { padding-inline: 6px; }
  .ts-hero-facts strong { font-size: 1.5rem; }
  .ts-hero-facts span { font-size: 12.5px; }
  .ts-steps { padding-left: 48px; }
  .ts-step-no { left: -48px; }
  .ts-postnav { grid-template-columns: minmax(0, 1fr); }
  .ts-postnav-end { text-align: left; }
  .ts-cta-side { width: 100%; }
  .ts-cta-side .ts-btn { width: 100%; }
  .ts-search { flex-basis: 100%; }
  /* 태그 칩은 한 줄로 두고 옆으로 민다 — 서른 개가 화면 하나를 다 차지하지 않게. */
  .ts-pf-head .ts-chips {
    flex-wrap: nowrap; margin-inline: calc(var(--ts-gutter) * -1); padding: 2px var(--ts-gutter);
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .ts-pf-head .ts-chips::-webkit-scrollbar { display: none; }
  .ts-pf-head .ts-chip { flex: none; }
  .ts-form-grid { grid-template-columns: minmax(0, 1fr); }
  .ts-form-submit { align-self: stretch; }
  .ts-form-foot .ts-form-submit { flex: 1 1 100%; }
  .ts-footer-in { grid-template-columns: minmax(0, 1fr); padding-block: 44px 32px; }
  .ts-footer-brand { grid-column: auto; }
}

.ts-admin-link { font-size: .85rem; color: inherit; opacity: .75; white-space: nowrap; }
.ts-admin-link:hover, .ts-admin-link:focus-visible { opacity: 1; }
