/* ==========================================================================
   Portfolio — Editorial Quiet Luxury
   ========================================================================== */
:root {
  --bg: #F2F0EB;
  --bg-2: #E9E6DF;
  --card: #E4E0D7;
  --ink: #0F0F0E;
  --ink-2: #2B2A28;
  --muted: #7A766F;
  --line: rgba(15, 15, 14, .14);
  --line-2: rgba(15, 15, 14, .07);
  --accent: #FF4A1C;
  --up: #1E7A4C;
  --down: #C2361B;
  --serif: 'Instrument Serif', 'Noto Serif JP', 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Noto Sans JP', system-ui, sans-serif;
  --display: 'Bebas Neue', 'Oswald', Impact, 'Noto Sans JP', sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1520px;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --hd-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.75 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll, body.menu-open { overflow: hidden; }
img, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--bg); }
.muted { color: var(--muted); }

/* ---------- type primitives ---------- */
.eyebrow { display: block; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.label { display: flex; gap: 18px; align-items: baseline; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 5vw, 64px); }
.label span:first-child { color: var(--ink); }
.h2 { font: 400 clamp(44px, 6.4vw, 104px)/.95 var(--serif); letter-spacing: -.02em; margin-bottom: clamp(32px, 5vw, 72px); }
.h2 em, .phd__title em, .hero__title em, .cta__t em { color: var(--accent); }
.link { font-size: 13px; letter-spacing: .02em; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity .3s; }
.link:hover { opacity: .55; }

/* ---------- buttons, pills, chips, tags ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; overflow: hidden; isolation: isolate;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ink);
  font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--ink); white-space: nowrap;
  transition: color .5s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--lg { height: 60px; padding: 0 34px; font-size: 15px; }
.btn:disabled { opacity: .4; pointer-events: none; }

.pill { display: inline-flex; align-items: baseline; gap: 6px; height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; transition: all .4s var(--ease); line-height: 38px; }
.pill sup { font-size: 10px; color: var(--muted); }
.pill:hover { border-color: var(--ink); }
.pill.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill.is-on sup { color: rgba(255,255,255,.55); }

.chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip--up { background: rgba(30, 122, 76, .1); color: var(--up); }
.chip--down { background: rgba(194, 54, 27, .1); color: var(--down); }
.chip--flat { background: var(--line-2); color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; }
.tags--sm .tag { padding: 3px 10px; font-size: 11px; color: var(--muted); }

/* ---------- curtain / page transitions / reveal ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: italic 400 clamp(40px, 8vw, 96px) var(--serif); transition: transform 1.1s var(--ease) .15s; }
.curtain span { opacity: 0; animation: fadeUp 1s var(--ease) forwards; }
body.is-loaded .curtain { transform: translateY(-100%); }

#view.page-in { animation: pageIn .9s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.ln { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.ln.in > span { transform: none; }
.ln:nth-child(2) > span { transition-delay: .08s; }
.ln:nth-child(3) > span { transition-delay: .16s; }
.ln:nth-child(4) > span { transition-delay: .24s; }

/* ---------- header ---------- */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd-h);
  display: flex; align-items: center; gap: 32px; padding: 0 var(--gut);
  transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.hd.is-scrolled { background: rgba(242, 240, 235, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line-2); }
.hd__logo { display: flex; align-items: center; gap: 12px; margin-right: auto; font-weight: 500; font-size: 14px; }
.mono { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--bg); font: italic 400 18px var(--serif); letter-spacing: 0; transition: transform .6s var(--ease); }
.hd__logo:hover .mono { transform: rotate(-12deg) scale(1.05); }
.hd__nav { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.hd__nav a { position: relative; font: 400 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 4px 0; transition: opacity .3s; }
.hd__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; }
.hd__nav a:hover { opacity: .55; }
.hd__nav a.is-active { color: var(--accent); }
.hd__burger { display: none; width: 44px; height: 44px; position: relative; }
.hd__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.hd__burger span:first-child { top: 18px; }
.hd__burger span:last-child { top: 25px; }
.menu-open .hd__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .hd__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: calc(var(--hd-h) + 32px) var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
.menu-open .menu { clip-path: inset(0); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font: 400 clamp(40px, 11vw, 64px)/1.15 var(--serif); border-bottom: 1px solid var(--line-2); padding: 6px 0; }
.menu nav a sup { font: 500 11px var(--sans); color: var(--muted); margin-right: 12px; vertical-align: super; }
.menu nav a.is-active { font-style: italic; color: var(--accent); }
.menu__ft { font-size: 14px; color: var(--muted); }

/* ---------- layout ---------- */
#view { min-height: 100vh; }
.sec, .phd, .hero, .band__in, .cta-sec, .contact, .ft { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.sec { padding-top: clamp(80px, 12vw, 180px); }
.sec--tight { padding-top: 0; }
.sec__hd { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 5vw, 64px); }
.sec__hd .label { border: 0; margin: 0; }

/* ---------- hero ---------- */
/* Full-bleed photo under the header, with an oversized condensed title overlapping its top edge. */
.hero { max-width: none; padding: var(--hd-h) 0 0; }
.hero__visual { position: relative; height: calc(100svh - var(--hd-h)); min-height: 480px; background: var(--card); }
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.hero__title, .hero__name { position: absolute; margin: 0; font-family: var(--display); font-weight: 400; color: var(--ink); text-transform: uppercase; }
.hero__title { top: -.06em; left: 16%; font-size: clamp(84px, 12vw, 230px); line-height: .85; letter-spacing: .005em; }
.hero__name { top: 28%; right: 9%; font-size: clamp(40px, 5vw, 96px); line-height: .92; letter-spacing: .01em; text-align: right; }
.hero__foot { max-width: var(--max); margin: 0 auto; padding: 32px var(--gut) 0; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px 64px; align-items: end; }
.hero__lead { max-width: 560px; font-size: 15.5px; line-height: 2; color: var(--ink-2); }
.hero__id b { display: block; font-weight: 500; font-size: 15px; }
.hero__id span { font-size: 12.5px; color: var(--muted); }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 280px; gap: 48px 80px; align-items: end; }
.statement { font: 400 clamp(26px, 3.3vw, 50px)/1.45 var(--serif); letter-spacing: -.005em; text-indent: 2.4em; }
.about__side { font-size: 13px; border-left: 1px solid var(--line); padding-left: 24px; }
.statement--long { font: 400 clamp(16px, 1.35vw, 19px)/2.1 var(--sans); text-indent: 0; white-space: pre-line; max-width: 46em; }
.career { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 88px; border-top: 1px solid var(--line); }
.career li { padding: 28px 28px 0 0; transition-delay: var(--d, 0ms); }
.career li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.career span { font-size: 11px; letter-spacing: .14em; color: var(--accent); }
.career h3 { font-size: 15px; font-weight: 600; line-height: 1.6; margin: 14px 0 12px; }
.career p { font-size: 13px; line-height: 1.95; color: var(--ink-2); }

/* ---------- services ---------- */
.svcs { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc a { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .8fr) 48px; gap: 24px; align-items: start; padding: 40px 0; isolation: isolate; transition: color .6s var(--ease), padding .6s var(--ease); }
.svc a::before { content: ''; position: absolute; inset: 0 calc(var(--gut) * -1); background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); z-index: -1; }
.svc a:hover { color: var(--bg); padding-left: 16px; padding-right: 16px; }
.svc a:hover::before { transform: scaleY(1); }
.svc__n { font-size: 12px; color: var(--muted); padding-top: 12px; }
.svc__t { font: 400 clamp(32px, 3.6vw, 56px)/1 var(--serif); letter-spacing: -.015em; }
.svc__t small { display: block; margin-top: 12px; font: 400 12px var(--sans); color: var(--muted); letter-spacing: .08em; }
.svc__d { font-size: 14px; line-height: 1.9; padding-top: 8px; }
.svc__items { font-size: 13px; padding-top: 8px; }
.svc__items li::before { content: '— '; color: var(--muted); }
.svc__go { justify-self: end; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; font-size: 18px; transition: transform .6s var(--ease); }
.svc a:hover .svc__go { transform: rotate(-45deg); }
.svc a:hover .svc__n, .svc a:hover .svc__t small { color: rgba(242, 240, 235, .55); }

/* ---------- work cards ---------- */
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px) clamp(20px, 3vw, 48px); }
.feat .card:nth-child(even) { margin-top: clamp(0px, 10vw, 160px); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 40px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { cursor: pointer; }
.card__media, .vcard__media { position: relative; overflow: hidden; background: var(--card); border-radius: 4px; aspect-ratio: 4 / 3; }
.card__media img, .vcard__media img, .vcard__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .5s; }
.card:hover .card__media img { transform: scale(1.045); }
/* Work cards show the whole design (banners, FVs, SNS posts) inside a square frame, never cropped. */
.card__media--fit { aspect-ratio: 1 / 1; padding: clamp(14px, 7%, 36px); }
.card__media--fit img { object-fit: contain; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .1)); }
.card:hover .card__media--fit img { transform: scale(1.03); }
.card__count { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(15, 15, 14, .72); color: #fff; font-size: 11px; letter-spacing: .04em; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; }
.card__meta h3 { font-weight: 500; font-size: 16px; letter-spacing: 0; }
.card__meta span { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font: italic 400 64px var(--serif); color: var(--muted); background: var(--card); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 5vw, 64px); }
.empty { padding: 64px 0; color: var(--muted); grid-column: 1 / -1; }

/* ---------- page head ---------- */
.phd { padding-top: calc(var(--hd-h) + clamp(48px, 8vw, 120px)); padding-bottom: clamp(48px, 7vw, 96px); }
.phd__row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px 64px; align-items: end; }
.phd__title { font: 400 clamp(64px, 11vw, 196px)/.88 var(--serif); letter-spacing: -.035em; }
.phd__side p { font-size: 14px; line-height: 1.95; color: var(--ink-2); }
.phd__count { display: flex; align-items: baseline; gap: 10px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.phd__count b { font: 400 56px/1 var(--serif); }
.phd__count span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- numbers band ---------- */
.band { margin-top: clamp(80px, 12vw, 180px); background: var(--ink); color: var(--bg); padding: clamp(72px, 10vw, 140px) 0; }
.band .label { border-color: rgba(242, 240, 235, .18); color: rgba(242, 240, 235, .5); }
.band .label span:first-child { color: var(--bg); }
.nums { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.num { padding: 8px 28px 0; border-left: 1px solid rgba(242, 240, 235, .18); }
.num:first-child { border-left: 0; padding-left: 0; }
.num__v { font: 400 clamp(44px, 5.4vw, 92px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num__l { margin-top: 24px; font-size: 13px; }
.num__l b { display: block; font-weight: 500; }
.num__l span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(242, 240, 235, .5); }
.num__l em { display: inline-block; margin-top: 10px; font-style: normal; font-size: 12px; color: var(--accent); }

/* ---------- expertise ---------- */
.exp { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px 96px; }
.exp__list li { display: flex; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.6vw, 22px); transition: padding .5s var(--ease); }
.exp__list li:hover { padding-left: 12px; }
.exp__list li span { font-size: 11px; color: var(--muted); width: 22px; }
.exp__tools { align-self: end; }
.exp__tools .eyebrow { margin-bottom: 20px; }

/* ---------- CTA ---------- */
.cta-sec { padding-top: clamp(100px, 14vw, 200px); padding-bottom: clamp(60px, 8vw, 120px); }
.cta { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding-top: 32px; border-top: 1px solid var(--ink); }
.cta .eyebrow { grid-column: 1 / -1; }
.cta__t { font: 400 clamp(56px, 10vw, 180px)/.9 var(--serif); letter-spacing: -.035em; transition: transform .9s var(--ease); }
.cta__arr { display: grid; place-items: center; width: clamp(64px, 8vw, 128px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #fff; font-size: clamp(24px, 3vw, 44px); transition: transform .9s var(--ease); }
.cta:hover .cta__t { transform: translateX(16px); }
.cta:hover .cta__arr { transform: rotate(-45deg) scale(1.06); }

/* ---------- dashboards (ads / sns) ---------- */
.tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex-shrink: 0; padding: 14px 22px; font-size: 14px; color: var(--muted); transition: color .3s; }
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .6s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); }
.tab.is-on::after { transform: scaleX(1); }

.case { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 80px; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.case__t { font: 400 clamp(32px, 3.8vw, 58px)/1.08 var(--serif); letter-spacing: -.015em; margin: 14px 0 18px; }
.case__t .muted { font-size: .5em; font-family: var(--sans); letter-spacing: 0; }
.case__main p { max-width: 620px; font-size: 14px; line-height: 1.95; color: var(--ink-2); margin-bottom: 16px; }
.case__dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.case__dl dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status--active::before { background: #2ECC71; }
.status--paused::before { background: #F0B429; }

.bar-hd { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.select { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.select select { appearance: none; height: 38px; padding: 0 36px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230F0F0E' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 14px center; font: 500 13px var(--sans); color: var(--ink); cursor: pointer; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 48px; }
.kpis:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis--hl { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: -16px; }
.adcase + .adcase { margin-top: 72px; }
.adcase .case:last-child { margin-bottom: 0; }
.pre { white-space: pre-line; }
.kpi { padding: 22px 22px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; }
.kpi:hover { background: rgba(255, 255, 255, .35); }
.kpi__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 500; }
.kpi__top small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; text-align: right; }
.kpi__v { font: 400 clamp(30px, 3vw, 46px)/1.1 var(--serif); letter-spacing: -.01em; margin: 18px 0 14px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__bot { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.spark { margin-left: auto; width: 64px; height: 22px; color: var(--ink); opacity: .55; }

.panels { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; }
.panel { border: 1px solid var(--line); border-radius: 6px; padding: 24px 24px 18px; background: rgba(255, 255, 255, .22); margin-bottom: 24px; min-width: 0; }
.panels .panel { margin-bottom: 0; }
.panel__hd { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 18px; }
.panel__hd h3 { font-size: 14px; font-weight: 500; }
.panel__hd small { font-size: 11px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button { padding: 5px 11px; font-size: 11.5px; border-radius: 999px; color: var(--muted); transition: all .3s; }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--ink); color: var(--bg); }

/* charts */
.ch { position: relative; min-height: 300px; }
.ch-wrap { position: relative; }
.ch-grid { stroke: var(--line-2); }
.ch-ax { font: 400 10.5px var(--sans); fill: var(--muted); font-variant-numeric: tabular-nums; }
.ch-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.ch-area { opacity: 0; animation: fadeIn 1.2s .4s forwards; }
.ch-dot { opacity: 0; animation: fadeIn .6s 1s forwards; }
.ch-bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: grow 1s var(--ease) forwards; }
.ch-guide { stroke: var(--ink); stroke-dasharray: 3 3; opacity: .35; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes grow { to { transform: scaleY(1); } }
.ch-tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 12px; border-radius: 6px; font-size: 12px; line-height: 1.6; pointer-events: none; opacity: 0; transition: opacity .2s; white-space: nowrap; z-index: 2; }
.ch-tip.on { opacity: 1; }
.ch-tip b { display: block; font-weight: 500; margin-bottom: 2px; }
.ch-tip span { display: flex; align-items: center; gap: 6px; }
.ch-tip em { font-style: normal; margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.ch-tip i, .ch-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.ch-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.ch-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* tables */
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th { text-align: right; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tbl td { text-align: right; padding: 13px 14px; border-bottom: 1px solid var(--line-2); }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl td b { font-weight: 600; }
.tbl tr.is-link { cursor: pointer; transition: background .3s; }
.tbl tr.is-link:hover { background: rgba(255, 255, 255, .5); }

/* sns */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-bottom: 48px; }
.strip > div { padding: 26px 24px; border-left: 1px solid var(--line); }
.strip > div:first-child { border-left: 0; padding-left: 0; }
.strip b { display: block; font: 400 clamp(32px, 3.4vw, 52px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.strip span { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.accts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 64px; }
.acct { text-align: left; padding: 22px; border: 1px solid var(--line); border-radius: 6px; transition: border-color .4s, background .4s, transform .6s var(--ease); }
.acct:hover { border-color: var(--ink); transform: translateY(-3px); }
.acct.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.acct__hd { display: flex; gap: 12px; align-items: center; }
.pf { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--pf); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; flex-shrink: 0; }
.acct__h { font-weight: 500; font-size: 14px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.acct__h small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.acct__f { margin: 26px 0 12px; display: flex; align-items: baseline; gap: 8px; }
.acct__f b { font: 400 40px/1 var(--serif); font-variant-numeric: tabular-nums; }
.acct__f span, .acct__ft small { font-size: 11px; color: var(--muted); }
.acct__ft { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.acct.is-on .acct__h small, .acct.is-on .acct__f span, .acct.is-on .acct__ft small { color: rgba(242, 240, 235, .6); }

/* ---------- video ---------- */
.vcard { cursor: pointer; }
.vcard__media { aspect-ratio: 16 / 9; }
.vcard.is-portrait .vcard__media { aspect-ratio: 4 / 5; }
.vcard__media video { position: absolute; inset: 0; opacity: 0; }
.vcard.is-playing video { opacity: 1; }
.vcard:hover .vcard__media img { transform: scale(1.045); }
.vcard__dur { position: absolute; right: 12px; bottom: 12px; padding: 2px 8px; border-radius: 4px; background: rgba(15, 15, 14, .72); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.vcard__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(242, 240, 235, .9); backdrop-filter: blur(6px); transform: scale(.7); opacity: 0; transition: all .6s var(--ease); }
.vcard__play::after { content: ''; position: absolute; left: 26px; top: 22px; border-left: 15px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.vcard:hover .vcard__play { transform: none; opacity: 1; }
.vcard.is-playing .vcard__play { opacity: 0; }
.vcard .tags { margin-top: 10px; }
/* HOME Selected Works: video framed like the work cards (square, whole frame visible). */
.vcard--fit .vcard__media, .vcard--fit.is-portrait .vcard__media { --pad: clamp(14px, 7%, 36px); aspect-ratio: 1 / 1; padding: var(--pad); }
.vcard--fit .vcard__media img { object-fit: contain; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .1)); }
.vcard--fit .vcard__media video { inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain; }
.vcard--fit:hover .vcard__media img { transform: scale(1.03); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(15, 15, 14, .55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); overflow-y: auto; padding: 4vh var(--gut); }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__panel { position: relative; max-width: 1180px; margin: 0 auto; background: var(--bg); border-radius: 8px; padding: clamp(20px, 3vw, 40px); transform: translateY(40px); transition: transform .8s var(--ease); }
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: sticky; top: 0; float: right; z-index: 2; margin: -8px -8px 12px 12px; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; letter-spacing: .06em; }
.md__media { clear: both; border-radius: 4px; overflow: hidden; background: var(--card); }
.md__media img, .md__media video { width: 100%; }
.md__media--video { aspect-ratio: 16 / 9; background: #000; }
.md__media--video.is-portrait { aspect-ratio: auto; height: min(78vh, 860px); }
/* Embedded players (Google Drive) for vertical videos: a 9:16 frame instead of a letterboxed wide one. */
.md__media--video.is-portrait iframe { display: block; width: min(100%, calc(min(78vh, 860px) * 9 / 16)); margin: 0 auto; }
.md__media--video video, .md__media--video iframe, .md__media--video img { width: 100%; height: 100%; object-fit: contain; border: 0; }
.md__media--g { margin-top: 20px; }

/* work carousel */
.car { position: relative; clear: both; outline: none; }
.car__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 4px; background: var(--card); }
.car__track::-webkit-scrollbar { display: none; }
.car__slide { --h: min(76vh, 820px); flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; height: var(--h); padding: 16px; overflow: hidden; cursor: zoom-in; }
.car__slide img { display: block; max-width: 100%; max-height: calc(var(--h) - 32px); width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .08); }
.car__btn { position: absolute; top: calc(50% - 22px); transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--bg); color: var(--ink); border: 1px solid var(--line); font-size: 18px; transition: opacity .3s, background .3s; }
.car__btn:hover { background: var(--ink); color: var(--bg); }
.car__btn:disabled { opacity: 0; pointer-events: none; }
.car__btn--prev { left: 14px; }
.car__btn--next { right: 14px; }
.car__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
.car__dots { display: flex; gap: 8px; }
.car__dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.car__dots button.is-on { background: var(--ink); transform: scale(1.25); }
.car__count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.md__body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; padding: 36px 0 12px; }
.md__title { font: 400 clamp(36px, 4.4vw, 68px)/1.02 var(--serif); letter-spacing: -.02em; margin: 12px 0 20px; }
.md__desc { font-size: 14.5px; line-height: 2; color: var(--ink-2); margin-bottom: 28px; white-space: pre-line; }
.md__dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.md__dl dt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px clamp(48px, 8vw, 140px); padding-top: calc(var(--hd-h) + clamp(48px, 8vw, 120px)); padding-bottom: clamp(80px, 10vw, 160px); }
.contact .phd__title { font-size: clamp(60px, 8.4vw, 148px); }
.contact__lead { margin: 32px 0 48px; max-width: 460px; font-size: 14px; line-height: 2; color: var(--ink-2); }
.contact__info .eyebrow { margin: 28px 0 10px; }
.contact__mail { font: 400 clamp(24px, 2.6vw, 38px)/1.2 var(--serif); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .4s; overflow-wrap: anywhere; }
.contact__mail:hover { border-color: var(--ink); }
.socials li a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; transition: padding .5s var(--ease); }
.socials li a:hover { padding-left: 10px; }
.socials--plain li a { border: 0; padding: 4px 0; justify-content: flex-start; gap: 8px; }

.form { align-self: start; padding-top: 8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.fld { display: block; border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.fld > span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fld > span i { color: var(--accent); font-style: normal; }
.fld input, .fld select, .fld textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 0; font: 400 16px var(--sans); color: var(--ink); border-radius: 0; transition: border-color .4s; resize: vertical; }
.fld select { appearance: none; cursor: pointer; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--ink); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.radios label { cursor: pointer; }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; transition: all .3s; }
.radios input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.radios input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__ft { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form__msg { font-size: 13px; }
.form__msg.is-ok { color: var(--up); }
.form__msg.is-err { color: var(--down); }

/* ---------- footer ---------- */
.ft { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); padding-bottom: 32px; }
.ft__mail { display: inline-block; margin-top: 12px; font: 400 clamp(36px, 6.4vw, 108px)/1 var(--serif); letter-spacing: -.02em; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .8s var(--ease); padding-bottom: 6px; }
.ft__mail:hover { background-size: 100% 1px; }
/* Two columns: menu (laid out 3 × 2) on the left, social links pushed to the right edge. */
.ft__cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: start; margin: clamp(56px, 7vw, 96px) 0; font-size: 14px; }
.ft__menu { display: grid; grid-template-columns: repeat(2, max-content); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: clamp(40px, 6vw, 96px); }
.ft__social { min-width: 180px; }
.ft__cols .eyebrow { margin-bottom: 14px; }
.ft__cols li a { display: inline-block; padding: 3px 0; transition: opacity .3s; }
.ft__cols li a:hover { opacity: .5; }
.ft__bot { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line-2); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor::before { content: attr(data-label); position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 0; letter-spacing: .06em; transition: all .5s var(--ease); }
.cursor.is-big::before { left: -44px; top: -44px; width: 88px; height: 88px; font-size: 12px; background: var(--accent); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hd__nav { gap: 18px; }
  .hd__nav a sup { display: none; }
  .svc a { grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr) 48px; }
  .svc__items { display: none; }
  .kpis, .kpis:has(> :nth-child(5):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .accts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panels { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .career { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .career li:nth-child(3) { padding-left: 0; border-left: 0; }
  .career li:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  :root { --hd-h: 64px; }
  .hd__nav { display: none; }
  .hd__burger { display: block; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__visual { height: min(82svh, 760px); }
  .hero__title { left: var(--gut); font-size: clamp(72px, 23vw, 170px); }
  .hero__name { top: 21%; right: var(--gut); font-size: clamp(34px, 10vw, 80px); }
  .about__grid, .exp, .case, .md__body, .contact, .phd__row { grid-template-columns: 1fr; }
  .about__side { border-left: 0; padding-left: 0; }
  .svc a { grid-template-columns: 36px minmax(0, 1fr) 40px; padding: 28px 0; }
  .svc__d { grid-column: 2 / 3; padding-top: 0; }
  .svc__go { width: 40px; height: 40px; grid-row: 1; grid-column: 3; }
  .nums { grid-template-columns: repeat(min(var(--n, 4), 2), minmax(0, 1fr)); row-gap: 48px; }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .feat, .grid, .grid--3 { grid-template-columns: 1fr; }
  .feat .card:nth-child(even) { margin-top: 0; }
  .kpis, .kpis:has(> :nth-child(5):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 16px 14px 14px; }
  .kpi__top small { display: none; }
  .accts { grid-template-columns: 1fr; }
  .career { grid-template-columns: 1fr; margin-top: 56px; }
  .career li, .career li + li { padding: 24px 0 0; border-left: 0; }
  .career li + li { margin-top: 24px; border-top: 1px solid var(--line); }
  .form__row { grid-template-columns: 1fr; }
  .panel { padding: 18px 14px 12px; }
  .cta { grid-template-columns: 1fr; }
  .cta__arr { justify-self: end; }
  .ft__cols { grid-template-columns: 1fr; }
  .ft__social { min-width: 0; }
  .modal { padding: 0; }
  .car__slide { --h: min(64vh, 620px); padding: 8px; }
  .car__slide img { max-height: calc(var(--h) - 16px); }
  .car__btn { width: 40px; height: 40px; }
  .modal__panel { border-radius: 0; min-height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .ln > span { opacity: 1; transform: none; }
}
