:root {
  --ink: #1f211d;
  --paper: #f7f3ea;
  --bone: #ebe3d5;
  --sage: #8a927d;
  --sea: #2f6f73;
  --rust: #a15d3b;
  --charcoal: #30342f;
  --line: rgba(31, 33, 29, 0.18);
  --shadow: 0 12px 30px rgba(31, 33, 29, 0.12);
  --dark: #050505;
  --dark-panel: #11110f;
  --accent-warm: #d8d3ca;
  --dark-line: rgba(216, 211, 202, 0.24);
  --film-black: #070705;
  --film-paper: #f2eadb;
  --film-muted: rgba(242, 234, 219, 0.68);
  --film-hairline: rgba(242, 234, 219, 0.18);
  --header-height: 68px;
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: clip;
  touch-action: manipulation;
}

body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
  overflow-x: clip;
}

html.modal-open {
  overflow: hidden;
}

body.modal-open {
  position: fixed;
  top: var(--modal-scroll-y, 0);
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

body::before {
  content: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06) sepia(0.06);
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button,
input,
label {
  touch-action: manipulation;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding: 18px clamp(18px, 3.5vw, 42px);
  background: rgba(247, 243, 234, 0.9);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 1px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  font-weight: 700;
}

.brand small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-menu {
  position: relative;
  z-index: 1002;
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 32px;
  padding: 6px;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-backdrop {
  display: none;
}

.nav-check {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--rust);
}

.hero {
  position: relative;
  height: calc(100svh - var(--header-height));
  display: block;
  overflow: hidden;
  background: var(--paper);
  padding: 0;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.hero-frame {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(8px, 1.2vw, 16px);
  align-items: stretch;
  width: 100%;
  height: 100%;
  background: var(--paper);
}

.hero-profile,
.hero-squares figure {
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--bone);
}

.hero-profile {
  isolation: isolate;
  background: var(--paper);
}

.hero-profile::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--paper);
  pointer-events: none;
}

.hero-profile::after {
  content: none;
}

.hero-profile img,
.hero-squares img {
  height: 100%;
}

.hero-profile img {
  display: none;
  object-position: 50% 42%;
}

.hero-squares figure:nth-child(4) img {
  object-position: 50% 62%;
}

.hero-squares {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 0.8vw, 12px);
  min-width: 0;
  min-height: 0;
}

.hero-squares figure {
  min-width: 0;
  min-height: 0;
}

.hero-profile,
.hero-squares figure,
.service-media,
.print-grid figure,
.about-media img,
.about-page-media img,
.book-image {
  box-shadow: none;
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(28px, 4vw, 74px);
  right: auto;
  bottom: auto;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
  justify-items: start;
  align-items: center;
  width: min(86%, 620px);
  margin: 0;
  color: var(--ink);
  text-align: left;
}

.hero-content > div {
  width: 100%;
}

.magazine-title {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin: 0 0 clamp(12px, 1.8vw, 18px);
  color: var(--ink);
  text-transform: uppercase;
}

.magazine-title span {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(4.2rem, 10.8vw, 10.2rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.03em;
  text-shadow: none;
}

.magazine-title small {
  display: block;
  padding-top: 0;
  border-top: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.08rem, 2vw, 1.75rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-content h1,
.hero-content p {
  width: 100%;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}

.hero .eyebrow {
  color: var(--rust);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 560px;
  font-size: clamp(2rem, 3.8vw, 3.45rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.45rem);
  line-height: 1.05;
  color: var(--ink);
}

h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffaf0;
}

.hero .button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffaf0;
}

.button.secondary {
  background: transparent;
  color: inherit;
}

.hero .button.secondary {
  color: var(--ink);
}

.service-more {
  color: var(--ink);
}

.intro-band {
  padding: clamp(26px, 4vw, 46px) clamp(16px, 4vw, 48px);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  border-top: 0;
  border-bottom: 0;
}

.intro-band p {
  width: auto;
  max-width: 100%;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  line-height: 1.36;
}

.section {
  padding: clamp(34px, 5.4vw, 72px) clamp(16px, 3vw, 42px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0 13px;
}

.section-heading::after {
  content: "SUSO GARCIA / SELECTED WORK";
  flex: 0 0 auto;
  color: var(--sage);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#portfolio {
  display: none;
}

.portfolio-grid {
  column-count: 5;
  column-gap: clamp(12px, 1.6vw, 20px);
}

.work-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(12px, 1.6vw, 20px);
  break-inside: avoid;
  overflow: hidden;
  background: var(--bone);
  outline: 0;
}

.work-card:nth-child(4n + 2),
.work-card:nth-child(4n + 4) {
  margin-top: clamp(14px, 3vw, 42px);
}

.work-card:nth-child(9n + 5) {
  width: 84%;
  justify-self: end;
  margin-left: auto;
}

.work-card:nth-child(11n + 8) {
  width: 90%;
}

.work-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 220ms ease, transform 220ms ease;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 31, 27, 0.72);
  opacity: 0;
  transition: opacity 220ms ease;
}

.work-card div {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #fffaf0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.work-card:hover::after,
.work-card:focus-visible::after,
.work-card:hover div,
.work-card:focus-visible div {
  opacity: 1;
}

.work-card:hover div,
.work-card:focus-visible div {
  transform: translateY(0);
}

.work-card:hover img,
.work-card:focus-visible img {
  filter: saturate(0.8) contrast(0.9);
  transform: scale(1.015);
}

.work-card span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-card h3 {
  max-width: 13ch;
}

.work-card p {
  max-width: 28ch;
  margin: 7px 0 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.72rem;
  line-height: 1.38;
}

.services {
  background: transparent;
}

.service-sections {
  display: grid;
  grid-template-columns: 1fr;
  counter-reset: service;
  border-top: 1px solid var(--line);
}

.service-panel {
  position: relative;
  counter-increment: service;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(280px, 0.9fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 3.8vw, 42px) 0 clamp(22px, 3.8vw, 42px) clamp(34px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.service-panel::before {
  position: absolute;
  top: clamp(24px, 4vw, 46px);
  left: 0;
  content: counter(service, decimal-leading-zero);
  color: var(--sage);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  line-height: 1;
}

.service-panel > * {
  min-width: 0;
}

.service-panel h3 {
  max-width: 760px;
  font-size: clamp(1.45rem, 2.7vw, 2.65rem);
}

.service-panel p {
  max-width: 620px;
  margin-top: 10px;
}

.service-more {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.service-more:hover,
.service-more:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffaf0;
}

.service-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
}

.service-media img,
.service-media img:first-child,
.service-media img:last-child {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  object-fit: cover;
  background: var(--bone);
}

.service-panel:nth-child(even) {
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 0.78fr);
}

.service-panel:nth-child(even) > div:first-of-type {
  grid-column: 2;
  grid-row: 1;
}

.service-panel:nth-child(even) .service-media {
  grid-column: 1;
  grid-row: 1;
}

.service-panel p,
.prints-copy p,
.presets-copy p,
.book-copy p,
.contact p {
  font-size: 0.9rem;
  line-height: 1.62;
}

.gallery-modal {
  --modal-inset: 0px;
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sea) rgba(31, 33, 29, 0.12);
}

.gallery-modal::backdrop {
  background: rgba(20, 23, 19, 0.72);
  backdrop-filter: blur(8px);
}

.modal-shell {
  min-height: 100dvh;
  padding: 0 clamp(14px, 2vw, 24px) clamp(16px, 2.2vw, 28px);
}

.gallery-modal::-webkit-scrollbar {
  width: 10px;
}

.gallery-modal::-webkit-scrollbar-track {
  background: rgba(31, 33, 29, 0.1);
}

.gallery-modal::-webkit-scrollbar-thumb {
  background: var(--sea);
  border: 2px solid var(--paper);
}

.gallery-modal::-webkit-scrollbar-thumb:hover {
  background: var(--ink);
}

.modal-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 calc(clamp(14px, 2vw, 24px) * -1) 14px;
  padding: 11px clamp(14px, 2vw, 24px);
  background: rgba(247, 243, 234, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.modal-header .eyebrow {
  margin-bottom: 4px;
}

.modal-header h2 {
  max-width: 860px;
  font-size: clamp(1.05rem, 1.8vw, 2rem);
  line-height: 1.04;
}

.modal-close {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 9px 12px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--ink);
  color: #fffaf0;
}

.modal-wall {
  column-count: 6;
  column-gap: clamp(8px, 1vw, 14px);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(8px, 1vw, 14px);
  break-inside: avoid;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bone);
  cursor: zoom-in;
}

.presets-gallery-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(14px, 2vw, 26px);
  width: min(100%, 1180px);
  margin: 0 auto;
  column-count: initial;
}

.presets-gallery-wall .gallery-item {
  margin: 0;
}

.presets-gallery-wall .gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 5, 5, 0.96);
  color: #fffaf0;
}

.image-lightbox[open] {
  display: block;
}

.image-lightbox::backdrop {
  background: #050505;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(54px, 7vw, 78px) clamp(48px, 7vw, 92px);
  min-width: 0;
  min-height: 0;
  touch-action: pan-y;
}

.lightbox-image {
  display: block;
  max-width: calc(100vw - clamp(96px, 14vw, 184px));
  max-height: calc(100dvh - clamp(108px, 14vw, 156px));
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 2;
  border: 1px solid rgba(255, 250, 240, 0.42);
  background: rgba(5, 5, 5, 0.72);
  color: #fffaf0;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-close {
  top: 14px;
  right: 16px;
  height: 44px;
  padding: 10px 12px;
  font-size: 0.64rem;
}

.lightbox-nav {
  top: 50%;
  width: 44px;
  height: 54px;
  transform: translateY(-50%);
  font-size: 1.3rem;
  line-height: 1;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prints {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) 1.35fr;
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  padding: clamp(30px, 5vw, 58px) clamp(16px, 3vw, 42px);
  background: #f0eee5;
  border-top: 0;
  border-bottom: 0;
}

.prints-copy {
  max-width: 420px;
}

.prints-copy p:not(.eyebrow) {
  margin: 16px 0 0;
}

.prints-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
}

.prints-actions .service-more {
  margin-top: 0;
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.print-grid figure {
  margin: 0;
  padding: 8px;
  background: rgba(31, 33, 29, 0.04);
}

.print-grid img {
  aspect-ratio: 4 / 5;
  box-shadow: none;
}

.print-grid figcaption {
  margin-top: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
}

.presets {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(260px, 0.8fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  padding: clamp(34px, 5vw, 64px) clamp(16px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
}

.presets-media {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(130px, 0.68fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  height: min(38vw, 650px);
  min-width: 0;
}

.presets-media figure {
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: rgba(31, 33, 29, 0.04);
  box-shadow: none;
}

.presets-media .presets-feature {
  grid-row: 1 / -1;
}

.presets-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.presets-copy {
  max-width: 470px;
}

.presets-copy p:not(.eyebrow) {
  margin: 16px 0 20px;
}

.presets-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.presets-actions .service-more {
  min-height: 44px;
  margin-top: 0;
}

.button.primary.presets-buy {
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  border-color: var(--ink);
  color: #fffaf0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.button.primary.presets-buy:hover,
.button.primary.presets-buy:focus-visible {
  background: var(--rust);
  border-color: var(--rust);
}

.presets-actions span {
  flex-basis: 100%;
  color: var(--sage);
  font-size: 0.78rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  background: transparent;
}

.about-copy {
  max-width: 620px;
}

.about-copy p:not(.eyebrow) {
  font-size: 0.96rem;
  line-height: 1.68;
}

.about-copy p + p {
  margin-top: 14px;
}

.about-media {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 10px;
  align-items: end;
}

.about-media img {
  height: auto;
  background: var(--bone);
}

.about-media img:last-child {
  margin-bottom: clamp(28px, 6vw, 88px);
}

.about-page {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 58px) clamp(22px, 4vw, 48px);
  background: transparent;
}

.about-page-copy {
  max-width: 680px;
}

.about-page-copy h1 {
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 5.4rem);
}

.about-page-copy p:not(.eyebrow) {
  font-size: 1rem;
  line-height: 1.72;
}

.about-page-copy p + p {
  margin-top: 14px;
}

.about-page-copy .button {
  margin-top: 24px;
}

.about-page-media {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 10px;
  align-items: start;
}

.about-page-media img {
  height: auto;
  background: var(--bone);
}

.about-page-media img:first-child {
  grid-row: span 2;
}

.about-page-media img:nth-child(2) {
  margin-bottom: 0;
}

.books {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
}

.book-image {
  min-height: 360px;
}

.book-copy {
  max-width: 440px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(18px, 4vw, 44px);
  padding: clamp(30px, 5vw, 58px) clamp(16px, 3vw, 42px);
  background: var(--ink);
  color: #fffaf0;
  border-top: 0;
}

.contact .eyebrow {
  color: #e9c4a6;
}

.contact-panel {
  align-self: end;
  display: grid;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 240, 0.28);
}

.contact-panel a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.2vw, 2.2rem);
}

.instagram-icon {
  width: 0.92em;
  height: 0.92em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-panel > span {
  margin-top: 12px;
  color: rgba(255, 250, 240, 0.72);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(16px, 3vw, 42px);
  background: var(--ink);
  color: rgba(255, 250, 240, 0.68);
  border-top: 1px solid rgba(255, 250, 240, 0.16);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
  }

  .nav-toggle {
    position: fixed;
    z-index: 1003;
    top: 16px;
    right: 18px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 36px;
    padding: 6px;
    border: 1px solid var(--line);
    background: rgba(247, 243, 234, 0.9);
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .nav-menu .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: grid;
    align-content: start;
    justify-content: stretch;
    justify-items: stretch;
    gap: 18px;
    width: min(340px, 86vw);
    height: 100dvh;
    min-height: 100vh;
    overflow-y: auto;
    padding: calc(var(--header-height) + 34px) 18px 28px;
    background: var(--paper);
    color: var(--ink);
    border-left: 1px solid var(--line);
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 240ms ease, box-shadow 240ms ease;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: block;
    background: rgba(31, 33, 29, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
  }

  .nav-check:checked ~ .nav {
    box-shadow: -24px 0 54px rgba(31, 33, 29, 0.18);
    transform: translateX(0);
  }

  .nav-check:checked ~ .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-check:checked ~ .nav-toggle {
    border-color: var(--line);
    background: rgba(247, 243, 234, 0.94);
    color: var(--ink);
  }

  .nav a {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.86rem;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
  }

  .nav-check:checked ~ .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-check:checked ~ .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-check:checked ~ .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .prints,
  .presets,
  .about,
  .about-page,
  .books,
  .contact {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    column-count: 3;
    column-gap: 10px;
  }

  .work-card:nth-child(9n + 5),
  .work-card:nth-child(11n + 8) {
    width: 100%;
  }

  .print-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presets-media {
    max-width: 760px;
  }

  .book-image {
    min-height: 300px;
  }

  .service-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .service-panel:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .service-panel:nth-child(even) > div:first-of-type {
    grid-column: auto;
    grid-row: auto;
  }

  .service-panel:nth-child(even) .service-media {
    grid-column: 1;
    grid-row: auto;
  }

  .service-panel .service-media {
    grid-column: 1;
  }

  .modal-wall {
    column-count: 4;
  }

  .about-media {
    max-width: 680px;
  }

  .about-page-media {
    max-width: 760px;
  }

  .hero {
    height: auto;
    min-height: calc(100svh - var(--header-height));
    overflow: hidden;
  }

  .hero-frame {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(520px, 68svh) minmax(220px, 32vw);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-profile,
  .hero-squares figure {
    min-width: 0;
  }

  .hero-squares {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-squares figure:nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .hero-squares figure:nth-child(2) {
    grid-column: 3 / span 2;
    grid-row: 1;
  }

  .hero-squares figure:nth-child(3) {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .hero-squares figure:nth-child(4) {
    grid-column: 3 / span 2;
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  .site-header {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .nav-menu .nav {
    width: min(300px, 86vw);
  }

  .hero {
    display: block;
    min-height: 0;
    gap: 0;
    padding: 0;
  }

  .hero-frame {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(520px, 68svh) auto;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    min-width: 0;
  }

  .hero-squares {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 8px;
  }

  .hero-squares figure:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1;
  }

  .hero-squares figure:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 1;
  }

  .hero-squares figure:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 1;
  }

  .hero-squares figure:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: 1;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 14px;
    position: absolute;
    top: 50%;
    left: 22px;
    right: auto;
    bottom: auto;
    transform: translateY(-50%);
    width: calc(100vw - 44px);
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .hero-content > div {
    position: static;
    width: 100%;
    transform: none;
  }

  .hero-content > div:first-child {
    width: 100%;
  }

  .hero-content > div:last-child {
    padding-top: 2px;
  }

  .magazine-title {
    gap: 6px;
    margin-bottom: 9px;
  }

  .magazine-title span {
    font-size: clamp(3.7rem, 18.5vw, 5.25rem);
    line-height: 0.84;
  }

  .magazine-title small {
    font-size: clamp(0.95rem, 4.6vw, 1.22rem);
    letter-spacing: -0.02em;
  }

  .hero-content h1 {
    position: static;
    width: 100%;
    transform: none;
    font-size: clamp(1.12rem, 4.75vw, 1.36rem);
    line-height: 1.08;
    text-wrap: auto;
  }

  .hero-content p:not(.eyebrow) {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    font-size: 0.78rem;
    line-height: 1.34;
    text-wrap: auto;
  }

  .intro-band p {
    max-width: 32ch;
    font-size: 1rem;
    line-height: 1.38;
    text-wrap: auto;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    width: 100%;
    gap: 8px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
  }

  .section-heading {
    display: block;
  }

  .section-heading::after {
    display: block;
    margin-top: 10px;
  }

  .presets {
    padding-right: 16px;
    padding-left: 16px;
    gap: 18px;
  }

  .presets-media {
    order: 2;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: auto;
    gap: 8px;
  }

  .presets-media .presets-feature {
    grid-row: 1 / -1;
  }

  .presets-media figure {
    aspect-ratio: 1 / 1;
  }

  .presets-media .presets-feature {
    aspect-ratio: 1170 / 2080;
  }

  .presets-copy {
    order: 1;
  }

  .presets-more,
  .presets-actions .button {
    width: 100%;
  }

  .presets-actions {
    align-items: flex-start;
  }

  .portfolio-grid {
    column-count: 2;
    column-gap: 8px;
  }

  .work-card:nth-child(4n + 2),
  .work-card:nth-child(4n + 4) {
    margin-top: 22px;
  }

  .work-card div {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .work-card span {
    font-size: 0.5rem;
  }

  .work-card h3 {
    font-size: 0.95rem;
  }

  .work-card p {
    font-size: 0.66rem;
    line-height: 1.3;
  }

  .service-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }

  .service-panel::before {
    position: static;
    display: block;
    margin-bottom: 2px;
  }

  .service-panel:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .service-panel:nth-child(even) > div:first-of-type,
  .service-panel:nth-child(even) .service-media {
    grid-column: 1;
    grid-row: auto;
  }

  .service-panel .service-media {
    grid-column: 1;
  }

  .service-panel h3 {
    font-size: 1.22rem;
  }

  .service-panel .service-more {
    margin-bottom: 16px;
  }

  .modal-header {
    display: grid;
    gap: 8px;
  }

  .modal-close {
    position: fixed;
    z-index: 10;
    left: 14px;
    right: auto;
    bottom: 14px;
    display: flex;
    width: calc(100vw - 28px);
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 250, 240, 0.42);
    background: rgba(5, 5, 5, 0.94);
    justify-self: start;
  }

  .modal-shell {
    padding-bottom: 84px;
  }

  .modal-wall {
    column-count: 2;
    column-gap: 8px;
  }

  .lightbox-stage {
    padding: 18px 14px 112px;
  }

  .lightbox-close {
    top: auto;
    right: auto;
    bottom: 14px;
    left: 50%;
    width: auto;
    min-width: 86px;
    transform: translateX(-50%);
  }

  .lightbox-image {
    max-width: calc(100vw - 28px);
    max-height: calc(100dvh - 130px);
  }

  .lightbox-nav {
    top: auto;
    bottom: 14px;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .lightbox-prev {
    left: 14px;
  }

  .lightbox-next {
    right: 14px;
  }

  .lightbox-counter {
    bottom: 68px;
  }

  .modal-wall img {
    margin-bottom: 8px;
  }

  .service-media {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-copy p:not(.eyebrow) {
    font-size: 0.9rem;
  }

  .about-media {
    grid-template-columns: 1fr 0.82fr;
    gap: 6px;
  }

  .about-media img:last-child {
    margin-bottom: 32px;
  }

  .about-page {
    padding-top: 32px;
  }

  .about-page-copy h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .about-page-copy p:not(.eyebrow) {
    font-size: 0.92rem;
  }

  .about-page-media {
    grid-template-columns: 1fr 0.82fr;
    gap: 6px;
  }

  .about-page-media img:nth-child(2) {
    margin-bottom: 28px;
  }

  .print-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .button {
    width: 100%;
  }
}
