/* Foundations: keep the existing palette and local font stacks. */
:root {
  --ink: #242424;
  --muted: #686868;
  --line: #e6e6e6;
  --serif: Baskerville, 'Times New Roman', 'Yu Mincho', serif;
  --sans: 'Avenir Next', Avenir, 'Helvetica Neue', 'Noto Sans JP', Arial, sans-serif;
  --gap: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 154px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid #526b7b;
  outline-offset: 4px;
}
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
.site { max-width: 1920px; padding: 0 4%; margin: auto; }
.skip { position: fixed; top: -100px; z-index: 100; background: white; padding: 12px; }
.skip:focus { top: 0; }

/* Header, Hero and Works: consolidated from the previously effective rules. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 20px 0;
  background: #fff;
  border-bottom: 0;
}
.brand { font: 25px/1.2 var(--serif); letter-spacing: .075em; white-space: nowrap; }
.brand span {
  display: block;
  font: 12px/1.6 var(--sans);
  letter-spacing: .06em;
  margin-top: 8px;
}
.site-header nav { display: flex; gap: 34px; font-size: 14px; }
.site-header nav a { border-bottom: 1px solid transparent; padding: 7px 0; }
.site-header nav a:hover { border-color: var(--ink); }
.hero { margin-top: 24px; background: #fff; }
.hero-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding: 30px 0 36px;
}
.hero-intro h1 { font: clamp(35px, 3.6vw, 62px)/1.12 var(--serif); letter-spacing: -.015em; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.photo {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: #f5f5f5;
  overflow: hidden;
  aspect-ratio: 3/2;
  width: 100%;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2, .65, .3, 1);
}
.photo[data-photo="07"] img { object-position: 50% 43%; }
.hero-photo { position: relative; height: auto; aspect-ratio: 1.91; background: #eee; }
.hero-photo img { object-position: 50% 50%; transition: transform 1.1s cubic-bezier(.2, .65, .3, 1); }
.hero-bottom { display: flex; justify-content: flex-end; padding-top: 14px; }
.hero-bottom a { display: inline-flex; align-items: center; gap: 18px; font-size: 14px; line-height: 1.6; min-height: 40px; }
.hero-bottom a span { display: inline-block; font-size: 20px; transition: transform .25s ease; }
.hero-bottom a:hover span { transform: translateY(3px); }
.works { margin-top: 64px; }
.works > h2 { font: 32px/1.4 var(--serif); letter-spacing: .02em; margin: 0 0 28px; }

/* About and Contact share the same 1:2 grid and section rhythm. */
.about, .contact {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 30px;
  align-items: baseline;
}
.about { margin-top: clamp(64px, 6vw, 100px); }
.about > h2, .contact > h2 { font: 28px/1.4 var(--serif); }
.about-profile, .contact-content { min-width: 0; }
.about-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px .15em; font: 24px/1.5 var(--serif); }
.name-ja { letter-spacing: .065em; white-space: nowrap; }
.name-en { display: inline-flex; align-items: baseline; column-gap: .15em; font-size: 1em; letter-spacing: .02em; white-space: nowrap; }
/* Keep the full-width slash on the same baseline and scale as the name. */
.name-divider { font-size: 1em; letter-spacing: 0; }
.about p, .contact-description { max-width: 36em; font-size: 15px; line-height: 2; color: var(--muted); line-break: strict; }
.about p { margin-top: 18px; }

/* The email stays beneath the copy, within the shared right-hand column. */
.contact-title { font-size: 18px; line-height: 1.8; letter-spacing: .025em; }
.contact-description { margin-top: 16px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 4px 0;
  font: 24px/1.5 var(--serif);
  letter-spacing: .01em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.contact-email:hover { color: var(--muted); text-decoration-color: currentColor; }

/* Footer: quiet brand signature and a comfortable text-link target. */
footer {
  padding: 20px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
footer > span { font: 17px/1.4 var(--serif); letter-spacing: .075em; }
footer > a { display: inline-flex; align-items: center; min-height: 44px; letter-spacing: .025em; }
footer > a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Lightbox: preserve the existing display, controls and mobile layout. */
.modal-open { overflow: hidden; }
.lightbox {
  border: 0;
  padding: 20px 24px 24px;
  margin: auto;
  background: #fff;
  color: var(--ink);
  width: 96vw;
  max-width: 1800px;
  height: 95dvh;
  max-height: 95dvh;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(20, 20, 20, .88); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; padding-bottom: 14px; }
.photo-count { font-size: 12px; letter-spacing: .12em; }
.close { border: 0; background: none; font-size: 14px; padding: 8px 10px; display: flex; align-items: center; gap: 15px; }
.close span { font-size: 26px; line-height: 1; }
.close:hover { background: #f3f3f3; }
.slide-stage { position: relative; min-height: 0; flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 60px; touch-action: pan-y; }
.slide-image { height: 100%; width: 100%; object-fit: contain; }
.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 58px; padding: 0; border: 0; background: #fff; color: #333; font-size: 27px; }
.prev { left: 0; }
.next { right: 0; }
.prev:hover, .next:hover { background: #f1f1f1; }

/* One block per existing layout breakpoint. */
@media (min-width: 1600px) {
  :root { --gap: 18px; }
  .site-header { min-height: 118px; }
  .hero { margin-top: 30px; }
  .hero-intro { padding: 36px 0 42px; }
  .works { margin-top: 76px; }
}

@media (max-width: 700px) {
  :root { --gap: 8px; }
  html { scroll-padding-top: 164px; }
  .site-header { min-height: 128px; flex-wrap: wrap; gap: 10px 14px; padding: 17px 0; }
  .brand { font-size: 23px; }
  .brand span { letter-spacing: .015em; }
  .site-header nav { margin-left: auto; gap: 24px; }
  .hero { margin-top: 14px; }
  .hero-intro { display: block; padding: 24px 0 26px; }
  .hero-intro h1 { font-size: clamp(29px, 7.9vw, 46px); }
  .hero-bottom { padding-top: 9px; }
  .hero-bottom a { font-size: 13px; }
  .works { margin-top: 40px; }
  .works > h2 { font-size: 28px; margin-bottom: 22px; }
  .gallery { grid-template-columns: 1fr; }

  .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 32px 0; }
  .about > h2, .contact > h2 { font-size: 25px; }
  .about-name { font-size: 22px; }
  .about p, .contact-description { font-size: 14px; }
  /* Preserve the authored phrase breaks on narrow screens; wrapping remains fluid around them. */
  .about .desktop-break, .contact .desktop-break { display: initial; }
  .contact-title { font-size: 17px; }
  .contact-email { font-size: 22px; }
  footer { padding: 16px 0 20px; gap: 12px; }
  footer > span { font-size: 15px; letter-spacing: .06em; }

  .lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 14px 12px 18px; }
  .slide-stage { padding: 0 0 64px; }
  .prev, .next { top: auto; bottom: 0; transform: none; width: 52px; height: 46px; border: 1px solid #dedede; font-size: 23px; }
  .prev { left: calc(50% - 62px); }
  .next { right: calc(50% - 62px); }
}

@media (hover: hover) {
  .photo:hover img { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo img, .hero-photo img, .hero-bottom a span { transition: none; }
}
