/* ==========================================================================
   Dec. 18 Studios · shared print style (tools.dec18studios.com)
   Warm paper stock, two spot inks (red/blue), condensed display type,
   colour-bar dividers, 88x31 buttons. Every photo sits on a NEUTRAL
   surround (.viewer / .frames), uncropped and unfiltered.
   Fonts (load in each page <head>):
   https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&family=Courier+Prime:wght@400;700&family=Hanken+Grotesk:wght@400;500;600;700&family=Silkscreen&display=swap
   Pair with assets/d18-viewer.js for the lightbox and before/after sliders.
   ========================================================================== */
:root {
  --paper:   #efe6d2;
  --paper-2: #e6dbc2;
  --ink:     #221d18;
  --ink-2:   #4a4136;
  --ink-3:   #7b6f5e;
  --rule:    #b9a988;

  --red:   #c7372c;
  --blue:  #1f4a8e;

  --p-red:     #c7372c;
  --p-yellow:  #e3b23c;
  --p-green:   #4f8a4b;
  --p-cyan:    #3b8fa3;
  --p-blue:    #1f4a8e;
  --p-magenta: #b03a73;

  --film:  #15120f;
  --edge:  #e8a33a;

  /* neutral viewing surround for images: true greys, zero chroma */
  --view:      #121212;
  --view-2:    #1b1b1b;
  --view-line: #2e2e2e;
  --view-text: #a6a6a6;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans:    "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --type:    "Courier Prime", "Courier New", monospace;
  --pixel:   "Silkscreen", monospace;

  --maxw: 1180px;
  --pad: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .18  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px; line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--p-yellow); color: var(--ink); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ============ TOP BAR ============ */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-bottom: 3px solid var(--ink); padding: 14px 0 10px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand .logo {
  display: block; height: clamp(40px, 4.6vw, 52px); aspect-ratio: 862 / 380; background: var(--ink);
  -webkit-mask: url("logo-full.png") left center / contain no-repeat;
          mask: url("logo-full.png") left center / contain no-repeat;
}
.brand:hover .logo { background: var(--red); }
.toplinks { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.toplinks a {
  font-family: var(--type); font-size: 14px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em;
}
.toplinks a:hover, .toplinks a.current { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.toplinks a.cta { background: var(--ink); color: var(--paper); padding: 6px 12px; box-shadow: 3px 3px 0 var(--red); }
.toplinks a.cta:hover { text-decoration: none; background: var(--red); }
@media (max-width: 760px) {
  .toplinks { gap: 10px 16px; flex-wrap: wrap; width: 100%; padding-bottom: 2px; }
  .toplinks a { white-space: nowrap; font-size: 12.5px; }
}

/* ============ MASTHEAD ============ */
.mast { padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 44px); }
.eyebrow {
  font-family: var(--type); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2);
}
.mast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; margin-top: clamp(18px, 2.4vw, 28px); }
@media (max-width: 900px) { .mast-grid { grid-template-columns: 1fr; } }

h1.title {
  font-family: var(--display); font-stretch: 62%; font-weight: 900;
  text-transform: uppercase; line-height: 0.84; letter-spacing: -0.005em;
  font-size: clamp(58px, 10.4vw, 132px); max-width: 11ch;
}
h1.title .r { color: var(--red); }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 44ch; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.meta { display: flex; gap: 0; margin-top: 20px; border: 2px solid var(--ink); width: fit-content; max-width: 100%; }
.meta .m { padding: 8px 16px; border-left: 2px solid var(--ink); }
.meta .m:first-child { border-left: 0; }
.meta .m b { display: block; font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 34px; line-height: 1; }
.meta .m span { font-family: var(--type); font-size: 12.5px; color: var(--ink-2); }

/* ============ BUTTONS ============ */
.send {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 14px; color: var(--paper); background: var(--ink); padding: 13px 18px;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--red); transition: transform .08s, box-shadow .08s;
}
.send:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--red); }
.send.ghost { background: transparent; color: var(--ink); box-shadow: 4px 4px 0 var(--ink-3); }
.send.ghost:hover { box-shadow: 2px 2px 0 var(--ink-3); }

/* ============ NEUTRAL VIEWER (all photos) ============ */
.viewer {
  background: var(--view); padding: clamp(10px, 1.6vw, 18px); position: relative;
  border: 1px solid var(--ink);
}
.viewer img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain;
  background: #000; cursor: zoom-in;
}
.slate {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--type); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--view-text); padding-top: 10px;
}
.slate a { color: var(--view-text); text-decoration: none; }
.slate a:hover { color: #e6e6e6; text-decoration: underline; }
.viewer .corner { position: absolute; width: 22px; height: 22px; background: var(--ink); z-index: 2; }
.corner.tl { top: -6px; left: -6px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.corner.tr { top: -6px; right: -6px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.corner.bl { bottom: -6px; left: -6px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.corner.br { bottom: -6px; right: -6px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.mast .viewer { margin-top: clamp(26px, 4vw, 44px); }

/* ============ BARS DIVIDER ============ */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); height: 30px; border-block: 1px solid var(--ink); }
.bars i:nth-child(1) { background: #d8d2c2; }
.bars i:nth-child(2) { background: var(--p-yellow); }
.bars i:nth-child(3) { background: var(--p-cyan); }
.bars i:nth-child(4) { background: var(--p-green); }
.bars i:nth-child(5) { background: var(--p-magenta); }
.bars i:nth-child(6) { background: var(--p-red); }
.bars i:nth-child(7) { background: var(--p-blue); }
.bars.thin { height: 10px; }

/* ============ SECTION HEADS ============ */
section.part { padding: clamp(40px, 6vw, 72px) 0; border-top: 3px solid var(--ink); }
section.part:first-of-type { border-top: 0; }
.part-head { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 30px; }
.part-head .eyebrow { align-self: end; }
.part-head h2 {
  font-family: var(--display); font-stretch: 75%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 62px); line-height: 0.92;
}
.part-head p { font-size: 17px; color: var(--ink-2); max-width: 62ch; margin-top: 6px; }

/* ============ MEMBERSHIP CARD ============ */
.coupon {
  position: relative; border: 2px dashed var(--ink); padding: clamp(20px, 3vw, 34px);
  background: var(--paper-2);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 820px) { .coupon { grid-template-columns: 1fr; } }
.coupon .scissors {
  position: absolute; top: -15px; left: 28px; background: var(--paper); padding: 0 8px;
  font-size: 22px; line-height: 1; color: var(--ink);
}
.coupon .plan { font-family: var(--type); font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue); font-weight: 700; }
.coupon h3 {
  font-family: var(--display); font-stretch: 100%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(24px, 2.8vw, 30px); line-height: 1.05; margin: 6px 0 10px;
}
.coupon p { color: var(--ink-2); }
.ticks { list-style: none; margin-top: 18px; font-size: 16px; }
.ticks li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.ticks li::before {
  content: "X"; flex: none; width: 20px; height: 20px; border: 2px solid var(--ink); margin-top: 2px;
  font-family: var(--type); font-weight: 700; font-size: 14px; line-height: 16px; text-align: center; color: var(--blue);
}
.amount { margin: 4px 0 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.amount b { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 92px; line-height: 0.85; }
.amount span { font-family: var(--type); font-size: 16px; }
.fine { font-family: var(--type); font-size: 12.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }
.fine a { color: var(--blue); }
.pitch { margin-bottom: 24px; max-width: 70ch; color: var(--ink-2); }
.pitch em { font-style: normal; font-weight: 700; color: var(--red); }
.pitch a { color: var(--blue); font-weight: 600; }

.stamp {
  position: absolute; right: clamp(14px, 3vw, 34px); top: clamp(-26px, -2vw, -14px);
  border: 3px solid var(--red); color: var(--red); padding: 6px 12px; transform: rotate(-7deg);
  font-family: var(--display); font-stretch: 100%; font-weight: 900; text-transform: uppercase;
  font-size: 17px; letter-spacing: 0.08em; line-height: 1.1; text-align: center; background: var(--paper);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='g'><feTurbulence baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='g'><feTurbulence baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}

/* ============ PHOTO CHEMIST ============ */
.compare { position: relative; overflow: hidden; background: #000; aspect-ratio: 16 / 9; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; cursor: ew-resize; }
.compare .after { clip-path: inset(0 0 0 var(--split, 50%)); }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none;
}
.compare .handle::after {
  content: "\25C0\25B6"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; color: #111; font-size: 10px; letter-spacing: 2px; padding: 7px 7px; border-radius: 50%;
  font-family: var(--type); line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.compare .tag {
  position: absolute; top: 10px; font-family: var(--type); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; background: rgba(18,18,18,.78); color: #e6e6e6; padding: 3px 8px; pointer-events: none;
}
.compare .tag.l { left: 10px; } .compare .tag.r { right: 10px; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: start; margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.feature .flag { font-family: var(--type); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--red); }
.feature h3 {
  font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 8vw, 96px); line-height: 0.84; margin-top: 8px;
}
.feature .plat { font-family: var(--type); font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.feature .dek { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.feature .dek b { color: var(--ink); }
.process { border-top: 2px solid var(--ink); }
.process .ph { font-family: var(--type); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; padding: 8px 0; border-bottom: 1px solid var(--ink); }
.process .step { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.process .n {
  font-family: var(--type); font-weight: 700; font-size: 13px; border: 1.5px solid var(--ink);
  text-align: center; align-self: start; padding: 2px 0;
}
.process b { font-family: var(--display); font-stretch: 100%; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.03em; }
.process p { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.feature .acts { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

/* ============ FRAMES (neutral band, full bleed) ============ */
.frames { background: var(--view); color: #e6e6e6; padding: clamp(40px, 6vw, 72px) 0; }
.frames .part-head h2 { color: #f2f2f2; }
.frames .part-head .eyebrow, .frames .part-head p { color: var(--view-text); }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.grid figure { min-width: 0; grid-column: span 2; background: var(--view-2); border: 1px solid var(--view-line); padding: 8px; }
.grid figure.wide { grid-column: span 3; }
.grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000; cursor: zoom-in; }
.grid figcaption { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; font-family: var(--type); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--view-text); }
.grid figcaption a { color: #e6e6e6; text-decoration: none; }
.grid figcaption a:hover { text-decoration: underline; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } .grid figure, .grid figure.wide { grid-column: span 1; } .grid figure.wide:first-child { grid-column: span 2; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } .grid figure, .grid figure.wide, .grid figure.wide:first-child { grid-column: span 1; } }

/* ============ TOOL LIST ============ */
.section-bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  background: var(--ink); color: var(--paper); padding: 8px 14px; margin-top: 30px;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: 0.1em;
}
.section-bar .n { font-family: var(--type); font-weight: 400; letter-spacing: 0.06em; text-transform: none; }
.section-bar.free { background: var(--blue); }

table.plist { width: 100%; border-collapse: collapse; }
.plist td { padding: 14px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.plist tr:hover td { background: rgba(227, 178, 60, 0.13); }
.plist .patch { width: 1%; }
.plist .patch i { display: block; width: 26px; height: 26px; border: 1px solid var(--ink); }
.plist .item b { font-family: var(--display); font-stretch: 100%; font-weight: 800; font-size: 18px; line-height: 1.15; }
.plist .item b a { text-decoration: none; }
.plist .item b a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.plist .item p { font-size: 15px; color: var(--ink-2); line-height: 1.45; margin-top: 4px; max-width: 60ch; }
.plist .fmt { width: 1%; white-space: nowrap; }
.fmt span {
  display: inline-block; font-family: var(--type); font-weight: 700; font-size: 12px;
  border: 1.5px solid currentColor; padding: 1px 6px; letter-spacing: 0.06em;
}
.fmt .OFX { color: var(--red); } .fmt .DCTL { color: var(--blue); } .fmt .App { color: var(--ink); }
.fmt small { display: block; font-family: var(--type); font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
.plist .order { width: 1%; white-space: nowrap; text-align: right; font-family: var(--type); font-size: 14px; }
.order a { display: inline-block; margin-left: 12px; text-decoration: underline; text-underline-offset: 3px; }
.order a:first-child { margin-left: 0; }
.order a.dl { font-weight: 700; color: var(--blue); }
.order a:hover { background: var(--p-yellow); }

@media (max-width: 760px) {
  .plist, .plist tbody, .plist tr, .plist td { display: block; width: 100%; }
  .plist tr { display: grid; grid-template-columns: 34px 1fr; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .plist td { border: 0; padding: 0; width: auto !important; }
  .plist .patch { grid-row: 1 / span 3; }
  .plist .item, .plist .fmt, .plist .order { grid-column: 2; }
  .plist .order { text-align: left; white-space: normal; }
  .fmt small { display: inline; margin-left: 8px; }
}

.aside {
  margin-top: 40px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: center;
  border: 2px solid var(--ink); padding: 18px; background: var(--paper);
}
@media (max-width: 760px) { .aside { grid-template-columns: 1fr; } }
.aside .viewer { padding: 8px; }
.aside .viewer img { aspect-ratio: auto; }
.aside h4 { font-family: var(--display); font-stretch: 100%; font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1.1; }
.aside p { margin: 8px 0 18px; color: var(--ink-2); }

/* ============ FOOTER ============ */
footer { background: var(--ink); color: var(--paper); padding: clamp(36px, 5vw, 56px) 0 28px; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.foot .big { font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 54px; line-height: 0.9; }
.foot p, .foot a, .foot span { font-size: 15px; color: #cfc4ae; }
.foot .fh { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.14em; color: var(--paper); margin-bottom: 8px; }
.foot a, .foot span.li { display: block; text-decoration: none; padding: 2px 0; }
.foot a:hover { color: var(--p-yellow); }

.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 22px; border-top: 1px dashed #5b5146; }
.b88 {
  width: 88px; height: 31px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  font-family: var(--pixel); font-size: 8px; line-height: 1.15; text-align: center; text-decoration: none;
  border: 1px solid; border-color: #fff #555 #555 #fff; overflow: hidden;
}
.b88:hover { outline: 1px dotted var(--p-yellow); outline-offset: 2px; }
.b88 .big8 { font-size: 10px; }
.b88.resolve { background: linear-gradient(90deg, #c7372c 0 33%, #4f8a4b 33% 66%, #1f4a8e 66%); color: #fff; }
.b88.mgr { background: #efe6d2; color: #221d18; }
.b88.disc { background: #5865f2; color: #fff; }
.b88.yt { background: #fff; color: #c00; }
.b88.ig { background: #e3b23c; color: #221d18; }
.b88.bars8 { background: linear-gradient(90deg, #d8d2c2 0 14%, #e3b23c 14% 28%, #3b8fa3 28% 42%, #4f8a4b 42% 57%, #b03a73 57% 71%, #c7372c 71% 85%, #1f4a8e 85%); color: #000; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.legal { padding-bottom: 36px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-family: var(--type); font-size: 12.5px; color: #8f836f; }
.legal a { color: #cfc4ae; }

/* ============ LIGHTBOX (neutral black, full res) ============ */
.lb { position: fixed; inset: 0; z-index: 200; background: #0a0a0a; display: none; flex-direction: column; }
.lb.open { display: flex; }
.lb .stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px; min-height: 0; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lb .bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; font-family: var(--type); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #9a9a9a;
  border-top: 1px solid #222;
}
.lb .bar a, .lb button { color: #d6d6d6; }
.lb button { background: none; border: 1px solid #3a3a3a; font: inherit; padding: 6px 12px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.06em; }
.lb button:hover { border-color: #777; color: #fff; }
.lb .ctl { display: flex; gap: 8px; align-items: center; }
