:root {
  --paper: #ffffff;
  --ink: #111111;
  --muted: rgba(17, 17, 17, .58);
  --edge: 24px;
  --line: rgba(17, 17, 17, .18);
  --site-font: Arial, Helvetica, sans-serif;
  --body-font-size: 16px;
  --home-brand-size: 17px;
  --home-project-size: 15px;
  --about-heading-size: 64px;
  --about-body-size: 16px;
  --about-details-size: 13px;
  --about-copy-width: 340px;
  --about-copy-offset-x: 0px;
  --about-copy-offset-y: 0px;
  --project-statement-size: 13px;
  --project-statement-width: 500px;
  --works-gap: 104px;
  --works-thumb-ratio: 4 / 5;
  --thumbnail-radius: 0px;
  font-family: var(--site-font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-size: var(--body-font-size); color-scheme: light; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; }
.page { min-height: 100svh; position: relative; overflow: hidden; }
.page:not(.home-page),
.page:not(.home-page) * {
  color: var(--ink);
}
.site-header { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; padding: 22px var(--edge); pointer-events: none; }
.brand, .main-nav, .menu-button { pointer-events: auto; }
.brand { font-size: var(--home-brand-size); font-weight: 700; letter-spacing: -.04em; }
.main-nav { display: flex; gap: 26px; font-size: 14px; line-height: 1; }
.main-nav a, .menu-button { padding: 2px 0; }
.main-nav a:hover, .main-nav a.is-active, .menu-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-button { display: none; padding: 0; background: transparent; cursor: pointer; }
.mobile-menu { display: none; }
.eyebrow { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

/* Home */
.home-page { color: #fff; background: #111; }
.home-images, .home-shade, .home-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-images { overflow: hidden; background: #222; }
.home-image { object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity .85s ease, transform 1.3s ease; }
.home-image.is-visible { opacity: 1; transform: scale(1); }
.home-shade { background: linear-gradient(90deg, rgba(0,0,0,.36), transparent 30%), linear-gradient(180deg, rgba(0,0,0,.18), transparent 25%, transparent 70%, rgba(0,0,0,.3)); }
.home-page,
.home-page * { color: #fff; }
.home-page .site-header { color: #fff; }
.home-page .home-meta { position: absolute; right: var(--edge); bottom: var(--edge); display: flex; gap: 24px; color: rgba(255,255,255,.76); font-size: 13px; }
.home-projects { position: absolute; z-index: 2; left: var(--edge); bottom: var(--edge); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.project-link { display: flex; align-items: baseline; gap: 10px; width: max-content; color: currentColor; font-size: var(--home-project-size); line-height: 1.15; }
.project-link span:first-child { transition: transform .25s ease; }
.project-link:hover span:first-child, .project-link:focus-visible span:first-child, .project-link.is-active span:first-child { transform: translateX(8px); }
.project-number { min-width: 18px; color: rgba(255,255,255,.6); font-size: 11px; }
.home-scroll { position: absolute; z-index: 2; right: var(--edge); top: 50%; writing-mode: vertical-rl; color: rgba(255,255,255,.75); font-size: 12px; }
.home-scroll span { display: inline-block; margin-top: 8px; font-size: 16px; }

/* Works */
.works-page, .text-page, .about-page, .contact-page, .not-found-page, .prints-page { padding: 118px var(--edge) 48px; }
.works-intro { max-width: 360px; margin: 0 0 72px 16%; }
.works-note { margin: 16px 0 0; color: var(--muted); line-height: 1.45; }
.works-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--works-gap) 5%; padding: 0 8% 80px; }
.work-card { display: block; min-width: 0; }
.work-card-image { border-radius: var(--thumbnail-radius); background: #e7e7e3; overflow: hidden; }
.work-card-image img { display: block; width: 100%; aspect-ratio: var(--works-thumb-ratio); object-fit: cover; transition: transform .7s ease; }
.work-card:hover img { transform: scale(1.025); }
.work-card-caption { display: flex; justify-content: space-between; gap: 12px; padding-top: 11px; font-size: 13px; }
.work-card-caption span:last-child { color: var(--muted); }
.work-card-1 { grid-column: 2 / span 5; }
.work-card-2 { grid-column: 9 / span 3; margin-top: 54px; }
.work-card-3 { grid-column: 3 / span 4; margin-top: 10px; }
.work-card-4 { grid-column: 9 / span 3; margin-top: 90px; }
.work-card-5 { grid-column: 1 / span 4; margin-top: 25px; }
.work-card-6 { grid-column: 6 / span 5; margin-top: 30px; }
.works-layout-two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--works-gap) 4%; padding-inline: 8%; }
.works-layout-two-column .work-card-1,
.works-layout-two-column .work-card-2,
.works-layout-two-column .work-card-3,
.works-layout-two-column .work-card-4,
.works-layout-two-column .work-card-5,
.works-layout-two-column .work-card-6 { grid-column: auto; margin-top: 0; }
.works-layout-masonry { display: block; column-count: 2; column-gap: var(--works-gap); padding-inline: 8%; }
.works-layout-masonry .work-card { break-inside: avoid; margin: 0 0 var(--works-gap); }

/* Prints */
.prints-intro { max-width: 500px; margin: 0 0 72px 16%; }
.prints-intro h1 { max-width: 520px; margin: 24px 0 22px; font-size: clamp(34px, 4.6vw, 64px); line-height: .98; letter-spacing: -.06em; font-weight: 500; }
.prints-note { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.5; }
.prints-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 28px; max-width: 1280px; margin: 0 auto; padding-bottom: 80px; }
.print-card { min-width: 0; }
.print-card-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #f2f2ef; overflow: hidden; }
.print-card-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .7s ease; }
.print-card-image:hover img, .print-card-image:focus-visible img { transform: scale(1.02); }
.print-card-meta { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 14px; padding-top: 12px; font-size: 13px; }
.print-card-title, .print-card-type { display: block; }
.print-card-type { margin-top: 5px; color: var(--muted); font-size: 12px; }
.print-card-type { max-width: 190px; }
.print-card-link { color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.print-card-link:hover, .print-card-link:focus-visible { color: var(--ink); }
.print-detail-page { padding: 118px var(--edge) 80px; }
.print-detail-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 420px); gap: 8%; align-items: start; max-width: 1280px; margin: 0 auto; }
.print-detail-back { grid-column: 1 / -1; justify-self: start; margin-bottom: 10px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.print-detail-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; margin: 0; background: #f2f2ef; }
.print-detail-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.print-detail-info { padding-top: 8px; }
.print-detail-info h1 { margin: 24px 0 22px; font-size: clamp(36px, 5vw, 72px); line-height: .96; letter-spacing: -.06em; font-weight: 500; }
.print-detail-price { margin: -8px 0 20px; font-size: 18px; }
.print-detail-note { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.5; }
.print-order-form { display: flex; flex-direction: column; gap: 22px; margin-top: 38px; }
.print-order-form label { display: grid; gap: 8px; font-size: 13px; }
.print-order-form input, .print-order-form select { width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; }
.print-order-form input:focus, .print-order-form select:focus { border-color: var(--ink); }
.print-order-form button { align-self: flex-start; margin-top: 4px; padding: 0 0 5px; border-bottom: 1px solid var(--ink); background: transparent; cursor: pointer; }

/* Text / About / Contact */
.text-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; padding: 20vh 11% 10vh 16%; }
.text-copy { max-width: 450px; font-size: clamp(28px, 4vw, 58px); line-height: 1.08; letter-spacing: -.055em; }
.text-copy p { margin: 0 0 35px; }
.text-copy .text-signature { margin-top: 120px; font-size: 14px; line-height: 1.4; letter-spacing: 0; color: var(--muted); }
.about-layout { display: grid; grid-template-columns: minmax(280px, 48vw) minmax(250px, 360px); gap: 10%; align-items: end; min-height: calc(100svh - 170px); padding: 28px 8% 50px; }
.about-image img { display: block; width: min(100%, 590px); max-height: 66svh; object-fit: cover; }
.about-copy { align-self: center; transform: translate(var(--about-copy-offset-x), var(--about-copy-offset-y)); }
.about-copy h1 { max-width: var(--about-copy-width); margin: 24px 0 32px; font-size: clamp(30px, 4.4vw, var(--about-heading-size)); line-height: .98; letter-spacing: -.06em; font-weight: 500; }
.contact-layout h1 { max-width: 420px; margin: 24px 0 32px; font-size: clamp(30px, 4.4vw, 64px); line-height: .98; letter-spacing: -.06em; font-weight: 500; }
.contact-copy { max-width: 340px; margin: 0; color: var(--muted); line-height: 1.45; white-space: pre-line; }
.about-copy > p:not(.eyebrow) { max-width: var(--about-copy-width); color: var(--muted); font-size: var(--about-body-size); line-height: 1.45; }
.about-details { max-width: var(--about-copy-width); margin-top: 48px; color: var(--muted); font-size: var(--about-details-size); line-height: 1.45; }
.contact-layout { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 480px); gap: 10%; padding: 15vh 9% 4vh 16%; }
.contact-layout h1 { max-width: 520px; }
.contact-form { display: flex; flex-direction: column; gap: 25px; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); }
.contact-form button { align-self: flex-start; margin-top: 14px; padding: 0 0 5px; border-bottom: 1px solid var(--ink); background: transparent; cursor: pointer; }

/* Project */
.project-page { padding: 105px var(--edge) 70px; }
.project-layout { min-height: calc(100svh - 175px); display: flex; align-items: center; justify-content: center; }
.project-stage-wrap { width: min(69vw, 1000px); margin-inline: auto; background: transparent; border: 0; }
.photo-stage { position: relative; width: 100%; height: min(69svh, 650px); display: flex; align-items: center; justify-content: center; background: transparent; border: 0; outline: 0; box-shadow: none; }
.project-photo, .project-photo-secondary { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center center; border: 0; outline: 0; opacity: 0; transition: opacity .9s cubic-bezier(.4, 0, .2, 1); will-change: opacity; backface-visibility: hidden; }
.project-photo.is-visible, .project-photo-secondary.is-visible { opacity: 1; }
.photo-zone { position: absolute; z-index: 2; top: 0; bottom: 0; width: 50%; background: transparent; cursor: pointer; }
.photo-zone.previous { left: 0; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M25 8 12 20l13 12' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") 20 20, w-resize; }
.photo-zone.next { right: 0; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='m15 8 13 12-13 12' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") 20 20, e-resize; }
.photo-thumbs { display: flex; flex-wrap: nowrap; gap: 10px; width: 100%; height: 62px; margin-top: 28px; overflow-x: auto; overflow-y: hidden; padding: 0 0 5px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-behavior: smooth; }
.photo-thumbs::-webkit-scrollbar { display: none; }
.photo-thumb { flex: 0 0 84px; height: 54px; padding: 0; border: 1px solid transparent; background: #e5e5e1; opacity: .48; cursor: pointer; transition: opacity .2s, border-color .2s; }
.photo-thumb:hover, .photo-thumb.is-active, .photo-thumb:focus-visible { opacity: 1; border-color: var(--ink); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-caption { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 18px; row-gap: 22px; padding-top: 13px; font-size: 13px; }
.project-caption-description { grid-column: 1; grid-row: 2; width: min(100%, var(--project-statement-width)); max-width: var(--project-statement-width); margin: 0; color: var(--muted); font-size: var(--project-statement-size); line-height: 1.55; }
.project-caption-count { grid-column: 2; grid-row: 1; color: var(--muted); }
.project-page-index { position: fixed; z-index: 3; left: var(--edge); bottom: var(--edge); display: flex; flex-direction: column; gap: 4px; }
.project-page-index .project-link { font-size: 13px; }
.project-page-index .project-number { color: var(--muted); }
.project-page-index .project-link.is-active span:first-child { text-decoration: underline; text-underline-offset: 4px; transform: none; }

.not-found-copy { padding: 22vh 16%; }
.not-found-copy h1 { font-size: clamp(38px, 6vw, 84px); letter-spacing: -.06em; font-weight: 500; }
.not-found-copy a { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 900px) {
  :root { --edge: 18px; }
  .main-nav { display: none; }
  .menu-button { display: none; }
  .mobile-menu, .mobile-menu.is-open { position: fixed; z-index: 20; top: 22px; right: var(--edge); bottom: auto; left: auto; display: block; visibility: visible; opacity: 1; background: transparent; transition: none; }
  .mobile-menu-inner { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding: 0; font-size: 14px; line-height: 1.15; letter-spacing: 0; }
  .home-page .mobile-menu, .home-page .mobile-menu.is-open { color: #fff; }
  .home-meta { display: none !important; }
  .home-scroll { right: var(--edge); }
  .works-page, .text-page, .about-page, .contact-page, .not-found-page, .prints-page { padding: 100px var(--edge) 40px; overflow: visible; }
  .works-intro { margin: 0 0 45px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, var(--works-gap)) 20px; padding: 0 0 30px; }
  .work-card-1, .work-card-2, .work-card-3, .work-card-4, .work-card-5, .work-card-6 { grid-column: auto; margin-top: 0; }
  .work-card-image img { aspect-ratio: var(--works-thumb-ratio); }
  .works-layout-two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; }
  .works-layout-masonry { column-count: 2; column-gap: 20px; padding-inline: 0; }
  .works-layout-masonry .work-card { margin-bottom: clamp(28px, 5vw, var(--works-gap)); }
  .prints-intro { margin: 0 0 46px; }
  .prints-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 16px; padding-bottom: 40px; }
  .print-detail-page { padding: 100px var(--edge) 80px; overflow: visible; }
  .print-detail-layout { grid-template-columns: 1fr; gap: 28px; }
  .print-detail-back { margin-bottom: 0; }
  .print-detail-info { padding-top: 0; }
  .text-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; padding: 9vh 0 5vh; }
  .text-copy { max-width: 560px; font-size: clamp(34px, 8vw, 58px); }
  .text-copy .text-signature { margin-top: 85px; }
  .about-layout { min-height: 0; }
  .about-image img { width: 100%; max-height: 58svh; }
  .about-copy h1 { font-size: clamp(38px, 10vw, var(--about-heading-size)); }
  .contact-layout h1 { font-size: clamp(38px, 10vw, 64px); }
  .contact-layout { padding-top: 10vh; }
  .project-page { padding: 100px var(--edge) 60px; overflow: visible; }
  .project-layout { min-height: 0; display: block; }
  .project-stage-wrap { width: 100%; margin-left: 0; margin-right: auto; }
  .photo-stage { height: calc(100svh - 405px); min-height: 230px; justify-content: flex-start; }
  .project-photo, .project-photo-secondary { object-position: left center; }
  .project-caption { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .project-caption-description { grid-column: 1 / -1; grid-row: 2; }
  .project-caption-count { grid-column: 2; grid-row: 1; }
  .project-page-index { position: static; margin-top: 48px; padding-bottom: 8px; }
}

@media (max-width: 520px) {
  .home-projects { bottom: 18px; }
  .home-scroll { display: none; }
  .works-grid { gap: clamp(28px, 8vw, var(--works-gap)) 12px; }
  .works-layout-masonry { column-gap: 12px; }
  .work-card-caption { font-size: 12px; }
  .photo-thumbs { margin-top: 20px; }
  .project-page-index { font-size: 12px; }
  .project-page-index .project-link { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
