/* Sami Jaz Designer — built from the "Designer Portfolio" frames in Figma */
@font-face { font-family: "Kumbh Sans"; font-weight: 400; font-display: swap; src: url(../assets/fonts/kumbh-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Kumbh Sans"; font-weight: 700; font-display: swap; src: url(../assets/fonts/kumbh-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../assets/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 400; font-display: swap; src: url(../assets/fonts/noto-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 700; font-display: swap; src: url(../assets/fonts/noto-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Sansation"; font-weight: 300; font-display: swap; src: url(../assets/fonts/sansation-latin-300-normal.woff2) format("woff2"); }

:root {
  --navy: #0d3950;
  --mist: #e5eef1;
  --ink: #000;
  --paper: #fff;
  --popup: #1c1c1c;
  --placeholder: #c9d6dc;
  --raised: -8px -8px 24px #fff, 12px 12px 24px rgba(0 0 0 / .16);
  --raised-hover: -10px -10px 28px #fff, 16px 16px 30px rgba(0 0 0 / .2);
  --font-display: "Kumbh Sans", "Trebuchet MS", sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-body: "Noto Sans", system-ui, sans-serif;
  --font-light: "Sansation", "Kumbh Sans", sans-serif;
  --gutter: 64px;
  --max: 1312px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.5; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ph { background: repeating-linear-gradient(45deg, #d5e1e6 0 12px, #dfe8ec 12px 24px); }
.todo-note { background: #fff7c2; border-radius: 12px; padding: 16px 20px; max-width: 70ch; margin: 0 auto; }

/* ---------- Header ---------- */
.dp-header {
  background: var(--navy);
  height: 80px;
  position: sticky; top: 0; z-index: 30;
}
.dp-header .bar {
  height: 100%; max-width: 1440px; margin: 0 auto;
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.dp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.dp-brand img { height: 53px; width: auto; }
@media (max-width: 420px) {
  .dp-brand img { height: 42px; }
}
.dp-brand .wordmark { font: 400 22px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.dp-nav { display: flex; align-items: center; gap: 48px; }
.dp-nav a { font: 500 20px/1.5 var(--font-ui); color: #fff; text-decoration: none; position: relative; white-space: nowrap; }
.dp-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: currentColor; transform: scaleX(0); transition: transform .2s;
}
.dp-nav a:not(.btn):hover::after, .dp-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.dp-nav .btn {
  border: 2px solid #fff; border-radius: 8px; padding: 8px 24px;
  box-shadow: 0 1px 2px rgba(0 0 0 / .05); transition: background .15s, color .15s;
}
.dp-nav .btn:hover, .dp-nav .btn[aria-current="page"] { background: #fff; color: var(--navy); }
.dp-menu { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: #fff; }
.dp-menu svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.dp-hero {
  position: relative; height: 500px;
  display: grid; place-items: center;
  background: #24343c; overflow: hidden;
}
.dp-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dp-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0 0 0 / .4); }
.dp-hero.baked::after { display: none; }  /* image already has the overlay and title in it */
.dp-hero h1 {
  position: relative; z-index: 1;
  color: #fff; text-align: center;
  font-size: clamp(44px, 6.7vw, 96px); padding: 0 24px;
}

/* ---------- Raised card base ---------- */
.raised { background: var(--mist); border-radius: 24px; box-shadow: var(--raised); transition: box-shadow .2s, transform .2s; }
a.raised, .raised.clickable { text-decoration: none; color: inherit; }
a.raised:hover, .raised.clickable:hover { box-shadow: var(--raised-hover); transform: translateY(-2px); }

/* Arrow-in-a-circle used on cards */
.arrow-circle {
  flex: none; width: 69px; height: 69px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
}
.arrow-circle svg { width: 37px; height: 37px; stroke-width: 2.25; }
.arrow-circle.light { background: #fff; color: var(--ink); }

/* ---------- Home: category cards ---------- */
.skills { padding-top: 24px; display: grid; gap: 24px; }
.skills .row { display: grid; gap: 24px; }
.skills .row.r1 { grid-template-columns: 718fr 271fr 273fr; }
.skills .row.r2 { grid-template-columns: 641fr 638fr; gap: 33px; }
.cat-card {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 409px; padding: 24px;
  display: flex; flex-direction: column; gap: 13px;
  color: #fff;
}
.cat-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13 57 80 / .9) 0%, rgba(13 57 80 / .045) 45%, rgba(13 57 80 / 0) 50%);
}
.cat-card:hover > img { transform: scale(1.04); }
.cat-card .head { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.cat-card h2 { flex: 1; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.5; color: #fff; }
.cat-card .spacer { flex: 1; min-height: 120px; border-bottom: 1px solid rgba(255 255 255 / .8); }
.cat-card .feature {
  align-self: flex-start;
  display: flex; align-items: center;
  background: rgba(255 255 255 / .5); border-radius: 100px; overflow: hidden;
  max-width: 100%;
}
.cat-card .feature .dot {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255 255 255 / .5); display: grid; place-items: center; color: var(--ink);
}
.cat-card .feature .dot svg { width: 36px; height: 36px; }
.cat-card .feature .dot img { width: 72px; height: 72px; max-width: none; border-radius: 50%; object-fit: cover; }
.cat-card .feature span:not(.dot) { padding: 12px; font: 700 20px/1.5 var(--font-display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Home: software section ---------- */
.software { padding: 48px 0 24px; }
.software h2 { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 48px; }
.software .tall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.software .wide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.sw-card { display: flex; flex-direction: column; overflow: hidden; }
.sw-card .shot { position: relative; margin: 12px; height: 277px; }
.sw-card .shot img.screen { width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 16px; background: var(--placeholder); }
/* app icon overhangs the screenshot's bottom edge, as in the design */
.sw-card .shot img.app { position: absolute; right: 36px; bottom: -38px; width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 4px 12px rgba(0 0 0 / .18); }
.sw-card .txt { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.sw-card h3 { font-size: 24px; }
.sw-card .line { display: flex; align-items: center; gap: 12px; }
.sw-card .line p { flex: 1; }
.sw-row { display: flex; align-items: center; gap: 24px; padding: 12px; }
.sw-row .shot { flex: none; width: 191px; height: 125px; border-radius: 16px; overflow: hidden; background: var(--placeholder); }
.sw-row .shot img { width: 100%; height: 100%; object-fit: cover; }
.sw-row h3 { flex: 1; min-width: 0; font-size: 24px; }

/* ---------- Project cards (category pages) ---------- */
.projects { padding-top: 24px; display: grid; gap: 24px; }
.projects .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.projects .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.p-card { display: flex; flex-direction: column; overflow: hidden; }
.p-card .shot {
  margin: 12px 12px 0; height: 277px; border: 0; padding: 0; cursor: pointer;
  border-radius: 16px; overflow: hidden; background: #fff; display: block; width: calc(100% - 24px);
}
.p-card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.p-card .shot:hover img { transform: scale(1.03); }
.p-card .txt { padding: 12px 12px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.p-card h3 { font-size: 24px; }
.p-card .line { display: flex; align-items: flex-end; gap: 12px; flex: 1; padding-right: 12px; }
.p-card .line p { flex: 1; align-self: flex-start; }
.see-more {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 0; border-radius: 34.5px; padding: 12px 16px; cursor: pointer;
  font: 400 16px/1.5 var(--font-body); color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(0 0 0 / .06); transition: background .15s, color .15s;
}
.see-more svg { width: 22px; height: 22px; }
.see-more:hover { background: var(--navy); color: #fff; }
.p-row { display: flex; align-items: center; gap: 24px; padding: 12px 24px 12px 12px; }
.p-row .shot { flex: none; width: 191px; height: 125px; border: 0; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: #fff; }
.p-row .shot img { width: 100%; height: 100%; object-fit: cover; }
.p-row h3 { flex: 1; min-width: 0; font-size: 24px; }

/* ---------- Footer ---------- */
.dp-footer {
  margin-top: 48px;
  min-height: 269px;
  background: linear-gradient(180deg, rgba(13 57 80 / 0) 2%, rgba(13 57 80 / .045) 12%, rgba(13 57 80 / .9) 97.6%);
  color: #fff;
  display: flex; align-items: flex-end;
}
.dp-footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 48px; padding-top: 120px; flex-wrap: wrap; }
.dp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dp-footer a { color: #fff; text-decoration: none; }
.dp-footer a:hover { text-decoration: underline; }
.dp-footer .contact li a { display: flex; align-items: center; gap: 12px; }
.dp-footer svg { width: 32px; height: 32px; flex: none; }
/* label | icon + handle — the icons line up in one column */
.dp-footer .social { grid-template-columns: auto auto; justify-content: end; align-items: center; column-gap: 10px; row-gap: 12px; }
.dp-footer .social li { display: contents; }
.dp-footer .social li b { font-weight: 700; text-align: right; }
.dp-footer .social li a { display: flex; align-items: center; gap: 6px; }

/* ---------- Pop-ups ---------- */
.popup {
  border: 0; padding: 48px 16px; margin: 0;
  width: 100%; max-width: none; height: 100%; max-height: none;
  background: transparent; overflow-y: auto; color: #fff;
}
.popup::backdrop { background: rgba(10 20 26 / .72); }
.popup .inner {
  position: relative;
  max-width: 1344px; margin: 0 auto;
  background: var(--popup); border-radius: 24px;
  padding: 24px 64px 96px;
}
.popup .close {
  position: fixed; z-index: 2;
  top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255 255 255 / .25); cursor: pointer;
  background: rgba(28 28 28 / .85); color: #fff; display: grid; place-items: center;
}
.popup .close:hover { background: #3a3a3a; }
.popup .close svg { width: 28px; height: 28px; }
.popup .p-title { text-align: center; }
.popup .p-title h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.5; }
.popup .p-title .year { font: 700 clamp(28px, 2.8vw, 40px)/1.5 var(--font-display); }
.popup h3.section { font: 400 clamp(28px, 2.8vw, 40px)/1.5 var(--font-display); margin: 32px 0 16px; }
.popup .notes { display: grid; gap: 24px; }
.popup .note { display: grid; grid-template-columns: 389px 1fr; gap: 24px; align-items: start; }
.popup .note .shot { height: 271px; border-radius: 16px; overflow: hidden; background: #c4c4c4; }
.popup .note .shot img { width: 100%; height: 100%; object-fit: cover; }
.popup .note .txt { padding: 24px 0; display: grid; gap: 24px; }
.popup .note h4 { font: 700 20px/1.5 var(--font-body); margin: 0; }
.popup .ext {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); text-decoration: none; border-radius: 100px;
  padding: 18px 28px; font: 700 20px/1.5 var(--font-body);
}
.popup .ext svg { width: 32px; height: 32px; }
.popup .ext:hover { background: var(--mist); }
.popup .copyright { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: 16px; line-height: 1.5; }
body.popup-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  :root { --gutter: 32px; }
  .dp-nav { gap: 28px; }
  .dp-nav a { font-size: 18px; }
  .skills .row.r1 { grid-template-columns: 1fr 1fr; }
  .skills .row.r1 .cat-card:first-child { grid-column: 1 / -1; }
  /* row cards need the full width once the page narrows */
  .grid2:has(> .p-row) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1060px) {
  .dp-header .bar { padding: 0 16px 0 20px; }
  .dp-menu { display: block; }
  .dp-nav {
    display: none; position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px;
    background: var(--navy); box-shadow: 0 12px 24px rgba(0 0 0 / .2);
  }
  .dp-nav.open { display: flex; }
  .software .tall, .projects .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .software .wide { grid-template-columns: minmax(0, 1fr); }
  .popup .inner { padding: 24px 24px 96px; }
  .popup .note { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .dp-hero { height: 300px; }
  .skills .row.r1, .skills .row.r2 { grid-template-columns: 1fr; gap: 24px; }
  .cat-card { min-height: 320px; }
  .cat-card .spacer { min-height: 60px; }
  .software .tall, .software .wide, .projects .grid3, .projects .grid2 { grid-template-columns: minmax(0, 1fr); }
  .sw-row, .p-row { flex-wrap: wrap; }
  .sw-row .shot, .p-row .shot { width: 100%; height: 180px; }
  .dp-footer .wrap { flex-direction: column; align-items: flex-start; }
  .dp-footer .social { justify-content: start; }
  .popup { padding: 16px 8px; }
  .popup .p-title { padding: 44px 8px 0; }
  .popup .ext { justify-self: stretch; justify-content: center; font-size: 17px; padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.cat-card .feature .dot:has(img) { background: none; }

/* narrow phones: each label sits above its Instagram handle */
@media (max-width: 420px) {
  .dp-footer .social { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .dp-footer .social li b { text-align: left; margin-top: 10px; }
}

/* ---- contact.css ---- */
/* Contact + Thanks pages: navy panel that bleeds off the right edge, as in the "Contact" frame */
@font-face { font-family: "Bubblegum Sans"; font-weight: 400; font-display: swap; src: url(../assets/fonts/bubblegum-sans-latin-400-normal.woff2) format("woff2"); }
.wrap.pg-contact { max-width: none; padding: 24px 0 0; }
.pg-contact .panel {
  --side: max(0px, (100% - 1440px) / 2);
  margin-left: calc(var(--side) + 80px);
  background: var(--navy); color: #fff;
  border-radius: 24px 0 0 24px;
  padding: 48px calc(var(--side) + 48px) 48px 124px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 608px); gap: 24px 80px;
  min-height: 496px;
}
.pg-contact h1 { font: 400 24px/1.5 "Bubblegum Sans", var(--font-display); margin: 4px 0 24px; }
.pg-contact .intro p + p { margin-top: 24px; }
.pg-contact form { display: grid; gap: 12px; align-content: start; }
.pg-contact input:not([type="hidden"]), .pg-contact textarea {
  width: 100%; border: 0; border-radius: 0; background: #fff; color: var(--ink);
  font: 400 16px/1.5 var(--font-body); padding: 20px 22px; margin: 0;
}
.pg-contact input:not([type="hidden"]) { height: 64px; }
.pg-contact textarea { height: 245px; resize: vertical; display: block; }
.pg-contact ::placeholder { color: #6b6b6b; opacity: 1; }
.pg-contact input:focus-visible, .pg-contact textarea:focus-visible, .pg-contact .see-more:focus-visible { outline: 3px solid #9fd3ec; outline-offset: 2px; }
.pg-contact .send { justify-self: end; margin-top: 12px; padding: 12px 24px; font-weight: 700; }
.pg-contact .see-more:hover { background: var(--mist); color: var(--navy); }
.pg-thanks .panel { grid-template-columns: minmax(0, 1fr); min-height: 360px; align-content: center; }
.pg-thanks h1 { font-size: 40px; margin-bottom: 16px; }
.pg-thanks .intro p { max-width: 60ch; }
@media (max-width: 1060px) {
  .pg-contact .panel { margin-left: 32px; padding: 40px 32px 40px 48px; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pg-contact .intro { max-width: 60ch; }
}
@media (max-width: 700px) {
  .pg-contact .panel { margin-left: 16px; padding: 32px 16px 32px 24px; }
  .pg-contact textarea { height: 200px; }
  .pg-contact .send { justify-self: stretch; justify-content: center; }
}

/* ---- illustration.css ---- */
/* Illustration pop-up galleries: #book-illustrations, #frog-planet, #strixhaven, #procreate, #book-covers */
:is(#book-illustrations, #frog-planet, #strixhaven, #procreate, #book-covers) .ill-gal { margin-top: 24px; }
:is(#book-illustrations, #frog-planet, #strixhaven, #procreate, #book-covers) .ill-gal img { width: 100%; height: auto; }
:is(#book-illustrations, #frog-planet, #strixhaven, #procreate, #book-covers) .ill-gal figure { margin: 0; }

/* simple 3-column grids */
:is(#book-illustrations, #frog-planet) .ill-gal.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#book-illustrations .ill-gal.g3 { row-gap: 20px; }
#book-illustrations figcaption { margin-top: 6px; text-align: center; font: 400 16px/1.5 var(--font-body); color: #fff; }

/* designed rows of mixed-size images (each item carries its design width in --w) */
:is(#strixhaven, #book-covers) .ill-gal.rows { display: grid; gap: 24px; }
:is(#strixhaven, #book-covers) .ill-gal .r { display: flex; gap: 24px; align-items: flex-start; }
:is(#strixhaven, #book-covers) .ill-gal .r > div { flex: 0 1 var(--w); min-width: 0; }

/* Procreate: three masonry columns */
#procreate .ill-gal.cols { display: flex; gap: 24px; align-items: flex-start; }
#procreate .ill-gal .col { flex: 1 1 0; min-width: 0; display: grid; gap: 24px; }

@media (max-width: 1060px) {
  :is(#book-illustrations, #frog-planet) .ill-gal.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  :is(#strixhaven, #book-covers) .ill-gal.rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  :is(#strixhaven, #book-covers) .ill-gal .r { display: contents; }
  #strixhaven .ill-gal .r > .big { grid-column: 1 / -1; }
  #procreate .ill-gal.cols { display: block; columns: 2; column-gap: 16px; }
  #procreate .ill-gal .col { display: contents; }
  #procreate .ill-gal img { break-inside: avoid; margin-bottom: 16px; }
}
@media (max-width: 700px) {
  :is(#book-illustrations, #frog-planet) .ill-gal.g3, :is(#strixhaven, #book-covers) .ill-gal.rows { gap: 12px; }
  #book-illustrations figcaption { font-size: 13px; line-height: 1.35; }
  #procreate .ill-gal.cols { column-gap: 12px; }
  #procreate .ill-gal img { margin-bottom: 12px; }
}

/* Book Covers: two portrait video slots (videos to be added) */
#book-covers .ill-gal .r.videos { justify-content: center; }
#book-covers .video-slot {
  aspect-ratio: 381 / 571; width: 100%; background: #d9d9d9;
  display: grid; place-items: center; color: #555; font: 400 16px/1.5 var(--font-body);
}
#book-covers .cover-video { display: block; width: 100%; height: auto; aspect-ratio: 381 / 571; object-fit: cover; background: #000; }

/* ---- pg-lightroom.css ---- */
/* Lightroom page: photo grid */
.pg-lightroom .lr-grid {
  margin: 24px min(0px, calc(24px - var(--gutter))) 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px;
}
.pg-lightroom .lr-grid img { width: 100%; height: auto; aspect-ratio: 330 / 412; object-fit: cover; }
.pg-lightroom .p-row a.shot { display: block; }
@media (max-width: 700px) {
  .pg-lightroom .lr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ---- pg-photoshop.css ---- */
/* Photoshop page: before -> after strip */
.pg-photoshop .ba {
  margin: 24px min(0px, calc(24px - var(--gutter))) 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}
.pg-photoshop .ba-pair { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pg-photoshop .ba-pair figure { margin: 0; }
.pg-photoshop .ba-pair img { width: 100%; height: auto; aspect-ratio: 330 / 412; object-fit: cover; }
.pg-photoshop .ba-arrow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 36px; color: var(--ink); pointer-events: none;
}
@media (max-width: 700px) {
  .pg-photoshop .ba { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pg-photoshop .ba-pair { gap: 16px; }
  .pg-photoshop .ba-arrow { width: 52px; height: 24px; }
}

/* ---- photo-galleries.css ---- */
/* Photo gallery pop-ups (product-photography, wedding-photography, pets-animals) and wedding-stationery */
#product-photography .gallery, #wedding-photography .gallery, #pets-animals .gallery {
  list-style: none; margin: 16px 0 0; padding: 0;
  column-count: 3; column-gap: 24px;
}
#product-photography .gallery li, #wedding-photography .gallery li, #pets-animals .gallery li {
  break-inside: avoid; margin: 0 0 24px;
}
#product-photography .gallery li.col-start, #wedding-photography .gallery li.col-start, #pets-animals .gallery li.col-start {
  break-before: column;
}
#product-photography .gallery img, #wedding-photography .gallery img, #pets-animals .gallery img {
  width: 100%; height: auto; background: #2a2a2a;
}
@media (max-width: 1060px) {
  #product-photography .gallery, #wedding-photography .gallery, #pets-animals .gallery { column-count: 2; column-gap: 16px; }
  #product-photography .gallery li, #wedding-photography .gallery li, #pets-animals .gallery li { margin-bottom: 16px; }
  #product-photography .gallery li.col-start, #wedding-photography .gallery li.col-start, #pets-animals .gallery li.col-start { break-before: auto; }
}
@media (max-width: 700px) {
  #product-photography .gallery, #wedding-photography .gallery, #pets-animals .gallery { column-gap: 8px; }
  #product-photography .gallery li, #wedding-photography .gallery li, #pets-animals .gallery li { margin-bottom: 8px; }
}

/* Wedding stationery: each theme keeps the designed arrangement on desktop */
#wedding-stationery h3.section { margin: 24px 0 22px; }
#wedding-stationery .theme:first-of-type h3.section { margin-top: 32px; }
#wedding-stationery .set {
  list-style: none; margin: 0; padding: 0;
  position: relative; aspect-ratio: 1216 / 918;
}
#wedding-stationery .set li { position: absolute; }
#wedding-stationery .set img { width: 100%; height: auto; }
@media (max-width: 1060px) {
  #wedding-stationery .set {
    aspect-ratio: auto;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start;
  }
  #wedding-stationery .set li { position: static; width: auto !important; }
  #wedding-stationery .set li.w { grid-column: span 2; }
}
@media (max-width: 700px) {
  #wedding-stationery .set { gap: 8px; }
  #wedding-stationery h3.section { font-size: 24px; margin: 24px 0 12px; }
}

/* ---- pop-burst-promotionals.css ---- */
/* Burst Smoothies Promotionals pop-up: process rows (inputs + inputs = result) */
#burst-promotionals .proc-list { margin-top: 24px; display: grid; gap: 56px; }
#burst-promotionals .proc { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 14px; }
#burst-promotionals figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
#burst-promotionals figure img { max-width: 100%; height: auto; }
#burst-promotionals figure.out { margin-left: 6px; }
#burst-promotionals figcaption { font-size: 15px; line-height: 1.6; }
#burst-promotionals .op { font: 400 40px/1 var(--font-display); padding-bottom: 32px; }
#burst-promotionals .style-guide { margin: 56px 0 0; align-items: flex-start; }
@media (max-width: 700px) {
  #burst-promotionals .proc { justify-content: center; gap: 12px 8px; }
  #burst-promotionals figure.in img { max-width: 96px; }
  #burst-promotionals figure.in { max-width: 120px; }
  #burst-promotionals figcaption { font-size: 13px; }
  #burst-promotionals .op { font-size: 28px; padding-bottom: 28px; }
  #burst-promotionals figure.out { margin-left: 0; }
  #burst-promotionals figure.out img { max-width: min(100%, 280px); }
}
@media (min-width: 1061px) {
  #burst-promotionals .proc { flex-wrap: nowrap; gap: 10px; }
  #burst-promotionals .proc figure { flex: 0 1 auto; min-width: 0; }
  #burst-promotionals .proc .op { flex: none; }
  #burst-promotionals .proc figure.out + figure.out { margin-left: 18px; }
}

/* ---- pop-ladder-lads.css ---- */
/* Ladder Lads pop-up */
#ladder-lads .ll {
  margin-top: 40px;
  display: grid; grid-template-columns: 519fr 312fr 342fr; gap: 21px 22px;
  grid-template-areas: "orig text final" "eq eq final";
}
#ladder-lads .ll img { width: 100%; height: auto; }
#ladder-lads .ll-orig { grid-area: orig; }
#ladder-lads .ll-final { grid-area: final; align-self: end; }
#ladder-lads .ll-text { grid-area: text; font-size: 16px; line-height: 1.5; display: flex; flex-direction: column; }
#ladder-lads .ll-text p + p { margin-top: 24px; }
#ladder-lads .ll-text .end { text-align: right; margin-top: 16px; }
#ladder-lads .ll-arrow { width: 72px; height: 14px; display: block; color: #fff; }
#ladder-lads .ll-back { transform: scaleX(-1); align-self: flex-start; margin-top: -6px; }
#ladder-lads .ll-fwd { align-self: flex-end; margin-top: 8px; }
#ladder-lads .ll-eq { grid-area: eq; display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin-top: 24px; padding-right: 0; }
#ladder-lads .ll-eq img:first-child { width: 138px; }
#ladder-lads .ll-eq img:nth-of-type(2) { width: 246px; }
#ladder-lads .op { font: 400 56px/1 var(--font-display); width: 40px; text-align: center; }
@media (max-width: 1060px) {
  #ladder-lads .ll { grid-template-columns: minmax(0, 1fr); grid-template-areas: "orig" "text" "eq" "final"; gap: 24px; }
  #ladder-lads .ll-text { max-width: 520px; margin: 0 auto; }
  #ladder-lads .ll-back { transform: rotate(-90deg); align-self: center; margin: 0 0 24px; }
  #ladder-lads .ll-fwd { transform: rotate(90deg); align-self: center; margin: 32px 0 8px; }
  #ladder-lads .ll-text .end { text-align: center; }
  #ladder-lads .ll-eq { justify-content: center; margin: 0; gap: 10px; }
  #ladder-lads .ll-eq img:first-child { width: 28%; }
  #ladder-lads .ll-eq img:nth-of-type(2) { width: 48%; }
  #ladder-lads .op { font-size: 36px; width: auto; }
  #ladder-lads .ll-final { max-width: 342px; justify-self: center; }
}

/* ---- pop-logos.css ---- */
/* Logos pop-up */
#logos .logo-list { margin-top: 32px; display: grid; gap: 40px; }
#logos .logo-item { display: grid; grid-template-columns: 528px minmax(0, 1fr); gap: 24px; align-items: start; }
#logos .art img { width: auto; max-width: 100%; height: auto; }
#logos .txt { max-width: 700px; padding-top: 16px; font-size: 15px; line-height: 1.6; }
#logos .txt h3 { font: 700 18px/1.5 var(--font-body); }
#logos .txt p + p { margin-top: 16px; }
#logos .txt a { color: #fff; overflow-wrap: anywhere; }
@media (max-width: 1060px) {
  #logos .logo-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #logos .art img { max-height: 360px; }
}

/* ---- pop-step-above-print.css ---- */
/* Step Above Realty pop-up: annotated boards (annotations are part of the white boards) + mockups */
#step-above-print .sa { margin-top: 32px; display: grid; gap: 24px; }
#step-above-print .board { position: relative; display: block; color: #fff; }
#step-above-print .board img, #step-above-print .mock img { width: 100%; height: auto; }
#step-above-print .board .zoom {
  display: none; position: absolute; right: 8px; bottom: 8px;
  background: rgba(0 0 0 / .7); border-radius: 100px; padding: 4px 12px; font-size: 13px;
}
#step-above-print .mock { display: flex; justify-content: center; gap: 24px; }
#step-above-print .mock img { width: 252px; max-width: calc(50% - 12px); }
@media (max-width: 700px) {
  #step-above-print .board .zoom { display: block; }
  #step-above-print .mock { gap: 12px; }
}

/* ---- step-above-web.css ---- */
/* Step Above Realty website pop-up: white annotated board, mock-up slices with notes beside them */
#step-above-web .board {
  background: #fff; color: #000; margin-top: 32px;
  padding: 56px 32px 70px; text-align: center;
}
#step-above-web .board h3 {
  display: inline-block; font: 700 clamp(30px, 3.9vw, 54px)/1.25 var(--font-display); letter-spacing: .01em;
  padding: 0 0 12px; position: relative;
}
#step-above-web .board h3::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(390px, 72%); height: 3px; background: #000;
}
#step-above-web .board .sub { font: 700 clamp(22px, 2vw, 28px)/1.5 var(--font-display); letter-spacing: .02em; margin: 12px 0 34px; }
#step-above-web .mock { list-style: none; margin: 0 auto; padding: 0; width: 327px; }
#step-above-web .seg { position: relative; }
#step-above-web .seg img { width: 327px; height: auto; }
#step-above-web .ann {
  position: absolute; width: 350px;
  font: 400 18px/33px var(--font-display); letter-spacing: .02em; color: #000;
}
#step-above-web .ann .arrow { display: block; width: 168px; height: 14px; margin-bottom: 4px; }
#step-above-web .ann span { display: block; }
#step-above-web .seg.l .ann { right: calc(100% + 26px); top: 30px; text-align: right; }
#step-above-web .seg.l .ann .arrow { margin-left: auto; }
#step-above-web .seg.r .ann { left: calc(100% + 43px); top: 19px; text-align: left; width: 340px; }
#step-above-web .seg.r .ann .arrow { transform: scaleX(-1); }

/* Not enough room for notes beside the mock-up: put each note under its slice */
@media (max-width: 1320px) {
  #step-above-web .board { padding: 40px 20px 48px; }
  #step-above-web .mock { width: 100%; max-width: 440px; display: grid; gap: 28px; }
  #step-above-web .seg img { width: 100%; }
  #step-above-web .ann, #step-above-web .seg.l .ann, #step-above-web .seg.r .ann {
    position: static; width: auto; text-align: left; margin-top: 12px; font-size: 16px; line-height: 1.6;
  }
  #step-above-web .ann .arrow { display: none; }
}
@media (max-width: 700px) {
  #step-above-web .board { padding: 32px 14px 40px; margin-top: 24px; }
}

/* ---- ui-design.css ---- */
/* UI Design page */
.pg-ui .p-card a.shot { display: block; }
.pg-ui .p-card .shot.logo { background: var(--navy); }
.pg-ui .p-card .shot.logo img { object-fit: cover; }
.pg-ui .p-card .shot:hover img { transform: scale(1.03); }
.pg-ui .p-card .line p { overflow-wrap: anywhere; }

/* ---- video.css ---- */
/* Video page (.pg-video) */
.pg-video { padding-top: 24px; display: grid; gap: 76px; }
.pg-video .vid { display: grid; grid-template-columns: 389px minmax(0, 1fr); gap: 24px; align-items: start; }
.pg-video .thumb {
  position: relative; display: block; border-radius: 16px; overflow: hidden;
  aspect-ratio: 389 / 219; background: var(--placeholder);
}
.pg-video .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pg-video .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(13 57 80 / .35); opacity: 0; transition: opacity .2s;
}
.pg-video .play svg {
  width: 64px; height: 64px; padding: 16px 14px 16px 18px; border-radius: 50%;
  background: #fff; color: var(--navy); fill: var(--navy); box-shadow: 0 4px 16px rgba(0 0 0 / .3);
}
.pg-video .thumb:hover .play, .pg-video .thumb:focus-visible .play { opacity: 1; }
.pg-video .thumb:hover img, .pg-video .thumb:focus-visible img { transform: scale(1.03); }
.pg-video .txt { padding-top: 16px; display: grid; gap: 21px; }
.pg-video h2 { font: 700 20px/1.5 var(--font-body); margin-bottom: 4px; }
.pg-video h2 a { text-decoration: none; }
.pg-video h2 a:hover, .pg-video h2 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.pg-video .txt p { font-size: 15px; line-height: 1.4; }
@media (hover: none) { .pg-video .play { opacity: 1; background: none; } .pg-video .play svg { width: 52px; height: 52px; padding: 13px 11px 13px 15px; } }
@media (max-width: 1060px) {
  .pg-video { gap: 48px; }
  .pg-video .vid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .pg-video { gap: 40px; }
  .pg-video .vid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pg-video .txt { padding-top: 0; gap: 12px; }
}
