:root {
  --paper: #f4f3ed;
  --paper-soft: #eae9e2;
  --ink: #20211f;
  --muted: #696b63;
  --muted-soft: #7b7e73;
  --line: #cccdc5;
  --accent: #e84c30;
  --accent-hover: #cf3d23;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 99;
}
.skip:focus { left: 16px; }

/* Header */
header {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 4.2%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-size: 40px; letter-spacing: -4px; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: flex-start;
}
.logo-dot {
  color: var(--accent); font-size: 28px; margin-left: 6px; letter-spacing: 0;
}
.brand { font-size: 13px; line-height: 1.5; font-weight: 600; }
.brand-sub {
  display: block; font-size: 9px; letter-spacing: 1.6px;
  color: var(--muted); font-weight: 500;
}
nav {
  display: flex; gap: 32px; margin-left: auto; align-items: center; font-size: 13px;
}
nav small { font-size: 10px; margin-left: 5px; color: var(--muted); }
.nav-contact {
  padding: 10px 18px; border: 1px solid #8f9188; border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.nav-contact:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Editorial Typographic Opening */
.type-opening { padding: 24px 4.2% 0; background: var(--paper); overflow: hidden; }
.type-meta {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 10px; letter-spacing: 1.5px; color: var(--muted);
}
.type-stage { position: relative; padding: 42px 0 48px; }
.type-overline {
  font-size: 10px; letter-spacing: 2px; color: var(--accent); margin: 0 0 12px;
}
.type-stage h1 {
  margin: 0; font-weight: 800; letter-spacing: -.065em;
}
.type-visual {
  display: block;
  font-size: clamp(78px, 16.5vw, 250px);
  line-height: .94;
  white-space: nowrap;
}
.type-stop { color: var(--accent); }
.type-second {
  display: block;
  font-size: clamp(34px, 5.8vw, 96px);
  line-height: 1.15;
  letter-spacing: -.045em;
  margin-top: 8px;
}
.type-second em {
  font-family: var(--font-serif);
  font-weight: 400; font-style: italic;
  color: var(--accent);
}
.type-thought {
  position: absolute; right: 0; bottom: 44px; max-width: 28%;
}
.type-thought p {
  font-size: clamp(15px, 1.55vw, 24px);
  line-height: 1.6; letter-spacing: -.01em; margin: 0 0 12px; font-weight: 500;
}
.type-thought small {
  display: block; font-size: 11px; line-height: 1.85; color: var(--muted);
}
.type-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0 28px; border-top: 1px solid var(--line);
}
.type-signature { font-size: 13px; letter-spacing: 1.6px; font-weight: 600; }
.type-signature small {
  display: block; font-size: 9px; letter-spacing: 1.2px;
  margin-top: 6px; color: var(--muted); font-weight: 400;
}
.type-bottom > p { font-size: 11px; color: var(--muted); margin: 0; letter-spacing: .6px; }
.type-explore { display: flex; align-items: center; gap: 20px; font-size: 12px; font-weight: 600; }
.type-explore small {
  display: block; font-size: 8px; letter-spacing: 1px;
  color: var(--muted); margin-top: 5px; font-weight: 400;
}
.type-explore b {
  display: grid; place-items: center;
  background: var(--accent); color: #fff; border-radius: 50%;
  width: 46px; height: 46px; font-size: 22px; font-weight: 400;
  transition: transform .25s ease, background .2s ease;
}
.type-explore:hover b { transform: rotate(45deg); background: var(--accent-hover); }

/* Journals Section */
.work {
  padding: 68px 4.2% 64px;
  border-top: 1px solid var(--line);
}
.eyebrow {
  font-size: 10px; letter-spacing: 1.8px; color: var(--muted);
  margin: 0 0 18px; text-transform: uppercase;
}
.section-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 34px;
}
.section-heading h2 {
  font-size: clamp(32px, 4vw, 60px); line-height: 1.2;
  letter-spacing: -.035em; margin: 0; font-weight: 700;
}
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; }
.section-heading > p {
  font-size: 13px; line-height: 1.85; color: var(--muted);
  max-width: 360px; margin: 0;
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filters button {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 12px; color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 28px;
}
.project {
  display: block; text-align: left; padding: 0; width: 100%;
}
.project-visual {
  position: relative; display: block; width: 100%;
  aspect-ratio: 3 / 2; overflow: hidden;
  background: var(--paper-soft);
}
.project-visual img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s ease, filter .35s ease;
}
.project:hover .project-visual img { transform: scale(1.035); }
.project-number {
  position: absolute; right: 14px; top: 14px;
  background: rgba(244, 243, 237, .88); color: var(--ink);
  font-size: 10px; letter-spacing: 1.2px; padding: 4px 8px;
}
.project-arrow {
  position: absolute; right: 14px; bottom: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(32, 33, 31, .84); color: var(--paper);
  display: grid; place-items: center; font-size: 17px;
  transition: background .2s, transform .25s;
}
.project:hover .project-arrow {
  background: var(--accent); transform: translate(2px, -2px);
}
.project-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line);
}
.project-meta strong { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.project-meta small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.project-sub {
  display: block; margin-top: 6px;
  font-size: 10px; letter-spacing: 1.4px; color: var(--muted-soft);
  text-transform: uppercase;
}
.project-excerpt {
  display: block; margin-top: 8px;
  font-size: 13px; line-height: 1.7; color: var(--muted);
}
.project-note {
  display: block; margin-top: 12px; padding: 10px 14px;
  border-left: 2px solid var(--accent);
  background: var(--paper-soft);
  font-family: var(--font-serif); font-style: italic;
  font-size: 13px; line-height: 1.75; color: #3a3d35;
}
.project-note small {
  display: block; margin-bottom: 4px;
  font-family: var(--font-sans); font-style: normal;
  font-size: 9px; letter-spacing: 1.4px; color: var(--accent);
}

.work-note {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.work-note a { color: var(--ink); font-weight: 600; }
.work-note a:hover { color: var(--accent); }

/* About Section */
#about {
  padding: 72px 7% 56px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.about-section-label, .contact-section-label {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 10px; letter-spacing: 1.4px;
}
.about-section-label {
  color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.about-editorial {
  display: grid;
  grid-template-columns: minmax(210px, .76fr) minmax(0, 1.4fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: start;
  padding: 48px 0 42px;
}
.about-photo { max-width: 310px; }
.about-photo img {
  width: 100%; height: auto; aspect-ratio: 1 / 1.05;
  object-fit: cover; display: block;
  filter: saturate(.88);
}
.photo-caption {
  margin-top: 15px; display: flex; justify-content: space-between;
  align-items: baseline; font-size: 9px; letter-spacing: 1.1px; gap: 10px;
}
.photo-caption strong { font-size: 15px; font-weight: 600; letter-spacing: .8px; }
.about-photo-note {
  font-size: 9px; letter-spacing: 1.3px; color: var(--muted-soft); margin: 8px 0 0;
}
#about h2 {
  font-size: clamp(32px, 4vw, 58px); line-height: 1.25;
  letter-spacing: -.03em; margin: 0; font-weight: 700;
}
#about h2 .serif { color: var(--accent); }
.about-text {
  font-size: 14px; line-height: 1.9; color: #4d5147;
  max-width: 560px; margin: 24px 0 14px;
}
.about-observation {
  font-size: 12.5px; line-height: 1.9; color: var(--muted-soft);
  max-width: 560px; margin: 0 0 26px;
}
.about-disciplines { padding-top: 18px; border-top: 1px solid var(--line); }
.about-disciplines > small { font-size: 9px; letter-spacing: 1.3px; color: var(--muted-soft); }
.capabilities { display: flex; gap: 10px 22px; margin-top: 12px; flex-wrap: wrap; }
.capabilities span { font-size: 12px; color: #3f433b; }

.about-experience details {
  border-top: 1px solid #aeb1a4; border-bottom: 1px solid var(--line);
}
.about-experience summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; font-size: 21px; font-weight: 600; list-style: none;
}
.about-experience summary::-webkit-details-marker { display: none; }
.experience-label { display: flex; align-items: baseline; gap: 16px; }
.experience-label small {
  font-size: 10px; font-weight: 400; letter-spacing: 1.5px; color: var(--muted);
}
.experience-action {
  display: flex; align-items: center; gap: 14px;
  color: var(--accent); letter-spacing: .8px; font-size: 11px; font-weight: 500;
}
.experience-action b {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--accent); border-radius: 50%;
  font-size: 22px; font-weight: 400;
  transition: transform .25s, background .2s, color .2s;
}
.about-experience summary:hover .experience-action b {
  background: var(--accent); color: #fff;
}
.about-experience details[open] .experience-action b { transform: rotate(45deg); }
.about-experience details[open] .when-closed,
.about-experience details:not([open]) .when-open { display: none; }

.timeline { padding: 0 0 14px; }
.timeline p {
  display: grid; grid-template-columns: 165px 1fr; align-items: baseline; gap: 18px;
  padding: 13px 0; margin: 0; font-size: 13px; border-top: 1px solid #d5d6cc;
}
.timeline time { font-size: 11px; letter-spacing: .8px; color: var(--muted); }

/* Contact Section */
#contact {
  padding: 48px 7% 36px;
  background: var(--ink); color: #f4f1e8;
}
.contact-section-label {
  color: #a2a297; border-bottom: 1px solid rgba(255,255,255,.16);
  padding-bottom: 20px;
}
.contact-editorial {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 8%;
  align-items: center; padding: 48px 0 44px;
}
.contact-english {
  font-size: clamp(68px, 10.5vw, 165px); font-weight: 800;
  letter-spacing: -.03em; line-height: .9; margin: 0;
}
.contact-english > span { color: var(--accent); }
.contact-invitation h3 {
  font-size: clamp(22px, 2.5vw, 38px); line-height: 1.4;
  letter-spacing: -.025em; margin: 0 0 18px; font-weight: 700;
}
.contact-invitation p {
  font-size: 13px; color: #a7a89d; line-height: 1.9; margin: 0;
}
.contact-bottom {
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 28px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 8%; align-items: start;
}
.contact-phone > small {
  display: block; color: #8d9383; font-size: 9px;
  letter-spacing: 1.5px; margin-bottom: 10px;
}
.contact-phone > a {
  font-size: clamp(20px, 2.6vw, 38px); line-height: 1.2;
  letter-spacing: -.02em; display: inline-block; word-break: break-all;
}
.contact-phone > a:hover { color: var(--accent); }
.contact-copy { display: flex; flex-direction: column; align-items: flex-start; }
.contact-copy > p { font-size: 11px; margin: 0 0 14px; color: #969b8d; }
#copy-email {
  background: var(--accent); color: #fff; padding: 11px 18px;
  display: inline-flex; gap: 22px; align-items: center; font-size: 12px;
  transition: background .2s;
}
#copy-email:hover { background: var(--accent-hover); }
#copy-status {
  font-size: 11px; min-height: 18px; display: block;
  margin-top: 8px; color: #d7ddca;
}

/* Footer */
footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4.2%; background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted);
}
footer a { color: var(--ink); font-weight: 600; }

/* Journal Detail Dialog */
dialog#entry-dialog {
  width: min(960px, 94vw);
  max-height: 92vh;
  padding: 0; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
  overflow: auto;
}
dialog::backdrop { background: rgba(20, 21, 19, .68); }
.case-toolbar {
  position: sticky; top: 0; z-index: 4;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 5%; background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 10px; letter-spacing: 1.5px; color: var(--muted);
}
#close-entry {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; color: var(--ink);
}
#close-entry:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.case-intro { padding: 36px 5% 24px; }
.case-intro h2 {
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2;
  letter-spacing: -.03em; margin: 0 0 14px;
}
#entry-lead {
  font-size: 15px; line-height: 1.85; color: #474a42;
  max-width: 680px; margin: 0 0 22px;
}
.entry-specs {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--muted);
}
.entry-specs span strong { color: var(--ink); font-weight: 600; margin-right: 6px; }
.entry-body { padding: 24px 5% 40px; }
.entry-hero-figure { margin: 0 0 28px; }
.entry-hero-figure button {
  display: block; width: 100%; padding: 0; overflow: hidden;
  background: var(--paper-soft);
}
.entry-hero-figure img {
  display: block; width: 100%; height: auto;
  transition: transform .35s ease;
}
.entry-hero-figure button:hover img { transform: scale(1.015); }
.entry-hero-figure figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  padding-top: 10px; font-size: 10px; letter-spacing: 1px; color: var(--muted);
}
.entry-prose {
  max-width: 680px; font-size: 15px; line-height: 1.9; color: #363932;
}
.entry-quote {
  margin: 0 0 24px; padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--paper-soft);
  font-family: var(--font-serif); font-style: italic;
  font-size: 15px; line-height: 1.8; color: #2f322b;
  max-width: 680px;
}
.entry-prose p { margin: 0 0 18px; }
.entry-prose .jp-note {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); line-height: 1.9;
}
.case-end {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 5%; border-top: 1px solid var(--line);
  font-size: 10px; letter-spacing: 1.4px; color: var(--muted);
}
#next-entry {
  padding: 10px 18px; background: var(--ink); color: var(--paper); font-size: 12px;
}
#next-entry:hover { background: var(--accent); }

/* Lightbox Dialog */
.lightbox-dialog {
  width: min(1100px, 95vw); max-height: 94vh;
  padding: 16px; border: 0; background: transparent; overflow: visible;
}
.lightbox-dialog::backdrop { background: rgba(15, 16, 15, .88); }
.lightbox-close {
  position: fixed; right: 24px; top: 20px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(244, 243, 237, .92); color: var(--ink); font-size: 18px;
}
.lightbox-figure { margin: 0; text-align: center; }
.lightbox-figure img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto; display: block; margin: 0 auto;
}
.lightbox-figure figcaption {
  margin-top: 12px; font-size: 12px; color: #e2e1d8; letter-spacing: .5px;
}

@media (max-width: 860px) {
  .type-thought { position: static; max-width: none; margin-top: 28px; }
  .type-bottom > p { display: none; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .project-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-editorial { grid-template-columns: 1fr; gap: 32px; }
  .contact-editorial, .contact-bottom { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  header { padding: 18px 5%; gap: 12px; }
  .logo { font-size: 32px; }
  .nav-contact { display: none; }
  nav { gap: 18px; }
  .type-opening, .work { padding-left: 5%; padding-right: 5%; }
  .timeline p { grid-template-columns: 1fr; gap: 4px; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
