@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
:root {
  --paper: #f5f3ee; --ink: #292923; --muted: #65645c; --line: #89877d; --accent: #444c39;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Manrope', Arial, sans-serif;
  --gutter: clamp(24px, 4vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled, button[aria-disabled="true"] { opacity: .3; cursor: default; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.04em; font-variation-settings: 'SOFT' 20, 'WONK' 0; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #d5dcc8; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: var(--ink); color: var(--paper); z-index: 1000; }
.skip-link:focus { top: 12px; }
.site-header { margin: 0 var(--gutter); min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: block; flex: none; }
.wordmark > span { display: block; font: 400 44px/1.08 var(--serif); letter-spacing: -.045em; font-variation-settings: 'SOFT' 20, 'WONK' 0; white-space: nowrap; }
.wordmark small { display: block; font-size: 12px; line-height: 18px; margin-top: 6px; }
.site-header nav { display: flex; gap: 32px; align-items: center; font-size: 14px; }
.site-header nav a { position: relative; min-height: 44px; display: flex; align-items: center; }
.site-header nav a[aria-current]::after { content: ''; position: absolute; bottom: 7px; left: 0; right: 0; border-bottom: 1px solid currentColor; }
.eyebrow { font-size: 14px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 32px; min-height: 44px; font-size: 15px; border-bottom: 1px solid var(--ink); }
.site-footer { margin: 4px var(--gutter) 0; padding: 0 0 16px; color: var(--muted); font-size: 12px; }
/* Only this region scrolls horizontally; photographs retain their proportions. */
.portfolio-heading { margin: 0 var(--gutter); min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); }
.portfolio-heading h1:not(.sr-only) { font: 400 14px/1.5 var(--sans); letter-spacing: 0; }
.selection-note { font-size: 12px; }
.photo-sequence {
  --photo-gap: 24px;
  --photo-height: min(640px, max(160px, calc(100dvh - 260px)), calc((100vw - 2 * var(--gutter) - 28px) / var(--widest-photo-ratio, .666667)));
  display: flex; position: relative; gap: var(--photo-gap); margin: 0 var(--gutter); padding: 4px 0 10px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: #aaa69b transparent;
}
.photo-sequence:focus-visible { outline-offset: 2px; }
.portfolio-frame { flex: 0 0 auto; scroll-snap-align: start; }
.photo-open { display: block; }
.photo-open:focus-visible { outline-offset: -4px; outline-color: var(--paper); box-shadow: 0 0 0 2px var(--ink); }
.portfolio-frame img { height: var(--photo-height); width: auto; max-width: none; object-fit: contain; }
.gallery-toolbar { margin: 8px var(--gutter) 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.gallery-hint { color: var(--muted); font-size: 13px; }
.gallery-contact { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.gallery-contact span { flex: none; }
.gallery-navigation { display: flex; align-items: center; gap: 14px; justify-self: end; }
.gallery-navigation button { border: 0; background: transparent; width: 44px; height: 44px; padding: 0; font: 400 29px/1 var(--sans); }
.gallery-navigation button:not([aria-disabled="true"]):hover { color: var(--accent); background: #e7e5de; border-radius: 50%; }
.gallery-count { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 58px; text-align: center; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); margin: 52px var(--gutter) 56px; align-items: start; }
.contact-intro .eyebrow { margin-bottom: 24px; }
.contact-intro h1 { font-size: clamp(46px, 4.6vw, 66px); }
.contact-intro > p:last-child { max-width: 325px; margin-top: 28px; font-size: 16px; }
.contact-workspace { min-width: 0; padding-top: 4px; }
.field { margin-bottom: 26px; min-width: 0; }
.field label { display: block; font-size: 14px; margin-bottom: 5px; }
.field label > span { color: var(--muted); font-size: 12px; }
.field input, .field textarea { width: 100%; max-width: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; padding: 10px 0; color: var(--ink); font-size: 16px; min-height: 48px; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field small { display: block; font-size: 12px; color: var(--muted); margin-top: 7px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--ink); color: var(--paper); padding: 13px 22px; border: 1px solid var(--ink); font-size: 14px; min-height: 48px; }
.primary-button:hover { background: var(--accent); color: var(--paper); }
.primary-button[aria-disabled="true"] { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; }
.prototype-note { max-width: 470px; margin-top: 30px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.prototype-note strong { font-weight: 500; }
.message-preview h2 { margin: 12px 0 24px; font-size: 36px; }
.draft-hint, .form-note { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.message-preview textarea { width: 100%; resize: vertical; min-height: 285px; border: 1px solid var(--line); padding: 16px; background: transparent; color: var(--ink); font-size: 15px; }
.preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.text-button { border: 0; background: transparent; padding: 12px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.whatsapp-note { margin-top: 16px; color: var(--muted); font-size: 13px; }
#copy-status { margin-top: 20px; color: var(--muted); font-size: 13px; }
.not-found { margin: 64px var(--gutter); }
.not-found h1 { font-size: clamp(42px, 5vw, 66px); margin: 24px 0 32px; }
#photo-dialog { position: fixed; inset: 0; margin: 0; border: 0; padding: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; background: #191b17; color: #f5f3ee; overflow: hidden; }
#photo-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
#photo-dialog::backdrop { background: #191b17; }
.lightbox-bar, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 24px; font-size: 13px; }
.lightbox-bar { padding-top: max(10px, env(safe-area-inset-top)); }
.lightbox-bar button, .lightbox-bottom button { background: transparent; color: inherit; border: 0; min-height: 44px; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
.lightbox-bar button span { font-size: 24px; margin-left: 12px; }
#lightbox-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 0 24px; touch-action: pan-y pinch-zoom; user-select: none; }
.lightbox-bottom { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
#photo-dialog :focus-visible { outline-color: #f5f3ee; outline-offset: -2px; }
@media (max-width: 1000px) { .form-row { grid-template-columns: 1fr; gap: 0; } .contact-layout { gap: 5vw; } .contact-intro h1 { font-size: 48px; } }
@media (max-width: 1000px) {
  .gallery-toolbar { grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 0; }
  .gallery-contact { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .gallery-navigation { grid-column: 2; grid-row: 1; }
}
@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .site-header { min-height: 108px; gap: 16px; }
  .wordmark > span { font-size: 34px; }
  .wordmark small { font-size: 11px; line-height: 16px; margin-top: 5px; }
  .site-header nav { gap: 18px; font-size: 13px; }
  .portfolio-heading { min-height: 40px; gap: 10px; }
  .portfolio-heading h1:not(.sr-only) { font-size: 12px; }
  .selection-note { font-size: 11px; }
  .photo-sequence { --photo-gap: 16px; --photo-height: min(580px, max(160px, calc(100dvh - 236px)), calc((100vw - 2 * var(--gutter) - 24px) * 1.5)); }
  .portfolio-frame { flex-basis: calc(100% - 24px); }
  .photo-open { width: 100%; height: var(--photo-height); display: flex; align-items: center; justify-content: center; }
  .portfolio-frame img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
  .gallery-toolbar { gap: 12px; }
  .gallery-hint { font-size: 12px; max-width: 140px; line-height: 1.5; }
  .gallery-navigation { gap: 5px; }
  .gallery-count { min-width: 50px; font-size: 12px; }
  .site-footer { margin-top: 12px; }
  .contact-layout { grid-template-columns: 1fr; margin-top: 28px; margin-bottom: 32px; gap: 38px; }
  .contact-intro .eyebrow { margin-bottom: 18px; }
  .contact-intro h1 { font-size: 46px; }
  .contact-intro > p:last-child { margin-top: 22px; }
  .contact-workspace { padding-top: 0; }
  .primary-button { width: 100%; }
  .preview-actions { gap: 12px; }
  .lightbox-bar { padding-left: 12px; padding-right: 12px; }
  #lightbox-image { padding: 0 12px; }
  .lightbox-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 8px 12px max(12px, env(safe-area-inset-bottom)); }
  .lightbox-bottom button:first-child { justify-self: start; }
  .lightbox-bottom button:last-child { justify-self: end; }
}
@media (max-width: 370px) {
  :root { --gutter: 16px; }
  .site-header { min-height: 100px; gap: 12px; }
  .wordmark > span { font-size: 29px; }
  .site-header nav { gap: 12px; font-size: 12px; }
  .portfolio-frame { flex-basis: calc(100% - 40px); }
  .gallery-hint { max-width: 124px; }
  .gallery-navigation { gap: 2px; }
  .contact-intro h1 { font-size: 39px; }
}
@media (max-height: 600px) and (min-width: 701px) {
  .site-header { min-height: 80px; }
  .wordmark > span { font-size: 34px; }
  .portfolio-heading { min-height: 32px; }
  .photo-sequence { --photo-height: min(640px, max(120px, calc(100dvh - 220px)), calc((100vw - 2 * var(--gutter) - 28px) / var(--widest-photo-ratio, .666667))); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Collections remain within the existing gallery heading, leaving images in charge. */
.collection-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 32px; }
.collection-list button { appearance: none; border: 0; background: transparent; padding: 12px 0; min-height: 44px; min-width: 44px; color: var(--muted); font: inherit; font-size: 13px; line-height: 20px; cursor: pointer; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.collection-list button[aria-pressed="true"] { color: var(--ink); text-decoration-line: underline; }
.collection-list button:hover { color: var(--ink); }
.gallery-empty, .noscript-gallery { margin: 20px var(--gutter); }
@media (max-width: 700px) {
  .collection-list { width: 100%; justify-content: space-between; gap: 0 12px; }
  .collection-list button { font-size: 12px; }
  .gallery-toolbar { row-gap: 0; }
  .photo-sequence { --photo-height: min(580px, max(120px, calc(100dvh - 284px)), calc((100vw - 2 * var(--gutter) - 40px) / var(--widest-photo-ratio, .666667))); }
  .portfolio-frame { flex-basis: calc(100% - 40px); }
}
@media (max-width: 370px) {
  .collection-list { gap: 0 10px; }
  .collection-list button { font-size: 11px; }
}
@media (max-height: 600px) and (min-width: 701px) {
  .site-header { min-height: 72px; }
  .photo-sequence { --photo-height: min(640px, max(100px, calc(100dvh - 216px)), calc((100vw - 2 * var(--gutter) - 28px) / var(--widest-photo-ratio, .666667))); }
  .gallery-toolbar { grid-template-columns: 1fr auto 1fr; margin-top: 4px; gap: 12px; }
  .gallery-contact { grid-row: 1; grid-column: 2; font-size: 11px; }
  .gallery-navigation { grid-row: 1; grid-column: 3; }
  .gallery-hint { font-size: 11px; }
  .site-footer { margin-top: 0; }
}
