/* =========================================================
   TM Portfolio — Simple Modern
   White & Black × Light Green accent
========================================================= */
:root {
  --bg: #fbfbf9;
  --ink: #101210;
  --muted: #6b7069;
  --line: #e5e7e2;
  --accent: #7fd6a4;
  --accent-soft: #eaf8f0;
  --dark: #0f110f;
  --dark-line: rgba(255, 255, 255, 0.14);
  --radius: 10px;
  --font-mono: "IBM Plex Mono", monospace;
  --font-en: "Space Grotesk", sans-serif;
  --font-jp: "Zen Kaku Gothic New", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(16, 18, 16, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: min(1120px, 88%);
  margin-inline: auto;
}
.container--narrow { width: min(720px, 88%); }

::selection { background: var(--accent); color: var(--dark); }

/* ---------------------------------------------------------
   INTRO OVERLAY
--------------------------------------------------------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--dark); color: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px 4vw 0;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.15s, visibility 0s linear 1s;
  visibility: visible;
}
.intro__top {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
}
.intro__center {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  text-align: center;
}
.intro__tc {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 5rem); letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.intro__log {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  color: var(--accent);
}
.intro__bar { height: 3px; background: rgba(255, 255, 255, 0.14); z-index: 1; }
.intro__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
}
body.is-ready .intro,
.intro.is-skip {
  display: none;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.header.is-scrolled,
body.menu-open .header {
  background: rgba(251, 251, 249, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  width: min(1200px, 92%);
  margin-inline: auto;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); object-fit: cover;
}
.brand__name {
  font-family: var(--font-en); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.12em;
}
.gnav { display: flex; align-items: center; gap: 28px; }
.gnav a {
  font-family: var(--font-en); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  position: relative; padding: 4px 0; transition: color 0.25s;
}
.gnav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
.gnav a:hover { color: var(--ink); }
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.gnav__cta {
  border: 1.5px solid var(--ink); border-radius: 6px; padding: 8px 20px !important;
  color: var(--ink) !important; transition: all 0.25s !important;
}
.gnav__cta::after { display: none; }
.gnav__cta:hover { background: var(--ink); color: var(--bg) !important; }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.menu-btn span {
  display: block; width: 26px; height: 2px; background: var(--ink);
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s;
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------------------------------------------------------
   MOBILE MENU OVERLAY
--------------------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px 10% 48px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.menu.is-open {
  opacity: 1; visibility: visible;
  transition: opacity 0.4s ease;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-family: var(--font-en); font-weight: 600;
  font-size: clamp(2rem, 8vw, 3rem); letter-spacing: 0.02em;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 18px;
  transform: translateY(16px); opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s, color 0.25s;
}
.menu.is-open .menu__nav a { transform: translateY(0); opacity: 1; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: 0.05s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 0.1s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 0.15s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 0.2s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: 0.25s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: 0.3s; }
.menu__nav a:hover { color: var(--accent); }
.menu__nav i {
  font-style: normal; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.15em;
}
.menu__foot { display: flex; flex-direction: column; gap: 6px; }
.menu__foot a {
  font-family: var(--font-en); font-size: 0.85rem; color: var(--muted); letter-spacing: 0.06em;
}
.menu__foot a:hover { color: var(--ink); }

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-jp); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.06em;
  border-radius: 6px; padding: 13px 30px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #2a2d2a; }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--sm { padding: 9px 20px; font-size: 0.78rem; }
.btn--lg { padding: 16px 38px; font-size: 0.95rem; }

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(68px + clamp(56px, 10vh, 110px)) 0 clamp(64px, 9vh, 96px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; color: var(--accent); margin-bottom: 18px; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--accent);
}
.hero__title {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(5rem, 13vw, 9.5rem);
  line-height: 0.95; letter-spacing: -0.02em;
  display: flex; align-items: baseline;
}
.hero__dot {
  width: 0.14em; height: 0.14em; border-radius: 50%;
  background: var(--accent); margin-left: 0.08em;
}
.hero__lead {
  margin-top: 26px; font-size: clamp(0.98rem, 1.6vw, 1.15rem); font-weight: 500;
  max-width: 32em;
}
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; }
.hero__media img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.hero__arch {
  position: absolute; inset: 8% -6% -5% 12%;
  background: var(--accent-soft);
  border-radius: 999px 999px var(--radius) var(--radius);
  z-index: 0;
}
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll span {
  font-family: var(--font-en); font-size: 0.62rem; letter-spacing: 0.3em; color: var(--muted);
}
.hero__scroll i {
  width: 1px; height: 42px; background: var(--ink);
  animation: scrollLine 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------------------------------------------------
   HERO VIEWFINDER + TIMELINE
--------------------------------------------------------- */
.viewfinder { position: relative; z-index: 1; }
.viewfinder img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
}
.vf__corner {
  position: absolute; width: 26px; height: 26px;
  border: 2px solid #fff; z-index: 2;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}
.vf__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.vf__corner--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.vf__corner--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.vf__corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.vf__rec, .vf__tc, .vf__clip {
  position: absolute; z-index: 2;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  display: inline-flex; align-items: center; gap: 7px;
}
.vf__rec { top: 20px; left: 52px; }
.vf__rec i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #ff4545;
  animation: recBlink 1.1s steps(2, jump-none) infinite;
}
@keyframes recBlink { 50% { opacity: 0.15; } }
.vf__tc { top: 20px; right: 52px; font-variant-numeric: tabular-nums; }
.vf__clip { bottom: 20px; left: 52px; color: rgba(255, 255, 255, 0.85); }

.hero__floats { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fchip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  color: rgba(16, 18, 16, 0.34);
}
.fchip svg { width: 18px; height: 18px; color: rgba(127, 214, 164, 0.75); }
.fchip b {
  font-weight: 500; color: rgba(16, 18, 16, 0.5);
  background: transparent;
  border: 1px solid rgba(16, 18, 16, 0.16);
  border-radius: 4px; padding: 2px 7px;
  font-variant-numeric: tabular-nums;
}
.fchip--cut {
  top: clamp(110px, 18vh, 180px); left: clamp(16px, 40vw, 500px);
  animation: floatY 9s ease-in-out infinite alternate;
}
.fchip--io {
  bottom: clamp(90px, 16vh, 160px); left: clamp(16px, 5vw, 72px);
  animation: floatY 11s ease-in-out 1s infinite alternate;
}
.fchip--io b:first-of-type { border-color: rgba(127, 214, 164, 0.65); color: rgba(46, 122, 82, 0.8); }
.fclip {
  position: absolute;
  top: clamp(280px, 44vh, 430px); left: clamp(10px, 33vw, 420px);
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em;
  color: rgba(16, 18, 16, 0.32);
  animation: floatY 13s ease-in-out 2s infinite alternate;
}
.fclip i {
  width: 15px; height: 10px;
  border: 1px solid rgba(16, 18, 16, 0.18); border-radius: 2px;
  background: repeating-linear-gradient(
      -45deg,
      rgba(16, 18, 16, 0.1),
      rgba(16, 18, 16, 0.1) 3px,
      transparent 3px,
      transparent 6px
  );
}
.fclip i:nth-child(2) { border-color: rgba(127, 214, 164, 0.6); background-color: rgba(234, 248, 240, 0.7); }
@keyframes floatY {
  0%   { transform: translateY(-12px) rotate(-1.2deg); }
  100% { transform: translateY(14px) rotate(1.4deg); }
}

@keyframes floatY {
  from { transform: translateY(-7px); }
  to { transform: translateY(9px); }
}

/* ---------------------------------------------------------
   TICKER
--------------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg);
}
.ticker__track {
  display: flex; width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker__track span {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.22em; white-space: nowrap; color: var(--muted);
  display: flex; align-items: center;
}
.ticker__track i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-inline: 28px; flex: none;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------
   INTRO TIMELINE (NLE-style loader)
--------------------------------------------------------- */
.intro__tl {
  position: relative;
  width: min(560px, 82vw);
  margin: 34px auto 0;
  display: grid;
  gap: 7px;
}
.tl-row { display: flex; align-items: stretch; gap: 12px; }
.tl-label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  width: 22px; display: flex; align-items: center; justify-content: flex-end;
}
.tl-track {
  flex: 1; height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 5px;
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  position: relative;
}
.clip {
  display: block;
  width: var(--w, 20%);
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  background: repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.07) 5px,
      rgba(255, 255, 255, 0.03) 5px,
      rgba(255, 255, 255, 0.03) 10px
  );
  transform: scaleX(0);
  opacity: 0;
  transform-origin: left center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s,
              background 0.25s, border-color 0.25s;
}
.clip.is-in { transform: scaleX(1); opacity: 1; }
.clip.is-rendered {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(127, 214, 164, 0.55), rgba(127, 214, 164, 0.75));
}
.tl-playhead {
  position: absolute;
  top: -7px; bottom: -7px;
  left: calc(34px + (100% - 34px) * 0);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  z-index: 2;
  pointer-events: none;
}
.tl-playhead::before {
  content: "";
  position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #fff;
}
.tl-cuts { position: absolute; inset: 0; pointer-events: none; }
.cut-mark {
  position: absolute;
  top: 2px; bottom: 2px;
  width: 2px;
  background: #ff5d5d;
  box-shadow: 0 0 8px rgba(255, 93, 93, 0.9);
  animation: cutFlash 0.5s steps(2, jump-none) infinite;
}
@keyframes cutFlash { 50% { opacity: 0.25; } }

/* ---------------------------------------------------------
   SECTION COMMON
--------------------------------------------------------- */
.section { padding: clamp(84px, 12vh, 130px) 0; }
.section--tint { background: #f4f6f2; }
.section--dark { background: var(--dark); color: var(--bg); }
.section__lead { color: var(--muted); max-width: 44em; margin-bottom: 48px; }
.note { color: var(--muted); font-size: 0.82rem; margin-top: 36px; }

.sec-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.sec-head__no {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent);
  font-weight: 500; letter-spacing: 0.04em;
}
.sec-head__title {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.1;
}
.sec-head__sub {
  font-size: 0.8rem; color: var(--muted); letter-spacing: 0.14em;
}
.sec-head--light .sec-head__sub { color: rgba(255, 255, 255, 0.55); }
.sec-head--center { justify-content: center; }

/* ---------------------------------------------------------
   ABOUT
--------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-areas: "photo story" "photo timeline";
  gap: clamp(36px, 5vw, 72px);
}
.about__photo { grid-area: photo; }
.about__photo img {
  border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 3 / 4; object-fit: cover; object-position: left center; width: 100%;
  height: 100%;
}
.about__story { grid-area: story; display: grid; gap: 18px; align-content: start; }
.about__story p { color: #3c403c; }

.timeline { grid-area: timeline; align-self: end; }
.timeline li {
  display: flex; align-items: baseline; gap: 20px;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__label {
  font-family: var(--font-en); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.12em; color: var(--muted);
  flex: none; width: 52px;
}
.timeline__label--now {
  color: var(--dark); background: var(--accent);
  border-radius: 999px; padding: 3px 12px; width: auto;
}
.timeline__text { font-weight: 500; }

/* ---------------------------------------------------------
   WORKS
--------------------------------------------------------- */
.works {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.work { grid-column: span 7; }
.work--offset {
  grid-column: span 5;
  margin-top: clamp(40px, 8vw, 110px);
}
.work__frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10; background: #fff;
  transition: border-color 0.3s ease;
}
.work:hover .work__frame { border-color: var(--accent); }
.work__frame iframe { width: 100%; height: 100%; border: 0; }
.work__meta {
  display: flex; gap: 16px; align-items: baseline;
  margin-top: 20px;
}
.work__idx {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.82rem;
  color: var(--accent); letter-spacing: 0.08em;
}
.work__title { font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.work__desc { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* ---------------------------------------------------------
   WORKS MORE
--------------------------------------------------------- */
.works-more {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex; align-items: center; gap: 22px;
  border: 1px dashed rgba(16, 18, 16, 0.25);
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 34px);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.works-more:hover { border-color: var(--accent); background: rgba(127, 214, 164, 0.06); }
.works-more__plus {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(16, 18, 16, 0.2);
  font-family: var(--font-en); font-size: 1.4rem; font-weight: 500;
  color: var(--muted);
  transition: all 0.3s ease;
}
.works-more:hover .works-more__plus {
  border-color: var(--accent); color: var(--dark); background: var(--accent);
}
.works-more__body { display: grid; gap: 5px; }
.works-more__body b {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--ink);
}
.works-more__body span { color: var(--muted); font-size: 0.86rem; }
.works-more__arrow { width: 16px; height: 16px; margin-left: auto; flex: none; color: var(--muted); transition: transform 0.3s, color 0.3s; }
.works-more:hover .works-more__arrow { color: var(--ink); transform: translate(2px, -2px); }
@media (max-width: 560px) {
  .works-more { gap: 16px; padding: 20px; }
  .works-more__arrow { display: none; }
}

/* ---------------------------------------------------------
   POSTS
--------------------------------------------------------- */
.posts-head {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin-bottom: 44px; flex-wrap: wrap;
}
.posts-head .section__lead { margin-bottom: 0; }
.handle { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--accent); }
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.post {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.3s ease;
}
.post:hover { border-color: var(--accent); }
.post__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #eef1ec; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post:hover .post__media img { transform: scale(1.04); }
.post__media--empty::after {
  content: "IMAGE"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-en); color: var(--muted); letter-spacing: 0.3em; font-size: 0.8rem;
}
.post__type {
  position: absolute; top: 12px; left: 12px;
  background: rgba(251, 251, 249, 0.92);
  font-family: var(--font-en); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em;
  border-radius: 999px; padding: 5px 12px;
}
.post__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post__date {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted);
}
.post__caption {
  font-size: 0.86rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post__foot {
  margin-top: auto; padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--line);
}
.post__stats { display: flex; gap: 16px; }
.post__stats span {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-en); font-size: 0.75rem; color: var(--muted);
}
.post__stats svg { width: 15px; height: 15px; }
.post__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-en); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
}
.post__link svg { width: 12px; height: 12px; transition: transform 0.25s; }
.post:hover .post__link svg { transform: translate(2px, -2px); }
.posts__note { font-family: var(--font-mono); color: var(--muted); font-size: 0.74rem; margin-top: 28px; letter-spacing: 0.02em; }
.posts__empty {
  grid-column: 1 / -1; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 48px; text-align: center;
}

/* ---------------------------------------------------------
   ACHIEVEMENTS (DARK)
--------------------------------------------------------- */
.section--dark .sec-head__no { color: var(--accent); }
.achv { display: grid; }
.achv__item {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 20px; align-items: start;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.achv__item:last-child { border-bottom: 1px solid var(--line); }
.achv__no {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  line-height: 1;
}
.achv__item h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700;
  margin-bottom: 10px;
}
.achv__item p { color: var(--muted); font-size: 0.92rem; max-width: 46em; }
.achv__item:hover .achv__no { color: var(--accent); -webkit-text-stroke: 0; transition: 0.3s; }

/* ---------------------------------------------------------
   ORGANIZATION
--------------------------------------------------------- */
.org {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  overflow: hidden; background: #fff;
}
.org__body { padding: clamp(32px, 5vw, 56px); }
.org__name {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: 0.02em;
}
.org__role {
  display: inline-block; margin-top: 12px;
  background: var(--accent-soft); color: #1d5b39;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em;
  border-radius: 4px; padding: 6px 14px;
}
.org__desc { margin: 22px 0 30px; color: #3c403c; font-size: 0.94rem; }
.org__logo {
  background: var(--accent-soft);
  display: grid; place-items: center; padding: clamp(28px, 4vw, 48px);
}
.org__logo img { max-width: min(280px, 80%); mix-blend-mode: multiply; }

/* ---------------------------------------------------------
   TOOLS
--------------------------------------------------------- */
.tools {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.tool__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.tool__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 700; font-size: 1.05rem;
  border-radius: 8px;
}
.tool__icon--pr { background: var(--ink); color: var(--bg); }
.tool__icon--ps { background: var(--dark); color: var(--accent); }
.tool__icon--cv { background: var(--accent); color: var(--dark); }
.tool {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 40px);
  position: relative; overflow: hidden;
  transition: border-color 0.3s ease;
}
.tool::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.tool:hover { border-color: var(--accent); }
.tool:hover::after { transform: scaleX(1); }
.tool__no {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  color: var(--accent); letter-spacing: 0.06em;
}
.tool__name {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 14px 0 10px; letter-spacing: -0.01em;
}
.tool__desc { color: var(--muted); font-size: 0.88rem; }

/* ---------------------------------------------------------
   CONTACT
--------------------------------------------------------- */
.section--contact { position: relative; overflow: hidden; }
.contact__ghost {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(5rem, 16vw, 14rem);
  line-height: 1; letter-spacing: -0.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(16, 18, 16, 0.13);
  pointer-events: none;
  z-index: 0;
}
.section--contact .container--narrow { position: relative; z-index: 1; }
.contact__catch {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(3rem, 9vw, 6rem); text-align: center;
  line-height: 1.05; letter-spacing: -0.03em;
}
.contact__lead { text-align: center; color: var(--muted); margin-top: 20px; }
.contact__actions {
  margin-top: 44px;
  display: flex; justify-content: center; align-items: center;
  gap: 16px; flex-wrap: wrap;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.footer__copy { font-family: var(--font-en); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--muted); }
.footer__links { display: flex; gap: 24px; }
.footer__links a {
  font-family: var(--font-en); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--muted);
  transition: color 0.25s;
}
.footer__links a:hover { color: var(--ink); }
.footer__top {
  font-family: var(--font-en); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
}
.footer__top:hover { color: var(--accent); }

/* ---------------------------------------------------------
   REVEAL ANIMATION
--------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ヒーローはロード時に順番にフェードイン */
.hero__eyebrow, .hero__title, .hero__lead, .hero__cta, .hero__media {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
body.is-ready :is(.hero__eyebrow, .hero__title, .hero__lead, .hero__cta, .hero__media) {
  opacity: 1; transform: translateY(0);
}
body.is-ready .hero__eyebrow { transition-delay: 0.15s; }
body.is-ready .hero__title { transition-delay: 0.25s; }
body.is-ready .hero__lead { transition-delay: 0.35s; }
body.is-ready .hero__cta { transition-delay: 0.45s; }
body.is-ready .hero__media { transition-delay: 0.3s; }

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 900px) {
  .gnav { display: none; }
  .menu-btn { display: flex; }
  .header__inner { width: 88%; height: 60px; }

  /* HERO */
  .hero { padding-top: calc(60px + clamp(40px, 7vh, 64px)); }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__title { font-size: clamp(4.2rem, 22vw, 6.5rem); }
  .hero__lead { margin-top: 18px; }
  .hero__cta { margin-top: 26px; gap: 10px; }
  .hero__cta .btn { flex: 1; min-width: 140px; }
  .hero__media { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero__scroll { display: none; }

  /* SECTION COMMON */
  .section { padding: 68px 0; }
  .sec-head { flex-wrap: wrap; row-gap: 4px; margin-bottom: 36px; }
  .section__lead { margin-bottom: 34px; }

  .about {
    grid-template-columns: 1fr;
    grid-template-areas: "story" "timeline" "photo";
    gap: 32px;
  }
  .about__story { gap: 13px; }
  .about__photo img { aspect-ratio: 16 / 9; }

  .works { grid-template-columns: 1fr; gap: 34px; }
  .work, .work--offset { grid-column: 1 / -1; margin-top: 0; }
  .work__frame { aspect-ratio: 16 / 9; box-shadow: none; }
  .note { margin-top: 24px; }

  .posts { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .posts-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
  .post__body { padding: 14px 15px 15px; }

  .achv__item { grid-template-columns: 44px 1fr; gap: 14px; padding: 24px 0; }
  .achv__no { font-size: 1.45rem; }

  .org { grid-template-columns: 1fr; }
  .org__body { padding: 28px 24px; }
  .org__logo { padding: 26px 20px; }
  .org__logo img { max-width: 190px; }

  .tools { grid-template-columns: 1fr; gap: 14px; }
  .tool { padding: 24px 22px; }

  .contact__actions { margin-top: 32px; }
}

@media (max-width: 560px) {
  /* VIEWFINDER をコンパクトに */
  .vf__corner { width: 18px; height: 18px; border-width: 1.5px; }
  .vf__corner--tl, .vf__corner--tr { top: 10px; }
  .vf__corner--bl, .vf__corner--br { bottom: 10px; }
  .vf__corner--tl, .vf__corner--bl { left: 10px; }
  .vf__corner--tr, .vf__corner--br { right: 10px; }
  .vf__clip { bottom: 12px; left: 38px; font-size: 0.58rem; letter-spacing: 0.04em; }
  .vf__rec, .vf__tc { display: none; }

  /* CONTACT のウォーターマークを控えめに */
  .contact__ghost {
    font-size: clamp(3rem, 19vw, 4.6rem);
    -webkit-text-stroke-color: rgba(16, 18, 16, 0.08);
  }

  .posts { grid-template-columns: 1fr; }
  .contact__actions { flex-direction: column; }
  .contact__actions .btn { width: 100%; }

  .timeline li { gap: 12px; padding: 13px 2px; }
  .timeline__label { width: auto; }

  .footer { padding: 22px 0; }
  .footer__inner { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
}

@media (max-width: 900px) {
  .hero__floats { display: none; }
  .vf__rec, .vf__tc, .vf__clip { font-size: 0.6rem; }
  .vf__rec { left: 48px; }
  .vf__tc { right: 48px; }
  .vf__clip { left: 48px; }
}

@media (max-width: 560px) {
  .vf__rec, .vf__tc { display: none; }
  .posts { grid-template-columns: 1fr; }
  .contact__actions { flex-direction: column; }
  .contact__actions .btn { width: 100%; }
}

/* ---------------------------------------------------------
   REDUCED MOTION
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .intro { display: none; }
  .reveal, .hero :is(.hero__eyebrow, .hero__title, .hero__lead, .hero__cta, .hero__media) {
    opacity: 1 !important; transform: none !important;
  }
}

/* ---------------------------------------------------------
   WORK DETAIL PAGE
--------------------------------------------------------- */
.detail { padding: calc(68px + clamp(40px, 7vh, 72px)) 0 clamp(64px, 9vh, 96px); }
.crumb { margin-bottom: 26px; }
.crumb a {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em;
  color: var(--muted); transition: color 0.25s;
}
.crumb a:hover { color: var(--ink); }
.detail-head { margin-bottom: 34px; }
.detail-head__no {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 14px;
}
.detail-head__title {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.15;
}
.detail-head__lead { color: var(--muted); margin-top: 12px; }
.detail-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #fff;
}
.detail-frame iframe { width: 100%; height: 100%; border: 0; }
.meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 34px;
  background: #fff;
}
.meta-grid > div {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.meta-grid dt {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 7px;
}
.meta-grid dd { font-weight: 500; font-size: 0.92rem; }
.detail-body { margin-top: 38px; display: grid; gap: 14px; max-width: 46em; }
.detail-body p { color: #3c403c; }
.pager {
  margin-top: 56px;
  display: flex; justify-content: space-between; align-items: stretch; gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.pager a {
  display: inline-flex; flex-direction: column; gap: 5px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  color: var(--muted);
  transition: color 0.25s;
}
.pager a b { font-family: var(--font-jp); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em; color: var(--ink); }
.pager a:hover { color: var(--accent); }
.pager .pager__prev { text-align: left; }

.work__meta { align-items: center; }
.work__more { margin-left: auto; flex: none; }

@media (max-width: 900px) {
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .detail { padding-top: calc(60px + 36px); }
}
@media (max-width: 560px) {
  .meta-grid { grid-template-columns: 1fr; }
  .pager { flex-direction: column; gap: 18px; }
  .work__meta { flex-wrap: wrap; row-gap: 10px; }
  .work__more { margin-left: 0; width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------
   404
--------------------------------------------------------- */
.nf {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 18px; text-align: center; padding: 24px;
}
.nf__no { font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.1em; color: var(--accent); }
.nf__title {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 5rem); letter-spacing: -0.02em;
}
.nf__lead { color: var(--muted); max-width: 30em; }
.nf .btn { margin-top: 10px; }
