/* Semajes Studio 0.8 — The Living Contact Sheet
   Photographer-first editorial direction. Interface: black / white only.
   Photography remains in its source color treatment. */

:root {
  --ink: #000;
  --paper: #fff;
  --line: #000;
  --serif: Didot, "Bodoni 72", "Bodoni MT", "Iowan Old Style", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --max: 1680px;
}

html { background: #fff; scroll-padding-top: 28px; }
body { background: #fff; color: #000; font-family: var(--sans); letter-spacing: -.008em; }
::selection { background: #000; color: #fff; }

.review-bar {
  height: 28px;
  position: relative;
  z-index: 70;
  background: #000;
  color: #fff;
  border-bottom: 1px solid #fff;
}

.site-header {
  position: absolute;
  inset: 28px 0 auto;
  top: 28px;
  height: 88px;
  z-index: 60;
  padding: 0 clamp(20px, 3.5vw, 64px);
  background: transparent;
  color: #fff;
  border-bottom: 1px solid #fff;
}

.brand b {
  font-family: var(--serif);
  font-size: clamp(25px, 2.4vw, 38px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.035em;
  text-transform: none;
}

.brand b::after { content: none; }
.site-nav { gap: clamp(18px, 2.5vw, 42px); font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: .19em; }
.site-nav a::after { background: #fff; }

.hero {
  display: block;
  height: calc(100svh - 28px);
  min-height: 680px;
  max-height: none;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff;
  border-bottom: 1px solid #fff;
  isolation: isolate;
}

.hero::before,
.hero::after { content: none; }

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
  background: #000;
}

.hero-image::before,
.hero-image::after { content: none; }

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: none;
  transform: scale(1.002);
  animation: contact-sheet-enter 1.2s cubic-bezier(.2,.7,.2,1) both;
}

.hero:hover .hero-image img { transform: scale(1.015); filter: none; }
.hero-image figcaption { display: none; }

.hero-wash {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0000 30%, #000 115%);
}

.hero-content {
  position: absolute;
  left: clamp(20px, 3.5vw, 64px);
  right: clamp(20px, 3.5vw, 64px);
  bottom: clamp(70px, 9vh, 118px);
  width: auto;
  max-width: none;
  padding: 0;
}

.hero .eyebrow {
  color: #fff;
  font-size: 9px;
  font-family: var(--mono);
  letter-spacing: .19em;
  margin: 0 0 18px;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(82px, 16vw, 270px);
  font-weight: 400;
  font-style: normal;
  line-height: .7;
  letter-spacing: -.045em;
  text-transform: none;
}

.hero-copy {
  margin: 34px 0 0;
  max-width: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hero-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 28px;
  margin: 0;
}

.hero-actions .button,
.hero-actions .text-link {
  min-height: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 9px;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-actions .button:hover,
.hero-actions .button:focus-visible { background: transparent; color: #fff; transform: none; }
.image-caption { left: auto; right: clamp(20px, 3.5vw, 64px); bottom: 24px; color: #fff; font-family: var(--mono); font-size: 8px; letter-spacing: .14em; }
.image-caption span { color: #fff; margin-right: 16px; }
.scroll-cue { display: none; }

.section { padding: clamp(88px, 10vw, 170px) clamp(20px, 5vw, 88px); }
.section-number { margin-bottom: 38px; color: #000; font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .16em; }

.statement {
  max-width: none;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid #000;
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 2.5vw, 44px);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
}

.statement h2 {
  grid-column: 1 / span 6;
  align-self: start;
  font-family: var(--serif);
  font-size: clamp(54px, 7.7vw, 132px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: none;
}

.statement h2 em { color: #000; font-weight: 400; font-style: italic; }
.statement-photo { grid-column: 7 / span 3; margin: 0; }
.statement-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 44% center; }
.statement-photo figcaption { margin-top: 10px; color: #000; font-family: var(--mono); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }

.statement-grid > .statement-copy {
  grid-column: 10 / span 3;
  border: 0;
  padding: 0 0 2px;
}

.statement-grid > .statement-copy p { color: #000; font-family: var(--sans); font-size: 12px; line-height: 1.85; letter-spacing: .005em; }
.signature { color: #000; font-family: var(--serif); font-size: 22px; font-style: italic; letter-spacing: -.02em; }

.work { background: #000; color: #fff; border-bottom: 1px solid #fff; }
.work .section-number { color: #fff; }
.section-heading { max-width: var(--max); margin: 0 auto clamp(72px, 9vw, 150px); padding: 0 0 28px; border-bottom: 1px solid #fff; align-items: end; }
.section-heading h2 { color: #fff; font-family: var(--serif); font-size: clamp(58px, 8vw, 136px); font-weight: 400; line-height: .84; letter-spacing: -.045em; text-transform: none; }
.section-heading h2 em { color: #fff; font-weight: 400; font-style: italic; }
.filters { max-width: 460px; justify-content: flex-end; gap: 12px 22px; }
.filter { padding: 5px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; color: #fff; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.filter.is-active { border-color: #fff; background: transparent; color: #fff; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(70px, 10vw, 175px) clamp(16px, 2.4vw, 42px);
  max-width: var(--max);
  margin: 0 auto;
  align-items: start;
}

.story:nth-child(n) { min-height: 0; margin: 0; aspect-ratio: 4 / 3; }
.story:nth-child(1) { grid-column: 1 / span 7; }
.story:nth-child(2) { grid-column: 9 / span 4; margin-top: 12vw; aspect-ratio: 3 / 4; }
.story:nth-child(3) { grid-column: 7 / span 6; }
.story:nth-child(4) { grid-column: 1 / span 5; margin-top: 8vw; aspect-ratio: 4 / 5; }
.story:nth-child(5) { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.story:nth-child(6) { grid-column: 2 / span 5; aspect-ratio: 4 / 5; }
.story:nth-child(7) { grid-column: 8 / span 5; margin-top: 14vw; }
.story:nth-child(8) { grid-column: 1 / span 4; aspect-ratio: 3 / 4; }
.story:nth-child(9) { grid-column: 6 / span 7; aspect-ratio: 16 / 10; }
.story:nth-child(10) { grid-column: 4 / span 6; }

.story-button { display: block; width: 100%; height: 100%; min-height: 0; background: #000; color: #fff; overflow: visible; }
.story-image { inset: 0 0 58px; bottom: 58px; filter: none; background-color: #000; }
.story-button::after { display: none; }
.story-button:hover .story-image,
.story-button:focus-visible .story-image { filter: none; transform: scale(1.012); }
.story-index { top: 12px; left: 12px; padding: 5px 6px; background: #000; color: #fff; font-family: var(--mono); font-size: 8px; }
.story-meta { left: 0; right: 0; bottom: 0; height: 44px; padding: 12px 0 0; border-top: 1px solid #fff; background: #000; color: #fff; align-items: flex-start; }
.story-meta b { color: #fff; font-family: var(--serif); font-size: clamp(19px, 2vw, 30px); font-weight: 400; letter-spacing: -.02em; }
.story-meta small { color: #fff; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.story-grid.is-filtered .story:not([hidden]) { grid-column: auto / span 6; margin-top: 0; aspect-ratio: 4 / 3; }
.editorial-note { max-width: var(--max); margin: 90px auto 0; color: #fff; font-family: var(--mono); font-size: 9px !important; letter-spacing: .1em; text-transform: uppercase; }

.collect { background: #fff; color: #000; border-bottom: 1px solid #000; }
.collect h2 { color: #000; font-family: var(--serif); font-size: clamp(54px, 7vw, 112px); font-weight: 400; line-height: .88; letter-spacing: -.045em; text-transform: none; }
.collect-copy > p:not(.section-number):not(.microcopy) { color: #000; }
.collect-art::before { content: none; }
.collect-art::before,
.collect-art > small,
.print-frame span,
.microcopy { color: #000 !important; }
.print-frame,
.print-frame.frame-natural,
.print-frame.frame-unframed { background: #fff; border-color: #000; box-shadow: 18px 18px 0 #000; }
.configurator,
.configurator select,
.commission-form input,
.commission-form select,
.commission-form textarea { border-color: #000; }
.price-lock { border-color: #000; }
.price-lock b { color: #000; }
.button-dark { background: #000; color: #fff; }

.commissions { background: #000; color: #fff; border-bottom: 1px solid #fff; }
.commissions::before { content: none; }
.commissions .section-number,
.commission-intro > p:not(.section-number) { color: #fff; }
.commissions h2 { color: #fff; font-family: var(--serif); font-size: clamp(54px, 7vw, 112px); font-weight: 400; line-height: .9; letter-spacing: -.045em; text-transform: none; }
.commission-intro ul,
.commission-intro li { border-color: #fff; }
.commission-form { background: #fff; color: #000; border: 1px solid #fff; box-shadow: none; }
.commission-form .button { background: #000; color: #fff; }

.client-access { background: #fff; color: #000; border-bottom: 1px solid #000; }
.client-copy h2 { color: #000; font-family: var(--serif); font-size: clamp(54px, 7vw, 112px); font-weight: 400; line-height: .9; letter-spacing: -.045em; text-transform: none; }
.client-copy > p:not(.section-number):not(.form-status),
.form-status,
.access-code input::placeholder { color: #000; }
.access-code input { color: #000; border-color: #000; }
.client-window { background: #000; color: #fff; border: 1px solid #000; box-shadow: 18px 18px 0 #000; }

.closing {
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 0;
  padding: 0;
  background: #000;
  color: #fff;
  border-bottom: 1px solid #fff;
}

.closing::before { content: none; }
.closing-image { position: relative; min-height: 94vh; margin: 0; overflow: hidden; border-right: 1px solid #fff; }
.closing-image img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; filter: none; }
.closing-image figcaption { position: absolute; left: 20px; bottom: 18px; padding: 6px 8px; background: #000; color: #fff; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.closing-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 105px); }
.closing .eyebrow { color: #fff; }
.closing h2 { margin: 25px 0 0; color: #fff; font-family: var(--serif); font-size: clamp(68px, 9vw, 155px); font-weight: 400; line-height: .78; letter-spacing: -.045em; text-transform: none; }
.closing h2 em { color: #fff; font-weight: 400; font-style: italic; }
.round-link { position: relative; inset: auto; width: 140px; height: 140px; margin-top: 62px; border: 1px solid #fff; background: #fff; color: #000; font-weight: 400; letter-spacing: .08em; }
.round-link:hover { background: #000; color: #fff; transform: rotate(4deg); }

.site-footer { background: #000; color: #fff; border: 0; }
.site-footer p span,
.site-footer > small { color: #fff; }

.art-dialog,
.drawer { background: #fff; color: #000; }
.review-drawer { background: #000; color: #fff; }
.review-drawer p,
.readiness-list span { color: #fff; }
.dialog-image { background-color: #000; }

@keyframes contact-sheet-enter {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1.002); }
}

@media (max-width: 980px) {
  .site-header { height: 74px; }
  .site-nav { top: 74px; background: #000; color: #fff; }
  .site-nav a { border-color: #fff; }
  .menu-button span:not(.sr-only) { background: #fff; }
  .hero { min-height: 720px; }
  .hero h1 { font-size: clamp(86px, 18vw, 170px); }
  .hero-actions { position: static; margin-top: 34px; }
  .statement-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .statement h2 { grid-column: 1 / -1; }
  .statement-photo { grid-column: 1 / span 4; }
  .statement-grid > .statement-copy { grid-column: 5 / span 4; align-self: end; }
  .story-grid { gap-block: 80px; }
  .story:nth-child(n) { grid-column: auto / span 6; margin-top: 0; }
  .story:nth-child(5) { grid-column: 1 / -1; }
  .collect,
  .commissions,
  .client-access { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .review-bar { padding-inline: 14px; }
  .site-header { padding-inline: 16px; }
  .brand b { font-size: 29px; }
  .hero { height: calc(100svh - 28px); min-height: 640px; }
  .hero-image img { object-position: 61% center; }
  .hero-content { left: 16px; right: 16px; bottom: 64px; }
  .hero .eyebrow { margin-bottom: 13px; }
  .hero h1 { font-size: clamp(69px, 24vw, 112px); line-height: .76; }
  .hero-copy { margin-top: 24px; font-size: 8px; letter-spacing: .15em; }
  .hero-actions { gap: 18px; flex-direction: row; max-width: none; }
  .hero-actions .button,
  .hero-actions .text-link { font-size: 8px; }
  .image-caption { display: block; right: 16px; bottom: 16px; }
  .section { padding: 78px 18px; }
  .section-number { margin-bottom: 28px; }
  .statement-grid { grid-template-columns: 1fr; gap: 42px; }
  .statement h2,
  .statement-photo,
  .statement-grid > .statement-copy { grid-column: 1; }
  .statement h2 { font-size: clamp(50px, 15vw, 76px); }
  .statement-photo { width: 72%; justify-self: end; }
  .section-heading { margin-bottom: 72px; align-items: flex-start; }
  .section-heading h2 { font-size: clamp(52px, 15vw, 78px); }
  .filters { justify-content: flex-start; gap: 10px 18px; }
  .story-grid { display: block; }
  .story:nth-child(n),
  .story-grid.is-filtered .story:not([hidden]) { width: 100%; margin: 0 0 74px; aspect-ratio: 4 / 5; }
  .story:nth-child(3n) { width: 84%; margin-left: auto; aspect-ratio: 4 / 3; }
  .story:nth-child(4n) { width: 86%; aspect-ratio: 3 / 4; }
  .story:nth-child(5) { width: 100%; aspect-ratio: 4 / 3; }
  .story-image { bottom: 64px; }
  .story-meta { height: 50px; flex-direction: column; gap: 2px; }
  .story-meta b { font-size: 21px; }
  .editorial-note { margin-top: 10px; }
  .collect h2,
  .commissions h2,
  .client-copy h2 { font-size: clamp(52px, 15vw, 78px); }
  .closing { display: block; min-height: 0; }
  .closing-image { min-height: 72svh; border-right: 0; border-bottom: 1px solid #fff; }
  .closing-copy { min-height: 78svh; padding: 70px 20px; }
  .closing h2 { font-size: clamp(70px, 20vw, 100px); }
  .round-link { width: 124px; height: 124px; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image img { animation: none; transform: none !important; }
}

/* Phone and tablet fit: let content grow rather than clipping a fixed canvas. */
@media (max-width: 980px) {
  .site-header { height: 74px; }
  .menu-button { display: grid; }
  .site-nav {
    position: absolute;
    inset: 74px 0 auto;
    display: grid;
    gap: 0;
    padding: 1rem 1.25rem;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  .site-nav:not(.is-open) { visibility: hidden; pointer-events: none; }
  .site-nav.is-open { visibility: visible; pointer-events: auto; transform: scaleY(1); opacity: 1; }
  .site-nav a { padding: 1rem 0; border-bottom: 1px solid #fff; }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    height: auto;
    min-height: calc(100vh - 28px);
    min-height: calc(100svh - 28px);
    padding: 110px 0 max(64px, env(safe-area-inset-bottom));
  }
  .hero-image { aspect-ratio: auto; height: 100%; min-height: 0; }
  .hero-content {
    position: relative;
    inset: auto;
    width: auto;
    min-width: 0;
    align-self: stretch;
    margin: 0 clamp(16px, 3.5vw, 34px);
    padding: 0;
    border: 0;
  }
  .hero h1 { line-height: 1; }
  .hero-copy { max-width: 100%; line-height: 1.5; }
  .hero-actions { flex-wrap: wrap; gap: 12px 22px; max-width: 100%; }
  .hero-actions .button,
  .hero-actions .text-link { min-height: 44px; font-size: 9px; gap: 12px; }
  .image-caption { left: auto; right: 16px; bottom: 16px; writing-mode: horizontal-tb; }

  .section > *, .field-row > *, .statement-grid > * { min-width: 0; }
  .print-frame { max-width: 100%; }
  .configurator select, .commission-form input, .commission-form select,
  .commission-form textarea, .access-code input { min-width: 0; max-width: 100%; font-size: 16px; }
  .art-dialog { max-height: 100svh; }
  .drawer { overflow-wrap: anywhere; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: clamp(64px, 23vw, 112px); }
  .hero-actions { margin-top: 24px; }
  .statement h2 { font-size: clamp(42px, 13vw, 76px); }
  .statement h2, .section-heading h2, .collect h2,
  .commissions h2, .client-copy h2, .closing h2 { overflow-wrap: anywhere; }
  .editorial-note, .microcopy { overflow-wrap: anywhere; }
  .toast { width: max-content; max-width: calc(100% - 32px); }
  .toast:empty { visibility: hidden; }
  .art-dialog {
    width: calc(100% - 24px);
    height: auto;
    max-height: calc(100svh - 24px);
    margin: 12px auto;
  }
}

@media (max-width: 980px) and (max-height: 500px) {
  .hero { padding-top: 94px; padding-bottom: 44px; }
  .hero h1 { font-size: clamp(56px, 11vw, 90px); }
  .hero .eyebrow { margin-bottom: 8px; }
  .hero-copy { margin-top: 12px; }
  .hero-actions { margin-top: 12px; }
}

/* One cover composition at every size: photograph behind the title and links. */
.toast:empty { visibility: hidden; }
@media (max-width: 980px) {
  .hero-image img { object-position: center 52%; }
}
