:root {
  --ink: #111111;
  --paper: #F4F1EA;
  --muted: #6B675F;
  --line: #D9D4C8;
  --accent: #FF5A1F;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: Syne, Inter, sans-serif; line-height: 1.02; margin: 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { height: 52px; width: auto; display: block; }
.wordmark { font: 800 22px/0.9 Syne, sans-serif; letter-spacing: 0.06em; display: flex; flex-direction: column; }
.wordmark small { font-size: 10px; font-weight: 600; letter-spacing: 0.4em; }
.nav nav { display: flex; gap: clamp(12px, 3vw, 32px); align-items: center; font-weight: 500; font-size: 15px; }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: var(--accent); }
.pill { border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 16px; }
.pill:hover { background: var(--ink); color: var(--paper) !important; }

/* Sections */
.hero, .section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vw, 140px) clamp(16px, 4vw, 48px); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 20px; }
.hero h1 { font-size: clamp(44px, 8vw, 112px); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { max-width: 560px; font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin: 32px 0 40px; }
.cta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.btn { background: var(--ink); color: var(--paper); text-decoration: none; padding: 16px 28px; border-radius: 999px; font-weight: 600; }
.btn:hover { background: var(--accent); }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(36px, 6vw, 72px); font-weight: 800; }

/* Photo grid; tiles show a branded placeholder until a photo is dropped in */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; grid-auto-flow: dense; gap: 12px; }
.tile {
  margin: 0; overflow: hidden; border-radius: 6px; position: relative;
  background:
    url("assets/logo-tile.png") center / 96px no-repeat,
    linear-gradient(135deg, #E5E0D4, #CFC8B8);
}
.tile:nth-child(3n+2) { background-color: #2A2826; background-image: url("assets/logo-tile-light.png"), linear-gradient(135deg, #3A3733, #1D1C1A); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.dlg-img:hover img { transform: none; }
.t-tall { grid-row: span 2; }
.t-wide { grid-column: span 2; }

/* Print shop */
#prints .section-head { margin-bottom: 40px; }
#prints { max-width: 1480px; padding-top: clamp(24px, 3vw, 40px); }
.hero { padding-bottom: clamp(32px, 4vw, 56px); }
.prints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-right: 8px; }
.prints::-webkit-scrollbar { width: 6px; }
.prints::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
/* Size the frame so all nine fit on screen at once */
@media (min-width: 761px) { .prints, #prints .section-head { width: min(100%, calc((74vh - 40px) * 4 / 3 + 48px)); margin-left: auto; margin-right: auto; } }
/* Soft fade at the bottom while more prints are below */
.prints.more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); }
.print { all: unset; cursor: zoom-in; display: block; }
.print:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.print-img { display: block; aspect-ratio: 4 / 3; }
/* Real photos are shown whole, matted, never cropped */
.tile.has-img { background: #E9E5DC; }
.tile.has-img img { object-fit: contain; padding: 4%; }
.print:hover .tile.has-img img { transform: scale(1.02); }
.dlg-img.has-img { background: #1A1918; }
.dlg-img.has-img img { padding: 16px; }
.step { position: absolute; top: 50%; z-index: 1; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: transparent; color: rgba(244,241,234,.35); font-size: 34px; line-height: 1; padding-bottom: 4px; cursor: pointer; transition: color .2s; }
.step:hover, .step:focus-visible { color: rgba(244,241,234,.9); }
.step:focus { outline: none; }
.step.prev { left: 14px; }
.step.next { right: 14px; }

.note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

.dlg { border: 0; padding: 0; border-radius: 10px; width: min(1400px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper); color: var(--ink); display: none; }
.dlg[open] { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.dlg::backdrop { background: rgba(17,17,17,.6); backdrop-filter: blur(4px); }
.dlg-img { min-height: min(78vh, 760px); border-radius: 0; }
.dlg-body { padding: 28px; font-size: 14px; }
.dlg[open] { position: fixed; }
.dlg-title { font-size: 20px; margin-bottom: 2px; padding-right: 40px; }
.close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.opt-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 18px 0 8px; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.size-select { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 36px 10px 12px; font: 500 13px Inter, sans-serif; cursor: pointer; }
.size-select:hover, .size-select:focus { border-color: var(--ink); outline: none; }
.dlg-body { display: flex; flex-direction: column; justify-content: center; }
.size-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.size-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.size-name { font-weight: 600; font-size: 13px; display: flex; flex-direction: column; }
.size-name small { font-weight: 400; font-size: 11px; color: var(--muted); }
.price-opt { min-width: 80px; border: 1.5px solid var(--line); background: transparent; color: inherit; border-radius: 7px; padding: 4px 9px; font: 600 12.5px Inter, sans-serif; cursor: pointer; text-align: left; display: flex; flex-direction: column; }
.price-opt small { font-weight: 500; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-opt:hover:not(:disabled) { border-color: var(--ink); }
.price-opt.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.price-opt.on small { color: #B9B4AA; }
.price-opt:disabled { cursor: default; color: var(--muted); font-weight: 500; font-size: 11px; border-style: dashed; }
.dlg-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 12px; }
.dlg-choice { color: var(--muted); font-size: 12.5px; }
.dlg-price { font: 800 22px Syne, sans-serif; white-space: nowrap; }
.buy { border: 0; cursor: pointer; font: 600 14px Inter, sans-serif; width: 100%; padding: 12px 20px; }
.buy:disabled { opacity: .5; cursor: not-allowed; }

/* Video */
.dark { max-width: none; background: var(--ink); color: var(--paper); }
.dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.videos .yt-main, .videos iframe:first-child { grid-column: 1 / -1; }
/* A lone video in the last row spans the full width */
.videos > :last-child:nth-child(even) { grid-column: 1 / -1; }
.yt, .videos iframe { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 6px; display: block; }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.clips video { aspect-ratio: 16 / 9; width: 100%; border-radius: 6px; display: block; background: #1D1C1A; }
.yt { position: relative; overflow: hidden; background: #1D1C1A; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: transform .6s ease, opacity .3s; }
.yt:hover img { transform: scale(1.03); opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(17,17,17,.55); border: 2px solid var(--accent); }
.play::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 18px solid var(--accent); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.yt:hover .play { background: var(--accent); }
.yt:hover .play::after { border-left-color: #fff; }

/* Services */
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.services li { border-top: 2px solid var(--ink); padding-top: 20px; }
.services span { color: var(--accent); font-weight: 600; font-size: 14px; }
.services h3 { font-size: 28px; margin: 10px 0 12px; }
.services p { color: var(--muted); margin: 0; }

/* Contact */
.contact { text-align: center; }
.contact h2 { font-size: clamp(36px, 6vw, 72px); font-weight: 800; }
.big-link { display: inline-block; margin: 28px 0; font: 700 clamp(22px, 4vw, 44px) Syne, sans-serif; text-decoration: none; border-bottom: 3px solid var(--accent); word-break: break-all; }
.big-link:hover { color: var(--accent); }
.socials { display: flex; gap: 24px; justify-content: center; font-weight: 600; }

.foot { display: flex; justify-content: space-between; padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot a { text-decoration: none; }

@media (max-width: 760px) {
  .nav nav a:not(.pill) { display: none; }
  .grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .t-wide { grid-column: span 2; }
  .videos, .services, .clips { grid-template-columns: 1fr; }
  .prints { gap: 8px; padding-right: 4px; }
  .prints .tile { border-radius: 4px; }
  .dlg[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .dlg-img { min-height: 260px; }
  .dlg-body { padding: 24px 20px; }
  .play { transform: scale(.8); }
}

.dlg-body .note { font-size: 12px; margin-top: 10px; }
