/* ==========================================================================
   ALBERTO PINARDI — PORTFOLIO
   Design tokens extracted from the Figma file. Spacing scale: 4/8/12/16/24/32/48/64/80/100
   ========================================================================== */

:root {
  --bk: #0B0B0B;
  --wh: #FFFFFF;
  --rd: #AE232F;
  --dg: #1F1F1F;
  --gy: #6B6B69;
  --gm: #999996;
  --lg: #F5F4F3;
  --hr: #E1E0DE;
  --hr-dark: #404040;

  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-jp: 'Noto Sans JP', sans-serif;

  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px;
  --s-32: 32px; --s-48: 48px; --s-64: 64px; --s-80: 80px; --s-100: 100px;

  --pad-x: 64px;
  --rule: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--wh);
  color: var(--bk);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* ---------- utilities ---------- */
.wrap { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.rule { height: var(--rule); background: var(--bk); }
.rule-thin { height: 1px; background: var(--hr); }
.mono { font-family: var(--font-mono); }
.jp { font-family: var(--font-jp); font-weight: 500; color: var(--rd); letter-spacing: .1em; font-size: 20px; }
.jp-bk { color: var(--bk); }
.jp-bk .red, .jp .red { color: var(--rd); }
.red { color: var(--rd); }
.label {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em;
}
.label-sm { font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--gm); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.dot-inline {
  display: inline-block; width: .18em; height: .18em;
  background: var(--rd); border-radius: 50%; margin-left: .12em;
}

/* ---------- nav ---------- */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px var(--pad-x);
  position: sticky; top: 0; z-index: 100;
  background: var(--wh);
  border-bottom: var(--rule) solid var(--bk);
}
.nav-rule { display: none; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img, .nav-logo svg { width: 64px; height: 64px; }
.nav-logo .mark { width: 64px; height: 64px; display: block; }
.nav-logo span { font-family: var(--font-body); font-weight: 500; font-size: 15px; letter-spacing: .02em; transition: letter-spacing .4s cubic-bezier(.22,1,.36,1), color .3s ease; }
.nav-logo .mark { transition: transform .5s cubic-bezier(.22,1,.36,1); }
.nav-logo:hover .mark { transform: scale(1.1); }
.nav-logo:hover span { letter-spacing: .08em; color: var(--rd); }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-family: var(--font-body); font-weight: 500; font-size: 13px; letter-spacing: .04em;
  position: relative;
}
.nav-links a:hover { color: var(--rd); }
.nav-links a.active { color: var(--rd); }
.nav-rule { height: var(--rule); background: var(--bk); }

/* ---------- hero (home) ---------- */
.hero { padding: 48px 100px 24px; display: flex; flex-direction: column; justify-content: flex-start; }
.hero .hero-top { margin-top: auto; }
.hero .hero-row { margin-top: 0; margin-bottom: auto; align-items: center; }
.hero .hero-meta { margin-top: auto; }
.hero-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0; }

/* ---------- hero landing animation (間 — calm, staggered) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes kanaIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes dotIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.hero-anim .hero-top { animation: rise .8s cubic-bezier(.22,1,.36,1) .1s both; }
.hero-anim .hero h1 { animation: rise 1s cubic-bezier(.22,1,.36,1) .25s both; }
.hero-anim .hero-meta { animation: rise .8s cubic-bezier(.22,1,.36,1) 1.5s both; }
.hero-anim .hero-kana .col span { animation: kanaIn .6s cubic-bezier(.22,1,.36,1) both; }
.hero-kana .col span {
  display: inline-block;
  transition: color .3s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.hero-kana .col span:hover { color: var(--rd); transform: translateY(-6px); }
/* pre-hide animated hero elements from the very first paint (no flash).
   :where() keeps specificity at zero so the real animations always win.
   forceShow is a safety valve: if a script ever fails, everything appears after 2s. */
@keyframes forceShow { to { opacity: 1; } }
:where(.js) :where(.cs-hero, .about-hero, .work-hero) :where(.crumb, .logo-chips, h1, .sub, .jp, .meta, .chips, .years, figure),
:where(.js) :where(.hero) :where(.hero-top, h1, .hero-meta),
:where(.js) :where(.hero-kana .col) {
  opacity: 0;
  animation: forceShow 0s linear 2s forwards;
}
/* generic hero landing animation (all other pages) */
.rise-in { animation: rise .8s cubic-bezier(.22,1,.36,1) both; }
/* letter-hover on company names (about) */
.xp-row h3 span {
  display: inline-block;
  transition: color .3s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.xp-row h3 span:hover { color: var(--rd); transform: translateY(-6px); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(64px, 10.5vw, 168px);
  line-height: .92; letter-spacing: -.02em; text-transform: uppercase;
}
.hero .dot-inline {
  display: inline-block; width: .22em; height: .22em; background: var(--rd);
  border-radius: 50%; margin-left: .12em;
}
.hero-kana {
  display: flex; gap: 20px; align-items: flex-start;
}
.hero-kana .col { font-family: var(--font-jp); font-size: 48px; letter-spacing: .6em; color: #121212; writing-mode: vertical-rl; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; }
.hero-meta .label { color: var(--gy); }

/* ---------- marquee ---------- */
.marquee {
  background: var(--bk); color: var(--wh); overflow: hidden;
  padding: 16px 0; white-space: nowrap; display: flex;
}
.marquee .track {
  display: inline-flex; gap: 0; animation: marquee 28s linear infinite;
  font-family: var(--font-body); font-weight: 500; font-size: 15px; letter-spacing: .06em;
  flex-shrink: 0;
}
.marquee .track span { padding-right: 24px; }
.marquee .track .sep { color: var(--rd); padding-right: 24px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- section header ---------- */
.sec { padding: 64px var(--pad-x); }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.sec-head .l { display: flex; align-items: center; gap: 16px; }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.01em; text-transform: uppercase;
}
.sec-head .jp { font-size: 20px; }
.sec-head .label { color: var(--gy); }
.sec-intro { color: var(--gy); font-size: 17px; line-height: 1.55; max-width: 900px; margin-bottom: 32px; }

/* ---------- project cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.card { border: var(--rule) solid var(--bk); background: var(--wh); display: flex; flex-direction: column; transition: transform .45s cubic-bezier(.22,1,.36,1); }
a.card:hover { transform: translateY(-8px); }
a.card:hover .card-title { color: var(--rd); }
.card-img img { transition: transform .7s cubic-bezier(.22,1,.36,1); }
a.card:hover .card-img img { transform: scale(1.04); }
.card-no { transition: transform .45s cubic-bezier(.22,1,.36,1); }
a.card:hover .card-no { transform: translateX(6px) rotate(4deg); }
a.card:hover .card-meta { color: var(--bk); }
.card-meta { transition: color .3s ease; }
.card-img { background: transparent; height: auto; border-bottom: var(--rule) solid var(--bk); overflow: hidden; }
.card-img img { width: 100%; height: auto; object-fit: contain; }
.card-img.missing { height: 360px; background: var(--dg); }
.card-body { display: flex; justify-content: space-between; gap: 20px; padding: 24px; }
.card-title { font-weight: 500; font-size: 24px; letter-spacing: .01em; transition: color .2s; }
.card-desc { color: var(--gy); font-size: 15px; line-height: 1.45; margin-top: 8px; }
.card-meta { font-family: var(--font-mono); font-size: 12px; color: var(--gm); letter-spacing: .02em; margin-top: 12px; }
.card-no { font-family: var(--font-display); font-size: 36px; color: var(--rd); line-height: 1; }
.card-soon {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .03em;
  background: var(--rd); color: var(--wh); padding: 6px 12px;
}

/* ---------- chips / filters ---------- */
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .02em;
  border: 2px solid var(--bk); padding: 10px 16px; background: var(--wh); color: var(--bk);
  transition: background .15s, color .15s;
}
.chip.active, .chip:hover { background: var(--bk); color: var(--wh); }

/* ---------- black band (stats) ---------- */
.band { background: var(--bk); color: var(--wh); padding: 64px var(--pad-x); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.band.cols-3 { grid-template-columns: repeat(3, 1fr); }
.band .v { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -.01em; }
.band .v.red { color: var(--rd); }
.band .l { font-family: var(--font-mono); font-size: 12px; color: var(--gm); letter-spacing: .03em; margin-top: 12px; line-height: 1.5; }
/* all bands are center-aligned */
.band { text-align: center; }

/* ---------- how i work / numbered columns ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
.steps.cols-5 { grid-template-columns: repeat(5, 1fr); }
.step .no { font-family: var(--font-mono); font-size: 12px; color: var(--rd); letter-spacing: .03em; }
.step .no-big { font-family: var(--font-display); font-size: 28px; color: var(--rd); }
.step .bar { height: 2px; background: var(--bk); margin: 12px 0; }
.step h3 { font-weight: 500; font-size: 17px; letter-spacing: .01em; }
.step .when { font-family: var(--font-mono); font-size: 11px; color: var(--gm); letter-spacing: .03em; margin: 8px 0 4px; }
.step p { color: var(--gy); font-size: 14px; line-height: 1.5; margin-top: 8px; }

/* ---------- footer ---------- */
.footer { background: var(--bk); color: var(--wh); padding: 80px var(--pad-x) 32px; }
.footer .jp { color: var(--wh); letter-spacing: .12em; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; margin: 8px 0 32px; }
.footer h2 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 9vw, 120px);
  line-height: .95; letter-spacing: -.02em;
}
.footer h2 .dot-inline { display: inline-block; width: .18em; height: .18em; background: var(--rd); border-radius: 50%; margin-left: .15em; }
.footer-icons { display: flex; flex-direction: column; gap: 12px; }
.footer-icons a {
  width: 44px; height: 44px; background: var(--wh); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .4s cubic-bezier(.22,1,.36,1);
}
.footer-icons a:hover { transform: translateY(-6px); }
/* SVGs grow by re-rendering (crisp), not by bitmap scaling */
.footer-icons img { transition: width .35s cubic-bezier(.22,1,.36,1), height .35s cubic-bezier(.22,1,.36,1); }
.footer-icons a:hover img { width: 96px !important; height: 96px !important; }
.footer-icons a:hover { background: var(--rd); }
.footer-icons a:hover svg { fill: var(--wh); }
.footer-icons svg { width: 22px; height: 22px; fill: var(--bk); }
.footer-email { font-size: clamp(18px, 3vw, 32px); font-weight: 400; }
.footer-email:hover { color: var(--rd); }
.footer .rule-dark { height: 1px; background: var(--hr-dark); margin: 48px 0 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom, .footer-bottom a { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--gm); letter-spacing: .03em; }
.footer-bottom .links { display: flex; gap: 28px; }
.footer-bottom .links a { color: var(--wh); font-size: 12px; }
.footer-bottom .links a:hover { color: var(--rd); }
.colophon { color: var(--gm); }
.colophon .red { color: var(--rd); }

/* ---------- image placeholders ---------- */
.ph { position: relative; background: var(--dg); overflow: hidden; margin: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.missing img { display: none; }
.ph figcaption {
  display: none; position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; color: var(--gm); letter-spacing: .03em;
}
.ph figcaption::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--rd); }
.ph.missing figcaption { display: flex; }

/* ---------- case study: hero ---------- */
.cs-hero { display: flex; justify-content: space-between; gap: 48px; padding: 48px var(--pad-x); align-items: center; }
.cs-hero .l { flex: 1; }
.crumb { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; margin-bottom: 24px; }
.crumb .red { color: var(--rd); }
.logo-chips { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.logo-chip { border: none; padding: 0; display: flex; align-items: center; }
.logo-chip img { height: 40px; width: auto; }
.logo-chip.plain { border: none; padding: 0; }
.logo-chip.plain img { height: 40px; }
.cs-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 5.5vw, 72px); line-height: .94; letter-spacing: -.02em; text-transform: uppercase;
}
.cs-hero .sub { color: var(--gy); font-size: 18px; line-height: 1.5; margin-top: 24px; max-width: 720px; }
.cs-hero .ph { width: 560px; height: 560px; border: var(--rule) solid var(--bk); flex-shrink: 0; }
.cs-hero .ph.plain { border: none; background: transparent; width: 560px; height: 460px; }
.cs-hero .ph.plain img { object-fit: contain; }
.cs-hero .ph.plain.missing { background: var(--dg); }
/* centered variant (ARA — wide curved screen) */
.cs-hero.centered { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cs-hero.centered .logo-chips { justify-content: center; gap: 32px; }
.cs-hero.centered .sub { margin-left: auto; margin-right: auto; }
.cs-hero.centered { gap: 12px; }
.cs-hero.centered .ph.wide {
  width: min(1000px, 100%); height: auto; aspect-ratio: 2.6 / 1;
  border: none; background: transparent; margin-top: 8px;
}
.cs-hero.centered .ph.wide img { object-fit: contain; }
.cs-hero.centered .ph.wide.missing { background: var(--dg); }

/* ---------- case study: meta strip ---------- */
.meta-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 24px var(--pad-x); text-align: center; }
.meta-strip .l { font-family: var(--font-mono); font-size: 11px; color: var(--gm); letter-spacing: .03em; }
.meta-strip .v { font-weight: 500; font-size: 16px; margin-top: 8px; }

/* ---------- case study: sections ---------- */
.statement { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; max-width: 1100px; }
.statement .red { color: var(--rd); }
.cs-p { color: var(--gy); font-size: 17px; line-height: 1.55; max-width: 1000px; margin-top: 24px; }
.bullets { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.bullets li { display: flex; gap: 14px; align-items: flex-start; color: var(--gy); font-size: 17px; line-height: 1.5; }
.bullets li::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--rd); margin-top: 8px; }
.stat-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.stat-cells.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat-cell { border: 2px solid var(--bk); padding: 24px; transition: transform .4s cubic-bezier(.22,1,.36,1), background .3s ease; }
.stat-cell:hover { transform: translateY(-6px); background: var(--lg); }
.stat-cell .v { font-family: var(--font-display); font-size: 32px; color: var(--rd); line-height: 1; }
.stat-cell .l { font-family: var(--font-mono); font-size: 11px; color: var(--gy); letter-spacing: .02em; margin-top: 12px; line-height: 1.45; }

/* callout */
.callout { background: var(--lg); padding: 32px; margin-top: 32px; border-top: 4px solid var(--rd); }
.callout .tag { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--rd); letter-spacing: .03em; }
.callout .big { font-weight: 500; font-size: clamp(18px, 2vw, 24px); line-height: 1.4; margin-top: 12px; }
.callout p { color: var(--gy); font-size: 16px; line-height: 1.55; margin-top: 12px; }
.callout.split { display: flex; gap: 32px; align-items: flex-start; max-width: 900px; margin: 56px auto 0; }
.callout.split .txt { flex: 1; }
.callout.split .ph { width: 380px; height: auto; flex-shrink: 0; }
.callout.split .ph img { height: auto; }

/* case study images: no dark background, no border — image shown as exported */
.cs-hero .ph, .tile .ph, .screens-strip .ph, .callout .ph {
  background: transparent; border: none;
}
.cs-hero .ph img, .tile .ph img, .screens-strip .ph img, .callout .ph img { object-fit: contain; }
/* hover zoom on case-study imagery — the whole frame scales, nothing gets cropped */
.cs-hero .ph, .tile .ph { transition: transform .7s cubic-bezier(.22,1,.36,1); }
.cs-hero .ph:hover, .tile:hover .ph { transform: scale(1.03); }
.ph.missing { background: var(--dg) !important; }

/* solution tiles */
.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 8px; margin-top: 32px;
  /* break out of the section padding so images render as large as 3 columns allow */
  margin-left: calc(-1 * (var(--pad-x) - 8px));
  margin-right: calc(-1 * (var(--pad-x) - 8px));
}
/* text stays narrow and centered; images take the full column */
.tile h3, .tile p { max-width: 320px; margin-left: auto; margin-right: auto; }
.tile { text-align: center; }
.tile .ph { height: auto; aspect-ratio: 5 / 4; margin-bottom: 24px; }
.tile .ph img { width: 100%; height: 100%; object-fit: contain; }
.tile .ph.missing { aspect-ratio: auto; height: 260px; }
.tile h3 { font-weight: 500; font-size: 18px; }
.tile p { color: var(--gy); font-size: 14px; line-height: 1.5; margin-top: 8px; }

/* variants (a/b test) */
.variants { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.variant { border: var(--rule) solid var(--bk); transition: transform .45s cubic-bezier(.22,1,.36,1); }
.variant:hover { transform: translateY(-8px); }
.variant .ph img { transition: transform .7s cubic-bezier(.22,1,.36,1); }
.variant:hover .ph img { transform: scale(1.04); }
.variant h3 { transition: color .3s ease; }
.variant:hover h3 { color: var(--rd); }
.variant .vh { display: flex; justify-content: space-between; padding: 16px 24px; font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .03em; border-bottom: var(--rule) solid var(--bk); }
.variant .vh.win { background: var(--rd); color: var(--wh); }
.variant .vh .w { color: var(--wh); }
.variant .ph { height: auto; border-bottom: var(--rule) solid var(--bk); }
.variant .ph img { width: 100%; height: auto; }
.variant .ph.missing { height: 240px; }
.variant .vb { padding: 20px 24px 24px; }
.variant h3 { font-weight: 500; font-size: 20px; }
.variant p { color: var(--gy); font-size: 14px; line-height: 1.5; margin-top: 8px; }
.result-chips { display: flex; justify-content: flex-end; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.result-chips span { background: var(--bk); color: var(--wh); font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .02em; padding: 10px 16px; }

/* milestones */
.miles { margin-top: 24px; }
.miles li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hr); }
.miles .no { font-family: var(--font-display); font-size: 18px; color: var(--rd); }
.miles li.paused .no { color: var(--gm); }
.miles .t { font-weight: 500; font-size: 16px; letter-spacing: .01em; }
.miles li.paused .t { color: var(--gm); }
.miles .tag { font-family: var(--font-mono); font-size: 12px; color: var(--gm); letter-spacing: .02em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 32px; }
.two-col .tag { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--rd); letter-spacing: .03em; }
.two-col p { color: var(--gy); font-size: 15px; line-height: 1.55; margin-top: 12px; }

/* video embeds */
.video-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.video-card { border: var(--rule) solid var(--bk); }
.video-card .vh { display: flex; justify-content: space-between; background: var(--bk); color: var(--wh); padding: 12px 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; }
.video-card .vh .red { color: var(--rd); }
.video-card .vb { padding: 16px; }
.video-card h3 { font-weight: 500; font-size: 18px; }
.video-card p { color: var(--gy); font-size: 14px; line-height: 1.5; margin-top: 8px; }
.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--dg); }

/* CSS phone mockup — raw screen recordings play inside a bezel */
.phone-stage { display: flex; justify-content: center; padding: 32px 0; background: var(--lg); }
.phone {
  position: relative; width: 280px; aspect-ratio: 9 / 19.3;
  background: #0B0B0B; border-radius: 44px; padding: 10px; margin: 0;
}
.phone video::-webkit-media-controls-fullscreen-button { display: none; }
.phone video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 34px; background: var(--dg);
}
.phone figcaption {
  display: none; position: absolute; inset: 10px; border-radius: 34px;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--gm);
  letter-spacing: .03em; text-align: center; padding: 0 20px; background: var(--dg);
}
.phone figcaption::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--rd); }
.phone.missing video { display: none; }
.phone.missing figcaption { display: flex; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-block { max-width: 960px; margin: 32px auto 0; border: var(--rule) solid var(--bk); }

/* carousel */
.carousel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.carousel-head .tag { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--rd); letter-spacing: .03em; }
.carousel-ctrl { display: flex; align-items: center; gap: 12px; }
.carousel-ctrl .count { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; }
.carousel-ctrl button { width: 40px; height: 40px; border: 2px solid var(--bk); font-weight: 500; font-size: 16px; transition: background .15s, color .15s; }
.carousel-ctrl button:hover { background: var(--bk); color: var(--wh); }
.carousel-view { position: relative; width: 100%; aspect-ratio: 3.55 / 1; overflow: hidden; border: var(--rule) solid var(--bk); }
.carousel-track { display: flex; height: 100%; transition: transform .65s cubic-bezier(.22,1,.36,1); }
.carousel-view .ph { position: relative; flex: 0 0 100%; height: 100%; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.carousel-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--hr); cursor: pointer; }
.carousel-dots i.on { width: 8px; height: 8px; background: var(--rd); }

/* accordion (gifting funnels) */
.funnel { border: var(--rule) solid var(--bk); margin-top: 32px; }
.funnel-h {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: var(--bk); color: var(--wh); padding: 16px 24px; text-align: left;
}
.funnel.open .funnel-h { background: var(--rd); }
.funnel-h .l { display: flex; gap: 16px; align-items: center; }
.funnel-h .pr { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--rd); letter-spacing: .03em; }
.funnel.open .funnel-h .pr { color: var(--wh); }
.funnel-h .t { font-weight: 500; font-size: 18px; letter-spacing: .01em; }
.funnel-h .r { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--gm); display: flex; gap: 16px; align-items: center; }
.funnel.open .funnel-h .r { color: var(--wh); }
.funnel-h .live { color: var(--rd); font-weight: 500; }
.funnel.open .funnel-h .live { color: var(--wh); }
.funnel-h .ind { font-size: 20px; font-weight: 500; }
/* collapsed sections keep a cropped peek of the screens (as in Figma) */
.funnel-b { max-height: 300px; overflow: hidden; transition: max-height .55s cubic-bezier(.22,1,.36,1); cursor: pointer; }
.funnel.open .funnel-b { cursor: default; }
.funnel-b p { max-height: 220px; opacity: 1; overflow: hidden; transition: max-height .45s cubic-bezier(.22,1,.36,1), opacity .35s ease; }
.funnel:not(.open) .funnel-b p { max-height: 0; opacity: 0; }
.screens-strip { transition: margin-top .45s cubic-bezier(.22,1,.36,1); }
.funnel:not(.open) .screens-strip { margin-top: 0; }
.funnel-b-in { padding: 24px 24px 32px; border-top: var(--rule) solid var(--bk); }
.funnel-b p { color: var(--gy); font-size: 15px; line-height: 1.55; }
/* all screens share ONE fixed height; width follows each image's ratio */
.screens-strip { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 24px; }
.screens-strip .ph {
  flex: 0 0 auto; height: min(470px, calc(41vw - 92px)); width: auto;
  aspect-ratio: 22 / 45; border-radius: 16px;
}
.screens-strip .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* screens with a different ratio: same height, wider, fully visible */
.screens-strip .ph.free { aspect-ratio: auto; }
.screens-strip .ph.free img { position: static; display: block; height: 100%; width: auto; object-fit: contain; }

/* end block */
.end { padding: 64px var(--pad-x); }
.end .jp { letter-spacing: .1em; }
.end .end-jp { font-family: var(--font-jp); font-weight: 500; font-size: 20px; letter-spacing: .1em; color: var(--bk); }
.end .end-jp .red { color: var(--rd); }
.end h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 5.5vw, 72px); line-height: .94; letter-spacing: -.01em; margin-top: 24px; }
.end-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; flex-wrap: wrap; gap: 16px; }
.end-nav .all { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .02em; }
.end-nav .all:hover { color: var(--rd); }
.end-nav .next { display: flex; gap: 16px; align-items: center; }
.end-nav .next .l { font-family: var(--font-jp); font-weight: 500; font-size: 20px; color: var(--gy); letter-spacing: .1em; }
.end-nav .next a { font-weight: 500; font-size: 20px; color: var(--rd); }
.end-nav .next a:hover { text-decoration: underline; }

/* ---------- work page ---------- */
.work-hero { display: flex; justify-content: space-between; align-items: center; padding: 24px var(--pad-x); gap: 32px; flex-wrap: wrap; }
.work-hero .l { display: flex; align-items: center; gap: 16px; }
.work-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: 44px; letter-spacing: -.01em; }
.work-hero h1 .red { color: var(--rd); }
.work-hero .count { font-family: var(--font-mono); font-size: 14px; color: var(--gy); letter-spacing: .02em; }
.work-hero .years { font-family: var(--font-mono); font-size: 13px; color: var(--gy); letter-spacing: .02em; }

/* ---------- about page ---------- */
.about-hero { display: flex; justify-content: space-between; gap: 48px; padding: 48px 100px 64px; align-items: center; }
.about-hero .jp { display: block; margin-bottom: 24px; }
.about-hero .portrait { width: 400px; height: 480px; border: var(--rule) solid var(--bk); flex-shrink: 0; }
.about-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 8vw, 110px); line-height: .94; letter-spacing: -.02em; }
.about-hero .meta { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.about-hero .meta span { font-family: var(--font-mono); font-size: 13px; color: var(--gy); letter-spacing: .03em; }
.bio { display: flex; gap: 48px; padding: 80px var(--pad-x); }
.bio .side { width: 280px; flex-shrink: 0; }
.bio .side .jp { display: block; font-size: 13px; }
.bio .side .who { font-family: var(--font-display); font-size: 28px; letter-spacing: -.01em; margin-top: 8px; text-transform: uppercase; }
.bio .txt { flex: 1; }
.bio .txt p { font-size: clamp(19px, 2vw, 25px); line-height: 1.45; }
.bio .txt p + p { color: var(--gy); font-size: 19px; line-height: 1.55; margin-top: 24px; }
.bio .txt .red { color: var(--rd); }

.xp-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 32px 0; border-top: var(--rule) solid var(--bk); }
.xp-row:last-of-type { border-bottom: var(--rule) solid var(--bk); }
.xp-row h3 { font-weight: 500; font-size: 28px; }
.xp-row .role { font-family: var(--font-mono); font-size: 13px; color: var(--gy); letter-spacing: .03em; margin-top: 8px; }
.xp-row .dur { font-family: var(--font-mono); font-size: 12px; color: var(--gm); letter-spacing: .02em; margin-top: 8px; }
.xp-row .no { font-family: var(--font-display); font-size: 36px; color: var(--rd); line-height: 1; }
.xp-avatar {
  position: relative; width: 64px; height: 64px;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: transparent;
}
.xp-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.xp-avatar i { font-family: var(--font-display); font-style: normal; font-size: 22px; color: var(--rd); }

/* skills interactive */
.skills { display: flex; gap: 48px; align-items: flex-start; }
.skills-list { flex: 1; border-top: 2px solid var(--bk); }
.skill-row {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 8px; border-bottom: 1px solid var(--hr); text-align: left;
}
.skill-row .l { display: flex; gap: 16px; align-items: center; }
.skill-row .no { font-family: var(--font-mono); font-size: 12px; color: var(--gm); letter-spacing: .03em; }
.skill-row .t { font-weight: 500; font-size: 18px; letter-spacing: .01em; }
.skill-row .ind { font-weight: 500; font-size: 18px; color: var(--gm); }
.skill-row:hover .t { color: var(--rd); }
.skill-row.active .no, .skill-row.active .t, .skill-row.active .ind { color: var(--rd); }
.skill-panel {
  width: 560px; flex-shrink: 0; background: var(--lg); border-top: 4px solid var(--rd); padding: 24px 32px 32px;
  transition: opacity .25s ease, transform .25s ease;
}
.skill-panel.fading { opacity: 0; transform: translateY(10px); }
.skill-panel .no { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--rd); letter-spacing: .03em; }
.skill-panel h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: -.01em; margin-top: 16px; text-transform: uppercase; }
.skill-panel p { color: var(--gy); font-size: 16px; line-height: 1.55; margin-top: 16px; }
.skill-panel .seen { font-family: var(--font-mono); font-size: 11px; color: var(--gm); letter-spacing: .02em; margin-top: 16px; }

/* statement */
.big-statement { padding: 80px var(--pad-x); }
.big-statement .jp { letter-spacing: .1em; }
.big-statement h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 7.5vw, 110px); line-height: .94; letter-spacing: -.02em; margin-top: 20px; }
.big-statement h2 .red { color: var(--rd); }
.big-statement p { color: var(--gy); font-size: 20px; margin-top: 24px; }

/* contact strip */
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px var(--pad-x) 64px; }
.contact-strip .l { font-family: var(--font-mono); font-size: 12px; color: var(--gm); letter-spacing: .03em; }
.contact-strip .v { font-weight: 500; font-size: 20px; margin-top: 12px; display: block; }
.contact-strip a.v:hover { color: var(--rd); }

/* home about teaser */
.home-about { display: flex; gap: 80px; padding: 80px var(--pad-x); align-items: flex-start; }
.home-about .l .jp { letter-spacing: .1em; }
.home-about h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.01em; margin-top: 8px; text-transform: uppercase; }
.home-about .btn { display: inline-block; font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .02em; margin-top: 12px; }
.home-about .btn:hover { color: var(--rd); }
.home-about .r { flex: 1; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; }
.home-about .r .red { color: var(--rd); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --pad-x: 40px; }
  .skills { flex-direction: column; }
  .skill-panel { width: 100%; }
  .cs-hero .ph { width: 340px; height: 340px; }
}
@media (max-width: 820px) {
  :root { --pad-x: 24px; }
  .nav-links { gap: 20px; }
  .cards, .variants, .video-cards, .two-col { grid-template-columns: 1fr; }
  .band, .band.cols-3, .steps, .steps.cols-3, .steps.cols-5, .stat-cells, .stat-cells.cols-3, .meta-strip, .contact-strip { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .cs-hero, .about-hero, .bio, .home-about, .hero-row { flex-direction: column; }
  .cs-hero .ph, .about-hero .portrait { width: 100%; height: auto; aspect-ratio: 1; }
  .hero-kana { display: none; }
  .callout.split { flex-direction: column; }
  .callout.split .ph { width: 100%; }
}
@media (max-width: 520px) {
  .band, .steps, .stat-cells, .meta-strip, .contact-strip { grid-template-columns: 1fr; }
  .nav-links a:not(.active) { font-size: 12px; }
}
