/* carloslastres.jp homepage, studio edition (2026-11-22, round 2)
   Loaded only by the homepages and the contact pages. Every other page keeps
   styles.css. Markup comes from i18n/source.html and contact/build.mjs.

   One light card holds the hero: Carlos cut out in the middle, the proposition on
   the left, proof in the corners. Below it the page goes black and quiet: one
   statement, light proof cards, clean rows. Violet (the lastres.ai violet) is a
   hint, never a surface: dots before labels, hover arrows, focus, the closing
   CTA. */

:root {
  --bg: #0b0b0c;
  --tile: #151516;
  --tile-hi: #1c1c1e;
  --line: #2a2a2d;
  --ink: #f4f4f5;
  --ink-2: #a3a3a8;
  --ink-3: #8b8b91;

  --paper: #e4e4e4;
  --paper-2: #d2d2d3;
  --paper-ink: #0d0d0e;
  --paper-ink-2: #4c4c52;

  --violet: #7a22e6;
  --violet-2: #b04dff;

  --f-text: 'Inter Tight', 'Noto Sans JP', 'Hiragino Sans', 'PingFang SC', system-ui, sans-serif;
  --f-wide: var(--f-text);
  --f-mono: 'IBM Plex Mono', 'Noto Sans JP', ui-monospace, monospace;

  --gut: 40px;
  --max: 1440px;
  --sec: 160px;
  --r-xl: 24px;
  --r-lg: 16px;
  --r-md: 10px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}
@media (max-width: 899px) { :root { --gut: 16px; --sec: 104px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-text); font-size: 17px; line-height: 1.45;
  font-kerning: normal; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body:lang(ja), body:lang(zh) { line-height: 1.7; line-break: strict; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { text-wrap: balance; word-break: auto-phrase; overflow-wrap: anywhere; }
p { text-wrap: pretty; }
strong { font-weight: inherit; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 4px; }
.stage :focus-visible { outline-color: var(--violet); }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 50; background: var(--ink); color: var(--bg); padding: 12px 16px; font-weight: 600; border-radius: var(--r-md); }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Atoms ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-md);
  font: 500 14px/1 var(--f-text); white-space: nowrap; border: 0; cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active, .pill:active { transform: scale(0.97); }
.btn--dark { background: var(--paper-ink); color: #fff; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 500 14px/1 var(--f-text); white-space: nowrap;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 120ms var(--ease-out);
}
.pill--line { border: 1px solid var(--line); color: var(--ink); }
.pill--sm { min-height: 32px; padding: 0 14px; font-size: 12px; letter-spacing: 0.02em; }
.pill--lime, .pill--violet { background: var(--violet); color: #fff; border-radius: var(--r-md); font-weight: 600; }
.pill--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover { background: #2a2a2e; }
  .pill--line:hover { border-color: var(--ink-3); }
  .pill--lime:hover, .pill--violet:hover { background: #8d3cf0; }
}

.label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 32px;
  font: 500 12px/1.4 var(--f-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); flex: none; }
.label--quiet { margin-bottom: 16px; }
.tag, .micro, .timecode, .cap-num, .row-id, .stat-label, .un-meta {
  font: 500 12px/1.4 var(--f-text); letter-spacing: 0.06em; color: var(--ink-2);
}
.micro { margin-bottom: 16px; text-transform: uppercase; }
.display {
  font: 500 clamp(34px, 4.2vw, 64px)/0.98 var(--f-text); letter-spacing: -0.035em; color: var(--ink);
}
.display:has(strong) { color: var(--ink-2); }
.display strong { color: var(--ink); }
:lang(ja) .display, :lang(zh) .display { letter-spacing: -0.02em; font-weight: 600; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: currentColor;
}
@media (hover: hover) and (pointer: fine) { .text-link:hover { text-decoration-color: var(--violet-2); } .stage .text-link:hover { text-decoration-color: var(--violet); } }

/* ── Stage: the light hero card, masthead included ───────────── */

.stage {
  --mast-h: 96px;
  position: relative; margin: 16px; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #ececec 0%, var(--paper) 45%, var(--paper-2) 100%);
  color: var(--paper-ink); height: clamp(720px, calc(100svh - 32px), 920px);
}
.mast.mast--over { position: absolute; z-index: 10; top: 16px; left: 16px; right: 16px; color: var(--paper-ink); }
.mast { position: relative; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.mast-brand { display: inline-flex; align-items: center; min-height: 44px; font: 600 19px/1 var(--f-text); letter-spacing: -0.02em; margin-right: 8px; }
.mast-brand sup { font-size: 0.5em; margin-left: 1px; }
.mast-nav {
  display: flex; gap: 2px; padding: 4px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.72); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.mast-nav a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 7px;
  font: 500 13px/1 var(--f-text); color: var(--paper-ink-2); white-space: nowrap;
  transition: background-color 160ms, color 160ms;
}
.mast-nav a:first-child { background: var(--paper-ink); color: #fff; }
.nav-contact { display: none !important; }
.lang { display: flex; gap: 2px; margin-left: auto; }
.lang a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 9px; font: 500 12px/1 var(--f-text); letter-spacing: 0.04em; color: var(--paper-ink-2); border-radius: 7px; }
.lang a[aria-current="true"] { color: var(--paper-ink); box-shadow: inset 0 -2px 0 var(--violet); border-radius: 0; }
@media (hover: hover) and (pointer: fine) {
  .mast-nav a:not(:first-child):hover { background: #fff; color: var(--paper-ink); }
  .lang a:hover { color: var(--paper-ink); }
}

.hero-portrait {
  position: absolute; z-index: 1; bottom: 0; left: 50%; transform: translateX(-44%);
  height: calc(100% - var(--mast-h) + 8px); aspect-ratio: 1; pointer-events: none;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.hero-copy { position: absolute; z-index: 2; left: 24px; top: calc(var(--mast-h) + 9%); width: min(44%, 640px); display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  font: 500 clamp(44px, 4.3vw, 76px)/0.92 var(--f-text); letter-spacing: -0.05em; color: var(--paper-ink);
}
.hero h1 strong { color: #55555b; }
:lang(ja) .hero h1, :lang(zh) .hero h1 { font-size: clamp(38px, 4vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; }
:lang(es) .hero h1 { font-size: clamp(40px, 3.8vw, 68px); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 12px/1.4 var(--f-text); letter-spacing: 0.04em; color: var(--paper-ink); margin-top: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); flex: none; }
.hero-lede { font-size: 15px; line-height: 1.5; color: var(--paper-ink-2); max-width: 30em; }
:lang(ja) .hero-lede, :lang(zh) .hero-lede { line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.spec-card {
  position: absolute; z-index: 3; right: 24px; top: calc(var(--mast-h) + 72px); width: 300px;
  background: var(--paper-ink); color: #fff; border-radius: var(--r-lg); padding: 8px 20px;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.5);
}
.spec-card > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; }
.spec-card > div + div { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.spec-card dt { font-size: 13px; color: #a3a3a8; }
.spec-card dd { font-size: 14px; font-weight: 600; text-align: right; }

.talk-card {
  position: absolute; z-index: 3; right: 24px; bottom: 24px; width: 300px;
  display: grid; gap: 12px; padding: 16px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.45);
}
.talk-meta { display: grid; gap: 4px; }
.talk-card .timecode { color: var(--paper-ink-2); }
.talk-title { font: 600 17px/1.25 var(--f-text); letter-spacing: -0.01em; }
.talk-media { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #222; }
.talk-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.08); transition: filter 300ms var(--ease-out); }
.talk-go {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 18px; transition: background-color 200ms, transform 200ms var(--ease-out);
}
.talk-link { font-size: 13px; font-weight: 500; color: var(--paper-ink-2); }
@media (hover: hover) and (pointer: fine) {
  .talk-card:hover .talk-media img { filter: none; }
  .talk-card:hover .talk-go { background: var(--violet); transform: scale(1.06); }
}
.stage-caption {
  position: absolute; z-index: 2; right: 24px; top: calc(var(--mast-h) + 16px);
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); font: 500 12px/1 var(--f-text); letter-spacing: 0.04em; color: var(--paper-ink);
}
.stage-caption::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--paper-ink); box-shadow: inset 0 0 0 5px var(--paper-ink), inset 0 0 0 7px #fff; }

@media (max-width: 1279px) {
  .stage { --mast-h: 148px; }
  .mast { flex-wrap: wrap; row-gap: 12px; }
  .mast-nav { order: 5; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .mast-nav::-webkit-scrollbar { display: none; }
  .hero-copy { width: min(40%, 480px); }
}
@media (max-width: 899px) {
  .stage { margin: 8px; height: auto; --mast-h: 112px; }
  .mast.mast--over { top: 8px; left: 8px; right: 8px; }
  .mast { padding: 14px 14px 0; gap: 8px; }
  .mast-cta { display: none; }
  .mast-nav .nav-contact { display: inline-flex !important; }
  .hero { display: flex; flex-direction: column; padding: calc(var(--mast-h) + 24px) 14px 14px; gap: 16px; }
  .hero-copy { position: static; width: auto; gap: 18px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  :lang(ja) .hero h1, :lang(zh) .hero h1 { font-size: clamp(32px, 9.6vw, 44px); }
  .hero-portrait { position: relative; left: auto; transform: none; width: 100%; height: auto; margin: 0 auto; max-width: 360px; }
  .hero-copy { order: -1; }
  .hero-lede { font-size: 15px; }
  .spec-card, .talk-card { position: static; width: auto; }
  .stage-caption { display: none; }
}

/* ── Strip under the stage ─────────────────────────────────── */
.strip {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gut);
  font: 500 12px/1 var(--f-text); letter-spacing: 0.08em; color: var(--ink-3); border-bottom: 1px solid var(--line);
}
.strip-mid { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.strip-mid i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 11px; }
@media (max-width: 599px) { .strip span:last-child { display: none; } }

/* ── Sections ──────────────────────────────────────────────── */
.sec { max-width: var(--max); margin: var(--sec) auto 0; padding: 0 var(--gut); }
.head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: end; margin-bottom: 56px; }
.head .display { grid-column: 1 / span 7; }
.head .lede { grid-column: 9 / span 4; color: var(--ink-2); font-size: 16px; }
.head--split .pill { grid-column: 10 / span 3; justify-self: end; }
@media (max-width: 899px) {
  .head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .head .display, .head .lede, .head--split .pill { grid-column: 1; justify-self: start; }
}

/* About: the statement */
.about { text-align: center; }
.about .label { justify-content: center; }
.statement {
  max-width: 20em; margin: 0 auto; color: var(--ink-2);
  font: 500 clamp(32px, 4vw, 60px)/1 var(--f-text); letter-spacing: -0.04em;
}
.statement strong { color: var(--ink); }
:lang(ja) .statement, :lang(zh) .statement { max-width: 17em; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.about-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 96px auto 0; text-align: left;
  font-size: 15px; color: var(--ink-2);
}
.about-cols p { padding-top: 16px; border-top: 1px solid var(--line); }
.about-cols p:first-child { color: var(--ink); }
@media (max-width: 1099px) { .about-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .about-cols { grid-template-columns: 1fr; margin-top: 56px; } }

.trust {
  display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: center; text-align: left;
  margin-top: 96px; padding: 40px; border: 1px solid var(--line); border-radius: var(--r-xl);
}
.trust-head { font: 500 clamp(26px, 2.6vw, 40px)/1.02 var(--f-text); letter-spacing: -0.03em; text-transform: none; }
:lang(ja) .trust-head, :lang(zh) .trust-head { line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.trust > * { min-width: 0; }
.logos { background: var(--paper); border-radius: var(--r-lg); padding: 28px 0; position: relative; min-width: 0; }
.logo-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-row { display: flex; align-items: center; gap: 56px; padding: 0 28px; width: max-content; }
.logo-row img { height: 26px; width: auto; max-width: 140px; object-fit: contain; filter: brightness(0); opacity: 0.82; }
.logo-row .logo-toei, .logo-row .logo-sylvanian, .logo-row .logo-cryptokitties { height: 32px; }
.logo-row .logo-toei, .logo-row .logo-sylvanian { filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; }
.logo-pause {
  position: absolute; right: 12px; bottom: -44px; white-space: nowrap;
  font: 500 12px/1 var(--f-text); color: var(--ink-2); background: none; border: 1px solid var(--line);
  border-radius: 999px; min-height: 32px; padding: 0 12px; cursor: pointer;
}
.is-marquee .logo-track { display: flex; width: 100%; }
.is-marquee .logo-row { animation: drift 60s linear infinite; }
.is-paused .logo-row { animation-play-state: paused; }
.logos:not(.is-marquee) .logo-row { flex-wrap: wrap; width: auto; row-gap: 24px; justify-content: center; }
@keyframes drift { to { transform: translateX(-100%); } }
@media (max-width: 899px) { .trust { grid-template-columns: 1fr; padding: 24px; margin-bottom: 44px; } }
.trust { margin-bottom: 44px; }

/* Credentials */
.creds { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; }
.cred { display: flex; flex-direction: column; background: var(--tile); border-radius: var(--r-lg); overflow: hidden; }
.cred-object { background: #f6f5f8; display: grid; place-items: center; padding: 24px; aspect-ratio: 16 / 10; }
.cred-object img { height: 100%; width: auto; max-height: 420px; }
.cred-badge { display: grid; place-items: center; padding: 32px; aspect-ratio: 16 / 10; background: var(--paper); }
.cred-badge img { height: 100%; width: auto; max-height: 300px; }
.cred-copy { padding: 32px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cred-copy h2 { font: 500 clamp(24px, 2.2vw, 32px)/1.05 var(--f-text); letter-spacing: -0.025em; color: var(--ink-2); }
.cred-copy h2 strong { color: var(--ink); }
:lang(ja) .cred-copy h2, :lang(zh) .cred-copy h2 { font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.stair { margin-top: auto; padding-top: 24px; font-size: 13px; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
@media (max-width: 899px) { .creds { grid-template-columns: 1fr; } .cred-copy { padding: 24px; } }

/* Apps: light cards, the ARC row */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.app {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-height: 260px; padding: 24px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #f1f1f1, var(--paper-2)); color: var(--paper-ink);
}
.app:nth-child(even) { margin-top: 32px; }
.app .tag { color: var(--paper-ink-2); }
.app-name { font: 500 clamp(28px, 2.4vw, 36px)/0.98 var(--f-text); letter-spacing: -0.04em; margin-top: auto; }
.app-desc { color: var(--paper-ink-2); font-size: 15px; line-height: 1.5; }
.app .pill--line { border-color: rgba(0, 0, 0, 0.18); color: var(--paper-ink); }
@media (hover: hover) and (pointer: fine) {
  .app:hover .pill--line { border-color: var(--violet); color: var(--violet); }
}
@media (max-width: 1099px) { .apps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .apps { grid-template-columns: 1fr; } .app { min-height: 190px; } .app:nth-child(even) { margin-top: 0; } }

/* Capabilities */
.caps { border-bottom: 1px solid var(--line); }
.cap { display: grid; grid-template-columns: 1fr 4fr 7fr; gap: 16px; align-items: baseline; padding: 32px 0; border-top: 1px solid var(--line); }
.cap-num { color: var(--violet-2); }
.cap h3 { font: 500 clamp(22px, 1.9vw, 28px)/1.05 var(--f-text); letter-spacing: -0.025em; }
:lang(ja) .cap h3, :lang(zh) .cap h3 { font-weight: 600; letter-spacing: -0.01em; }
.cap p { color: var(--ink-2); max-width: 40em; font-size: 16px; }
@media (max-width: 899px) { .cap { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; } }

/* Works */
.index { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 96px minmax(0, 5fr) minmax(0, 5fr) 32px; gap: 16px; align-items: center;
  min-height: 76px; padding: 12px 0; border-top: 1px solid var(--line);
  transition: padding 240ms var(--ease-out), background-color 200ms;
}
.row-name { font: 500 clamp(20px, 2vw, 30px)/1.05 var(--f-text); letter-spacing: -0.03em; }
.row-scope { font-size: 13px; color: var(--ink-2); letter-spacing: 0.02em; }
.row-arrow { justify-self: end; color: var(--ink-3); transition: transform 200ms var(--ease-out), color 200ms; }
@media (hover: hover) and (pointer: fine) {
  .row:hover { padding-left: 12px; padding-right: 12px; background: var(--tile); border-radius: 12px; }
  .row:hover .row-arrow { color: var(--violet-2); transform: translate(2px, -2px); }
}
@media (max-width: 699px) {
  .row { grid-template-columns: 52px minmax(0, 1fr) 20px; row-gap: 4px; }
  .row-scope { grid-column: 2; grid-row: 2; }
  .row-arrow { grid-column: 3; grid-row: 1; }
}

/* Impact: light stat cards */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.stat {
  display: flex; flex-direction: column; gap: 12px; min-height: 340px; padding: 24px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #f1f1f1, var(--paper-2)); color: var(--paper-ink);
}
.stat:nth-child(2) { margin-top: 32px; }
.stat-figure { order: 2; margin-top: auto; font: 500 clamp(64px, 6.4vw, 104px)/0.9 var(--f-text); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.stat-label { order: 1; color: var(--paper-ink-2); }
.stat p:last-child { order: 3; color: var(--paper-ink-2); font-size: 14px; line-height: 1.55; }
@media (max-width: 899px) { .stats { grid-template-columns: 1fr; } .stat { min-height: 260px; } .stat:nth-child(2) { margin-top: 0; } }

/* Speaking: the one section on the faint grid */
#speaking { position: relative; }
#speaking::before {
  content: ''; position: absolute; inset: -64px 0 -64px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px; opacity: 0.45;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.talks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.still { display: flex; flex-direction: column; gap: 14px; }
.still img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); filter: grayscale(1) contrast(1.08); transition: filter 400ms var(--ease-out); }
.still-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.still-name { font: 500 22px/1.1 var(--f-text); letter-spacing: -0.025em; }
@media (hover: hover) and (pointer: fine) { .still:hover img { filter: none; } .still:hover .pill--line { border-color: var(--violet-2); } }
@media (max-width: 899px) { .talks { grid-template-columns: 1fr; } }
.un { margin: 120px auto 0; max-width: 980px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.un-headline { font: 500 clamp(26px, 3vw, 44px)/1.08 var(--f-text); letter-spacing: -0.035em; color: var(--ink-2); }
:lang(ja) .un-headline, :lang(zh) .un-headline { line-height: 1.35; letter-spacing: -0.01em; font-weight: 600; }
.un-headline strong { color: var(--ink); }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; margin-top: 120px; }
.links { border-bottom: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.links .arrow { color: var(--ink-3); flex: none; transition: color 160ms; }
@media (hover: hover) and (pointer: fine) { .links a:hover .arrow { color: var(--violet-2); } }
@media (max-width: 899px) { .lists { grid-template-columns: 1fr; gap: 48px; } }

/* Press */
.press-list { border-bottom: 1px solid var(--line); }
.press-item { border-top: 1px solid var(--line); padding: 20px 0; }
.press-row {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) 96px 24px; gap: 16px; align-items: baseline;
}
.press-outlet { font: 600 17px/1.2 var(--f-text); letter-spacing: -0.01em; }
.press-headline { color: var(--ink-2); line-height: 1.45; }
.press-date { font: 500 12px/1.4 var(--f-text); letter-spacing: 0.06em; color: var(--ink-2); text-align: right; }
.press-row .work-arrow { justify-self: end; color: var(--ink-3); }
.press-also {
  margin-top: 8px; margin-left: calc(0.3 * (100% - 168px) + 16px); font-size: 13px; line-height: 1.6; color: var(--ink-3);
}
.press-also a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .press-row:hover .press-headline { color: var(--ink); }
  .press-row:hover .work-arrow { color: var(--ink); }
  .press-also a:hover { color: var(--ink); text-decoration-color: var(--ink); }
}
@media (max-width: 899px) {
  .press-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .press-outlet { grid-column: 1; }
  .press-date { grid-column: 2; grid-row: 1; }
  .press-headline { grid-column: 1 / -1; }
  .press-row .work-arrow { display: none; }
  .press-also { margin-left: 0; }
}


/* Testimonials */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote { background: var(--tile); border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; gap: 32px; }
.quote blockquote { font: 400 clamp(18px, 1.5vw, 21px)/1.5 var(--f-text); color: var(--ink); }
.quote figcaption { margin-top: auto; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-2); }
.stars { color: var(--violet-2); letter-spacing: 0.1em; }
@media (max-width: 899px) { .quotes { grid-template-columns: 1fr; } .quote { padding: 24px; } }

/* For companies */
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.note {
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-height: 260px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--r-lg); transition: background-color 200ms, border-color 200ms;
}
.note-title { font: 500 21px/1.25 var(--f-text); letter-spacing: -0.02em; }
:lang(ja) .note-title { font-size: 19px; line-height: 1.5; font-weight: 600; letter-spacing: 0; }
.note .pill { margin-top: auto; }
#insights > .text-link { margin-top: 24px; }
@media (hover: hover) and (pointer: fine) { .note:hover { background: var(--tile); border-color: var(--tile-hi); } .note:hover .pill--line { border-color: var(--violet-2); } }
@media (max-width: 1099px) { .notes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .notes { grid-template-columns: 1fr; } .note { min-height: 0; } }

/* Writing */
.posts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.post { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 11px/1 var(--f-text); letter-spacing: 0.06em; color: var(--ink-2);
}
.post-title { font-size: 17px; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .post:hover .post-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--violet-2); } }
@media (max-width: 899px) { .posts { grid-template-columns: 1fr; } }

/* Company */
.company { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.company-head { grid-column: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.company-head .display { font-size: clamp(30px, 3.2vw, 48px); }
.facts { grid-column: 6 / span 7; border-bottom: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: 0.06em; color: var(--ink-2); padding-top: 3px; }
.facts dd { font-size: 16px; }
@media (max-width: 899px) {
  .company { grid-template-columns: 1fr; gap: 32px; }
  .company-head, .facts { grid-column: 1; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Contact: the closing statement */
.contact { padding-bottom: 120px; text-align: center; }
.contact .label { justify-content: center; }
.contact-headline { font: 500 clamp(20px, 2vw, 28px)/1.35 var(--f-text); color: var(--ink-2); margin: 0 auto; }
.contact-headline strong {
  display: block; margin-top: 20px; color: var(--ink);
  font: 500 clamp(64px, 11vw, 176px)/0.9 var(--f-text); letter-spacing: -0.06em;
}
:lang(ja) .contact-headline strong, :lang(zh) .contact-headline strong { font-weight: 600; letter-spacing: -0.03em; font-size: min(9.6vw, 128px); white-space: nowrap; }
.contact-foot { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 48px; }
.contact-sub { color: var(--ink-2); }

/* Footer */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 32px var(--gut) 48px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); border-top: 1px solid var(--line);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .foot nav a:hover { color: var(--ink); } }

/* Contact page: dark masthead outside the stage */
.page-mast { max-width: var(--max); margin: 0 auto; }
.page-mast .mast-nav { background: var(--tile); }
.page-mast .mast-nav a { color: var(--ink-2); }
.page-mast .mast-nav a:first-child { background: none; color: var(--ink-2); }
.page-mast .lang a { color: var(--ink-2); }
.page-mast .lang a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--violet-2); }
@media (hover: hover) and (pointer: fine) { .page-mast .mast-nav a:hover { background: var(--tile-hi); color: var(--ink); } }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  /* translate, not transform, so the card tilt can own transform */
  .js.motion-ready [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity 700ms var(--ease-out), translate 700ms var(--ease-out); }
  .js.motion-ready [data-reveal].is-in { opacity: 1; translate: none; }
  .apps > :nth-child(2), .stats > :nth-child(2), .notes > :nth-child(2), .talks > :nth-child(2), .creds > :nth-child(2) { transition-delay: 70ms; }
  .apps > :nth-child(3), .stats > :nth-child(3), .notes > :nth-child(3), .talks > :nth-child(3) { transition-delay: 140ms; }
  .apps > :nth-child(4), .notes > :nth-child(4) { transition-delay: 210ms; }
}

/* Contact page */
.contact-page { margin-top: 56px; padding-bottom: 120px; }
.form-wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 16px; }
.form-head { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 20px; }
.form-head .display { font-size: clamp(36px, 4.4vw, 64px); }
.form-head .lede { color: var(--ink-2); max-width: 30em; }
.reply-note { font: 600 16px/1.5 var(--f-text); color: var(--ink); padding-left: 16px; border-left: 2px solid var(--violet-2); }
.form { grid-column: 7 / span 6; grid-row: 1 / span 2; display: grid; gap: 24px; background: var(--tile); padding: 40px; border-radius: var(--r-lg); }
.form-aside { grid-column: 1 / span 5; align-self: end; }
.form-aside .facts { grid-column: auto; }
.form-aside .facts > div { grid-template-columns: 128px 1fr; }
.form-aside a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.field { display: grid; gap: 8px; }
.field label { font: 600 14px/1.3 var(--f-text); }
.field-opt { font: 500 12px/1 var(--f-text); color: var(--ink-3); margin-left: 6px; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  font: 400 16px/1.5 var(--f-text); appearance: none;
  transition: border-color 160ms var(--ease-out);
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px;
}
.field textarea { min-height: 200px; resize: vertical; }
.field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #ff8a7a; }
.field-err { color: #ff9d90; font-size: 14px; }
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 12px; justify-items: start; padding-top: 8px; }
.form-foot .pill { border: 0; cursor: pointer; }
.form-foot .pill:disabled { opacity: 0.6; cursor: progress; }
.form-privacy { font-size: 13px; color: var(--ink-2); }
.form-privacy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-status { font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.form-status[data-kind="error"] { color: #ff9d90; }
.form-done { grid-column: 7 / span 6; grid-row: 1 / span 2; background: var(--tile); padding: 40px; border-radius: var(--r-lg); display: grid; gap: 12px; align-content: start; }
.form-done-h { margin: 0; font: 500 clamp(32px, 3.6vw, 52px)/0.96 var(--f-text); letter-spacing: -0.04em; }
.form-done p:last-child { color: var(--ink-2); }
@media (max-width: 899px) {
  .contact-page { margin-top: 24px; }
  .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  .form-head, .form, .form-aside, .form-done { grid-column: 1; grid-row: auto; }
  .form, .form-done { padding: 24px 16px; margin: 0 -8px; }
  .form-aside .facts > div { grid-template-columns: 1fr; }
}


/* ── Motion (home.js) ──────────────────────────────────────── */

/* Hero field: the dot terrain behind the portrait */
.hero-field { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 62%; width: 100%; pointer-events: none; }
@media (max-width: 899px) { .hero-field { height: 40%; bottom: auto; top: 44%; } }

/* Hero entrance, CSS only so it never waits on a script */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .spec-card, .talk-card, .stage-caption, .hero-portrait img, .hero-field {
    animation: rise 900ms var(--ease-out) both;
  }
  .hero h1 { animation-delay: 80ms; }
  .hero .eyebrow { animation-delay: 200ms; }
  .hero-lede { animation-delay: 260ms; }
  .hero-actions { animation-delay: 320ms; }
  .hero-portrait img { animation-name: portrait-in; animation-duration: 1200ms; }
  .stage-caption { animation-delay: 380ms; }
  .spec-card { animation-delay: 440ms; }
  .talk-card { animation-delay: 520ms; }
  .hero-field { animation-name: fade-in; animation-duration: 1600ms; animation-delay: 300ms; }
}
@keyframes rise { from { opacity: 0; translate: 0 22px; filter: blur(6px); } }
@keyframes portrait-in { from { opacity: 0; translate: 0 36px; scale: 0.97; } }
@keyframes fade-in { from { opacity: 0; } }

/* Statement: dim words light up as the reading line passes them */
.statement.is-split .w { color: #6a6a70; transition: color 260ms var(--ease-out); }
.statement.is-split .w.on { color: var(--ink-2); }
.statement.is-split strong .w.on { color: var(--ink); }

/* Card tilt: transform belongs to the tilt; reveal uses translate */
.tilt { position: relative; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 400ms var(--ease-out); will-change: transform; }
.tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms var(--ease-out);
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.22), transparent 55%);
}
.tilt:hover::after { opacity: 1; }
.tilt:hover { transition: transform 120ms linear; }

/* Closing line rises letter by letter */
.contact-headline strong.is-split .ch { display: inline-block; opacity: 0; translate: 0 0.35em; transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-out); }
.contact-headline strong.is-up .ch { opacity: 1; translate: none; }

/* Section label dots breathe once when their section arrives */
@media (prefers-reduced-motion: no-preference) {
  .label.is-in::before { animation: dot 1600ms var(--ease-out) 200ms both; }
}
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(176, 77, 255, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(176, 77, 255, 0); } }

/* Form: hidden must win over display:grid, fields need visible edges */
.form[hidden] { display: none; }
.field input, .field select, .field textarea { border-color: #68686e; }

/* Hero motion pause (WCAG 2.2.2) */
.field-pause {
  position: absolute; z-index: 4; left: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(13, 13, 14, 0.18); background: rgba(255, 255, 255, 0.55); color: var(--paper-ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; display: grid; place-items: center;
}
.field-pause[hidden] { display: none; }
.field-pause::before, .field-pause::after { content: ''; width: 3px; height: 12px; background: currentColor; border-radius: 1px; grid-area: 1 / 1; }
.field-pause::before { translate: -3px 0; } .field-pause::after { translate: 3px 0; }
.field-pause[data-state="paused"]::before { width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; translate: 1px 0; border-radius: 0; }
.field-pause[data-state="paused"]::after { display: none; }
.stage .field-pause:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
@media (max-width: 899px) { .field-pause { left: auto; right: 14px; bottom: 14px; } }

/* 44px targets on touch screens; the nav strip shows it scrolls */
@media (max-width: 899px) {
  .mast-nav a, .lang a { min-height: 44px; }
  .lang a { min-width: 44px; justify-content: center; }
  .mast-nav { mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; }
  .foot nav a { min-height: 44px; }
  .logo-pause { min-height: 44px; }
}
