/* ─────────────────────────────────────────────────────────────────
   Sato Toshihiro — Director portfolio
   Minimal, white-based, bilingual editorial.
   ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #fafaf7;
  --bg-2: #f3f2ee;
  --fg: #161512;
  --fg-2: rgba(22, 21, 18, 0.55);
  --rule: rgba(22, 21, 18, 0.10);
  --accent: oklch(0.62 0.13 35);
  --ja: 'Noto Sans JP', system-ui, sans-serif;
  --en: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Noto Sans JP', sans-serif;

  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }

html, body { background: var(--bg); color: var(--fg); }
body {
  margin: 0;
  font-family: var(--ja);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .35s ease, color .35s ease;
}
::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }

.en-mono { font-family: var(--en); font-feature-settings: normal; letter-spacing: 0.02em; }
.ja-display { font-family: var(--display); font-weight: 600; line-height: 1.18; letter-spacing: -0.005em; text-wrap: pretty; }
.ja-body    { font-family: var(--ja); font-weight: 400; line-height: 1.95; letter-spacing: 0.02em; text-wrap: pretty; }

.accent-line {
  background-image: linear-gradient(transparent 62%, color-mix(in oklab, var(--accent) 30%, transparent) 62%);
  background-repeat: no-repeat;
  padding: 0 .08em;
}

/* ───── Top bar ───── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--pad);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo-mark { color: var(--accent); font-size: 10px; line-height: 1; transform: translateY(-2px); }
.logo-name { font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.logo-role { font-size: 11px; color: var(--fg-2); }
.nav { display: flex; gap: 22px; font-size: 11.5px; letter-spacing: .12em; }
.nav a { color: var(--fg-2); transition: color .2s; }
.nav a:hover { color: var(--fg); }
.status {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .14em; color: var(--fg-2);
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.7 0.18 145); box-shadow: 0 0 8px oklch(0.7 0.18 145 / .6); }

/* ───── Section label ───── */
.sec-label {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(28px, 4vw, 56px);
  font-family: var(--en); font-size: 11px; letter-spacing: .18em;
}
.sec-no { color: var(--fg-2); }
.sec-en { font-weight: 600; }
.sec-ja { color: var(--fg-2); font-family: var(--ja); letter-spacing: .04em; }

/* ───── Block scaffold ───── */
.block { padding: clamp(70px, 10vw, 140px) var(--pad); max-width: var(--max); margin: 0 auto; }
.block-title { font-size: clamp(28px, 4.4vw, 56px); margin: 0 0 28px; }

/* ───── Hero shared ───── */
.hero { padding: 24px var(--pad) 32px; max-width: var(--max); margin: 0 auto; }

/* ── Hero: Video ── */
.hero-video .hero-stage {
  position: relative; aspect-ratio: 16/7; width: 100%;
  border-radius: 4px; overflow: hidden;
  background: #000;
  border: 1px solid var(--rule);
}
.hero-video-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.placeholder { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--fg-2); overflow: hidden; }
.placeholder-video { background: var(--bg-2); }
.ph-ticker { position: absolute; inset: 0; color: var(--fg); }
.ph-tag { position: relative; z-index: 1; font: 11px/1 var(--en); letter-spacing: .15em; padding: 8px 14px; border: 1px solid var(--rule); background: color-mix(in oklab, var(--bg) 70%, transparent); }
.hero-overlay { position: absolute; inset: 0; padding: 18px 22px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-meta { display: flex; gap: 12px; align-items: center; font: 10.5px/1 var(--en); letter-spacing: .14em; color: var(--fg); background: color-mix(in oklab, var(--bg) 75%, transparent); padding: 7px 11px; border: 1px solid var(--rule); align-self: flex-start; border-radius: 2px; }
.hero-meta .dot { color: var(--accent); font-size: 8px; }
.hero-controls { display: flex; gap: 8px; align-self: flex-end; }
.ctrl { background: var(--fg); color: var(--bg); border: 0; padding: 9px 14px; font: 11px/1 var(--en); letter-spacing: .15em; cursor: pointer; border-radius: 2px; }
.ctrl.ghost { background: transparent; color: var(--fg); border: 1px solid var(--rule); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-tagline { padding: 56px 0 12px; max-width: 980px; }
.hero-tagline h1 { font-size: clamp(34px, 6vw, 78px); margin: 0 0 26px; }
.hero-tagline p { font-size: clamp(13.5px, 1.1vw, 16px); max-width: 720px; }

/* ── Hero: Editorial ── */
.he-eyebrow { font-family: var(--en); font-size: 11px; letter-spacing: .18em; color: var(--fg-2); margin-bottom: 28px; display: inline-flex; align-items: center; gap: 10px; }
.dot-en { color: var(--accent); font-size: 8px; }
.hero-edit-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; min-height: 70vh; }
.he-title { font-size: clamp(38px, 6.5vw, 92px); margin: 0 0 32px; }
.he-title em { font-style: normal; }
.he-body { font-size: 15px; max-width: 460px; }
.he-cta { display: flex; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; background: var(--fg); color: var(--bg); font: 11.5px/1 var(--en); letter-spacing: .18em; border: 0; cursor: pointer; border-radius: 2px; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); background: var(--accent); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 1px solid var(--rule); color: var(--fg); font: 11.5px/1 var(--en); letter-spacing: .18em; cursor: pointer; background: transparent; border-radius: 2px; }
.btn-ghost:hover { border-color: var(--fg); }
.he-right { display: flex; flex-direction: column; gap: 12px; }
.placeholder-portrait { aspect-ratio: 4/5; background: var(--bg-2); border: 1px solid var(--rule); }
.portrait-frame { aspect-ratio: 4/5; overflow: hidden; background: var(--bg-2); border: 1px solid var(--rule); position: relative; }
.he-right .portrait-frame { margin-left: auto; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; transition: transform .8s ease; filter: saturate(0.92) contrast(1.02); }
.portrait-frame:hover img { transform: scale(1.02); }
.he-caption { display: flex; gap: 14px; font-family: var(--en); font-size: 10.5px; letter-spacing: .12em; color: var(--fg-2); }

/* ── Hero: Quiet ── */
.hero-quiet { min-height: 84vh; display: flex; align-items: center; }
.hq-inner { width: 100%; max-width: 1100px; }
.hq-eyebrow { font-size: 11px; letter-spacing: .25em; color: var(--fg-2); margin-bottom: 56px; display: flex; gap: 14px; }
.hq-eyebrow span:first-child, .hq-eyebrow span:last-child { color: var(--accent); }
.hq-title { font-size: clamp(36px, 6.2vw, 84px); margin: 0 0 36px; }
.hq-body { font-size: 15.5px; max-width: 720px; margin-bottom: 80px; }
.hq-stats { display: grid; grid-template-columns: repeat(3, max-content); gap: 64px; padding-top: 28px; border-top: 1px solid var(--rule); }
.hq-stats > div { display: flex; flex-direction: column; gap: 8px; }
.hq-stats .num { font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; color: var(--fg); }
.hq-stats .lbl { font-family: var(--en); font-size: 10.5px; letter-spacing: .18em; color: var(--fg-2); }

/* ───── Marquee ───── */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden; padding: 18px 0; margin-top: 24px;
}
.marquee-track { display: flex; gap: 48px; animation: mq 38s linear infinite; width: max-content; }
.marquee-item { display: flex; gap: 48px; align-items: center; padding-right: 48px; font-size: 16px; }
.mq-en { font-size: 13px; letter-spacing: .22em; }
.mq-dot { color: var(--accent); font-size: 12px; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-33.33%); } }

/* ───── Profile ───── */
.profile-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.profile-portrait { display: flex; flex-direction: column; gap: 8px; }
.caption { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .12em; color: var(--fg-2); }
.profile-text p + p { margin-top: 22px; }
.profile-text p { line-height: 2.0; }
.profile-text em { font-style: normal; background-image: linear-gradient(transparent 65%, color-mix(in oklab, var(--accent) 25%, transparent) 65%); padding: 0 .08em; }
.meta-list { display: grid; grid-template-columns: 1fr; margin-top: 36px; border-top: 1px solid var(--rule); }
.meta-list > div { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; gap: 16px; }
.meta-list dt { font-size: 10.5px; letter-spacing: .18em; color: var(--fg-2); margin: 0; }
.meta-list dd { margin: 0; font-size: 13px; }
.meta-list.small dd { font-size: 12px; font-family: var(--ja); }

/* ───── Service ───── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.service-cell {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  gap: 8px 16px;
  padding: 36px 28px 32px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transition: background .25s;
}
.service-cell:hover { background: var(--bg-2); }
.sc-no { grid-row: 1; grid-column: 1; font-size: 10.5px; color: var(--fg-2); letter-spacing: .18em; padding-top: 4px; }
.sc-en { grid-row: 1; grid-column: 2; font-size: 18px; letter-spacing: .04em; font-weight: 600; }
.sc-ja { grid-row: 2; grid-column: 2; font-size: 13px; color: var(--fg-2); }

/* ───── Work — list ───── */
.work-sub { display: flex; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.work-cat { font-size: 12px; letter-spacing: .18em; font-weight: 600; }
.work-cat-ja { font-size: 12px; color: var(--fg-2); }
.worklist { list-style: none; margin: 0; padding: 0; }
.worklist-row {
  display: grid;
  grid-template-columns: 36px 385px minmax(0, 1.6fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 36px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background .2s, padding .25s;
}
.worklist-row > .wl-thumb {
  display: block;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  box-sizing: border-box;
}
.worklist-row > .wl-thumb img {
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.worklist-row:hover .wl-thumb img { transform: scale(1.06); }
.worklist-row:hover { background: var(--bg-2); padding-left: 18px; padding-right: 18px; }
.worklist-row:hover .wl-arrow { transform: translateX(4px); color: var(--accent); }
.wl-num { font-size: 11px; color: var(--fg-2); letter-spacing: .12em; }
.wl-client { font-size: 22px; font-weight: 500; line-height: 1.4; }
.wl-role { font-size: 15px; color: var(--fg-2); line-height: 1.5; }
.wl-tag { font-size: 10.5px; letter-spacing: .15em; color: var(--fg-2); }
.wl-year { font-size: 11px; color: var(--fg-2); justify-self: end; }
.wl-arrow { color: var(--fg-2); transition: transform .25s, color .25s; }

/* ───── Work — grid ───── */
.workgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.wg-card { margin: 0; display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.wg-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); border: 1px solid var(--rule); width: 100%; }
.wg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.wg-card:hover .wg-thumb img { transform: scale(1.04); }
.placeholder-thumb { aspect-ratio: 16/10; background: var(--bg-2); border: 1px solid var(--rule); transition: transform .35s; }
.wg-card:hover .placeholder-thumb { transform: translateY(-4px); }
.wg-tag { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .15em; color: var(--fg-2); }
.wg-client { font-size: 14px; font-weight: 500; line-height: 1.4; }
.wg-role { font-size: 12px; color: var(--fg-2); }

/* ───── Contact ───── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.mail-link {
  display: grid; grid-template-columns: 60px 1fr 24px; align-items: center;
  gap: 16px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 22px 4px; margin: 28px 0 24px;
  transition: padding .25s;
}
.mail-link:hover { padding-left: 18px; padding-right: 18px; background: var(--bg-2); }
.mail-link:hover .ml-arrow { transform: translateX(4px); color: var(--accent); }
.ml-label { font-size: 10.5px; letter-spacing: .18em; color: var(--fg-2); }
.ml-addr { font-size: 16px; letter-spacing: .02em; }
.ml-arrow { transition: transform .25s, color .25s; }

.contact-form { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--bg-2); border: 1px solid var(--rule); border-radius: 2px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form .lbl { font-size: 10px; letter-spacing: .18em; color: var(--fg-2); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 14px var(--ja); color: var(--fg); background: var(--bg);
  border: 1px solid var(--rule); padding: 11px 12px; border-radius: 2px;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--fg);
}
.contact-form textarea { resize: vertical; min-height: 100px; font-family: var(--ja); }
.contact-form .btn { align-self: flex-start; margin-top: 6px; }
.contact-form.sent { align-items: flex-start; gap: 18px; }
.sent-mark { font-size: 28px; letter-spacing: .15em; color: var(--accent); font-weight: 500; }

/* ───── Footer ───── */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px var(--pad);
  border-top: 1px solid var(--rule);
  font-size: 10.5px; letter-spacing: .15em; color: var(--fg-2);
}

/* ───── Responsive ───── */
@media (max-width: 960px) {
  .topbar { grid-template-columns: 1fr auto; gap: 12px 16px; }
  .nav { grid-column: 1 / -1; order: 3; gap: 16px; }
  .status { display: none; }
  .hero-edit-grid, .profile-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .workgrid { grid-template-columns: repeat(2, 1fr); }
  .worklist-row { grid-template-columns: 30px 240px minmax(0, 1fr); gap: 24px; }
  .wl-thumb, .worklist-row > .wl-thumb { width: 240px !important; height: 135px !important; max-width: 240px !important; min-width: 240px !important; }
  .wl-thumb img, .worklist-row > .wl-thumb img { width: 240px !important; height: 135px !important; object-fit: contain !important; }
  .wl-role { display: none; }
  .hq-stats { gap: 32px; }
}
@media (max-width: 600px) {
  .service-grid, .workgrid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .hero-tagline h1 { font-size: 38px; }
  .hq-stats { grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
  .hq-stats .num { font-size: 26px; }
}

/* ───── Dark hint for placeholder text ───── */
.dark .placeholder { color: var(--fg-2); }
.dark .ph-tag { background: color-mix(in oklab, var(--bg) 60%, transparent); }

.wl-thumb-link, .wg-thumb-link { display: block; cursor: pointer; }
.wl-thumb-link img { transition: opacity .25s ease; }
.wl-thumb-link:hover img, .wg-thumb-link:hover img { opacity: .78; }
