:root {
  --ink: #22232b;
  --muted: #6f7079;
  --paper: #fbfaf8;
  --soft: #f0eff3;
  --accent: #ef5b73;
  --line: #e4e1e5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; line-height: 1.8; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(22px, 5vw, 76px); background: color-mix(in srgb, var(--paper) 90%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.logo { font-family: Georgia, serif; font-size: 30px; font-weight: 700; line-height: 1; text-decoration: none; letter-spacing: -.03em; }
.logo span, em { color: var(--accent); }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
nav a { text-decoration: none; }
.nav-cta { padding: 8px 18px; border: 1px solid var(--ink); border-radius: 100px; }
.hero { width: 100%; min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 90px); max-width: 1400px; margin: auto; padding: clamp(54px, 8vw, 110px) clamp(22px, 6vw, 88px); background: radial-gradient(circle at 78% 28%, rgba(239, 91, 115, .09), transparent 32%), radial-gradient(circle at 58% 70%, rgba(75, 108, 177, .07), transparent 38%); }
.hero-copy { min-width: 0; max-width: 620px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 25px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(42px, 6vw, 82px); font-weight: 500; line-height: 1.25; letter-spacing: -.05em; }
h1 em { font-style: normal; }
h2 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(34px, 4vw, 56px); font-weight: 500; line-height: 1.35; letter-spacing: -.04em; }
h3 { font-size: 18px; line-height: 1.5; }
.lead { max-width: 570px; color: var(--muted); }
.lead strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 26px; border-radius: 100px; font-weight: 700; text-decoration: none; }
.primary { color: white; background: var(--ink); }
.text-button { padding-inline: 0; }
.hero-art-link, .work-link { padding: 0; border: 0; color: inherit; font: inherit; cursor: zoom-in; }
.placeholder { position: relative; display: grid; place-items: center; overflow: hidden; color: #8d7c81; background: linear-gradient(135deg, #f2dedf, #e9dfe8 55%, #dfe9e7); }
.placeholder::before { content: ""; position: absolute; width: 42%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; }
.placeholder span, .placeholder small { position: relative; z-index: 1; padding: 5px 10px; background: rgba(255,255,255,.65); letter-spacing: .12em; }
.hero-art-link { display: block; width: 100%; min-width: 0; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 28px; background: var(--soft); }
.hero-art { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.section { max-width: 1400px; margin: auto; padding: clamp(80px, 11vw, 150px) clamp(22px, 6vw, 88px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 54px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 480px; margin-bottom: 8px; color: var(--muted); }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.work-link { display: block; width: 100%; min-width: 0; max-width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--soft); }
.work { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.work-link:nth-child(n+4) .work { object-position: center 20%; }
.center-note { margin: 44px 0 0; text-align: center; color: var(--muted); }
.center-note a { color: var(--accent); font-weight: 700; }
.soft { max-width: none; background: var(--soft); }
.soft > * { max-width: 1224px; margin-left: auto; margin-right: auto; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards article { padding: 34px; background: var(--paper); border-radius: 12px; }
.cards p { color: var(--muted); }
.card-no { color: var(--accent); font-family: Georgia, serif; font-size: 28px; }
.fine-print { margin-top: 28px; color: var(--muted); font-size: 13px; }
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; list-style: none; counter-reset: step; }
.flow-list li { position: relative; padding: 10px 28px 10px 0; }
.flow-list li:not(:last-child)::after { content: "→"; position: absolute; top: 14px; right: 12px; color: var(--accent); }
.flow-list li > span { display: block; margin-bottom: 22px; color: var(--accent); font-family: Georgia, serif; font-size: 32px; }
.flow-list p { color: var(--muted); font-size: 14px; }
.notes { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; border-top: 1px solid var(--line); }
.notes ul { margin: 0; padding-left: 1.3em; color: var(--muted); }
.notes li { padding: 8px 0; }
.contact { padding: clamp(90px, 13vw, 170px) 22px; color: white; background: var(--ink); text-align: center; }
.contact h2 { margin-bottom: 24px; }
.contact > p:not(.eyebrow) { max-width: 650px; margin-inline: auto; color: #cfc6ca; }
.contact > .email-contact { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 18px; max-width: none; margin-top: 34px; margin-bottom: 0; color: white; }
.email-contact span { color: #a99fa4; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.email-contact a { font-family: Georgia, serif; font-size: clamp(16px, 2vw, 20px); text-decoration: none; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.contact-links a { min-width: 170px; padding: 13px 22px; border: 1px solid #6f666a; border-radius: 100px; text-decoration: none; }
footer { display: flex; align-items: center; justify-content: space-between; padding: 30px clamp(22px, 6vw, 88px); }
footer p { margin: 0; color: var(--muted); font-size: 11px; }
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: clamp(18px, 4vw, 48px); border: 0; overflow: hidden; color: white; background: rgba(18, 15, 17, .94); }
.lightbox[open] { display: grid; place-items: center; animation: lightbox-fade-in .24s ease-out both; }
.lightbox::backdrop { background: rgba(18, 15, 17, .65); backdrop-filter: blur(8px); }
.lightbox-image { max-width: 100%; max-height: calc(100dvh - 72px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 80px rgba(0, 0, 0, .45); }
.lightbox-close { position: fixed; z-index: 1; top: 14px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: white; background: rgba(20,17,19,.72); font: 300 30px/1 sans-serif; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.16); }
.lightbox[open] .lightbox-image { animation: lightbox-image-in .34s cubic-bezier(.2, .8, .2, 1) both; }
.lightbox[open] .lightbox-close { animation: lightbox-controls-in .24s .08s ease-out both; }
.lightbox.is-closing { animation: lightbox-fade-out .18s ease-in both; }
.lightbox.is-closing .lightbox-image { animation: lightbox-image-out .18s ease-in both; }
.lightbox.is-closing .lightbox-close { animation: lightbox-controls-out .14s ease-in both; }

@keyframes lightbox-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightbox-image-in {
  from { opacity: 0; transform: translateY(8px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lightbox-controls-in {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes lightbox-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes lightbox-image-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(5px) scale(.96); }
}

@keyframes lightbox-controls-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox[open],
  .lightbox[open] .lightbox-image,
  .lightbox[open] .lightbox-close,
  .lightbox.is-closing,
  .lightbox.is-closing .lightbox-image,
  .lightbox.is-closing .lightbox-close {
    animation-duration: .01ms;
    animation-delay: 0s;
  }
}
a:focus-visible { outline: 3px solid #f2a4b1; outline-offset: 4px; }
button:focus-visible { outline: 3px solid #f2a4b1; outline-offset: 4px; }
@media (hover: hover) { a { transition: opacity .2s, transform .2s; } a:hover { opacity: .68; } .primary:hover { transform: translateY(-2px); opacity: 1; } .work-link:hover { opacity: 1; } .work-link:hover .work { transform: scale(1.025); } }

@media (max-width: 900px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art-link { max-width: 760px; }
  .section-heading { display: block; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: 1fr 1fr; gap: 28px; }
  .flow-list li:not(:last-child)::after { content: none; }
  .notes { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  .site-header { padding-inline: 18px; }
  h1 { font-size: 40px; }
  .hero { padding-inline: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .works-grid, .flow-list { grid-template-columns: 1fr; }
  .section { padding-inline: 18px; }
  .contact-links { align-items: stretch; flex-direction: column; }
  .contact-links a { width: 100%; min-width: 0; }
  footer { align-items: flex-start; flex-direction: column; gap: 18px; }
}
