:root {
  --paper: #FBFBF9;
  --ink: #141414;
  --muted: #6E6E68;
  --faint: #9B9B94;
  --line: rgba(20, 20, 20, .12);
  --line-soft: rgba(20, 20, 20, .07);
  --accent: #E24B1F;
  --thumb: #EFEEEA;
  --radius-media: 7px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gut: clamp(20px, 5vw, 80px);
  --maxw: 1320px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gut);
  background: rgba(251, 251, 249, .88);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .18em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  font-size: 14px;
  color: var(--muted);
}

.nav a { position: relative; padding-bottom: 2px; transition: color .2s ease; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.nav a:hover::after { transform: scaleX(1); }

/* ---------- shared ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 160px) var(--gut) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vw, 64px);
}

.sec-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .1em;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.sec-note {
  margin-left: auto;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 140px) var(--gut) clamp(56px, 8vw, 110px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 360px);
  align-items: stretch;
  gap: clamp(40px, 6vw, 96px);
}

.hero-text {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(40px, 7.2vw, 84px);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.035em;
  max-width: 14ch;
}

.hero-visual {
  justify-self: end;
  align-self: stretch;
  width: 100%;
  max-width: 360px;
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-media);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.role {
  margin-top: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  font-size: clamp(15px, 1.35vw, 19px);
  letter-spacing: -.01em;
  color: var(--ink);
}

.role-plus {
  color: var(--accent);
  font-size: 1.05em;
  line-height: 1;
}

.lede {
  margin-top: clamp(20px, 2.4vw, 30px);
  max-width: 52ch;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--muted);
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-character;
  text-align-last: left;
}

.stats {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    justify-self: stretch;
    align-self: start;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 4;
  }
  .hero-visual img {
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .hero h1 { font-size: clamp(42px, 13vw, 60px); line-height: 1.1; max-width: 100%; }
  .lede { max-width: 58ch; }
}


/* ---------- work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
}

.work-card { display: flex; flex-direction: column; }

.work-card--linked { position: relative; }
.card-link { position: absolute; inset: 0; z-index: 3; }
.card-go { font-size: .68em; margin-left: .35em; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease; }
.work-card--linked:hover .card-go { opacity: 1; transform: translateX(0); }
.work-card--linked:hover { cursor: pointer; }

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--thumb);
  background-image:
    linear-gradient(to right, rgba(20,20,20,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,20,20,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: var(--radius-media);
  overflow: hidden;
  transition: transform .5s cubic-bezier(.16,1,.3,1), background-color .3s ease;
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.work-card:hover .thumb { transform: translateY(-6px); background-color: #E9E8E3; }

.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.work-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .1em;
}

.work-tags {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: .02em;
}

.work-card h3 {
  margin-top: 16px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.work-card > p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.work-facts {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.work-facts div { display: flex; gap: 8px; align-items: baseline; }
.work-facts dt { font-size: 12px; color: var(--faint); font-family: var(--mono); }
.work-facts dd { font-size: 13px; }

/* ---------- beliefs ---------- */

.section--beliefs { background: transparent; }

.beliefs {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.beliefs li {
  display: grid;
  grid-template-columns: 56px minmax(0, 260px) 1fr;
  gap: 24px;
  align-items: start;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line-soft);
}

.belief-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .1em;
  padding-top: 5px;
}

.beliefs h3 {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.3;
}

.beliefs p {
  font-size: 15px;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.col-title {
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  margin-bottom: 20px;
}

.col-title--spaced { margin-top: clamp(36px, 4vw, 56px); }

.col-foot {
  margin-top: 14px;
  font-size: 13px;
  color: var(--faint);
  line-height: 1.6;
}

.capability-list { list-style: none; border-top: 1px solid var(--line-soft); }

.capability-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
}

.cap-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--faint);
}

.timeline { list-style: none; border-top: 1px solid var(--line-soft); }

.timeline li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 20px;
  align-items: baseline;
}

.tl-year { font-family: var(--mono); font-size: 12px; color: var(--faint); padding-top: 3px; }
.tl-role { font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; }
.tl-org { grid-column: 2; font-size: 14px; color: var(--muted); margin-top: 2px; }
.timeline p { grid-column: 2; font-size: 14px; color: var(--muted); margin-top: 6px; max-width: 64ch; }

/* ---------- contact ---------- */

.section--contact { padding-bottom: clamp(80px, 10vw, 140px); }

.contact-inner {
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 5vw, 64px);
}

.contact-inner h2 {
  margin-top: 16px;
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.mail {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color .2s ease, border-color .2s ease;
}

.mail:hover { color: var(--accent); border-color: var(--accent); }

.contact-links {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

.contact-links a:hover { color: var(--accent); }

/* ---------- footer ---------- */

.site-foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gut) 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  border-top: 1px solid var(--line-soft);
}

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}

[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .beliefs li { grid-template-columns: 40px 1fr; gap: 8px 16px; }
  .beliefs p { grid-column: 2; }
  .timeline li { grid-template-columns: 1fr; }
  .tl-org, .timeline p { grid-column: 1; }
  .sec-note { display: none; }
}

@media (max-width: 560px) {
  .nav { gap: 14px; font-size: 13px; }
  .brand { font-size: 11px; }
  .role { flex-direction: column; align-items: flex-start; gap: 6px; }
  .role-plus { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .thumb, .nav a::after { transition: none; }
}
