/* ============================================================
   NORMNETWORK PHOTOS
   Black, cream, gold. Geometric sans (Jost).
     black  #000000 / lift #0d0d0d / card #141414
     cream  #F7F1DF
     gold   #CBA25A  (deep)  /  #F4D692 (lifted, for text on black)
   ============================================================ */

:root {
  --bg:        #000000;
  --bg-lift:   #0d0d0d;
  --bg-card:   #141414;
  --ink:       #F7F1DF;
  --ink-soft:  rgba(247,241,223,.78);
  --muted:     rgba(247,241,223,.56);
  --faint:     rgba(247,241,223,.36);

  --accent:      #F4D692;   /* gold, lifted for contrast on black */
  --accent-deep: #CBA25A;   /* gold */
  --accent-tint: rgba(203,162,90,.14);
  --accent-line: rgba(203,162,90,.42);
  --green:       #7ED4A0;
  --red:         #F2777A;

  --card:  rgba(255,255,255,.035);
  --line:  rgba(247,241,223,.12);
  --blur:  18px;

  --r:    4px;
  --r-lg: 6px;
  --spring: 360ms cubic-bezier(.33,1.3,.6,1);
  --t: 180ms cubic-bezier(.4,0,.2,1);

  --display: 'Jost', 'Futura', 'Century Gothic', -apple-system, sans-serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* soft gold wash — accent used sparingly */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(150px); }
.blobA { width: 640px; height: 640px; left: -200px; top: -220px; opacity: .17;
  background: radial-gradient(circle, var(--accent-deep), transparent 70%); }
.blobB { width: 720px; height: 720px; right: -240px; bottom: -260px; opacity: .10;
  background: radial-gradient(circle, #8a6a2c, transparent 72%); }

.wrap { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto;
  padding: 22px 20px 110px; }
.wrap-narrow { position: relative; z-index: 2; max-width: 560px; margin: 0 auto;
  padding: 36px 20px 80px; }

h1, h2, h3 {
  font-family: var(--display); font-weight: 400; margin: 0;
  letter-spacing: .14em; text-transform: uppercase;
}
h1 { font-size: clamp(24px, 4.4vw, 38px); line-height: 1.16; }
h2 { font-size: 18px; letter-spacing: .18em; }
h3 { font-size: 14px; letter-spacing: .16em; }
p { margin: 0 0 14px; }
a { color: var(--accent); }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.eyebrow { font-family: var(--display); font-size: 10.5px; letter-spacing: .32em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.gold { color: var(--accent); }
.green { color: var(--green); }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 50%; display: block;
  box-shadow: 0 0 0 1px var(--accent-line); }
.brand span { font-family: var(--display); font-size: 12px; letter-spacing: .3em;
  text-transform: uppercase; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 4px 0 26px; flex-wrap: wrap; }
.topbar .right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.card {
  background: var(--card);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 18px;
}
@media (max-width: 540px) { .card { padding: 18px 16px; } }

/* ---------- buttons ---------- */
.btn {
  display: block; width: 100%; padding: 15px 24px; margin: 0;
  border: none; border-radius: 2px; cursor: pointer;
  font-family: var(--display); font-size: 12.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--accent-deep); color: #0a0800;
  text-align: center; text-decoration: none;
  transition: background var(--t), transform var(--spring), opacity var(--t);
}
.btn:hover:not(:disabled) { background: var(--accent); transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.ghost {
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  margin-top: 10px;
}
.btn.ghost:hover:not(:disabled) { background: rgba(255,255,255,.06); color: var(--ink);
  border-color: var(--ink-soft); }
.btn.inline { display: inline-block; width: auto; padding: 11px 20px; font-size: 11px;
  margin-top: 0; }
.btn.danger { background: transparent; border: 1px solid rgba(242,119,122,.4); color: var(--red); }
.btn.danger:hover:not(:disabled) { background: rgba(242,119,122,.1); }
.btn.sm { padding: 8px 14px; font-size: 10.5px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px; border: 1px solid var(--line); color: var(--muted);
  white-space: nowrap;
}
.pill.gold { border-color: var(--accent-line); color: var(--accent); }
.pill.green { border-color: rgba(126,212,160,.4); color: var(--green); }
.pill.red { border-color: rgba(242,119,122,.4); color: var(--red); }

/* ---------- forms ---------- */
label { display: block; font-family: var(--display); font-size: 10.5px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 7px; }
label.field span { display: block; font-family: var(--display); font-size: 10.5px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
label.field { margin: 18px 0; }
input, textarea, select {
  width: 100%; background: rgba(0,0,0,.45); color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px; padding: 13px 15px;
  font-family: var(--sans); font-size: 16px; font-weight: 300;
  outline: none; transition: all var(--t);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-tint);
}
textarea { resize: vertical; min-height: 80px; }
select option { background: #111; }
.money { position: relative; }
.money .dollar { position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none; }
.money input { padding-left: 27px; font-family: var(--display); font-size: 17px;
  letter-spacing: .05em; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  user-select: none; font-size: 14px; color: var(--ink-soft); margin: 0; text-transform: none;
  letter-spacing: 0; font-family: var(--sans); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: relative; width: 44px; height: 24px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.12); border: 1px solid var(--line); transition: all var(--t); }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--ink); transition: transform var(--spring); }
.switch input:checked + i { background: var(--accent-deep); border-color: var(--accent-deep); }
.switch input:checked + i::after { transform: translateX(20px); background: #0a0800; }

/* ---------- banners ---------- */
.test-banner {
  display: block; text-align: center; padding: 11px 16px; margin-bottom: 18px;
  border-radius: 2px; font-family: var(--display); font-size: 11px;
  font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  background: var(--accent-tint); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.section-title { display: flex; align-items: center; gap: 18px; margin: 38px 0 6px; }
.section-title span { font-family: var(--display); font-size: 12px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.section-title i { flex: 1; height: 1px; background: var(--line); }

/* ---------- gallery ---------- */
.grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.shot {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 3/2; background: var(--bg-lift);
  border: 1px solid transparent; border-radius: var(--r);
  transition: border-color var(--t);
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 600ms cubic-bezier(.2,.7,.3,1), opacity var(--t); }
.shot:hover img { transform: scale(1.045); }
.shot .bar {
  position: absolute; inset: auto 0 0 0; padding: 30px 11px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 8px;
}
.shot .name { font-size: 12px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; letter-spacing: .04em; color: var(--ink-soft); }
.shot .price { font-family: var(--display); font-size: 12.5px; letter-spacing: .08em;
  color: var(--ink); white-space: nowrap; }
.shot.picked { border-color: var(--accent); }
.shot.picked::after {
  content: ''; position: absolute; top: 9px; right: 9px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0800' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
  box-shadow: 0 0 0 2px var(--bg);
}
.shot .zoom {
  position: absolute; top: 8px; left: 8px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.5); color: var(--ink);
  display: grid; place-items: center; cursor: zoom-in; opacity: 0; transition: opacity var(--t);
  font-size: 15px;
}
.shot:hover .zoom, .shot .zoom:focus { opacity: 1; }
@media (hover: none) { .shot .zoom { opacity: .85; } }
.empty { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- tables ---------- */
/* table-layout:fixed so a long photo filename can't push the price off a phone */
.lines { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 18px 0;
  font-size: 14px; }
.lines td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.lines td:first-child { overflow-wrap: anywhere; padding-right: 14px; }
.lines td:last-child { width: 82px; text-align: right; font-family: var(--display);
  letter-spacing: .06em; white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--display); font-size: 15px; letter-spacing: .16em;
  text-transform: uppercase; margin: 6px 0 22px; }
.total strong { font-size: 22px; font-weight: 400; }

/* ---------- sheets / lightbox ---------- */
.sheet { position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(0,0,0,.94); overflow-y: auto; padding: 20px; }
.sheet.open { display: block; }
.sheet-card { max-width: 460px; margin: 6vh auto; }

.lb { position: fixed; inset: 0; z-index: 130; display: none;
  background: rgba(0,0,0,.975); padding: 16px; place-items: center;
  touch-action: pan-y; }
.lb.open { display: grid; }
.lb img { max-width: 100%; max-height: calc(100dvh - 130px); display: block;
  -webkit-user-drag: none;
  /* press-and-hold must reach the browser or iOS never offers "Save Image" */
  -webkit-touch-callout: default; }
.lb-x { position: fixed; top: 14px; right: 14px; width: 42px; height: 42px;
  border: 1px solid var(--line); background: rgba(0,0,0,.6);
  color: var(--ink); font-size: 21px; cursor: pointer; z-index: 131; border-radius: 50%; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 64px;
  border: none; background: transparent; color: var(--ink-soft); font-size: 30px;
  cursor: pointer; z-index: 131; opacity: .7; }
.lb-nav:hover { opacity: 1; }
.lb-nav.prev { left: 4px; } .lb-nav.next { right: 4px; }
.lb-bar { position: fixed; left: 0; right: 0; bottom: 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: rgba(0,0,0,.96); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; font-size: 13.5px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; z-index: 300;
  transform: translateX(-50%) translateY(140px);
  padding: 13px 24px; border-radius: 2px; font-size: 13.5px;
  background: var(--bg-card); border: 1px solid var(--line);
  transition: transform var(--spring); max-width: calc(100vw - 32px);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.good { border-color: rgba(126,212,160,.45); color: var(--green); }
.toast.bad  { border-color: rgba(242,119,122,.45); color: var(--red); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 5px; }


/* ---- thank-you page photo viewer ---- */
.viewer-wrap {
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#v-img {
  max-width: 100%;
  max-height: 76dvh;
  display: block;
  transform-origin: center center;
  will-change: transform;
  touch-action: none;
  cursor: zoom-in;
}
.viewer-wrap.zoomed #v-img { cursor: grab; }
.v-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); color: #fff; border: 0;
  font-size: 30px; line-height: 1; padding: 10px 14px;
  border-radius: 8px; cursor: pointer;
}
.v-prev { left: 8px; }
.v-next { right: 8px; }
.viewer-wrap.zoomed .v-nav { opacity: 0; pointer-events: none; }


/* Press-and-hold has to work on every photo we show, on every page. */
#v-img, #lb-img, #c-img {
  -webkit-touch-callout: default;
  -webkit-user-drag: none;
}
.press-hint { font-size: 12px; opacity: .6; margin-top: 6px; }


/* thumbnail strip under a viewer */
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 2px;
  -webkit-overflow-scrolling: touch; }
.strip img { width: 62px; height: 62px; object-fit: cover; border-radius: 6px;
  flex: 0 0 auto; opacity: .5; cursor: pointer; border: 2px solid transparent; }
.strip img.on { opacity: 1; border-color: var(--gold, #c8a24a); }


/* The post-purchase page is now just the photo, so let it breathe. */
#stage .viewer-wrap { min-height: 46dvh; }
#more a { color: var(--gold, #c8a24a); text-decoration: none; }
#more a:hover { text-decoration: underline; }


/* The one instruction that matters on the post-purchase page. */
.save-cta {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--gold, #c8a24a);
}
@media (min-width: 520px) { .save-cta { font-size: 26px; } }

/* gallery slider under the photo */
#strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
#strip img {
  width: 66px; height: 66px; object-fit: cover; border-radius: 6px;
  flex: 0 0 auto; opacity: .45; cursor: pointer;
  border: 2px solid transparent; transition: opacity .15s, border-color .15s;
}
#strip img.on { opacity: 1; border-color: var(--gold, #c8a24a); }
